You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
13 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4763],{22243:function(e,r,n){function t(e,r){var n=e.length-r,t=0;do{for(var a=r;a>0;a--)e[t+r]+=e[t],t++;n-=r}while(n>0)}function a(e,r,n){for(var t=0,a=e.length,o=a/n;a>r;){for(var i=r;i>0;--i)e[t+r]+=e[t],++t;a-=r}for(var s=e.slice(),f=0;f<o;++f)for(var c=0;c<n;++c)e[n*f+c]=s[(n-c-1)*o+f]}function o(e,r,n,o,i,s){if(!r||1===r)return e;for(var f=0;f<i.length;++f){if(i[f]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(i[f]!==i[0])throw new Error("When decoding with predictor, all samples must have the same size.")}for(var c=i[0]/8,u=2===s?1:i.length,l=0;l<o&&!(l*u*n*c>=e.byteLength);++l){var h=void 0;if(2===r){switch(i[0]){case 8:h=new Uint8Array(e,l*u*n*c,u*n*c);break;case 16:h=new Uint16Array(e,l*u*n*c,u*n*c/2);break;case 32:h=new Uint32Array(e,l*u*n*c,u*n*c/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(i[0]," bits per sample."))}t(h,u)}else 3===r&&a(h=new Uint8Array(e,l*u*n*c,u*n*c),u,c)}return e}function i(e,r,n,t,a,o,i){try{var s=e[o](i),f=s.value}catch(e){return void n(e)}s.done?r(f):Promise.resolve(f).then(t,a)}function s(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}n.d(r,{Z:function(){return f}});var f=function(){function e(){!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,n,t,a,f;return r=e,(n=[{key:"decode",value:(a=regeneratorRuntime.mark((function e(r,n){var t,a,i,s,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.decodeBlock(n);case 2:if(t=e.sent,1===(a=r.Predictor||1)){e.next=9;break}return i=!r.StripOffsets,s=i?r.TileWidth:r.ImageWidth,f=i?r.TileLength:r.RowsPerStrip||r.ImageLength,e.abrupt("return",o(t,a,s,f,r.BitsPerSample,r.PlanarConfiguration));case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this)})),f=function(){var e=this,r=arguments;return new Promise((function(n,t){var o=a.apply(e,r);function s(e){i(o,n,t,s,f,"next",e)}function f(e){i(o,n,t,s,f,"throw",e)}s(void 0)}))},function(e,r){return f.apply(this,arguments)})}])&&s(r.prototype,n),t&&s(r,t),Object.defineProperty(r,"prototype",{writable:!1}),e}()},94763:function(e,r,n){n.r(r),n.d(r,{default:function(){return x}});var t=n(22243);function a(e,r){return(a=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function o(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,t=s(e);if(r){var a=s(this).constructor;n=Reflect.construct(t,arguments,a)}else n=t.apply(this,arguments);return i(this,n)}}function i(e,r){if(r&&("object"===l(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function c(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function u(e,r,n){return r&&c(e.prototype,r),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,3
//# sourceMappingURL=4763.js.map