@etu-wiki/sharp-iiif-shims 0.1.16 → 0.1.17
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/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x5f4036=a0_0x3274;(function(_0x56c713,_0xb9becc){const _0x4177c2=a0_0x3274,_0x19dcb7=_0x56c713();while(!![]){try{const _0x2a5542=-parseInt(_0x4177c2(0x23e))/0x1+-parseInt(_0x4177c2(0x1d5))/0x2*(parseInt(_0x4177c2(0x170))/0x3)+parseInt(_0x4177c2(0x18a))/0x4*(parseInt(_0x4177c2(0x11c))/0x5)+parseInt(_0x4177c2(0x195))/0x6+-parseInt(_0x4177c2(0x179))/0x7*(parseInt(_0x4177c2(0x142))/0x8)+-parseInt(_0x4177c2(0x1e8))/0x9*(-parseInt(_0x4177c2(0x1f3))/0xa)+parseInt(_0x4177c2(0x118))/0xb;if(_0x2a5542===_0xb9becc)break;else _0x19dcb7['push'](_0x19dcb7['shift']());}catch(_0x1a2399){_0x19dcb7['push'](_0x19dcb7['shift']());}}}(a0_0x35bb,0x743e4));import a0_0x4e4605 from'sharp';import a0_0x40b134 from'@etu-wiki/iiif-image-shims';function a0_0x3274(_0x41f43b,_0x12acd4){const _0x35bbaf=a0_0x35bb();return a0_0x3274=function(_0x327469,_0x17e0c9){_0x327469=_0x327469-0x101;let _0x475cd0=_0x35bbaf[_0x327469];return _0x475cd0;},a0_0x3274(_0x41f43b,_0x12acd4);}import{addDecoder,BaseDecoder,fromCustomClient,fromUrl,BaseClient,BaseResponse}from'geotiff';const MAX_AREA=0x5f5e100,MAX_WIDTH=0x2710,MAX_HEIGHT=0x2710,SUPPORTS={0x2:[a0_0x5f4036(0x20c),a0_0x5f4036(0x130),a0_0x5f4036(0x1f2),a0_0x5f4036(0x122),a0_0x5f4036(0x1fe),a0_0x5f4036(0x1c9),a0_0x5f4036(0x12e),a0_0x5f4036(0x16a),'rotationArbitrary',a0_0x5f4036(0x12f),a0_0x5f4036(0x114),a0_0x5f4036(0x200),a0_0x5f4036(0x137),a0_0x5f4036(0x20f),a0_0x5f4036(0x1bb),a0_0x5f4036(0x112),a0_0x5f4036(0x101)],2.1:[a0_0x5f4036(0x20c),'canonicalLinkHeader',a0_0x5f4036(0x1f2),a0_0x5f4036(0x122),a0_0x5f4036(0x1fe),a0_0x5f4036(0x1c9),a0_0x5f4036(0x12e),a0_0x5f4036(0x16a),a0_0x5f4036(0x1d3),a0_0x5f4036(0x213),a0_0x5f4036(0x12f),a0_0x5f4036(0x114),a0_0x5f4036(0x1ed),'sizeByDistortedWh',a0_0x5f4036(0x20f),a0_0x5f4036(0x1bb),'sizeByW',a0_0x5f4036(0x101),a0_0x5f4036(0x200),a0_0x5f4036(0x137)],0x3:['baseUriRedirect','canonicalLinkHeader','cors','jsonldMediaType',a0_0x5f4036(0x1fe),a0_0x5f4036(0x1c9),a0_0x5f4036(0x12e),a0_0x5f4036(0x16a),a0_0x5f4036(0x1d3),a0_0x5f4036(0x213),a0_0x5f4036(0x12f),a0_0x5f4036(0x1ed),'sizeByH',a0_0x5f4036(0x1bb),a0_0x5f4036(0x112),a0_0x5f4036(0x101),a0_0x5f4036(0x1d4)]};class SharpWebImageDecoder extends BaseDecoder{async[a0_0x5f4036(0x10d)](_0x522e95,_0x34d980){const _0x2ea2be=a0_0x5f4036,_0x2ed795={'xEVBi':function(_0xd7a15a,_0x152835){return _0xd7a15a===_0x152835;},'tOZbv':function(_0x6abcc5,_0x198f35){return _0x6abcc5>_0x198f35;},'AiBBZ':function(_0x36c136,_0x542d54){return _0x36c136!==_0x542d54;},'qrUQm':_0x2ea2be(0x1cb),'xMEmG':_0x2ea2be(0x23a),'ZWxya':function(_0x582f32,_0x2b23cf){return _0x582f32*_0x2b23cf;},'sVCiS':function(_0x482937,_0x42caa0){return _0x482937*_0x42caa0;},'jjiLX':function(_0x553584,_0x1eff37){return _0x553584<_0x1eff37;},'sTfLH':function(_0x42533e,_0x447365){return _0x42533e!==_0x447365;},'MljNB':'TKdJy','QOjJq':function(_0x29217d,_0x41ca49){return _0x29217d+_0x41ca49;},'rpRIp':function(_0x43db36,_0x156c19){return _0x43db36+_0x156c19;},'ivbkH':_0x2ea2be(0x15c),'OEBno':_0x2ea2be(0x1b0),'mUwTg':function(_0x584ad9,_0x468e01){return _0x584ad9===_0x468e01;},'Znrnt':function(_0x511c9b,_0xdc4f11){return _0x511c9b+_0xdc4f11;}},_0x3697be=Array[_0x2ea2be(0x1b9)](_0x522e95[_0x2ea2be(0x1e7)])?_0x522e95[_0x2ea2be(0x1e7)][_0x2ea2be(0x196)]:_0x522e95[_0x2ea2be(0x1c0)]||0x4;let _0x1efa84=a0_0x4e4605(_0x34d980,{'sequentialRead':!![]});const _0x3223da=await _0x1efa84[_0x2ea2be(0x1da)](),_0x1ec061=_0x3223da['channels']||0x4;if(_0x2ed795[_0x2ea2be(0x209)](_0x3697be,0x4)&&_0x1ec061<0x4&&_0x1efa84[_0x2ea2be(0x219)])_0x1efa84=_0x1efa84[_0x2ea2be(0x219)]();else _0x3697be===0x3&&_0x2ed795['tOZbv'](_0x1ec061,0x3)&&_0x1efa84[_0x2ea2be(0x15e)]&&(_0x2ed795[_0x2ea2be(0x1ee)](_0x2ed795['qrUQm'],_0x2ed795['xMEmG'])?_0x1efa84=_0x1efa84[_0x2ea2be(0x15e)]():_0x401861=_0x3599cb['extract']({'left':_0x5a2655['x'],'top':_0x3d299c['y'],'width':_0x4875af['w'],'height':_0x1bcbd7['h']}));const {data:_0x19417c,info:_0x434def}=await _0x1efa84[_0x2ea2be(0x158)]()[_0x2ea2be(0x218)]({'resolveWithObject':!![]});if(_0x2ed795[_0x2ea2be(0x1ee)](_0x434def[_0x2ea2be(0x164)],_0x3697be)){const _0x34b7a6=_0x434def[_0x2ea2be(0x12b)]*_0x434def[_0x2ea2be(0x23c)],_0x3659b0=Buffer['alloc'](_0x2ed795[_0x2ea2be(0x194)](_0x34b7a6,_0x3697be)),_0x14cd78=_0x19417c;for(let _0x3d21df=0x0;_0x3d21df<_0x34b7a6;_0x3d21df+=0x1){const _0x448de2=_0x2ed795[_0x2ea2be(0x194)](_0x3d21df,_0x434def[_0x2ea2be(0x164)]),_0x41130e=_0x2ed795[_0x2ea2be(0x1a2)](_0x3d21df,_0x3697be);for(let _0x2e5714=0x0;_0x2ed795[_0x2ea2be(0x216)](_0x2e5714,_0x3697be);_0x2e5714+=0x1){if(_0x2ed795[_0x2ea2be(0x173)](_0x2ed795[_0x2ea2be(0x20d)],_0x2ed795[_0x2ea2be(0x20d)]))return this[_0x2ea2be(0x127)][_0x2ea2be(0x123)][_0x2ea2be(0x234)];else _0x2ed795[_0x2ea2be(0x216)](_0x2e5714,_0x434def[_0x2ea2be(0x164)])?_0x3659b0[_0x2ed795['QOjJq'](_0x41130e,_0x2e5714)]=_0x14cd78[_0x2ed795['rpRIp'](_0x448de2,_0x2e5714)]:_0x2ed795['ivbkH']===_0x2ed795[_0x2ea2be(0x188)]?_0x4c45bf=_0x32bb5c[_0x2ea2be(0x13b)]():_0x3659b0[_0x2ed795['rpRIp'](_0x41130e,_0x2e5714)]=_0x2ed795[_0x2ea2be(0x19b)](_0x2e5714,0x3)?0xff:0x0;}}return _0x3659b0[_0x2ea2be(0x1a5)][_0x2ea2be(0x15a)](_0x3659b0[_0x2ea2be(0x1b6)],_0x3659b0['byteOffset']+_0x3659b0[_0x2ea2be(0x1ce)]);}return _0x19417c[_0x2ea2be(0x1a5)][_0x2ea2be(0x15a)](_0x19417c['byteOffset'],_0x2ed795[_0x2ea2be(0x1c7)](_0x19417c[_0x2ea2be(0x1b6)],_0x19417c[_0x2ea2be(0x1ce)]));}}addDecoder(0xc351,()=>Promise['resolve'](SharpWebImageDecoder));class OSSResponse extends BaseResponse{constructor(_0x17c878){const _0x423ad6=a0_0x5f4036;super(),this[_0x423ad6(0x127)]=_0x17c878;}get['ok'](){const _0x354a85=a0_0x5f4036,_0x1c18a4={'GkipZ':function(_0x378df7,_0x85e288){return _0x378df7>=_0x85e288;},'dwxxU':function(_0x1bd5ff,_0x3e54cc){return _0x1bd5ff<_0x3e54cc;}};return _0x1c18a4[_0x354a85(0x131)](this[_0x354a85(0x127)][_0x354a85(0x123)]['status'],0xc8)&&_0x1c18a4[_0x354a85(0x191)](this[_0x354a85(0x127)][_0x354a85(0x123)][_0x354a85(0x234)],0x12c);}get[a0_0x5f4036(0x234)](){const _0x243f6c=a0_0x5f4036;return this['result'][_0x243f6c(0x123)][_0x243f6c(0x234)];}[a0_0x5f4036(0x133)](_0xbaa71d){const _0x2876fe=a0_0x5f4036;return this['result'][_0x2876fe(0x123)][_0x2876fe(0x19e)][_0xbaa71d[_0x2876fe(0x17c)]()];}['getData'](){const _0x3a47c0=a0_0x5f4036,_0x43a1e5={'tDzPm':function(_0x43ed3f,_0x392873){return _0x43ed3f!==_0x392873;},'UBtDC':_0x3a47c0(0x1c1),'sbLuh':function(_0x213a30,_0x34a064){return _0x213a30+_0x34a064;}};if(Buffer['isBuffer'](this[_0x3a47c0(0x127)]['content'])){if(_0x43a1e5[_0x3a47c0(0x12a)](_0x3a47c0(0x1c1),_0x43a1e5['UBtDC']))_0xc82fe0=_0x424c12[_0x3a47c0(0x223)]('b-w')[_0x3a47c0(0x1d0)]({'colors':0x2});else return this[_0x3a47c0(0x127)]['content'][_0x3a47c0(0x1a5)]['slice'](this['result'][_0x3a47c0(0x1ab)][_0x3a47c0(0x1b6)],_0x43a1e5[_0x3a47c0(0x17d)](this['result']['content'][_0x3a47c0(0x1b6)],this[_0x3a47c0(0x127)][_0x3a47c0(0x1ab)]['byteLength']));}return this['result'][_0x3a47c0(0x1ab)];}}class OSSClient extends BaseClient{constructor(_0x5b2fa5,_0x3548b7){const _0x276ee2=a0_0x5f4036;super(_0x5b2fa5),this[_0x276ee2(0x222)]=_0x5b2fa5,this[_0x276ee2(0x150)]=_0x3548b7;}async[a0_0x5f4036(0x1ae)]({headers:headers={}}={}){const _0x2ba126=a0_0x5f4036,_0x50fad7=await this['ossClient'][_0x2ba126(0x13a)](this['objectKey'],{'headers':headers,'timeout':0x7530});return new OSSResponse(_0x50fad7);}}async function fromOSS(_0x1ae075,_0x226f1d){const _0x309ab8=a0_0x5f4036,_0x2882a7={'QuSiZ':function(_0x25e430,_0x27d304){return _0x25e430(_0x27d304);}},_0x6feed1=new OSSClient(_0x1ae075,_0x226f1d);return _0x2882a7[_0x309ab8(0x225)](fromCustomClient,_0x6feed1);}const geotiffCache=new Map();class IPFSResponse extends BaseResponse{constructor(_0x31b51c,_0x16dbe){const _0x2de4c7=a0_0x5f4036;super(),this[_0x2de4c7(0x1f6)]=_0x31b51c,this[_0x2de4c7(0x167)]=_0x16dbe;}get['ok'](){return this['response']['ok'];}get[a0_0x5f4036(0x234)](){return this['response']['status'];}[a0_0x5f4036(0x133)](_0x413244){const _0x386ff1=a0_0x5f4036;return this[_0x386ff1(0x1f6)][_0x386ff1(0x19e)][_0x386ff1(0x13a)](_0x413244)||'';}[a0_0x5f4036(0x171)](){const _0x123f11=a0_0x5f4036;return this[_0x123f11(0x167)];}}function a0_0x35bb(){const _0x43c717=['mUqzk','XWWDq','zCUSo','EUrvr','hNXPR','height','startsWith','741201uEviZN','statusText','bkORf','sizeByWh','gray','XiUen','jGtIx','YVBFn','bilinear','isMirror','SrLHT','is_hd','TJXHk','contentType','VlosN','decode','Source\x20dimensions:\x20','push','hXKeB','[IPFSClient]\x20AggregateError\x20details:','sizeByW','PFfBm','sizeAboveFull','laoLi','BTtAb','[IPFSClient]\x20Request\x20timeout,\x20aborting...','1572417wlDiiW','name','toFormat','set','4415sBxCHi','generateTileLocal','grayscale','cAFWu','odqfo','qifKi','jsonldMediaType','res','kulIh','none','Detected\x20CID\x20id,\x20using\x20fromIPFS','result','HIfnK','OydNh','tDzPm','width','rotationImpl','BNyUx','regionByPct','rotationBy90s','canonicalLinkHeader','GkipZ','split','getHeader','Total\x20images\x20(including\x20overviews):\x20','format','ayjXU','sizeByForcedWh','Attempting\x20to\x20fetch\x20from\x20URL:\x20','log','get','flop','HetJL','uriPattern','iUiMb','Failed\x20to\x20fetch\x20from\x20IPFS:\x20','QIiUj','oluSv','568tPSTig','eSeLF','pdf','qWUZZ','stack','regionImpl','theLi','min','qkSlZ','QfBzV','YYuBS','DIHcr','errors','Rynqd','ossClient','toFixed','cAfWS','fill','Kyqtl','BcrEF','jp2','getImage','raw','xrQpy','slice','UvrrY','RpBYU','snApL','removeAlpha','Using\x20standard\x20HTTP\x20fetch','mhVjA','normalizeRegionParams','jpg','rotate','channels','BrnBa','extractCID','arrayBuffer','SBlYH','pFXqc','regionByPx','vvKkn','ugPbi','CzEAy','bitonal','LSryK','3357KZtThT','getData','formats','sTfLH','udnVV','pages','webp','normalizeQualityParams','Glcis','48699oJTFQU','lrWTT','[IPFSClient]\x20Error\x20message:','toLowerCase','sbLuh','ipfsUrl','nLMfo','floor','[IPFSClient]\x20Error\x20name:','b-w','preferredFormats','WpevA',',\x20w=','dlPvu','GzXBN','OEBno','x,\x20target:\x20','2140cdQPXZ','getWidth','verifiedFetch','Lryxi','Overview\x20dimensions:\x20','pMKZC','bwsKk','dwxxU','hYIxC','normalizeRotationParams','ZWxya','2470890tHgrHA','length','getSamplesPerPixel','uivgu','supports','normalizeSizeParams','mUwTg','DkTMF','extract','headers','limitInputPixels','vfyjt','NWvJh','sVCiS','PcDBV','rpgqG','buffer','from','2.1','EXTsQ','hpZlm','gMYSa','content','generateTileRemote','HIbZS','request','generateTilePipeline','pAZkN','nOSgT','PWRjr','VnrEm','qualityFormatImpl','lrRFl','byteOffset','cHyTR','bMjCA','isArray','ipUqi','sizeByPct','MvjyG','pow','string','ANdRy','SamplesPerPixel','JXQdz','message','nXdso','match','pop','skip\x20iiif\x20transform','Znrnt','getHeight','profileLinkHeader','ahZir','XAuOQ','xrnyU','MWHes','byteLength','qYovL','png','nqSra','generateImageInfo','regionSquare','sizeUpscaling','364qgbekz','sizeImpl','gPqie','FHhnu','2.0','metadata','ipfs://','paletteBitDepth','error','jBvDm','object','extraFormats','native','wkyzr','Selected\x20overview\x20with\x20scale:\x20','info','profile','Fdhmv','BitsPerSample','28233AgIGmi','body','sKUzH','rNRfA','KQWxA','sizeByConfinedWh','AiBBZ','Pyramid\x20optimization:\x20selected\x20page\x20','\x20(scale:\x20','tif','cors','2830MbivEt','degree','grey','response','SoRnK','color','hnMKn','[IPFSClient]\x20Error\x20stack:','NKyAu','VJYlw','fugVA','mirroring','getContentType','sizeByWhListed','TIefN','readRasters','aodzJ','bafy','\x20x\x20','LGcYC','QeqWQ','normalizeFormatParams','xEVBi','BIlxo','qVgOf','baseUriRedirect','MljNB','ZbTib','sizeByH','Failed\x20to\x20read\x20from\x20overview,\x20falling\x20back\x20to\x20main\x20image:\x20','kCLdD','FoPhi','rotationArbitrary','uxAPG','WZXxg','jjiLX','qualities','toBuffer','ensureAlpha','BvOCb',',\x20h=','abort','JCcpv','Using\x20automatic\x20overview\x20selection\x20based\x20on\x20resolution...','cBVNl','aMEJD','resize','objectKey','toColorspace',',\x20y=','QuSiZ','max','csomh','ezelV','[IPFSClient]\x20Error\x20during\x20request:','getImageCount','kMqUc','Output\x20size:\x20','ZODSd','orientation','QDOaI','lOcEs','[fromIPFS]\x20Creating\x20new\x20GeoTIFF\x20client\x20for\x20','VKZCr','yiRJQ','status','TddaU','wUSgv'];a0_0x35bb=function(){return _0x43c717;};return a0_0x35bb();}class IPFSClient extends BaseClient{constructor(_0x551078,_0x4999ef){const _0x1da44f=a0_0x5f4036;super(_0x551078),this['ipfsUrl']=_0x551078,this[_0x1da44f(0x18c)]=_0x4999ef;}[a0_0x5f4036(0x166)](_0x26d248){const _0x329a23=a0_0x5f4036,_0x4a7642=_0x26d248[_0x329a23(0x1c4)](/(?:ipfs:\/\/|\/ipfs\/)([a-zA-Z0-9]+)/);return _0x4a7642?_0x4a7642[0x1]:null;}async[a0_0x5f4036(0x1ae)]({headers:headers={}}={}){const _0x1c4c49=a0_0x5f4036,_0x5da7c8={'qVgOf':function(_0x3c8cf2,_0x12cac8){return _0x3c8cf2+_0x12cac8;},'Kyqtl':function(_0x5cbff3,_0x556a6f){return _0x5cbff3+_0x556a6f;},'PcDBV':function(_0xdb3dad,_0x311a76){return _0xdb3dad===_0x311a76;},'HfEAV':function(_0x39d661,_0x5bdcc8){return _0x39d661>=_0x5bdcc8;},'Rynqd':function(_0x494446,_0xdd558,_0x2c8420){return _0x494446(_0xdd558,_0x2c8420);},'bkTRk':function(_0x185909,_0x5aaa1f){return _0x185909===_0x5aaa1f;},'oluSv':_0x1c4c49(0x10c),'BrnBa':'SBggq','cAfWS':function(_0x4ab16a,_0xa5a9a7){return _0x4ab16a(_0xa5a9a7);},'wUSgv':_0x1c4c49(0x184),'WuXrJ':'[IPFSClient]\x20Error\x20during\x20request:','bkORf':function(_0x1bcbe8,_0xc1ef8){return _0x1bcbe8 instanceof _0xc1ef8;},'Lryxi':_0x1c4c49(0x181),'HetJL':_0x1c4c49(0x17b),'ScPsF':'[IPFSClient]\x20Error\x20stack:','Zxvht':_0x1c4c49(0x1df),'bMjCA':function(_0x33e05c,_0x91f004){return _0x33e05c in _0x91f004;},'theLi':_0x1c4c49(0x14e),'NMLVa':_0x1c4c49(0x111)};console[_0x1c4c49(0x139)](headers);const _0x1f3472=0xea60,_0x2f23d1=new AbortController(),_0x5d1efc=_0x5da7c8[_0x1c4c49(0x14f)](setTimeout,()=>{const _0x3af55a=_0x1c4c49;console[_0x3af55a(0x139)](_0x3af55a(0x117)),_0x2f23d1[_0x3af55a(0x21c)]();},_0x1f3472);try{if(_0x5da7c8['bkTRk'](_0x5da7c8[_0x1c4c49(0x141)],_0x5da7c8[_0x1c4c49(0x141)])){const _0x24ffba={'headers':headers,'signal':_0x2f23d1['signal'],'session':![]},_0x3bde78=await this[_0x1c4c49(0x18c)](this[_0x1c4c49(0x17e)],_0x24ffba);if(!_0x3bde78['ok']){if(_0x5da7c8[_0x1c4c49(0x165)]===_0x5da7c8[_0x1c4c49(0x165)])throw new Error(_0x1c4c49(0x13f)+_0x3bde78['status']+'\x20'+_0x3bde78[_0x1c4c49(0x23f)]);else _0x4b533f<_0x3cec48[_0x1c4c49(0x164)]?_0x2901a1[_0x5da7c8[_0x1c4c49(0x20b)](_0x4344d8,_0x4052b2)]=_0xb9c267[_0x543570+_0x5a64e0]:_0x4bc5c6[_0x5da7c8[_0x1c4c49(0x154)](_0x5e3879,_0x2ce546)]=_0x5da7c8[_0x1c4c49(0x1a3)](_0x19faf1,0x3)?0xff:0x0;}const _0x14686a=await _0x3bde78[_0x1c4c49(0x167)]();return _0x5da7c8[_0x1c4c49(0x152)](clearTimeout,_0x5d1efc),new IPFSResponse(_0x3bde78,_0x14686a);}else _0x4710bf[_0x1c4c49(0x107)]&&(_0x16abe7=_0x2fc071[_0x1c4c49(0x13b)]()),_0x64195d=_0x328ef1[_0x1c4c49(0x163)](_0x2cab78[_0x1c4c49(0x1f4)]);}catch(_0xf8fca){if(_0x1c4c49(0x1b3)===_0x5da7c8[_0x1c4c49(0x236)])_0x5da7c8['HfEAV'](_0xa7cb0e[_0x1c4c49(0x22e)],0x5)&&(_0x4b5966[_0x1c4c49(0x139)](_0x242a62[_0x1c4c49(0x22e)]),_0x2faa0f={'width':_0x3b6c7a[_0x1c4c49(0x23c)],'height':_0x3d3738['width']});else{_0x5da7c8['cAfWS'](clearTimeout,_0x5d1efc),console[_0x1c4c49(0x1dd)](_0x5da7c8['WuXrJ'],_0xf8fca);_0x5da7c8[_0x1c4c49(0x240)](_0xf8fca,Error)&&(console[_0x1c4c49(0x1dd)](_0x5da7c8[_0x1c4c49(0x18d)],_0xf8fca[_0x1c4c49(0x119)]),console[_0x1c4c49(0x1dd)](_0x5da7c8[_0x1c4c49(0x13c)],_0xf8fca[_0x1c4c49(0x1c2)]),console[_0x1c4c49(0x1dd)](_0x5da7c8['ScPsF'],_0xf8fca[_0x1c4c49(0x146)]));_0xf8fca&&typeof _0xf8fca===_0x5da7c8['Zxvht']&&_0x5da7c8[_0x1c4c49(0x1b8)](_0x5da7c8[_0x1c4c49(0x148)],_0xf8fca)&&console[_0x1c4c49(0x1dd)](_0x5da7c8['NMLVa'],_0xf8fca[_0x1c4c49(0x14e)]);throw _0xf8fca;}}}}async function fromIPFS(_0xc5bf74,_0x25dd2c){const _0x27818e=a0_0x5f4036,_0x3d8f32={'nXdso':function(_0x46ceb3,_0x4c1d55){return _0x46ceb3!==_0x4c1d55;},'nLMfo':_0x27818e(0x215),'SBlYH':function(_0x3a5087,_0x34f7b5){return _0x3a5087(_0x34f7b5);},'jBvDm':function(_0x32c9c4,_0x426b3c){return _0x32c9c4>=_0x426b3c;},'qifKi':function(_0x516bb0,_0x5c6cec){return _0x516bb0 instanceof _0x5c6cec;},'FoPhi':'RptMy'},_0x3fe804=geotiffCache[_0x27818e(0x13a)](_0xc5bf74);if(_0x3fe804){if(_0x3d8f32[_0x27818e(0x121)](_0x3fe804,Promise))return console[_0x27818e(0x139)]('[fromIPFS]\x20Waiting\x20for\x20in-flight\x20GeoTIFF\x20creation\x20for\x20'+_0xc5bf74),await _0x3fe804;return console[_0x27818e(0x139)]('[fromIPFS]\x20Using\x20cached\x20GeoTIFF\x20client\x20for\x20'+_0xc5bf74),_0x3fe804;}console[_0x27818e(0x139)](_0x27818e(0x231)+_0xc5bf74);const _0x5a61e1=((async()=>{const _0x507355=_0x27818e;if(_0x3d8f32[_0x507355(0x1c3)](_0x3d8f32[_0x507355(0x17f)],_0x507355(0x1cc))){const _0x536249=new IPFSClient(_0xc5bf74,_0x25dd2c),_0x4acd3f=await _0x3d8f32[_0x507355(0x168)](fromCustomClient,_0x536249);return geotiffCache[_0x507355(0x11b)](_0xc5bf74,_0x4acd3f),_0x4acd3f;}else _0x23c1ad=_0x20062a,_0x3d8305=_0x2abf68;})());geotiffCache[_0x27818e(0x11b)](_0xc5bf74,_0x5a61e1);try{if(_0x27818e(0x136)!==_0x3d8f32[_0x27818e(0x212)])return await _0x5a61e1;else _0xada409=!![],_0x59cc1a=_0x3595d7['rotate'](),_0x3d8f32[_0x27818e(0x1de)](_0x8ee711[_0x27818e(0x22e)],0x5)&&(_0x5c5078={'width':_0x1380b6['height'],'height':_0x1c9726['width']});}catch(_0x2ce800){geotiffCache['delete'](_0xc5bf74);throw _0x2ce800;}}export default class SharpIiifImageShims extends a0_0x40b134{constructor(_0x19d341=MAX_AREA,_0x4f2cea=MAX_WIDTH,_0x3976ea=MAX_HEIGHT){super(_0x19d341,_0x4f2cea,_0x3976ea);}[a0_0x5f4036(0x147)](_0x281aac,_0x3f7c07){const _0x27ef78=a0_0x5f4036;_0x281aac&&(_0x3f7c07=_0x3f7c07[_0x27ef78(0x19d)]({'left':_0x281aac['x'],'top':_0x281aac['y'],'width':_0x281aac['w'],'height':_0x281aac['h']}));}['sizeImpl'](_0x1d7c77,_0x28bd84){const _0x41626a=a0_0x5f4036,_0x57db5f={'JCcpv':_0x41626a(0x153)};_0x1d7c77&&(_0x28bd84=_0x28bd84['resize']({..._0x1d7c77,'fit':_0x57db5f[_0x41626a(0x21d)]}));}[a0_0x5f4036(0x12c)](_0x2401ad,_0x4e63aa){const _0x5becec=a0_0x5f4036;_0x2401ad&&(_0x2401ad['isMirror']&&(_0x4e63aa=_0x4e63aa['flop']()),_0x4e63aa=_0x4e63aa[_0x5becec(0x163)](_0x2401ad['degree']));}['qualityFormatImpl'](_0x5b8e39,_0x1baecb,_0x4aa875,_0x1580d6,_0xdb4c57){const _0x65b276=a0_0x5f4036,_0x343dfe={'aodzJ':function(_0x170e14,_0x5100ff){return _0x170e14===_0x5100ff;},'uxAPG':_0x65b276(0x201),'gMYSa':'nuKcU','JQiLU':function(_0x50d231,_0x1c13a3){return _0x50d231===_0x1c13a3;},'BcrEF':'grey','kCLdD':function(_0xdb543a,_0x42e276){return _0xdb543a===_0x42e276;},'VlTYK':_0x65b276(0x16e),'lrRFl':function(_0x90fe62,_0x16024c){return _0x90fe62===_0x16024c;},'QIiUj':function(_0xa71ed7,_0x3770d5){return _0xa71ed7===_0x3770d5;},'snApL':_0x65b276(0x182)};if(_0x5b8e39){if(_0x343dfe[_0x65b276(0x203)](_0x5b8e39,_0x65b276(0x1f8))){if(_0x343dfe[_0x65b276(0x214)]!==_0x343dfe[_0x65b276(0x1aa)])_0x4aa875=_0x4aa875['toColorspace']('srgb');else{const _0x12e509=_0x294e89[_0x65b276(0x1c4)](/(?:ipfs:\/\/|\/ipfs\/)([a-zA-Z0-9]+)/);return _0x12e509?_0x12e509[0x1]:null;}}else{if(_0x5b8e39===_0x65b276(0x102)||_0x343dfe['JQiLU'](_0x5b8e39,_0x343dfe[_0x65b276(0x155)]))_0x4aa875=_0x4aa875[_0x65b276(0x11e)]();else _0x343dfe['kCLdD'](_0x5b8e39,_0x343dfe['VlTYK'])&&(_0x4aa875=_0x4aa875['threshold']());}}_0x1baecb&&(_0x4aa875=_0x4aa875[_0x65b276(0x11a)](_0x1baecb)),_0x343dfe[_0x65b276(0x211)](_0x1580d6,_0x65b276(0x1d0))&&(_0x343dfe[_0x65b276(0x1b5)](_0xdb4c57[_0x65b276(0x1dc)],0x1)||_0x343dfe[_0x65b276(0x140)](_0xdb4c57['space'],_0x343dfe['snApL']))&&(_0x4aa875=_0x4aa875['toColorspace'](_0x343dfe[_0x65b276(0x15d)])['png']({'colors':0x2}));}async[a0_0x5f4036(0x1ac)](_0x1be9a0,_0x26694a,_0x4cbeeb){const _0x4c848e=a0_0x5f4036,_0x27a452={'eSeLF':_0x4c848e(0x153),'nqSra':function(_0x465d50,_0x3ed75e){return _0x465d50+_0x3ed75e;},'VKZCr':function(_0x254331,_0x48fb91){return _0x254331*_0x48fb91;},'Fdhmv':function(_0x57740d,_0x2dc916){return _0x57740d<_0x2dc916;},'ahZir':function(_0x5dcf3e,_0x35567f){return _0x5dcf3e+_0x35567f;},'mUqzk':function(_0x1931fd,_0x4cf919){return _0x1931fd===_0x4cf919;},'LGcYC':function(_0x442ff4,_0x3c69d3){return _0x442ff4===_0x3c69d3;},'iUiMb':_0x4c848e(0x1be),'dlPvu':_0x4c848e(0x15f),'iJnpe':function(_0x51b1fc,_0xe2d63a){return _0x51b1fc(_0xe2d63a);},'NWvJh':function(_0xaff736,_0x1a2efb,_0xe32718){return _0xaff736(_0x1a2efb,_0xe32718);},'SoRnK':function(_0x1cd4d0,_0x231db8){return _0x1cd4d0>=_0x231db8;},'zXiRJ':function(_0x2e9f64,_0x273525){return _0x2e9f64!==_0x273525;},'XWWDq':'KQWxA','cBVNl':function(_0xcf4ec1,_0x3a96b6){return _0xcf4ec1!==_0x3a96b6;},'zCUSo':_0x4c848e(0x14b),'hpZlm':function(_0x42797e,_0x284d2c){return _0x42797e/_0x284d2c;},'cHyTR':function(_0x5b8f3e,_0x1c8309){return _0x5b8f3e/_0x1c8309;},'aMEJD':function(_0xb69773,_0xff074c){return _0xb69773<=_0xff074c;},'jGtIx':function(_0x412bc2,_0x46b175){return _0x412bc2>_0x46b175;},'TJXHk':function(_0xbc697f,_0x4bfb0e){return _0xbc697f/_0x4bfb0e;},'XiUen':function(_0x109754,_0x9cbbac){return _0x109754+_0x9cbbac;},'gGYCR':_0x4c848e(0x106),'qkSlZ':_0x4c848e(0x1e2),'pFXqc':'QYovg','hZNLv':function(_0x52e1cd,_0x5a3f41){return _0x52e1cd+_0x5a3f41;},'lOcEs':_0x4c848e(0x125),'lrWTT':function(_0x3b683b,_0x4bcbe5){return _0x3b683b>_0x4bcbe5;},'uivgu':function(_0x23e0f2,_0x456be4){return _0x23e0f2>_0x456be4;},'Glcis':function(_0x2ed78f,_0x41c027,_0x35a06a){return _0x2ed78f(_0x41c027,_0x35a06a);}},_0x512fad=_0x1be9a0['split']('/'),_0x31c662=_0x512fad[_0x4c848e(0x1c5)](),_0x505cca=_0x31c662[_0x4c848e(0x132)]('.')[0x0],_0x39ffbe=_0x31c662[_0x4c848e(0x132)]('.')[0x1],_0x5b6031=_0x512fad[_0x4c848e(0x1c5)](),_0x4de020=_0x512fad[_0x4c848e(0x1c5)](),_0x1dac51=_0x512fad['pop'](),_0x2637ea=_0x512fad[_0x4c848e(0x1c5)]();let _0x5698bd={'width':_0x26694a[_0x4c848e(0x12b)],'height':_0x26694a[_0x4c848e(0x23c)]};const _0x590e54=super[_0x4c848e(0x161)](_0x1dac51,_0x5698bd),_0x502238=super['normalizeSizeParams'](_0x4de020,{'width':_0x590e54?_0x590e54['w']:_0x5698bd[_0x4c848e(0x12b)],'height':_0x590e54?_0x590e54['h']:_0x5698bd[_0x4c848e(0x23c)]}),{x:_0x62a21d,y:_0x36aa0a,w:_0x248656,h:_0x176009}=_0x590e54??{'x':0x0,'y':0x0,'w':_0x5698bd[_0x4c848e(0x12b)],'h':_0x5698bd[_0x4c848e(0x23c)]},{width:_0xcc5348,height:_0x177003}=_0x502238;console[_0x4c848e(0x139)](_0x4c848e(0x138)+_0x4cbeeb);let _0x24e0a1;if(_0x27a452[_0x4c848e(0x206)](typeof _0x4cbeeb,_0x27a452[_0x4c848e(0x13e)]))console['log'](_0x27a452[_0x4c848e(0x186)]),_0x24e0a1=await _0x27a452['iJnpe'](fromUrl,_0x4cbeeb);else{if(typeof _0x2637ea===_0x27a452[_0x4c848e(0x13e)]&&_0x2637ea[_0x4c848e(0x23d)](_0x4c848e(0x204))){console['log'](_0x4c848e(0x126));const _0x1d6193=_0x4c848e(0x1db)+_0x2637ea;_0x24e0a1=await _0x27a452[_0x4c848e(0x1a1)](fromIPFS,_0x1d6193,_0x4cbeeb);}else _0x24e0a1=await _0x27a452[_0x4c848e(0x1a1)](fromOSS,_0x2637ea,_0x4cbeeb);}const _0x303bc3=await _0x24e0a1[_0x4c848e(0x157)](0x0);console[_0x4c848e(0x139)](_0x4c848e(0x10e)+_0x303bc3['getWidth']()+_0x4c848e(0x205)+_0x303bc3[_0x4c848e(0x1c8)]()),console['log']('Extracting\x20region:\x20x='+_0x62a21d+_0x4c848e(0x224)+_0x36aa0a+_0x4c848e(0x185)+_0x248656+_0x4c848e(0x21b)+_0x176009),console[_0x4c848e(0x139)](_0x4c848e(0x22c)+_0xcc5348+'\x20x\x20'+_0x177003);const _0xa35c70=await _0x24e0a1[_0x4c848e(0x22a)]();console[_0x4c848e(0x139)](_0x4c848e(0x134)+_0xa35c70);const _0x396ff6=_0x303bc3[_0x4c848e(0x197)]();let _0x1718a8;_0x27a452[_0x4c848e(0x1f7)](_0x396ff6,0x3)?_0x27a452['zXiRJ'](_0x4c848e(0x1ec),_0x27a452[_0x4c848e(0x238)])?_0x583b5f=_0x44e34d[_0x4c848e(0x221)]({..._0x44e16d,'fit':_0x27a452[_0x4c848e(0x143)]}):(_0x1718a8=[0x0,0x1,0x2],_0x396ff6>=0x4&&_0x1718a8['push'](0x3)):_0x27a452[_0x4c848e(0x21f)](_0x27a452[_0x4c848e(0x239)],_0x27a452[_0x4c848e(0x239)])?(_0x54a799[_0x4c848e(0x139)](_0x37cb26['orientation']),_0x2f6d7b={'width':_0x46bca7[_0x4c848e(0x23c)],'height':_0x3b1afc[_0x4c848e(0x12b)]}):_0x1718a8=[0x0];console[_0x4c848e(0x139)](_0x4c848e(0x21e));const _0x6d5c3f=Math[_0x4c848e(0x226)](_0x27a452[_0x4c848e(0x1a9)](_0x248656,_0xcc5348),_0x27a452[_0x4c848e(0x1b7)](_0x176009,_0x177003));let _0x35598d=_0x303bc3,_0x1c8746=0x1;for(let _0x53d33e=0x0;_0x27a452[_0x4c848e(0x1e6)](_0x53d33e,_0xa35c70);_0x53d33e++){const _0x3a851a=await _0x24e0a1[_0x4c848e(0x157)](_0x53d33e),_0x211fe=_0x27a452['cHyTR'](_0x303bc3[_0x4c848e(0x18b)](),_0x3a851a[_0x4c848e(0x18b)]());_0x27a452[_0x4c848e(0x220)](_0x211fe,_0x6d5c3f)&&_0x27a452[_0x4c848e(0x104)](_0x211fe,_0x1c8746)&&(_0x1c8746=_0x211fe,_0x35598d=_0x3a851a);}console[_0x4c848e(0x139)](_0x4c848e(0x1e3)+_0x1c8746[_0x4c848e(0x151)](0x2)+'x'),console[_0x4c848e(0x139)](_0x4c848e(0x18e)+_0x35598d[_0x4c848e(0x18b)]()+_0x4c848e(0x205)+_0x35598d[_0x4c848e(0x1c8)]());const _0x353abd=[Math[_0x4c848e(0x180)](_0x62a21d/_0x1c8746),Math['floor'](_0x27a452[_0x4c848e(0x10a)](_0x36aa0a,_0x1c8746)),Math['floor'](_0x27a452['XiUen'](_0x62a21d,_0x248656)/_0x1c8746),Math['floor'](_0x27a452[_0x4c848e(0x103)](_0x36aa0a,_0x176009)/_0x1c8746)];let _0x138978;try{'BFFyT'===_0x4c848e(0x1cd)?_0x680565[_0x27a452[_0x4c848e(0x1d1)](_0x377895,_0x2280f6)]=_0x281819[_0x27a452[_0x4c848e(0x1d1)](_0x361928,_0x534349)]:_0x138978=await _0x35598d['readRasters']({'window':_0x353abd,'width':_0xcc5348,'height':_0x177003,'samples':_0x1718a8,'interleave':!![],'resampleMethod':_0x27a452['gGYCR']});}catch(_0x411505){if(_0x27a452['mUqzk'](_0x27a452[_0x4c848e(0x14a)],_0x27a452[_0x4c848e(0x169)])){const _0x39c0bb=_0x27a452[_0x4c848e(0x232)](_0x4fd64a,_0x3fd716[_0x4c848e(0x164)]),_0x29d8a3=_0x27a452[_0x4c848e(0x232)](_0x176e9c,_0x8668c7);for(let _0xa8423=0x0;_0x27a452['Fdhmv'](_0xa8423,_0x255df7);_0xa8423+=0x1){_0xa8423<_0x32f1b8['channels']?_0x246df2[_0x29d8a3+_0xa8423]=_0x59245d[_0x27a452[_0x4c848e(0x1ca)](_0x39c0bb,_0xa8423)]:_0x1a7306[_0x27a452[_0x4c848e(0x1ca)](_0x29d8a3,_0xa8423)]=_0x27a452[_0x4c848e(0x237)](_0xa8423,0x3)?0xff:0x0;}}else{console['log'](_0x4c848e(0x210)+_0x411505);const _0xbfb916=[_0x62a21d,_0x36aa0a,_0x27a452['hZNLv'](_0x62a21d,_0x248656),_0x27a452[_0x4c848e(0x1ca)](_0x36aa0a,_0x176009)];_0x138978=await _0x303bc3[_0x4c848e(0x202)]({'window':_0xbfb916,'width':_0xcc5348,'height':_0x177003,'samples':_0x1718a8,'interleave':!![],'resampleMethod':_0x27a452['gGYCR']});}}const _0x14d579=_0x1718a8[_0x4c848e(0x196)],_0x100f40=Buffer[_0x4c848e(0x1a6)](_0x138978['buffer'],_0x138978[_0x4c848e(0x1b6)],_0x138978[_0x4c848e(0x1ce)]),_0x43a913={'page':selectedPage,'sequentialRead':!![],'failOn':_0x27a452[_0x4c848e(0x230)],'raw':{'width':_0xcc5348,'height':_0x177003,'channels':_0x14d579}};(_0x27a452[_0x4c848e(0x17a)](_0xcc5348,0x1388)||_0x27a452[_0x4c848e(0x198)](_0x177003,0x1388))&&(_0x43a913[_0x4c848e(0x19f)]=![]);let _0xf8a997=_0x27a452[_0x4c848e(0x178)](a0_0x4e4605,_0x100f40,_0x43a913);const _0x40d191=super['normalizeRotationParams'](_0x5b6031);this[_0x4c848e(0x12c)](_0x40d191,_0xf8a997);const _0x5e6595=super[_0x4c848e(0x177)](_0x505cca),_0x588cb6=super[_0x4c848e(0x208)](_0x39ffbe,_0x26694a[_0x4c848e(0x135)]);this[_0x4c848e(0x1b4)](_0x5e6595,_0x588cb6,_0xf8a997,_0x39ffbe,_0x26694a);const _0x23b8bd={};return _0x23b8bd['body']=_0xf8a997,_0x23b8bd['contentType']=super[_0x4c848e(0x1ff)](_0x588cb6),_0x23b8bd;}async[a0_0x5f4036(0x11d)](_0x2007bf,_0x2e0c54,_0x4c31f1){const _0x5c828d=a0_0x5f4036,_0x12b36d={'FTloR':function(_0x3e1575,_0x4c8a57){return _0x3e1575||_0x4c8a57;},'ugPbi':function(_0x4321cf,_0x406c99){return _0x4321cf>_0x406c99;},'BNyUx':function(_0x50ad1d,_0x22486a){return _0x50ad1d>=_0x22486a;},'kMqUc':'Pyramid\x20optimization:\x20using\x20full\x20resolution\x20page\x20(scale\x20≈\x201.0)','MMQuP':_0x5c828d(0x124),'ipUqi':_0x5c828d(0x16d),'DIHcr':function(_0x337917,_0x383746){return _0x337917-_0x383746;},'qYovL':function(_0x46eaa3,_0x39f246){return _0x46eaa3-_0x39f246;},'QeqWQ':function(_0x592ea0,_0x4ab9e9){return _0x592ea0/_0x4ab9e9;},'ezelV':function(_0x39f9ee,_0x39de5f){return _0x39f9ee/_0x39de5f;},'JzWFg':function(_0x446fbb,_0x38a89a){return _0x446fbb>_0x38a89a;},'BIlxo':function(_0x32d0a9,_0x1a56a7){return _0x32d0a9!==_0x1a56a7;},'PFfBm':_0x5c828d(0x21a),'gPqie':function(_0x54f680,_0x5b3ba6){return _0x54f680*_0x5b3ba6;},'hnMKn':function(_0x2bb279,_0x4a24b4){return _0x2bb279*_0x4a24b4;},'SrLHT':function(_0x31102e,_0x85d8f5){return _0x31102e>=_0x85d8f5;},'ANdRy':function(_0x24c486,_0x5374e6){return _0x24c486*_0x5374e6;},'qWUZZ':_0x5c828d(0x125),'vvKkn':function(_0x4c2aa6,_0x8bab71){return _0x4c2aa6===_0x8bab71;},'YYuBS':_0x5c828d(0x1fb),'mhVjA':'RgNRQ','GbmAu':function(_0x54318a,_0x2273cb){return _0x54318a/_0x2273cb;},'EXTsQ':function(_0x4b0bee,_0x3d4a90){return _0x4b0bee*_0x3d4a90;},'ZbTib':function(_0x3e8241,_0x578c23){return _0x3e8241*_0x578c23;},'pMKZC':function(_0x17bb26,_0x1ff721){return _0x17bb26-_0x1ff721;},'pVoNP':'IxSWs','BTtAb':function(_0x5242f4,_0x10e519,_0x210c18){return _0x5242f4(_0x10e519,_0x210c18);}},_0x105579=_0x2007bf[_0x5c828d(0x132)]('/'),_0x4be557=_0x105579[_0x5c828d(0x1c5)](),_0x3e393e=_0x4be557[_0x5c828d(0x132)]('.')[0x0],_0x3501fd=_0x4be557[_0x5c828d(0x132)]('.')[0x1],_0x25ccfc=_0x105579['pop'](),_0x26385e=_0x105579[_0x5c828d(0x1c5)](),_0x339db7=_0x105579[_0x5c828d(0x1c5)](),_0x2795d6=super['normalizeRegionParams'](_0x339db7,_0x2e0c54),_0x9e7723=super[_0x5c828d(0x19a)](_0x26385e,{'width':_0x2795d6?_0x2795d6['w']:_0x2e0c54[_0x5c828d(0x12b)],'height':_0x2795d6?_0x2795d6['h']:_0x2e0c54['height']}),_0x17b7a2=super[_0x5c828d(0x193)](_0x25ccfc),_0x596140=super[_0x5c828d(0x177)](_0x3e393e),_0x59184a=super['normalizeFormatParams'](_0x3501fd,_0x2e0c54['format']),{x:_0x41e5c7,y:_0x101a23,w:_0x5b5e4c,h:_0x38eb35}=_0x2795d6||{'x':0x0,'y':0x0,'w':_0x2e0c54[_0x5c828d(0x12b)],'h':_0x2e0c54[_0x5c828d(0x23c)]},{width:_0x4f6d90,height:_0x370429}=_0x12b36d['FTloR'](_0x9e7723,{'width':_0x2e0c54['width'],'height':_0x2e0c54[_0x5c828d(0x23c)]});let _0x4b2950=0x0,_0x251929;if(_0x2e0c54[_0x5c828d(0x175)]&&_0x12b36d[_0x5c828d(0x16c)](_0x2e0c54[_0x5c828d(0x175)],0x1)){const _0x3037ef=_0x4f6d90/_0x5b5e4c,_0x34cfeb=_0x370429/_0x38eb35,_0x2513e8=Math[_0x5c828d(0x226)](_0x3037ef,_0x34cfeb);if(_0x12b36d[_0x5c828d(0x12d)](_0x2513e8,0.95))console[_0x5c828d(0x139)](_0x12b36d[_0x5c828d(0x22b)]),_0x4b2950=0x0;else{if(_0x12b36d['MMQuP']!==_0x12b36d[_0x5c828d(0x1ba)]){_0x4b2950=_0x12b36d[_0x5c828d(0x14d)](_0x2e0c54['pages'],0x1);const _0xeeb1de=Math[_0x5c828d(0x1bd)](0x2,_0x12b36d[_0x5c828d(0x1cf)](_0x2e0c54[_0x5c828d(0x175)],0x1));let _0x4e78c6=_0x12b36d[_0x5c828d(0x207)](_0x2e0c54[_0x5c828d(0x12b)],_0xeeb1de),_0x26a605=_0x12b36d[_0x5c828d(0x228)](_0x2e0c54[_0x5c828d(0x23c)],_0xeeb1de);while(_0x12b36d['JzWFg'](_0x4b2950,0x0)){if(_0x12b36d[_0x5c828d(0x20a)](_0x12b36d[_0x5c828d(0x113)],_0x12b36d['PFfBm']))return this[_0x5c828d(0x167)];else{const _0x12e506=_0x12b36d['gPqie'](_0x5b5e4c,_0x12b36d[_0x5c828d(0x228)](_0x4e78c6,_0x2e0c54[_0x5c828d(0x12b)])),_0x3f7cd6=_0x12b36d['gPqie'](_0x38eb35,_0x26a605/_0x2e0c54['height']);if(_0x12e506>=_0x12b36d[_0x5c828d(0x1f9)](_0x4f6d90,1.1)&&_0x12b36d[_0x5c828d(0x108)](_0x3f7cd6,_0x12b36d[_0x5c828d(0x1bf)](_0x370429,1.1)))break;_0x4b2950--,_0x4e78c6*=0x2,_0x26a605*=0x2;}}console[_0x5c828d(0x139)](_0x5c828d(0x1ef)+_0x4b2950+'/'+(_0x2e0c54[_0x5c828d(0x175)]-0x1)+_0x5c828d(0x1f0)+_0x2513e8[_0x5c828d(0x151)](0x2)+_0x5c828d(0x189)+_0x4f6d90+'x'+_0x370429+')');}else _0x507928[_0x5c828d(0x10f)](0x3);}const _0x3d30ed=_0x2e0c54[_0x5c828d(0x109)]?{'limitInputPixels':![],'page':_0x4b2950,'sequentialRead':!![],'failOn':_0x5c828d(0x125)}:{'page':_0x4b2950,'sequentialRead':!![],'failOn':_0x12b36d[_0x5c828d(0x145)]};_0x251929=a0_0x4e4605(_0x4c31f1,_0x3d30ed);if(_0x2795d6&&_0x12b36d[_0x5c828d(0x16c)](_0x4b2950,0x0)){if(_0x12b36d[_0x5c828d(0x16b)](_0x12b36d[_0x5c828d(0x14c)],_0x12b36d[_0x5c828d(0x160)]))_0x2dcdef=[0x0,0x1,0x2],_0x3b68c8>=0x4&&_0x52699f[_0x5c828d(0x10f)](0x3);else{const _0x823113=await _0x251929['metadata'](),_0x1350f7=_0x12b36d['GbmAu'](_0x823113[_0x5c828d(0x12b)],_0x2e0c54[_0x5c828d(0x12b)]),_0x3ea3af={'x':Math[_0x5c828d(0x180)](_0x12b36d[_0x5c828d(0x1d7)](_0x41e5c7,_0x1350f7)),'y':Math[_0x5c828d(0x180)](_0x101a23*_0x1350f7),'w':Math['floor'](_0x12b36d[_0x5c828d(0x1a8)](_0x5b5e4c,_0x1350f7)),'h':Math[_0x5c828d(0x180)](_0x12b36d[_0x5c828d(0x20e)](_0x38eb35,_0x1350f7))};_0x3ea3af['w']=Math[_0x5c828d(0x149)](_0x3ea3af['w'],_0x12b36d[_0x5c828d(0x14d)](_0x823113[_0x5c828d(0x12b)],_0x3ea3af['x'])),_0x3ea3af['h']=Math['min'](_0x3ea3af['h'],_0x12b36d[_0x5c828d(0x18f)](_0x823113['height'],_0x3ea3af['y'])),this[_0x5c828d(0x147)](_0x3ea3af,_0x251929);}}else this[_0x5c828d(0x147)](_0x2795d6,_0x251929);}else{if('IRfgi'!==_0x12b36d['pVoNP']){const _0x4cfa56=_0x2e0c54[_0x5c828d(0x109)]?{'limitInputPixels':![],'sequentialRead':!![],'failOn':_0x12b36d['qWUZZ']}:{'sequentialRead':!![],'failOn':_0x12b36d[_0x5c828d(0x145)]};_0x251929=_0x12b36d[_0x5c828d(0x116)](a0_0x4e4605,_0x4c31f1,_0x4cfa56),this[_0x5c828d(0x147)](_0x2795d6,_0x251929);}else throw new _0x3dad32(_0x5c828d(0x13f)+_0x394e66[_0x5c828d(0x234)]+'\x20'+_0x24207e['statusText']);}this[_0x5c828d(0x1d6)](_0x9e7723,_0x251929),this[_0x5c828d(0x12c)](_0x17b7a2,_0x251929),this['qualityFormatImpl'](_0x596140,_0x59184a,_0x251929,_0x3501fd,_0x2e0c54);const _0x54aa0e={};return _0x54aa0e[_0x5c828d(0x1e9)]=_0x251929,_0x54aa0e[_0x5c828d(0x10b)]=super['getContentType'](_0x59184a),_0x54aa0e;}[a0_0x5f4036(0x1d2)](_0x29e853,_0x5af81c,_0x4132ff='',_0x5d0723,_0x2f4efc='2',_0x297b0=0x200,_0x1dbae1=0x200){const _0x19f071=a0_0x5f4036,_0x4b38de={'UvrrY':function(_0x255626,_0x10792d){return _0x255626>=_0x10792d;},'FHhnu':function(_0x280558,_0x491e65){return _0x280558===_0x491e65;},'yiRJQ':_0x19f071(0x1d9),'cAFWu':_0x19f071(0x1a7),'nOSgT':'ZODSd','HIfnK':'compliance','odqfo':function(_0x49dbd5,_0x592b39){return _0x49dbd5===_0x592b39;},'udnVV':'MZeNW','GzXBN':_0x19f071(0x105),'laoLi':_0x19f071(0x162),'OydNh':'png','bwsKk':_0x19f071(0x156),'hYIxC':_0x19f071(0x144),'rpgqG':_0x19f071(0x1f1),'csomh':_0x19f071(0x217),'yyYvw':_0x19f071(0x16e),'Ziotk':'default','iTmWA':_0x19f071(0x1e1),'PWRjr':_0x19f071(0x1f5),'MvjyG':_0x19f071(0x199),'LSryK':function(_0x56eee6,_0x3a69c5){return _0x56eee6(_0x3a69c5);},'XNZRu':'3.0'};let _0x5382f9={'width':_0x5af81c['width'],'height':_0x5af81c['height']};_0x5af81c&&_0x5af81c[_0x19f071(0x22e)]&&(_0x4b38de[_0x19f071(0x15b)](_0x5af81c['orientation'],0x5)&&(console[_0x19f071(0x139)](_0x5af81c[_0x19f071(0x22e)]),_0x5382f9={'width':_0x5af81c[_0x19f071(0x23c)],'height':_0x5af81c['width']}));const _0x3cead9=super['generateImageInfoTemp'](_0x29e853,_0x5382f9,_0x5d0723,_0x2f4efc,_0x297b0,_0x1dbae1),_0x241953=_0x3cead9[_0x19f071(0x1e4)];if(_0x4b38de[_0x19f071(0x1d8)](_0x5d0723,_0x4b38de[_0x19f071(0x233)])||_0x4b38de[_0x19f071(0x1d8)](_0x5d0723,_0x4b38de[_0x19f071(0x11f)])){if(_0x4b38de[_0x19f071(0x1b1)]!==_0x19f071(0x22d))_0x3a9ec1=_0x277aa5['ensureAlpha']();else{_0x241953[_0x19f071(0x1e5)]=[super[_0x19f071(0x13d)](_0x4b38de[_0x19f071(0x128)],_0x5d0723,_0x2f4efc)];if(_0x4b38de['FHhnu'](_0x2f4efc,'2')){if(_0x4b38de[_0x19f071(0x120)](_0x4b38de[_0x19f071(0x174)],_0x4b38de[_0x19f071(0x187)])){const _0x503d43=new _0x5175cc(_0x20e12e,_0x57f93a);return _0x20d0cf(_0x503d43);}else{const _0x3da0c1={};_0x3da0c1[_0x19f071(0x172)]=[_0x4b38de[_0x19f071(0x115)],_0x4b38de[_0x19f071(0x129)],_0x19f071(0x176),_0x4b38de[_0x19f071(0x190)],_0x4b38de[_0x19f071(0x192)],_0x4b38de[_0x19f071(0x1a4)]],_0x3da0c1[_0x4b38de[_0x19f071(0x227)]]=[_0x19f071(0x1f8),_0x19f071(0x102),_0x4b38de['yyYvw'],_0x4b38de['Ziotk'],_0x4b38de['iTmWA'],_0x4b38de[_0x19f071(0x1b2)]],_0x3da0c1[_0x4b38de[_0x19f071(0x1bc)]]=SUPPORTS[_0x4b38de[_0x19f071(0x16f)](Number,_0x5d0723)],_0x241953['profile']['push'](_0x3da0c1);}}}}return _0x4b38de[_0x19f071(0x1d8)](_0x5d0723,_0x4b38de['XNZRu'])&&(_0x4132ff&&(_0x241953[_0x19f071(0x1e0)]=[_0x4132ff],_0x241953[_0x19f071(0x183)]=[_0x4132ff])),_0x4132ff&&(_0x241953[_0x19f071(0x172)]=[_0x4132ff]),_0x3cead9;}[a0_0x5f4036(0x1af)](_0x438f38,_0x13163a){const _0x2d12fc=a0_0x5f4036,_0x15633d={'rNRfA':function(_0x2e845f,_0x13afa5){return _0x2e845f(_0x13afa5);},'DkTMF':function(_0x76e07,_0xcd07e5){return _0x76e07 instanceof _0xcd07e5;},'slkvS':_0x2d12fc(0x181),'VJYlw':_0x2d12fc(0x17b),'HIbZS':function(_0x2e996,_0x2161fd){return _0x2e996===_0x2161fd;},'QDOaI':function(_0x188b5a,_0xb8ad7c){return _0x188b5a in _0xb8ad7c;},'fugVA':'errors','xrQpy':'[IPFSClient]\x20AggregateError\x20details:','sKUzH':function(_0x5cb06b,_0x1844e5){return _0x5cb06b(_0x1844e5);},'TddaU':function(_0x84e7f4,_0x408b1f){return _0x84e7f4>=_0x408b1f;},'hNXPR':function(_0x453de2,_0x2e4ef4){return _0x453de2||_0x2e4ef4;},'hXKeB':_0x2d12fc(0x1a0),'Wfjvz':_0x2d12fc(0x1c6)},_0x5f4a8d=_0x13163a[_0x2d12fc(0x109)]?_0x15633d[_0x2d12fc(0x1ea)](a0_0x4e4605,{'limitInputPixels':![],'sequentialRead':!![]}):a0_0x4e4605({'sequentialRead':!![]}),_0x211b79=_0x438f38[_0x2d12fc(0x132)]('/'),_0x4f0877=_0x211b79['pop'](),_0x19116e=_0x4f0877[_0x2d12fc(0x132)]('.')[0x0],_0x4e32b7=_0x4f0877[_0x2d12fc(0x132)]('.')[0x1],_0x14eda8=_0x211b79['pop'](),_0x1b7a8c=_0x211b79[_0x2d12fc(0x1c5)](),_0x332ee6=_0x211b79[_0x2d12fc(0x1c5)]();let _0x264818=![],_0x3fd4fd=_0x5f4a8d,_0x48aa3a={'width':_0x13163a[_0x2d12fc(0x12b)],'height':_0x13163a[_0x2d12fc(0x23c)]};_0x13163a&&_0x13163a['orientation']&&(_0x264818=!![],_0x3fd4fd=_0x3fd4fd[_0x2d12fc(0x163)](),_0x15633d[_0x2d12fc(0x235)](_0x13163a[_0x2d12fc(0x22e)],0x5)&&(_0x48aa3a={'width':_0x13163a[_0x2d12fc(0x23c)],'height':_0x13163a[_0x2d12fc(0x12b)]}));const _0x17c376=super['normalizeRegionParams'](_0x332ee6,_0x48aa3a);this[_0x2d12fc(0x147)](_0x17c376,_0x3fd4fd);const _0x1bd921=super['normalizeSizeParams'](_0x1b7a8c,{'width':_0x17c376?_0x17c376['w']:_0x48aa3a[_0x2d12fc(0x12b)],'height':_0x17c376?_0x17c376['h']:_0x48aa3a[_0x2d12fc(0x23c)]});this[_0x2d12fc(0x1d6)](_0x1bd921,_0x3fd4fd);const _0x417ce5=super[_0x2d12fc(0x193)](_0x14eda8);this[_0x2d12fc(0x12c)](_0x417ce5,_0x3fd4fd);const _0x2b5286=super[_0x2d12fc(0x177)](_0x19116e),_0x1ee0ee=super[_0x2d12fc(0x208)](_0x4e32b7,_0x13163a[_0x2d12fc(0x135)]);this[_0x2d12fc(0x1b4)](_0x2b5286,_0x1ee0ee,_0x3fd4fd,_0x4e32b7,_0x13163a);if(_0x15633d[_0x2d12fc(0x23b)](_0x17c376,_0x1bd921)||_0x417ce5||_0x2b5286||_0x1ee0ee||_0x264818)return _0x3fd4fd;else{if(_0x2d12fc(0x1a0)===_0x15633d[_0x2d12fc(0x110)])return console[_0x2d12fc(0x139)](_0x15633d['Wfjvz']),null;else{_0x15633d[_0x2d12fc(0x1eb)](_0x4db820,_0x5b4071),_0x2e8c97['error'](_0x2d12fc(0x229),_0xca8627);_0x15633d[_0x2d12fc(0x19c)](_0x580eb0,_0x5a9d44)&&(_0x382a4d[_0x2d12fc(0x1dd)](_0x15633d['slkvS'],_0x5a8076['name']),_0x59b6db[_0x2d12fc(0x1dd)](_0x15633d[_0x2d12fc(0x1fc)],_0x2bcf08[_0x2d12fc(0x1c2)]),_0xc93432[_0x2d12fc(0x1dd)](_0x2d12fc(0x1fa),_0x2fa04c[_0x2d12fc(0x146)]));_0x415125&&_0x15633d[_0x2d12fc(0x1ad)](typeof _0x56cec7,_0x2d12fc(0x1df))&&_0x15633d[_0x2d12fc(0x22f)](_0x15633d[_0x2d12fc(0x1fd)],_0x4dd5a0)&&_0x33ef3e[_0x2d12fc(0x1dd)](_0x15633d[_0x2d12fc(0x159)],_0xebe466[_0x2d12fc(0x14e)]);throw _0x18aeca;}}}}
|
|
1
|
+
const a0_0xf77c3c=a0_0x2ba9;(function(_0x17fb38,_0x1a47c7){const _0x2caff4=a0_0x2ba9,_0x37b049=_0x17fb38();while(!![]){try{const _0x31b50d=-parseInt(_0x2caff4(0x22e))/0x1*(-parseInt(_0x2caff4(0x2ab))/0x2)+-parseInt(_0x2caff4(0x280))/0x3+parseInt(_0x2caff4(0x1bb))/0x4+parseInt(_0x2caff4(0x1ec))/0x5+parseInt(_0x2caff4(0x202))/0x6+parseInt(_0x2caff4(0x1a1))/0x7+parseInt(_0x2caff4(0x25c))/0x8*(-parseInt(_0x2caff4(0x234))/0x9);if(_0x31b50d===_0x1a47c7)break;else _0x37b049['push'](_0x37b049['shift']());}catch(_0x486ad7){_0x37b049['push'](_0x37b049['shift']());}}}(a0_0x2729,0xa5591));import a0_0x2782b5 from'sharp';import a0_0x29db74 from'@etu-wiki/iiif-image-shims';import{addDecoder,BaseDecoder,fromCustomClient,fromUrl,BaseClient,BaseResponse}from'geotiff';function a0_0x2ba9(_0xc4a710,_0x5674cd){const _0x2729aa=a0_0x2729();return a0_0x2ba9=function(_0x2ba9d2,_0x35b4ca){_0x2ba9d2=_0x2ba9d2-0x17e;let _0x469125=_0x2729aa[_0x2ba9d2];return _0x469125;},a0_0x2ba9(_0xc4a710,_0x5674cd);}const MAX_AREA=0x5f5e100,MAX_WIDTH=0x2710,MAX_HEIGHT=0x2710,SUPPORTS={0x2:[a0_0xf77c3c(0x1d9),a0_0xf77c3c(0x29d),a0_0xf77c3c(0x23f),'jsonldMediaType',a0_0xf77c3c(0x1dd),a0_0xf77c3c(0x1ef),'regionByPct',a0_0xf77c3c(0x249),a0_0xf77c3c(0x2ac),a0_0xf77c3c(0x27b),a0_0xf77c3c(0x18a),'sizeByWhListed',a0_0xf77c3c(0x272),a0_0xf77c3c(0x1a4),a0_0xf77c3c(0x1c0),a0_0xf77c3c(0x189),a0_0xf77c3c(0x24a)],2.1:['baseUriRedirect','canonicalLinkHeader',a0_0xf77c3c(0x23f),a0_0xf77c3c(0x2b5),a0_0xf77c3c(0x1dd),a0_0xf77c3c(0x1ef),a0_0xf77c3c(0x297),a0_0xf77c3c(0x249),a0_0xf77c3c(0x261),a0_0xf77c3c(0x2ac),a0_0xf77c3c(0x27b),a0_0xf77c3c(0x18a),a0_0xf77c3c(0x190),a0_0xf77c3c(0x27a),a0_0xf77c3c(0x1a4),a0_0xf77c3c(0x1c0),a0_0xf77c3c(0x189),'sizeByWh',a0_0xf77c3c(0x225),a0_0xf77c3c(0x272)],0x3:['baseUriRedirect',a0_0xf77c3c(0x29d),'cors','jsonldMediaType',a0_0xf77c3c(0x1dd),'profileLinkHeader',a0_0xf77c3c(0x297),a0_0xf77c3c(0x249),'regionSquare',a0_0xf77c3c(0x2ac),a0_0xf77c3c(0x27b),a0_0xf77c3c(0x190),a0_0xf77c3c(0x1a4),'sizeByPct','sizeByW',a0_0xf77c3c(0x24a),'sizeUpscaling']};class SharpWebImageDecoder extends BaseDecoder{async['decode'](_0x550d50,_0x274c67){const _0x4671ff=a0_0xf77c3c,_0x524542={'JUzsK':function(_0x34860a,_0xee4cc3,_0x3bc8f8){return _0x34860a(_0xee4cc3,_0x3bc8f8);},'oiShB':function(_0x4daece,_0x56b2ee){return _0x4daece===_0x56b2ee;},'IqEKv':function(_0x28ab21,_0x2a77aa){return _0x28ab21<_0x2a77aa;},'IfyfG':function(_0x42d3cf,_0xab680d){return _0x42d3cf!==_0xab680d;},'uEFPv':function(_0x58fd44,_0x1acded){return _0x58fd44*_0x1acded;},'RyOet':function(_0x1235c6,_0x4ef654){return _0x1235c6*_0x4ef654;},'tqRQp':function(_0x5141de,_0x392783){return _0x5141de<_0x392783;},'vBjnP':_0x4671ff(0x1ca),'gHHIv':function(_0x114592,_0x11b95b){return _0x114592<_0x11b95b;},'PnxnK':function(_0x95af6,_0x612dd){return _0x95af6+_0x612dd;},'uOmED':function(_0x18f257,_0x27609d){return _0x18f257+_0x27609d;},'QSaTt':function(_0x5c97b7,_0x13bd01){return _0x5c97b7+_0x13bd01;},'Wyegi':function(_0xc6b29,_0x4f024f){return _0xc6b29+_0x4f024f;}},_0xcbc3e8=Array['isArray'](_0x550d50[_0x4671ff(0x2a4)])?_0x550d50[_0x4671ff(0x2a4)]['length']:_0x550d50['SamplesPerPixel']||0x4;let _0x4575dd=_0x524542[_0x4671ff(0x1d6)](a0_0x2782b5,_0x274c67,{'sequentialRead':!![]});const _0x543eb6=await _0x4575dd[_0x4671ff(0x1b7)](),_0x3ad09f=_0x543eb6['channels']||0x4;if(_0x524542[_0x4671ff(0x19b)](_0xcbc3e8,0x4)&&_0x524542['IqEKv'](_0x3ad09f,0x4)&&_0x4575dd[_0x4671ff(0x20d)])_0x4575dd=_0x4575dd[_0x4671ff(0x20d)]();else _0x524542['oiShB'](_0xcbc3e8,0x3)&&_0x3ad09f>0x3&&_0x4575dd[_0x4671ff(0x217)]&&(_0x4575dd=_0x4575dd[_0x4671ff(0x217)]());const {data:_0x226476,info:_0x534a09}=await _0x4575dd[_0x4671ff(0x198)]()[_0x4671ff(0x26f)]({'resolveWithObject':!![]});if(_0x524542[_0x4671ff(0x200)](_0x534a09[_0x4671ff(0x1c1)],_0xcbc3e8)){const _0x2c90ce=_0x524542[_0x4671ff(0x19c)](_0x534a09[_0x4671ff(0x1e0)],_0x534a09[_0x4671ff(0x23d)]),_0x4c8a71=Buffer[_0x4671ff(0x1a0)](_0x524542[_0x4671ff(0x19c)](_0x2c90ce,_0xcbc3e8)),_0x194cda=_0x226476;for(let _0x313e2f=0x0;_0x524542[_0x4671ff(0x1d2)](_0x313e2f,_0x2c90ce);_0x313e2f+=0x1){const _0x3ad804=_0x524542[_0x4671ff(0x19c)](_0x313e2f,_0x534a09[_0x4671ff(0x1c1)]),_0x3c46ef=_0x524542[_0x4671ff(0x252)](_0x313e2f,_0xcbc3e8);for(let _0x9ceccd=0x0;_0x524542[_0x4671ff(0x1cf)](_0x9ceccd,_0xcbc3e8);_0x9ceccd+=0x1){_0x524542['vBjnP']!==_0x524542[_0x4671ff(0x1fb)]?(_0x142b6f[_0x4671ff(0x233)]&&(_0x13067c=_0x29fa3e[_0x4671ff(0x1ce)]()),_0x6475c2=_0x1f33e3[_0x4671ff(0x244)](_0x40e174[_0x4671ff(0x1f7)])):_0x524542[_0x4671ff(0x2b2)](_0x9ceccd,_0x534a09[_0x4671ff(0x1c1)])?_0x4c8a71[_0x524542[_0x4671ff(0x2b6)](_0x3c46ef,_0x9ceccd)]=_0x194cda[_0x524542[_0x4671ff(0x2b6)](_0x3ad804,_0x9ceccd)]:_0x4c8a71[_0x524542['uOmED'](_0x3c46ef,_0x9ceccd)]=_0x9ceccd===0x3?0xff:0x0;}}return _0x4c8a71[_0x4671ff(0x2a8)][_0x4671ff(0x19a)](_0x4c8a71[_0x4671ff(0x1d3)],_0x524542[_0x4671ff(0x285)](_0x4c8a71[_0x4671ff(0x1d3)],_0x4c8a71[_0x4671ff(0x218)]));}return _0x226476['buffer'][_0x4671ff(0x19a)](_0x226476[_0x4671ff(0x1d3)],_0x524542[_0x4671ff(0x228)](_0x226476[_0x4671ff(0x1d3)],_0x226476[_0x4671ff(0x218)]));}}function a0_0x2729(){const _0x1692cd=['fteLc','PsXot','compliance','startsWith','phZPq','signal','[IPFSClient]\x20Request\x20timeout,\x20aborting...','NiBaq','ASTuq','FbfGy','toFormat','JlpaL','jjIhN','BNWLj','metadata','CwfCL','bSpbZ','formats','1861008eBMfkD','EEcTj','VQaiG','zdQGf','PCBOM','sizeByPct','channels','preferredFormats','nOlxP','Abdcl','[IPFSClient]\x20Error\x20message:','floor','b-w','ZobSN','statusText','SXxIm','ebIJx','sizeImpl','pages','flop','tqRQp','EjnnT','split','IqEKv','byteOffset','getHeader','DQhdh','JUzsK','grey','YoCYi','baseUriRedirect','limitInputPixels','ltDTD','resize','mirroring','mMgRh','Total\x20images\x20(including\x20overviews):\x20','width','Gtzkj','[IPFSClient]\x20Error\x20during\x20request:','tPaus','[IPFSClient]\x20Error\x20stack:','Gwxcp','HTlSt','qyjOF','OUzUl','extraFormats','\x20x\x20','cseNm','1610600BsIRUB','2.0','fMBWs','profileLinkHeader','errors','mxQUY','FwQhI','yCYow','Failed\x20to\x20read\x20from\x20overview,\x20falling\x20back\x20to\x20main\x20image:\x20','objectKey','is_hd','degree','content','IgQoz','3.0','vBjnP','hCasl','uLKtl','generateTileLocal','getImage','IfyfG','info','5587182RSdKzB','iESrd','generateTileRemote','fill','DEfCt','Using\x20standard\x20HTTP\x20fetch','Ctwqn','FtXZJ','YBmiV','3|0|4|2|1','ipfs://','ensureAlpha','max','cGGaV','getImageCount','isBuffer','toColorspace','iVfSU','oAWvB','Overview\x20dimensions:\x20','abort','removeAlpha','byteLength','UKiOH','XVeAT','iesKh','error','regionImpl','lytDK','res','profile','HhxHY','YIaJy','MlVFz','jSsBn','sizeByWhListed','mFPHL','supports','Wyegi','zqJNP','toFixed','NoocV','push','log','4CbwoqW','generateImageInfo','space','TxyHi','hjUJZ','isMirror','711eTpZAS','orientation','YEvyR','getData','cxsDK','WRpdY','message','ubRLm','set','height','vTLlj','cors','mxgqo','srgb','normalizeRotationParams','toLowerCase','rotate','NhryH','WYhuz','JCsTo','WUdTH','regionByPx','sizeByWh','Pyramid\x20optimization:\x20using\x20full\x20resolution\x20page\x20(scale\x20≈\x201.0)','grayscale','osZBa','pop','getWidth','hzspO','qualities','RyOet','IegiF','x,\x20target:\x20','tsyJn','normalizeRegionParams','[IPFSClient]\x20AggregateError\x20details:','lItDJ','normalizeQualityParams','rQViU','OuVyh','222512cUIdZF','stack','lTxeG','format','getSamplesPerPixel','regionSquare','pYPCk','hnhOn','fkaQB','verifiedFetch','readRasters','ceMqj','skip\x20iiif\x20transform','NGBDP','Yyprt','dZLpb','name','match','BGQGN','toBuffer','result','gray','sizeByForcedWh',',\x20y=','VRZat','normalizeFormatParams','qsPFX','laLiB','jpg','TrUTV','sizeByDistortedWh','rotationBy90s','EHlPR','KByka','[fromIPFS]\x20Using\x20cached\x20GeoTIFF\x20client\x20for\x20','EGIKF','771840lIOffu','default','WsTqq','uqrPR','wFfDm','QSaTt','wiYKu','hnxAA','aMiWX','rotationImpl','tzTif','MPSQh','ITLFv','string','wKGTg','0|2|1|3|4','DXlOE','[fromIPFS]\x20Creating\x20new\x20GeoTIFF\x20client\x20for\x20','VkKyv','ossClient','extract','paletteBitDepth','Attempting\x20to\x20fetch\x20from\x20URL:\x20','regionByPct','[IPFSClient]\x20Error\x20name:','bafy','Failed\x20to\x20fetch\x20from\x20IPFS:\x20','arrayBuffer','HkInC','canonicalLinkHeader','JbNNI','IHbmd','DwDoy','generateImageInfoTemp','min','WWYFi','BitsPerSample','get','aErAd','uriPattern','buffer','IDuBp','bYjwW','650450saQMYK','rotationArbitrary','bitonal','qHsRl','tif','pow','VmutX','gHHIv','response','qOeXl','jsonldMediaType','PnxnK','contentType','length','UTXpk','status','IFipL','rebIF','request','RLdjw','png','color','Kgiqd','TSFOV','BJMaD','zGYPs','RIhkx','getHeight','from','sizeByW','sizeAboveFull','QxgTO','headers','YzLeG','threshold','IKIXb','sizeByConfinedWh','EVEKe','frsTe','normalizeSizeParams','resolve','FjBAg','yJZlq','Source\x20dimensions:\x20','raw','RrAyk','slice','oiShB','uEFPv','iftSt','PzoEA','none','alloc','786674eoxXRO','pdf','body','sizeByH','gYdMp','jp2','qualityFormatImpl','object'];a0_0x2729=function(){return _0x1692cd;};return a0_0x2729();}addDecoder(0xc351,()=>Promise[a0_0xf77c3c(0x194)](SharpWebImageDecoder));class OSSResponse extends BaseResponse{constructor(_0x39c234){const _0x7f8bcd=a0_0xf77c3c;super(),this[_0x7f8bcd(0x270)]=_0x39c234;}get['ok'](){const _0x51a4ed=a0_0xf77c3c,_0x23c5b3={'LRsjS':function(_0xc6435a,_0x37ef5d){return _0xc6435a>=_0x37ef5d;},'zGYPs':function(_0x245e30,_0x98278d){return _0x245e30<_0x98278d;}};return _0x23c5b3['LRsjS'](this[_0x51a4ed(0x270)][_0x51a4ed(0x21f)][_0x51a4ed(0x2ba)],0xc8)&&_0x23c5b3[_0x51a4ed(0x185)](this[_0x51a4ed(0x270)][_0x51a4ed(0x21f)][_0x51a4ed(0x2ba)],0x12c);}get[a0_0xf77c3c(0x2ba)](){const _0x4c389e=a0_0xf77c3c;return this[_0x4c389e(0x270)][_0x4c389e(0x21f)][_0x4c389e(0x2ba)];}[a0_0xf77c3c(0x1d4)](_0xba3f84){const _0x35d36b=a0_0xf77c3c;return this[_0x35d36b(0x270)][_0x35d36b(0x21f)][_0x35d36b(0x18c)][_0xba3f84[_0x35d36b(0x243)]()];}[a0_0xf77c3c(0x237)](){const _0x4a546a=a0_0xf77c3c,_0x1835e2={'YBmiV':function(_0x43d11b,_0xb49048){return _0x43d11b+_0xb49048;},'FwQhI':function(_0x26b170,_0x1560f1){return _0x26b170===_0x1560f1;},'fkaQB':_0x4a546a(0x2b4)};if(Buffer[_0x4a546a(0x211)](this['result'][_0x4a546a(0x1f8)])){if(_0x1835e2[_0x4a546a(0x1f2)](_0x1835e2[_0x4a546a(0x264)],_0x4a546a(0x2b4)))return this[_0x4a546a(0x270)][_0x4a546a(0x1f8)][_0x4a546a(0x2a8)][_0x4a546a(0x19a)](this['result'][_0x4a546a(0x1f8)][_0x4a546a(0x1d3)],_0x1835e2['YBmiV'](this[_0x4a546a(0x270)][_0x4a546a(0x1f8)][_0x4a546a(0x1d3)],this[_0x4a546a(0x270)]['content'][_0x4a546a(0x218)]));else{if(_0x42672b[_0x4a546a(0x211)](this['result'][_0x4a546a(0x1f8)]))return this['result'][_0x4a546a(0x1f8)][_0x4a546a(0x2a8)][_0x4a546a(0x19a)](this[_0x4a546a(0x270)][_0x4a546a(0x1f8)][_0x4a546a(0x1d3)],_0x1835e2[_0x4a546a(0x20a)](this[_0x4a546a(0x270)][_0x4a546a(0x1f8)][_0x4a546a(0x1d3)],this['result'][_0x4a546a(0x1f8)][_0x4a546a(0x218)]));return this[_0x4a546a(0x270)]['content'];}}return this[_0x4a546a(0x270)][_0x4a546a(0x1f8)];}}class OSSClient extends BaseClient{constructor(_0x17f19f,_0x82deb2){const _0x403ca6=a0_0xf77c3c;super(_0x17f19f),this['objectKey']=_0x17f19f,this[_0x403ca6(0x293)]=_0x82deb2;}async['request']({headers:headers={}}={}){const _0x22f3ee=a0_0xf77c3c,_0x58baca=await this[_0x22f3ee(0x293)][_0x22f3ee(0x2a5)](this[_0x22f3ee(0x1f5)],{'headers':headers,'timeout':0x7530});return new OSSResponse(_0x58baca);}}async function fromOSS(_0x418a73,_0x1acb19){const _0x2fe4d2=a0_0xf77c3c,_0x552f1b={'yCYow':function(_0x19f64f,_0x2c3f63){return _0x19f64f(_0x2c3f63);}},_0x3053c1=new OSSClient(_0x418a73,_0x1acb19);return _0x552f1b[_0x2fe4d2(0x1f3)](fromCustomClient,_0x3053c1);}const geotiffCache=new Map();class IPFSResponse extends BaseResponse{constructor(_0x7f21d6,_0x2c2dcf){const _0x2cf792=a0_0xf77c3c;super(),this[_0x2cf792(0x2b3)]=_0x7f21d6,this[_0x2cf792(0x29b)]=_0x2c2dcf;}get['ok'](){const _0x6052cd=a0_0xf77c3c;return this[_0x6052cd(0x2b3)]['ok'];}get[a0_0xf77c3c(0x2ba)](){const _0x589e03=a0_0xf77c3c;return this['response'][_0x589e03(0x2ba)];}[a0_0xf77c3c(0x1d4)](_0x4c08f3){const _0x1e43c2=a0_0xf77c3c;return this[_0x1e43c2(0x2b3)][_0x1e43c2(0x18c)]['get'](_0x4c08f3)||'';}['getData'](){return this['arrayBuffer'];}}class IPFSClient extends BaseClient{constructor(_0x39848c,_0x2a9473){const _0x189c24=a0_0xf77c3c;super(_0x39848c),this['ipfsUrl']=_0x39848c,this[_0x189c24(0x265)]=_0x2a9473;}['extractCID'](_0xb42cf6){const _0x35858d=a0_0xf77c3c,_0x2b1915=_0xb42cf6[_0x35858d(0x26d)](/(?:ipfs:\/\/|\/ipfs\/)([a-zA-Z0-9]+)/);return _0x2b1915?_0x2b1915[0x1]:null;}async[a0_0xf77c3c(0x17e)]({headers:headers={}}={}){const _0x1c1ac6=a0_0xf77c3c,_0x3ee08c={'DXlOE':_0x1c1ac6(0x1bc),'zqJNP':_0x1c1ac6(0x1af),'Kgiqd':function(_0x2bc17d,_0x4d2002,_0x5edbd4){return _0x2bc17d(_0x4d2002,_0x5edbd4);},'XVeAT':function(_0x500961,_0xd74a95){return _0x500961(_0xd74a95);},'iftSt':_0x1c1ac6(0x20b),'cxsDK':'[IPFSClient]\x20Error\x20during\x20request:','EHlPR':function(_0x758dc4,_0xe6078){return _0x758dc4===_0xe6078;},'HTlSt':_0x1c1ac6(0x1a8),'WWYFi':function(_0x3a7fa6,_0x2b5800){return _0x3a7fa6 in _0x2b5800;},'hnxAA':_0x1c1ac6(0x1f0),'iEYZY':_0x1c1ac6(0x257),'ZobSN':function(_0x3afc6c,_0x35ea32){return _0x3afc6c(_0x35ea32);},'mMgRh':function(_0x24c8cc,_0x2a4fce){return _0x24c8cc instanceof _0x2a4fce;},'iesKh':'[IPFSClient]\x20Error\x20name:','FiGDi':_0x1c1ac6(0x1c5),'hnhOn':_0x1c1ac6(0x1e4)};console[_0x1c1ac6(0x22d)](headers);const _0x18ebc8=0xea60,_0x111c89=new AbortController(),_0x4806c6=_0x3ee08c[_0x1c1ac6(0x182)](setTimeout,()=>{const _0x3a1960=_0x1c1ac6;_0x3ee08c[_0x3a1960(0x290)]!==_0x3ee08c[_0x3a1960(0x290)]?(_0x2e85bf=_0x3ebfcc,_0x18563e=_0x21f5b0):(console[_0x3a1960(0x22d)](_0x3ee08c[_0x3a1960(0x229)]),_0x111c89[_0x3a1960(0x216)]());},_0x18ebc8);try{const _0x265f52={'headers':headers,'signal':_0x111c89[_0x1c1ac6(0x1ae)],'session':![]},_0x2ce684=await this[_0x1c1ac6(0x265)](this['ipfsUrl'],_0x265f52);if(!_0x2ce684['ok'])throw new Error(_0x1c1ac6(0x29a)+_0x2ce684['status']+'\x20'+_0x2ce684['statusText']);const _0x5b3b81=await _0x2ce684[_0x1c1ac6(0x29b)]();return _0x3ee08c[_0x1c1ac6(0x21a)](clearTimeout,_0x4806c6),new IPFSResponse(_0x2ce684,_0x5b3b81);}catch(_0x237b98){const _0x23ca11=_0x3ee08c[_0x1c1ac6(0x19d)][_0x1c1ac6(0x1d1)]('|');let _0x231349=0x0;while(!![]){switch(_0x23ca11[_0x231349++]){case'0':console[_0x1c1ac6(0x21c)](_0x3ee08c[_0x1c1ac6(0x238)],_0x237b98);continue;case'1':throw _0x237b98;continue;case'2':_0x237b98&&_0x3ee08c[_0x1c1ac6(0x27c)](typeof _0x237b98,_0x3ee08c[_0x1c1ac6(0x1e6)])&&_0x3ee08c[_0x1c1ac6(0x2a3)](_0x3ee08c[_0x1c1ac6(0x287)],_0x237b98)&&console[_0x1c1ac6(0x21c)](_0x3ee08c['iEYZY'],_0x237b98[_0x1c1ac6(0x1f0)]);continue;case'3':_0x3ee08c[_0x1c1ac6(0x1c8)](clearTimeout,_0x4806c6);continue;case'4':_0x3ee08c[_0x1c1ac6(0x1de)](_0x237b98,Error)&&(console[_0x1c1ac6(0x21c)](_0x3ee08c[_0x1c1ac6(0x21b)],_0x237b98[_0x1c1ac6(0x26c)]),console[_0x1c1ac6(0x21c)](_0x3ee08c['FiGDi'],_0x237b98[_0x1c1ac6(0x23a)]),console[_0x1c1ac6(0x21c)](_0x3ee08c[_0x1c1ac6(0x263)],_0x237b98[_0x1c1ac6(0x25d)]));continue;}break;}}}}async function fromIPFS(_0x3a4172,_0x9dc979){const _0x159a54=a0_0xf77c3c,_0x190e55={'uLKtl':function(_0x39410e,_0x5e58ad){return _0x39410e(_0x5e58ad);},'jSsBn':function(_0x44557a,_0x5d0afb){return _0x44557a<_0x5d0afb;},'wFfDm':function(_0x1534e3,_0x281e7e){return _0x1534e3===_0x281e7e;},'WRpdY':_0x159a54(0x247),'fteLc':function(_0x223f67,_0xda88d2){return _0x223f67!==_0xda88d2;},'NhryH':'cQlDU','HhxHY':function(_0x426bed,_0x4cd01b){return _0x426bed===_0x4cd01b;},'OiiTM':_0x159a54(0x208),'VkKyv':'jyQfx'},_0x2e52b6=geotiffCache[_0x159a54(0x2a5)](_0x3a4172);if(_0x2e52b6){if(_0x2e52b6 instanceof Promise){if(_0x190e55[_0x159a54(0x284)](_0x190e55[_0x159a54(0x239)],_0x190e55[_0x159a54(0x239)]))return console[_0x159a54(0x22d)]('[fromIPFS]\x20Waiting\x20for\x20in-flight\x20GeoTIFF\x20creation\x20for\x20'+_0x3a4172),await _0x2e52b6;else _0x1afc39['log'](_0x159a54(0x1af)),_0x295f08[_0x159a54(0x216)]();}return console['log'](_0x159a54(0x27e)+_0x3a4172),_0x2e52b6;}console[_0x159a54(0x22d)](_0x159a54(0x291)+_0x3a4172);const _0x214ccf=((async()=>{const _0xfe2e94=_0x159a54,_0x212a8e=new IPFSClient(_0x3a4172,_0x9dc979),_0xb253b9=await _0x190e55[_0xfe2e94(0x1fd)](fromCustomClient,_0x212a8e);return geotiffCache[_0xfe2e94(0x23c)](_0x3a4172,_0xb253b9),_0xb253b9;})());geotiffCache[_0x159a54(0x23c)](_0x3a4172,_0x214ccf);try{if(_0x190e55[_0x159a54(0x1a9)](_0x190e55[_0x159a54(0x245)],_0x190e55[_0x159a54(0x245)])){const _0x2b627f=_0x482345[_0x159a54(0x26d)](/(?:ipfs:\/\/|\/ipfs\/)([a-zA-Z0-9]+)/);return _0x2b627f?_0x2b627f[0x1]:null;}else return await _0x214ccf;}catch(_0x58afd6){if(_0x190e55[_0x159a54(0x221)](_0x190e55['OiiTM'],_0x190e55[_0x159a54(0x292)]))return this[_0x159a54(0x270)][_0x159a54(0x21f)][_0x159a54(0x2ba)]>=0xc8&&_0x190e55[_0x159a54(0x224)](this[_0x159a54(0x270)][_0x159a54(0x21f)]['status'],0x12c);else{geotiffCache['delete'](_0x3a4172);throw _0x58afd6;}}}export default class SharpIiifImageShims extends a0_0x29db74{constructor(_0x47c86d=MAX_AREA,_0x54bafe=MAX_WIDTH,_0x1bac34=MAX_HEIGHT){super(_0x47c86d,_0x54bafe,_0x1bac34);}[a0_0xf77c3c(0x21d)](_0x4de1,_0x513f02){const _0x27f906=a0_0xf77c3c;_0x4de1&&(_0x513f02=_0x513f02[_0x27f906(0x294)]({'left':_0x4de1['x'],'top':_0x4de1['y'],'width':_0x4de1['w'],'height':_0x4de1['h']}));}['sizeImpl'](_0x5b124c,_0x2db51b){const _0x50602f=a0_0xf77c3c,_0x37571c={'ltDTD':_0x50602f(0x205)};_0x5b124c&&(_0x2db51b=_0x2db51b[_0x50602f(0x1dc)]({..._0x5b124c,'fit':_0x37571c[_0x50602f(0x1db)]}));}[a0_0xf77c3c(0x289)](_0xb1c882,_0x7111eb){const _0x56252d=a0_0xf77c3c,_0x58c626={'hjUJZ':function(_0x282a54,_0x325b09){return _0x282a54!==_0x325b09;}};if(_0xb1c882){if(_0xb1c882['isMirror']){if(_0x58c626[_0x56252d(0x232)](_0x56252d(0x2aa),_0x56252d(0x2aa)))throw new _0x1765d0(_0x56252d(0x29a)+_0x3a525e[_0x56252d(0x2ba)]+'\x20'+_0x5f40de[_0x56252d(0x1c9)]);else _0x7111eb=_0x7111eb[_0x56252d(0x1ce)]();}_0x7111eb=_0x7111eb[_0x56252d(0x244)](_0xb1c882['degree']);}}['qualityFormatImpl'](_0x49db81,_0x404fff,_0x42e45a,_0x5b2005,_0x390702){const _0x17d658=a0_0xf77c3c,_0x4b5e6d={'mxgqo':_0x17d658(0x1c7),'DwDoy':function(_0x56e151,_0x34feff){return _0x56e151===_0x34feff;},'KloQp':_0x17d658(0x181),'CwfCL':function(_0x7e854,_0x5a596c){return _0x7e854===_0x5a596c;},'FjBAg':_0x17d658(0x1d7),'EGIKF':'AWAly','CQbmY':'Moflk','Pohbx':_0x17d658(0x2ad),'lTxeG':function(_0x53a69a,_0x2b242b){return _0x53a69a===_0x2b242b;},'RIhkx':'sgDIb','YEvyR':_0x17d658(0x180),'OuVyh':function(_0xd28fe0,_0x93ecd){return _0xd28fe0===_0x93ecd;}};if(_0x49db81){if(_0x4b5e6d[_0x17d658(0x2a0)](_0x49db81,_0x4b5e6d['KloQp']))_0x42e45a=_0x42e45a[_0x17d658(0x212)](_0x17d658(0x241));else{if(_0x4b5e6d[_0x17d658(0x2a0)](_0x49db81,_0x17d658(0x271))||_0x4b5e6d['CwfCL'](_0x49db81,_0x4b5e6d[_0x17d658(0x195)]))_0x4b5e6d[_0x17d658(0x27f)]!==_0x4b5e6d['CQbmY']?_0x42e45a=_0x42e45a[_0x17d658(0x24c)]():_0x313766=_0x5d6004[_0x17d658(0x212)](_0x4b5e6d[_0x17d658(0x240)])[_0x17d658(0x180)]({'colors':0x2});else _0x4b5e6d[_0x17d658(0x1b8)](_0x49db81,_0x4b5e6d['Pohbx'])&&(_0x4b5e6d[_0x17d658(0x25e)](_0x4b5e6d[_0x17d658(0x186)],'tmxtD')?this['regionImpl'](_0x175baa,_0x81eb17):_0x42e45a=_0x42e45a[_0x17d658(0x18e)]());}}_0x404fff&&(_0x42e45a=_0x42e45a[_0x17d658(0x1b3)](_0x404fff)),_0x5b2005===_0x4b5e6d[_0x17d658(0x236)]&&(_0x4b5e6d[_0x17d658(0x25b)](_0x390702[_0x17d658(0x295)],0x1)||_0x4b5e6d[_0x17d658(0x25e)](_0x390702[_0x17d658(0x230)],_0x4b5e6d[_0x17d658(0x240)]))&&(_0x42e45a=_0x42e45a['toColorspace'](_0x17d658(0x1c7))[_0x17d658(0x180)]({'colors':0x2}));}async[a0_0xf77c3c(0x204)](_0x1b2b9a,_0x31cb2f,_0x30cc38){const _0x2533a6=a0_0xf77c3c,_0x56a3c6={'NiBaq':function(_0x5f2025,_0x1f6d26){return _0x5f2025>=_0x1f6d26;},'YIaJy':function(_0x151b9f,_0x40904b){return _0x151b9f+_0x40904b;},'aErAd':function(_0x5c6361,_0x57751d){return _0x5c6361(_0x57751d);},'TxyHi':function(_0x2158a2,_0x21853d){return _0x2158a2??_0x21853d;},'MlVFz':_0x2533a6(0x28d),'oAWvB':_0x2533a6(0x207),'mxQUY':function(_0x309991,_0x2e36a1){return _0x309991(_0x2e36a1);},'rTzjB':_0x2533a6(0x299),'RLdjw':_0x2533a6(0x206),'lItDJ':'tlxRi','VPSVl':'Detected\x20CID\x20id,\x20using\x20fromIPFS','tzTif':function(_0xfe4857,_0x12a139,_0x1d30ac){return _0xfe4857(_0x12a139,_0x1d30ac);},'uqrPR':function(_0x2cb668,_0x3cf0da){return _0x2cb668===_0x3cf0da;},'fMBWs':_0x2533a6(0x18f),'phZPq':function(_0x4191d0,_0x5f0745){return _0x4191d0===_0x5f0745;},'laLiB':_0x2533a6(0x2b9),'QxgTO':'bjNVz','qsPFX':function(_0x8d645a,_0xc2da24){return _0x8d645a!==_0xc2da24;},'Gtzkj':'jHWZw','ITLFv':function(_0x51362a,_0x314c6b){return _0x51362a/_0x314c6b;},'MPSQh':function(_0x32d111,_0x5d5773){return _0x32d111!==_0x5d5773;},'TCkku':_0x2533a6(0x1b1),'qHsRl':function(_0x372ed6,_0x4364ae){return _0x372ed6/_0x4364ae;},'MoWLg':function(_0x146322,_0x22bcd0){return _0x146322<=_0x22bcd0;},'IFipL':function(_0x55f09d,_0x2eb508){return _0x55f09d>_0x2eb508;},'lytDK':function(_0x92d45,_0xca4818){return _0x92d45/_0xca4818;},'OKoci':function(_0x4e5b58,_0x5e107a){return _0x4e5b58/_0x5e107a;},'iXQMH':'bilinear','HkInC':function(_0x4becb7,_0x3d073c){return _0x4becb7!==_0x3d073c;},'tPaus':_0x2533a6(0x1aa),'aMiWX':_0x2533a6(0x1fc),'wKGTg':function(_0x58a7ae,_0x2c88fa){return _0x58a7ae+_0x2c88fa;},'jotik':function(_0x5cd53f,_0x9bc464){return _0x5cd53f+_0x9bc464;},'rQViU':function(_0x5e4274,_0x56d7b7){return _0x5e4274>_0x56d7b7;},'VxqLK':function(_0x4dbc73,_0x21d6c0){return _0x4dbc73>_0x21d6c0;}},_0x4f4b55=_0x1b2b9a[_0x2533a6(0x1d1)]('/'),_0xefda08=_0x4f4b55[_0x2533a6(0x24e)](),_0x434ddd=_0xefda08['split']('.')[0x0],_0xb0c26d=_0xefda08[_0x2533a6(0x1d1)]('.')[0x1],_0x446126=_0x4f4b55[_0x2533a6(0x24e)](),_0x2d3be1=_0x4f4b55[_0x2533a6(0x24e)](),_0x71e10f=_0x4f4b55[_0x2533a6(0x24e)](),_0x4c46b2=_0x4f4b55['pop']();let _0x3324d8={'width':_0x31cb2f[_0x2533a6(0x1e0)],'height':_0x31cb2f['height']};const _0xcc40ad=super['normalizeRegionParams'](_0x71e10f,_0x3324d8),_0x3d8509=super['normalizeSizeParams'](_0x2d3be1,{'width':_0xcc40ad?_0xcc40ad['w']:_0x3324d8[_0x2533a6(0x1e0)],'height':_0xcc40ad?_0xcc40ad['h']:_0x3324d8[_0x2533a6(0x23d)]}),{x:_0x5a3ecb,y:_0xf9745,w:_0x4d451c,h:_0x70091e}=_0x56a3c6[_0x2533a6(0x231)](_0xcc40ad,{'x':0x0,'y':0x0,'w':_0x3324d8[_0x2533a6(0x1e0)],'h':_0x3324d8['height']}),{width:_0x4f0ae6,height:_0x831a4}=_0x3d8509;console['log'](_0x2533a6(0x296)+_0x30cc38);let _0x767415;if(typeof _0x30cc38===_0x56a3c6[_0x2533a6(0x223)])console[_0x2533a6(0x22d)](_0x56a3c6[_0x2533a6(0x214)]),_0x767415=await _0x56a3c6[_0x2533a6(0x1f1)](fromUrl,_0x30cc38);else{if(typeof _0x4c46b2===_0x56a3c6['MlVFz']&&_0x4c46b2[_0x2533a6(0x1ac)](_0x56a3c6['rTzjB'])){if(_0x56a3c6[_0x2533a6(0x17f)]!==_0x56a3c6[_0x2533a6(0x258)]){console[_0x2533a6(0x22d)](_0x56a3c6['VPSVl']);const _0x45232d=_0x2533a6(0x20c)+_0x4c46b2;_0x767415=await _0x56a3c6[_0x2533a6(0x28a)](fromIPFS,_0x45232d,_0x30cc38);}else _0x2cb23d=!![],_0x15a7b0=_0x50f8ab[_0x2533a6(0x244)](),_0x56a3c6[_0x2533a6(0x1b0)](_0xe8f9b6[_0x2533a6(0x235)],0x5)&&(_0x67db56={'width':_0x49d4a5['height'],'height':_0x4cac51[_0x2533a6(0x1e0)]});}else _0x56a3c6[_0x2533a6(0x283)](_0x56a3c6[_0x2533a6(0x1ee)],_0x56a3c6['fMBWs'])?_0x767415=await fromOSS(_0x4c46b2,_0x30cc38):_0x56a3c6[_0x2533a6(0x1b0)](_0x35350f['orientation'],0x5)&&(_0x40d571[_0x2533a6(0x22d)](_0x1e49f1[_0x2533a6(0x235)]),_0x3f10cd={'width':_0xd51dc0['height'],'height':_0x55baae[_0x2533a6(0x1e0)]});}const _0x5a195f=await _0x767415[_0x2533a6(0x1ff)](0x0);console[_0x2533a6(0x22d)](_0x2533a6(0x197)+_0x5a195f[_0x2533a6(0x24f)]()+_0x2533a6(0x1ea)+_0x5a195f[_0x2533a6(0x187)]()),console[_0x2533a6(0x22d)]('Extracting\x20region:\x20x='+_0x5a3ecb+_0x2533a6(0x273)+_0xf9745+',\x20w='+_0x4d451c+',\x20h='+_0x70091e),console['log']('Output\x20size:\x20'+_0x4f0ae6+_0x2533a6(0x1ea)+_0x831a4);const _0x1022cb=await _0x767415[_0x2533a6(0x210)]();console[_0x2533a6(0x22d)](_0x2533a6(0x1df)+_0x1022cb);const _0x3d71e8=_0x5a195f[_0x2533a6(0x260)]();let _0x5c5eee;if(_0x3d71e8>=0x3){if(_0x56a3c6[_0x2533a6(0x1ad)](_0x56a3c6[_0x2533a6(0x277)],_0x56a3c6[_0x2533a6(0x18b)]))_0x3662d7[_0x56a3c6['YIaJy'](_0xdfb60f,_0x5f0226)]=_0x10369d[_0x56a3c6[_0x2533a6(0x222)](_0x7e21aa,_0x8127a8)];else{_0x5c5eee=[0x0,0x1,0x2];if(_0x56a3c6[_0x2533a6(0x1b0)](_0x3d71e8,0x4)){if(_0x56a3c6[_0x2533a6(0x276)]('AIZaA',_0x56a3c6[_0x2533a6(0x1e1)]))_0x5c5eee[_0x2533a6(0x22c)](0x3);else{const _0x383db8=new _0x44fffc(_0x483d84,_0x59fb98);return _0x56a3c6[_0x2533a6(0x2a6)](_0x680ac1,_0x383db8);}}}}else _0x5c5eee=[0x0];console[_0x2533a6(0x22d)]('Using\x20automatic\x20overview\x20selection\x20based\x20on\x20resolution...');const _0x45df75=Math[_0x2533a6(0x20e)](_0x56a3c6[_0x2533a6(0x28c)](_0x4d451c,_0x4f0ae6),_0x70091e/_0x831a4);let _0x474b61=_0x5a195f,_0x18df79=0x1;for(let _0x2d5ca3=0x0;_0x2d5ca3<_0x1022cb;_0x2d5ca3++){if(_0x56a3c6[_0x2533a6(0x28b)](_0x2533a6(0x1b1),_0x56a3c6['TCkku']))return _0x4f0c7e;else{const _0x4ff340=await _0x767415[_0x2533a6(0x1ff)](_0x2d5ca3),_0x86d2b6=_0x56a3c6[_0x2533a6(0x2ae)](_0x5a195f[_0x2533a6(0x24f)](),_0x4ff340['getWidth']());_0x56a3c6['MoWLg'](_0x86d2b6,_0x45df75)&&_0x56a3c6[_0x2533a6(0x2bb)](_0x86d2b6,_0x18df79)&&(_0x18df79=_0x86d2b6,_0x474b61=_0x4ff340);}}console['log']('Selected\x20overview\x20with\x20scale:\x20'+_0x18df79['toFixed'](0x2)+'x'),console[_0x2533a6(0x22d)](_0x2533a6(0x215)+_0x474b61[_0x2533a6(0x24f)]()+_0x2533a6(0x1ea)+_0x474b61[_0x2533a6(0x187)]());const _0x4f0d4f=[Math[_0x2533a6(0x1c6)](_0x56a3c6[_0x2533a6(0x21e)](_0x5a3ecb,_0x18df79)),Math['floor'](_0x56a3c6[_0x2533a6(0x21e)](_0xf9745,_0x18df79)),Math[_0x2533a6(0x1c6)](_0x56a3c6[_0x2533a6(0x222)](_0x5a3ecb,_0x4d451c)/_0x18df79),Math['floor'](_0x56a3c6['OKoci'](_0xf9745+_0x70091e,_0x18df79))];let _0x2ec12b;try{_0x2ec12b=await _0x474b61[_0x2533a6(0x266)]({'window':_0x4f0d4f,'width':_0x4f0ae6,'height':_0x831a4,'samples':_0x5c5eee,'interleave':!![],'resampleMethod':_0x56a3c6['iXQMH']});}catch(_0x409e26){if(_0x56a3c6[_0x2533a6(0x29c)](_0x56a3c6[_0x2533a6(0x1e3)],_0x56a3c6[_0x2533a6(0x288)])){console[_0x2533a6(0x22d)](_0x2533a6(0x1f4)+_0x409e26);const _0xd72678=[_0x5a3ecb,_0xf9745,_0x56a3c6[_0x2533a6(0x28e)](_0x5a3ecb,_0x4d451c),_0x56a3c6['jotik'](_0xf9745,_0x70091e)];_0x2ec12b=await _0x5a195f['readRasters']({'window':_0xd72678,'width':_0x4f0ae6,'height':_0x831a4,'samples':_0x5c5eee,'interleave':!![],'resampleMethod':_0x56a3c6['iXQMH']});}else _0x4bcd4f&&(_0x3d0cfc[_0x2533a6(0x1e9)]=[_0x4cf555],_0x400a31[_0x2533a6(0x1c2)]=[_0x11cffc]);}const _0x2593d0=_0x5c5eee[_0x2533a6(0x2b8)],_0xebb46a=Buffer[_0x2533a6(0x188)](_0x2ec12b[_0x2533a6(0x2a8)],_0x2ec12b[_0x2533a6(0x1d3)],_0x2ec12b[_0x2533a6(0x218)]),_0xd892a7={'sequentialRead':!![],'failOn':_0x2533a6(0x19f),'raw':{'width':_0x4f0ae6,'height':_0x831a4,'channels':_0x2593d0}};(_0x56a3c6[_0x2533a6(0x25a)](_0x4f0ae6,0x1388)||_0x56a3c6['VxqLK'](_0x831a4,0x1388))&&(_0xd892a7[_0x2533a6(0x1da)]=![]);let _0x63112f=a0_0x2782b5(_0xebb46a,_0xd892a7);const _0x3e089a=super['normalizeRotationParams'](_0x446126);this[_0x2533a6(0x289)](_0x3e089a,_0x63112f);const _0x2f7ff2=super[_0x2533a6(0x259)](_0x434ddd),_0x276ad8=super[_0x2533a6(0x275)](_0xb0c26d,_0x31cb2f['format']);this[_0x2533a6(0x1a7)](_0x2f7ff2,_0x276ad8,_0x63112f,_0xb0c26d,_0x31cb2f);const _0x33abdd={};return _0x33abdd['body']=_0x63112f,_0x33abdd[_0x2533a6(0x2b7)]=super['getContentType'](_0x276ad8),_0x33abdd;}async[a0_0xf77c3c(0x1fe)](_0x5d15f8,_0x566a66,_0x249938){const _0x157098=a0_0xf77c3c,_0xd6976a={'VmutX':function(_0x225195,_0x2ca0bf){return _0x225195===_0x2ca0bf;},'NGBDP':_0x157098(0x181),'YzSap':_0x157098(0x241),'cGGaV':function(_0x134129,_0x4e5868){return _0x134129===_0x4e5868;},'UKiOH':_0x157098(0x1d7),'OUzUl':function(_0x13f2fb,_0x2b4bee){return _0x13f2fb===_0x2b4bee;},'hzspO':_0x157098(0x2ad),'BJMaD':function(_0x32c03e,_0x51d14c){return _0x32c03e||_0x51d14c;},'WUdTH':function(_0xc78cea,_0x378949){return _0xc78cea>_0x378949;},'gYdMp':_0x157098(0x1bd),'tsyJn':function(_0x5835d9,_0x41570e){return _0x5835d9/_0x41570e;},'BGQGN':function(_0x4dab60,_0x3b1403){return _0x4dab60-_0x3b1403;},'ceMqj':function(_0x2e9664,_0x20d601){return _0x2e9664/_0x20d601;},'cseNm':'pGlII','rebIF':function(_0x4c4801,_0x11da7e){return _0x4c4801*_0x11da7e;},'BCAMQ':function(_0x4386dd,_0x3c0e18){return _0x4386dd/_0x3c0e18;},'RrAyk':function(_0x2c3a07,_0x5ba482){return _0x2c3a07>=_0x5ba482;},'DQhdh':function(_0x41e28d,_0x51c8db){return _0x41e28d-_0x51c8db;},'TrUTV':_0x157098(0x19f),'OyeIQ':function(_0x59ead9,_0x10d564,_0x188be1){return _0x59ead9(_0x10d564,_0x188be1);},'mFrIR':function(_0x54ac41,_0x2811ef){return _0x54ac41*_0x2811ef;},'IHbmd':function(_0x4ca004,_0x80ce53){return _0x4ca004*_0x80ce53;}},_0x1e4edd=_0x5d15f8[_0x157098(0x1d1)]('/'),_0x2d7851=_0x1e4edd[_0x157098(0x24e)](),_0x12f880=_0x2d7851[_0x157098(0x1d1)]('.')[0x0],_0x41bb80=_0x2d7851['split']('.')[0x1],_0x10476f=_0x1e4edd['pop'](),_0x47ccd5=_0x1e4edd[_0x157098(0x24e)](),_0x1f26e8=_0x1e4edd['pop'](),_0x4d52c1=super[_0x157098(0x256)](_0x1f26e8,_0x566a66),_0x230866=super[_0x157098(0x193)](_0x47ccd5,{'width':_0x4d52c1?_0x4d52c1['w']:_0x566a66[_0x157098(0x1e0)],'height':_0x4d52c1?_0x4d52c1['h']:_0x566a66[_0x157098(0x23d)]}),_0x356315=super[_0x157098(0x242)](_0x10476f),_0xdb7498=super[_0x157098(0x259)](_0x12f880),_0x119f79=super[_0x157098(0x275)](_0x41bb80,_0x566a66[_0x157098(0x25f)]),{x:_0x2a00f7,y:_0x2c1081,w:_0x564354,h:_0x3beb4f}=_0xd6976a[_0x157098(0x184)](_0x4d52c1,{'x':0x0,'y':0x0,'w':_0x566a66['width'],'h':_0x566a66['height']}),{width:_0x1bc4b5,height:_0x537897}=_0x230866||{'width':_0x566a66['width'],'height':_0x566a66['height']};let _0x5d414e=0x0,_0x4213f4;if(_0x566a66[_0x157098(0x1cd)]&&_0xd6976a[_0x157098(0x248)](_0x566a66[_0x157098(0x1cd)],0x1)){if(_0xd6976a[_0x157098(0x1e8)](_0xd6976a[_0x157098(0x1a5)],_0x157098(0x1bf)))_0x41df50=_0x24a680[_0x157098(0x217)]();else{const _0x3a702e=_0xd6976a['tsyJn'](_0x1bc4b5,_0x564354),_0x39b9d1=_0xd6976a[_0x157098(0x255)](_0x537897,_0x3beb4f),_0x21e2e2=Math[_0x157098(0x20e)](_0x3a702e,_0x39b9d1);if(_0x21e2e2>=0.95)console['log'](_0x157098(0x24b)),_0x5d414e=0x0;else{_0x5d414e=_0xd6976a[_0x157098(0x26e)](_0x566a66[_0x157098(0x1cd)],0x1);const _0x38fdc1=Math[_0x157098(0x2b0)](0x2,_0xd6976a[_0x157098(0x26e)](_0x566a66[_0x157098(0x1cd)],0x1));let _0x373cdc=_0xd6976a[_0x157098(0x255)](_0x566a66[_0x157098(0x1e0)],_0x38fdc1),_0x432d47=_0xd6976a[_0x157098(0x267)](_0x566a66['height'],_0x38fdc1);while(_0xd6976a['WUdTH'](_0x5d414e,0x0)){if(_0xd6976a[_0x157098(0x1eb)]===_0x157098(0x22b)){if(_0xd6976a[_0x157098(0x2b1)](_0x889fcd,_0xd6976a[_0x157098(0x269)]))_0x46ecc5=_0x2555b0[_0x157098(0x212)](_0xd6976a['YzSap']);else{if(_0xd6976a[_0x157098(0x20f)](_0x419452,_0x157098(0x271))||_0xd6976a['VmutX'](_0x55d020,_0xd6976a[_0x157098(0x219)]))_0x41338f=_0x4f805a['grayscale']();else _0xd6976a[_0x157098(0x1e8)](_0x2df1c0,_0xd6976a[_0x157098(0x250)])&&(_0xc7b52=_0x37b4cb[_0x157098(0x18e)]());}}else{const _0x3539dd=_0xd6976a[_0x157098(0x2bc)](_0x564354,_0xd6976a[_0x157098(0x255)](_0x373cdc,_0x566a66[_0x157098(0x1e0)])),_0x48bd87=_0x3beb4f*_0xd6976a['BCAMQ'](_0x432d47,_0x566a66['height']);if(_0xd6976a[_0x157098(0x199)](_0x3539dd,_0xd6976a[_0x157098(0x2bc)](_0x1bc4b5,1.1))&&_0x48bd87>=_0x537897*1.1)break;_0x5d414e--,_0x373cdc*=0x2,_0x432d47*=0x2;}}console[_0x157098(0x22d)]('Pyramid\x20optimization:\x20selected\x20page\x20'+_0x5d414e+'/'+_0xd6976a[_0x157098(0x1d5)](_0x566a66[_0x157098(0x1cd)],0x1)+'\x20(scale:\x20'+_0x21e2e2[_0x157098(0x22a)](0x2)+_0x157098(0x254)+_0x1bc4b5+'x'+_0x537897+')');}const _0x47ddec=_0x566a66[_0x157098(0x1f6)]?{'limitInputPixels':![],'page':_0x5d414e,'sequentialRead':!![],'failOn':_0xd6976a[_0x157098(0x279)]}:{'page':_0x5d414e,'sequentialRead':!![],'failOn':'none'};_0x4213f4=_0xd6976a['OyeIQ'](a0_0x2782b5,_0x249938,_0x47ddec);if(_0x4d52c1&&_0x5d414e>0x0){const _0x19f8e1=await _0x4213f4['metadata'](),_0x5078a4=_0xd6976a[_0x157098(0x267)](_0x19f8e1[_0x157098(0x1e0)],_0x566a66[_0x157098(0x1e0)]),_0x2515de={'x':Math[_0x157098(0x1c6)](_0xd6976a['mFrIR'](_0x2a00f7,_0x5078a4)),'y':Math[_0x157098(0x1c6)](_0x2c1081*_0x5078a4),'w':Math['floor'](_0xd6976a[_0x157098(0x29f)](_0x564354,_0x5078a4)),'h':Math[_0x157098(0x1c6)](_0x3beb4f*_0x5078a4)};_0x2515de['w']=Math[_0x157098(0x2a2)](_0x2515de['w'],_0xd6976a[_0x157098(0x1d5)](_0x19f8e1[_0x157098(0x1e0)],_0x2515de['x'])),_0x2515de['h']=Math[_0x157098(0x2a2)](_0x2515de['h'],_0x19f8e1[_0x157098(0x23d)]-_0x2515de['y']),this['regionImpl'](_0x2515de,_0x4213f4);}else this['regionImpl'](_0x4d52c1,_0x4213f4);}}else{const _0x30dc0b=_0x566a66['is_hd']?{'limitInputPixels':![],'sequentialRead':!![],'failOn':'none'}:{'sequentialRead':!![],'failOn':_0xd6976a[_0x157098(0x279)]};_0x4213f4=_0xd6976a['OyeIQ'](a0_0x2782b5,_0x249938,_0x30dc0b),this[_0x157098(0x21d)](_0x4d52c1,_0x4213f4);}this[_0x157098(0x1cc)](_0x230866,_0x4213f4),this[_0x157098(0x289)](_0x356315,_0x4213f4),this['qualityFormatImpl'](_0xdb7498,_0x119f79,_0x4213f4,_0x41bb80,_0x566a66);const _0x41577e={};return _0x41577e[_0x157098(0x1a3)]=_0x4213f4,_0x41577e[_0x157098(0x2b7)]=super['getContentType'](_0x119f79),_0x41577e;}[a0_0xf77c3c(0x22f)](_0x48c0b3,_0xa31296,_0x57d6f9='',_0x172e1f,_0x272600='2',_0x3369f2=0x200,_0x1997e9=0x200){const _0x2f088d=a0_0xf77c3c,_0x9731b8={'PzoEA':_0x2f088d(0x19f),'Gwxcp':function(_0x5eb50c,_0x1e8272,_0x2cfcf4){return _0x5eb50c(_0x1e8272,_0x2cfcf4);},'TSFOV':_0x2f088d(0x28f),'WYhuz':function(_0x16b720,_0x26f23c){return _0x16b720(_0x26f23c);},'EhLck':function(_0x522952,_0x7d50fa){return _0x522952 instanceof _0x7d50fa;},'IegiF':_0x2f088d(0x1e2),'Yyprt':function(_0xe649f5,_0x2a2f3a){return _0xe649f5===_0x2a2f3a;},'jjIhN':function(_0x55c37c,_0xb704ad){return _0x55c37c in _0xb704ad;},'dZLpb':_0x2f088d(0x1f0),'wNaoO':function(_0xe24311,_0x45bbc7){return _0xe24311!==_0x45bbc7;},'YbFve':_0x2f088d(0x213),'JbNNI':'FgRsX','PKudH':function(_0x12ab77,_0x22e32b){return _0x12ab77>=_0x22e32b;},'FbfGy':function(_0x435f4a,_0x173b5e){return _0x435f4a===_0x173b5e;},'aKALF':_0x2f088d(0x1ab),'osZBa':'EUBaR','vqJsI':_0x2f088d(0x1ba),'EVEKe':_0x2f088d(0x278),'mFPHL':_0x2f088d(0x180),'frsTe':'webp','YzLeG':_0x2f088d(0x1a6),'VRZat':_0x2f088d(0x1a2),'FtXZJ':_0x2f088d(0x2af),'qyjOF':_0x2f088d(0x251),'zdQGf':'bitonal','ZGPDT':_0x2f088d(0x281),'pYPCk':'native','bSpbZ':_0x2f088d(0x1d7),'Abdcl':_0x2f088d(0x1fa),'IgQoz':function(_0x5a8ab3,_0x1b58cd){return _0x5a8ab3!==_0x1b58cd;},'KqPKr':_0x2f088d(0x1d8),'efkwn':_0x2f088d(0x1c3),'BNWLj':_0x2f088d(0x1cb)};let _0x8d2633={'width':_0xa31296[_0x2f088d(0x1e0)],'height':_0xa31296[_0x2f088d(0x23d)]};_0xa31296&&_0xa31296[_0x2f088d(0x235)]&&(_0x9731b8['wNaoO'](_0x9731b8['YbFve'],_0x9731b8[_0x2f088d(0x29e)])?_0x9731b8['PKudH'](_0xa31296[_0x2f088d(0x235)],0x5)&&(console[_0x2f088d(0x22d)](_0xa31296[_0x2f088d(0x235)]),_0x8d2633={'width':_0xa31296[_0x2f088d(0x23d)],'height':_0xa31296[_0x2f088d(0x1e0)]}):_0x478330[_0x2f088d(0x22c)](0x3));const _0x50c289=super[_0x2f088d(0x2a1)](_0x48c0b3,_0x8d2633,_0x172e1f,_0x272600,_0x3369f2,_0x1997e9),_0x1f3e3=_0x50c289[_0x2f088d(0x201)];if(_0x9731b8[_0x2f088d(0x1b2)](_0x172e1f,_0x2f088d(0x1ed))||_0x172e1f==='2.1'){if(_0x9731b8['wNaoO'](_0x2f088d(0x286),_0x2f088d(0x286)))_0x528472['limitInputPixels']=![];else{_0x1f3e3['profile']=[super[_0x2f088d(0x2a7)](_0x9731b8['aKALF'],_0x172e1f,_0x272600)];if(_0x9731b8[_0x2f088d(0x1b2)](_0x272600,'2')){if(_0x9731b8[_0x2f088d(0x24d)]==='EUBaR'){const _0xd219e3={};_0xd219e3[_0x9731b8['vqJsI']]=[_0x9731b8[_0x2f088d(0x191)],_0x9731b8[_0x2f088d(0x226)],_0x9731b8[_0x2f088d(0x192)],_0x9731b8[_0x2f088d(0x18d)],_0x9731b8[_0x2f088d(0x274)],_0x9731b8[_0x2f088d(0x209)]],_0xd219e3[_0x9731b8[_0x2f088d(0x1e7)]]=[_0x2f088d(0x181),_0x2f088d(0x271),_0x9731b8[_0x2f088d(0x1be)],_0x9731b8['ZGPDT'],_0x9731b8[_0x2f088d(0x262)],_0x9731b8[_0x2f088d(0x1b9)]],_0xd219e3[_0x2f088d(0x227)]=SUPPORTS[_0x9731b8[_0x2f088d(0x246)](Number,_0x172e1f)],_0x1f3e3[_0x2f088d(0x220)][_0x2f088d(0x22c)](_0xd219e3);}else{const _0x273552=_0x2f9cb1[_0x2f088d(0x1f6)]?{'limitInputPixels':![],'sequentialRead':!![],'failOn':_0x9731b8['PzoEA']}:{'sequentialRead':!![],'failOn':_0x9731b8[_0x2f088d(0x19e)]};_0x2f09f7=_0x9731b8[_0x2f088d(0x1e5)](_0x555998,_0x2fa695,_0x273552),this[_0x2f088d(0x21d)](_0xf0b30e,_0x5f28f9);}}}}if(_0x9731b8['Yyprt'](_0x172e1f,_0x9731b8[_0x2f088d(0x1c4)])){if(_0x9731b8[_0x2f088d(0x1f9)](_0x2f088d(0x1d0),_0x9731b8['KqPKr']))_0x57d6f9&&(_0x9731b8[_0x2f088d(0x1b2)](_0x9731b8['efkwn'],'cBnnU')?(_0x2119ef['log'](_0x2f1fa0[_0x2f088d(0x235)]),_0x170776={'width':_0x300b3d[_0x2f088d(0x23d)],'height':_0x4164e8[_0x2f088d(0x1e0)]}):(_0x1f3e3[_0x2f088d(0x1e9)]=[_0x57d6f9],_0x1f3e3['preferredFormats']=[_0x57d6f9]));else return this['response']['headers'][_0x2f088d(0x2a5)](_0x45c346)||'';}if(_0x57d6f9){if(_0x9731b8[_0x2f088d(0x26a)](_0x2f088d(0x1cb),_0x9731b8[_0x2f088d(0x1b6)]))_0x1f3e3['formats']=[_0x57d6f9];else{const _0x4889a7=_0x9731b8[_0x2f088d(0x183)]['split']('|');let _0x15c224=0x0;while(!![]){switch(_0x4889a7[_0x15c224++]){case'0':_0x9731b8[_0x2f088d(0x246)](_0x12dd01,_0x10222b);continue;case'1':_0x9731b8['EhLck'](_0x3e7191,_0x39819d)&&(_0x1c0344[_0x2f088d(0x21c)](_0x2f088d(0x298),_0x4c37b1['name']),_0x3cb8c2[_0x2f088d(0x21c)](_0x2f088d(0x1c5),_0x57496a[_0x2f088d(0x23a)]),_0x364920[_0x2f088d(0x21c)](_0x2f088d(0x1e4),_0xfd32a3[_0x2f088d(0x25d)]));continue;case'2':_0x12f1e6[_0x2f088d(0x21c)](_0x9731b8[_0x2f088d(0x253)],_0x226049);continue;case'3':_0x1cae7c&&_0x9731b8[_0x2f088d(0x26a)](typeof _0x122aa8,_0x2f088d(0x1a8))&&_0x9731b8[_0x2f088d(0x1b5)](_0x9731b8[_0x2f088d(0x26b)],_0xc0b567)&&_0x4ee4d2[_0x2f088d(0x21c)](_0x2f088d(0x257),_0x39eaf2[_0x2f088d(0x1f0)]);continue;case'4':throw _0x204d49;continue;}break;}}}return _0x50c289;}['generateTilePipeline'](_0x13fb95,_0x2425dc){const _0x4446c1=a0_0xf77c3c,_0x419430={'ubRLm':function(_0x2bb9fd,_0x2274b2){return _0x2bb9fd(_0x2274b2);},'IDuBp':function(_0x23cb7b,_0x39867a){return _0x23cb7b(_0x39867a);},'vTLlj':function(_0x53d5fc,_0x3ec017){return _0x53d5fc===_0x3ec017;},'iESrd':_0x4446c1(0x282),'JlpaL':function(_0x329f9d,_0x3bda7c){return _0x329f9d||_0x3bda7c;},'mcmhS':_0x4446c1(0x27d)},_0x3cc11b=_0x2425dc[_0x4446c1(0x1f6)]?_0x419430[_0x4446c1(0x23b)](a0_0x2782b5,{'limitInputPixels':![],'sequentialRead':!![]}):_0x419430[_0x4446c1(0x2a9)](a0_0x2782b5,{'sequentialRead':!![]}),_0x5c4563=_0x13fb95[_0x4446c1(0x1d1)]('/'),_0x4bf142=_0x5c4563['pop'](),_0x147cf4=_0x4bf142[_0x4446c1(0x1d1)]('.')[0x0],_0x2574c2=_0x4bf142[_0x4446c1(0x1d1)]('.')[0x1],_0x475e01=_0x5c4563[_0x4446c1(0x24e)](),_0x7c6deb=_0x5c4563['pop'](),_0x13b494=_0x5c4563['pop']();let _0x2abbbb=![],_0x329255=_0x3cc11b,_0x45d312={'width':_0x2425dc[_0x4446c1(0x1e0)],'height':_0x2425dc[_0x4446c1(0x23d)]};if(_0x2425dc&&_0x2425dc[_0x4446c1(0x235)]){if(_0x419430[_0x4446c1(0x23e)](_0x419430[_0x4446c1(0x203)],_0x419430['iESrd']))_0x2abbbb=!![],_0x329255=_0x329255[_0x4446c1(0x244)](),_0x2425dc[_0x4446c1(0x235)]>=0x5&&(_0x45d312={'width':_0x2425dc[_0x4446c1(0x23d)],'height':_0x2425dc[_0x4446c1(0x1e0)]});else return this[_0x4446c1(0x270)][_0x4446c1(0x21f)][_0x4446c1(0x18c)][_0x4792ce[_0x4446c1(0x243)]()];}const _0x3a4543=super[_0x4446c1(0x256)](_0x13b494,_0x45d312);this['regionImpl'](_0x3a4543,_0x329255);const _0x1857ce=super[_0x4446c1(0x193)](_0x7c6deb,{'width':_0x3a4543?_0x3a4543['w']:_0x45d312['width'],'height':_0x3a4543?_0x3a4543['h']:_0x45d312[_0x4446c1(0x23d)]});this['sizeImpl'](_0x1857ce,_0x329255);const _0x57ae08=super['normalizeRotationParams'](_0x475e01);this['rotationImpl'](_0x57ae08,_0x329255);const _0x40ab22=super[_0x4446c1(0x259)](_0x147cf4),_0xac0c07=super[_0x4446c1(0x275)](_0x2574c2,_0x2425dc[_0x4446c1(0x25f)]);return this[_0x4446c1(0x1a7)](_0x40ab22,_0xac0c07,_0x329255,_0x2574c2,_0x2425dc),_0x419430[_0x4446c1(0x1b4)](_0x3a4543,_0x1857ce)||_0x57ae08||_0x40ab22||_0xac0c07||_0x2abbbb?_0x329255:_0x419430['mcmhS']!==_0x4446c1(0x196)?(console[_0x4446c1(0x22d)](_0x4446c1(0x268)),null):this['arrayBuffer'];}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etu-wiki/sharp-iiif-shims",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@etu-wiki/iiif-image-shims": "^0.0.
|
|
32
|
+
"@etu-wiki/iiif-image-shims": "^0.0.32",
|
|
33
33
|
"geotiff": "^2.1.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|