asteroid/templates/reader/extensions/extractor/on-the-fly.bibi-zip-loader.worker.js

8 lines
467 KiB
JavaScript
Raw Normal View History

!function(e){var r={};function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(a,i,function(r){return e[r]}.bind(null,i));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=58)}([function(e,r,t){"use strict";(function(e){t.d(r,"o",function(){return c}),t.d(r,"c",function(){return k}),t.d(r,"d",function(){return l}),t.d(r,"a",function(){return u}),t.d(r,"b",function(){return g}),t.d(r,"m",function(){return h}),t.d(r,"n",function(){return s}),t.d(r,"l",function(){return d}),t.d(r,"k",function(){return V}),t.d(r,"i",function(){return p}),t.d(r,"j",function(){return m}),t.d(r,"f",function(){return Z}),t.d(r,"g",function(){return W}),t.d(r,"h",function(){return Y}),t.d(r,"e",function(){return B});var a=t(2),i=new ArrayBuffer(8),n=new Int32Array(i);new Float32Array(i),new Float64Array(i);var A,f=new ArrayBuffer(1179648),o=(A=new Uint8Array(f),function(r,t){var a;if(void 0===e){a=atob(t);for(var i=0;i<a.length;i++)A[r+i]=a.charCodeAt(i)}else for(a=e.from(t,"base64"),i=0;i<a.length;i++)A[r+i]=a[i]});o(1048576,"77u///7+/2EgRGlzc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vcjogVW5zdXBwb3J0ZWRDb21wcmVzc2lvbk1ldGhvZDogTG9hZEZpbGVFcnJvcjogVW5tYXRjaEhlYWRlckxvYWRGaWxlRXJyb3I6IEZpbGVOYW1lQ29udmVyc2lvbkVycm9yTG9hZEZpbGVFcnJvcjogSW52YWxpZFNpZ25hdHVyZWFzc2VydGlvbiB
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var a=t(114),i=t(115),n=t(116);function A(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(e,r){if(A()<r)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=o.prototype:(null===e&&(e=new o(r)),e.length=r),e}function o(e,r,t){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,r,t);if("number"==typeof e){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return k(this,e)}return b(this,e,r,t)}function b(e,r,t,a){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(e,r,t,a){if(r.byteLength,t<0||r.byteLength<t)throw new RangeError("'offset' is out of bounds");if(r.byteLength<t+(a||0))throw new RangeError("'length' is out of bounds");r=void 0===t&&void 0===a?new Uint8Array(r):void 0===a?new Uint8Array(r,t):new Uint8Array(r,t,a);o.TYPED_ARRAY_SUPPORT?(e=r).__proto__=o.prototype:e=l(e,r);return e}(e,r,t,a):"string"==typeof r?function(e,r,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var a=0|g(r,t),i=(e=f(e,a)).write(r,t);i!==a&&(e=e.slice(0,i));return e}(e,r,t):function(e,r){if(o.isBuffer(r)){var t=0|u(r.length);return 0===(e=f(e,t)).length?e:(r.copy(e,0,0,t),e)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(a=r.length)!=a?f(e,0):l(e,r);if("Buffer"===r.type&&n(r.data))return l(e,r.data)}var a;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,r)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function k(e,r){if(c(r),e=f(e,r<0?0:0|u(r)),!o.TYPED_ARRAY_SUPPORT)for(var t=0;t<r;++t)e[t]=0;return e}function l(e,r){var t=r.length<0?0:0|u(r.length);e=f(e,t);for(var a=0;a<t;a+=1)e[a]=255&r[a];return e}function u(e){if(e>=A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return 0|e}function g(e,r){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var a=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return T(e).length;default:if(a)return H(e).length;r=(""+r).toLowerCase(),a=!0}}function h(e,r,t){var a=e[r];e[r]=e[t],e[t]=a}function s(e,r,t,a,i){if(0===e.length)return-1;if("string"==typeof t?(a=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0){if(!i)return-1;t=0}if("string"==typeof r&&(r=o.from(r,a)),o.isBuffer(r))return 0===r.length?-1:d(e,r,t,a,i);if("number"==typeof r)return r&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):d(e,[r],t,a,i);throw new TypeError("val must be string, number or Buffer")}function d(e,r,t,a,i){var n,A=1,f=e.length,o=r.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||r.length<2)return-1;A=2,f/=2,o/=2,t/=2}function b(e,r){return 1===A?e[r]:e.readUInt16BE(r*A)}if(i){var c=-1;for(n=t;n<f;n++)if(b(e,n)===b(r,-1===c?0:n-c)){if(-1===c&&(c=n),n-c+1===o)return c*A}else-1!==c&&(n-=n-c),c=-1}else for(t+o>f&&(t=f-o),n=t;n>=0;n--){for(var k=!0,l=0;l<o;l++)if(b(e,n+l)!==b(r,l)){k=!1;break}if(k)return n}return-1}function V(e,r,t,a){t=Number(t)||0;var i=e.length-t;a?(a=Number(a))>i&&(a=i):a=i;var n=r.length;if(n%2!=0)throw new TypeError("Invalid he