@nutrient-sdk/viewer 1.10.0-nightly.20251121 → 1.10.0-nightly.20251123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +57 -15
- package/dist/nutrient-viewer-lib/{chunk-848-88cad4f44df49dad.js → chunk-848-de2f3a0e334f8687.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-core-worker-4045a47b33e7c599.js → chunk-core-worker-ddf21c76afda7b01.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-604feae1965cff83.js → chunk-gdpicture-86c48c973ab4ba0c.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-worker-2207136eaf99149c.js → chunk-gdpicture-worker-b83357df1cd36c33.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-lazy-sha-d5b1136cfc41d99b.js → chunk-lazy-sha-36f735be623c62f1.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ar-0569e59328d38fda.js → chunk-locale-ar-3c9c8ae394bacd67.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cs-b2093f6f6a5bdf73.js → chunk-locale-cs-39c8ba51b90e5550.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cy-aeddc9992252c65e.js → chunk-locale-cy-a44faa837e44b603.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-da-eb995186e4d9b915.js → chunk-locale-da-bc22f103edd39d8f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-de-17702cad02bb06b6.js → chunk-locale-de-17cc2e96be8b36ad.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-el-cbf78dd3081ce68a.js → chunk-locale-el-6fb2233d915f409b.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-7c1da88695b79099.js → chunk-locale-en-GB-09cdfc0d7e1467fd.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-es-2ebfa832038ab8fd.js → chunk-locale-es-fd25993ed6224448.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fi-55a3d15dc7104871.js → chunk-locale-fi-032b6a5c890d375a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-5913f6199798bd07.js → chunk-locale-fr-3f7a144897e25e90.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-dc48ad09fbe8a7c1.js → chunk-locale-fr-CA-ce4beccd674d3c08.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-he-d2a011886bf9abfe.js → chunk-locale-he-302139b44b20e1bc.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-hr-8ed46c7a61744117.js → chunk-locale-hr-dfb325c9d70c661a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-id-7bf441aa3328e2f8.js → chunk-locale-id-335911a3ecc1adfb.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-it-c305c76a9c8b5c6a.js → chunk-locale-it-3c9ae65e998801f4.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ja-70e8005fec2bca17.js → chunk-locale-ja-83fae3fa49861e47.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ko-b7f84f47035149af.js → chunk-locale-ko-fa388e460ebb59e4.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ms-b417249995cc3efa.js → chunk-locale-ms-380badf44b865791.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-f8a24551c8e82f45.js → chunk-locale-nb-NO-4c23836b10ec322e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nl-d88f2a351db24452.js → chunk-locale-nl-3ad0151965e60157.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pl-bd61a4b63eff1295.js → chunk-locale-pl-ca19e0addcf5c738.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-beb25dfa38904dfe.js → chunk-locale-pt-9ec289a5b5c02cb5.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-14b916cfca85f3c0.js → chunk-locale-pt-PT-65aecf9197257072.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ru-f5b6c0f684b44aef.js → chunk-locale-ru-aa898739da902a67.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sk-61e93ec98c15467c.js → chunk-locale-sk-3c8bb28ccd57b7c6.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sl-9723192acf0acc4e.js → chunk-locale-sl-1da898cd47663092.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sv-573413606d13df81.js → chunk-locale-sv-39cae10f8d167b92.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-th-78825fec3b957798.js → chunk-locale-th-c57138d10754cf98.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-tr-c62c846ddb167a1b.js → chunk-locale-tr-bcc83a1dda6e4471.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-uk-99cce7fb8165ef26.js → chunk-locale-uk-d2b3aa8fd6a12aa2.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-691075be7e1d8255.js → chunk-locale-zh-Hans-1349009f8c11de8d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-58dddd557996513f.js → chunk-locale-zh-Hant-9b15709ee0695474.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-offscreen-renderer-worker-7904fcbbb4ca1dc3.js → chunk-offscreen-renderer-worker-c86ee48eba926bec.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-server-916089c307373857.js → chunk-server-43ff0abc59812e6f.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-server-instant-b280aec8ca4d1e5a.js → chunk-server-instant-c702ce1307b67aed.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-server-rest-6e5bd9a56ebf0085.js → chunk-server-rest-c1bd1a8c31c508e4.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-standalone-d20678d27505df97.js → chunk-standalone-94577a32d12cc4b0.js} +1 -1
- package/dist/nutrient-viewer-lib/chunk-standalone-server-0cba2f2bf2b0495a.js +13 -0
- package/dist/nutrient-viewer-lib/core-worker.js +2 -2
- package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/DocumentFormat.OpenXml.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.API.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.CAD.DWG.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.CAD.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.Common.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.Document.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.Email.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.HTML.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-174da64a/aot/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.Imaging.Rendering.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.Imaging.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.MSOfficeBinary.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.OpenDocument.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.OpenXML.Templating.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.OpenXML.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.14.PDF.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.RTF.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.SVG.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.barcode.1d.writer.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.14.barcode.2d.writer.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.JsonApi.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.PSPDFKit.Wasm.runtimeconfig.json +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/GdPicture.NET.PSPDFKit.Wasm.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/GdPicture.NET.Wasm.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/Microsoft.CSharp.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Collections.Concurrent.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Collections.Immutable.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Collections.NonGeneric.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Collections.Specialized.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Collections.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.ComponentModel.EventBasedAsync.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.ComponentModel.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.ComponentModel.TypeConverter.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.ComponentModel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Console.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Data.Common.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Diagnostics.DiagnosticSource.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Diagnostics.Process.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Diagnostics.TraceSource.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Drawing.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Drawing.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Formats.Asn1.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.IO.Compression.ZipFile.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.IO.Compression.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Linq.Expressions.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Memory.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Http.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Mail.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Net.Requests.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Security.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.ServicePoint.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Sockets.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Net.WebHeaderCollection.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Net.WebSockets.Client.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.WebSockets.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.ObjectModel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Private.CoreLib.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Private.Uri.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Private.Xml.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Private.Xml.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Runtime.Numerics.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Runtime.Serialization.Formatters.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Security.Cryptography.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.Text.Encoding.CodePages.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Text.Encodings.Web.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Text.Json.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Text.RegularExpressions.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Threading.Tasks.Parallel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Xml.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/System.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-174da64a/aot/blazor.boot.json +114 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/dotnet.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/dotnet.js.map +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/dotnet.native.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/dotnet.native.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/jit → gdpicture-174da64a/aot}/dotnet.runtime.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/dotnet.runtime.js.map +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/list.json +204 -204
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/DocumentFormat.OpenXml.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.API.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.CAD.DWG.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.CAD.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.Common.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.Document.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.Email.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.HTML.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-174da64a/jit/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.Imaging.Rendering.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.Imaging.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.MSOfficeBinary.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.OpenDocument.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.OpenXML.Templating.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.OpenXML.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.14.PDF.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.RTF.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.SVG.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.barcode.1d.writer.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.14.barcode.2d.writer.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.JsonApi.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.PSPDFKit.Wasm.runtimeconfig.json +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/GdPicture.NET.PSPDFKit.Wasm.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/GdPicture.NET.Wasm.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/Microsoft.CSharp.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Collections.Concurrent.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Collections.Immutable.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Collections.NonGeneric.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Collections.Specialized.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Collections.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.ComponentModel.EventBasedAsync.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.ComponentModel.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.ComponentModel.TypeConverter.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.ComponentModel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Console.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Data.Common.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Diagnostics.DiagnosticSource.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Diagnostics.Process.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Diagnostics.TraceSource.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Drawing.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Drawing.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Formats.Asn1.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.IO.Compression.ZipFile.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.IO.Compression.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Linq.Expressions.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Memory.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Http.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Mail.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Net.Requests.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Security.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.ServicePoint.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Sockets.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Net.WebHeaderCollection.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Net.WebSockets.Client.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.WebSockets.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.ObjectModel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Private.CoreLib.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Private.Uri.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Private.Xml.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Private.Xml.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Runtime.Numerics.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Runtime.Serialization.Formatters.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Security.Cryptography.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.Text.Encoding.CodePages.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Text.Encodings.Web.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Text.Json.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Text.RegularExpressions.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Threading.Tasks.Parallel.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Xml.Linq.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/System.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-174da64a/jit/blazor.boot.json +114 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/dotnet.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/dotnet.js.map +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/dotnet.native.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/dotnet.native.wasm +0 -0
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b/aot → gdpicture-174da64a/jit}/dotnet.runtime.js +1 -1
- package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/dotnet.runtime.js.map +1 -1
- package/dist/nutrient-viewer-lib/gdpicture-worker.js +2 -2
- package/dist/nutrient-viewer-lib/{nutrient-viewer-1.10.0-398bab4.css → nutrient-viewer-1.10.0-eb26372.css} +1 -1
- package/dist/nutrient-viewer-lib/{nutrient-viewer-5ad49bb871bb541f.wasm → nutrient-viewer-25fe6856b4596ded.wasm} +0 -0
- package/dist/nutrient-viewer-lib/nutrient-viewer-9303291e7f6b26aa.wasm.js +1 -1
- package/dist/nutrient-viewer-lib/offscreen-render-worker.js +1 -1
- package/dist/nutrient-viewer.js +2 -2
- package/package.json +1 -1
- package/dist/nutrient-viewer-lib/chunk-standalone-server-53e710dfe23e26db.js +0 -13
- package/dist/nutrient-viewer-lib/gdpicture-aa63976b/aot/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-aa63976b/aot/blazor.boot.json +0 -114
- package/dist/nutrient-viewer-lib/gdpicture-aa63976b/jit/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
- package/dist/nutrient-viewer-lib/gdpicture-aa63976b/jit/blazor.boot.json +0 -114
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/BouncyCastle.Cryptography.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/DocumentFormat.OpenXml.Framework.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/Newtonsoft.Json.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/OpenMcdf.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/RtfPipe.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.IO.Packaging.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Net.Http.Formatting.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Security.Cryptography.Pkcs.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/System.Windows.Extensions.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/icudt_CJK.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/icudt_EFIGS.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/icudt_no_CJK.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/initDotnet.js +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/package.json +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/protobuf-net.Core.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/protobuf-net.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resourceLoader.js +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78ms-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_78ms-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_83pv-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90ms-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90ms-RKSJ-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90ms-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90msp-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90msp-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90pv-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90pv-RKSJ-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90pv-RKSJ-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_90pv-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Add-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Add-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Add-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Add-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-6.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-7.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-B5pc.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-ETenms-B5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-CNS1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-GB1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-6.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-90ms-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-90pv-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Japan2-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-KSCms-UHC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-KSCpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Adobe-Korea1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5pc-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5pc-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5pc-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_B5pc-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS1-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS1-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CNS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_CourierStdToNew.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_DefaultCMYK.icc +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_DroidSansFallbackFull.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_DroidSansMono.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETHK-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETHK-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETen-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETen-B5-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETen-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETenms-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ETenms-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Ext-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Ext-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Ext-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Ext-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GB-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GB-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GB-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GB-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBK-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBK-EUC-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBK-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBK2K-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBK2K-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBKp-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBKp-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBT-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBT-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBT-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBT-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBTpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBTpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBpc-EUC-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GBpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_GdPictureOCRFont.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKdla-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKdla-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKdlb-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKdlb-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKgccs-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKgccs-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKm314-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKm314-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKm471-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKm471-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKscs-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_HKscs-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hankaku.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hiragana.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hojo-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hojo-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hojo-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Hojo-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Identity-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Identity-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-Johab-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-Johab-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCms-UHC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCms-UHC-HW-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCms-UHC-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCms-UHC-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCms-UHC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCpc-EUC-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_KSCpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Katakana.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_NWP-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_NWP-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_OutputIntent.icc +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_PDFA-XMP.4.2.3 +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Roman.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Symbol.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-90ms-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-90pv-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-B5pc.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-ETen-B5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-GBK-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-GBpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-KSCms-UHC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UCS2-KSCpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniCNS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniGB-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniHojo-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UCS2-HW-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UCS2-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJIS2004-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISPro-UCS2-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISPro-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISPro-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISX0213-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISX0213-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISX02132004-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniJISX02132004-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_UniKS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_WP-Symbol.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_Wingding.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_ZapfDingbats.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_fontsubst.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/resources/_times.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/aot/supportFiles/0_runtimeconfig.bin +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/BouncyCastle.Cryptography.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/DocumentFormat.OpenXml.Framework.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/Newtonsoft.Json.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/OpenMcdf.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/RtfPipe.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.IO.Packaging.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Net.Http.Formatting.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Security.Cryptography.Pkcs.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/System.Windows.Extensions.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/icudt_CJK.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/icudt_EFIGS.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/icudt_no_CJK.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/initDotnet.js +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/package.json +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/protobuf-net.Core.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/protobuf-net.wasm +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resourceLoader.js +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78ms-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_78ms-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_83pv-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90ms-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90ms-RKSJ-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90ms-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90msp-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90msp-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90pv-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90pv-RKSJ-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90pv-RKSJ-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_90pv-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Add-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Add-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Add-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Add-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-6.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-7.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-B5pc.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-ETenms-B5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-CNS1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-GB1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-3.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-4.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-6.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-90ms-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-90pv-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Japan2-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-0.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-1.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-H-CID.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-H-Host.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-H-Mac.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-KSCms-UHC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-KSCpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Adobe-Korea1-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5pc-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5pc-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5pc-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_B5pc-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS1-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS1-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CNS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_CourierStdToNew.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_DefaultCMYK.icc +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_DroidSansFallbackFull.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_DroidSansMono.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETHK-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETHK-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETen-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETen-B5-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETen-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETenms-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ETenms-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Ext-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Ext-RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Ext-RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Ext-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GB-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GB-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GB-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GB-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBK-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBK-EUC-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBK-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBK2K-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBK2K-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBKp-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBKp-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBT-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBT-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBT-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBT-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBTpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBTpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBpc-EUC-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GBpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_GdPictureOCRFont.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKdla-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKdla-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKdlb-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKdlb-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKgccs-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKgccs-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKm314-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKm314-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKm471-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKm471-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKscs-B5-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_HKscs-B5-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hankaku.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hiragana.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hojo-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hojo-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hojo-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Hojo-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Identity-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Identity-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-Johab-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-Johab-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCms-UHC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCms-UHC-HW-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCms-UHC-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCms-UHC-UCS2.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCms-UHC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCpc-EUC-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCpc-EUC-UCS2C.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_KSCpc-EUC-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Katakana.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_NWP-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_NWP-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_OutputIntent.icc +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_PDFA-XMP.4.2.3 +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_RKSJ-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_RKSJ-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Roman.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Symbol.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-90ms-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-90pv-RKSJ.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-B5pc.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-ETen-B5.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-GBK-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-GBpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-KSCms-UHC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UCS2-KSCpc-EUC.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniCNS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniGB-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniHojo-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UCS2-HW-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UCS2-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJIS2004-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISPro-UCS2-HW-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISPro-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISPro-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISX0213-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISX0213-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISX02132004-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniJISX02132004-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UCS2-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UCS2-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF16-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF16-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF32-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF32-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF8-H.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_UniKS-UTF8-V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_V.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_WP-Symbol.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_Wingding.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_ZapfDingbats.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_fontsubst.dat +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/_times.ttf +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/resources/list.json +0 -0
- /package/dist/nutrient-viewer-lib/{gdpicture-aa63976b → gdpicture-174da64a}/jit/supportFiles/0_runtimeconfig.bin +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Nutrient Web SDK 1.10.0-
|
|
2
|
+
* Nutrient Web SDK 1.10.0-eb26372 (https://www.nutrient.io/sdk/web)
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
|
|
5
5
|
*
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*
|
|
11
11
|
* PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/
|
|
12
12
|
*/
|
|
13
|
-
"use strict";(globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[750],{1033:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var n=r(67136),s=r(49568),i=r(85409),o=r(45646),a=r(63097),l=r(99589),c=r(55994),h=r(34551),u=r(47159),d=r(5293),p=r(97881),m=r(14631),f=r(54781),E=r(85553);class g extends(s.mS({authPayload:null,serverUrl:null,hostedBaseUrl:null,documentId:null,layerName:null,sourcePdfSha256:null,backendPermissions:null,documentURL:null,imageToken:null,instantSettings:null,token:null,features:(0,s.B8)(),signatureFeatureAvailability:E.g.NONE,isFormsEnabled:!0,minSearchQueryLength:1,documentHandle:null,isDocumentHandleOutdated:!1,digitalSignatures:null,defaultGroup:void 0,hasCollaborationPermissions:!1,forceLegacySignaturesFeature:!1,disableWebAssemblyStreaming:!1,overrideMemoryLimit:null,baseCoreUrl:null,useDeprecatedRestProvider:!1})){}var w=r(14511),y=r(15168),$=r(28650),R=r(85410),v=r(9627);const S="The image can not be rendered because of an unknown error.";class I{constructor(e){let{identifier:t,url:r,token:n,payload:s,doNotRequestWebP:i=!1}=e;this.identifier=t,this.url=r,this.token=n,this.payload=s,this.doNotRequestWebP=i}abort(){this.httpRequest?.abort()}request(){return new Promise(((e,t)=>{const r=new XMLHttpRequest;this.httpRequest=r,r.open(this.payload?"POST":"GET",this.url,!0),r.setRequestHeader("X-PSPDFKit-Image-Token",this.token),r.setRequestHeader("PSPDFKit-Platform","web"),r.setRequestHeader("PSPDFKit-Version",(0,R._q)()),y.xd&&!this.doNotRequestWebP&&r.setRequestHeader("Accept","image/webp,*/*"),r.responseType="blob",r.onreadystatechange=(async()=>{if(4!==r.readyState)return;if(r.response&&r.response.type.startsWith("application/json")){const n=new FileReader;return n.onload=r=>{const n=JSON.parse(r.target?.result);n.attachments_not_found?e({attachmentsNotFound:n.attachments_not_found}):n.error?"initialization_error"===n.error?e(null):t(new i.uE(`The server could not render the requested image (${n.error})`)):t(new i.uE(S))},n.onerror=()=>t(new i.uE(S)),void n.readAsText(r.response)}if(!(0,w.Nk)(r.status))return void t(new i.uE(S));const n=r.response,s=URL.createObjectURL(n),o=new Image;o.onerror=()=>t(new i.uE(S)),o.src=s;const a=o.decode();try{await a}catch(e){if(!v.H8)throw new i.uE(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}e(new $.A(o,(()=>URL.revokeObjectURL(s))))}).bind(this),r.send(this.payload)}))}}var P=r(37361),A=r(89574),b=r(41477),L=r(42985),_=r(30026);async function N(e,t,r){const n=await fetch(`${e}/auth`,{method:"POST",headers:{"Content-Type":"application/json","PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()},body:JSON.stringify({jwt:t.jwt,password:r}),credentials:"include"});return n.ok?n.json():n.text().then((e=>{throw"INVALID_PASSWORD"===e?new i.uE(e):new i.uE(`An error occurred while connecting to Nutrient Document Engine: ${e||n.statusText}`)}))}var T=r(25888),O=r(4824),F=r(12219),C=r(37094),D=r(72262),x=r(40927),U=r(9939),j=r(83720),k=r(64337),M=r(89055),G=r(20546),V=r(37506),B=r(96419),X=r(77270),q=r(20873);class H extends D.K{constructor(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;super(),t=this,(0,n.A)(this,"_password",null),(0,n.A)(this,"type","SERVER"),(0,n.A)(this,"_requestRenderAnnotation",((e,r,n,s,o,l)=>{const c=`${this._state.documentURL}/render_annotation`,h=`render-annotation-${l?(0,a.Z0)():e.id}`,u=JSON.stringify({data:(0,p.eq)(e),width:s,height:o,detached:l||void 0,formFieldValue:r?(0,p.cA)(r):void 0});let d=!1,m=[];const f=(0,X.yl)();let E;if((0,A.cu)(e)){if(E=(0,A.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:E,width:s,height:o}))return this.cachedRenderedAnnotationDiscardablePromise(E,f);this._addCachedRenderedAnnotation(E,{width:s,height:o,noZoom:e.noZoom,APStreamPromise:f.promise})}const g=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const a=new FormData;a.append("render",u),r.length>0&&"imageAttachmentId"in e&&e.imageAttachmentId&&n&&a.append(e.imageAttachmentId,n),r.length>0&&"widgetAttachmentId"in e&&e.widgetAttachmentId&&n&&a.append(e.widgetAttachmentId,n);const l=new I({identifier:h,url:c,token:t._state.imageToken,payload:a,doNotRequestWebP:s>P.HI||o>P.HI}),p=t._requestQueue.enqueue(l,!1);p.promise.then((r=>{if(!d)if(r?.attachmentsNotFound)g(r.attachmentsNotFound);else{if(!r?.attachmentsNotFound)return(0,A.cu)(e)&&t._makeEnqueuedRelease(r,E),f.resolve(r),r;f.reject(new i.uE("Attachment could not be found."))}})).catch((e=>{const r=t._cachedRenderedAnnotations.get(E);r&&r.timeout&&clearTimeout(r.timeout),t._cachedRenderedAnnotations.delete(E),d?f.resolve(void 0):f.reject(e)})),m.push(p)};return g(),{promise:f.promise,cancel:()=>{d=!0,m.forEach((e=>{e.cancel()}))}}})),(0,n.A)(this,"_requestRenderAnnotations",((e,t,r,n,s)=>{const i=`${this._state.documentURL}/render_annotations`,o=JSON.stringify({annotations:t.map(((t,s)=>({pageIndex:e,pdfObjectId:t,width:r[s],height:n[s]}))),formFieldValues:s});let a,l,c=!1;const h=new Promise(((e,t)=>{a=e,l=t}));return this._fetch(i,{method:"post",body:o,credentials:"include",headers:{"X-PSPDFKit-Image-Token":this._state.imageToken,"Content-Type":"application/json",Accept:"multipart/form-data"}}).then((e=>e.formData())).then((e=>{c||a(Array.from(e.values()))})).catch((e=>{c||l(e)})),{promise:h,cancel:()=>{c=!0}}})),(0,n.A)(this,"handleDocumentHandleConflict",(()=>{this._state=this._state.set("isDocumentHandleOutdated",!0),this.cancelRequests(),this._destroyProvider()}));let s=null;if("session"in e){if("string"!=typeof e.session)throw new i.uE("The supplied session token is invalid. Must be a string.");s={jwt:e.session},e.instant=!("instant"in e)||"boolean"!=typeof e.instant&&!(0,i.Qd)(e.instant)||e.instant}else"authPayload"in e&&e.authPayload&&(s=e.authPayload);if("object"!=typeof s)throw new i.uE("authPayload must be an object that contains the `jwt`. For example: `authPayload: { jwt: 'xxx.xxx.xxx'}`");const l=s?.accessToken;let c=null,h=null,u="documentId"in e?e.documentId:null,d=null;if(l)d=e.hostedBaseUrl||"https://api.pspdfkit.com/",(0,w.Me)(d),(0,m.P1)(l);else{if(!s||"object"!=typeof s||!("jwt"in s)||"string"!=typeof s.jwt)throw new i.uE("authPayload must be an object that contains the `jwt`. For example: `authPayload: { jwt: 'xxx.xxx.xxx'}`");const{serverUrl:t,documentId:n}=(0,m.Gm)(s.jwt);if(c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;const n=e.serverUrl||t||(0,R.$_)(r.document);if("/"!==n.substr(-1))throw new i.uE("`serverUrl` must have a slash at the end (e.g. `https://pspdfkit.example.com/`).");if(!e.serverUrl&&n===(0,w.ln)(r.location.origin))throw new i.uE('NutrientViewer automatically infers the URL of Nutrient Document Engine from the current `<script>` tag.\nIn the current case, this URL is set to the same as the current browser\'s location.\nThis can happen when you bundle nutrient-viewer.js with your custom JavaScript for example.\n\nTo make sure everything works as expected, please set the `serverUrl` to the URL of Nutrient Document Engine:\n\nNutrientViewer.load({\n serverUrl: "https://pspdfkit-server.example.com/",\n ...,\n});');return n}(e,t,r),u=u||n,"string"!=typeof u)throw new i.uE("`documentId` must be of type string.");h=`${c}i/d/${u}`}!function(e){let t="";if("boolean"!=typeof e&&((0,i.Qd)(e)?(e.hasOwnProperty("clientsPresenceEnabled")&&"boolean"!=typeof e.clientsPresenceEnabled&&(t+="`clientsPresenceEnabled` in instance settings is not valid. Must be `true` or `false`.\n"),e.hasOwnProperty("listenToServerChangesEnabled")&&"boolean"!=typeof e.listenToServerChangesEnabled&&(t+="`listenToServerChangesEnabled` in instance settings is not valid. Must be `true` or `false`.\n")):t="`instant` flag must either be set to `true` or `false`\n",t))throw new i.uE(`${t}\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/`)}(e.instant);let f=null;if(e.instant)if((0,i.Qd)(e.instant)){const t=e.instant;f={clientsPresenceEnabled:!1!==t.clientsPresenceEnabled,listenToServerChangesEnabled:!1!==t.listenToServerChangesEnabled}}else f=O.S;this._requestQueue=new o.L(P.LB);const E=!!e.electronicSignatures&&Boolean(e.electronicSignatures.forceLegacySignaturesFeature),y=e.baseUrl||(0,R.$_)(window.document),$=e.baseCoreUrl||y;this._state=new g({serverUrl:c,hostedBaseUrl:d,documentId:u,instantSettings:f,documentURL:h,authPayload:s,isFormsEnabled:!e.disableForms,forceLegacySignaturesFeature:E,disableWebAssemblyStreaming:e.disableWebAssemblyStreaming,overrideMemoryLimit:e.overrideMemoryLimit,baseCoreUrl:$,useDeprecatedRestProvider:e.useDeprecatedRestProvider}),"trustedCAsCallback"in e&&e.trustedCAsCallback&&(0,i.R8)("NutrientViewer.Configuration#trustedCAsCallback is only used on Standalone deployments. On a Server-Backed deployment, please follow the instructions at https://www.nutrient.io/guides/web")}isUsingInstantProvider(){return!this._state.useDeprecatedRestProvider}hasClientsPresence(){const e=this._state.instantSettings;return null!=e&&!1!==e.clientsPresenceEnabled}async load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this.tryAuthenticateHostedViewer();const{imageToken:t,token:r,permissions:n,features:o,signatureFeatureAvailability:a,hasPassword:h,minSearchQueryLength:u,layerHandle:d,allowedTileScales:m,digitalSignatures:f,defaultGroup:g,collaborationPermissions:w,creatorName:y,documentEngineVersion:$,layerName:v,sourcePdfSha256:S}=await N(`${this._state.serverUrl}i/d/${this._state.documentId}`,this._state.authPayload,e.password);this._password=e.password;const I=(0,l.valid)((0,l.coerce)($));if(this.documentEngineVersion=I,!this.satisfiesDocumentEngineVersion(">=1.5.6"))throw new i.uE(`Document Engine version ${$} does not meet minimum required version requirement >=1.5.6.`);if(this._state.instantSettings&&!o.includes(k.Y.INSTANT))throw new i.uE("Instant feature is not enabled on this server. Please set `instant` to `false`.\n\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/");if(this._state.useDeprecatedRestProvider&&this._state.instantSettings)throw new i.uE("Instant feature can't be enabled together with using deprecated REST provider. Please set either `instant` or `useDeprecatedRestProvider` to `false`.\n\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/");const P=!o.includes(k.Y.INSTANT)&&!this.satisfiesDocumentEngineVersion(">=1.7.0"),A=a===E.g.ELECTRONIC_SIGNATURES&&(0,M.UX)(o)&&this._state.forceLegacySignaturesFeature?E.g.LEGACY_SIGNATURES:a;this._state=this._state.withMutations((e=>e.set("imageToken",t).set("token",r).set("features",(0,s.B8)(o)).set("signatureFeatureAvailability",A).set("backendPermissions",new _.A({readOnly:-1===n.indexOf("write"),downloadingAllowed:n.indexOf("download")>=0})).set("documentURL",`${this._state.serverUrl}i/d/${this._state.documentId}/h/${d}`).set("documentHandle",d).set("isDocumentHandleOutdated",!1).set("digitalSignatures",(0,p.N5)(f)).set("layerName",v).set("sourcePdfSha256",S).set("useDeprecatedRestProvider",P||e.useDeprecatedRestProvider)));if(this.corePDFDocument=new B.N({wasmClientGetter:async()=>{const t=q.mG.checkOut().object,r=(0,R.f)(null),n=await N(`${this._state.serverUrl}i/d/${this._state.documentId}`,this._state.authPayload,e.password);return(0,i.V1)(n.wasmToken,"No wasmToken was returned from the server."),(0,i.V1)(this._state.baseCoreUrl),await t.loadNativeModule(this._state.baseCoreUrl,{mainThreadOrigin:r,disableWebAssemblyStreaming:this._state.disableWebAssemblyStreaming,enableAutomaticLinkExtraction:!1,overrideMemoryLimit:this._state.overrideMemoryLimit,workerSpawnerFn:()=>c.pj(!0)}).then((async()=>t.load("",n.wasmToken,{mainThreadOrigin:r,productId:null}))),t}},{type:"serverDocument",documentId:this._state.documentId,serverInfo:{url:this._state.serverUrl,token:this._state.token,imageToken:this._state.imageToken,layerHandle:d,headers:{"PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()}},satifiesVersion:e=>this.satisfiesDocumentEngineVersion(e)}),w&&!this._state.instantSettings)throw new i.uE("Collaboration Permissions is not supported when `instant` is disabled. Please make sure `configuration#instant` is set to `true`.");return this._state=this._state.withMutations((e=>{e.defaultGroup=g,e.hasCollaborationPermissions=Boolean(w)})),this.provider&&this.provider.destroy(),this.provider=await this._initProvider(),{features:this._state.features,signatureFeatureAvailability:this._state.signatureFeatureAvailability,hasPassword:h,password:this._password,minSearchQueryLength:u,allowedTileScales:m,creatorName:y,defaultGroup:g}}satisfiesDocumentEngineVersion(e){return!!this.documentEngineVersion&&(0,l.satisfies)(this.documentEngineVersion,e)}async tryAuthenticateHostedViewer(){if("accessToken"in this._state.authPayload){const{hostedBaseUrl:e}=this._state,t=this._state.authPayload.accessToken,{serverUrl:r,serverId:n,jwt:s}=await async function(e,t){const r=await fetch(`${e}i/documents/auth`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","PSPDFKit-Platform":"web","PSPDFKit-Version":"cloud-protocol=1, server-protocol=5, client=1.10.0-398bab4, client-git=398bab4ab5"},body:JSON.stringify({accessToken:t})});if(r.ok)return r.json();throw new Error(`An error occurred while connecting to PSPDFKit API: ${await r.text()}`)}(e,t);this._state=this._state.withMutations((e=>{e.set("serverUrl",r).set("documentId",n).set("documentURL",`${r}i/d/${n}`).set("authPayload",{jwt:s})}))}}async _initProvider(){if(this._state.useDeprecatedRestProvider){const e=this._state.isFormsEnabled&&this._state.features.includes(k.Y.FORMS),{RESTProvider:t}=await r.e(269).then(r.bind(r,33393));return new t(this._state.documentURL,{token:this._state.token},{isFormsEnabled:e})}{const e=`${this._state.serverUrl}i/d/${this._state.documentId}/h/${this._state.documentHandle}`,{InstantProvider:t}=await r.e(534).then(r.bind(r,15124)),n=new t(`${this._state.serverUrl}i/d/${this._state.documentId}`,e,{auth_token:this._state.token},this._state.instantSettings||O.z);return n.setDocumentHandleConflictCallback(this.handleDocumentHandleConflict),n}}destroy(){this._destroyProvider(),this._requestQueue&&this._requestQueue.destroy()}documentInfo(){return this._fetch(`${this._state.documentURL}/document.json`).then((e=>e.json())).then((e=>e.data))}getFormJSON(){return this._fetch(`${this._state.documentURL}/form.json`).then((e=>403===e.status?{v:1,type:"pspdfkit/form",annotations:[],fields:[]}:e.json().then((e=>e.data))))}async evalFormValuesActions(){throw new Error("not implemented")}async evalScript(){throw new Error("not implemented")}async setFormJSONUpdateBatchMode(){throw new Error("not implemented")}compareDocuments(){throw new Error("not implemented")}updateButtonIcon(){throw new Error("not implemented")}permissions(){return Promise.resolve(this._state.backendPermissions)}getDefaultGroup(){return this._state.defaultGroup}isCollaborationPermissionsEnabled(){return this._state.hasCollaborationPermissions}textForPageIndex(e){return this.corePDFDocument.getTextLines(e)}async getSuggestedLineHeightFactor(){return 1}async getAnnotationsByScale(){return[]}getAvailableFontFaces(){throw new i.uE("Custom fonts need to be mounted on the server in Server-Backed deployments.")}getContentTreeForPageIndex(e){return this.corePDFDocument.getContentTree(e)}getTextFromRects(e,t){const r=encodeURIComponent(JSON.stringify(t.map(d.w).toArray()));return this._fetch(`${this._state.documentURL}/page-${e}-highlighted?rects=${r}`).then((e=>e.json())).then((e=>e.text))}_getJSONRequestHandler(){return f.A}renderAnnotation(e,t,r,n,s){return this._requestRenderAnnotation(e,t,r,n,s)}async renderPageAnnotations(e,t,r){const n=this.provider,s=t.some((e=>e instanceof L.sb));s&&await n._setReadStateCallbacksPromise;const i=[],o=t.filter((e=>{const t=s?n._readStateCallbacks.getAnnotationWithFormField(e.id):null,r=t?.formField,o=(0,A.lG)(e,r);if(o&&r&&"number"==typeof e.pdfObjectId){i.find((e=>e.name===r.name))||i.push((0,p.cA)((0,j.Af)(r)))}return o&&"number"==typeof e.pdfObjectId}));if(0===o.size&&0===i.length)return Promise.resolve();const a=new Promise(((t,n)=>{const s=o.filter((e=>0!==Math.floor(e.boundingBox.width*r)&&0!==Math.floor(e.boundingBox.height*r))),{promise:a,cancel:l}=this._requestRenderAnnotations(e,s.map((e=>e.pdfObjectId)).toArray(),s.map((e=>Math.floor(e.boundingBox.width*r))).toArray(),s.map((e=>Math.floor(e.boundingBox.height*r))).toArray(),i);a.then((e=>{const r=e.map((e=>e&&(0,U.BJ)(e)));r.forEach((async(e,t)=>{const r=await e,n=s.get(t);if(n){const e=this.annotationAPStreamPromises.get(n.id);e&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(n.id),e(r)),r&&this.cacheAPStream(r,n)}})),Promise.all(r).then((()=>t()))})).catch((e=>{l(),n(e)}))}));return this.pageAPStreamsPromises=this.pageAPStreamsPromises.set(e,a),a}renderDetachedAnnotation(e,t,r,n){return this._requestRenderAnnotation(e,null,t,r,n,!0)}async getAttachment(e){try{const t=await this._fetch(`${this._state.documentURL}/attachments/${e}`);switch(t.status){case 404:throw new i.uE("Attachment not Found.");case 200:return await t.blob();default:throw new i.uE("Bad Request.")}}catch(e){throw new i.uE(`Could not fetch attachment from Nutrient Document Engine. ${e}`)}}async search(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:C.n.TEXT;const o=`q=${i===C.n.PRESET?e.replace(/_/g,"-"):encodeURIComponent(e)}&start=${t}&limit=${r}&type=${i}&include_annotations=${s.toString()}&case_sensitive=${n.toString()}`,a=`${this._state.documentURL}/search?${o}`,l=await new f.A(a,this._state.token).request();return(0,u.g)(l.data)}async getMeasurementSnappingPoints(e){}async searchAndRedact(e,t){const{searchType:r,annotationPreset:n,searchInAnnotations:i,caseSensitive:o,startPageIndex:a,pageRange:l}=t,{color:c,fillColor:h,outlineColor:u,...d}=n,p=await this._fetch(`${this._state.documentURL}/redactions`,{method:"post",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({strategy:r,strategyOptions:{[r]:r===C.n.PRESET?e.replace(/_/g,"-"):e,includeAnnotations:i,caseSensitive:o,...void 0!==a&&{start:a},...void 0!==l&&{limit:l}},content:{...d,color:c&&c.toHex(),fillColor:h&&h.toHex(),outlineColor:u&&u.toHex()}})}),{data:m}=await p.json(),f=(0,s.B8)(m.annotations?.filter((e=>!!e.content)).map((e=>F.A.fromJSON(e.id,e.content)))||[]);if(f.size){const e=this._state.instantSettings;!this.isUsingInstantProvider()||e&&e.listenToServerChangesEnabled||await this.syncChanges()}return f}exportPDF(){let{flatten:e=!1,includeComments:t=!0,excludeAnnotations:r=!1,outputFormat:n=!1,optimize:s=!1,flattenElectronicSignatures:o=e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e&&!1===o)throw new i.uE("Cannot set `flattenElectronicSignatures` to `false` when `flatten` is set to `true`.");const a=`${this._state.documentURL}/pdf?token=${this._state.token}${e?`&flatten=${String(e)}`:""}&comments=${String(t)}&render_ap_streams=${String(!e)}&remove_annotations=${String(r)}${e?"":`&keep_signatures=${!o}`}`;if(s){const e={documentFormat:"pdf",grayscaleText:!1,grayscaleGraphics:!1,grayscaleFormFields:!1,grayscaleAnnotations:!1,grayscaleImages:!1,disableImages:!1,mrcCompression:!1,imageOptimizationQuality:2,linearize:!1};let t;if("boolean"!=typeof s){t={...e,...s}}else t=e;const{documentFormat:r,grayscaleText:n,grayscaleGraphics:i,grayscaleFormFields:o,grayscaleAnnotations:l,grayscaleImages:c,disableImages:h,mrcCompression:u,imageOptimizationQuality:d,linearize:p}=t;return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:r,grayscaleText:n,grayscaleGraphics:i,grayscaleFormFields:o,grayscaleAnnotations:l,grayscaleImages:c,disableImages:h,mrcCompression:u,imageOptimizationQuality:d,linearize:p}}),credentials:"include"}).then((e=>e.arrayBuffer()))}if(n){const e={conformance:G.o.PDFA_2B,vectorization:!0,rasterization:!0};let t;if("boolean"!=typeof n){t={...e,...n}}else t=e;const{conformance:r,vectorization:s,rasterization:i}=t;return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:"pdfa",conformance:r,vectorization:s,rasterization:i}}),credentials:"include"}).then((e=>e.arrayBuffer()))}return fetch(a,{method:"GET",credentials:"include"}).then((e=>e.arrayBuffer()))}exportOffice(e){let{format:t}=e;const r=`${this._state.documentURL}/build`;return this._fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:t.toLowerCase()}}),credentials:"include"}).then((e=>e.arrayBuffer())).catch((e=>{throw new i.uE(`Exporting to Office failed: ${e.message}`)}))}exportXFDF(e){let t={};return null!=e&&(t={ignorePageRotation:e.toString()}),this._fetch(`${this._state.documentURL}/document.xfdf`,{},t).then((e=>e.text()))}exportInstantJSON(e){return this._fetch(`${this._state.documentURL}/instant.json${"number"==typeof e?`?version=${e}`:""}`).then((e=>e.json()))}getPDFURL(){let{includeComments:e=!0,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{promise:Promise.resolve(`${this._state.documentURL}/pdf?token=${this._state.token}&flatten=true&comments=${String(e)}&remove_annotations=${String(t)}`),revoke:()=>{}}}generatePDFObjectURL(){let e,{includeComments:t=!0,excludeAnnotations:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;return{promise:new Promise((s=>{this.exportPDF({flatten:!0,includeComments:t,excludeAnnotations:r}).then((t=>{if(n)return;const r=new Blob([t],{type:"application/pdf"});e=window.URL.createObjectURL(r),s(e)}))})),revoke:()=>{e&&window.URL.revokeObjectURL(e),n=!0}}}async getDocumentOutline(){let e;try{e=(await this._fetch(`${this._state.documentURL}/outline.json`).then((e=>e.json()))).data}catch(t){e={}}const t=Array.isArray(e.outline)?e.outline:[];return(0,s.B8)(t.map(b.r))}async setDocumentOutline(){throw new i.uE("Not implemented in Server backend.")}async getPageGlyphs(){throw new i.uE("Not implemented in Server backend.")}onKeystrokeEvent(){throw new Error("not implemented")}async getMeasurementScales(){let e;try{return e=(await this._fetch(`${this._state.documentURL}/measurement_content_formats`).then((e=>e.json()))).data,e}catch(e){throw new i.uE(`Fetching measurement scales failed: ${e}`)}}async getSecondaryMeasurementUnit(){let e;try{return e=(await this._fetch(`${this._state.documentURL}/secondary_measurement_unit`).then((e=>e.json()))).data,e}catch(e){throw new i.uE(`Fetching secondary measurement unit failed: ${e}`)}}async setSecondaryMeasurementUnit(e){try{const t=JSON.stringify({unitTo:e?e.unitTo:null,precision:e?e.precision:null});await this._fetch(`${this._state.documentURL}/secondary_measurement_unit`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Setting secondary measurement unit failed: ${e}`)}}async addMeasurementScale(e){try{const t=JSON.stringify((0,h.U)(e));await this._fetch(`${this._state.documentURL}/measurement_content_formats`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Adding a new measurement scale failed: ${e}`)}}async removeMeasurementScale(e){try{const t=JSON.stringify((0,h.U)(e));await this._fetch(`${this._state.documentURL}/measurement_content_formats/delete`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Removing scale failed: ${e}`)}}async applyOperationsAndReload(e){try{const t=await z(e);this._destroyProvider(),await this._fetch(`${this._state.documentURL}/apply-operations`,{method:"post",body:t,credentials:"include"})}catch(e){throw new i.uE(`Applying operations failed: ${e}`)}return this.reloadDocument()}async applyRedactionsAndReload(){try{return this._destroyProvider(),await this._fetch(`${this._state.documentURL}/redact`,{method:"post",credentials:"include"}),this.reloadDocument()}catch(e){throw this.provider.load(),new i.uE(`Applying redactions failed: ${e}`)}}async reloadDocument(){this.clearRenderedAnnotationsCache();try{return await this.load({password:this._password})}catch(e){throw new i.uE(`Reloading the document failed: ${e}`)}}async exportPDFWithOperations(e){try{const t=await z(e);return this._fetch(`${this._state.documentURL}/pdf-with-operations`,{method:"post",body:t,credentials:"include"}).then((e=>e.arrayBuffer()))}catch(e){throw new i.uE(`Exporting PDF with operations failed: ${e}`)}}async setSignaturesLTV(e){throw new Error("not implemented")}async getSignaturesInfo(){return this._refreshSignaturesInfoPromise&&await this._refreshSignaturesInfoPromise,this._state.digitalSignatures}refreshSignaturesInfo(){return this._refreshSignaturesInfoPromise||(this._refreshSignaturesInfoPromise=new Promise(((e,t)=>{this._fetch(`${this._state.documentURL}/signatures`,{method:"get",credentials:"include"}).then((e=>e.json())).then((t=>{let{data:r}=t;this._state=this._state.set("digitalSignatures",(0,p.N5)(r)),this._refreshSignaturesInfoPromise=null,e()})).catch((e=>{this._state=this._state.set("digitalSignatures",null),this._refreshSignaturesInfoPromise=null,t(e)}))}))),this._refreshSignaturesInfoPromise}async signDocumentAndReload(e,t){(0,i.V1)(void 0===t||"object"==typeof t,"Signing service data must be an object if specified.");try{if(void 0!==t&&"object"!=typeof t)throw new i.uE("Signing service data must be an object if specified.");(0,V.r6)(e);const r=e?{..."placeholderSize"in e?{estimatedSize:e.placeholderSize}:null,..."flatten"in e?{flatten:e.flatten}:null,...e?.signatureMetadata?{signatureMetadata:(0,p.sZ)(e.signatureMetadata)}:null,..."position"in e?{position:(0,p.qN)(e.position)}:null,..."appearance"in e?{appearance:await(0,p.z8)(e.appearance)}:null,..."formFieldName"in e?{formFieldName:e.formFieldName}:null,...void 0!==e?.signingData&&"signatureContainer"in e.signingData?{signatureContainer:e.signingData.signatureContainer}:null,...void 0!==e?.signingData&&"signatureType"in e.signingData?{signatureType:p.xz[e.signingData.signatureType]}:null}:null,n=e?.appearance?.watermarkImage||null,s=e?.appearance?.graphicImage||null,o={...t?{signingToken:t.signingToken}:null,...r},a=new FormData;if(a.append("data",JSON.stringify(o)),n&&a.append("image",n),s&&a.append("graphicImage",s),this._destroyProvider(),await this._fetch(`${this._state.documentURL}/sign`,{method:"post",body:a,credentials:"include"}),await this.reloadDocument(),e?.formFieldName)return e.formFieldName}catch(e){throw this.provider.load(),new i.uE(`Adding digital signature failed: ${e.message||e}`)}}async setFontSubstitutions(e){try{const t=`${this._state.documentURL}/font-substitutions`;await this._fetch(t,{method:"put",body:JSON.stringify({fontSubstitutions:e}),credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Error setting font substitution: ${e.message}`)}}getDocumentHandle(){return this._state.documentHandle}async getEmbeddedFiles(){const e=await this._fetch(`${this._state.documentURL}/embedded-files`,{method:"get",credentials:"include"}),{data:t}=await e.json();return(0,s.B8)(t?.embeddedFiles?.map((e=>{let{id:t,content:r}=e;return(0,x.r)(t,r)}))||[])}cancelRequests(){this._requestQueue.cancelAll()}_destroyProvider(){this.provider&&(this.provider._clients&&this.provider._clients.disconnect(),this.provider.destroy())}async _fetch(e,t,r){const n=new URLSearchParams(r||{}),s=n.toString()?`${e}${e.includes("?")?"&":"?"}${n.toString()}`:e,o=await fetch(s,{...t,headers:{...t?.headers,"X-PSPDFKit-Token":this._state.token,"PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()}});if(!o.ok){let e=await function(e){return e.clone().json().catch((()=>e.text()))}(o);e="object"==typeof e?e.reason:e;const t=e||`${o.status} ${o.statusText}`;throw new i.uE(t)}return o}syncChanges(){return this.provider.syncChanges()}async clearAPStreamCache(){}async runPDFFormattingScripts(){return[]}async runPDFFormattingScriptsFromWidgets(){return this.runPDFFormattingScripts()}async lazyLoadPages(){}async contentEditorReload(){return this._destroyProvider(),this.reloadDocument()}getOCGs(){throw new Error("not implemented")}getOCGVisibilityState(){throw new Error("not implemented")}setOCGVisibilityState(){throw new Error("not implemented")}async timestampData(e,t){throw new Error("not implemented")}async waitUntilFullyLoaded(e){throw new Error("not implemented")}}async function z(e){const t={},r=new WeakMap,n=await Promise.all(e.map((async(e,n)=>{if("importDocument"===e.type){const s=e.document;return(0,i.V1)(s instanceof File||s instanceof Blob,"Wrong `importDocument` operation `document` value: it must be a File or a Blob"),(0,T.g)(r,t,s,e,n,"document")}if("applyInstantJson"===e.type){const s=e.instantJson;(0,i.V1)("object"==typeof s&&null!==s,"Wrong `applyInstantJson` operation `instantJson` value: it must be an object");const o=JSON.stringify(s),a=new Blob([o],{type:"application/json"});return(0,T.g)(r,t,a,e,n,"dataFilePath")}if("applyXfdf"===e.type){const s=e.xfdf;(0,i.V1)("string"==typeof s,"Wrong `applyXfdf` operation `xfdf` value: it must be a string");const o=new Blob([s],{type:"application/vnd.adobe.xfdf"});return(0,T.g)(r,t,o,e,n,"dataFilePath")}return e}))),s=new FormData;s.append("operations",JSON.stringify({operations:n}));for(const e in t)s.append(e,t[e]);return s}},4824:(e,t,r)=>{r.d(t,{S:()=>n,z:()=>s});const n={clientsPresenceEnabled:!0,listenToServerChangesEnabled:!0},s={clientsPresenceEnabled:!1,listenToServerChangesEnabled:!1}},93904:(e,t,r)=>{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=s;const i=r(98587),{safeRe:o,t:a}=r(99718),l=r(72111),c=r(57272),h=r(53908),u=r(78311)},78311:(e,t,r)=>{const n=/\s+/g;class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&w(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&E))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(h[u.COMPARATORTRIM],d),l("comparator trim",e),e=e.replace(h[u.TILDETRIM],p),l("tilde trim",e),e=e.replace(h[u.CARETTRIM],m),l("caret trim",e);let o=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));n&&(o=o.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(h[u.COMPARATORLOOSE]))))),l("range list",o);const c=new Map,w=o.map((e=>new a(e,this.options)));for(const e of w){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const y=[...c.values()];return i.set(t,y),y}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const i=new(r(68794)),o=r(98587),a=r(93904),l=r(57272),c=r(53908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(99718),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:E}=r(16874),g=e=>"<0.0.0-0"===e.value,w=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},$=(e,t)=>(e=e.replace(h[u.BUILD],""),l("comp",e,t),e=I(e,t),l("caret",e),e=v(e,t),l("tildes",e),e=A(e,t),l("xrange",e),e=L(e,t),l("stars",e),e),R=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const r=t.loose?h[u.TILDELOOSE]:h[u.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return l("tilde",e,t,r,n,s,i),R(r)?o="":R(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:R(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(l("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,l("tilde return",o),o}))},I=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{l("caret",e,t);const r=t.loose?h[u.CARETLOOSE]:h[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let a;return l("caret",e,t,r,s,i,o),R(r)?a="":R(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:R(i)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(l("replaceCaret pr",o),a="0"===r?"0"===s?`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),l("caret return",a),a}))},A=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>b(e,t))).join(" ")),b=(e,t)=>{e=e.trim();const r=t.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{l("xRange",e,r,n,s,i,o,a);const c=R(s),h=c||R(i),u=h||R(o),d=u;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(h&&(i=0),o=0,">"===n?(n=">=",h?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===n&&(n="<",h?s=+s+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+s}.${i}.${o}${a}`):h?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:u&&(r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),l("xRange return",r),r}))},L=(e,t)=>(l("replaceStars",e,t),e.trim().replace(h[u.STAR],"")),_=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=e=>(t,r,n,s,i,o,a,l,c,h,u,d)=>`${r=R(n)?"":R(s)?`>=${n}.0.0${e?"-0":""}`:R(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=R(c)?"":R(h)?`<${+c+1}.0.0-0`:R(u)?`<${c}.${+h+1}.0-0`:d?`<=${c}.${h}.${u}-${d}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),T=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},53908:(e,t,r)=>{const n=r(57272),{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(16874),{safeRe:o,t:a}=r(99718),l=r(98587),{compareIdentifiers:c}=r(61123);class h{constructor(e,t){if(t=l(t),e instanceof h){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof h||(e=new h(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return c(r,s)}while(++t)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return c(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=h},57414:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},72111:(e,t,r)=>{const n=r(94641),s=r(13999),i=r(35580),o=r(54089),a=r(7059),l=r(25200);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return i(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},46170:(e,t,r)=>{const n=r(53908),s=r(30144),{safeRe:i,t:o}=r(99718);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===r)return null;const a=r[2],l=r[3]||"0",c=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${l}.${c}${h}${u}`,t)}},40909:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r)=>{const s=new n(e,r),i=new n(t,r);return s.compare(i)||s.compareBuild(i)}},11763:(e,t,r)=>{const n=r(50560);e.exports=(e,t)=>n(e,t,!0)},50560:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},51832:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),i=r.compare(s);if(0===i)return null;const o=i>0,a=o?r:s,l=o?s:r,c=!!a.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}const h=c?"pre":"";return r.major!==s.major?h+"major":r.minor!==s.minor?h+"minor":r.patch!==s.patch?h+"patch":"prerelease"}},94641:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>0===n(e,t,r)},35580:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)>0},54089:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)>=0},93007:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r,s,i)=>{"string"==typeof r&&(i=s,s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}}},7059:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)<0},25200:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)<=0},32938:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).major},46254:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).minor},13999:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>0!==n(e,t,r)},30144:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},24493:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).patch},31729:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},9970:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(t,e,r)},74277:(e,t,r)=>{const n=r(40909);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},97638:(e,t,r)=>{const n=r(78311);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},43927:(e,t,r)=>{const n=r(40909);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},56953:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},99589:(e,t,r)=>{const n=r(99718),s=r(16874),i=r(53908),o=r(61123),a=r(30144),l=r(56953),c=r(57414),h=r(93007),u=r(51832),d=r(32938),p=r(46254),m=r(24493),f=r(31729),E=r(50560),g=r(9970),w=r(11763),y=r(40909),$=r(43927),R=r(74277),v=r(35580),S=r(7059),I=r(94641),P=r(13999),A=r(54089),b=r(25200),L=r(72111),_=r(46170),N=r(93904),T=r(78311),O=r(97638),F=r(77631),C=r(19628),D=r(270),x=r(41261),U=r(13874),j=r(97075),k=r(75571),M=r(5342),G=r(76780),V=r(72525),B=r(75032);e.exports={parse:a,valid:l,clean:c,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:f,compare:E,rcompare:g,compareLoose:w,compareBuild:y,sort:$,rsort:R,gt:v,lt:S,eq:I,neq:P,gte:A,lte:b,cmp:L,coerce:_,Comparator:N,Range:T,satisfies:O,toComparators:F,maxSatisfying:C,minSatisfying:D,minVersion:x,validRange:U,outside:j,gtr:k,ltr:M,intersects:G,simplifyRange:V,subset:B,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},16874:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},61123:e=>{const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},68794:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},98587:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},99718:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(16874),o=r(57272),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],h=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[p,s]],f=(e,t,r)=>{const n=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),u[e]=s,c[s]=t,h[s]=n,a[s]=new RegExp(t,r?"g":void 0),l[s]=new RegExp(n,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),f("FULL",`^${c[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),f("LOOSE",`^${c[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),f("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[u.COERCE],!0),f("COERCERTLFULL",c[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},75571:(e,t,r)=>{const n=r(97075);e.exports=(e,t,r)=>n(e,t,">",r)},76780:(e,t,r)=>{const n=r(78311);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},5342:(e,t,r)=>{const n=r(97075);e.exports=(e,t,r)=>n(e,t,"<",r)},19628:(e,t,r)=>{const n=r(53908),s=r(78311);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},270:(e,t,r)=>{const n=r(53908),s=r(78311);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},41261:(e,t,r)=>{const n=r(53908),s=r(78311),i=r(35580);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}},97075:(e,t,r)=>{const n=r(53908),s=r(93904),{ANY:i}=s,o=r(78311),a=r(97638),l=r(35580),c=r(7059),h=r(25200),u=r(54089);e.exports=(e,t,r,d)=>{let p,m,f,E,g;switch(e=new n(e,d),t=new o(t,d),r){case">":p=l,m=h,f=c,E=">",g=">=";break;case"<":p=c,m=u,f=l,E="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),o=o||e,a=a||e,p(e.semver,o.semver,d)?o=e:f(e.semver,a.semver,d)&&(a=e)})),o.operator===E||o.operator===g)return!1;if((!a.operator||a.operator===E)&&m(e,a.semver))return!1;if(a.operator===g&&f(e,a.semver))return!1}return!0}},72525:(e,t,r)=>{const n=r(97638),s=r(50560);e.exports=(e,t,r)=>{const i=[];let o=null,a=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const e of l){n(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null)}o&&i.push([o,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const h=c.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return h.length<u.length?h:t}},75032:(e,t,r)=>{const n=r(78311),s=r(93904),{ANY:i}=s,o=r(97638),a=r(50560),l=[new s(">=0.0.0-0")],c=[new s(">=0.0.0")],h=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?l:c}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=c}const n=new Set;let s,h,p,m,f,E,g;for(const t of e)">"===t.operator||">="===t.operator?s=u(s,t,r):"<"===t.operator||"<="===t.operator?h=d(h,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&h){if(p=a(s.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==s.operator||"<="!==h.operator))return null}for(const e of n){if(s&&!o(e,String(s),r))return null;if(h&&!o(e,String(h),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,y=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,E=E||"<"===e.operator||"<="===e.operator,s)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(m=u(s,e,r),m===e&&m!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(h)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),"<"===e.operator||"<="===e.operator){if(f=d(h,e,r),f===e&&f!==h)return!1}else if("<="===h.operator&&!o(h.semver,String(e),r))return!1;if(!e.operator&&(h||s)&&0!==p)return!1}return!(s&&E&&!h&&0!==p)&&(!(h&&g&&!s&&0!==p)&&(!y&&!w))},u=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=h(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},77631:(e,t,r)=>{const n=r(78311);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},13874:(e,t,r)=>{const n=r(78311);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}]);
|
|
13
|
+
"use strict";(globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[750],{1033:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var n=r(67136),s=r(49568),i=r(85409),o=r(45646),a=r(63097),l=r(99589),c=r(55994),h=r(34551),u=r(47159),d=r(5293),p=r(97881),m=r(14631),f=r(54781),E=r(85553);class g extends(s.mS({authPayload:null,serverUrl:null,hostedBaseUrl:null,documentId:null,layerName:null,sourcePdfSha256:null,backendPermissions:null,documentURL:null,imageToken:null,instantSettings:null,token:null,features:(0,s.B8)(),signatureFeatureAvailability:E.g.NONE,isFormsEnabled:!0,minSearchQueryLength:1,documentHandle:null,isDocumentHandleOutdated:!1,digitalSignatures:null,defaultGroup:void 0,hasCollaborationPermissions:!1,forceLegacySignaturesFeature:!1,disableWebAssemblyStreaming:!1,overrideMemoryLimit:null,baseCoreUrl:null,useDeprecatedRestProvider:!1})){}var w=r(14511),y=r(15168),$=r(28650),R=r(85410),v=r(9627);const S="The image can not be rendered because of an unknown error.";class I{constructor(e){let{identifier:t,url:r,token:n,payload:s,doNotRequestWebP:i=!1}=e;this.identifier=t,this.url=r,this.token=n,this.payload=s,this.doNotRequestWebP=i}abort(){this.httpRequest?.abort()}request(){return new Promise(((e,t)=>{const r=new XMLHttpRequest;this.httpRequest=r,r.open(this.payload?"POST":"GET",this.url,!0),r.setRequestHeader("X-PSPDFKit-Image-Token",this.token),r.setRequestHeader("PSPDFKit-Platform","web"),r.setRequestHeader("PSPDFKit-Version",(0,R._q)()),y.xd&&!this.doNotRequestWebP&&r.setRequestHeader("Accept","image/webp,*/*"),r.responseType="blob",r.onreadystatechange=(async()=>{if(4!==r.readyState)return;if(r.response&&r.response.type.startsWith("application/json")){const n=new FileReader;return n.onload=r=>{const n=JSON.parse(r.target?.result);n.attachments_not_found?e({attachmentsNotFound:n.attachments_not_found}):n.error?"initialization_error"===n.error?e(null):t(new i.uE(`The server could not render the requested image (${n.error})`)):t(new i.uE(S))},n.onerror=()=>t(new i.uE(S)),void n.readAsText(r.response)}if(!(0,w.Nk)(r.status))return void t(new i.uE(S));const n=r.response,s=URL.createObjectURL(n),o=new Image;o.onerror=()=>t(new i.uE(S)),o.src=s;const a=o.decode();try{await a}catch(e){if(!v.H8)throw new i.uE(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}e(new $.A(o,(()=>URL.revokeObjectURL(s))))}).bind(this),r.send(this.payload)}))}}var P=r(37361),A=r(89574),b=r(41477),L=r(42985),_=r(30026);async function N(e,t,r){const n=await fetch(`${e}/auth`,{method:"POST",headers:{"Content-Type":"application/json","PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()},body:JSON.stringify({jwt:t.jwt,password:r}),credentials:"include"});return n.ok?n.json():n.text().then((e=>{throw"INVALID_PASSWORD"===e?new i.uE(e):new i.uE(`An error occurred while connecting to Nutrient Document Engine: ${e||n.statusText}`)}))}var T=r(25888),O=r(4824),F=r(12219),C=r(37094),D=r(72262),x=r(40927),U=r(9939),j=r(83720),k=r(64337),M=r(89055),G=r(20546),V=r(37506),B=r(96419),X=r(77270),q=r(20873);class H extends D.K{constructor(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;super(),t=this,(0,n.A)(this,"_password",null),(0,n.A)(this,"type","SERVER"),(0,n.A)(this,"_requestRenderAnnotation",((e,r,n,s,o,l)=>{const c=`${this._state.documentURL}/render_annotation`,h=`render-annotation-${l?(0,a.Z0)():e.id}`,u=JSON.stringify({data:(0,p.eq)(e),width:s,height:o,detached:l||void 0,formFieldValue:r?(0,p.cA)(r):void 0});let d=!1,m=[];const f=(0,X.yl)();let E;if((0,A.cu)(e)){if(E=(0,A.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:E,width:s,height:o}))return this.cachedRenderedAnnotationDiscardablePromise(E,f);this._addCachedRenderedAnnotation(E,{width:s,height:o,noZoom:e.noZoom,APStreamPromise:f.promise})}const g=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const a=new FormData;a.append("render",u),r.length>0&&"imageAttachmentId"in e&&e.imageAttachmentId&&n&&a.append(e.imageAttachmentId,n),r.length>0&&"widgetAttachmentId"in e&&e.widgetAttachmentId&&n&&a.append(e.widgetAttachmentId,n);const l=new I({identifier:h,url:c,token:t._state.imageToken,payload:a,doNotRequestWebP:s>P.HI||o>P.HI}),p=t._requestQueue.enqueue(l,!1);p.promise.then((r=>{if(!d)if(r?.attachmentsNotFound)g(r.attachmentsNotFound);else{if(!r?.attachmentsNotFound)return(0,A.cu)(e)&&t._makeEnqueuedRelease(r,E),f.resolve(r),r;f.reject(new i.uE("Attachment could not be found."))}})).catch((e=>{const r=t._cachedRenderedAnnotations.get(E);r&&r.timeout&&clearTimeout(r.timeout),t._cachedRenderedAnnotations.delete(E),d?f.resolve(void 0):f.reject(e)})),m.push(p)};return g(),{promise:f.promise,cancel:()=>{d=!0,m.forEach((e=>{e.cancel()}))}}})),(0,n.A)(this,"_requestRenderAnnotations",((e,t,r,n,s)=>{const i=`${this._state.documentURL}/render_annotations`,o=JSON.stringify({annotations:t.map(((t,s)=>({pageIndex:e,pdfObjectId:t,width:r[s],height:n[s]}))),formFieldValues:s});let a,l,c=!1;const h=new Promise(((e,t)=>{a=e,l=t}));return this._fetch(i,{method:"post",body:o,credentials:"include",headers:{"X-PSPDFKit-Image-Token":this._state.imageToken,"Content-Type":"application/json",Accept:"multipart/form-data"}}).then((e=>e.formData())).then((e=>{c||a(Array.from(e.values()))})).catch((e=>{c||l(e)})),{promise:h,cancel:()=>{c=!0}}})),(0,n.A)(this,"handleDocumentHandleConflict",(()=>{this._state=this._state.set("isDocumentHandleOutdated",!0),this.cancelRequests(),this._destroyProvider()}));let s=null;if("session"in e){if("string"!=typeof e.session)throw new i.uE("The supplied session token is invalid. Must be a string.");s={jwt:e.session},e.instant=!("instant"in e)||"boolean"!=typeof e.instant&&!(0,i.Qd)(e.instant)||e.instant}else"authPayload"in e&&e.authPayload&&(s=e.authPayload);if("object"!=typeof s)throw new i.uE("authPayload must be an object that contains the `jwt`. For example: `authPayload: { jwt: 'xxx.xxx.xxx'}`");const l=s?.accessToken;let c=null,h=null,u="documentId"in e?e.documentId:null,d=null;if(l)d=e.hostedBaseUrl||"https://api.pspdfkit.com/",(0,w.Me)(d),(0,m.P1)(l);else{if(!s||"object"!=typeof s||!("jwt"in s)||"string"!=typeof s.jwt)throw new i.uE("authPayload must be an object that contains the `jwt`. For example: `authPayload: { jwt: 'xxx.xxx.xxx'}`");const{serverUrl:t,documentId:n}=(0,m.Gm)(s.jwt);if(c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;const n=e.serverUrl||t||(0,R.$_)(r.document);if("/"!==n.substr(-1))throw new i.uE("`serverUrl` must have a slash at the end (e.g. `https://pspdfkit.example.com/`).");if(!e.serverUrl&&n===(0,w.ln)(r.location.origin))throw new i.uE('NutrientViewer automatically infers the URL of Nutrient Document Engine from the current `<script>` tag.\nIn the current case, this URL is set to the same as the current browser\'s location.\nThis can happen when you bundle nutrient-viewer.js with your custom JavaScript for example.\n\nTo make sure everything works as expected, please set the `serverUrl` to the URL of Nutrient Document Engine:\n\nNutrientViewer.load({\n serverUrl: "https://pspdfkit-server.example.com/",\n ...,\n});');return n}(e,t,r),u=u||n,"string"!=typeof u)throw new i.uE("`documentId` must be of type string.");h=`${c}i/d/${u}`}!function(e){let t="";if("boolean"!=typeof e&&((0,i.Qd)(e)?(e.hasOwnProperty("clientsPresenceEnabled")&&"boolean"!=typeof e.clientsPresenceEnabled&&(t+="`clientsPresenceEnabled` in instance settings is not valid. Must be `true` or `false`.\n"),e.hasOwnProperty("listenToServerChangesEnabled")&&"boolean"!=typeof e.listenToServerChangesEnabled&&(t+="`listenToServerChangesEnabled` in instance settings is not valid. Must be `true` or `false`.\n")):t="`instant` flag must either be set to `true` or `false`\n",t))throw new i.uE(`${t}\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/`)}(e.instant);let f=null;if(e.instant)if((0,i.Qd)(e.instant)){const t=e.instant;f={clientsPresenceEnabled:!1!==t.clientsPresenceEnabled,listenToServerChangesEnabled:!1!==t.listenToServerChangesEnabled}}else f=O.S;this._requestQueue=new o.L(P.LB);const E=!!e.electronicSignatures&&Boolean(e.electronicSignatures.forceLegacySignaturesFeature),y=e.baseUrl||(0,R.$_)(window.document),$=e.baseCoreUrl||y;this._state=new g({serverUrl:c,hostedBaseUrl:d,documentId:u,instantSettings:f,documentURL:h,authPayload:s,isFormsEnabled:!e.disableForms,forceLegacySignaturesFeature:E,disableWebAssemblyStreaming:e.disableWebAssemblyStreaming,overrideMemoryLimit:e.overrideMemoryLimit,baseCoreUrl:$,useDeprecatedRestProvider:e.useDeprecatedRestProvider}),"trustedCAsCallback"in e&&e.trustedCAsCallback&&(0,i.R8)("NutrientViewer.Configuration#trustedCAsCallback is only used on Standalone deployments. On a Server-Backed deployment, please follow the instructions at https://www.nutrient.io/guides/web")}isUsingInstantProvider(){return!this._state.useDeprecatedRestProvider}hasClientsPresence(){const e=this._state.instantSettings;return null!=e&&!1!==e.clientsPresenceEnabled}async load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this.tryAuthenticateHostedViewer();const{imageToken:t,token:r,permissions:n,features:o,signatureFeatureAvailability:a,hasPassword:h,minSearchQueryLength:u,layerHandle:d,allowedTileScales:m,digitalSignatures:f,defaultGroup:g,collaborationPermissions:w,creatorName:y,documentEngineVersion:$,layerName:v,sourcePdfSha256:S}=await N(`${this._state.serverUrl}i/d/${this._state.documentId}`,this._state.authPayload,e.password);this._password=e.password;const I=(0,l.valid)((0,l.coerce)($));if(this.documentEngineVersion=I,!this.satisfiesDocumentEngineVersion(">=1.5.6"))throw new i.uE(`Document Engine version ${$} does not meet minimum required version requirement >=1.5.6.`);if(this._state.instantSettings&&!o.includes(k.Y.INSTANT))throw new i.uE("Instant feature is not enabled on this server. Please set `instant` to `false`.\n\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/");if(this._state.useDeprecatedRestProvider&&this._state.instantSettings)throw new i.uE("Instant feature can't be enabled together with using deprecated REST provider. Please set either `instant` or `useDeprecatedRestProvider` to `false`.\n\nFor more information about Nutrient Instant please visit:\nwww.nutrient.io/guides/web/current/instant/overview/");const P=!o.includes(k.Y.INSTANT)&&!this.satisfiesDocumentEngineVersion(">=1.7.0"),A=a===E.g.ELECTRONIC_SIGNATURES&&(0,M.UX)(o)&&this._state.forceLegacySignaturesFeature?E.g.LEGACY_SIGNATURES:a;this._state=this._state.withMutations((e=>e.set("imageToken",t).set("token",r).set("features",(0,s.B8)(o)).set("signatureFeatureAvailability",A).set("backendPermissions",new _.A({readOnly:-1===n.indexOf("write"),downloadingAllowed:n.indexOf("download")>=0})).set("documentURL",`${this._state.serverUrl}i/d/${this._state.documentId}/h/${d}`).set("documentHandle",d).set("isDocumentHandleOutdated",!1).set("digitalSignatures",(0,p.N5)(f)).set("layerName",v).set("sourcePdfSha256",S).set("useDeprecatedRestProvider",P||e.useDeprecatedRestProvider)));if(this.corePDFDocument=new B.N({wasmClientGetter:async()=>{const t=q.mG.checkOut().object,r=(0,R.f)(null),n=await N(`${this._state.serverUrl}i/d/${this._state.documentId}`,this._state.authPayload,e.password);return(0,i.V1)(n.wasmToken,"No wasmToken was returned from the server."),(0,i.V1)(this._state.baseCoreUrl),await t.loadNativeModule(this._state.baseCoreUrl,{mainThreadOrigin:r,disableWebAssemblyStreaming:this._state.disableWebAssemblyStreaming,enableAutomaticLinkExtraction:!1,overrideMemoryLimit:this._state.overrideMemoryLimit,workerSpawnerFn:()=>c.pj(!0)}).then((async()=>t.load("",n.wasmToken,{mainThreadOrigin:r,productId:null}))),t}},{type:"serverDocument",documentId:this._state.documentId,serverInfo:{url:this._state.serverUrl,token:this._state.token,imageToken:this._state.imageToken,layerHandle:d,headers:{"PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()}},satifiesVersion:e=>this.satisfiesDocumentEngineVersion(e)}),w&&!this._state.instantSettings)throw new i.uE("Collaboration Permissions is not supported when `instant` is disabled. Please make sure `configuration#instant` is set to `true`.");return this._state=this._state.withMutations((e=>{e.defaultGroup=g,e.hasCollaborationPermissions=Boolean(w)})),this.provider&&this.provider.destroy(),this.provider=await this._initProvider(),{features:this._state.features,signatureFeatureAvailability:this._state.signatureFeatureAvailability,hasPassword:h,password:this._password,minSearchQueryLength:u,allowedTileScales:m,creatorName:y,defaultGroup:g}}satisfiesDocumentEngineVersion(e){return!!this.documentEngineVersion&&(0,l.satisfies)(this.documentEngineVersion,e)}async tryAuthenticateHostedViewer(){if("accessToken"in this._state.authPayload){const{hostedBaseUrl:e}=this._state,t=this._state.authPayload.accessToken,{serverUrl:r,serverId:n,jwt:s}=await async function(e,t){const r=await fetch(`${e}i/documents/auth`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","PSPDFKit-Platform":"web","PSPDFKit-Version":"cloud-protocol=1, server-protocol=5, client=1.10.0-eb26372, client-git=eb263722b4"},body:JSON.stringify({accessToken:t})});if(r.ok)return r.json();throw new Error(`An error occurred while connecting to PSPDFKit API: ${await r.text()}`)}(e,t);this._state=this._state.withMutations((e=>{e.set("serverUrl",r).set("documentId",n).set("documentURL",`${r}i/d/${n}`).set("authPayload",{jwt:s})}))}}async _initProvider(){if(this._state.useDeprecatedRestProvider){const e=this._state.isFormsEnabled&&this._state.features.includes(k.Y.FORMS),{RESTProvider:t}=await r.e(269).then(r.bind(r,33393));return new t(this._state.documentURL,{token:this._state.token},{isFormsEnabled:e})}{const e=`${this._state.serverUrl}i/d/${this._state.documentId}/h/${this._state.documentHandle}`,{InstantProvider:t}=await r.e(534).then(r.bind(r,15124)),n=new t(`${this._state.serverUrl}i/d/${this._state.documentId}`,e,{auth_token:this._state.token},this._state.instantSettings||O.z);return n.setDocumentHandleConflictCallback(this.handleDocumentHandleConflict),n}}destroy(){this._destroyProvider(),this._requestQueue&&this._requestQueue.destroy()}documentInfo(){return this._fetch(`${this._state.documentURL}/document.json`).then((e=>e.json())).then((e=>e.data))}getFormJSON(){return this._fetch(`${this._state.documentURL}/form.json`).then((e=>403===e.status?{v:1,type:"pspdfkit/form",annotations:[],fields:[]}:e.json().then((e=>e.data))))}async evalFormValuesActions(){throw new Error("not implemented")}async evalScript(){throw new Error("not implemented")}async setFormJSONUpdateBatchMode(){throw new Error("not implemented")}compareDocuments(){throw new Error("not implemented")}updateButtonIcon(){throw new Error("not implemented")}permissions(){return Promise.resolve(this._state.backendPermissions)}getDefaultGroup(){return this._state.defaultGroup}isCollaborationPermissionsEnabled(){return this._state.hasCollaborationPermissions}textForPageIndex(e){return this.corePDFDocument.getTextLines(e)}async getSuggestedLineHeightFactor(){return 1}async getAnnotationsByScale(){return[]}getAvailableFontFaces(){throw new i.uE("Custom fonts need to be mounted on the server in Server-Backed deployments.")}getContentTreeForPageIndex(e){return this.corePDFDocument.getContentTree(e)}getTextFromRects(e,t){const r=encodeURIComponent(JSON.stringify(t.map(d.w).toArray()));return this._fetch(`${this._state.documentURL}/page-${e}-highlighted?rects=${r}`).then((e=>e.json())).then((e=>e.text))}_getJSONRequestHandler(){return f.A}renderAnnotation(e,t,r,n,s){return this._requestRenderAnnotation(e,t,r,n,s)}async renderPageAnnotations(e,t,r){const n=this.provider,s=t.some((e=>e instanceof L.sb));s&&await n._setReadStateCallbacksPromise;const i=[],o=t.filter((e=>{const t=s?n._readStateCallbacks.getAnnotationWithFormField(e.id):null,r=t?.formField,o=(0,A.lG)(e,r);if(o&&r&&"number"==typeof e.pdfObjectId){i.find((e=>e.name===r.name))||i.push((0,p.cA)((0,j.Af)(r)))}return o&&"number"==typeof e.pdfObjectId}));if(0===o.size&&0===i.length)return Promise.resolve();const a=new Promise(((t,n)=>{const s=o.filter((e=>0!==Math.floor(e.boundingBox.width*r)&&0!==Math.floor(e.boundingBox.height*r))),{promise:a,cancel:l}=this._requestRenderAnnotations(e,s.map((e=>e.pdfObjectId)).toArray(),s.map((e=>Math.floor(e.boundingBox.width*r))).toArray(),s.map((e=>Math.floor(e.boundingBox.height*r))).toArray(),i);a.then((e=>{const r=e.map((e=>e&&(0,U.BJ)(e)));r.forEach((async(e,t)=>{const r=await e,n=s.get(t);if(n){const e=this.annotationAPStreamPromises.get(n.id);e&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(n.id),e(r)),r&&this.cacheAPStream(r,n)}})),Promise.all(r).then((()=>t()))})).catch((e=>{l(),n(e)}))}));return this.pageAPStreamsPromises=this.pageAPStreamsPromises.set(e,a),a}renderDetachedAnnotation(e,t,r,n){return this._requestRenderAnnotation(e,null,t,r,n,!0)}async getAttachment(e){try{const t=await this._fetch(`${this._state.documentURL}/attachments/${e}`);switch(t.status){case 404:throw new i.uE("Attachment not Found.");case 200:return await t.blob();default:throw new i.uE("Bad Request.")}}catch(e){throw new i.uE(`Could not fetch attachment from Nutrient Document Engine. ${e}`)}}async search(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:C.n.TEXT;const o=`q=${i===C.n.PRESET?e.replace(/_/g,"-"):encodeURIComponent(e)}&start=${t}&limit=${r}&type=${i}&include_annotations=${s.toString()}&case_sensitive=${n.toString()}`,a=`${this._state.documentURL}/search?${o}`,l=await new f.A(a,this._state.token).request();return(0,u.g)(l.data)}async getMeasurementSnappingPoints(e){}async searchAndRedact(e,t){const{searchType:r,annotationPreset:n,searchInAnnotations:i,caseSensitive:o,startPageIndex:a,pageRange:l}=t,{color:c,fillColor:h,outlineColor:u,...d}=n,p=await this._fetch(`${this._state.documentURL}/redactions`,{method:"post",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({strategy:r,strategyOptions:{[r]:r===C.n.PRESET?e.replace(/_/g,"-"):e,includeAnnotations:i,caseSensitive:o,...void 0!==a&&{start:a},...void 0!==l&&{limit:l}},content:{...d,color:c&&c.toHex(),fillColor:h&&h.toHex(),outlineColor:u&&u.toHex()}})}),{data:m}=await p.json(),f=(0,s.B8)(m.annotations?.filter((e=>!!e.content)).map((e=>F.A.fromJSON(e.id,e.content)))||[]);if(f.size){const e=this._state.instantSettings;!this.isUsingInstantProvider()||e&&e.listenToServerChangesEnabled||await this.syncChanges()}return f}exportPDF(){let{flatten:e=!1,includeComments:t=!0,excludeAnnotations:r=!1,outputFormat:n=!1,optimize:s=!1,flattenElectronicSignatures:o=e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e&&!1===o)throw new i.uE("Cannot set `flattenElectronicSignatures` to `false` when `flatten` is set to `true`.");const a=`${this._state.documentURL}/pdf?token=${this._state.token}${e?`&flatten=${String(e)}`:""}&comments=${String(t)}&render_ap_streams=${String(!e)}&remove_annotations=${String(r)}${e?"":`&keep_signatures=${!o}`}`;if(s){const e={documentFormat:"pdf",grayscaleText:!1,grayscaleGraphics:!1,grayscaleFormFields:!1,grayscaleAnnotations:!1,grayscaleImages:!1,disableImages:!1,mrcCompression:!1,imageOptimizationQuality:2,linearize:!1};let t;if("boolean"!=typeof s){t={...e,...s}}else t=e;const{documentFormat:r,grayscaleText:n,grayscaleGraphics:i,grayscaleFormFields:o,grayscaleAnnotations:l,grayscaleImages:c,disableImages:h,mrcCompression:u,imageOptimizationQuality:d,linearize:p}=t;return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:r,grayscaleText:n,grayscaleGraphics:i,grayscaleFormFields:o,grayscaleAnnotations:l,grayscaleImages:c,disableImages:h,mrcCompression:u,imageOptimizationQuality:d,linearize:p}}),credentials:"include"}).then((e=>e.arrayBuffer()))}if(n){const e={conformance:G.o.PDFA_2B,vectorization:!0,rasterization:!0};let t;if("boolean"!=typeof n){t={...e,...n}}else t=e;const{conformance:r,vectorization:s,rasterization:i}=t;return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:"pdfa",conformance:r,vectorization:s,rasterization:i}}),credentials:"include"}).then((e=>e.arrayBuffer()))}return fetch(a,{method:"GET",credentials:"include"}).then((e=>e.arrayBuffer()))}exportOffice(e){let{format:t}=e;const r=`${this._state.documentURL}/build`;return this._fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parts:[{document:{id:"#self"}}],output:{type:t.toLowerCase()}}),credentials:"include"}).then((e=>e.arrayBuffer())).catch((e=>{throw new i.uE(`Exporting to Office failed: ${e.message}`)}))}exportXFDF(e){let t={};return null!=e&&(t={ignorePageRotation:e.toString()}),this._fetch(`${this._state.documentURL}/document.xfdf`,{},t).then((e=>e.text()))}exportInstantJSON(e){return this._fetch(`${this._state.documentURL}/instant.json${"number"==typeof e?`?version=${e}`:""}`).then((e=>e.json()))}getPDFURL(){let{includeComments:e=!0,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{promise:Promise.resolve(`${this._state.documentURL}/pdf?token=${this._state.token}&flatten=true&comments=${String(e)}&remove_annotations=${String(t)}`),revoke:()=>{}}}generatePDFObjectURL(){let e,{includeComments:t=!0,excludeAnnotations:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;return{promise:new Promise((s=>{this.exportPDF({flatten:!0,includeComments:t,excludeAnnotations:r}).then((t=>{if(n)return;const r=new Blob([t],{type:"application/pdf"});e=window.URL.createObjectURL(r),s(e)}))})),revoke:()=>{e&&window.URL.revokeObjectURL(e),n=!0}}}async getDocumentOutline(){let e;try{e=(await this._fetch(`${this._state.documentURL}/outline.json`).then((e=>e.json()))).data}catch(t){e={}}const t=Array.isArray(e.outline)?e.outline:[];return(0,s.B8)(t.map(b.r))}async setDocumentOutline(){throw new i.uE("Not implemented in Server backend.")}async getPageGlyphs(){throw new i.uE("Not implemented in Server backend.")}onKeystrokeEvent(){throw new Error("not implemented")}async getMeasurementScales(){let e;try{return e=(await this._fetch(`${this._state.documentURL}/measurement_content_formats`).then((e=>e.json()))).data,e}catch(e){throw new i.uE(`Fetching measurement scales failed: ${e}`)}}async getSecondaryMeasurementUnit(){let e;try{return e=(await this._fetch(`${this._state.documentURL}/secondary_measurement_unit`).then((e=>e.json()))).data,e}catch(e){throw new i.uE(`Fetching secondary measurement unit failed: ${e}`)}}async setSecondaryMeasurementUnit(e){try{const t=JSON.stringify({unitTo:e?e.unitTo:null,precision:e?e.precision:null});await this._fetch(`${this._state.documentURL}/secondary_measurement_unit`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Setting secondary measurement unit failed: ${e}`)}}async addMeasurementScale(e){try{const t=JSON.stringify((0,h.U)(e));await this._fetch(`${this._state.documentURL}/measurement_content_formats`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Adding a new measurement scale failed: ${e}`)}}async removeMeasurementScale(e){try{const t=JSON.stringify((0,h.U)(e));await this._fetch(`${this._state.documentURL}/measurement_content_formats/delete`,{method:"post",body:t,credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Removing scale failed: ${e}`)}}async applyOperationsAndReload(e){try{const t=await z(e);this._destroyProvider(),await this._fetch(`${this._state.documentURL}/apply-operations`,{method:"post",body:t,credentials:"include"})}catch(e){throw new i.uE(`Applying operations failed: ${e}`)}return this.reloadDocument()}async applyRedactionsAndReload(){try{return this._destroyProvider(),await this._fetch(`${this._state.documentURL}/redact`,{method:"post",credentials:"include"}),this.reloadDocument()}catch(e){throw this.provider.load(),new i.uE(`Applying redactions failed: ${e}`)}}async reloadDocument(){this.clearRenderedAnnotationsCache();try{return await this.load({password:this._password})}catch(e){throw new i.uE(`Reloading the document failed: ${e}`)}}async exportPDFWithOperations(e){try{const t=await z(e);return this._fetch(`${this._state.documentURL}/pdf-with-operations`,{method:"post",body:t,credentials:"include"}).then((e=>e.arrayBuffer()))}catch(e){throw new i.uE(`Exporting PDF with operations failed: ${e}`)}}async setSignaturesLTV(e){throw new Error("not implemented")}async getSignaturesInfo(){return this._refreshSignaturesInfoPromise&&await this._refreshSignaturesInfoPromise,this._state.digitalSignatures}refreshSignaturesInfo(){return this._refreshSignaturesInfoPromise||(this._refreshSignaturesInfoPromise=new Promise(((e,t)=>{this._fetch(`${this._state.documentURL}/signatures`,{method:"get",credentials:"include"}).then((e=>e.json())).then((t=>{let{data:r}=t;this._state=this._state.set("digitalSignatures",(0,p.N5)(r)),this._refreshSignaturesInfoPromise=null,e()})).catch((e=>{this._state=this._state.set("digitalSignatures",null),this._refreshSignaturesInfoPromise=null,t(e)}))}))),this._refreshSignaturesInfoPromise}async signDocumentAndReload(e,t){(0,i.V1)(void 0===t||"object"==typeof t,"Signing service data must be an object if specified.");try{if(void 0!==t&&"object"!=typeof t)throw new i.uE("Signing service data must be an object if specified.");(0,V.r6)(e);const r=e?{..."placeholderSize"in e?{estimatedSize:e.placeholderSize}:null,..."flatten"in e?{flatten:e.flatten}:null,...e?.signatureMetadata?{signatureMetadata:(0,p.sZ)(e.signatureMetadata)}:null,..."position"in e?{position:(0,p.qN)(e.position)}:null,..."appearance"in e?{appearance:await(0,p.z8)(e.appearance)}:null,..."formFieldName"in e?{formFieldName:e.formFieldName}:null,...void 0!==e?.signingData&&"signatureContainer"in e.signingData?{signatureContainer:e.signingData.signatureContainer}:null,...void 0!==e?.signingData&&"signatureType"in e.signingData?{signatureType:p.xz[e.signingData.signatureType]}:null}:null,n=e?.appearance?.watermarkImage||null,s=e?.appearance?.graphicImage||null,o={...t?{signingToken:t.signingToken}:null,...r},a=new FormData;if(a.append("data",JSON.stringify(o)),n&&a.append("image",n),s&&a.append("graphicImage",s),this._destroyProvider(),await this._fetch(`${this._state.documentURL}/sign`,{method:"post",body:a,credentials:"include"}),await this.reloadDocument(),e?.formFieldName)return e.formFieldName}catch(e){throw this.provider.load(),new i.uE(`Adding digital signature failed: ${e.message||e}`)}}async setFontSubstitutions(e){try{const t=`${this._state.documentURL}/font-substitutions`;await this._fetch(t,{method:"put",body:JSON.stringify({fontSubstitutions:e}),credentials:"include",headers:{"Content-Type":"application/json"}})}catch(e){throw new i.uE(`Error setting font substitution: ${e.message}`)}}getDocumentHandle(){return this._state.documentHandle}async getEmbeddedFiles(){const e=await this._fetch(`${this._state.documentURL}/embedded-files`,{method:"get",credentials:"include"}),{data:t}=await e.json();return(0,s.B8)(t?.embeddedFiles?.map((e=>{let{id:t,content:r}=e;return(0,x.r)(t,r)}))||[])}cancelRequests(){this._requestQueue.cancelAll()}_destroyProvider(){this.provider&&(this.provider._clients&&this.provider._clients.disconnect(),this.provider.destroy())}async _fetch(e,t,r){const n=new URLSearchParams(r||{}),s=n.toString()?`${e}${e.includes("?")?"&":"?"}${n.toString()}`:e,o=await fetch(s,{...t,headers:{...t?.headers,"X-PSPDFKit-Token":this._state.token,"PSPDFKit-Platform":"web","PSPDFKit-Version":(0,R._q)()}});if(!o.ok){let e=await function(e){return e.clone().json().catch((()=>e.text()))}(o);e="object"==typeof e?e.reason:e;const t=e||`${o.status} ${o.statusText}`;throw new i.uE(t)}return o}syncChanges(){return this.provider.syncChanges()}async clearAPStreamCache(){}async runPDFFormattingScripts(){return[]}async runPDFFormattingScriptsFromWidgets(){return this.runPDFFormattingScripts()}async lazyLoadPages(){}async contentEditorReload(){return this._destroyProvider(),this.reloadDocument()}getOCGs(){throw new Error("not implemented")}getOCGVisibilityState(){throw new Error("not implemented")}setOCGVisibilityState(){throw new Error("not implemented")}async timestampData(e,t){throw new Error("not implemented")}async waitUntilFullyLoaded(e){throw new Error("not implemented")}}async function z(e){const t={},r=new WeakMap,n=await Promise.all(e.map((async(e,n)=>{if("importDocument"===e.type){const s=e.document;return(0,i.V1)(s instanceof File||s instanceof Blob,"Wrong `importDocument` operation `document` value: it must be a File or a Blob"),(0,T.g)(r,t,s,e,n,"document")}if("applyInstantJson"===e.type){const s=e.instantJson;(0,i.V1)("object"==typeof s&&null!==s,"Wrong `applyInstantJson` operation `instantJson` value: it must be an object");const o=JSON.stringify(s),a=new Blob([o],{type:"application/json"});return(0,T.g)(r,t,a,e,n,"dataFilePath")}if("applyXfdf"===e.type){const s=e.xfdf;(0,i.V1)("string"==typeof s,"Wrong `applyXfdf` operation `xfdf` value: it must be a string");const o=new Blob([s],{type:"application/vnd.adobe.xfdf"});return(0,T.g)(r,t,o,e,n,"dataFilePath")}return e}))),s=new FormData;s.append("operations",JSON.stringify({operations:n}));for(const e in t)s.append(e,t[e]);return s}},4824:(e,t,r)=>{r.d(t,{S:()=>n,z:()=>s});const n={clientsPresenceEnabled:!0,listenToServerChangesEnabled:!0},s={clientsPresenceEnabled:!1,listenToServerChangesEnabled:!1}},93904:(e,t,r)=>{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=s;const i=r(98587),{safeRe:o,t:a}=r(99718),l=r(72111),c=r(57272),h=r(53908),u=r(78311)},78311:(e,t,r)=>{const n=/\s+/g;class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&w(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&E))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(h[u.COMPARATORTRIM],d),l("comparator trim",e),e=e.replace(h[u.TILDETRIM],p),l("tilde trim",e),e=e.replace(h[u.CARETTRIM],m),l("caret trim",e);let o=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options)));n&&(o=o.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(h[u.COMPARATORLOOSE]))))),l("range list",o);const c=new Map,w=o.map((e=>new a(e,this.options)));for(const e of w){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const y=[...c.values()];return i.set(t,y),y}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const i=new(r(68794)),o=r(98587),a=r(93904),l=r(57272),c=r(53908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(99718),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:E}=r(16874),g=e=>"<0.0.0-0"===e.value,w=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},$=(e,t)=>(e=e.replace(h[u.BUILD],""),l("comp",e,t),e=I(e,t),l("caret",e),e=v(e,t),l("tildes",e),e=A(e,t),l("xrange",e),e=L(e,t),l("stars",e),e),R=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const r=t.loose?h[u.TILDELOOSE]:h[u.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return l("tilde",e,t,r,n,s,i),R(r)?o="":R(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:R(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(l("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,l("tilde return",o),o}))},I=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{l("caret",e,t);const r=t.loose?h[u.CARETLOOSE]:h[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let a;return l("caret",e,t,r,s,i,o),R(r)?a="":R(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:R(i)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(l("replaceCaret pr",o),a="0"===r?"0"===s?`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`):(l("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),l("caret return",a),a}))},A=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>b(e,t))).join(" ")),b=(e,t)=>{e=e.trim();const r=t.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{l("xRange",e,r,n,s,i,o,a);const c=R(s),h=c||R(i),u=h||R(o),d=u;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(h&&(i=0),o=0,">"===n?(n=">=",h?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===n&&(n="<",h?s=+s+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+s}.${i}.${o}${a}`):h?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:u&&(r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),l("xRange return",r),r}))},L=(e,t)=>(l("replaceStars",e,t),e.trim().replace(h[u.STAR],"")),_=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=e=>(t,r,n,s,i,o,a,l,c,h,u,d)=>`${r=R(n)?"":R(s)?`>=${n}.0.0${e?"-0":""}`:R(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=R(c)?"":R(h)?`<${+c+1}.0.0-0`:R(u)?`<${c}.${+h+1}.0-0`:d?`<=${c}.${h}.${u}-${d}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),T=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},53908:(e,t,r)=>{const n=r(57272),{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(16874),{safeRe:o,t:a}=r(99718),l=r(98587),{compareIdentifiers:c}=r(61123);class h{constructor(e,t){if(t=l(t),e instanceof h){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof h||(e=new h(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return c(r,s)}while(++t)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return c(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=h},57414:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},72111:(e,t,r)=>{const n=r(94641),s=r(13999),i=r(35580),o=r(54089),a=r(7059),l=r(25200);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return i(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},46170:(e,t,r)=>{const n=r(53908),s=r(30144),{safeRe:i,t:o}=r(99718);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===r)return null;const a=r[2],l=r[3]||"0",c=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${l}.${c}${h}${u}`,t)}},40909:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r)=>{const s=new n(e,r),i=new n(t,r);return s.compare(i)||s.compareBuild(i)}},11763:(e,t,r)=>{const n=r(50560);e.exports=(e,t)=>n(e,t,!0)},50560:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},51832:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),i=r.compare(s);if(0===i)return null;const o=i>0,a=o?r:s,l=o?s:r,c=!!a.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}const h=c?"pre":"";return r.major!==s.major?h+"major":r.minor!==s.minor?h+"minor":r.patch!==s.patch?h+"patch":"prerelease"}},94641:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>0===n(e,t,r)},35580:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)>0},54089:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)>=0},93007:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r,s,i)=>{"string"==typeof r&&(i=s,s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}}},7059:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)<0},25200:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(e,t,r)<=0},32938:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).major},46254:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).minor},13999:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>0!==n(e,t,r)},30144:(e,t,r)=>{const n=r(53908);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},24493:(e,t,r)=>{const n=r(53908);e.exports=(e,t)=>new n(e,t).patch},31729:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},9970:(e,t,r)=>{const n=r(50560);e.exports=(e,t,r)=>n(t,e,r)},74277:(e,t,r)=>{const n=r(40909);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},97638:(e,t,r)=>{const n=r(78311);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},43927:(e,t,r)=>{const n=r(40909);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},56953:(e,t,r)=>{const n=r(30144);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},99589:(e,t,r)=>{const n=r(99718),s=r(16874),i=r(53908),o=r(61123),a=r(30144),l=r(56953),c=r(57414),h=r(93007),u=r(51832),d=r(32938),p=r(46254),m=r(24493),f=r(31729),E=r(50560),g=r(9970),w=r(11763),y=r(40909),$=r(43927),R=r(74277),v=r(35580),S=r(7059),I=r(94641),P=r(13999),A=r(54089),b=r(25200),L=r(72111),_=r(46170),N=r(93904),T=r(78311),O=r(97638),F=r(77631),C=r(19628),D=r(270),x=r(41261),U=r(13874),j=r(97075),k=r(75571),M=r(5342),G=r(76780),V=r(72525),B=r(75032);e.exports={parse:a,valid:l,clean:c,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:f,compare:E,rcompare:g,compareLoose:w,compareBuild:y,sort:$,rsort:R,gt:v,lt:S,eq:I,neq:P,gte:A,lte:b,cmp:L,coerce:_,Comparator:N,Range:T,satisfies:O,toComparators:F,maxSatisfying:C,minSatisfying:D,minVersion:x,validRange:U,outside:j,gtr:k,ltr:M,intersects:G,simplifyRange:V,subset:B,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},16874:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},61123:e=>{const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},68794:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},98587:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},99718:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(16874),o=r(57272),a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],h=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[p,s]],f=(e,t,r)=>{const n=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),u[e]=s,c[s]=t,h[s]=n,a[s]=new RegExp(t,r?"g":void 0),l[s]=new RegExp(n,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),f("FULL",`^${c[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),f("LOOSE",`^${c[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),f("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[u.COERCE],!0),f("COERCERTLFULL",c[u.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},75571:(e,t,r)=>{const n=r(97075);e.exports=(e,t,r)=>n(e,t,">",r)},76780:(e,t,r)=>{const n=r(78311);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},5342:(e,t,r)=>{const n=r(97075);e.exports=(e,t,r)=>n(e,t,"<",r)},19628:(e,t,r)=>{const n=r(53908),s=r(78311);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},270:(e,t,r)=>{const n=r(53908),s=r(78311);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}},41261:(e,t,r)=>{const n=r(53908),s=r(78311),i=r(35580);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}},97075:(e,t,r)=>{const n=r(53908),s=r(93904),{ANY:i}=s,o=r(78311),a=r(97638),l=r(35580),c=r(7059),h=r(25200),u=r(54089);e.exports=(e,t,r,d)=>{let p,m,f,E,g;switch(e=new n(e,d),t=new o(t,d),r){case">":p=l,m=h,f=c,E=">",g=">=";break;case"<":p=c,m=u,f=l,E="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),o=o||e,a=a||e,p(e.semver,o.semver,d)?o=e:f(e.semver,a.semver,d)&&(a=e)})),o.operator===E||o.operator===g)return!1;if((!a.operator||a.operator===E)&&m(e,a.semver))return!1;if(a.operator===g&&f(e,a.semver))return!1}return!0}},72525:(e,t,r)=>{const n=r(97638),s=r(50560);e.exports=(e,t,r)=>{const i=[];let o=null,a=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const e of l){n(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null)}o&&i.push([o,null]);const c=[];for(const[e,t]of i)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const h=c.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return h.length<u.length?h:t}},75032:(e,t,r)=>{const n=r(78311),s=r(93904),{ANY:i}=s,o=r(97638),a=r(50560),l=[new s(">=0.0.0-0")],c=[new s(">=0.0.0")],h=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?l:c}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=c}const n=new Set;let s,h,p,m,f,E,g;for(const t of e)">"===t.operator||">="===t.operator?s=u(s,t,r):"<"===t.operator||"<="===t.operator?h=d(h,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&h){if(p=a(s.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==s.operator||"<="!==h.operator))return null}for(const e of n){if(s&&!o(e,String(s),r))return null;if(h&&!o(e,String(h),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,y=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,E=E||"<"===e.operator||"<="===e.operator,s)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(m=u(s,e,r),m===e&&m!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(h)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),"<"===e.operator||"<="===e.operator){if(f=d(h,e,r),f===e&&f!==h)return!1}else if("<="===h.operator&&!o(h.semver,String(e),r))return!1;if(!e.operator&&(h||s)&&0!==p)return!1}return!(s&&E&&!h&&0!==p)&&(!(h&&g&&!s&&0!==p)&&(!y&&!w))},u=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=h(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},77631:(e,t,r)=>{const n=r(78311);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},13874:(e,t,r)=>{const n=r(78311);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Nutrient Web SDK 1.10.0-eb26372 (https://www.nutrient.io/sdk/web)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
7
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
8
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
9
|
+
* This notice may not be removed from this file.
|
|
10
|
+
*
|
|
11
|
+
* PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/
|
|
12
|
+
*/
|
|
13
|
+
"use strict";(globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[42],{96419:(e,t,n)=>{n.d(t,{N:()=>y});var a=n(14477),i=n(7162),o=n(85409),s=n(49568),r=n(89574),c=n(32784),l=n(9939),d=n(97881);function u(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function m(e,t){return e.get(p(e,t))}function h(e,t,n){return e.set(p(e,t),n),n}function p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var f=new WeakMap,g=new WeakMap;class y{constructor(e,t){u(this,f,void 0),u(this,g,null),this.pdfLibrary=new a.T7.Qz(e),h(f,this,this.pdfLibrary.openDocument(t))}get rawDocument(){return m(f,this)}get linearizedDocument(){return(0,o.V1)(m(g,this),"Document is not linearized."),m(g,this)}async openLinearizedDocument(e){return h(g,this,await this.pdfLibrary.openLinarizedDocument(e)),h(f,this,m(g,this).document),m(g,this)}async normallyOpenLinearizedDocument(e,t){(0,o.V1)(m(g,this),"Document is not linearized."),m(g,this).destroy(),h(g,this,null),await e.client.openCreateFilePathDocument(t)}destroy(){(0,i.nl)(this.rawDocument.ctx)}renderTile(e,t,n,i,o,s){let c;s&&(c={annotations:s.annotations.filter(r.mH).map(d.eq).toJS().map((e=>({content:e}))),formFieldValues:s.formFieldValues.map(d.cA).toJS(),formFields:s.formFields.map(d.T7).toJS(),signatures:s.signatures||[],attachments:s.attachments});const u=this.rawDocument.renderer.renderTile(e,t,n,{renderForPrinting:i,renderText:o,priority:t.width===n.width&&t.height===n.height?a.MX.bx.High:a.MX.bx.Normal},c).then((e=>(0,l.vB)({buffer:e.buffer.buffer,width:n.width,height:n.height,format:e.format}).then((e=>{if(null===e)throw new Error("Image handle is null");return e}))));return{promise:u.promise,cancel:u.cancel}}renderTileRaw(e,t,n,i,o,s,c){let l,u;s&&(l={annotations:s.annotations.filter(r.mH).map(d.eq).toJS().map((e=>({content:e}))),formFieldValues:s.formFieldValues.map(d.cA).toJS(),formFields:s.formFields.map(d.T7).toJS(),signatures:s.signatures||[],attachments:s.attachments}),u="high"===c?a.MX.bx.High:"normal"===c?a.MX.bx.Normal:t.width===n.width&&t.height===n.height?a.MX.bx.High:a.MX.bx.Normal;const m=this.rawDocument.renderer.renderTile(e,t,n,{renderForPrinting:i,renderText:o,priority:u},l);return{promise:m.promise.then((e=>({buffer:e.buffer.buffer,format:e.format}))),cancel:m.cancel}}getTextLines(e){return this.rawDocument.text.getTextLines(e).then((t=>(0,c.K0)({textLines:t},e)))}getContentTree(e){return this.rawDocument.text.getContentTree(e).then((t=>{let n=[],a=0,i=0;return n=t.reduce(((t,n)=>{let{nodes:o}=n;const s=(0,c.l1)(o,e,t.length,a,i);return a+=s.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.Y_)(n).size}),0),i+=s.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.M3)(n).size}),0),t.concat(s)}),[]),(0,s.B8)(n)}))}compareText(e){const t={data:e.originalDocument.arrayBuffer,password:e.originalDocument.password,pageIndexes:e.originalDocument.pageIndexes},n={data:e.changedDocument.arrayBuffer,password:e.changedDocument.password,pageIndexes:e.changedDocument.pageIndexes},i={numberOfContextWords:e.comparisonOperation.options?.numberOfContextWords,wordLevel:e.comparisonOperation.options?.wordLevel};return a.MX.fu.compareText(this.rawDocument.ctx,t,n,i).then((e=>e))}}},72262:(e,t,n)=>{n.d(t,{K:()=>d});var a=n(67136),i=n(49568),o=n(85409),s=n(9867),r=n(89574),c=n(28650),l=n(69371);class d{constructor(){(0,a.A)(this,"attachmentsCache",(0,i.T5)()),(0,a.A)(this,"cachedAPStreams",(0,i.T5)()),(0,a.A)(this,"pageAPStreamsPromises",(0,i.T5)()),(0,a.A)(this,"annotationAPStreamPromises",(0,i.T5)()),(0,a.A)(this,"_cachedRenderedAnnotations",(0,i.uY)()),(0,a.A)(this,"_objectURLs",{}),(0,a.A)(this,"_makeEnqueuedRelease",((e,t)=>{if("IMG"===e?.element?.tagName){const n=e.element.src;if(!n)return;"number"==typeof this._objectURLs[n]?this._objectURLs[n]++:this._objectURLs[n]=1;const a=e.release;e.release=()=>{this._objectURLs[n]--,this._objectURLs[n]<=0&&(a?.(),this._cachedRenderedAnnotations.has(t)&&(this._cachedRenderedAnnotations=this._cachedRenderedAnnotations.delete(t)),delete this._objectURLs[n])}}})),(0,a.A)(this,"_cacheableRenderedAnnotationSetExpire",(e=>{const t=this._cachedRenderedAnnotations.get(e);(0,o.V1)(t),t.timeout&&clearTimeout(t.timeout);const n=setTimeout((()=>{this._cachedRenderedAnnotations.has(e)&&(this._cachedRenderedAnnotations=this._cachedRenderedAnnotations.delete(e))}),3e4);this._cachedRenderedAnnotations=this._cachedRenderedAnnotations.update(e,(e=>({...e,timeout:n})))})),(0,a.A)(this,"_addCachedRenderedAnnotation",((e,t)=>{let{width:n,height:a,noZoom:i,APStreamPromise:o}=t;if(this._cachedRenderedAnnotations.size>1e3){const e=this._cachedRenderedAnnotations.keySeq().first();e&&(this._cachedRenderedAnnotations=this._cachedRenderedAnnotations.delete(e))}this._cachedRenderedAnnotations=this._cachedRenderedAnnotations.set(e,{width:n,height:a,noZoom:i,APStreamPromise:o}),this._cacheableRenderedAnnotationSetExpire(e)}))}getAnnotationFormFieldAndValue(e){const t=this.provider;(0,o.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");const n=e instanceof s.sb?t._readStateCallbacks?.getFormFieldByName(e.formFieldName):null;return{formField:n,formFieldValue:!n||n instanceof s.Vw?null:new s.E2({name:n.name,value:void 0!==n.formattedValue?n.formattedValue:"string"==typeof n.value?n.value:n.values})}}getAnnotationAvailableVariants(e){const t=this.provider;(0,o.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");return[...t._readStateCallbacks?.getAvailableVariants(e)||[],"normal"]}cachedRenderAnnotation(e,t,n,a,i,s){const c=this.provider;(0,o.V1)(c instanceof c.constructor,"Backend can only use backend annotation provider");const{formField:l,formFieldValue:d}=this.getAnnotationFormFieldAndValue(e);if(!(0,r.lG)(e,l))return this.renderAnnotation(e,d,t,n,a,i,s);const u=this.getAnnotationAvailableVariants(e);let m=!1,h=()=>{m=!0};return{promise:new Promise((async(o,r)=>{const c=t=>{const n=this.annotationAPStreamPromises.get(e.id);n&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(e.id),n(t))},l=this.annotationAPStreamPromises.get(e.id);this.annotationAPStreamPromises=this.annotationAPStreamPromises.set(e.id,o),l&&l(null);try{const r=this.pageAPStreamsPromises.get(e.pageIndex);if(!r){const t=new Promise((t=>{this.annotationAPStreamPromises=this.annotationAPStreamPromises.set(e.id,t)}));return void o(await t)}await r;const l=this.cachedAPStreams.get(e.pageIndex);if(l){const t=l?l.get(e.id):null;if(t)return void c(this.getAPStream(t,i))}const{promise:p,cancel:f}=this.renderAPStream(e,d,t,n,a,u,i,s);if(m)c(null);else if(h=f,u.length>1){const t=await Promise.all(p.map((e=>e.promise)));c(t[u.indexOf(i||"normal")]),t.some(Boolean)&&this.cacheAPStream(u.reduce(((e,n,a)=>t[a]?{...e,[n]:t[a]}:e),{}),e)}else{const t=await p,n=t?this.getAPStream(t,i):null;c(n),n&&this.cacheAPStream(t,e)}}catch(e){r(e)}})),cancel:h}}cacheAPStream(e,t){let n=this.cachedAPStreams.get(t.pageIndex);n||(this.cachedAPStreams=this.cachedAPStreams.set(t.pageIndex,(0,i.T5)()),n=this.cachedAPStreams.get(t.pageIndex)),this.cachedAPStreams=this.cachedAPStreams.setIn([t.pageIndex,t.id],e)}clearAllPageAPStreams(e){const t=this.cachedAPStreams.get(e);t&&(t.forEach((e=>{this.releaseAPStream(e)})),this.cachedAPStreams=this.cachedAPStreams.delete(e)),this.pageAPStreamsPromises=this.pageAPStreamsPromises.delete(e)}clearPageAPStreams(e,t){const n=this.cachedAPStreams.get(e);n&&(n.filter(((e,n)=>t.has(n))).forEach((e=>{this.releaseAPStream(e)})),this.cachedAPStreams=this.cachedAPStreams.updateIn([e],(0,l.C$)((e=>e.filter(((e,n)=>!t.has(n)))))))}getAPStream(e,t){return e instanceof c.A?e:e?.[t||"normal"]||null}renderAPStream(e,t,n,a,i,o,s,r){if(o.length>1){const s=o.map((o=>this.renderAnnotation(e,t,n,a,i,"normal"!==o?o:void 0,r)));return{promise:s,cancel:()=>{s.forEach((e=>{e.cancel()}))}}}return this.renderAnnotation(e,t,n,a,i,s,r)}releaseAPStream(e){e instanceof c.A?e.release():Object.values(e).forEach((e=>{e.release()}))}isVisuallyIdenticalAnnotationCached(e){let{annotation:t,providedVisualAnnotationIndex:n,width:a,height:i}=e;if(!(0,r.cu)(t))return!1;const s=n||(0,r.sS)(t);if(!this._cachedRenderedAnnotations.has(s))return!1;const c=this._cachedRenderedAnnotations.get(s);return(0,o.V1)(c),(0,r.Ab)({noZoom:c.noZoom&&t.noZoom,cachedRenderedAnnotationWidth:c.width,cachedRenderedAnnotationHeight:c.height,testAnnotationWidth:a,testAnnotationHeight:i})}cachedRenderedAnnotationDiscardablePromise(e,t){let{promise:n,resolve:a,reject:i}=t;const s=this._cachedRenderedAnnotations.get(e);return(0,o.V1)(s),s.APStreamPromise.then((t=>{let n;return t&&(n=new c.A(t.element.cloneNode(!0),t.release),this._makeEnqueuedRelease(n,e),this._cacheableRenderedAnnotationSetExpire(e)),a(n),n})).catch(i),{promise:n,cancel:()=>{}}}clearRenderedAnnotationsCache(){this._cachedRenderedAnnotations.forEach((e=>{let{APStreamPromise:t,timeout:n}=e;t.then((e=>{e?.release()})),n&&clearTimeout(n)})),this._cachedRenderedAnnotations=(0,i.T5)(),this._objectURLs={}}}},20873:(e,t,n)=>{n.d(t,{mG:()=>le,Ay:()=>de,DO:()=>ue,mn:()=>me});var a=n(67136),i=n(55994),o=n(45646),s=n(85409),r=n(49568),c=n(80018),l=n(63097),d=n(37361),u=n(64337),m=n(20546),h=n(87374),p=n(68322),f=n(37094),g=n(95248),y=n(40927),b=n(9867),A=n(83145),S=n(40527),w=n(70631),_=n(11587),P=n(44439),v=n(89574),F=n(25888),k=n(9939),C=n(15168),D=n(83720),I=n(14511),R=n(41204),T=n(77270),V=n(47159),x=n(37067),O=n(96419);class L{constructor(e,t){this.identifier=e,this.callback=t}request(){return this.callback()}}var B=n(41477),E=n(5293),U=n(97881),N=n(72262),j=n(7737),z=n(82987),q=n(78625),M=n(74111),$=n(78236);class W extends((0,r.mS)({alreadyLoadedPages:(0,r.T5)(),isLoaded:!1,isDestroyed:!1})){}const J={skippedPdfObjectIds:[],skippedPdfBookmarkIds:[],annotations:[],bookmarks:[],formFieldValues:[],formFields:[],attachments:{}};class K{constructor(e,t){(0,a.A)(this,"_state",new W),(0,a.A)(this,"_formFieldsLoadedPromise",null),(0,a.A)(this,"_objectCreationPromises",(0,r.T5)()),(0,a.A)(this,"_loadBookmarksPromise",null),(0,a.A)(this,"_commentsLoadedPromise",null),(0,a.A)(this,"canCreateBackendOrphanWidgets",!1),(0,a.A)(this,"updateTabOrderTimeout",null),(0,a.A)(this,"pagesTabOrderToUpdate",(0,r.NZ)()),this._core=e,this._json=t?(0,s.$y)(t):null,this._setReadStateCallbacksPromise=new Promise((e=>{this._setReadStateCallbacksPromiseResolve=e}))}async load(){if(this._state=this._state.set("isLoaded",!0),!this._formFieldCallbacks&&await this._loadFormFieldValues(),!this._json)return this;await this._core.importInstantJSON({...J,...this._json}),(0,s.V1)(this._json);const{annotations:e,attachments:t}=this._json;if(this._isDestroyed()||!t||0===Object.entries(t).length)return this;if(e)for(let n=0;n<e.length;n++){let a=null;const i=e[n];if("imageAttachmentId"in i&&i.imageAttachmentId){const e=t?t[i.imageAttachmentId]:null;if(e)try{a=(0,q.lj)(atob(e.binary),e.contentType),(0,s.V1)(this._annotationCallbacks),this._annotationCallbacks.createAttachment(i.imageAttachmentId,a)}catch(e){(0,s.pq)(`Skipped attachment with id ${i.imageAttachmentId} from payload because an error occurred while converting the binary image to blob.`),(0,s.pq)(e)}}}return this}destroy(){this._state=this._state.set("isDestroyed",!0),this._annotationCallbacks=null,this._readStateCallbacks=null,this._bookmarkCallbacks=null,this._formFieldCallbacks=null,this._formFieldValueCallbacks=null,this._commentCallbacks=null}setReadStateCallbacks(e){this._readStateCallbacks=e,this._setReadStateCallbacksPromiseResolve?.()}setAnnotationCallbacks(e){this._annotationCallbacks=e}setBookmarkCallbacks(e){this._bookmarkCallbacks=e}setFormFieldCallbacks(e){this._formFieldCallbacks=e}setFormFieldValueCallbacks(e){this._formFieldValueCallbacks=e}setCommentCallbacks(e){this._commentCallbacks=e}createComment(e,t,n){return this._core.applyComments(t.map((e=>H(e,n))).toArray())}updateComment(e,t,n){return this._core.applyComments(t.map((e=>H(e,n))).toArray())}deleteComment(e,t,n){return this._core.applyComments(t.map((e=>H(e,n))).toArray())}async loadComments(){return this._commentsLoadedPromise||(this._commentsLoadedPromise=this._loadComments()),this._commentsLoadedPromise}async _loadComments(){this._verifyLoaded();const e=await this._core.getComments()??[],t=(0,r.B8)(e.map((e=>{let t;return t=e.pdfObjectId?e.id||e.pdfObjectId?.toString():(0,v.K1)(),(0,U.XL)(t,e)})));await Promise.all(t.map((e=>"number"==typeof e.pageIndex&&this.loadAnnotationsForPageIndex(e.pageIndex))).filter(Boolean).toArray()),this._commentCallbacks?.createComments(t,$.n),this._commentsLoadedPromise=Promise.resolve()}async updateTabOrder(e){this.pagesTabOrderToUpdate=this.pagesTabOrderToUpdate.add(e),this.updateTabOrderTimeout&&clearTimeout(this.updateTabOrderTimeout),this.updateTabOrderTimeout=setTimeout((async()=>{const e=this.pagesTabOrderToUpdate.toArray();if(this.pagesTabOrderToUpdate=(0,r.NZ)(),this._isDestroyed())return;const t=await Promise.all(e.map((e=>this._core.getTabOrder(e))));this._isDestroyed()||((0,s.V1)(this._annotationCallbacks),(0,j.vA)((()=>{e.forEach(((e,n)=>{this._annotationCallbacks?.setPageTabOrder(e,t[n])}))})))}),1e3)}async setTabOrder(e,t){return this._core.setTabOrder(e,t)}async createAnnotation(e,t){this._verifyLoaded();const n=t.find(((t,n)=>((0,s.V1)("imageAttachmentId"in e,"Annotation must have imageAttachmentId."),n===e.imageAttachmentId))),a=await this._core.createAnnotation((0,U.eq)(e),n?n.data:null);"number"!=typeof a||"number"!=typeof e.pdfObjectId||e.pdfObjectId===a||this._isDestroyed()||((0,s.V1)(this._annotationCallbacks),this._annotationCallbacks.updateAnnotations((0,r.B8)([e.set("pdfObjectId",a)]))),await this.updateTabOrder(e.pageIndex)}async updateAnnotation(e){this._verifyLoaded(),await this._core.updateAnnotation((0,U.eq)(e)),await this.updateTabOrder(e.pageIndex)}deleteAnnotation(e){return this._verifyLoaded(),this._core.deleteAnnotation((0,U.eq)(e))}createBookmark(e){return this._verifyLoaded(),this._core.createBookmark((0,z.U)(e))}updateBookmark(e){return this._verifyLoaded(),this._core.updateBookmark((0,z.U)(e))}deleteBookmark(e){return this._verifyLoaded(),this._core.deleteBookmark(e)}createFormField(e){this._verifyLoaded(),(0,s.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.createFormField((0,U.T7)(e),t.map((e=>(0,U.eq)(e))).toArray()).then((async e=>{(0,j.vA)((()=>{e.forEach(((e,n)=>{const a=t.get(n);(0,s.V1)(a),(0,s.V1)(this._annotationCallbacks),"number"!=typeof e||"number"!=typeof a.pdfObjectId||a.pdfObjectId===e||this._isDestroyed()||this._annotationCallbacks.updateAnnotations((0,r.B8)([a.set("pdfObjectId",e)]))}))}))}))}updateFormField(e){this._verifyLoaded(),(0,s.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.updateFormField((0,U.T7)(e),t.map((e=>(0,U.eq)(e))).toArray())}deleteFormField(e){return this._verifyLoaded(),this._core.deleteFormField((0,U.T7)(e))}loadFormFields(){return this._formFieldsLoadedPromise||(this._formFieldsLoadedPromise=this._loadFormFields()),this._formFieldsLoadedPromise}async _loadFormFields(){this._verifyLoaded();const e=await this._core.readFormJSONObjects();if(this._isDestroyed())return;let t=(0,r.B8)(),n=(0,r.B8)().withMutations((n=>{e.forEach((e=>{const{formField:a,widgets:i,value:o}=e;try{let e;e=a.pdfObjectId?a.pdfObjectId.toString():(0,v.K1)();const r=(0,U.mh)(e,a);(0,s.V1)(this._readStateCallbacks),this._readStateCallbacks.isFormFieldInState(r.name)||n.push(r.set("value",o)),i.forEach((e=>{if(e.formFieldName!==r.name)return;let n;n=e.pdfObjectId?e.id||e.pdfObjectId.toString():(0,v.K1)(),(0,s.V1)(this._readStateCallbacks),t=t.push((0,U.h8)(n,e))}))}catch(e){(0,s.pq)(`Skipped creating form field #${a.pdfObjectId} from payload because an error occurred while deserializing.`),(0,s.pq)(e)}}))}));const a={},i={};t.forEach((e=>{i[e.id]||(i[e.id]=[]),i[e.id].push(e.pdfObjectId)})),t=t.map((e=>{if(i[e.id].filter((t=>t!==e.pdfObjectId)).length>0&&e.pdfObjectId?.toString()!==e.id||this._readStateCallbacks?.isAnnotationInState(e.id)){const t=(0,v.K1)();return a[e.formFieldName]?a[e.formFieldName].push({[e.id]:t}):a[e.formFieldName]=[{[e.id]:t}],n=n.map((n=>n.name===e.formFieldName?n.update("annotationIds",(n=>n?.map((n=>n===e.id?t:n)))):n)),e.set("id",t)}return e})),Object.keys(a).forEach((e=>{const a=n.find((t=>t.name===e));(0,s.V1)(a);const i=t.filter((t=>t.formFieldName===e)).toArray().map((e=>(0,U.eq)(e)));this._core.updateFormField((0,U.T7)(a),i)})),n.size>0&&!this._isDestroyed()&&((0,s.V1)(this._formFieldCallbacks),this._formFieldCallbacks.createFormFields(n,$.n)),await this._loadFormFieldValues(),t.size>0&&!this._isDestroyed()&&((0,s.V1)(this._annotationCallbacks),this._annotationCallbacks.createAnnotations(t,(0,r.T5)(),$.n)),this._formFieldsLoadedPromise=Promise.resolve()}createFormFieldValue(e){return this._verifyLoaded(),this.setFormFieldValue(e)}setFormFieldValue(e){return this._verifyLoaded(),this._core.setFormFieldValue((0,U.cA)(e))}deleteFormFieldValue(e){return this._verifyLoaded(),this._core.deleteFormFieldValue(e.replace("form-field-value/",""))}loadAnnotationsForPageIndex(e){const t=this._state.alreadyLoadedPages.get(e);if(t)return t;const n=this._loadAnnotationsForPageIndex(e);return this._state=this._state.setIn(["alreadyLoadedPages",e],n),n}async _loadAnnotationsForPageIndex(e){this._verifyLoaded();const[t,n]=await Promise.all([this._core.annotationsForPageIndex(e),this._core.getTabOrder(e)]);if(this._isDestroyed())return;const a=[],i=[],o=t.map((e=>{let{rollover:t,down:n,...o}=e;return t&&"number"==typeof o.pdfObjectId&&a.push(o.pdfObjectId),n&&"number"==typeof o.pdfObjectId&&i.push(o.pdfObjectId),o})).filter((e=>"number"==typeof e.pageIndex));this._formFieldCallbacks&&await this.loadFormFields();const c=(0,r.B8)().withMutations((e=>{o.filter((e=>!e.id||this._readStateCallbacks&&!this._readStateCallbacks.isAnnotationInState(e.id))).forEach((t=>{t.pdfObjectId;try{let n;n=function(e){return"pspdfkit/link"===e.type&&0===e.pdfObjectId}(t)?t.id||(0,v.K1)():t.id||t.pdfObjectId.toString(),(e.some((e=>e.id===n))||this._readStateCallbacks?.isAnnotationInState(n))&&(n=(0,v.K1)(),t.id=n,this._core.updateAnnotation(t));const a=(0,U.h8)(n,t);e.push(a)}catch(e){(0,s.pq)(`Skipped creating annotation #${t.pdfObjectId} from payload because an error occurred while deserializing.`),(0,s.pq)(e)}}))}));(0,j.vA)((()=>{(0,s.V1)(this._annotationCallbacks),c.size>0&&this._annotationCallbacks.createAnnotations(c,(0,r.T5)(),$.n),this._annotationCallbacks.setPageTabOrder(e,n),a.length>0&&this._annotationCallbacks.addAnnotationVariants("rollover",a),i.length>0&&this._annotationCallbacks.addAnnotationVariants("down",i)})),this._state=this._state.setIn(["alreadyLoadedPages",e],Promise.resolve())}async _loadFormFieldValues(){this._verifyLoaded();const e=await this._core.getFormValues();if(this._isDestroyed())return;const t=(0,r.B8)().withMutations((t=>{e.forEach((e=>{try{t.push((0,U.R5)(e))}catch(t){(0,s.pq)(`Skipped creating form field value #${e.pdfObjectId} from payload because an error occurred while deserializing.`),(0,s.pq)(t)}}))}));t.size>0&&!this._isDestroyed()&&((0,s.V1)(this._formFieldValueCallbacks),this._formFieldValueCallbacks.setFormFieldValues(t))}async loadBookmarks(){this._verifyLoaded();const e=await this._core.getBookmarks();if(this._isDestroyed())return;const t=(0,r.B8)().withMutations((t=>{e.forEach((e=>{let n;n=e.id?e.id:e.pdfBookmarkId?e.pdfBookmarkId:(0,M.z)();try{t.push((0,z.r)(n,e))}catch(e){(0,s.pq)(`Skipped creating bookmark #${n} from payload because an error occurred while deserializing.`),(0,s.pq)(e)}}))}));t.size>0&&!this._isDestroyed()&&((0,s.V1)(this._bookmarkCallbacks),this._bookmarkCallbacks.createBookmarks(t,$.n))}_verifyLoaded(){(0,s.V1)(this._state.isLoaded,"StandaloneProvider not properly initialized.")}_isDestroyed(){return this._state.isDestroyed}async syncChanges(){}}function H(e,t){(0,s.V1)(e.rootId,"A new comment must have `rootId` present");const n=t.get(e.rootId);return(0,s.V1)(n,"An annotation must be present linked to the comment to create"),(0,U.wG)(e,n.pdfObjectId?.toString()===n.id?parseInt(e.rootId):e.rootId)}function G(e){return"string"==typeof e?.serialNumber&&e.body instanceof ArrayBuffer}function X(e){return e?.pkcs7 instanceof ArrayBuffer&&(!("ocspResponses"in e)||Array.isArray(e.ocspResponses)&&e.ocspResponses.every((e=>G(e))))}function Y(e){if(!e)return!1;const{signedData:t,timestampResponse:n,ocspResponses:a}=e;if(!(t instanceof ArrayBuffer))return!1;if(n&&!(n instanceof ArrayBuffer))return!1;if(a){if(!Array.isArray(a))return!1;if(!a.every((e=>G(e))))return!1}return!0}var Z=n(93994),Q=n(34247);class ee{constructor(e){this.backend=e}async signDocumentAndReload(e,t){const n=e?.signingData,a=n?.certificates;(0,s.V1)(void 0===t||"function"==typeof t,"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is not provided, `twoStepSignatureCallbackOrSigningServiceData` must be a function or `NutrientViewer.StandaloneSigningServiceData`."),(0,s.V1)(!n?.timestamp||"string"==typeof n?.timestamp?.url,"The `url` property of `signingData.timestamp` must be a string."),(0,s.V1)(!n?.timestamp||!n?.timestamp?.password||"string"==typeof n?.timestamp?.password,"The `password` property of `signingData.timestamp` must be a string."),(0,s.V1)(!n?.timestamp||!n?.timestamp?.username||"string"==typeof n?.timestamp?.username,"The `username` property of `signingData.timestamp` must be a string."),(0,s.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,s.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,s.V1)(!n||!n.signatureType||n.signatureType===Z.D.CMS||Array.isArray(a)&&a.length>0&&a.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"For signatures of type `NutrientViewer.SignatureType.CAdES` an `Array` of certificates must be provided in `signaturePreparationData.signingData.certificates`.");const i={signatureType:n?.signatureType||(Array.isArray(a)&&a.length>0?Z.D.CAdES:Z.D.CMS),...a&&{certificates:a.map((e=>e instanceof ArrayBuffer?c.o4.fromUint8Array(new Uint8Array(e)):c.o4.encode(e)))},...e?.placeholderSize?{estimatedSize:e.placeholderSize}:null};try{const{hash:a,signatureFormFieldName:o,file:r,fileContents:l,dataToBeSigned:d}=await this.backend.client.prepareSign((0,U.Y6)(i),e?.signatureMetadata?(0,U.sZ)(e.signatureMetadata):null,Boolean(e?.flatten),e?.formFieldName,(0,U.qN)(e?.position),await(0,U.z8)(e?.appearance)),u=function(e){const t=e.trim(),n=t.length/2,a=new Uint8Array(n);for(let e=0;e<n;e++)a[e]=parseInt(t.substr(2*e,2),16);return a}(d);let m,h,p;if(t){try{m=await t({hash:a,fileContents:l,dataToBeSigned:u})}catch(e){throw new s.uE(`\`twoStepSignatureCallback\` threw an error: ${e}`)}if(!(m instanceof ArrayBuffer||X(m)||Y(m)))throw new s.uE(`The resolved value from \`twoStepSignatureCallback\` should be a an \`ArrayBuffer\`, \`SignatureCallbackResponsePkcs7\`, or \`SignatureCallbackResponseRaw\`, but is of type \`${typeof m}\` instead.`);p=m}else{if(!n?.privateKey)throw new s.uE("No `twoStepSignatureCallback` or `signingData.privateKey` was provided.");{const e={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"},modulusLength:2048,extractable:!1,publicExponent:new Uint8Array([1,0,1])},t=await globalThis.crypto.subtle.importKey("pkcs8",function(e){const t=e.split("\n");let n="";for(let e=0;e<t.length;e++){t[e].trim().length>0&&t[e].indexOf("-BEGIN RSA PRIVATE KEY-")<0&&t[e].indexOf("-BEGIN PRIVATE KEY-")<0&&t[e].indexOf("-BEGIN RSA PUBLIC KEY-")<0&&t[e].indexOf("-BEGIN CERTIFICATE-")<0&&t[e].indexOf("-END RSA PRIVATE KEY-")<0&&t[e].indexOf("-END PRIVATE KEY-")<0&&t[e].indexOf("-END RSA PUBLIC KEY-")<0&&t[e].indexOf("-END CERTIFICATE-")<0&&(n+=t[e].trim())}return c.o4.toUint8Array(n).buffer}(n.privateKey),e,!0,["sign"]);h=await globalThis.crypto.subtle.sign(e,t,u),p=h}}let f="",g=i.certificates||[];if(p instanceof ArrayBuffer)f=c.o4.fromUint8Array(new Uint8Array(p))||"";else if(X(p)){const e=p;f=c.o4.fromUint8Array(new Uint8Array(e.pkcs7))||""}else if(Y(p)){const e=p;f=c.o4.fromUint8Array(new Uint8Array(e.signedData))||"",g=e.certificates.map((e=>e instanceof ArrayBuffer?c.o4.fromUint8Array(new Uint8Array(e)):c.o4.encode(e)))}let y=null,b=[];if(n?.ltv&&(p instanceof ArrayBuffer?b=await this.backend.getRevocationResponses(g):(X(p)||Y(p))&&((0,s.V1)(null==p.ocspResponses||Array.isArray(p.ocspResponses)&&p.ocspResponses.every((e=>G(e))),"The `ocspResponses` property of `signatureData` must be a array of `OCSPResponses`."),b=p.ocspResponses?.map((e=>({response_code:200,body:c.o4.fromUint8Array(new Uint8Array(e.body)),token:e.serialNumber})))??[],b.length||((0,s.R8)("The `TwoStepSignatureCallback` didn't return certificate revocation responses; trying to fetch them online."),b=await this.backend.getRevocationResponses(g)))),Y(p)){const e=p;(0,s.V1)(null==e.timestampResponse||e.timestampResponse instanceof ArrayBuffer,"The `timestampResponse` property of `signatureData` must be an `ArrayBuffer`."),e.timestampResponse&&(y={response_code:200,body:c.o4.fromUint8Array(new Uint8Array(e.timestampResponse)),token:"1234"})}if(!y&&n?.timestamp&&p instanceof ArrayBuffer){const e=c.o4.toUint8Array(f).buffer;y=await this.backend.timestampData(e,n.timestamp)}const A=await this.backend.client.sign(r,o,a,U.xz[i.signatureType],f,g,X(p)?"pkcs7":Y(p)?"raw":n?.signatureContainer?n.signatureContainer:null,y,b);return n?.ltv&&A.signature.certificateChainValidationStatus===Q.k.ok_but_could_not_check_revocation&&(0,s.R8)("Document signed, but couldn't add certificate revocation information so the signature may not be LTV-enabled."),await this.backend.reloadDocument(),o}catch(e){throw await this.backend.client.restoreToOriginalState(),e}}}var te=n(64966),ne=n(54139),ae=n(7199);class ie extends ee{constructor(e){super(e)}async signDocumentAndReload(e,t){t=(0,S.k)(t),(0,s.V1)(t,"`twoStepSignatureCallbackOrStandaloneSigningServiceData` must be a `NutrientViewer.StandaloneSigningServiceData` object when performing signing via a backend service.");const{jwt:n,signingToken:a}=t,i=this.resolveApiBasePath(t),o=this.resolveServerUrl(t),r=await this.getCertificates(o,n,`${i}get_certificates`,a),c=this.signatureCallbackFactory(o,n,r,e,t,`${i}sign_hash`);return await super.signDocumentAndReload({...e,signingData:{...e?.signingData,signatureType:e?.signingData?.signatureType||Z.D.CAdES,certificates:r}},c)}async getCertificates(e,t,n,a){let i;const o=`${e}${n}`;try{i=await fetch(o,{method:"POST",headers:{Authorization:`Bearer ${t}`,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({signingToken:a})})}catch(e){throw new s.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${o}`)}if(!i.ok)throw new s.uE(`The signing service failed to retrieve certificates: ${await i.json()}`);const r=(await i.json())?.data||{};return r.certificates.concat(r.ca_certificates).map((e=>c.o4.fromBase64(e)))}resolveApiBasePath(e){return(0,te.i)(e.jwt).api_base_path||"/api/"}resolveServerUrl(e){const t=e.serverUrl||(0,te.i)(e.jwt).server_url;return(0,s.V1)(t,"`twoStepSignatureCallbackOrStandaloneSigningServiceData.jwt` must contain claim `server_url` or the `twoStepSignatureCallbackOrStandaloneSigningServiceData.serverUrl` should be set"),t}signatureCallbackFactory(e,t,n,a,i,o){return async r=>{let l,{hash:d,dataToBeSigned:u}=r;try{l=await fetch(`${e}${o}`,{method:"POST",headers:{Authorization:`Bearer ${t}`,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({dataToBeSigned:c.o4.fromUint8Array(u),hash:d,signatureType:a?.signingData?.signatureType||Z.D.CAdES,signingToken:i.signingToken,cadesLevel:a?.signingData?.padesLevel||ne.s.b_lt})})}catch(t){throw new s.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${e}${o}`)}if(!l.ok)throw new s.uE(`The signing service failed to sign: ${await l.text()}`);const m=(await l.json())?.data||{};if(a?.signingData?.signatureContainer===ae.Y.pkcs7){const e={pkcs7:c.o4.toUint8Array(m.pkcs7).buffer};return m.ocspResponses&&(e.ocspResponses=m.ocspResponses.map((e=>({serialNumber:e.serialNumber,body:c.o4.toUint8Array(e.body).buffer})))),e}{const e={certificates:n,signedData:c.o4.toUint8Array(m.signedData).buffer,timestampResponse:c.o4.toUint8Array(m.timestampResponse).buffer};return m.ocspResponses&&(e.ocspResponses=m.ocspResponses.map((e=>({serialNumber:e.serialNumber,body:c.o4.toUint8Array(e.body).buffer})))),e}}}}var oe=n(30026),se=n(85553);class re extends(r.mS({baseUrl:null,baseCoreUrl:null,baseProcessorEngineUrl:null,licenseKey:null,document:null,backendPermissions:new oe.A,documentResponse:null,disableWebAssemblyStreaming:!1,enableAutomaticLinkExtraction:!1,overrideMemoryLimit:null,features:(0,r.B8)(),signatureFeatureAvailability:se.g.NONE,documentHandle:null,trustedCAsCallback:null,signaturesInfoPromise:null,customFonts:null,fontSubstitutions:null,forceLegacySignaturesFeature:!1,forceAnnotationsRender:!1,appName:null,lazyLoadedPages:null,productId:null,processorEngine:null,dynamicFonts:null,inlineWorkers:!0,allowLinearizedLoading:!1,enableCoreUnifiedComments:!1,enableCorePreservePDFAccessibility:!1,httpHeaders:null})){}let ce;ce=n(55994).Fe;const le=new i.iy(ce);class de extends N.K{constructor(e){super(),(0,a.A)(this,"type","STANDALONE"),(0,a.A)(this,"standaloneDocumentSigner",new ee(this)),(0,a.A)(this,"signingServiceDocumentSigner",new ie(this)),(0,a.A)(this,"_XFDF",null),me(e);const{baseUrl:t,baseCoreUrl:n,baseProcessorEngineUrl:i,instantJSON:s,XFDF:r,enableAutomaticLinkExtraction:c,overrideMemoryLimit:l,trustedCAsCallback:u,electronAppName:m,appName:f,isSharePoint:g,isSalesforce:y,productId:b,processorEngine:A,dynamicFonts:S,inlineWorkers:w,formsConfiguration:_,allowLinearizedLoading:P,unifiedCommentsSupport:v,preservePDFAccessibility:F}=e;"string"==typeof r&&(this._XFDF={source:r,keepCurrentAnnotations:!0===e.XFDFKeepCurrentAnnotations,ignorePageRotation:!0===e.XFDFIgnorePageRotation,richTextEnabled:!0===e.XFDFRichTextEnabled}),s&&s.annotations&&(s.annotations=s.annotations.map((e=>(e.id=e.id?.toString(),e)))),this._instantJSON=s,this._formsConfiguration=_,"function"==typeof u&&(this._trustedCAsCallback=u);const{disableWebAssemblyStreaming:k,customFonts:C,fontSubstitutions:D}=e,{standaloneInstancesPoolSize:I}=e;void 0!==I&&(le.size=I);const R=!!e.electronicSignatures&&Boolean(e.electronicSignatures.forceLegacySignaturesFeature);let T=b||null;!g&&!y||T||(T=g?p.v.SharePoint:p.v.Salesforce),this._state=new re(ue({baseUrl:t,baseCoreUrl:n,baseProcessorEngineUrl:i,licenseKey:e.licenseKey,document:e.document,disableWebAssemblyStreaming:k,enableAutomaticLinkExtraction:c,overrideMemoryLimit:l,documentHandle:"0",customFonts:C,fontSubstitutions:D,forceLegacySignaturesFeature:R,appName:f||m,productId:T,processorEngine:A||h.j.fasterProcessing,dynamicFonts:S,inlineWorkers:w,allowLinearizedLoading:P,enableCoreUnifiedComments:v,enableCorePreservePDFAccessibility:F,httpHeaders:e.httpHeaders})),this._requestQueue=new o.L(d.z3);const{object:V,checkIn:x}=le.checkOut();this.client=V,this.checkIn=x,this.corePDFDocument=new O.N({wasmClient:this.client},{type:"alreadyLoadedDocument"});const L=s?{annotations:s.annotations||[],formFields:s.formFields||[],formFieldValues:s.formFieldValues||[],skippedPdfObjectIds:s.skippedPdfObjectIds||[],skippedPdfFormFieldIds:s.skippedPdfFormFieldIds||[],attachments:s.attachments||{},bookmarks:s.bookmarks||[],skippedPdfBookmarkIds:s.skippedPdfBookmarkIds||[],comments:s.comments||void 0,skippedComments:s.skippedComments||void 0,format:s.format,...s.pdfId?{pdfId:s.pdfId}:null}:null;this.provider=new K(this.client,L)}isUsingInstantProvider(){return!1}hasClientsPresence(){return!1}async load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isPDFJavaScriptEnabled=e.isPDFJavaScriptEnabled,{features:this._state.features,signatureFeatureAvailability:this._state.signatureFeatureAvailability,hasPassword:!!e.password,password:e.password,allowedTileScales:"all"}}async afterDocumentLoaded(e){}destroy(){this.corePDFDocument.destroy(),this.provider&&this.provider.destroy(),this._requestQueue&&this._requestQueue.destroy(),this.checkIn()}async documentInfo(){return this._state.documentResponse}async lazyLoadPages(){if(!this._state.lazyLoadedPages){const e=await this.client.getAllPageInfos(this._state.documentResponse.pageCount);this._state=this._state.set("lazyLoadedPages",e)}return this._state.lazyLoadedPages}getDocumentHandle(){return this._state.documentHandle}getFormJSON(){return this.client.getFormJSON()}permissions(){return Promise.resolve(this._state.backendPermissions)}textForPageIndex(e){return this.corePDFDocument.getTextLines(e)}getContentTreeForPageIndex(e){return this.corePDFDocument.getContentTree(e)}getTextFromRects(e,t){return this.client.getTextFromRects(e,t.toJS())}getAvailableFontFaces(e){return this.client.getAvailableFontFaces(e)}async getSuggestedLineHeightFactor(e){return"number"!=typeof e.pdfObjectId?1:"number"!=typeof e.pageIndex?((0,s.R8)("Annotation must have a pageIndex."),1):(e.lineHeightFactor&&(0,s.R8)(`Annotation ${e.id} already has a line height factor.`),this.client.getSuggestedLineHeightFactor(e.pdfObjectId,e.pageIndex))}async getClosestSnapPoint(e){const t=await this.client.getClosestSnapPoint(e.x,e.y);return t&&"number"==typeof t[0]&&"number"==typeof t[1]?new _.bR({x:t[0],y:t[1]}):e}configureSnapper(e){return this.client.configureSnapper(e)}renderAnnotation(e,t,n,a,i,o,s){if(0===Math.floor(a)||0===Math.floor(i))return{promise:Promise.resolve(void 0),cancel:()=>{}};const r=(0,T.yl)();let c;if((0,v.cu)(e)){if(c=(0,v.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:c,width:a,height:i}))return this.cachedRenderedAnnotationDiscardablePromise(c,r);this._addCachedRenderedAnnotation(c,{width:a,height:i,noZoom:e.noZoom,APStreamPromise:r.promise})}const l=e.id,d=new L(l,(()=>this.client.renderAnnotation((0,U.eq)(e),n,a,i,(0,C.LG)(),o,s).then((e=>e?"string"==typeof e?(0,k.$3)(e):(0,k.vB)({buffer:e,width:a,height:i}):Promise.resolve(null))).then((t=>((0,v.cu)(e)&&this._makeEnqueuedRelease(t,c),r.resolve(t),t)))));return this._requestQueue.enqueue(d,!1)}async getMeasurementSnappingPoints(e){return this.client.getMeasurementSnappingPoints(e)}async getSecondaryMeasurementUnit(){return await this.client.getSecondaryMeasurementUnit()}async setSecondaryMeasurementUnit(e){return await this.client.setSecondaryMeasurementUnit(e)}async compareDocuments(e,t){const n={originalDocument:e.originalDocument,changedDocument:e.changedDocument,comparisonOperation:(0,g.c)(t)};return this.corePDFDocument.compareText(n).promise}async renderPageAnnotations(e,t,n){const a=this.provider,i=[],o=[],r=t.some((e=>e instanceof b.sb));r&&await a._setReadStateCallbacksPromise;const c=t.filter((e=>{const t=r?a._readStateCallbacks.getAnnotationWithFormField(e.id):null,n=t?.formField,s=(0,v.lG)(e,n);if(s&&n){i.find((e=>e.name===n.name))||(i.push((0,U.cA)((0,D.Af)(n))),o.push(n))}return s}));function l(e,t){if((0,v.uM)(e)){const n=o.find((t=>t.name===e.formFieldName)),a=t.find((t=>t.name===e.formFieldName));if(!(0,D.Ny)(n,a))return!1}return!0}const d=new Promise(((t,i)=>{const r=c.filter((e=>0!==Math.floor(e.boundingBox.width*n)&&0!==Math.floor(e.boundingBox.height*n)));this.client.renderPageAnnotations(e,r.map((e=>e.pdfObjectId)).toArray(),r.map((e=>e.boundingBox.width*n)).toArray(),r.map((e=>e.boundingBox.height*n)).toArray(),(0,C.LG)()).then((e=>{const i=o.map((e=>a._readStateCallbacks?.getFormFieldByName(e.name))).filter(Boolean),c=e.map(((e,t)=>{const a=r.get(t);return(0,s.V1)(a),l(a,i)&&a&&e?"string"==typeof e?(0,k.$3)(e):(0,k.vB)({buffer:e,width:a.boundingBox.width*n,height:a.boundingBox.height*n}):Promise.resolve(null)}));Promise.all(c).then((e=>{const i=o.map((e=>a._readStateCallbacks?.getFormFieldByName(e.name))).filter(Boolean);e.forEach(((e,t)=>{const a=r.get(t);if(a){const{formFieldValue:t}=this.getAnnotationFormFieldAndValue(a),o=this.getAnnotationAvailableVariants(a),s=this.annotationAPStreamPromises.get(a.id),r=l(a,i);if(s&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(a.id),s(r?e:null)),o.length>1){const i={normal:e};e&&r&&this.cacheAPStream(i,a);const{promise:s}=this.renderAPStream(a,t,null,a.boundingBox.width*n,a.boundingBox.height*n,o);Promise.all(s.map((e=>e.promise))).then((e=>{e.some(Boolean)&&o.forEach(((t,n)=>{"normal"!==t&&e[n]&&(i[t]=e[n])}))}))}else e&&r&&this.cacheAPStream(e,a)}})),t()}))})).catch(i)}));return this.pageAPStreamsPromises=this.pageAPStreamsPromises.set(e,d),d}renderDetachedAnnotation(e,t,n,a){if(e.id)throw new s.uE(`Detached annotations should not have an \`id\`: ${e.id}`);const i=(0,T.yl)();let o;if((0,v.cu)(e)){if(o=(0,v.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:o,width:n,height:a}))return this.cachedRenderedAnnotationDiscardablePromise(o,i);this._addCachedRenderedAnnotation(o,{width:n,height:a,noZoom:e.noZoom,APStreamPromise:i.promise})}const r=(0,l.Z0)(),c=new L(r,(()=>this.client.renderDetachedAnnotation((0,U.eq)(e),t,n,a,(0,C.LG)()).then((e=>e?(0,k.vB)({buffer:e,width:n,height:a}):Promise.resolve(null))).then((t=>((0,v.cu)(e)&&this._makeEnqueuedRelease(t,o),i.resolve(t),t))).catch((()=>{const e=this._cachedRenderedAnnotations.get(o);e&&e.timeout&&clearTimeout(e.timeout),this._cachedRenderedAnnotations.delete(o)})))),{promise:d,cancel:u}=this._requestQueue.enqueue(c,!1);return{promise:d,cancel:u}}async getAttachment(e){const[t,n]=await this.client.getAttachment(e);return new Blob([t],{type:n})}async parseXFDF(e,t,n){const{errors:a,formFieldValues:i,annotations:o}=await this.client.parseXFDF(e,t,n);return{errors:a?.map((e=>({errorMessage:e.error_message,type:e.type}))),formFieldValues:i?.reduce(((e,t)=>(e[t.fqdn]=t.values,e)),{}),annotations:(0,r.B8)(o?.map((e=>(0,U.h8)((0,v.K1)(),e)))||[])}}async search(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.n.TEXT;const s=await this.client.search(e,t,n,a,o);return(0,V.g)(s.filter((e=>i||!e.isAnnotation)))}async searchAndRedact(e,t,n){const{totalPages:a}=n,i=await this.client.search(e,t.startPageIndex??0,t.pageRange??a,t.caseSensitive,t.searchType);return(0,r.B8)(i.filter((e=>t.searchInAnnotations||!e.isAnnotation)).map((e=>{const a=e.isAnnotation?[e.annotationRect]:e.rectsOnPage,i=(0,r.B8)(a).map((e=>((0,s.V1)(e),(0,E.a)(e))));return new A.A({...(0,v.mN)(n),...t.annotationPreset,pageIndex:e.pageIndex,rects:i,boundingBox:P.A.union(i)})})))}async exportPDF(){let{flatten:e=!1,incremental:t,saveForPrinting:n=!1,format:a="pdf",excludeAnnotations:i=!1,preserveInstantJSONChanges:o=!0,permissions:r,outputFormat:c=!1,flattenElectronicSignatures:l=e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(e&&!l)throw new s.uE("Cannot set `flattenElectronicSignatures` to `false` when `flatten` is set to `true`.");if(c&&"boolean"!=typeof c&&c.conformance&&(0,s.V1)(c.conformance&&Object.values(m.o).includes(c.conformance),"The supplied PDF/A Conformance type is not valid. Valid Conformance should be one of the following options NutrientViewer.Conformance."+Object.keys(m.o).join(", NutrientViewer.Conformance.")),void 0===t)if(this._state.features.includes(u.Y.DIGITAL_SIGNATURES)){const e=await this.getSignaturesInfo();t=!n&&Boolean("not_signed"!==e.status)}else t=!1;return this.client.exportFile(e,t,n,a,i,o,r,d).then((async e=>{let[t,n]=e;if(t.mimeType=n.mimeType,t.extension=n.extension,c){const e="boolean"!=typeof c&&c.conformance?c.conformance:m.o.PDFA_2B;let a;try{return a=await this._setupGdPictureClient(),await a.toPdf({document:t,contentType:n.mimeType,extension:n.extension,conformance:e})}finally{a?.destroy(),(0,x.Pm)(null)}}return t}))}async exportOffice(e){let t,{format:n}=e;try{const[e]=await this.client.exportFile(!1,!1,!1,"pdf",!1,!0);return t=await this._setupGdPictureClient(),await t.toOffice(e,n)}catch(e){throw new s.uE(`Exporting to ${n} failed: ${e.message}.`)}finally{t?.destroy(),(0,x.Pm)(null)}}async _setupGdPictureClient(){let e=(0,x.jU)();return e||(e=(0,x.NY)({baseUrl:this._state.baseProcessorEngineUrl,mainThreadOrigin:this._state.appName||(0,R.D5)()||window.location.origin,licenseKey:this._state.licenseKey,processorEngine:this._state.processorEngine,customFonts:this._state.customFonts,dynamicFonts:this._state.dynamicFonts,fontSubstitutions:this._state.fontSubstitutions}),(0,x.Pm)(e)),e}exportXFDF(e){return this.client.exportXFDF(e)}exportInstantJSON(e){return this.client.exportInstantJSON(e)}getPDFURL(){let{includeComments:e=!0,saveForPrinting:t,excludeAnnotations:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.generatePDFObjectURL({includeComments:e,saveForPrinting:t,excludeAnnotations:n})}generatePDFObjectURL(){let e,{includeComments:t=!0,saveForPrinting:n,excludeAnnotations:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!1;return{promise:new Promise((o=>{this.exportPDF({flatten:!0,includeComments:t,saveForPrinting:n,excludeAnnotations:a}).then((t=>{if(i)return;const n=new Blob([t],{type:t.mimeType});e=window.URL.createObjectURL(n),o(e)}))})),revoke:()=>{e&&window.URL.revokeObjectURL(e),i=!0}}}async getDocumentOutline(){const e=await this.client.getDocumentOutline();return(0,r.B8)(e.map(B.r))}async setDocumentOutline(e){return this.client.setDocumentOutline(e.map(B.U).toArray())}async getPageGlyphs(e){const t=await this.client.getPageGlyphs(e);return(0,U.Fj)(t)}async onKeystrokeEvent(e){return await this.client.onKeystrokeEvent(e)}async evalFormValuesActions(e){return this.client.evalFormValuesActions(e.map(U.cA).toJS())}async evalScript(e,t,n){return this.client.evalScript(e,t,n)}async setFormJSONUpdateBatchMode(e){return this.client.setFormJSONUpdateBatchMode(e)}async getMeasurementScales(){const e=await this.client.getMeasurementScales();return e?.measurementContentFormats}async addMeasurementScale(e){return await this.client.addMeasurementScale(e)}async removeMeasurementScale(e){return await this.client.removeMeasurementScale(e)}async getAnnotationsByScale(e){return await this.client.getAnnotationsByScale(e)}async applyOperationsAndReload(e){try{const{processedOperations:t,operationsDocuments:n}=await(0,F.t)(e);await this.client.applyOperations(t,n)}catch(e){throw new s.uE(`Applying operations failed: ${e}`)}return this.provider._state=this.provider._state.set("alreadyLoadedPages",(0,r.T5)()),this.reloadDocument()}async applyRedactionsAndReload(){try{await this.client.applyRedactions()}catch(e){throw new s.uE(`Applying redactions failed: ${e}`)}return this.reloadDocument()}async reloadDocument(){try{this.provider?.destroy(),this.provider=new K(this.client,null),this._state=this._state.set("lazyLoadedPages",null);const e=await this.client.reloadDocument();return this._state=this._state.set("documentResponse",e).set("documentHandle",(parseInt(this._state.documentHandle)+1).toString()).set("signaturesInfoPromise",null),this.clearRenderedAnnotationsCache(),{features:this._state.features,signatureFeatureAvailability:this._state.signatureFeatureAvailability,hasPassword:!1,password:void 0,allowedTileScales:"all"}}catch(e){throw new s.uE(`Reloading failed: ${e}`)}}async getEmbeddedFiles(){const e=await this.client.getEmbeddedFilesList();return(0,r.B8)(e.map((e=>{let{id:t,...n}=e;return(0,y.r)(t,n,!0)})))}async exportPDFWithOperations(e){try{const{processedOperations:t,operationsDocuments:n}=await(0,F.t)(e);return this.client.exportPDFWithOperations(t,n)}catch(e){throw new s.uE(`Exporting PDF with operations failed: ${e}`)}}async setSignaturesLTV(e){try{const t=(e??[]).map((e=>e instanceof ArrayBuffer?c.o4.fromUint8Array(new Uint8Array(e)):c.o4.encode(e))),n=await this.getRevocationResponses(t),a=await this.client.setSignaturesLTV(n).then((e=>(0,U.N5)(e)));if(a.signatures?.find((e=>e.certificateChainValidationStatus===Q.k.ok_but_could_not_check_revocation)))throw"Could not set LTV for all signatures. Check that the OCSP response is valid.";return this._state=this._state.set("signaturesInfoPromise",null),this.getSignaturesInfo()}catch(e){throw new s.uE(`Setting signatures LTV failed: ${e}`)}}getSignaturesInfo(){try{if(this._state.signaturesInfoPromise)return this._state.signaturesInfoPromise;const e=this.client.getSignaturesInfo().then((e=>(0,U.N5)(e)));return this._state=this._state.set("signaturesInfoPromise",e),e}catch(e){throw new s.uE(`Getting document signatures info: ${e}`)}}async refreshSignaturesInfo(){this._state=this._state.set("signaturesInfoPromise",null)}async loadCertificates(e){return this.client.loadCertificates(e)}async getRevocationResponses(e){const t=await this.client.getRevocationRequests(e);return await Promise.all(t.map((async e=>{let{method:t,url:n,content_type:a,request_data:i,token:o}=e;try{const e=await fetch(n,{method:t,headers:{"Content-Type":a??"application/ocsp-request"},body:c.o4.toUint8Array(i).buffer}),s=await e.arrayBuffer();return{response_code:e.status,body:c.o4.fromUint8Array(new Uint8Array(s)),token:o}}catch(e){return{response_code:0,body:"",token:o,error_message:e.message}}})))}async signDocumentAndReload(e,t){(0,s.V1)(void 0===t||"function"==typeof t||(0,S.k)(t),"On a Standalone deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a function or `NutrientViewer.StandaloneSigningServiceData` if provided.");const n=(0,S.k)(t);return n?this.signingServiceDocumentSigner.signDocumentAndReload(e,n):this.standaloneDocumentSigner.signDocumentAndReload(e,t)}cancelRequests(){this._requestQueue.cancelAll()}async syncChanges(){}getDefaultGroup(){}isCollaborationPermissionsEnabled(){return!1}async clearAPStreamCache(){return this.client.clearAPStreamCache()}async setComparisonDocument(e,t){return this.client.setComparisonDocument(e,t)}async openComparisonDocument(e){return this._state=this._state.set("forceAnnotationsRender",!1),await this.client.closeDocument(),this._state=this._state.set("forceAnnotationsRender",!0),await this.client.openComparisonDocument(e)||this._state.documentResponse}async documentCompareAndOpen(e){return this.client.documentCompareAndOpen(e)}async persistOpenDocument(e){return this.client.persistOpenDocument(e)}async cleanupDocumentComparison(){return this.client.cleanupDocumentComparison()}async runPDFFormattingScripts(e,t){const n=[...new Set(e)];return this.client.runPDFFormattingScripts(n,t)}async runPDFFormattingScriptsFromWidgets(e,t,n){let a=[];if(this._isPDFJavaScriptEnabled){const{withAPStream:i,withoutAPStream:o}=e.reduce(((e,a)=>{if(a instanceof b.sb){const i=t?.get(a.formFieldName);if(i instanceof b.Vw)return e;n?.(a)?e.withAPStream.push(a.formFieldName):e.withoutAPStream.push(a.formFieldName)}return e}),{withAPStream:[],withoutAPStream:[]});let s=[];if(i.length&&!o.length)s=await this.runPDFFormattingScripts(i,!0);else if(!i.length&&o.length)s=await this.runPDFFormattingScripts(o,!1);else if(i.length&&o.length){const[e,t]=await Promise.all([this.runPDFFormattingScripts(i,!0),this.runPDFFormattingScripts(o,!1)]);s=e.concat(t)}a=(0,D.A5)(this._initialChanges,s)}return a}setFontSubstitutions(e){return this.client.setFontSubstitutions(e)}async contentEditorReload(){return(0,s.V1)(this.provider instanceof K,"Standalone can only use standalone annotation provider"),this.provider._state=this.provider._state.set("alreadyLoadedPages",(0,r.T5)()),this.reloadDocument()}getOCGs(){return this.client.getOCGs()}getOCGVisibilityState(){return this.client.getOCGVisibilityState()}setOCGVisibilityState(e){return this.client.setOCGVisibilityState(e)}updateButtonIcon(e,t,n){return this.client.updateButtonIcon((0,U.eq)(e),t,n)}async timestampData(e,t){const{url:n,username:a="",password:i=""}=t,o=c.o4.fromUint8Array(new Uint8Array(e));try{const e=await this.client.getTimestampRequest(o,{url:n,username:a,password:i}),t={method:e.method,headers:{"Content-Type":e.contentType||"application/timestamp-query"},body:c.o4.toUint8Array(e.requestData).buffer};(e.username||e.password)&&(t.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`);try{const n=await fetch(e.url,t),a=await n.arrayBuffer();return{response_code:n.status,body:c.o4.fromUint8Array(new Uint8Array(a)),token:e.token}}catch(t){return{response_code:400,body:"",token:e.token,error_message:t.message}}}catch(e){return{response_code:500,body:"",token:"",error_message:e.message}}}async waitUntilFullyLoaded(e){}}function ue(e){return{baseUrl:e.baseUrl,baseCoreUrl:e.baseCoreUrl,baseProcessorEngineUrl:e.baseProcessorEngineUrl,licenseKey:e.licenseKey,document:e.document,disableWebAssemblyStreaming:!!e.disableWebAssemblyStreaming,enableAutomaticLinkExtraction:!!e.enableAutomaticLinkExtraction,overrideMemoryLimit:"number"==typeof e.overrideMemoryLimit?e.overrideMemoryLimit:null,documentHandle:"number"==typeof e.documentHandle?e.documentHandle:"0",trustedCAsCallback:"function"==typeof e.trustedCAsCallback?e.trustedCAsCallback:null,customFonts:Array.isArray(e.customFonts)?e.customFonts.filter((e=>e instanceof w.A)):null,forceLegacySignaturesFeature:Boolean(e.forceLegacySignaturesFeature),appName:"string"==typeof e.appName?e.appName:null,productId:e.productId,processorEngine:e.processorEngine,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,inlineWorkers:e.inlineWorkers,allowLinearizedLoading:e.allowLinearizedLoading,enableCoreUnifiedComments:e.enableCoreUnifiedComments,enableCorePreservePDFAccessibility:e.enableCorePreservePDFAccessibility,httpHeaders:e.httpHeaders||null}}function me(e){const{licenseKey:t,instantJSON:n,XFDF:a,disableWebAssemblyStreaming:i,disableIndexedDBCaching:o,enableAutomaticLinkExtraction:r,overrideMemoryLimit:c,standaloneInstancesPoolSize:l,trustedCAsCallback:d,baseUrl:u,baseCoreUrl:m,baseProcessorEngineUrl:h,customFonts:p,isSharePoint:f,isSalesforce:g,dynamicFonts:y,inlineWorkers:b,formsConfiguration:A,httpHeaders:S}=e;if((0,s.V1)("string"==typeof u,"`baseUrl` is mandatory and must be a valid URL, e.g. `https://example.com/"),(0,I.f4)(u),(0,s.V1)(!m||"string"==typeof m,"`baseCoreUrl` must be a valid URL if set, e.g. `https://example.com/"),m&&(0,I.Qo)(m),(0,s.V1)(!h||"string"==typeof h,"`baseProcessorEngineUrl` must be a valid URL if set, e.g. `https://example.com/"),h&&(0,I.hc)(h),(0,s.V1)(null==t||"string"==typeof t,"licenseKey must be a string value if provided. Please obtain yours from https://my.nutrient.io/."),"string"==typeof t&&(0,s.V1)(!t.startsWith("TRIAL-"),"You're using the npm key instead of the license key. This key is used to download the Nutrient Web SDK package via the node package manager.\n\nLeave out the license key to activate as a trial."),(0,s.V1)(void 0===a||"string"==typeof a,"XFDF must be a string"),n&&((0,s.yj)(n),(0,s.V1)(void 0===a,"Cannot import from both instantJSON and XFDF")),(0,s.V1)(void 0===i||"boolean"==typeof i,"disableWebAssemblyStreaming must be a boolean"),(0,s.V1)(void 0===r||"boolean"==typeof r,"enableAutomaticLinkExtraction must be a boolean"),(0,s.V1)(void 0===c||"number"==typeof c,"overrideMemoryLimit must be a number"),(0,s.V1)(void 0===l||"number"==typeof l&&l>=0,"standaloneInstancesPoolSize must be a non-negative number"),(0,s.V1)(void 0===d||"function"==typeof d,"trustedCAsCallback must be a function"),(0,s.V1)(void 0===p||Array.isArray(p)&&p.every((e=>e instanceof w.A)),"customFonts must be an array of NutrientViewer.Font instances"),(0,s.V1)(void 0===p||p.every((e=>e.callback)),"All NutrientViewer.Font instances specified on customFonts must have its callback property defined"),void 0!==o&&(0,s.t6)("disableIndexedDbCaching has been deprecated and it no longer has effect. It will be removed in a later version.\nBrowsers dropped IndexedDB serialization of Wasm modules in favor of regular HTTP caching."),(f||g)&&(0,s.t6)("isSharePoint and isSalesforce configuration properties are deprecated and will be removed in the next major release. Please use the new Configuration#productId property instead. For more information, please check the migration guide."),(0,s.V1)(!(f&&g),"You cannot enable both SharePoint and Salesforce integrations at the same time. Please set either isSharePoint or isSalesforce to true, but not both."),"string"==typeof y)try{new URL(y)}catch(e){throw new s.uE("dynamicFonts must be a valid URL to a JSON file containing the data for fonts to be dynamically loaded.")}if((0,s.V1)(void 0===b||"boolean"==typeof b,"inlineWorkers must be a boolean"),A&&(0,s.V1)(void 0===A.export?.disableComboBoxArrow||"boolean"==typeof A.export?.disableComboBoxArrow,"formsConfiguration.export.disableComboBoxArrow must be a boolean"),void 0!==S){(0,s.V1)(null!==S&&"object"==typeof S&&!Array.isArray(S),'httpHeaders must be an object with string key-value pairs, e.g. { "Authorization": "Bearer token" }'),Object.entries(S).forEach((e=>{let[t,n]=e;(0,s.V1)("string"==typeof t&&t.length>0,"httpHeaders keys must be non-empty strings representing valid HTTP header names"),(0,s.V1)("string"==typeof n,`httpHeaders value for key "${t}" must be a string. Received: ${typeof n}`)}));const e=Object.keys(S).map((e=>e.toLowerCase()));["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","date","dnt","expect","host","keep-alive","origin","permissions-policy","referer","te","trailer","transfer-encoding","upgrade","via"].forEach((t=>{(0,s.V1)(!e.includes(t),`httpHeaders cannot include the "${t}" header as it is controlled by the browser. For more information, see https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_header`)}));const t=["proxy-","sec-"];e.forEach((e=>{t.forEach((t=>{(0,s.V1)(!e.startsWith(t),`httpHeaders cannot include headers starting with "${t}" (found: "${e}") as they are controlled by the browser. For more information, see https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_header`)}))})),e.includes("range")&&console.warn('The "Range" header in httpHeaders will be overridden during progressive loading (allowLinearizedLoading: true) to manage document chunks. Your custom Range header will only be used for non-linearized document loading.')}}},40927:(e,t,n)=>{n.d(t,{r:()=>s});var a=n(49568);class i extends(a.mS({id:"",attachmentId:"",description:null,fileName:null,fileSize:null,updatedAt:null})){}var o=n(46952);function s(e,t){return function(e,t){return t}(0,arguments.length>2&&void 0!==arguments[2]&&arguments[2])?new i({id:(0,o.A)(),description:t.fileDescription,attachmentId:e,fileName:t.fileName||null,fileSize:t.fileSize||null,updatedAt:t.modificationDate?new Date(t.modificationDate):null}):new i({id:e,description:t.description,attachmentId:t.fileAttachmentId,fileName:t.fileName||null,fileSize:t.fileSize||null,updatedAt:new Date(t.updatedAt)||null})}},41477:(e,t,n)=>{n.d(t,{U:()=>c,r:()=>l});var a=n(85409),i=n(49568),o=n(6085),s=n(16792),r=n(9867);function c(e){return{type:"pspdfkit/outline-element",children:e.children&&e.children.map((e=>c(e))).toJS(),title:e.title,color:e.color&&(0,s.J)(e.color),isBold:e.isBold,isItalic:e.isItalic,isExpanded:e.isExpanded,action:e.action&&(0,o.Ix)(e.action)}}function l(e){let t,n;(0,a.V1)("pspdfkit/outline-element"===e.type,"invalid outline element type."),(0,a.V1)(null==e.children||Array.isArray(e.children),"children must be an Array<OutlineElement>."),(0,a.V1)("string"==typeof e.title,"title must be a string."),(0,a.V1)(null==e.isBold||"boolean"==typeof e.isBold,"isBold must be a boolean."),(0,a.V1)(null==e.isItalic||"boolean"==typeof e.isItalic,"isItalic must be a boolean."),(0,a.V1)(null==e.isExpanded||"boolean"==typeof e.isExpanded,"isExpanded must be a boolean.");try{t=e.action&&(0,o._8)(e.action)}catch(t){(0,a.R8)(`PDF Action not supported ${JSON.stringify(e.action)})`)}try{n=e.color&&(0,s.p)(e.color)}catch(t){(0,a.R8)(`Invalid color:\n\n${e.color}`)}const c={title:e.title,color:n,isBold:!0===e.isBold,isItalic:!0===e.isItalic,isExpanded:!0===e.isExpanded,action:t,children:e.children&&e.children.length>0?(0,i.B8)(e.children.map(l)):(0,i.B8)()};return new r.LC(c)}},25888:(e,t,n)=>{n.d(t,{g:()=>i,t:()=>o});var a=n(85409);function i(e,t,n,a,i,o){let s;return e.has(n)?s=e.get(n):(s=i.toString(),t[s]=n,e.set(n,s)),{...a,[o]:s}}async function o(e){const t=new WeakMap,n={};return{processedOperations:await Promise.all(e.map((async(e,o)=>{if("importDocument"===e.type){const{document:s}=e;return(0,a.V1)(s instanceof File||s instanceof Blob,"Wrong `importDocument` operation `document` value: it must be a File or a Blob"),i(t,n,s,e,o,"document")}if("applyInstantJson"===e.type){const s=e.instantJson;(0,a.V1)("object"==typeof s&&null!==s,"Wrong `applyInstantJson` operation `instantJson` value: it must be an object");const r=JSON.stringify(s),c=new Blob([r],{type:"application/json"});return i(t,n,c,e,o,"dataFilePath")}if("applyXfdf"===e.type){const s=e.xfdf;(0,a.V1)("string"==typeof s,"Wrong `applyXfdf` operation `xfdf` value: it must be a string");const r=new Blob([s],{type:"application/vnd.adobe.xfdf"});return i(t,n,r,e,o,"dataFilePath")}return e}))),operationsDocuments:n}}},47159:(e,t,n)=>{n.d(t,{g:()=>r});var a=n(49568),i=n(85409),o=n(5293),s=n(3220);function r(e){return(0,i.V1)(Array.isArray(e),"Wrong `json` field"),(0,a.B8)(e.map((e=>((0,i.V1)("number"==typeof e.pageIndex,"Wrong `pageIndex` field"),(0,i.V1)("string"==typeof e.previewText,"Wrong `previewText` field"),(0,i.V1)(Array.isArray(e.rangeInPreview),"Wrong `rangeInPreview` field"),(0,i.V1)(Array.isArray(e.rectsOnPage),"Wrong `rectsOnPage` field"),new s.A({pageIndex:e.pageIndex,previewText:e.previewText,locationInPreview:e.rangeInPreview[0],lengthInPreview:e.rangeInPreview[1],rectsOnPage:(0,a.B8)(e.rectsOnPage).map((e=>(0,o.a)(e))),isAnnotation:!!e.isAnnotation,annotationRect:e.annotationRect?(0,o.a)(e.annotationRect):null})))).filter(Boolean))}}}]);
|