securityos/node_modules/pdfjs-dist/build/pdf.sandbox.min.js

22 lines
618 KiB
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2023 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
!function webpackUniversalModuleDefinition(A,g){"object"==typeof exports&&"object"==typeof module?module.exports=A.pdfjsSandbox=g():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.sandbox",[],(()=>A.pdfjsSandbox=g())):"object"==typeof exports?exports["pdfjs-dist/build/pdf.sandbox"]=A.pdfjsSandbox=g():A["pdfjs-dist/build/pdf.sandbox"]=A.pdfjsSandbox=g()}(globalThis,(()=>(()=>{"use strict";var A=[,(A,g)=>{Object.defineProperty(g,"__esModule",{value:!0});g.default=void 0;var Q,C=(Q="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(A){A=A||{};var g,C,E;g||(g=void 0!==A?A:{});g.ready=new Promise((function(A,g){C=A;E=g}));var D=Object.assign({},g),i="";"undefined"!=typeof document&&document.currentScript&&(i=document.currentScript.src);Q&&(i=Q);i=0!==i.indexOf("blob:")?i.substr(0,i.replace(/[?#].*/,"").lastIndexOf("/")+1):"";var n,o=g.print||console.log.bind(console),s=g.printErr||console.warn.bind(console);Object.assign(g,D);D=null;g.wasmBinary&&(n=g.wasmBinary);g.noExitRuntime;"object"!=typeof WebAssembly&&w("no native wasm support detected");var t,h=!1;function z(A,Q,C,E){var D={string:function(A){var g=0;if(null!=A&&0!==A){var Q=1+(A.length<<2);g=P(Q);B(A,R,g,Q)}return g},array:function(A){var g=P(A.length);F.set(A,g);return g}};A=g["_"+A];var i=[],n=0;if(E)for(var o=0;o<E.length;o++){var s=D[C[o]];s?(0===n&&(n=q()),i[o]=s(E[o])):i[o]=E[o]}return function(A){0!==n&&v(n);return"string"===Q?G(A):"boolean"===Q?!!A:A}(C=A.apply(null,i))}var M,F,R,c,y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function I(A,g){for(var Q=g+NaN,C=g;A[C]&&!(C>=Q);)++C;if(16<C-g&&A.buffer&&y)return y.decode(A.subarray(g,C));for(Q="";g<C;){var E=A[g++];if(128&E){var D=63&A[g++];if(192==(224&E))Q+=String.fromCharCode((31&E)<<6|D);else{var i=63&A[g++];65536>(E=224==(240&E)?(15&E)<<12|D<<6|i:(7&E)<<18|D<<12|i<<6|63&A[g++])?Q+=String.fromCharCode(E):(E-=65536,Q+=String.fromCharCode(55296|E>>10,56320|1023&E))}}else Q+=String.fromCharCode(E)}return Q}function G(A){return A?I(R,A):""}function B(A,g,Q,C){if(0<C){C=Q+C-1;for(var E=0;E<A.length;++E){var D=A.charCodeAt(E);55296<=D&&57343>=D&&(D=65536+((1023&D)<<10)|1023&A.charCodeAt(++E));if(127>=D){if(Q>=C)break;g[Q++]=D}else{if(2047>=D){if(Q+1>=C)break;g[Q++]=192|D>>6}else{if(65535>=D){if(Q+2>=C)break;g[Q++]=224|D>>12}else{if(Q+3>=C)break;g[Q++]=240|D>>18;g[Q++]=128|D>>12&63}g[Q++]=128|D>>6&63}g[Q++]=128|63&D}}g[Q]=0}}function J(A){for(var g=0,Q=0;Q<A.length;++Q){var C=A.charCodeAt(Q);55296<=C&&57343>=C&&(C=65536+((1023&C)<<10)|1023&A.charCodeAt(++Q));127>=C?++g:g=2047>=C?g+2:65535>=C?g+3:g+4}return g}function K(A){var g=J(A)+1,Q=m(g);Q&&B(A,F,Q,g);return Q}function ba(){var A=t.buffer;M=A;g.HEAP8=F=new Int8Array(A);g.HEAP16=new Int16Array(A);g.HEAP32=c=new Int32Array(A);g.HEAPU8=R=new Uint8Array(A);g.HEAPU16=new Uint16Array(A);g.HEAPU32=new Uint32Array(A);g.HEAPF32=new Float32Array(A);g.HEAPF64=new Float64Array(A)}var k,r=[],N=[],U=[];function fa(){var A=g.preRun.shift();r.unshift(A)}var S,L=0,l=null,Y=null;function w(A){g.onAbort&&g.onAbort(A);s(A="Aborted("+A+")");h=!0;A=new WebAssembly.RuntimeError(A+". Build with -sASSERTIONS for more info.");E(A);throw A}function T(A){return A.startsWith("data:application/octet-stream;base64,")}if(!T(S="data:application/octet-stream;base64,AGFzbQEAAAAByQZtYAR/fn9/AX5gA39/fwF/YAJ/fwF/YAJ/fwBgAX8Bf2AFf35/f38BfmADf39/AGABfwBgAXwBfGACf34BfmAEf39/fwF/YAJ/fgBgAn9/AX5gAn9+AX9gA39/fgF/YAN/fn8BfmABfgF/YAN/fn8AYAZ/fn9/f38BfmADf35/AX9gBX9/f39/AX9gBn9+fn9/fwF+YAN/fn4BfmAEf39/fwBgBH9/fn8Bf2ADf39/AX5gBH9/f38BfmAGf39/f39/AX9gBX9+fn5+AGABfwF+YAN/fn4Bf2ACfHwBfGABfgF+YAV/fn9+fwF/YAV/fn5/fwF+YAd/fn9+fn5/AX9gAABgBX9/f39/AGAEf35+fwBgBX9+fn5/AX9gB39/f39/f38Bf2AGf35/fn5/AX9gBH9+f34BfmACfn8Bf2AEf35+fwF/YAJ+fwBgCX9/f39/f39/fwF/YAR/fn5/AX5gBn9/f39/fwF+YAN/fn4AYAR/fn9/AX9gBX9+fn9/AGACfn4BfmAHf35/f39/fwF+YAF/AXxgA39/fgBgBH9+f38AYAR/fn9+AX9gBH9+fn4Bf2AEf39/fgF/YAh/f39/f39/fwF/YAd/f39/f39/AGACfH8BfGADfn9/AX9gA3x8fwF8YAR/f35/AGAEf35+fgF+YAABf2AGf3x/f39/AX9gAAF8YAV/fn9+fwF+YAF8AX5gAX4BfGAFf39+f38Bf2AGf39+fn5+AX9gBn9/