: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (!hasOwn(PolyfilledDOMException, constantName)) {
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
var defineBuiltIn = __webpack_require__(6840);
var uncurryThis = __webpack_require__(9504);
var toString = __webpack_require__(655);
var validateArgumentsLength = __webpack_require__(2812);
var $URLSearchParams = URLSearchParams;
var URLSearchParamsPrototype = $URLSearchParams.prototype;
var append = uncurryThis(URLSearchParamsPrototype.append);
var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
var push = uncurryThis([].push);
var params = new $URLSearchParams('a=1&a=2&b=3');
params['delete']('a', 1);
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
params['delete']('b', undefined);
if (params + '' !== 'a=2') {
defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
var length = arguments.length;
var $value = length < 2 ? undefined : arguments[1];
if (length && $value === undefined) return $delete(this, name);
forEach(this, function (v, k) { // also validates `this`
push(entries, { key: k, value: v });
validateArgumentsLength(length, 1);
var key = toString(name);
var value = toString($value);
var entriesLength = entries.length;
while (index < entriesLength) {
entry = entries[index++];
if (found || entry.key === key) {
$delete(this, entry.key);
while (dindex < entriesLength) {
entry = entries[dindex++];
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
}, { enumerable: true, unsafe: true });
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
var defineBuiltIn = __webpack_require__(6840);
var uncurryThis = __webpack_require__(9504);
var toString = __webpack_require__(655);
var validateArgumentsLength = __webpack_require__(2812);
var $URLSearchParams = URLSearchParams;
var URLSearchParamsPrototype = $URLSearchParams.prototype;
var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
var $has = uncurryThis(URLSearchParamsPrototype.has);
var params = new $URLSearchParams('a=1');
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
if (params.has('a', 2) || !params.has('a', undefined)) {
defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
var length = arguments.length;
var $value = length < 2 ? undefined : arguments[1];
if (length && $value === undefined) return $has(this, name);
var values = getAll(this, name); // also validates `this`
validateArgumentsLength(length, 1);
var value = toString($value);
while (index < values.length) {
if (values[index++] === value) return true;
}, { enumerable: true, unsafe: true });
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
var DESCRIPTORS = __webpack_require__(3724);
var uncurryThis = __webpack_require__(9504);
var defineBuiltInAccessor = __webpack_require__(2106);
var URLSearchParamsPrototype = URLSearchParams.prototype;
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
forEach(this, function () { count++; });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Return the exports of the module
/******/ return module.exports;
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/************************************************************************/
var __webpack_exports__ = globalThis.pdfjsLib = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
__webpack_require__.d(__webpack_exports__, {
AbortException: () => (/* reexport */ AbortException),
AnnotationEditorLayer: () => (/* reexport */ AnnotationEditorLayer),
AnnotationEditorParamsType: () => (/* reexport */ AnnotationEditorParamsType),
AnnotationEditorType: () => (/* reexport */ AnnotationEditorType),
AnnotationEditorUIManager: () => (/* reexport */ AnnotationEditorUIManager),
AnnotationLayer: () => (/* reexport */ AnnotationLayer),
AnnotationMode: () => (/* reexport */ AnnotationMode),
CMapCompressionType: () => (/* reexport */ CMapCompressionType),
ColorPicker: () => (/* reexport */ ColorPicker),
DOMSVGFactory: () => (/* reexport */ DOMSVGFactory),
DrawLayer: () => (/* reexport */ DrawLayer),
FeatureTest: () => (/* reexport */ util_FeatureTest),
GlobalWorkerOptions: () => (/* reexport */ GlobalWorkerOptions),
ImageKind: () => (/* reexport */ util_ImageKind),
InvalidPDFException: () => (/* reexport */ InvalidPDFException),
MissingPDFException: () => (/* reexport */ MissingPDFException),
OPS: () => (/* reexport */ OPS),
Outliner: () => (/* reexport */ Outliner),
PDFDataRangeTransport: () => (/* reexport */ PDFDataRangeTransport),
PDFDateString: () => (/* reexport */ PDFDateString),
PDFWorker: () => (/* reexport */ PDFWorker),
PasswordResponses: () => (/* reexport */ PasswordResponses),
PermissionFlag: () => (/* reexport */ PermissionFlag),
PixelsPerInch: () => (/* reexport */ PixelsPerInch),
RenderingCancelledException: () => (/* reexport */ RenderingCancelledException),
TextLayer: () => (/* reexport */ TextLayer),
UnexpectedResponseException: () => (/* reexport */ UnexpectedResponseException),
Util: () => (/* reexport */ Util),
VerbosityLevel: () => (/* reexport */ VerbosityLevel),
XfaLayer: () => (/* reexport */ XfaLayer),
build: () => (/* reexport */ build),
createValidAbsoluteUrl: () => (/* reexport */ createValidAbsoluteUrl),
fetchData: () => (/* reexport */ fetchData),
getDocument: () => (/* reexport */ getDocument),
getFilenameFromUrl: () => (/* reexport */ getFilenameFromUrl),
getPdfFilenameFromUrl: () => (/* reexport */ getPdfFilenameFromUrl),
getXfaPageViewport: () => (/* reexport */ getXfaPageViewport),
isDataScheme: () => (/* reexport */ isDataScheme),
isPdfFile: () => (/* reexport */ isPdfFile),
noContextMenu: () => (/* reexport */ noContextMenu),
normalizeUnicode: () => (/* reexport */ normalizeUnicode),
renderTextLayer: () => (/* reexport */ renderTextLayer),
setLayerDimensions: () => (/* reexport */ setLayerDimensions),
shadow: () => (/* reexport */ shadow),
updateTextLayer: () => (/* reexport */ updateTextLayer),
version: () => (/* reexport */ version)
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__(4114);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array-buffer.detached.js
var es_array_buffer_detached = __webpack_require__(6573);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array-buffer.transfer.js
var es_array_buffer_transfer = __webpack_require__(8100);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array-buffer.transfer-to-fixed-length.js
var es_array_buffer_transfer_to_fixed_length = __webpack_require__(7936);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.to-reversed.js
var es_typed_array_to_reversed = __webpack_require__(7467);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.to-sorted.js
var es_typed_array_to_sorted = __webpack_require__(4732);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.with.js
var es_typed_array_with = __webpack_require__(9577);
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
var web_url_search_params_delete = __webpack_require__(4603);
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
var web_url_search_params_has = __webpack_require__(7566);
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
var web_url_search_params_size = __webpack_require__(8721);
;// CONCATENATED MODULE: ./src/shared/util.js
const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser");
const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
const MAX_IMAGE_SIZE_TO_CACHE = 10e6;
const LINE_FACTOR = 1.35;
const LINE_DESCENT_FACTOR = 0.35;
const BASELINE_FACTOR = LINE_DESCENT_FACTOR / LINE_FACTOR;
const RenderingIntentFlag = {
ANNOTATIONS_STORAGE: 0x20,
ANNOTATIONS_DISABLE: 0x40,
const AnnotationEditorPrefix = "pdfjs_internal_editor_";
const AnnotationEditorType = {
const AnnotationEditorParamsType = {
HIGHLIGHT_DEFAULT_COLOR: 32,
MODIFY_ANNOTATIONS: 0x20,
FILL_INTERACTIVE_FORMS: 0x100,
COPY_FOR_ACCESSIBILITY: 0x200,
PRINT_HIGH_QUALITY: 0x800
const TextRenderingMode = {
FILL_STROKE_ADD_TO_PATH: 6,
const AnnotationReplyType = {
const AnnotationFieldFlag = {
NOTOGGLETOOFF: 0x0004000,
DONOTSPELLCHECK: 0x0400000,
RADIOSINUNISON: 0x2000000,
COMMITONSELCHANGE: 0x4000000
const AnnotationBorderStyleType = {
const AnnotationActionEventType = {
const DocumentActionEventType = {
const PageActionEventType = {
const CMapCompressionType = {
setTextRenderingMode: 38,
nextLineSetSpacingShowText: 47,
setCharWidthAndBounds: 49,