"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9137],{22243:function(r,e,t){function n(r,e){var t=r.length-e,n=0;do{for(var o=e;o>0;o--)r[n+e]+=r[n],n++;t-=e}while(t>0)}function o(r,e,t){for(var n=0,o=r.length,i=o/t;o>e;){for(var a=e;a>0;--a)r[n+e]+=r[n],++n;o-=e}for(var u=r.slice(),c=0;c=r.byteLength);++s){var p=void 0;if(2===e){switch(a[0]){case 8:p=new Uint8Array(r,s*l*t*f,l*t*f);break;case 16:p=new Uint16Array(r,s*l*t*f,l*t*f/2);break;case 32:p=new Uint32Array(r,s*l*t*f,l*t*f/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(a[0]," bits per sample."))}n(p,l)}else 3===e&&o(p=new Uint8Array(r,s*l*t*f,l*t*f),l,f)}return r}function a(r,e,t,n,o,i,a){try{var u=r[i](a),c=u.value}catch(r){return void t(r)}u.done?e(c):Promise.resolve(c).then(n,o)}function u(r,e){for(var t=0;t=0;t--)r.push(e[t]);return r}function p(r){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),n=0;n<=257;n++)e[n]=4096,t[n]=n;var o=258,i=9,a=0;function u(){o=258,i=9}function c(r){var e=function(r,e,t){var n=e%8,o=Math.floor(e/8),i=8-n,a=e+t-8*(o+1),u=8*(o+2)-(e+t),c=8*(o+2)-e;if(u=Math.max(0,u),o>=r.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var f=r[o]&Math.pow(2,8-n)-1,l=f<<=t-i;if(o+1>>u;l+=s<<=Math.max(0,t-c)}if(a>8&&o+2>>p}return l}(r,a,i);return a+=i,e}function f(r,n){return t[o]=n,e[o]=r,++o-1}function l(r){for(var n=[],o=r;4096!==o;o=e[o])n.push(t[o]);return n}var p=[];u();for(var h,y=new Uint8Array(r),v=c(y);257!==v;){if(256===v){for(u(),v=c(y);256===v;)v=c(y);if(257===v)break;if(v>256)throw new Error("corrupted code at scanline ".concat(v));s(p,l(v)),h=v}else if(v=Math.pow(2,i)&&(12===i?h=void 0:i++),v=c(y)}return new Uint8Array(p)}var h=function(r){!function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&u(r,e)}(f,r);var e,t,n,o=c(f);function f(){return i(this,f),o.apply(this,arguments)}return e=f,(t=[{key:"decodeBlock",value:function(r){return p(r).buffer}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(n.Z)}}]); //# sourceMappingURL=9137.js.map