Files
BTSR/bin/wwwroot/_content/Blazor.Bootstrap/pdfjs-4.0.379.worker.min.mjs

22 lines
1005 KiB
JavaScript
Raw Normal View History

2025-02-26 14:53:02 +08: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
*/
var e={d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t=globalThis.pdfjsWorker={};e.d(t,{WorkerMessageHandler:()=>WorkerMessageHandler});const a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),r=[1,0,0,1,0,0],i=[.001,0,0,.001,0,0],n=1.35,s=.35,o=.25925925925925924,c=1,l=2,h=4,u=8,d=16,f=64,g=256,p="pdfjs_internal_editor_",m=3,b=9,y=13,w=15,x={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},k=0,S=4,C=1,v=2,F=3,O=1,T=2,M=3,D=4,R=5,N=6,E=7,L=8,j=9,_=10,U=11,X=12,q=13,H=14,z=15,W=16,$=17,G=20,V="Group",K="R",J=1,Y=2,Z=4,Q=16,ee=32,te=128,ae=512,re=1,ie=2,ne=4096,se=8192,oe=32768,ce=65536,le=131072,he=1048576,ue=2097152,de=8388608,fe=16777216,ge=1,pe=2,me=3,be=4,ye=5,we={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},xe={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},ke={O:"PageOpen",C:"PageClose"},Se={ERRORS:0,WARNINGS:1,INFOS:5},Ae={NONE:0,BINARY:1},Ce=1,ve=2,Fe=3,Ie=4,Oe=5,Te=6,Me=7,De=8,Be=9,Re=10,Ne=11,Ee=12,Pe=13,Le=14,je=15,_e=16,Ue=17,Xe=18,qe=19,He=20,ze=21,We=22,$e=23,Ge=24,Ve=25,Ke=26,Je=27,Ye=28,Ze=29,Qe=30,et=31,tt=32,at=33,rt=34,it=35,nt=36,st=37,ot=38,ct=39,lt=40,ht=41,ut=42,dt=43,ft=44,gt=45,pt=46,mt=47,bt=48,yt=49,wt=50,xt=51,kt=52,St=53,At=54,Ct=55,vt=56,Ft=57,It=58,Ot=59,Tt=60,Mt=61,Dt=62,Bt=63,Rt=64,Nt=65,Et=66,Pt=67,Lt=68,jt=69,_t=70,Ut=71,Xt=72,qt=73,Ht=74,zt=75,Wt=76,$t=77,Gt=80,Vt=81,Kt=83,Jt=84,Yt=85,Zt=86,Qt=87,ea=88,ta=89,aa=90,ra=91,ia=1,na=2;let sa=Se.WARNINGS;function getVerbosityLevel(){return sa}function info(e){sa>=Se.INFOS&&console.log(`Info: ${e}`)}function warn(e){sa>=Se.WARNINGS&&console.log(`Warning: ${e}`)}function unreachable(e){throw new Error(e)}function assert(e,t){e||unreachable(t)}function createValidAbsoluteUrl(e,t=null,a=null){if(!e)return null;try{if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t?.length>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=stringToUTF8String(e)}catch{}}const r=t?new URL(e,t):new URL(e);if(function _isValidProtocol(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch{}return null}function shadow(e,t,a,r=!1){Object.defineProperty(e,t,{value:a,enumerable:!r,configurable:!0,writable:!1});return a}const oa=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();class PasswordException extends oa{constructor(e,t){super(e,"PasswordException");this.code=t}}class UnknownErrorException extends oa{constructor(e,t){super(e,"UnknownErrorException");this.details=t}}class InvalidPDFException extends oa{constructor(e){super(e,"InvalidPDFException")}}class MissingPDFException extends oa{constructor(e){super(e,"MissingPDFException")}}class UnexpectedResponseException extends oa{constructor(e,t){super(e,"UnexpectedResponseException");this.status=t}}class FormatError extends oa{constructor(e){super(e,"FormatError")}}class AbortException extends oa{constructor(e){super(e,"AbortException")}}function bytesToString(e){"object"==typeof e&&void 0!==e?.length||unreachable("Invalid argument for bytesToString");const t=e.length,a=8192;if(t<a)return String.fromCharCode.apply(null,e);const r=[];for(let i=0;i<t;i+=a){const n=Math.min(i+a,t),s=e.subarray(i,n);r.push(String.fromCharCode.apply(null,s))}return r.join("")}function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let r=0;r<t;++r)a[r]=25