@nutrient-sdk/viewer 1.6.0 → 2.0.0-nightly.20250813

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.
Files changed (724) hide show
  1. package/ACKNOWLEDGEMENTS.md +26 -0
  2. package/dist/index.d.ts +11235 -8034
  3. package/dist/nutrient-viewer-lib/{chunk-848-beeb6337583d5464.js → chunk-848-ee390b1b8eaccb16.js} +1 -1
  4. package/dist/nutrient-viewer-lib/chunk-core-worker-b4508b429c2cfc3d.js +13 -0
  5. package/dist/nutrient-viewer-lib/{chunk-gdpicture-406d4f40f76b633e.js → chunk-gdpicture-e4d8d25f0411c534.js} +2 -2
  6. package/dist/nutrient-viewer-lib/chunk-gdpicture-worker-17babe7ca1eee5bb.js +13 -0
  7. package/dist/nutrient-viewer-lib/{chunk-lazy-sha-9b3f9043639d9682.js → chunk-lazy-sha-ccff394e2596c5ba.js} +1 -1
  8. package/dist/nutrient-viewer-lib/{chunk-locale-ar-d1099365e3a862b6.js → chunk-locale-ar-1376e442142b2e93.js} +1 -1
  9. package/dist/nutrient-viewer-lib/{chunk-locale-cs-b4df3961eefed60d.js → chunk-locale-cs-2ac99bde072a30f7.js} +1 -1
  10. package/dist/nutrient-viewer-lib/{chunk-locale-cy-6508d36346916d7c.js → chunk-locale-cy-31375ce851bb7ec1.js} +1 -1
  11. package/dist/nutrient-viewer-lib/{chunk-locale-da-9435f2f459f37d43.js → chunk-locale-da-02f1a23bab218ddb.js} +1 -1
  12. package/dist/nutrient-viewer-lib/{chunk-locale-de-5a71734c71710acb.js → chunk-locale-de-2914f59294f1f7d2.js} +1 -1
  13. package/dist/nutrient-viewer-lib/{chunk-locale-el-d9bf7dc9f253d276.js → chunk-locale-el-158b0d3a49162c20.js} +1 -1
  14. package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-4d06cbd8f911488e.js → chunk-locale-en-GB-89475b157adb63e1.js} +1 -1
  15. package/dist/nutrient-viewer-lib/{chunk-locale-es-2e61f25b8194117b.js → chunk-locale-es-9cc1f1fab8c921fe.js} +1 -1
  16. package/dist/nutrient-viewer-lib/{chunk-locale-fi-a51c3e63fef3372f.js → chunk-locale-fi-114849c848187821.js} +1 -1
  17. package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-af990ec52cc0b24d.js → chunk-locale-fr-CA-10b588c44b5fb086.js} +1 -1
  18. package/dist/nutrient-viewer-lib/{chunk-locale-fr-3b1c23dff0e86411.js → chunk-locale-fr-a445a5953b7cef14.js} +1 -1
  19. package/dist/nutrient-viewer-lib/{chunk-locale-he-384889fac817bd95.js → chunk-locale-he-aef80830040377a2.js} +1 -1
  20. package/dist/nutrient-viewer-lib/{chunk-locale-hr-974340ce7a23262d.js → chunk-locale-hr-ee5a88df09c080f7.js} +1 -1
  21. package/dist/nutrient-viewer-lib/{chunk-locale-id-80e2cf81741d0d25.js → chunk-locale-id-d84476e59b1054d2.js} +1 -1
  22. package/dist/nutrient-viewer-lib/{chunk-locale-it-3019bf20d04e0c10.js → chunk-locale-it-195e32a40029faf0.js} +1 -1
  23. package/dist/nutrient-viewer-lib/{chunk-locale-ja-e393947af6812454.js → chunk-locale-ja-f70429f48621454a.js} +1 -1
  24. package/dist/nutrient-viewer-lib/{chunk-locale-ko-799e59441e991783.js → chunk-locale-ko-1fea3578ceaad9e4.js} +1 -1
  25. package/dist/nutrient-viewer-lib/{chunk-locale-ms-ab5f18e9e66ceea0.js → chunk-locale-ms-80dbeef473ab3ad3.js} +1 -1
  26. package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-a5e4290c3b544761.js → chunk-locale-nb-NO-6820a44043809e92.js} +1 -1
  27. package/dist/nutrient-viewer-lib/{chunk-locale-nl-613e6afd6c35bc63.js → chunk-locale-nl-4ec244d0339ff425.js} +1 -1
  28. package/dist/nutrient-viewer-lib/{chunk-locale-pl-1a10e38795529d91.js → chunk-locale-pl-2db47a4e40e118b7.js} +1 -1
  29. package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-4b216bb6476a8562.js → chunk-locale-pt-PT-b2b6e66471f6296a.js} +1 -1
  30. package/dist/nutrient-viewer-lib/{chunk-locale-pt-ec196064cf59aff1.js → chunk-locale-pt-c0e124481d7ee901.js} +1 -1
  31. package/dist/nutrient-viewer-lib/{chunk-locale-ru-3e33b7960b8e17e9.js → chunk-locale-ru-d514020528317216.js} +1 -1
  32. package/dist/nutrient-viewer-lib/{chunk-locale-sk-9532eb655fdd1be3.js → chunk-locale-sk-a6e2d230d5e512e1.js} +1 -1
  33. package/dist/nutrient-viewer-lib/{chunk-locale-sl-483bf1fdbfa72097.js → chunk-locale-sl-17b5132e8a3102a0.js} +1 -1
  34. package/dist/nutrient-viewer-lib/{chunk-locale-sv-f912023dc379276d.js → chunk-locale-sv-5bfccff331ca596c.js} +1 -1
  35. package/dist/nutrient-viewer-lib/{chunk-locale-th-b32bfb6eab96c5d4.js → chunk-locale-th-7c48c182dd3078a8.js} +1 -1
  36. package/dist/nutrient-viewer-lib/{chunk-locale-tr-946fed32f2b15d9b.js → chunk-locale-tr-5981b9050817c7aa.js} +1 -1
  37. package/dist/nutrient-viewer-lib/{chunk-locale-uk-5faabe887cadc04c.js → chunk-locale-uk-9639a5f23d04940f.js} +1 -1
  38. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-0ad52a7ab2a86016.js → chunk-locale-zh-Hans-e68df00481b6677e.js} +1 -1
  39. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-05274eb792414284.js → chunk-locale-zh-Hant-232ec74fdf48d101.js} +1 -1
  40. package/dist/nutrient-viewer-lib/chunk-server-f16832397994e566.js +13 -0
  41. package/dist/nutrient-viewer-lib/{chunk-server-instant-fe7ba5291419d8c1.js → chunk-server-instant-f3a56c81b6a58bb8.js} +1 -1
  42. package/dist/nutrient-viewer-lib/{chunk-server-rest-4c2d4a3b5f36f389.js → chunk-server-rest-72fef92990bc150c.js} +1 -1
  43. package/dist/nutrient-viewer-lib/chunk-standalone-b0c72b3527523f86.js +13 -0
  44. package/dist/nutrient-viewer-lib/{chunk-standalone-server-7c7f750444d4d864.js → chunk-standalone-server-6f54270ac20c39ad.js} +2 -2
  45. package/dist/nutrient-viewer-lib/core-worker.js +2 -2
  46. package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
  47. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/aot/GdPicture.NET.14.API.wasm +0 -0
  48. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.CAD.DWG.wasm +0 -0
  49. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.14.CAD.wasm +0 -0
  50. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.Common.wasm +0 -0
  51. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.Document.wasm +0 -0
  52. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.Email.wasm +0 -0
  53. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.HTML.wasm +0 -0
  54. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/aot/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
  55. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/aot/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
  56. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.14.Imaging.Rendering.wasm +0 -0
  57. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.Imaging.wasm +0 -0
  58. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.MSOfficeBinary.wasm +0 -0
  59. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.OpenDocument.wasm +0 -0
  60. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.OpenXML.Templating.wasm +0 -0
  61. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.OpenXML.wasm +0 -0
  62. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.PDF.wasm +0 -0
  63. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.14.RTF.wasm +0 -0
  64. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.14.SVG.wasm +0 -0
  65. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.14.barcode.1d.writer.wasm +0 -0
  66. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.14.barcode.2d.writer.wasm +0 -0
  67. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/GdPicture.NET.JsonApi.wasm +0 -0
  68. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.PSPDFKit.Wasm.runtimeconfig.json +1 -1
  69. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.PSPDFKit.Wasm.wasm +0 -0
  70. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/GdPicture.NET.Wasm.wasm +0 -0
  71. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/Microsoft.CSharp.wasm +0 -0
  72. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Collections.Concurrent.wasm +0 -0
  73. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Collections.Immutable.wasm +0 -0
  74. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Collections.NonGeneric.wasm +0 -0
  75. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Collections.Specialized.wasm +0 -0
  76. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Collections.wasm +0 -0
  77. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.ComponentModel.EventBasedAsync.wasm +0 -0
  78. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.ComponentModel.Primitives.wasm +0 -0
  79. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.ComponentModel.TypeConverter.wasm +0 -0
  80. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.ComponentModel.wasm +0 -0
  81. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Console.wasm +0 -0
  82. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Data.Common.wasm +0 -0
  83. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Diagnostics.DiagnosticSource.wasm +0 -0
  84. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Diagnostics.Process.wasm +0 -0
  85. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Diagnostics.TraceSource.wasm +0 -0
  86. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Drawing.Primitives.wasm +0 -0
  87. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Drawing.wasm +0 -0
  88. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Formats.Asn1.wasm +0 -0
  89. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.IO.Compression.ZipFile.wasm +0 -0
  90. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.IO.Compression.wasm +0 -0
  91. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Linq.Expressions.wasm +0 -0
  92. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Linq.wasm +0 -0
  93. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Memory.wasm +0 -0
  94. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Net.Http.wasm +0 -0
  95. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.Mail.wasm +0 -0
  96. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.Primitives.wasm +0 -0
  97. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.Requests.wasm +0 -0
  98. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.Security.wasm +0 -0
  99. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.ServicePoint.wasm +0 -0
  100. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.Sockets.wasm +0 -0
  101. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.WebHeaderCollection.wasm +0 -0
  102. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Net.WebSockets.Client.wasm +0 -0
  103. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Net.WebSockets.wasm +0 -0
  104. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.ObjectModel.wasm +0 -0
  105. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Private.CoreLib.wasm +0 -0
  106. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Private.Uri.wasm +0 -0
  107. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Private.Xml.Linq.wasm +0 -0
  108. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Private.Xml.wasm +0 -0
  109. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  110. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Runtime.Numerics.wasm +0 -0
  111. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Runtime.Serialization.Formatters.wasm +0 -0
  112. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Runtime.Serialization.Primitives.wasm +0 -0
  113. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Security.Cryptography.wasm +0 -0
  114. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Text.Encoding.CodePages.wasm +0 -0
  115. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Text.Encodings.Web.wasm +0 -0
  116. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Text.Json.wasm +0 -0
  117. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Text.RegularExpressions.wasm +0 -0
  118. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.Threading.Tasks.Parallel.wasm +0 -0
  119. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Xml.Linq.wasm +0 -0
  120. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/System.wasm +0 -0
  121. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/aot/blazor.boot.json +114 -0
  122. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/dotnet.js +1 -1
  123. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/dotnet.js.map +1 -1
  124. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/dotnet.native.js +1 -1
  125. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/dotnet.native.wasm +0 -0
  126. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/jit → gdpicture-c24d2924/aot}/dotnet.runtime.js +1 -1
  127. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/dotnet.runtime.js.map +1 -1
  128. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/list.json +200 -200
  129. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/jit/GdPicture.NET.14.API.wasm +0 -0
  130. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.CAD.DWG.wasm +0 -0
  131. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.14.CAD.wasm +0 -0
  132. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.Common.wasm +0 -0
  133. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.Document.wasm +0 -0
  134. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.Email.wasm +0 -0
  135. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.HTML.wasm +0 -0
  136. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/jit/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
  137. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/jit/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
  138. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.14.Imaging.Rendering.wasm +0 -0
  139. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.Imaging.wasm +0 -0
  140. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.MSOfficeBinary.wasm +0 -0
  141. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.OpenDocument.wasm +0 -0
  142. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.OpenXML.Templating.wasm +0 -0
  143. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.OpenXML.wasm +0 -0
  144. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.PDF.wasm +0 -0
  145. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.14.RTF.wasm +0 -0
  146. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.14.SVG.wasm +0 -0
  147. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.14.barcode.1d.writer.wasm +0 -0
  148. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.14.barcode.2d.writer.wasm +0 -0
  149. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/GdPicture.NET.JsonApi.wasm +0 -0
  150. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.PSPDFKit.Wasm.runtimeconfig.json +1 -1
  151. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.PSPDFKit.Wasm.wasm +0 -0
  152. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/GdPicture.NET.Wasm.wasm +0 -0
  153. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/Microsoft.CSharp.wasm +0 -0
  154. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Collections.Concurrent.wasm +0 -0
  155. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Collections.Immutable.wasm +0 -0
  156. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Collections.NonGeneric.wasm +0 -0
  157. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Collections.Specialized.wasm +0 -0
  158. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Collections.wasm +0 -0
  159. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.ComponentModel.EventBasedAsync.wasm +0 -0
  160. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.ComponentModel.Primitives.wasm +0 -0
  161. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.ComponentModel.TypeConverter.wasm +0 -0
  162. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.ComponentModel.wasm +0 -0
  163. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Console.wasm +0 -0
  164. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Data.Common.wasm +0 -0
  165. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Diagnostics.DiagnosticSource.wasm +0 -0
  166. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Diagnostics.Process.wasm +0 -0
  167. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Diagnostics.TraceSource.wasm +0 -0
  168. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Drawing.Primitives.wasm +0 -0
  169. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Drawing.wasm +0 -0
  170. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Formats.Asn1.wasm +0 -0
  171. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.IO.Compression.ZipFile.wasm +0 -0
  172. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.IO.Compression.wasm +0 -0
  173. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Linq.Expressions.wasm +0 -0
  174. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Linq.wasm +0 -0
  175. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Memory.wasm +0 -0
  176. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Net.Http.wasm +0 -0
  177. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.Mail.wasm +0 -0
  178. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.Primitives.wasm +0 -0
  179. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.Requests.wasm +0 -0
  180. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.Security.wasm +0 -0
  181. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.ServicePoint.wasm +0 -0
  182. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.Sockets.wasm +0 -0
  183. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.WebHeaderCollection.wasm +0 -0
  184. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Net.WebSockets.Client.wasm +0 -0
  185. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Net.WebSockets.wasm +0 -0
  186. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.ObjectModel.wasm +0 -0
  187. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Private.CoreLib.wasm +0 -0
  188. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Private.Uri.wasm +0 -0
  189. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Private.Xml.Linq.wasm +0 -0
  190. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Private.Xml.wasm +0 -0
  191. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  192. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Runtime.Numerics.wasm +0 -0
  193. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Runtime.Serialization.Formatters.wasm +0 -0
  194. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Runtime.Serialization.Primitives.wasm +0 -0
  195. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Security.Cryptography.wasm +0 -0
  196. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Text.Encoding.CodePages.wasm +0 -0
  197. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Text.Encodings.Web.wasm +0 -0
  198. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Text.Json.wasm +0 -0
  199. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Text.RegularExpressions.wasm +0 -0
  200. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.Threading.Tasks.Parallel.wasm +0 -0
  201. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Xml.Linq.wasm +0 -0
  202. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/System.wasm +0 -0
  203. package/dist/nutrient-viewer-lib/gdpicture-c24d2924/jit/blazor.boot.json +114 -0
  204. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/dotnet.js +1 -1
  205. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/dotnet.js.map +1 -1
  206. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/dotnet.native.js +1 -1
  207. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/dotnet.native.wasm +0 -0
  208. package/dist/nutrient-viewer-lib/{gdpicture-28c37636/aot → gdpicture-c24d2924/jit}/dotnet.runtime.js +1 -1
  209. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/dotnet.runtime.js.map +1 -1
  210. package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/list.json +203 -203
  211. package/dist/nutrient-viewer-lib/gdpicture-worker.js +2 -2
  212. package/dist/nutrient-viewer-lib/{nutrient-viewer-1.6.0.css → nutrient-viewer-2.0.0-34e59de.css} +2 -2
  213. package/dist/nutrient-viewer-lib/{nutrient-viewer-fbb26e43eb4d1a49.wasm.js → nutrient-viewer-9a1f471b19899a71.wasm.js} +2 -2
  214. package/dist/nutrient-viewer-lib/{nutrient-viewer-6e45d6113b81d6ad.wasm → nutrient-viewer-f01b810754f29263.wasm} +0 -0
  215. package/dist/nutrient-viewer.js +2 -2
  216. package/package.json +3 -2
  217. package/dist/nutrient-viewer-lib/chunk-core-worker-276bbbb944886459.js +0 -13
  218. package/dist/nutrient-viewer-lib/chunk-gdpicture-worker-80c5c4d6270ff362.js +0 -13
  219. package/dist/nutrient-viewer-lib/chunk-server-8db20c3bf0227187.js +0 -13
  220. package/dist/nutrient-viewer-lib/chunk-standalone-b2c940f507e7f1e0.js +0 -13
  221. package/dist/nutrient-viewer-lib/gdpicture-28c37636/aot/GdPicture.NET.14.API.wasm +0 -0
  222. package/dist/nutrient-viewer-lib/gdpicture-28c37636/aot/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
  223. package/dist/nutrient-viewer-lib/gdpicture-28c37636/aot/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
  224. package/dist/nutrient-viewer-lib/gdpicture-28c37636/aot/blazor.boot.json +0 -114
  225. package/dist/nutrient-viewer-lib/gdpicture-28c37636/jit/GdPicture.NET.14.API.wasm +0 -0
  226. package/dist/nutrient-viewer-lib/gdpicture-28c37636/jit/GdPicture.NET.14.Imaging.Formats.Conversion.wasm +0 -0
  227. package/dist/nutrient-viewer-lib/gdpicture-28c37636/jit/GdPicture.NET.14.Imaging.Formats.wasm +0 -0
  228. package/dist/nutrient-viewer-lib/gdpicture-28c37636/jit/blazor.boot.json +0 -114
  229. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/BouncyCastle.Cryptography.wasm +0 -0
  230. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/DocumentFormat.OpenXml.Framework.wasm +0 -0
  231. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/DocumentFormat.OpenXml.wasm +0 -0
  232. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/Newtonsoft.Json.wasm +0 -0
  233. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/OpenMcdf.wasm +0 -0
  234. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/RtfPipe.wasm +0 -0
  235. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.IO.Packaging.wasm +0 -0
  236. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Net.Http.Formatting.wasm +0 -0
  237. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Security.Cryptography.Pkcs.wasm +0 -0
  238. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/System.Windows.Extensions.wasm +0 -0
  239. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/icudt_CJK.dat +0 -0
  240. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/icudt_EFIGS.dat +0 -0
  241. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/icudt_no_CJK.dat +0 -0
  242. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/initDotnet.js +0 -0
  243. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/package.json +0 -0
  244. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/protobuf-net.Core.wasm +0 -0
  245. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/protobuf-net.wasm +0 -0
  246. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resourceLoader.js +0 -0
  247. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-EUC-H.dat +0 -0
  248. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-EUC-V.dat +0 -0
  249. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-H.dat +0 -0
  250. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-RKSJ-H.dat +0 -0
  251. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-RKSJ-V.dat +0 -0
  252. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78-V.dat +0 -0
  253. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78ms-RKSJ-H.dat +0 -0
  254. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_78ms-RKSJ-V.dat +0 -0
  255. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_83pv-RKSJ-H.dat +0 -0
  256. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90ms-RKSJ-H.dat +0 -0
  257. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90ms-RKSJ-UCS2.dat +0 -0
  258. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90ms-RKSJ-V.dat +0 -0
  259. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90msp-RKSJ-H.dat +0 -0
  260. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90msp-RKSJ-V.dat +0 -0
  261. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90pv-RKSJ-H.dat +0 -0
  262. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90pv-RKSJ-UCS2.dat +0 -0
  263. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90pv-RKSJ-UCS2C.dat +0 -0
  264. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_90pv-RKSJ-V.dat +0 -0
  265. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Add-H.dat +0 -0
  266. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Add-RKSJ-H.dat +0 -0
  267. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Add-RKSJ-V.dat +0 -0
  268. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Add-V.dat +0 -0
  269. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-0.dat +0 -0
  270. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-1.dat +0 -0
  271. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-2.dat +0 -0
  272. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-3.dat +0 -0
  273. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-4.dat +0 -0
  274. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-5.dat +0 -0
  275. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-6.dat +0 -0
  276. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-7.dat +0 -0
  277. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-B5pc.dat +0 -0
  278. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-ETenms-B5.dat +0 -0
  279. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-H-CID.dat +0 -0
  280. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-H-Host.dat +0 -0
  281. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-H-Mac.dat +0 -0
  282. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-CNS1-UCS2.dat +0 -0
  283. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-0.dat +0 -0
  284. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-1.dat +0 -0
  285. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-2.dat +0 -0
  286. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-3.dat +0 -0
  287. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-4.dat +0 -0
  288. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-5.dat +0 -0
  289. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-GB1-UCS2.dat +0 -0
  290. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-0.dat +0 -0
  291. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-1.dat +0 -0
  292. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-2.dat +0 -0
  293. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-3.dat +0 -0
  294. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-4.dat +0 -0
  295. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-5.dat +0 -0
  296. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-6.dat +0 -0
  297. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-90ms-RKSJ.dat +0 -0
  298. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-90pv-RKSJ.dat +0 -0
  299. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-H-CID.dat +0 -0
  300. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-H-Host.dat +0 -0
  301. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-H-Mac.dat +0 -0
  302. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan1-UCS2.dat +0 -0
  303. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Japan2-0.dat +0 -0
  304. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-0.dat +0 -0
  305. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-1.dat +0 -0
  306. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-2.dat +0 -0
  307. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-H-CID.dat +0 -0
  308. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-H-Host.dat +0 -0
  309. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-H-Mac.dat +0 -0
  310. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-KSCms-UHC.dat +0 -0
  311. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-KSCpc-EUC.dat +0 -0
  312. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Adobe-Korea1-UCS2.dat +0 -0
  313. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5-H.dat +0 -0
  314. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5-V.dat +0 -0
  315. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5pc-H.dat +0 -0
  316. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5pc-UCS2.dat +0 -0
  317. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5pc-UCS2C.dat +0 -0
  318. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_B5pc-V.dat +0 -0
  319. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS-EUC-H.dat +0 -0
  320. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS-EUC-V.dat +0 -0
  321. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS1-H.dat +0 -0
  322. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS1-V.dat +0 -0
  323. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS2-H.dat +0 -0
  324. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CNS2-V.dat +0 -0
  325. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_CourierStdToNew.dat +0 -0
  326. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_DefaultCMYK.icc +0 -0
  327. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_DroidSansFallbackFull.ttf +0 -0
  328. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_DroidSansMono.ttf +0 -0
  329. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETHK-B5-H.dat +0 -0
  330. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETHK-B5-V.dat +0 -0
  331. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETen-B5-H.dat +0 -0
  332. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETen-B5-UCS2.dat +0 -0
  333. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETen-B5-V.dat +0 -0
  334. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETenms-B5-H.dat +0 -0
  335. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ETenms-B5-V.dat +0 -0
  336. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_EUC-H.dat +0 -0
  337. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_EUC-V.dat +0 -0
  338. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Ext-H.dat +0 -0
  339. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Ext-RKSJ-H.dat +0 -0
  340. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Ext-RKSJ-V.dat +0 -0
  341. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Ext-V.dat +0 -0
  342. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GB-EUC-H.dat +0 -0
  343. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GB-EUC-V.dat +0 -0
  344. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GB-H.dat +0 -0
  345. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GB-V.dat +0 -0
  346. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBK-EUC-H.dat +0 -0
  347. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBK-EUC-UCS2.dat +0 -0
  348. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBK-EUC-V.dat +0 -0
  349. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBK2K-H.dat +0 -0
  350. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBK2K-V.dat +0 -0
  351. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBKp-EUC-H.dat +0 -0
  352. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBKp-EUC-V.dat +0 -0
  353. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBT-EUC-H.dat +0 -0
  354. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBT-EUC-V.dat +0 -0
  355. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBT-H.dat +0 -0
  356. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBT-V.dat +0 -0
  357. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBTpc-EUC-H.dat +0 -0
  358. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBTpc-EUC-V.dat +0 -0
  359. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBpc-EUC-H.dat +0 -0
  360. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBpc-EUC-UCS2C.dat +0 -0
  361. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GBpc-EUC-V.dat +0 -0
  362. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_GdPictureOCRFont.ttf +0 -0
  363. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_H.dat +0 -0
  364. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKdla-B5-H.dat +0 -0
  365. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKdla-B5-V.dat +0 -0
  366. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKdlb-B5-H.dat +0 -0
  367. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKdlb-B5-V.dat +0 -0
  368. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKgccs-B5-H.dat +0 -0
  369. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKgccs-B5-V.dat +0 -0
  370. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKm314-B5-H.dat +0 -0
  371. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKm314-B5-V.dat +0 -0
  372. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKm471-B5-H.dat +0 -0
  373. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKm471-B5-V.dat +0 -0
  374. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKscs-B5-H.dat +0 -0
  375. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_HKscs-B5-V.dat +0 -0
  376. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hankaku.dat +0 -0
  377. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hiragana.dat +0 -0
  378. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hojo-EUC-H.dat +0 -0
  379. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hojo-EUC-V.dat +0 -0
  380. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hojo-H.dat +0 -0
  381. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Hojo-V.dat +0 -0
  382. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Identity-H.dat +0 -0
  383. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Identity-V.dat +0 -0
  384. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-EUC-H.dat +0 -0
  385. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-EUC-V.dat +0 -0
  386. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-H.dat +0 -0
  387. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-Johab-H.dat +0 -0
  388. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-Johab-V.dat +0 -0
  389. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSC-V.dat +0 -0
  390. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCms-UHC-H.dat +0 -0
  391. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCms-UHC-HW-H.dat +0 -0
  392. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCms-UHC-HW-V.dat +0 -0
  393. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCms-UHC-UCS2.dat +0 -0
  394. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCms-UHC-V.dat +0 -0
  395. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCpc-EUC-H.dat +0 -0
  396. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCpc-EUC-UCS2C.dat +0 -0
  397. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_KSCpc-EUC-V.dat +0 -0
  398. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Katakana.dat +0 -0
  399. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_NWP-H.dat +0 -0
  400. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_NWP-V.dat +0 -0
  401. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_OutputIntent.icc +0 -0
  402. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_PDFA-XMP.4.2.3 +0 -0
  403. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_RKSJ-H.dat +0 -0
  404. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_RKSJ-V.dat +0 -0
  405. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Roman.dat +0 -0
  406. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Symbol.ttf +0 -0
  407. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-90ms-RKSJ.dat +0 -0
  408. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-90pv-RKSJ.dat +0 -0
  409. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-B5pc.dat +0 -0
  410. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-ETen-B5.dat +0 -0
  411. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-GBK-EUC.dat +0 -0
  412. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-GBpc-EUC.dat +0 -0
  413. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-KSCms-UHC.dat +0 -0
  414. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UCS2-KSCpc-EUC.dat +0 -0
  415. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UCS2-H.dat +0 -0
  416. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UCS2-V.dat +0 -0
  417. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF16-H.dat +0 -0
  418. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF16-V.dat +0 -0
  419. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF32-H.dat +0 -0
  420. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF32-V.dat +0 -0
  421. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF8-H.dat +0 -0
  422. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniCNS-UTF8-V.dat +0 -0
  423. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UCS2-H.dat +0 -0
  424. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UCS2-V.dat +0 -0
  425. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF16-H.dat +0 -0
  426. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF16-V.dat +0 -0
  427. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF32-H.dat +0 -0
  428. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF32-V.dat +0 -0
  429. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF8-H.dat +0 -0
  430. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniGB-UTF8-V.dat +0 -0
  431. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UCS2-H.dat +0 -0
  432. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UCS2-V.dat +0 -0
  433. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF16-H.dat +0 -0
  434. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF16-V.dat +0 -0
  435. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF32-H.dat +0 -0
  436. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF32-V.dat +0 -0
  437. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF8-H.dat +0 -0
  438. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniHojo-UTF8-V.dat +0 -0
  439. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UCS2-H.dat +0 -0
  440. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UCS2-HW-H.dat +0 -0
  441. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UCS2-HW-V.dat +0 -0
  442. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UCS2-V.dat +0 -0
  443. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF16-H.dat +0 -0
  444. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF16-V.dat +0 -0
  445. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF32-H.dat +0 -0
  446. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF32-V.dat +0 -0
  447. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF8-H.dat +0 -0
  448. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS-UTF8-V.dat +0 -0
  449. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF16-H.dat +0 -0
  450. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF16-V.dat +0 -0
  451. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF32-H.dat +0 -0
  452. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF32-V.dat +0 -0
  453. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF8-H.dat +0 -0
  454. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJIS2004-UTF8-V.dat +0 -0
  455. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISPro-UCS2-HW-V.dat +0 -0
  456. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISPro-UCS2-V.dat +0 -0
  457. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISPro-UTF8-V.dat +0 -0
  458. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISX0213-UTF32-H.dat +0 -0
  459. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISX0213-UTF32-V.dat +0 -0
  460. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISX02132004-UTF32-H.dat +0 -0
  461. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniJISX02132004-UTF32-V.dat +0 -0
  462. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UCS2-H.dat +0 -0
  463. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UCS2-V.dat +0 -0
  464. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF16-H.dat +0 -0
  465. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF16-V.dat +0 -0
  466. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF32-H.dat +0 -0
  467. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF32-V.dat +0 -0
  468. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF8-H.dat +0 -0
  469. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_UniKS-UTF8-V.dat +0 -0
  470. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_V.dat +0 -0
  471. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_WP-Symbol.dat +0 -0
  472. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_Wingding.ttf +0 -0
  473. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_ZapfDingbats.ttf +0 -0
  474. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_fontsubst.dat +0 -0
  475. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/resources/_times.ttf +0 -0
  476. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/aot/supportFiles/0_runtimeconfig.bin +0 -0
  477. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/BouncyCastle.Cryptography.wasm +0 -0
  478. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/DocumentFormat.OpenXml.Framework.wasm +0 -0
  479. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/DocumentFormat.OpenXml.wasm +0 -0
  480. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/Newtonsoft.Json.wasm +0 -0
  481. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/OpenMcdf.wasm +0 -0
  482. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/RtfPipe.wasm +0 -0
  483. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.IO.Packaging.wasm +0 -0
  484. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Net.Http.Formatting.wasm +0 -0
  485. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Security.Cryptography.Pkcs.wasm +0 -0
  486. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/System.Windows.Extensions.wasm +0 -0
  487. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/icudt_CJK.dat +0 -0
  488. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/icudt_EFIGS.dat +0 -0
  489. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/icudt_no_CJK.dat +0 -0
  490. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/initDotnet.js +0 -0
  491. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/package.json +0 -0
  492. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/protobuf-net.Core.wasm +0 -0
  493. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/protobuf-net.wasm +0 -0
  494. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resourceLoader.js +0 -0
  495. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-EUC-H.dat +0 -0
  496. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-EUC-V.dat +0 -0
  497. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-H.dat +0 -0
  498. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-RKSJ-H.dat +0 -0
  499. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-RKSJ-V.dat +0 -0
  500. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78-V.dat +0 -0
  501. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78ms-RKSJ-H.dat +0 -0
  502. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_78ms-RKSJ-V.dat +0 -0
  503. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_83pv-RKSJ-H.dat +0 -0
  504. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90ms-RKSJ-H.dat +0 -0
  505. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90ms-RKSJ-UCS2.dat +0 -0
  506. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90ms-RKSJ-V.dat +0 -0
  507. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90msp-RKSJ-H.dat +0 -0
  508. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90msp-RKSJ-V.dat +0 -0
  509. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90pv-RKSJ-H.dat +0 -0
  510. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90pv-RKSJ-UCS2.dat +0 -0
  511. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90pv-RKSJ-UCS2C.dat +0 -0
  512. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_90pv-RKSJ-V.dat +0 -0
  513. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Add-H.dat +0 -0
  514. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Add-RKSJ-H.dat +0 -0
  515. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Add-RKSJ-V.dat +0 -0
  516. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Add-V.dat +0 -0
  517. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-0.dat +0 -0
  518. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-1.dat +0 -0
  519. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-2.dat +0 -0
  520. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-3.dat +0 -0
  521. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-4.dat +0 -0
  522. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-5.dat +0 -0
  523. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-6.dat +0 -0
  524. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-7.dat +0 -0
  525. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-B5pc.dat +0 -0
  526. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-ETenms-B5.dat +0 -0
  527. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-H-CID.dat +0 -0
  528. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-H-Host.dat +0 -0
  529. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-H-Mac.dat +0 -0
  530. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-CNS1-UCS2.dat +0 -0
  531. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-0.dat +0 -0
  532. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-1.dat +0 -0
  533. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-2.dat +0 -0
  534. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-3.dat +0 -0
  535. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-4.dat +0 -0
  536. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-5.dat +0 -0
  537. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-GB1-UCS2.dat +0 -0
  538. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-0.dat +0 -0
  539. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-1.dat +0 -0
  540. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-2.dat +0 -0
  541. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-3.dat +0 -0
  542. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-4.dat +0 -0
  543. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-5.dat +0 -0
  544. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-6.dat +0 -0
  545. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-90ms-RKSJ.dat +0 -0
  546. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-90pv-RKSJ.dat +0 -0
  547. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-H-CID.dat +0 -0
  548. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-H-Host.dat +0 -0
  549. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-H-Mac.dat +0 -0
  550. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan1-UCS2.dat +0 -0
  551. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Japan2-0.dat +0 -0
  552. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-0.dat +0 -0
  553. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-1.dat +0 -0
  554. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-2.dat +0 -0
  555. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-H-CID.dat +0 -0
  556. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-H-Host.dat +0 -0
  557. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-H-Mac.dat +0 -0
  558. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-KSCms-UHC.dat +0 -0
  559. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-KSCpc-EUC.dat +0 -0
  560. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Adobe-Korea1-UCS2.dat +0 -0
  561. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5-H.dat +0 -0
  562. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5-V.dat +0 -0
  563. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5pc-H.dat +0 -0
  564. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5pc-UCS2.dat +0 -0
  565. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5pc-UCS2C.dat +0 -0
  566. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_B5pc-V.dat +0 -0
  567. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS-EUC-H.dat +0 -0
  568. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS-EUC-V.dat +0 -0
  569. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS1-H.dat +0 -0
  570. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS1-V.dat +0 -0
  571. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS2-H.dat +0 -0
  572. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CNS2-V.dat +0 -0
  573. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_CourierStdToNew.dat +0 -0
  574. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_DefaultCMYK.icc +0 -0
  575. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_DroidSansFallbackFull.ttf +0 -0
  576. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_DroidSansMono.ttf +0 -0
  577. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETHK-B5-H.dat +0 -0
  578. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETHK-B5-V.dat +0 -0
  579. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETen-B5-H.dat +0 -0
  580. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETen-B5-UCS2.dat +0 -0
  581. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETen-B5-V.dat +0 -0
  582. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETenms-B5-H.dat +0 -0
  583. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ETenms-B5-V.dat +0 -0
  584. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_EUC-H.dat +0 -0
  585. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_EUC-V.dat +0 -0
  586. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Ext-H.dat +0 -0
  587. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Ext-RKSJ-H.dat +0 -0
  588. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Ext-RKSJ-V.dat +0 -0
  589. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Ext-V.dat +0 -0
  590. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GB-EUC-H.dat +0 -0
  591. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GB-EUC-V.dat +0 -0
  592. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GB-H.dat +0 -0
  593. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GB-V.dat +0 -0
  594. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBK-EUC-H.dat +0 -0
  595. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBK-EUC-UCS2.dat +0 -0
  596. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBK-EUC-V.dat +0 -0
  597. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBK2K-H.dat +0 -0
  598. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBK2K-V.dat +0 -0
  599. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBKp-EUC-H.dat +0 -0
  600. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBKp-EUC-V.dat +0 -0
  601. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBT-EUC-H.dat +0 -0
  602. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBT-EUC-V.dat +0 -0
  603. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBT-H.dat +0 -0
  604. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBT-V.dat +0 -0
  605. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBTpc-EUC-H.dat +0 -0
  606. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBTpc-EUC-V.dat +0 -0
  607. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBpc-EUC-H.dat +0 -0
  608. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBpc-EUC-UCS2C.dat +0 -0
  609. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GBpc-EUC-V.dat +0 -0
  610. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_GdPictureOCRFont.ttf +0 -0
  611. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_H.dat +0 -0
  612. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKdla-B5-H.dat +0 -0
  613. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKdla-B5-V.dat +0 -0
  614. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKdlb-B5-H.dat +0 -0
  615. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKdlb-B5-V.dat +0 -0
  616. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKgccs-B5-H.dat +0 -0
  617. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKgccs-B5-V.dat +0 -0
  618. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKm314-B5-H.dat +0 -0
  619. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKm314-B5-V.dat +0 -0
  620. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKm471-B5-H.dat +0 -0
  621. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKm471-B5-V.dat +0 -0
  622. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKscs-B5-H.dat +0 -0
  623. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_HKscs-B5-V.dat +0 -0
  624. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hankaku.dat +0 -0
  625. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hiragana.dat +0 -0
  626. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hojo-EUC-H.dat +0 -0
  627. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hojo-EUC-V.dat +0 -0
  628. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hojo-H.dat +0 -0
  629. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Hojo-V.dat +0 -0
  630. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Identity-H.dat +0 -0
  631. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Identity-V.dat +0 -0
  632. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-EUC-H.dat +0 -0
  633. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-EUC-V.dat +0 -0
  634. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-H.dat +0 -0
  635. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-Johab-H.dat +0 -0
  636. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-Johab-V.dat +0 -0
  637. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSC-V.dat +0 -0
  638. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCms-UHC-H.dat +0 -0
  639. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCms-UHC-HW-H.dat +0 -0
  640. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCms-UHC-HW-V.dat +0 -0
  641. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCms-UHC-UCS2.dat +0 -0
  642. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCms-UHC-V.dat +0 -0
  643. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCpc-EUC-H.dat +0 -0
  644. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCpc-EUC-UCS2C.dat +0 -0
  645. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_KSCpc-EUC-V.dat +0 -0
  646. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Katakana.dat +0 -0
  647. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_NWP-H.dat +0 -0
  648. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_NWP-V.dat +0 -0
  649. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_OutputIntent.icc +0 -0
  650. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_PDFA-XMP.4.2.3 +0 -0
  651. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_RKSJ-H.dat +0 -0
  652. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_RKSJ-V.dat +0 -0
  653. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Roman.dat +0 -0
  654. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Symbol.ttf +0 -0
  655. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-90ms-RKSJ.dat +0 -0
  656. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-90pv-RKSJ.dat +0 -0
  657. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-B5pc.dat +0 -0
  658. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-ETen-B5.dat +0 -0
  659. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-GBK-EUC.dat +0 -0
  660. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-GBpc-EUC.dat +0 -0
  661. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-KSCms-UHC.dat +0 -0
  662. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UCS2-KSCpc-EUC.dat +0 -0
  663. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UCS2-H.dat +0 -0
  664. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UCS2-V.dat +0 -0
  665. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF16-H.dat +0 -0
  666. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF16-V.dat +0 -0
  667. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF32-H.dat +0 -0
  668. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF32-V.dat +0 -0
  669. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF8-H.dat +0 -0
  670. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniCNS-UTF8-V.dat +0 -0
  671. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UCS2-H.dat +0 -0
  672. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UCS2-V.dat +0 -0
  673. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF16-H.dat +0 -0
  674. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF16-V.dat +0 -0
  675. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF32-H.dat +0 -0
  676. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF32-V.dat +0 -0
  677. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF8-H.dat +0 -0
  678. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniGB-UTF8-V.dat +0 -0
  679. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UCS2-H.dat +0 -0
  680. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UCS2-V.dat +0 -0
  681. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF16-H.dat +0 -0
  682. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF16-V.dat +0 -0
  683. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF32-H.dat +0 -0
  684. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF32-V.dat +0 -0
  685. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF8-H.dat +0 -0
  686. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniHojo-UTF8-V.dat +0 -0
  687. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UCS2-H.dat +0 -0
  688. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UCS2-HW-H.dat +0 -0
  689. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UCS2-HW-V.dat +0 -0
  690. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UCS2-V.dat +0 -0
  691. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF16-H.dat +0 -0
  692. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF16-V.dat +0 -0
  693. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF32-H.dat +0 -0
  694. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF32-V.dat +0 -0
  695. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF8-H.dat +0 -0
  696. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS-UTF8-V.dat +0 -0
  697. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF16-H.dat +0 -0
  698. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF16-V.dat +0 -0
  699. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF32-H.dat +0 -0
  700. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF32-V.dat +0 -0
  701. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF8-H.dat +0 -0
  702. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJIS2004-UTF8-V.dat +0 -0
  703. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISPro-UCS2-HW-V.dat +0 -0
  704. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISPro-UCS2-V.dat +0 -0
  705. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISPro-UTF8-V.dat +0 -0
  706. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISX0213-UTF32-H.dat +0 -0
  707. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISX0213-UTF32-V.dat +0 -0
  708. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISX02132004-UTF32-H.dat +0 -0
  709. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniJISX02132004-UTF32-V.dat +0 -0
  710. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UCS2-H.dat +0 -0
  711. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UCS2-V.dat +0 -0
  712. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF16-H.dat +0 -0
  713. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF16-V.dat +0 -0
  714. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF32-H.dat +0 -0
  715. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF32-V.dat +0 -0
  716. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF8-H.dat +0 -0
  717. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_UniKS-UTF8-V.dat +0 -0
  718. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_V.dat +0 -0
  719. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_WP-Symbol.dat +0 -0
  720. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_Wingding.ttf +0 -0
  721. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_ZapfDingbats.ttf +0 -0
  722. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_fontsubst.dat +0 -0
  723. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/resources/_times.ttf +0 -0
  724. /package/dist/nutrient-viewer-lib/{gdpicture-28c37636 → gdpicture-c24d2924}/jit/supportFiles/0_runtimeconfig.bin +0 -0
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Nutrient Web SDK 2.0.0-34e59de (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
+ (globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[750],{1033:(e,t,r)=>{"use strict";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),$=r(15168),y=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)()),$.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 y.A(o,(()=>URL.revokeObjectURL(s))))}).bind(this),r.send(this.payload)}))}}var P=r(37361),A=r(89574),L=r(41477),b=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);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&&(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),$=e.baseUrl||(0,R.$_)(window.document),y=e.baseCoreUrl||$;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:y,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:$,documentEngineVersion:y,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)(y));if(this.documentEngineVersion=I,!this.satisfiesDocumentEngineVersion(">=1.5.6"))throw new i.uE(`Document Engine version ${y} 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:$,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=2.0.0-34e59de, client-git=34e59deb44"},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 b.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(L.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)=>{"use strict";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=>y(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 $=[...c.values()];return i.set(t,$),$}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>$(r,t)&&e.set.some((e=>$(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,$=(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},y=(e,t)=>(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=b(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=>L(e,t))).join(" ")),L=(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}))},b=(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,safeSrc:a,t:l}=r(99718),c=r(98587),{compareIdentifiers:h}=r(61123);class u{constructor(e,t){if(t=c(t),e instanceof u){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[l.LOOSE]:o[l.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 u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(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 h(r,s)}while(++t)}compareBuild(e){e instanceof u||(e=new u(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 h(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=new RegExp(`^${this.options.loose?a[l.PRERELEASELOOSE]:a[l.PRERELEASE]}$`),r=`-${t}`.match(e);if(!r||r[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===h(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=u},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),$=r(40909),y=r(43927),R=r(74277),v=r(35580),S=r(7059),I=r(94641),P=r(13999),A=r(54089),L=r(25200),b=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:$,sort:y,rsort:R,gt:v,lt:S,eq:I,neq:P,gte:A,lte:L,cmp:b,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)=>{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.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),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,$=!(!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($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!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)&&(!$&&!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}}}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Nutrient Web SDK 1.6.0 (https://www.nutrient.io/sdk/web)
2
+ * Nutrient Web SDK 2.0.0-34e59de (https://www.nutrient.io/sdk/web)
3
3
  *
4
4
  * Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Nutrient Web SDK 1.6.0 (https://www.nutrient.io/sdk/web)
2
+ * Nutrient Web SDK 2.0.0-34e59de (https://www.nutrient.io/sdk/web)
3
3
  *
4
4
  * Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
5
5
  *
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Nutrient Web SDK 2.0.0-34e59de (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([[362],{63993:(e,t,s)=>{s.r(t),s.d(t,{corePool:()=>l.mG,customFontsPromiseRef:()=>_,default:()=>b,loadModule:()=>D,normalizeCoreOptions:()=>l.DO,validateStandaloneConfiguration:()=>l.mn});var n=s(49568),a=s(85409),i=s(55994),o=s(41204),r=s(85410),l=s(20873),u=s(37506),c=s(85553),d=s(89055),m=s(68322),h=s(23227),f=s(84318),p=s(33075);async function y(e,t){const s=await fetch(e,{credentials:"same-origin"}).finally((()=>{t?.()})),n=await s.arrayBuffer();return{isFullyAvailable:!0,fullDocument:n,contentType:s.headers?.get("Content-Type")||(0,p.oj)(n)}}async function g(e,t,s,n){if(e instanceof ArrayBuffer)return{isFullyAvailable:!0,fullDocument:e,contentType:(0,p.oj)(e)};(0,a.V1)("string"==typeof e,"Document is not a string");let o=!1;const{linearizedDocument:r,serverSupportsRangeRequests:l}=await(async()=>{if(s&&function(e){if(e.startsWith("/"))return!0;try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}(e)){const s=await t.openLinearizedDocument(i.EA);return(0,a.V1)(s,"Linearized document is not available"),{linearizedDocument:s,serverSupportsRangeRequests:await s.initialize(e)}}return{linearizedDocument:null,serverSupportsRangeRequests:!1}})();try{if(!l)return o=!0,y(e,n);(0,a.V1)(r,"Linearized document is not available"),r.startDownload();if(!await r.waitUntilIsLinearizedIsKnown())return r.destroy(),o=!0,y(e,n);n?.();const t=await r.waitUntilDocumentInfoAvailable();return t?(n?.(),{isFullyAvailable:!1,documentResponse:t,contentType:"application/pdf"}):(r.destroy(),o=!0,y(e,n))}catch(t){if(r?.destroy(),o)throw t;return y(e,n)}}let w;class b extends l.Ay{constructor(e){const t=e.baseUrl||(0,r.$_)(window.document),s=e.baseCoreUrl||t,n=e.baseProcessorEngineUrl||t,i={...e,baseUrl:t,baseCoreUrl:s,baseProcessorEngineUrl:n};if("string"!=typeof i.baseUrl)throw new a.uE("`baseUrl` is mandatory and must be a valid URL, e.g. `https://example.com/`");if("string"!=typeof i.document&&!(i.document instanceof ArrayBuffer))throw new a.uE("document must be either an URL to a supported document type (PDF and images), e.g. `https://example.com/document.pdf`, or an `ArrayBuffer`");if(w&&w!==i.licenseKey)throw new a.uE("Trying to re-use instance with a different licenseKey.\nUnfortunately we only allow one licenseKey per instance.\nPlease contact support for further assistance.");if("string"==typeof i.licenseKey&&i.licenseKey.startsWith("TRIAL-"))throw new a.uE("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.");super(i),this.destroyed=!1,this.activeConfiguration=e}async load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=.2;e.progressCallback&&e.progressCallback("loading",t),this._isPDFJavaScriptEnabled=e.isPDFJavaScriptEnabled,"string"==typeof this._state.document&&(0,p.XC)(this._state.baseUrl,this._state.document,this._state.productId);const s=await D(this.client,this._state).finally((()=>{t+=.3,e.progressCallback&&e.progressCallback("loading",t)})),i=g(this._state.document,this.corePDFDocument,this._state.allowLinearizedLoading,(()=>{t+=.3,e.progressCallback&&e.progressCallback("loading",t)}));(0,a.V1)(s);const{features:r,signatureFeatureAvailability:l,capabilities:u}=s;if(this._state.productId===m.v.SharePoint&&"string"==typeof this._state.document&&Array.isArray(s.afu)){const e=new URL(this._state.document,this._state.baseUrl);if(!s.afu.some((t=>e.hostname.match(t))))throw new a.uE(`The document origin ${e.hostname} is not authorized.`)}const f=l===c.g.ELECTRONIC_SIGNATURES&&(0,d.UX)(r)&&this._state.forceLegacySignaturesFeature?c.g.LEGACY_SIGNATURES:l;this._state=this._state.set("features",(0,n.B8)(r)).set("signatureFeatureAvailability",f),w=this._state.licenseKey;const y=await i;let b=null;if(y.isFullyAvailable){let t=y.fullDocument.slice(0),s=null;if((0,p.C5)(y.contentType))try{this.destroyed?(t=null,b=await new Promise((()=>{}))):(b=await this.client.openDocument(y.fullDocument,{password:e.password,initialPageIndex:"number"==typeof e.initialPageIndex?e.initialPageIndex:0,formsConfiguration:this._formsConfiguration}),t=null)}catch(e){"INVALID_PASSWORD"===e.message&&this._state.document instanceof ArrayBuffer&&(this._state=this._state.set("document",e.callArgs[0])),"IMAGE_DOCUMENTS_NOT_LICENSED"===e.message&&(e.message="The image documents feature is not enabled for your license key. Please contact support or sales to purchase the UI module for your product."),s=e}else u.includes("GdPictureWASM")||(s=new a.uE("File not in PDF format or corrupted."));if(u.includes("GdPictureWASM")&&(s instanceof a.uE&&s.message.includes("File not in PDF format or corrupted.")||!(0,p.C5)(y.contentType))){(0,a.V1)(t);let n,i=(0,h.jU)();try{i||(i=(0,h.NY)({baseUrl:this._state.baseProcessorEngineUrl,mainThreadOrigin:this._state.appName||(0,o.D5)()||window.location.origin,licenseKey:this._state.licenseKey||void 0,customFonts:this._state.customFonts||void 0,dynamicFonts:this._state.dynamicFonts||void 0,fontSubstitutions:this._state.fontSubstitutions,processorEngine:this._state.processorEngine}),(0,h.Pm)(i)),n=await i,(0,a.V1)(n);const s=await n.toPdf(t,null,e.officeConversionSettings);b=await this.client.openDocument(s,{password:e.password,initialPageIndex:"number"==typeof e.initialPageIndex?e.initialPageIndex:0,formsConfiguration:this._formsConfiguration})}catch(e){throw"INVALID_PASSWORD"===e.message&&this._state.document instanceof ArrayBuffer&&(this._state=this._state.set("document",s.callArgs[0])),"IMAGE_DOCUMENTS_NOT_LICENSED"===e.message&&(e.message="The image documents feature is not enabled for your license key. Please contact support or sales to purchase the UI module for your product."),e}finally{t=null,n?.destroy(),(0,h.Pm)(null)}}else if(s)throw s;(0,a.V1)(b),await this.afterDocumentLoaded(b)}else b=y.documentResponse;return this._state=this._state.set("documentResponse",b),{features:this._state.features,signatureFeatureAvailability:this._state.signatureFeatureAvailability,hasPassword:!!e.password,password:e.password,allowedTileScales:"all",evaluation:s.evaluation,linearizedLoading:!y.isFullyAvailable,documentResponse:b}}destroy(){this.destroyed=!0,super.destroy()}getCustomFontsPromise(){return _}async afterDocumentLoaded(e){if(this._isPDFJavaScriptEnabled&&(this._initialChanges=await this.client.enablePDFJavaScriptSupport()),this._XFDF&&await this.client.importXFDF(this._XFDF.source,this._XFDF.keepCurrentAnnotations,this._XFDF.ignorePageRotation,this._XFDF.richTextEnabled),this._instantJSON&&this._instantJSON.pdfId&&e.ID.permanent){const t=this._instantJSON.pdfId,s=e.ID;if(t.permanent!==s.permanent)throw new a.uE("Could not instantiate from Instant JSON: Permanent PDF ID mismatch.\nPlease use the same PDF document that was used to create this Instant JSON.\nFor more information, please visit: https://www.nutrient.io/guides/web/importing-exporting/instant-json/");if(t.changing!==s.changing)throw new a.uE("Could not instantiate from Instant JSON: Changing PDF ID mismatch.\nPlease use the same revision of this PDF document that was used to create this Instant JSON.\nFor more information, please visit: https://www.nutrient.io/guides/web/importing-exporting/instant-json/")}if(this._trustedCAsCallback)try{const e=await this._trustedCAsCallback();if(!Array.isArray(e))throw new a.uE("Certificates response must be an array");if(e.some((e=>!(e instanceof ArrayBuffer)&&"string"!=typeof e)))throw new a.uE("All certificates must be passed as ArrayBuffer (DER) or string (PEM)");await this.client.loadCertificates(e.map(u.PI))}catch(e){throw new a.uE(`Could not retrieve certificates for digital signatures validation: ${e.message}.`)}}async waitUntilFullyLoaded(e){return this.corePDFDocument.linearizedDocument.waitUntilDownloaded().then((async()=>{await this.corePDFDocument.normallyOpenLinearizedDocument(this,{password:e,initialPageIndex:0,formsConfiguration:this._formsConfiguration}),await this.afterDocumentLoaded(this._state.documentResponse)}))}async getDocumentBytes(){if(this._state.document instanceof ArrayBuffer)return this._state.document;if("string"==typeof this._state.document){const e=await fetch(this._state.document);if(!e.ok)throw new a.uE(`Failed to fetch document: ${e.statusText}`);return e.arrayBuffer()}throw new a.uE("Document bytes are not available")}}const _={current:void 0};async function D(e,t){_.current=_.current||(t.customFonts?(0,f.eY)(t.customFonts):void 0);const s=(0,r.f)(t.appName);return e.loadNativeModule(t.baseCoreUrl,{mainThreadOrigin:s,disableWebAssemblyStreaming:t.disableWebAssemblyStreaming,enableAutomaticLinkExtraction:t.enableAutomaticLinkExtraction,overrideMemoryLimit:t.overrideMemoryLimit,workerSpawnerFn:()=>(0,i.pj)(t.inlineWorkers)}).then((async()=>e.load(t.baseCoreUrl,t.licenseKey,{mainThreadOrigin:s,..._.current?{customFonts:await _.current}:null,dynamicFonts:t.dynamicFonts,productId:t.productId,featureFlags:(()=>{const e=[];return t.enableCoreUnifiedComments&&e.push("UnifiedComments"),t.enableCorePreservePDFAccessibility&&e.push("PreservePDFAccessibility"),e.length>0?e:void 0})()})))}}}]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Nutrient Web SDK 1.6.0 (https://www.nutrient.io/sdk/web)
2
+ * Nutrient Web SDK 2.0.0-34e59de (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([[42],{96419:(e,t,n)=>{n.d(t,{N:()=>y});var a=n(7891),i=n(59501),s=n(85409),o=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,s.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,s.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,s,o){let c;o&&(c={annotations:o.annotations.filter(r.mH).map(d.eq).toJS().map((e=>({content:e}))),formFieldValues:o.formFieldValues.map(d.cA).toJS(),formFields:o.formFields.map(d.T7).toJS(),signatures:o.signatures||[],attachments:o.attachments});const u=this.rawDocument.renderer.renderTile(e,t,n,{renderForPrinting:i,renderText:s,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}}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:s}=n;const o=(0,c.l1)(s,e,t.length,a,i);return a+=o.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.Y_)(n).size}),0),i+=o.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.M3)(n).size}),0),t.concat(o)}),[]),(0,o.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),s=n(85409),o=n(76117),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,s.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:s}=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:s}),this._cacheableRenderedAnnotationSetExpire(e)}))}getAnnotationFormFieldAndValue(e){const t=this.provider;(0,s.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");const n=e instanceof o.sb?t._readStateCallbacks?.getFormFieldByName(e.formFieldName):null;return{formField:n,formFieldValue:!n||n instanceof o.Vw?null:new o.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,s.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");return[...t._readStateCallbacks?.getAvailableVariants(e)||[],"normal"]}cachedRenderAnnotation(e,t,n,a,i,o){const c=this.provider;(0,s.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,o);const u=this.getAnnotationAvailableVariants(e);let m=!1,h=()=>{m=!0};return{promise:new Promise((async(s,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,s),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 s(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,o);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,s,o,r){if(s.length>1){const o=s.map((s=>this.renderAnnotation(e,t,n,a,i,"normal"!==s?s:void 0,r)));return{promise:o,cancel:()=>{o.forEach((e=>{e.cancel()}))}}}return this.renderAnnotation(e,t,n,a,i,o,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 o=n||(0,r.sS)(t);if(!this._cachedRenderedAnnotations.has(o))return!1;const c=this._cachedRenderedAnnotations.get(o);return(0,s.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 o=this._cachedRenderedAnnotations.get(e);return(0,s.V1)(o),o.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:()=>oe,Ay:()=>re,DO:()=>ce,mn:()=>le});var a=n(67136),i=n(55994),s=n(45646),o=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(76117),A=n(83145),S=n(83647),w=n(40527),_=n(70631),P=n(50960),v=n(44439),F=n(89574),k=n(25888),C=n(9939),D=n(15168),I=n(83720),R=n(14511),T=n(41204),V=n(77270),x=n(47159),O=n(23227),L=n(96419);class B{constructor(e,t){this.identifier=e,this.callback=t}request(){return this.callback()}}var E=n(41477),U=n(5293),N=n(97881),j=n(72262),z=n(7737),M=n(82987),q=n(78625),W=n(74111),$=n(78236);class J extends((0,r.mS)({alreadyLoadedPages:(0,r.T5)(),isLoaded:!1,isDestroyed:!1})){}const K={skippedPdfObjectIds:[],skippedPdfBookmarkIds:[],annotations:[],bookmarks:[],formFieldValues:[],formFields:[],attachments:{}};class G{constructor(e,t){(0,a.A)(this,"_state",new J),(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,o.$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({...K,...this._json}),(0,o.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,o.V1)(this._annotationCallbacks),this._annotationCallbacks.createAttachment(i.imageAttachmentId,a)}catch(e){(0,o.pq)(`Skipped attachment with id ${i.imageAttachmentId} from payload because an error occurred while converting the binary image to blob.`),(0,o.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=>X(e,n))).toArray())}updateComment(e,t,n){return this._core.applyComments(t.map((e=>X(e,n))).toArray())}deleteComment(e,t,n){return this._core.applyComments(t.map((e=>X(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,F.K1)(),(0,N.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,o.V1)(this._annotationCallbacks),(0,z.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,o.V1)("imageAttachmentId"in e,"Annotation must have imageAttachmentId."),n===e.imageAttachmentId))),a=await this._core.createAnnotation((0,N.eq)(e),n?n.data:null);"number"!=typeof a||"number"!=typeof e.pdfObjectId||e.pdfObjectId===a||this._isDestroyed()||((0,o.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,N.eq)(e)),await this.updateTabOrder(e.pageIndex)}deleteAnnotation(e){return this._verifyLoaded(),this._core.deleteAnnotation((0,N.eq)(e))}createBookmark(e){return this._verifyLoaded(),this._core.createBookmark((0,M.U)(e))}updateBookmark(e){return this._verifyLoaded(),this._core.updateBookmark((0,M.U)(e))}deleteBookmark(e){return this._verifyLoaded(),this._core.deleteBookmark(e)}createFormField(e){this._verifyLoaded(),(0,o.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.createFormField((0,N.T7)(e),t.map((e=>(0,N.eq)(e))).toArray()).then((async e=>{(0,z.vA)((()=>{e.forEach(((e,n)=>{const a=t.get(n);(0,o.V1)(a),(0,o.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,o.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.updateFormField((0,N.T7)(e),t.map((e=>(0,N.eq)(e))).toArray())}deleteFormField(e){return this._verifyLoaded(),this._core.deleteFormField((0,N.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:s}=e;try{let e;e=a.pdfObjectId?a.pdfObjectId.toString():(0,F.K1)();const r=(0,N.mh)(e,a);(0,o.V1)(this._readStateCallbacks),this._readStateCallbacks.isFormFieldInState(r.name)||n.push(r.set("value",s)),i.forEach((e=>{let n;n=e.pdfObjectId?e.id||e.pdfObjectId.toString():(0,F.K1)(),(0,o.V1)(this._readStateCallbacks),t=t.push((0,N.h8)(n,e))}))}catch(e){(0,o.pq)(`Skipped creating form field #${a.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.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,F.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,o.V1)(a);const i=t.filter((t=>t.formFieldName===e)).toArray().map((e=>(0,N.eq)(e)));this._core.updateFormField((0,N.T7)(a),i)})),n.size>0&&!this._isDestroyed()&&((0,o.V1)(this._formFieldCallbacks),this._formFieldCallbacks.createFormFields(n,$.n)),await this._loadFormFieldValues(),t.size>0&&!this._isDestroyed()&&((0,o.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,N.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=[],s=t.map((e=>{let{rollover:t,down:n,...s}=e;return t&&"number"==typeof s.pdfObjectId&&a.push(s.pdfObjectId),n&&"number"==typeof s.pdfObjectId&&i.push(s.pdfObjectId),s})).filter((e=>"number"==typeof e.pageIndex));this._formFieldCallbacks&&await this.loadFormFields();const c=(0,r.B8)().withMutations((e=>{s.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,F.K1)():t.id||t.pdfObjectId.toString(),(e.some((e=>e.id===n))||this._readStateCallbacks?.isAnnotationInState(n))&&(n=(0,F.K1)(),t.id=n,this._core.updateAnnotation(t));const a=(0,N.h8)(n,t);e.push(a)}catch(e){(0,o.pq)(`Skipped creating annotation #${t.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.pq)(e)}}))}));(0,z.vA)((()=>{(0,o.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,N.R5)(e))}catch(t){(0,o.pq)(`Skipped creating form field value #${e.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.pq)(t)}}))}));t.size>0&&!this._isDestroyed()&&((0,o.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,W.z)();try{t.push((0,M.r)(n,e))}catch(e){(0,o.pq)(`Skipped creating bookmark #${n} from payload because an error occurred while deserializing.`),(0,o.pq)(e)}}))}));t.size>0&&!this._isDestroyed()&&((0,o.V1)(this._bookmarkCallbacks),this._bookmarkCallbacks.createBookmarks(t,$.n))}_verifyLoaded(){(0,o.V1)(this._state.isLoaded,"StandaloneProvider not properly initialized.")}_isDestroyed(){return this._state.isDestroyed}async syncChanges(){}}function X(e,t){(0,o.V1)(e.rootId,"A new comment must have `rootId` present");const n=t.get(e.rootId);return(0,o.V1)(n,"An annotation must be present linked to the comment to create"),(0,N.wG)(e,n.pdfObjectId?.toString()===n.id?parseInt(e.rootId):e.rootId)}function H(e){return"string"==typeof e?.serialNumber&&e.body instanceof ArrayBuffer}function Y(e){return e?.pkcs7 instanceof ArrayBuffer&&(!("ocspResponses"in e)||Array.isArray(e.ocspResponses)&&e.ocspResponses.every((e=>H(e))))}function Z(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=>H(e))))return!1}return!0}class Q{constructor(e){this.backend=e}async signDocumentAndReload(e,t){const n=e?.signingData,a=n?.certificates;(0,o.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,o.V1)(!n?.timestamp||"string"==typeof n?.timestamp?.url,"The `url` property of `signingData.timestamp` must be a string."),(0,o.V1)(!n?.timestamp||!n?.timestamp?.password||"string"==typeof n?.timestamp?.password,"The `password` property of `signingData.timestamp` must be a string."),(0,o.V1)(!n?.timestamp||!n?.timestamp?.username||"string"==typeof n?.timestamp?.username,"The `username` property of `signingData.timestamp` must be a string."),(0,o.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,o.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,o.V1)(!n||!n.signatureType||n.signatureType===S.D7.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?S.D7.CAdES:S.D7.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:s,file:r,fileContents:l,dataToBeSigned:d}=await this.backend.client.prepareSign((0,N.Y6)(i),e?.signatureMetadata?(0,N.sZ)(e.signatureMetadata):null,Boolean(e?.flatten),e?.formFieldName,(0,N.qN)(e?.position),await(0,N.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 o.uE(`\`twoStepSignatureCallback\` threw an error: ${e}`)}if(!(m instanceof ArrayBuffer||Y(m)||Z(m)))throw new o.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 o.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(Y(p)){const e=p;f=c.o4.fromUint8Array(new Uint8Array(e.pkcs7))||""}else if(Z(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):(Y(p)||Z(p))&&((0,o.V1)(null==p.ocspResponses||Array.isArray(p.ocspResponses)&&p.ocspResponses.every((e=>H(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,o.R8)("The `TwoStepSignatureCallback` didn't return certificate revocation responses; trying to fetch them online."),b=await this.backend.getRevocationResponses(g)))),Z(p)){const e=p;(0,o.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,s,a,N.xz[i.signatureType],f,g,Y(p)?"pkcs7":Z(p)?"raw":n?.signatureContainer?n.signatureContainer:null,y,b);return n?.ltv&&A.signature.certificateChainValidationStatus===S.k5.ok_but_could_not_check_revocation&&(0,o.R8)("Document signed, but couldn't add certificate revocation information so the signature may not be LTV-enabled."),await this.backend.reloadDocument(),s}catch(e){throw await this.backend.client.restoreToOriginalState(),e}}}var ee=n(64966);class te extends Q{constructor(e){super(e)}async signDocumentAndReload(e,t){t=(0,w.kJ)(t),(0,o.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),s=this.resolveServerUrl(t),r=await this.getCertificates(s,n,`${i}get_certificates`,a),c=this.signatureCallbackFactory(s,n,r,e,t,`${i}sign_hash`);return await super.signDocumentAndReload({...e,signingData:{...e?.signingData,signatureType:e?.signingData?.signatureType||S.D7.CAdES,certificates:r}},c)}async getCertificates(e,t,n,a){let i;const s=`${e}${n}`;try{i=await fetch(s,{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 o.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${s}`)}if(!i.ok)throw new o.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,ee.i)(e.jwt).api_base_path||"/api/"}resolveServerUrl(e){const t=e.serverUrl||(0,ee.i)(e.jwt).server_url;return(0,o.V1)(t,"`twoStepSignatureCallbackOrStandaloneSigningServiceData.jwt` must contain claim `server_url` or the `twoStepSignatureCallbackOrStandaloneSigningServiceData.serverUrl` should be set"),t}signatureCallbackFactory(e,t,n,a,i,s){return async r=>{let l,{hash:d,dataToBeSigned:u}=r;try{l=await fetch(`${e}${s}`,{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||S.D7.CAdES,signingToken:i.signingToken,cadesLevel:a?.signingData?.padesLevel||S.sX.b_lt})})}catch(t){throw new o.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${e}${s}`)}if(!l.ok)throw new o.uE(`The signing service failed to sign: ${await l.text()}`);const m=(await l.json())?.data||{};if(a?.signingData?.signatureContainer===S.Yj.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 ne=n(30026),ae=n(85553);class ie extends(r.mS({baseUrl:null,baseCoreUrl:null,baseProcessorEngineUrl:null,licenseKey:null,document:null,backendPermissions:new ne.A,documentResponse:null,disableWebAssemblyStreaming:!1,enableAutomaticLinkExtraction:!1,overrideMemoryLimit:null,features:(0,r.B8)(),signatureFeatureAvailability:ae.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})){}let se;se=n(55994).Fe;const oe=new i.iy(se);class re extends j.K{constructor(e){super(),(0,a.A)(this,"type","STANDALONE"),(0,a.A)(this,"standaloneDocumentSigner",new Q(this)),(0,a.A)(this,"signingServiceDocumentSigner",new te(this)),(0,a.A)(this,"_XFDF",null),le(e);const{baseUrl:t,baseCoreUrl:n,baseProcessorEngineUrl:i,instantJSON:o,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}=e;"string"==typeof r&&(this._XFDF={source:r,keepCurrentAnnotations:!0===e.XFDFKeepCurrentAnnotations,ignorePageRotation:!0===e.XFDFIgnorePageRotation,richTextEnabled:!0===e.XFDFRichTextEnabled}),o&&o.annotations&&(o.annotations=o.annotations.map((e=>(e.id=e.id?.toString(),e)))),this._instantJSON=o,this._formsConfiguration=_,"function"==typeof u&&(this._trustedCAsCallback=u);const{disableWebAssemblyStreaming:F,customFonts:k,fontSubstitutions:C}=e,{standaloneInstancesPoolSize:D}=e;void 0!==D&&(oe.size=D);const I=!!e.electronicSignatures&&Boolean(e.electronicSignatures.forceLegacySignaturesFeature);let R=b||null;!g&&!y||R||(R=g?p.v.SharePoint:p.v.Salesforce),this._state=new ie(ce({baseUrl:t,baseCoreUrl:n,baseProcessorEngineUrl:i,licenseKey:e.licenseKey,document:e.document,disableWebAssemblyStreaming:F,enableAutomaticLinkExtraction:c,overrideMemoryLimit:l,documentHandle:"0",customFonts:k,fontSubstitutions:C,forceLegacySignaturesFeature:I,appName:f||m,productId:R,processorEngine:A||h.j.fasterProcessing,dynamicFonts:S,inlineWorkers:w,allowLinearizedLoading:P,enableCoreUnifiedComments:v})),this._requestQueue=new s.L(d.z3);const{object:T,checkIn:V}=oe.checkOut();this.client=T,this.checkIn=V,this.corePDFDocument=new L.N({wasmClient:this.client},{type:"alreadyLoadedDocument"});const x=o?{annotations:o.annotations||[],formFields:o.formFields||[],formFieldValues:o.formFieldValues||[],skippedPdfObjectIds:o.skippedPdfObjectIds||[],skippedPdfFormFieldIds:o.skippedPdfFormFieldIds||[],attachments:o.attachments||{},bookmarks:o.bookmarks||[],skippedPdfBookmarkIds:o.skippedPdfBookmarkIds||[],comments:o.comments||void 0,skippedComments:o.skippedComments||void 0,format:o.format,...o.pdfId?{pdfId:o.pdfId}:null}:null;this.provider=new G(this.client,x)}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,o.R8)("Annotation must have a pageIndex."),1):(e.lineHeightFactor&&(0,o.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 P.bR({x:t[0],y:t[1]}):e}configureSnapper(e){return this.client.configureSnapper(e)}renderAnnotation(e,t,n,a,i,s,o){if(0===Math.floor(a)||0===Math.floor(i))return{promise:Promise.resolve(void 0),cancel:()=>{}};const r=(0,V.yl)();let c;if((0,F.cu)(e)){if(c=(0,F.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 B(l,(()=>this.client.renderAnnotation((0,N.eq)(e),n,a,i,(0,D.LG)(),s,o).then((e=>e?"string"==typeof e?(0,C.$3)(e):(0,C.vB)({buffer:e,width:a,height:i}):Promise.resolve(null))).then((t=>((0,F.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=[],s=[],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,o=(0,F.lG)(e,n);if(o&&n){i.find((e=>e.name===n.name))||(i.push((0,N.cA)((0,I.Af)(n))),s.push(n))}return o}));function l(e,t){if((0,F.uM)(e)){const n=s.find((t=>t.name===e.formFieldName)),a=t.find((t=>t.name===e.formFieldName));if(!(0,I.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,D.LG)()).then((e=>{const i=s.map((e=>a._readStateCallbacks?.getFormFieldByName(e.name))).filter(Boolean),c=e.map(((e,t)=>{const a=r.get(t);return(0,o.V1)(a),l(a,i)&&a&&e?"string"==typeof e?(0,C.$3)(e):(0,C.vB)({buffer:e,width:a.boundingBox.width*n,height:a.boundingBox.height*n}):Promise.resolve(null)}));Promise.all(c).then((e=>{const i=s.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),s=this.getAnnotationAvailableVariants(a),o=this.annotationAPStreamPromises.get(a.id),r=l(a,i);if(o&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(a.id),o(r?e:null)),s.length>1){const i={normal:e};e&&r&&this.cacheAPStream(i,a);const{promise:o}=this.renderAPStream(a,t,null,a.boundingBox.width*n,a.boundingBox.height*n,s);Promise.all(o.map((e=>e.promise))).then((e=>{e.some(Boolean)&&s.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 o.uE(`Detached annotations should not have an \`id\`: ${e.id}`);const i=(0,V.yl)();let s;if((0,F.cu)(e)){if(s=(0,F.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:s,width:n,height:a}))return this.cachedRenderedAnnotationDiscardablePromise(s,i);this._addCachedRenderedAnnotation(s,{width:n,height:a,noZoom:e.noZoom,APStreamPromise:i.promise})}const r=(0,l.Z0)(),c=new B(r,(()=>this.client.renderDetachedAnnotation((0,N.eq)(e),t,n,a,(0,D.LG)()).then((e=>e?(0,C.vB)({buffer:e,width:n,height:a}):Promise.resolve(null))).then((t=>((0,F.cu)(e)&&this._makeEnqueuedRelease(t,s),i.resolve(t),t))).catch((()=>{const e=this._cachedRenderedAnnotations.get(s);e&&e.timeout&&clearTimeout(e.timeout),this._cachedRenderedAnnotations.delete(s)})))),{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:s}=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)(s?.map((e=>(0,N.h8)((0,F.K1)(),e)))||[])}}async search(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.n.TEXT;const o=await this.client.search(e,t,n,a,s);return(0,x.g)(o.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,o.V1)(e),(0,U.a)(e))));return new A.A({...(0,F.mN)(n),...t.annotationPreset,pageIndex:e.pageIndex,rects:i,boundingBox:v.A.union(i)})})))}async exportPDF(){let{flatten:e=!1,incremental:t,saveForPrinting:n=!1,format:a="pdf",excludeAnnotations:i=!1,preserveInstantJSONChanges:s=!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 o.uE("Cannot set `flattenElectronicSignatures` to `false` when `flatten` is set to `true`.");if(c&&"boolean"!=typeof c&&c.conformance&&(0,o.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,s,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 n;try{return n=await this._setupGdPictureClient(),await n.toPdf(t,e)}finally{n?.destroy(),(0,O.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 o.uE(`Exporting to ${n} failed: ${e.message}.`)}finally{t?.destroy(),(0,O.Pm)(null)}}async _setupGdPictureClient(){let e=(0,O.jU)();return e||(e=(0,O.NY)({baseUrl:this._state.baseProcessorEngineUrl,mainThreadOrigin:this._state.appName||(0,T.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,O.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((s=>{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),s(e)}))})),revoke:()=>{e&&window.URL.revokeObjectURL(e),i=!0}}}async getDocumentOutline(){const e=await this.client.getDocumentOutline();return(0,r.B8)(e.map(E.r))}async setDocumentOutline(e){return this.client.setDocumentOutline(e.map(E.U).toArray())}async getPageGlyphs(e){const t=await this.client.getPageGlyphs(e);return(0,N.Fj)(t)}async onKeystrokeEvent(e){return await this.client.onKeystrokeEvent(e)}async evalFormValuesActions(e){return this.client.evalFormValuesActions(e.map(N.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,k.t)(e);await this.client.applyOperations(t,n)}catch(e){throw new o.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 o.uE(`Applying redactions failed: ${e}`)}return this.reloadDocument()}async reloadDocument(){try{this.provider?.destroy(),this.provider=new G(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 o.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,k.t)(e);return this.client.exportPDFWithOperations(t,n)}catch(e){throw new o.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,N.N5)(e)));if(a.signatures?.find((e=>e.certificateChainValidationStatus===S.k5.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 o.uE(`Setting signatures LTV failed: ${e}`)}}getSignaturesInfo(){try{if(this._state.signaturesInfoPromise)return this._state.signaturesInfoPromise;const e=this.client.getSignaturesInfo().then((e=>(0,N.N5)(e)));return this._state=this._state.set("signaturesInfoPromise",e),e}catch(e){throw new o.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:s}=e;try{const e=await fetch(n,{method:t,headers:{"Content-Type":a??"application/ocsp-request"},body:c.o4.toUint8Array(i).buffer}),o=await e.arrayBuffer();return{response_code:e.status,body:c.o4.fromUint8Array(new Uint8Array(o)),token:s}}catch(e){return{response_code:0,body:"",token:s,error_message:e.message}}})))}async signDocumentAndReload(e,t){(0,o.V1)(void 0===t||"function"==typeof t||(0,w.kJ)(t),"On a Standalone deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a function or `NutrientViewer.StandaloneSigningServiceData` if provided.");const n=(0,w.kJ)(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){return this.client.runPDFFormattingScripts(e,t)}async runPDFFormattingScriptsFromWidgets(e,t,n){let a=[];if(this._isPDFJavaScriptEnabled){const{withAPStream:i,withoutAPStream:s}=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 o=[];if(i.length&&!s.length)o=await this.runPDFFormattingScripts(i,!0);else if(!i.length&&s.length)o=await this.runPDFFormattingScripts(s,!1);else if(i.length&&s.length){const[e,t]=await Promise.all([this.runPDFFormattingScripts(i,!0),this.runPDFFormattingScripts(s,!1)]);o=e.concat(t)}a=(0,I.A5)(this._initialChanges,o)}return a}setFontSubstitutions(e){return this.client.setFontSubstitutions(e)}async contentEditorReload(){return(0,o.V1)(this.provider instanceof G,"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,N.eq)(e),t,n)}async timestampData(e,t){const{url:n,username:a="",password:i=""}=t,s=c.o4.fromUint8Array(new Uint8Array(e));try{const e=await this.client.getTimestampRequest(s,{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 ce(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 _.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}}function le(e){const{licenseKey:t,instantJSON:n,XFDF:a,disableWebAssemblyStreaming:i,disableIndexedDBCaching:s,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}=e;if((0,o.V1)("string"==typeof u,"`baseUrl` is mandatory and must be a valid URL, e.g. `https://example.com/"),(0,R.f4)(u),(0,o.V1)(!m||"string"==typeof m,"`baseCoreUrl` must be a valid URL if set, e.g. `https://example.com/"),m&&(0,R.Qo)(m),(0,o.V1)(!h||"string"==typeof h,"`baseProcessorEngineUrl` must be a valid URL if set, e.g. `https://example.com/"),h&&(0,R.hc)(h),(0,o.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,o.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,o.V1)(void 0===a||"string"==typeof a,"XFDF must be a string"),n&&((0,o.yj)(n),(0,o.V1)(void 0===a,"Cannot import from both instantJSON and XFDF")),(0,o.V1)(void 0===i||"boolean"==typeof i,"disableWebAssemblyStreaming must be a boolean"),(0,o.V1)(void 0===r||"boolean"==typeof r,"enableAutomaticLinkExtraction must be a boolean"),(0,o.V1)(void 0===c||"number"==typeof c,"overrideMemoryLimit must be a number"),(0,o.V1)(void 0===l||"number"==typeof l&&l>=0,"standaloneInstancesPoolSize must be a non-negative number"),(0,o.V1)(void 0===d||"function"==typeof d,"trustedCAsCallback must be a function"),(0,o.V1)(void 0===p||Array.isArray(p)&&p.every((e=>e instanceof _.A)),"customFonts must be an array of NutrientViewer.Font instances"),(0,o.V1)(void 0===p||p.every((e=>e.callback)),"All NutrientViewer.Font instances specified on customFonts must have its callback property defined"),void 0!==s&&(0,o.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,o.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,o.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 o.uE("dynamicFonts must be a valid URL to a JSON file containing the data for fonts to be dynamically loaded.")}(0,o.V1)(void 0===b||"boolean"==typeof b,"inlineWorkers must be a boolean"),A&&(0,o.V1)(void 0===A.export?.disableComboBoxArrow||"boolean"==typeof A.export?.disableComboBoxArrow,"formsConfiguration.export.disableComboBoxArrow must be a boolean")}},40927:(e,t,n)=>{n.d(t,{r:()=>o});var a=n(49568);class i extends(a.mS({id:"",attachmentId:"",description:null,fileName:null,fileSize:null,updatedAt:null})){}var s=n(46952);function o(e,t){return function(e,t){return t}(0,arguments.length>2&&void 0!==arguments[2]&&arguments[2])?new i({id:(0,s.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),s=n(6085),o=n(16792),r=n(76117);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,o.J)(e.color),isBold:e.isBold,isItalic:e.isItalic,isExpanded:e.isExpanded,action:e.action&&(0,s.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,s._8)(e.action)}catch(t){(0,a.R8)(`PDF Action not supported ${JSON.stringify(e.action)})`)}try{n=e.color&&(0,o.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:()=>s});var a=n(85409);function i(e,t,n,a,i,s){let o;return e.has(n)?o=e.get(n):(o=i.toString(),t[o]=n,e.set(n,o)),{...a,[s]:o}}async function s(e){const t=new WeakMap,n={};return{processedOperations:await Promise.all(e.map((async(e,s)=>{if("importDocument"===e.type){const{document:o}=e;return(0,a.V1)(o instanceof File||o instanceof Blob,"Wrong `importDocument` operation `document` value: it must be a File or a Blob"),i(t,n,o,e,s,"document")}if("applyInstantJson"===e.type){const o=e.instantJson;(0,a.V1)("object"==typeof o&&null!==o,"Wrong `applyInstantJson` operation `instantJson` value: it must be an object");const r=JSON.stringify(o),c=new Blob([r],{type:"application/json"});return i(t,n,c,e,s,"dataFilePath")}if("applyXfdf"===e.type){const o=e.xfdf;(0,a.V1)("string"==typeof o,"Wrong `applyXfdf` operation `xfdf` value: it must be a string");const r=new Blob([o],{type:"application/vnd.adobe.xfdf"});return i(t,n,r,e,s,"dataFilePath")}return e}))),operationsDocuments:n}}},47159:(e,t,n)=>{n.d(t,{g:()=>r});var a=n(49568),i=n(85409),s=n(5293),o=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 o.A({pageIndex:e.pageIndex,previewText:e.previewText,locationInPreview:e.rangeInPreview[0],lengthInPreview:e.rangeInPreview[1],rectsOnPage:(0,a.B8)(e.rectsOnPage).map((e=>(0,s.a)(e))),isAnnotation:!!e.isAnnotation,annotationRect:e.annotationRect?(0,s.a)(e.annotationRect):null})))).filter(Boolean))}}}]);
13
+ "use strict";(globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[]).push([[42],{96419:(e,t,n)=>{n.d(t,{N:()=>y});var a=n(7891),i=n(59501),s=n(85409),o=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,s.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,s.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,s,o){let c;o&&(c={annotations:o.annotations.filter(r.mH).map(d.eq).toJS().map((e=>({content:e}))),formFieldValues:o.formFieldValues.map(d.cA).toJS(),formFields:o.formFields.map(d.T7).toJS(),signatures:o.signatures||[],attachments:o.attachments});const u=this.rawDocument.renderer.renderTile(e,t,n,{renderForPrinting:i,renderText:s,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}}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:s}=n;const o=(0,c.l1)(s,e,t.length,a,i);return a+=o.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.Y_)(n).size}),0),i+=o.reduce(((e,t)=>{let{content:n}=t;return e+(0,c.M3)(n).size}),0),t.concat(o)}),[]),(0,o.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),s=n(85409),o=n(76117),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,s.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:s}=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:s}),this._cacheableRenderedAnnotationSetExpire(e)}))}getAnnotationFormFieldAndValue(e){const t=this.provider;(0,s.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");const n=e instanceof o.sb?t._readStateCallbacks?.getFormFieldByName(e.formFieldName):null;return{formField:n,formFieldValue:!n||n instanceof o.Vw?null:new o.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,s.V1)(t instanceof t.constructor,"Backend can only use backend annotation provider");return[...t._readStateCallbacks?.getAvailableVariants(e)||[],"normal"]}cachedRenderAnnotation(e,t,n,a,i,o){const c=this.provider;(0,s.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,o);const u=this.getAnnotationAvailableVariants(e);let m=!1,h=()=>{m=!0};return{promise:new Promise((async(s,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,s),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 s(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,o);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,s,o,r){if(s.length>1){const o=s.map((s=>this.renderAnnotation(e,t,n,a,i,"normal"!==s?s:void 0,r)));return{promise:o,cancel:()=>{o.forEach((e=>{e.cancel()}))}}}return this.renderAnnotation(e,t,n,a,i,o,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 o=n||(0,r.sS)(t);if(!this._cachedRenderedAnnotations.has(o))return!1;const c=this._cachedRenderedAnnotations.get(o);return(0,s.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 o=this._cachedRenderedAnnotations.get(e);return(0,s.V1)(o),o.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:()=>oe,Ay:()=>re,DO:()=>ce,mn:()=>le});var a=n(67136),i=n(55994),s=n(45646),o=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(76117),A=n(83145),S=n(83647),w=n(40527),_=n(70631),P=n(11587),v=n(44439),F=n(89574),k=n(25888),C=n(9939),D=n(15168),I=n(83720),R=n(14511),T=n(41204),V=n(77270),x=n(47159),O=n(23227),L=n(96419);class B{constructor(e,t){this.identifier=e,this.callback=t}request(){return this.callback()}}var E=n(41477),U=n(5293),N=n(97881),j=n(72262),z=n(7737),M=n(82987),q=n(78625),W=n(74111),$=n(78236);class J extends((0,r.mS)({alreadyLoadedPages:(0,r.T5)(),isLoaded:!1,isDestroyed:!1})){}const K={skippedPdfObjectIds:[],skippedPdfBookmarkIds:[],annotations:[],bookmarks:[],formFieldValues:[],formFields:[],attachments:{}};class G{constructor(e,t){(0,a.A)(this,"_state",new J),(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,o.$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({...K,...this._json}),(0,o.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,o.V1)(this._annotationCallbacks),this._annotationCallbacks.createAttachment(i.imageAttachmentId,a)}catch(e){(0,o.pq)(`Skipped attachment with id ${i.imageAttachmentId} from payload because an error occurred while converting the binary image to blob.`),(0,o.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=>X(e,n))).toArray())}updateComment(e,t,n){return this._core.applyComments(t.map((e=>X(e,n))).toArray())}deleteComment(e,t,n){return this._core.applyComments(t.map((e=>X(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,F.K1)(),(0,N.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,o.V1)(this._annotationCallbacks),(0,z.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,o.V1)("imageAttachmentId"in e,"Annotation must have imageAttachmentId."),n===e.imageAttachmentId))),a=await this._core.createAnnotation((0,N.eq)(e),n?n.data:null);"number"!=typeof a||"number"!=typeof e.pdfObjectId||e.pdfObjectId===a||this._isDestroyed()||((0,o.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,N.eq)(e)),await this.updateTabOrder(e.pageIndex)}deleteAnnotation(e){return this._verifyLoaded(),this._core.deleteAnnotation((0,N.eq)(e))}createBookmark(e){return this._verifyLoaded(),this._core.createBookmark((0,M.U)(e))}updateBookmark(e){return this._verifyLoaded(),this._core.updateBookmark((0,M.U)(e))}deleteBookmark(e){return this._verifyLoaded(),this._core.deleteBookmark(e)}createFormField(e){this._verifyLoaded(),(0,o.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.createFormField((0,N.T7)(e),t.map((e=>(0,N.eq)(e))).toArray()).then((async e=>{(0,z.vA)((()=>{e.forEach(((e,n)=>{const a=t.get(n);(0,o.V1)(a),(0,o.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,o.V1)(this._readStateCallbacks);const t=this._readStateCallbacks.getFormFieldWidgets(e);return this._core.updateFormField((0,N.T7)(e),t.map((e=>(0,N.eq)(e))).toArray())}deleteFormField(e){return this._verifyLoaded(),this._core.deleteFormField((0,N.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:s}=e;try{let e;e=a.pdfObjectId?a.pdfObjectId.toString():(0,F.K1)();const r=(0,N.mh)(e,a);(0,o.V1)(this._readStateCallbacks),this._readStateCallbacks.isFormFieldInState(r.name)||n.push(r.set("value",s)),i.forEach((e=>{let n;n=e.pdfObjectId?e.id||e.pdfObjectId.toString():(0,F.K1)(),(0,o.V1)(this._readStateCallbacks),t=t.push((0,N.h8)(n,e))}))}catch(e){(0,o.pq)(`Skipped creating form field #${a.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.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,F.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,o.V1)(a);const i=t.filter((t=>t.formFieldName===e)).toArray().map((e=>(0,N.eq)(e)));this._core.updateFormField((0,N.T7)(a),i)})),n.size>0&&!this._isDestroyed()&&((0,o.V1)(this._formFieldCallbacks),this._formFieldCallbacks.createFormFields(n,$.n)),await this._loadFormFieldValues(),t.size>0&&!this._isDestroyed()&&((0,o.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,N.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=[],s=t.map((e=>{let{rollover:t,down:n,...s}=e;return t&&"number"==typeof s.pdfObjectId&&a.push(s.pdfObjectId),n&&"number"==typeof s.pdfObjectId&&i.push(s.pdfObjectId),s})).filter((e=>"number"==typeof e.pageIndex));this._formFieldCallbacks&&await this.loadFormFields();const c=(0,r.B8)().withMutations((e=>{s.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,F.K1)():t.id||t.pdfObjectId.toString(),(e.some((e=>e.id===n))||this._readStateCallbacks?.isAnnotationInState(n))&&(n=(0,F.K1)(),t.id=n,this._core.updateAnnotation(t));const a=(0,N.h8)(n,t);e.push(a)}catch(e){(0,o.pq)(`Skipped creating annotation #${t.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.pq)(e)}}))}));(0,z.vA)((()=>{(0,o.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,N.R5)(e))}catch(t){(0,o.pq)(`Skipped creating form field value #${e.pdfObjectId} from payload because an error occurred while deserializing.`),(0,o.pq)(t)}}))}));t.size>0&&!this._isDestroyed()&&((0,o.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,W.z)();try{t.push((0,M.r)(n,e))}catch(e){(0,o.pq)(`Skipped creating bookmark #${n} from payload because an error occurred while deserializing.`),(0,o.pq)(e)}}))}));t.size>0&&!this._isDestroyed()&&((0,o.V1)(this._bookmarkCallbacks),this._bookmarkCallbacks.createBookmarks(t,$.n))}_verifyLoaded(){(0,o.V1)(this._state.isLoaded,"StandaloneProvider not properly initialized.")}_isDestroyed(){return this._state.isDestroyed}async syncChanges(){}}function X(e,t){(0,o.V1)(e.rootId,"A new comment must have `rootId` present");const n=t.get(e.rootId);return(0,o.V1)(n,"An annotation must be present linked to the comment to create"),(0,N.wG)(e,n.pdfObjectId?.toString()===n.id?parseInt(e.rootId):e.rootId)}function H(e){return"string"==typeof e?.serialNumber&&e.body instanceof ArrayBuffer}function Y(e){return e?.pkcs7 instanceof ArrayBuffer&&(!("ocspResponses"in e)||Array.isArray(e.ocspResponses)&&e.ocspResponses.every((e=>H(e))))}function Z(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=>H(e))))return!1}return!0}class Q{constructor(e){this.backend=e}async signDocumentAndReload(e,t){const n=e?.signingData,a=n?.certificates;(0,o.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,o.V1)(!n?.timestamp||"string"==typeof n?.timestamp?.url,"The `url` property of `signingData.timestamp` must be a string."),(0,o.V1)(!n?.timestamp||!n?.timestamp?.password||"string"==typeof n?.timestamp?.password,"The `password` property of `signingData.timestamp` must be a string."),(0,o.V1)(!n?.timestamp||!n?.timestamp?.username||"string"==typeof n?.timestamp?.username,"The `username` property of `signingData.timestamp` must be a string."),(0,o.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,o.V1)(void 0===n?.ltv||"boolean"==typeof n?.ltv,"The `ltv` property of `signingData` must be a boolean if set."),(0,o.V1)(!n||!n.signatureType||n.signatureType===S.D7.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?S.D7.CAdES:S.D7.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:s,file:r,fileContents:l,dataToBeSigned:d}=await this.backend.client.prepareSign((0,N.Y6)(i),e?.signatureMetadata?(0,N.sZ)(e.signatureMetadata):null,Boolean(e?.flatten),e?.formFieldName,(0,N.qN)(e?.position),await(0,N.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 o.uE(`\`twoStepSignatureCallback\` threw an error: ${e}`)}if(!(m instanceof ArrayBuffer||Y(m)||Z(m)))throw new o.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 o.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(Y(p)){const e=p;f=c.o4.fromUint8Array(new Uint8Array(e.pkcs7))||""}else if(Z(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):(Y(p)||Z(p))&&((0,o.V1)(null==p.ocspResponses||Array.isArray(p.ocspResponses)&&p.ocspResponses.every((e=>H(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,o.R8)("The `TwoStepSignatureCallback` didn't return certificate revocation responses; trying to fetch them online."),b=await this.backend.getRevocationResponses(g)))),Z(p)){const e=p;(0,o.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,s,a,N.xz[i.signatureType],f,g,Y(p)?"pkcs7":Z(p)?"raw":n?.signatureContainer?n.signatureContainer:null,y,b);return n?.ltv&&A.signature.certificateChainValidationStatus===S.k5.ok_but_could_not_check_revocation&&(0,o.R8)("Document signed, but couldn't add certificate revocation information so the signature may not be LTV-enabled."),await this.backend.reloadDocument(),s}catch(e){throw await this.backend.client.restoreToOriginalState(),e}}}var ee=n(64966);class te extends Q{constructor(e){super(e)}async signDocumentAndReload(e,t){t=(0,w.kJ)(t),(0,o.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),s=this.resolveServerUrl(t),r=await this.getCertificates(s,n,`${i}get_certificates`,a),c=this.signatureCallbackFactory(s,n,r,e,t,`${i}sign_hash`);return await super.signDocumentAndReload({...e,signingData:{...e?.signingData,signatureType:e?.signingData?.signatureType||S.D7.CAdES,certificates:r}},c)}async getCertificates(e,t,n,a){let i;const s=`${e}${n}`;try{i=await fetch(s,{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 o.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${s}`)}if(!i.ok)throw new o.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,ee.i)(e.jwt).api_base_path||"/api/"}resolveServerUrl(e){const t=e.serverUrl||(0,ee.i)(e.jwt).server_url;return(0,o.V1)(t,"`twoStepSignatureCallbackOrStandaloneSigningServiceData.jwt` must contain claim `server_url` or the `twoStepSignatureCallbackOrStandaloneSigningServiceData.serverUrl` should be set"),t}signatureCallbackFactory(e,t,n,a,i,s){return async r=>{let l,{hash:d,dataToBeSigned:u}=r;try{l=await fetch(`${e}${s}`,{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||S.D7.CAdES,signingToken:i.signingToken,cadesLevel:a?.signingData?.padesLevel||S.sX.b_lt})})}catch(t){throw new o.uE(`The signing service failed to retrieve certificates: Failed to fetch from ${e}${s}`)}if(!l.ok)throw new o.uE(`The signing service failed to sign: ${await l.text()}`);const m=(await l.json())?.data||{};if(a?.signingData?.signatureContainer===S.Yj.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 ne=n(30026),ae=n(85553);class ie extends(r.mS({baseUrl:null,baseCoreUrl:null,baseProcessorEngineUrl:null,licenseKey:null,document:null,backendPermissions:new ne.A,documentResponse:null,disableWebAssemblyStreaming:!1,enableAutomaticLinkExtraction:!1,overrideMemoryLimit:null,features:(0,r.B8)(),signatureFeatureAvailability:ae.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})){}let se;se=n(55994).Fe;const oe=new i.iy(se);class re extends j.K{constructor(e){super(),(0,a.A)(this,"type","STANDALONE"),(0,a.A)(this,"standaloneDocumentSigner",new Q(this)),(0,a.A)(this,"signingServiceDocumentSigner",new te(this)),(0,a.A)(this,"_XFDF",null),le(e);const{baseUrl:t,baseCoreUrl:n,baseProcessorEngineUrl:i,instantJSON:o,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}),o&&o.annotations&&(o.annotations=o.annotations.map((e=>(e.id=e.id?.toString(),e)))),this._instantJSON=o,this._formsConfiguration=_,"function"==typeof u&&(this._trustedCAsCallback=u);const{disableWebAssemblyStreaming:k,customFonts:C,fontSubstitutions:D}=e,{standaloneInstancesPoolSize:I}=e;void 0!==I&&(oe.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 ie(ce({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})),this._requestQueue=new s.L(d.z3);const{object:V,checkIn:x}=oe.checkOut();this.client=V,this.checkIn=x,this.corePDFDocument=new L.N({wasmClient:this.client},{type:"alreadyLoadedDocument"});const O=o?{annotations:o.annotations||[],formFields:o.formFields||[],formFieldValues:o.formFieldValues||[],skippedPdfObjectIds:o.skippedPdfObjectIds||[],skippedPdfFormFieldIds:o.skippedPdfFormFieldIds||[],attachments:o.attachments||{},bookmarks:o.bookmarks||[],skippedPdfBookmarkIds:o.skippedPdfBookmarkIds||[],comments:o.comments||void 0,skippedComments:o.skippedComments||void 0,format:o.format,...o.pdfId?{pdfId:o.pdfId}:null}:null;this.provider=new G(this.client,O)}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,o.R8)("Annotation must have a pageIndex."),1):(e.lineHeightFactor&&(0,o.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 P.bR({x:t[0],y:t[1]}):e}configureSnapper(e){return this.client.configureSnapper(e)}renderAnnotation(e,t,n,a,i,s,o){if(0===Math.floor(a)||0===Math.floor(i))return{promise:Promise.resolve(void 0),cancel:()=>{}};const r=(0,V.yl)();let c;if((0,F.cu)(e)){if(c=(0,F.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 B(l,(()=>this.client.renderAnnotation((0,N.eq)(e),n,a,i,(0,D.LG)(),s,o).then((e=>e?"string"==typeof e?(0,C.$3)(e):(0,C.vB)({buffer:e,width:a,height:i}):Promise.resolve(null))).then((t=>((0,F.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=[],s=[],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,o=(0,F.lG)(e,n);if(o&&n){i.find((e=>e.name===n.name))||(i.push((0,N.cA)((0,I.Af)(n))),s.push(n))}return o}));function l(e,t){if((0,F.uM)(e)){const n=s.find((t=>t.name===e.formFieldName)),a=t.find((t=>t.name===e.formFieldName));if(!(0,I.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,D.LG)()).then((e=>{const i=s.map((e=>a._readStateCallbacks?.getFormFieldByName(e.name))).filter(Boolean),c=e.map(((e,t)=>{const a=r.get(t);return(0,o.V1)(a),l(a,i)&&a&&e?"string"==typeof e?(0,C.$3)(e):(0,C.vB)({buffer:e,width:a.boundingBox.width*n,height:a.boundingBox.height*n}):Promise.resolve(null)}));Promise.all(c).then((e=>{const i=s.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),s=this.getAnnotationAvailableVariants(a),o=this.annotationAPStreamPromises.get(a.id),r=l(a,i);if(o&&(this.annotationAPStreamPromises=this.annotationAPStreamPromises.delete(a.id),o(r?e:null)),s.length>1){const i={normal:e};e&&r&&this.cacheAPStream(i,a);const{promise:o}=this.renderAPStream(a,t,null,a.boundingBox.width*n,a.boundingBox.height*n,s);Promise.all(o.map((e=>e.promise))).then((e=>{e.some(Boolean)&&s.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 o.uE(`Detached annotations should not have an \`id\`: ${e.id}`);const i=(0,V.yl)();let s;if((0,F.cu)(e)){if(s=(0,F.sS)(e),this.isVisuallyIdenticalAnnotationCached({annotation:e,providedVisualAnnotationIndex:s,width:n,height:a}))return this.cachedRenderedAnnotationDiscardablePromise(s,i);this._addCachedRenderedAnnotation(s,{width:n,height:a,noZoom:e.noZoom,APStreamPromise:i.promise})}const r=(0,l.Z0)(),c=new B(r,(()=>this.client.renderDetachedAnnotation((0,N.eq)(e),t,n,a,(0,D.LG)()).then((e=>e?(0,C.vB)({buffer:e,width:n,height:a}):Promise.resolve(null))).then((t=>((0,F.cu)(e)&&this._makeEnqueuedRelease(t,s),i.resolve(t),t))).catch((()=>{const e=this._cachedRenderedAnnotations.get(s);e&&e.timeout&&clearTimeout(e.timeout),this._cachedRenderedAnnotations.delete(s)})))),{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:s}=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)(s?.map((e=>(0,N.h8)((0,F.K1)(),e)))||[])}}async search(e,t,n,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:f.n.TEXT;const o=await this.client.search(e,t,n,a,s);return(0,x.g)(o.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,o.V1)(e),(0,U.a)(e))));return new A.A({...(0,F.mN)(n),...t.annotationPreset,pageIndex:e.pageIndex,rects:i,boundingBox:v.A.union(i)})})))}async exportPDF(){let{flatten:e=!1,incremental:t,saveForPrinting:n=!1,format:a="pdf",excludeAnnotations:i=!1,preserveInstantJSONChanges:s=!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 o.uE("Cannot set `flattenElectronicSignatures` to `false` when `flatten` is set to `true`.");if(c&&"boolean"!=typeof c&&c.conformance&&(0,o.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,s,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 n;try{return n=await this._setupGdPictureClient(),await n.toPdf(t,e)}finally{n?.destroy(),(0,O.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 o.uE(`Exporting to ${n} failed: ${e.message}.`)}finally{t?.destroy(),(0,O.Pm)(null)}}async _setupGdPictureClient(){let e=(0,O.jU)();return e||(e=(0,O.NY)({baseUrl:this._state.baseProcessorEngineUrl,mainThreadOrigin:this._state.appName||(0,T.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,O.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((s=>{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),s(e)}))})),revoke:()=>{e&&window.URL.revokeObjectURL(e),i=!0}}}async getDocumentOutline(){const e=await this.client.getDocumentOutline();return(0,r.B8)(e.map(E.r))}async setDocumentOutline(e){return this.client.setDocumentOutline(e.map(E.U).toArray())}async getPageGlyphs(e){const t=await this.client.getPageGlyphs(e);return(0,N.Fj)(t)}async onKeystrokeEvent(e){return await this.client.onKeystrokeEvent(e)}async evalFormValuesActions(e){return this.client.evalFormValuesActions(e.map(N.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,k.t)(e);await this.client.applyOperations(t,n)}catch(e){throw new o.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 o.uE(`Applying redactions failed: ${e}`)}return this.reloadDocument()}async reloadDocument(){try{this.provider?.destroy(),this.provider=new G(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 o.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,k.t)(e);return this.client.exportPDFWithOperations(t,n)}catch(e){throw new o.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,N.N5)(e)));if(a.signatures?.find((e=>e.certificateChainValidationStatus===S.k5.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 o.uE(`Setting signatures LTV failed: ${e}`)}}getSignaturesInfo(){try{if(this._state.signaturesInfoPromise)return this._state.signaturesInfoPromise;const e=this.client.getSignaturesInfo().then((e=>(0,N.N5)(e)));return this._state=this._state.set("signaturesInfoPromise",e),e}catch(e){throw new o.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:s}=e;try{const e=await fetch(n,{method:t,headers:{"Content-Type":a??"application/ocsp-request"},body:c.o4.toUint8Array(i).buffer}),o=await e.arrayBuffer();return{response_code:e.status,body:c.o4.fromUint8Array(new Uint8Array(o)),token:s}}catch(e){return{response_code:0,body:"",token:s,error_message:e.message}}})))}async signDocumentAndReload(e,t){(0,o.V1)(void 0===t||"function"==typeof t||(0,w.kJ)(t),"On a Standalone deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a function or `NutrientViewer.StandaloneSigningServiceData` if provided.");const n=(0,w.kJ)(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){return this.client.runPDFFormattingScripts(e,t)}async runPDFFormattingScriptsFromWidgets(e,t,n){let a=[];if(this._isPDFJavaScriptEnabled){const{withAPStream:i,withoutAPStream:s}=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 o=[];if(i.length&&!s.length)o=await this.runPDFFormattingScripts(i,!0);else if(!i.length&&s.length)o=await this.runPDFFormattingScripts(s,!1);else if(i.length&&s.length){const[e,t]=await Promise.all([this.runPDFFormattingScripts(i,!0),this.runPDFFormattingScripts(s,!1)]);o=e.concat(t)}a=(0,I.A5)(this._initialChanges,o)}return a}setFontSubstitutions(e){return this.client.setFontSubstitutions(e)}async contentEditorReload(){return(0,o.V1)(this.provider instanceof G,"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,N.eq)(e),t,n)}async timestampData(e,t){const{url:n,username:a="",password:i=""}=t,s=c.o4.fromUint8Array(new Uint8Array(e));try{const e=await this.client.getTimestampRequest(s,{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 ce(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 _.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}}function le(e){const{licenseKey:t,instantJSON:n,XFDF:a,disableWebAssemblyStreaming:i,disableIndexedDBCaching:s,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}=e;if((0,o.V1)("string"==typeof u,"`baseUrl` is mandatory and must be a valid URL, e.g. `https://example.com/"),(0,R.f4)(u),(0,o.V1)(!m||"string"==typeof m,"`baseCoreUrl` must be a valid URL if set, e.g. `https://example.com/"),m&&(0,R.Qo)(m),(0,o.V1)(!h||"string"==typeof h,"`baseProcessorEngineUrl` must be a valid URL if set, e.g. `https://example.com/"),h&&(0,R.hc)(h),(0,o.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,o.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,o.V1)(void 0===a||"string"==typeof a,"XFDF must be a string"),n&&((0,o.yj)(n),(0,o.V1)(void 0===a,"Cannot import from both instantJSON and XFDF")),(0,o.V1)(void 0===i||"boolean"==typeof i,"disableWebAssemblyStreaming must be a boolean"),(0,o.V1)(void 0===r||"boolean"==typeof r,"enableAutomaticLinkExtraction must be a boolean"),(0,o.V1)(void 0===c||"number"==typeof c,"overrideMemoryLimit must be a number"),(0,o.V1)(void 0===l||"number"==typeof l&&l>=0,"standaloneInstancesPoolSize must be a non-negative number"),(0,o.V1)(void 0===d||"function"==typeof d,"trustedCAsCallback must be a function"),(0,o.V1)(void 0===p||Array.isArray(p)&&p.every((e=>e instanceof _.A)),"customFonts must be an array of NutrientViewer.Font instances"),(0,o.V1)(void 0===p||p.every((e=>e.callback)),"All NutrientViewer.Font instances specified on customFonts must have its callback property defined"),void 0!==s&&(0,o.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,o.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,o.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 o.uE("dynamicFonts must be a valid URL to a JSON file containing the data for fonts to be dynamically loaded.")}(0,o.V1)(void 0===b||"boolean"==typeof b,"inlineWorkers must be a boolean"),A&&(0,o.V1)(void 0===A.export?.disableComboBoxArrow||"boolean"==typeof A.export?.disableComboBoxArrow,"formsConfiguration.export.disableComboBoxArrow must be a boolean")}},40927:(e,t,n)=>{n.d(t,{r:()=>o});var a=n(49568);class i extends(a.mS({id:"",attachmentId:"",description:null,fileName:null,fileSize:null,updatedAt:null})){}var s=n(46952);function o(e,t){return function(e,t){return t}(0,arguments.length>2&&void 0!==arguments[2]&&arguments[2])?new i({id:(0,s.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),s=n(6085),o=n(16792),r=n(76117);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,o.J)(e.color),isBold:e.isBold,isItalic:e.isItalic,isExpanded:e.isExpanded,action:e.action&&(0,s.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,s._8)(e.action)}catch(t){(0,a.R8)(`PDF Action not supported ${JSON.stringify(e.action)})`)}try{n=e.color&&(0,o.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:()=>s});var a=n(85409);function i(e,t,n,a,i,s){let o;return e.has(n)?o=e.get(n):(o=i.toString(),t[o]=n,e.set(n,o)),{...a,[s]:o}}async function s(e){const t=new WeakMap,n={};return{processedOperations:await Promise.all(e.map((async(e,s)=>{if("importDocument"===e.type){const{document:o}=e;return(0,a.V1)(o instanceof File||o instanceof Blob,"Wrong `importDocument` operation `document` value: it must be a File or a Blob"),i(t,n,o,e,s,"document")}if("applyInstantJson"===e.type){const o=e.instantJson;(0,a.V1)("object"==typeof o&&null!==o,"Wrong `applyInstantJson` operation `instantJson` value: it must be an object");const r=JSON.stringify(o),c=new Blob([r],{type:"application/json"});return i(t,n,c,e,s,"dataFilePath")}if("applyXfdf"===e.type){const o=e.xfdf;(0,a.V1)("string"==typeof o,"Wrong `applyXfdf` operation `xfdf` value: it must be a string");const r=new Blob([o],{type:"application/vnd.adobe.xfdf"});return i(t,n,r,e,s,"dataFilePath")}return e}))),operationsDocuments:n}}},47159:(e,t,n)=>{n.d(t,{g:()=>r});var a=n(49568),i=n(85409),s=n(5293),o=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 o.A({pageIndex:e.pageIndex,previewText:e.previewText,locationInPreview:e.rangeInPreview[0],lengthInPreview:e.rangeInPreview[1],rectsOnPage:(0,a.B8)(e.rectsOnPage).map((e=>(0,s.a)(e))),isAnnotation:!!e.isAnnotation,annotationRect:e.annotationRect?(0,s.a)(e.annotationRect):null})))).filter(Boolean))}}}]);