@file-viewer/renderer-pdf 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -1,7 +1,95 @@
1
1
  # @file-viewer/renderer-pdf
2
2
 
3
- Runtime package version 3.2.1.
3
+ [English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.zh-CN.md)
4
4
 
5
- Usage and API documentation: https://doc.file-viewer.app/guide/on-demand-renderers
5
+ Cold-network loading starts the real Worker directly, without a duplicate version-probe request.
6
+ PDF.js checks API compatibility before parsing. Mismatched workers are destroyed and retried
7
+ with the bundled matching handler without losing transferred input. Main-thread fallbacks
8
+ use asynchronous resource fetching instead of synchronous binary XHR.
6
9
 
7
- The package's own license is Apache-2.0. Included third-party notices apply to their respective components.
10
+ Standalone PDF renderer package for Flyfish File Viewer. It is powered by PDF.js and provides page rendering, navigation, outline, search, zoom, print, and HTML export support.
11
+
12
+ ## Usage
13
+
14
+ ```ts
15
+ import FileViewer from '@file-viewer/vue3'
16
+ import { pdfRenderer } from '@file-viewer/renderer-pdf'
17
+
18
+ const options = {
19
+ rendererMode: 'replace',
20
+ renderers: pdfRenderer,
21
+ }
22
+ ```
23
+
24
+ You can combine it with other renderer packages:
25
+
26
+ ```ts
27
+ const options = {
28
+ rendererMode: 'replace',
29
+ renderers: [pdfRenderer],
30
+ }
31
+ ```
32
+
33
+ ## PDF URL loading
34
+
35
+ The standard PDF renderer accepts URL sources across Vanilla/Web Component, React, Svelte, jQuery and Vue. `pdf.streaming` defaults to `'same-origin'`; use `true` for a CORS-enabled cross-origin or signed URL and supply `filename: 'document.pdf'` or `type: 'pdf'` when the URL has no extension. The renderer gives that URL directly to PDF.js without a complete core prefetch. Range requests require server support and, across origins, exposed `Accept-Ranges`, `Content-Length` and `Content-Range` response headers.
36
+
37
+ `pdf.streaming: false` downloads the file once before rendering. Explicit buffers/files and a caller-supplied `fetchFile` hook keep their byte-acquisition precedence; an original URL remains metadata and does not trigger another PDF.js download. Custom buffer-only renderers also keep their declared contract. PDF.js streaming may continue fetching in the background. To load only demanded ranges, set both `pdf.disableStream: true` and `pdf.disableAutoFetch: true`; disabling auto-fetch requires disabling streaming, and both options retain PDF.js defaults when omitted.
38
+
39
+ ## Reading theme
40
+
41
+ Live updates without reloading apply to the renderer's observed theme attributes, system color scheme and the Vanilla core theme update path. Framework component and toolbar/controller option updates may reinitialize the preview.
42
+
43
+ PDF pages follow `options.theme` (`light`, `dark`, or `system`), including live theme changes. Dark reading uses a preview-only canvas color filter; it also changes image colors. Set `pdf.darkMode: false` to keep the document's original colors, or `true` to force dark reading independently of the toolbar. Original downloads, printed pages, and exported canvas bytes retain their source colors.
44
+
45
+ ## Offline Assets
46
+
47
+ PDF preview depends on the PDF.js worker, cMaps, WASM helpers, standard fonts, and an offline fallback for unembedded CJK fonts. Asset paths use the same unified options as `@file-viewer/core`:
48
+
49
+ ```ts
50
+ const options = {
51
+ renderers: pdfRenderer,
52
+ pdf: {
53
+ assetBaseUrl: '/workspace/',
54
+ workerUrl: '/vendor/pdf/pdf.worker.mjs',
55
+ cMapUrl: '/vendor/pdf/cmaps/',
56
+ wasmUrl: '/vendor/pdf/wasm/',
57
+ standardFontDataUrl: '/vendor/pdf/standard_fonts/',
58
+ cjkFontFallbackPath: '/vendor/pdf/fonts/',
59
+ identityFontRepair: true,
60
+ },
61
+ }
62
+ ```
63
+
64
+ When no explicit PDF asset URL is configured, the renderer first uses the public base exposed by build tools such as Vite and can fall back to the page entry script. An app deployed under `/workspace/` therefore still requests `/workspace/vendor/pdf/pdf.worker.mjs` while its current SPA route is `/workspace/c/`. UMI, custom proxies, and builds whose public path cannot be detected can set `pdf.assetBaseUrl: '/workspace/'` to pin the base for every PDF offline asset. The real Worker checks API compatibility before parsing. An incompatible Worker is destroyed and retried with the packaged matching handler, without a separate version-probe request. If the host app did not run `file-viewer-copy-assets`, does not use `@file-viewer/vite-plugin`, or a local dev server falls back to HTML for that path, the same fallback prevents `Setting up fake worker failed`. For best performance, complete cMap/standard-font/WASM decoding, or strict offline deployments, still copy viewer assets and point these URLs at real static files. The pinned PDF.js 5.4 stable line loads local JBIG2, JPEG 2000, color-management, and related helpers through `wasmUrl`; viewer assets and the Vite plugin copy them without relying on the public internet.
65
+
66
+ `cjkFontFallback` is enabled by default. When a PDF references `MicrosoftYaHei-Bold`, SimSun, SimHei, or another CJK font without embedding the font program, the renderer prefers an installed system font and otherwise aliases the original PDF font name to the local Noto Sans SC variable font supplied by `@file-viewer/assets-standard`. The Vite plugin reuses that standard asset set instead of packing a second font copy into the renderer. Only WOFF2 shards needed by the current page text are loaded. The first page waits for the font before rendering, and later pages are redrawn when they introduce new glyphs. Set the option to `false` to disable this behavior, or point `cjkFontFallbackPath` at a self-hosted directory with the same structure.
67
+
68
+ `identityFontRepair` is also enabled by default for malformed PDFs that write TrueType glyph IDs through `Identity-H`/`Identity-V` but omit `ToUnicode`. The repair module is loaded only after CJK font substitution and multiple control-character glyphs are detected. If the same PDF embeds a usable same-family TrueType font, its cmap is used to rebuild the Unicode mapping for the in-memory preview. The repair is applied only to a preview copy and never overwrites the original file or download source; an unsafe or unsupported repair falls back to the original preview. Set the option to `false` to disable this compatibility path.
69
+
70
+ ## Migration Note
71
+
72
+ PDF rendering has moved out of `@file-viewer/core` into this package, and `pdfjs-dist` is now declared only by `@file-viewer/renderer-pdf`. Installing core or a standard component package no longer pulls PDF.js; explicitly assemble this renderer when PDF preview is needed, or use `@file-viewer/preset-all`.
73
+
74
+ The published renderer stages its Apache-2.0 PDF.js runtime under `dist/vendor/pdfjs` and isolates PDF.js' internal webpack bootstrap before packing. `provenance.json` records source hashes after the declared patches, transform counts, and staged output hashes, so webpack 4 consumers do not need a loader for renderer-internal paths.
75
+
76
+ The staged runtime also includes a PDF.js 5.4.624 document-startup cancellation patch. It prevents unhandled promise rejections when switching files during main-thread fallback initialization; active parsing and password errors remain visible. The patch is included under `dist/vendor/pdfjs/patches/` with its hash in `provenance.json`. `pnpm verify:worker-lifecycle` tests cancellation, subsequent rendering, and invalid-file errors in both real and main-thread Workers on Chromium and WebKit.
77
+
78
+ ## Mouse panning
79
+
80
+ `options.pdf.handTool: true` enables mouse drag-to-pan in the PDF viewport. It is
81
+ `false` by default, preserving text selection. Touch scrolling/pinch, links, form
82
+ fields, scrollbars, and modified clicks retain their native behavior.
83
+
84
+ ```ts
85
+ const options = { pdf: { handTool: true } }
86
+ ```
87
+
88
+ ## Page orientation and print output
89
+
90
+ A page's stored PDF rotation is combined with the viewer's rotation offset in
91
+ fit calculations, sidebar/first-page thumbnails, exported images, and printing.
92
+ The view-state `rotation` field remains the viewer offset, not the stored page
93
+ rotation. Mixed page sizes and orientations use individual CSS page rules for
94
+ printing; no source PDF bytes are modified. Printer-dialog overrides may still
95
+ force a uniform paper size.
package/README.md CHANGED
@@ -1,7 +1,95 @@
1
1
  # @file-viewer/renderer-pdf
2
2
 
3
- Runtime package version 3.2.1.
3
+ [English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.zh-CN.md)
4
4
 
5
- Usage and API documentation: https://doc.file-viewer.app/guide/on-demand-renderers
5
+ Cold-network loading starts the real Worker directly, without a duplicate version-probe request.
6
+ PDF.js checks API compatibility before parsing. Mismatched workers are destroyed and retried
7
+ with the bundled matching handler without losing transferred input. Main-thread fallbacks
8
+ use asynchronous resource fetching instead of synchronous binary XHR.
6
9
 
7
- The package's own license is Apache-2.0. Included third-party notices apply to their respective components.
10
+ Standalone PDF renderer package for Flyfish File Viewer. It is powered by PDF.js and provides page rendering, navigation, outline, search, zoom, print, and HTML export support.
11
+
12
+ ## Usage
13
+
14
+ ```ts
15
+ import FileViewer from '@file-viewer/vue3'
16
+ import { pdfRenderer } from '@file-viewer/renderer-pdf'
17
+
18
+ const options = {
19
+ rendererMode: 'replace',
20
+ renderers: pdfRenderer,
21
+ }
22
+ ```
23
+
24
+ You can combine it with other renderer packages:
25
+
26
+ ```ts
27
+ const options = {
28
+ rendererMode: 'replace',
29
+ renderers: [pdfRenderer],
30
+ }
31
+ ```
32
+
33
+ ## PDF URL loading
34
+
35
+ The standard PDF renderer accepts URL sources across Vanilla/Web Component, React, Svelte, jQuery and Vue. `pdf.streaming` defaults to `'same-origin'`; use `true` for a CORS-enabled cross-origin or signed URL and supply `filename: 'document.pdf'` or `type: 'pdf'` when the URL has no extension. The renderer gives that URL directly to PDF.js without a complete core prefetch. Range requests require server support and, across origins, exposed `Accept-Ranges`, `Content-Length` and `Content-Range` response headers.
36
+
37
+ `pdf.streaming: false` downloads the file once before rendering. Explicit buffers/files and a caller-supplied `fetchFile` hook keep their byte-acquisition precedence; an original URL remains metadata and does not trigger another PDF.js download. Custom buffer-only renderers also keep their declared contract. PDF.js streaming may continue fetching in the background. To load only demanded ranges, set both `pdf.disableStream: true` and `pdf.disableAutoFetch: true`; disabling auto-fetch requires disabling streaming, and both options retain PDF.js defaults when omitted.
38
+
39
+ ## Reading theme
40
+
41
+ Live updates without reloading apply to the renderer's observed theme attributes, system color scheme and the Vanilla core theme update path. Framework component and toolbar/controller option updates may reinitialize the preview.
42
+
43
+ PDF pages follow `options.theme` (`light`, `dark`, or `system`), including live theme changes. Dark reading uses a preview-only canvas color filter; it also changes image colors. Set `pdf.darkMode: false` to keep the document's original colors, or `true` to force dark reading independently of the toolbar. Original downloads, printed pages, and exported canvas bytes retain their source colors.
44
+
45
+ ## Offline Assets
46
+
47
+ PDF preview depends on the PDF.js worker, cMaps, WASM helpers, standard fonts, and an offline fallback for unembedded CJK fonts. Asset paths use the same unified options as `@file-viewer/core`:
48
+
49
+ ```ts
50
+ const options = {
51
+ renderers: pdfRenderer,
52
+ pdf: {
53
+ assetBaseUrl: '/workspace/',
54
+ workerUrl: '/vendor/pdf/pdf.worker.mjs',
55
+ cMapUrl: '/vendor/pdf/cmaps/',
56
+ wasmUrl: '/vendor/pdf/wasm/',
57
+ standardFontDataUrl: '/vendor/pdf/standard_fonts/',
58
+ cjkFontFallbackPath: '/vendor/pdf/fonts/',
59
+ identityFontRepair: true,
60
+ },
61
+ }
62
+ ```
63
+
64
+ When no explicit PDF asset URL is configured, the renderer first uses the public base exposed by build tools such as Vite and can fall back to the page entry script. An app deployed under `/workspace/` therefore still requests `/workspace/vendor/pdf/pdf.worker.mjs` while its current SPA route is `/workspace/c/`. UMI, custom proxies, and builds whose public path cannot be detected can set `pdf.assetBaseUrl: '/workspace/'` to pin the base for every PDF offline asset. The real Worker checks API compatibility before parsing. An incompatible Worker is destroyed and retried with the packaged matching handler, without a separate version-probe request. If the host app did not run `file-viewer-copy-assets`, does not use `@file-viewer/vite-plugin`, or a local dev server falls back to HTML for that path, the same fallback prevents `Setting up fake worker failed`. For best performance, complete cMap/standard-font/WASM decoding, or strict offline deployments, still copy viewer assets and point these URLs at real static files. The pinned PDF.js 5.4 stable line loads local JBIG2, JPEG 2000, color-management, and related helpers through `wasmUrl`; viewer assets and the Vite plugin copy them without relying on the public internet.
65
+
66
+ `cjkFontFallback` is enabled by default. When a PDF references `MicrosoftYaHei-Bold`, SimSun, SimHei, or another CJK font without embedding the font program, the renderer prefers an installed system font and otherwise aliases the original PDF font name to the local Noto Sans SC variable font supplied by `@file-viewer/assets-standard`. The Vite plugin reuses that standard asset set instead of packing a second font copy into the renderer. Only WOFF2 shards needed by the current page text are loaded. The first page waits for the font before rendering, and later pages are redrawn when they introduce new glyphs. Set the option to `false` to disable this behavior, or point `cjkFontFallbackPath` at a self-hosted directory with the same structure.
67
+
68
+ `identityFontRepair` is also enabled by default for malformed PDFs that write TrueType glyph IDs through `Identity-H`/`Identity-V` but omit `ToUnicode`. The repair module is loaded only after CJK font substitution and multiple control-character glyphs are detected. If the same PDF embeds a usable same-family TrueType font, its cmap is used to rebuild the Unicode mapping for the in-memory preview. The repair is applied only to a preview copy and never overwrites the original file or download source; an unsafe or unsupported repair falls back to the original preview. Set the option to `false` to disable this compatibility path.
69
+
70
+ ## Migration Note
71
+
72
+ PDF rendering has moved out of `@file-viewer/core` into this package, and `pdfjs-dist` is now declared only by `@file-viewer/renderer-pdf`. Installing core or a standard component package no longer pulls PDF.js; explicitly assemble this renderer when PDF preview is needed, or use `@file-viewer/preset-all`.
73
+
74
+ The published renderer stages its Apache-2.0 PDF.js runtime under `dist/vendor/pdfjs` and isolates PDF.js' internal webpack bootstrap before packing. `provenance.json` records source hashes after the declared patches, transform counts, and staged output hashes, so webpack 4 consumers do not need a loader for renderer-internal paths.
75
+
76
+ The staged runtime also includes a PDF.js 5.4.624 document-startup cancellation patch. It prevents unhandled promise rejections when switching files during main-thread fallback initialization; active parsing and password errors remain visible. The patch is included under `dist/vendor/pdfjs/patches/` with its hash in `provenance.json`. `pnpm verify:worker-lifecycle` tests cancellation, subsequent rendering, and invalid-file errors in both real and main-thread Workers on Chromium and WebKit.
77
+
78
+ ## Mouse panning
79
+
80
+ `options.pdf.handTool: true` enables mouse drag-to-pan in the PDF viewport. It is
81
+ `false` by default, preserving text selection. Touch scrolling/pinch, links, form
82
+ fields, scrollbars, and modified clicks retain their native behavior.
83
+
84
+ ```ts
85
+ const options = { pdf: { handTool: true } }
86
+ ```
87
+
88
+ ## Page orientation and print output
89
+
90
+ A page's stored PDF rotation is combined with the viewer's rotation offset in
91
+ fit calculations, sidebar/first-page thumbnails, exported images, and printing.
92
+ The view-state `rotation` field remains the viewer offset, not the stored page
93
+ rotation. Mixed page sizes and orientations use individual CSS page rules for
94
+ printing; no source PDF bytes are modified. Printer-dialog overrides may still
95
+ force a uniform paper size.
@@ -0,0 +1,92 @@
1
+ # @file-viewer/renderer-pdf
2
+
3
+ [English](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.md) · [简体中文](https://github.com/flyfish-dev/file-viewer/blob/main/packages/renderers/pdf/README.zh-CN.md)
4
+
5
+ Flyfish File Viewer 的独立 PDF renderer 包,基于 PDF.js,提供 PDF 页面渲染、导航、目录、搜索、缩放、打印和 HTML 导出能力。
6
+
7
+ ## 用法
8
+
9
+ ```ts
10
+ import FileViewer from '@file-viewer/vue3'
11
+ import { pdfRenderer } from '@file-viewer/renderer-pdf'
12
+
13
+ const options = {
14
+ rendererMode: 'replace',
15
+ renderers: pdfRenderer,
16
+ }
17
+ ```
18
+
19
+ 也可以和其他 renderer 一起组合:
20
+
21
+ ```ts
22
+ const options = {
23
+ rendererMode: 'replace',
24
+ renderers: [pdfRenderer],
25
+ }
26
+ ```
27
+
28
+ ## PDF URL 读取
29
+
30
+ 标准 PDF 渲染器在 Vanilla/Web Component、React、Svelte、jQuery 和 Vue 使用相同的 URL 策略。`pdf.streaming` 默认 `same-origin`;跨域或签名 URL 可显式设为 `true`,无扩展名 URL 同时提供 `filename: 'document.pdf'` 或 `type: 'pdf'`。此时直接交给 PDF.js,不先在 core 完整下载。Range 需要服务端支持;跨域还须通过 CORS 暴露 `Accept-Ranges`、`Content-Length`、`Content-Range`。
31
+
32
+ `pdf.streaming: false` 会先下载一次再预览。显式 buffer/file、自定义 `fetchFile` 仍优先提供字节;原 URL 保留为元数据,不会触发 PDF.js 重复下载。自定义仅支持 buffer 的渲染器继续遵循其能力声明。PDF.js 默认可在后台继续取流;如需仅按需读取 Range,同时设置 `pdf.disableStream: true` 和 `pdf.disableAutoFetch: true`。禁用自动预取需要同时禁用流读取;未配置时保留 PDF.js 默认值。
33
+
34
+ ## 深色阅读
35
+
36
+ 无需重载的实时更新适用于 renderer 观察到的主题属性、系统配色及 Vanilla core 的主题更新路径。框架组件与工具栏/controller 的选项更新可能重新初始化预览。
37
+
38
+ PDF 正文跟随 `options.theme`(`light`、`dark`、`system`),支持实时切换。深色阅读只在预览画布上应用颜色滤镜,图片颜色也会随之变化;需要保持原始配色时设置 `pdf.darkMode: false`,设为 `true` 则可独立强制深色阅读。原文件下载、打印和导出的画布像素仍保持原始颜色。
39
+
40
+ ## 离线资源
41
+
42
+ PDF 预览依赖 PDF.js worker、cMaps、WASM、standard fonts,以及未嵌入中文字体的离线回退资源。资源路径沿用 `@file-viewer/core` 的统一 options:
43
+
44
+ ```ts
45
+ const options = {
46
+ renderers: pdfRenderer,
47
+ pdf: {
48
+ assetBaseUrl: '/workspace/',
49
+ workerUrl: '/vendor/pdf/pdf.worker.mjs',
50
+ cMapUrl: '/vendor/pdf/cmaps/',
51
+ wasmUrl: '/vendor/pdf/wasm/',
52
+ standardFontDataUrl: '/vendor/pdf/standard_fonts/',
53
+ cjkFontFallbackPath: '/vendor/pdf/fonts/',
54
+ identityFontRepair: true,
55
+ },
56
+ }
57
+ ```
58
+
59
+ 默认未显式配置时,渲染器优先使用 Vite 等构建器提供的公开基址,并可从页面入口脚本回退识别部署子路径。因此应用部署在 `/workspace/`、当前 SPA 路由为 `/workspace/c/` 时,仍会请求 `/workspace/vendor/pdf/pdf.worker.mjs`。UMI、自定义代理或无法自动识别的构建环境可以设置 `pdf.assetBaseUrl: '/workspace/'` 固定全部 PDF 离线资源的基址。真实 Worker 在解析前通过 PDF.js API 握手确认版本;旧版本不匹配时会被销毁,并安全重试包内同版本 handler,不额外发送版本探测请求。项目未执行 `file-viewer-copy-assets`、未使用 `@file-viewer/vite-plugin`,或本地临时服务器把该路径回退成 HTML 时,也会使用同一兜底,避免 `Setting up fake worker failed` 直接中断预览。需要最佳性能、完整 cMap/standard fonts/WASM 解码或严格离线部署时,仍建议复制 viewer assets 并配置真实静态地址。当前锁定的 PDF.js 5.4 稳定线会通过 `wasmUrl` 本地加载 JBIG2、JPEG 2000、颜色管理等辅助资源;这些资源由 viewer assets 和 Vite 插件统一复制,不依赖公网。
60
+
61
+ `cjkFontFallback` 默认开启。PDF 引用了 `MicrosoftYaHei-Bold`、宋体、黑体或其他中文字体但没有嵌入字体数据时,渲染器优先使用本机字体;本机缺失时,会把原 PDF 字体名映射到 `@file-viewer/assets-standard` 提供的本地 Noto Sans SC 可变字体,并根据当前页实际文字只加载需要的 WOFF2 分片。Vite 插件会优先复用这份标准资源,避免在 renderer 中重复打包字体。首屏会在字体就绪后再渲染,后续页发现新字形时会自动重绘。可设为 `false` 完全关闭,或用 `cjkFontFallbackPath` 指向同结构的自托管字体目录。
62
+
63
+ `identityFontRepair` 也默认开启,用于少数把 TrueType 字形 ID 写入 `Identity-H`/`Identity-V`、却遗漏 `ToUnicode` 的异常 PDF。只有检测到中文字体替换和多个控制字符乱码时,渲染器才会懒加载修复模块;若文件内同时嵌入了可用的同族 TrueType 字体,就从其 cmap 重建内存预览所需的 Unicode 映射。修复只作用于预览副本,不覆盖原始文件和下载源;无法安全修复时继续使用原预览。可设为 `false` 关闭。
64
+
65
+ ## 迁移说明
66
+
67
+ 直接启动真实 Worker,不再额外读取版本前缀或重复下载 Worker。
68
+ PDF.js 在解析前通过 API 握手检查版本;不匹配时销毁旧 Worker,并用保留的输入安全重试包内同版本回退。
69
+ 主线程回退使用异步资源读取,不依赖窗口中不允许的同步二进制 XHR。
70
+
71
+ PDF 渲染已经从 `@file-viewer/core` 移入本包,`pdfjs-dist` 只由 `@file-viewer/renderer-pdf` 声明。只安装 core 或标准组件包时不会再拉取 PDF.js;需要 PDF 预览时请显式装配本 renderer,或使用 `@file-viewer/preset-all`。
72
+
73
+ 发布产物会把 Apache-2.0 的 PDF.js runtime 内封到 `dist/vendor/pdfjs`,并在打包前隔离 PDF.js 内部 webpack bootstrap。`provenance.json` 会记录应用声明补丁后的源文件哈希、变换次数和产物哈希,因此 webpack 4 消费项目不需要再为 renderer 内部路径配置 loader。
74
+
75
+ 内封运行时还包含 PDF.js 5.4.624 的文档初始化取消补丁,避免快速切换文件时主线程降级路径产生未处理的 Promise 异常;正常解析和密码错误仍会报告。补丁原文保留在 `dist/vendor/pdfjs/patches/`,其哈希记入 `provenance.json`。`pnpm verify:worker-lifecycle` 使用 Chromium/WebKit 分别验证真实 Worker 和主线程降级路径的取消、后续渲染及损坏文件报错。
76
+
77
+ ## 鼠标拖拽浏览
78
+
79
+ 设置 `options.pdf.handTool: true`,可在 PDF 阅读区按住鼠标左键拖动页面。默认关闭,
80
+ 保留原有文字选择行为。触摸滚动与双指缩放、链接、表单控件、滚动条及带修饰键的操作
81
+ 保持原生行为。
82
+
83
+ ```ts
84
+ const options = { pdf: { handTool: true } }
85
+ ```
86
+
87
+ ## 页面方向与打印
88
+
89
+ 适配缩放、侧栏和首页缩略图、导出图片及打印均叠加 PDF 页面原有旋转角度
90
+ 与查看器旋转偏移。视图状态中的 `rotation` 仍表示查看器偏移,不包含文件
91
+ 中的原始旋转。混合尺寸和方向的页面使用独立 CSS 页面规则打印,不改写
92
+ 源 PDF。打印对话框的纸张覆盖设置仍可能强制统一尺寸。
package/dist/index.js CHANGED
@@ -4,7 +4,10 @@ const pdfDefinition = DEFAULT_RENDERER_DEFINITIONS.find(definition => definition
4
4
  if (!pdfDefinition) {
5
5
  throw new Error('@file-viewer/renderer-pdf could not locate the core PDF renderer definition.');
6
6
  }
7
- export const pdfRendererDefinition = pdfDefinition;
7
+ export const pdfRendererDefinition = {
8
+ ...pdfDefinition,
9
+ sourceAccess: 'stream-preferred',
10
+ };
8
11
  export const renderFileViewerPdf = (buffer, target, _type, context) => import('./pdf.js').then(({ default: renderPdf }) => renderPdf(buffer, target, context));
9
12
  export const pdfRenderer = {
10
13
  id: 'file-viewer-renderer-pdf',
package/dist/pdf.js CHANGED
@@ -2,7 +2,7 @@ import { installPdfHandTool } from './pdfHandTool.js';
2
2
  import { scrollPdfPageWithinContainer } from './pdfPageScroll.js';
3
3
  import { getDocument, GlobalWorkerOptions, PDFWorker as PdfJsWorker, PixelsPerInch, version as pdfJsVersion, } from './vendor/pdfjs/legacy/build/pdf.mjs';
4
4
  import { EventBus, GenericL10n, PDFFindController, PDFLinkService, PDFViewer, } from './vendor/pdfjs/legacy/web/pdf_viewer.mjs';
5
- import { registerFileViewerSearchProvider, registerFileViewerZoomProvider, unregisterFileViewerSearchProvider, unregisterFileViewerZoomProvider, registerFileViewerViewStateProvider, unregisterFileViewerViewStateProvider, createFileViewerZoomChangeEmitter, createFileViewerViewStateChange, createFileViewerViewStateChangeEmitter, createFileViewerTranslator, buildPrintPageStyle, formatCssPixels, DEFAULT_PDF_RANGE_CHUNK_SIZE, resolveFileViewerLocale, resolveFileViewerFitScale, } from '@file-viewer/core';
5
+ import { registerFileViewerSearchProvider, registerFileViewerZoomProvider, unregisterFileViewerSearchProvider, unregisterFileViewerZoomProvider, registerFileViewerViewStateProvider, unregisterFileViewerViewStateProvider, createFileViewerZoomChangeEmitter, createFileViewerViewStateChange, createFileViewerViewStateChangeEmitter, createFileViewerTranslator, observeFileViewerColorScheme, buildPrintPageStyle, formatCssPixels, DEFAULT_PDF_RANGE_CHUNK_SIZE, resolveFileViewerLocale, resolveFileViewerFitScale, } from '@file-viewer/core';
6
6
  import { DEFAULT_FILE_VIEWER_PDF_WORKER_PATH, resolveFileViewerPdfAssetUrls, resolveFileViewerRuntimeAssetBaseUrl, } from '@file-viewer/core/assets';
7
7
  import { pdfViewerStyle } from './pdfStyles.js';
8
8
  import { collectMalformedIdentityFontNames, createPdfCjkFontFallbackManager, detectMalformedIdentityCjkFontFamilies, } from './pdfFontFallback.js';
@@ -11,6 +11,7 @@ import { createPdfBoundingBoxController, } from './pdfBboxController.js';
11
11
  import { clampPdfScale, normalizePdfRotation, resolvePdfPageRotation, resolvePdfViewStateUpdate, } from './pdfViewState.js';
12
12
  import { capturePdfJsWorkerGlobal, scopePdfJsWorkerMessageHandler, } from './pdfWorkerGlobal.js';
13
13
  import { hasNativePdfWorkerPort, isPdfWorkerVersionMismatch } from './pdfWorkerProbe.js';
14
+ import { scopePdfJsWorkerHandlerCache } from './pdfWorkerCache.js';
14
15
  import { getFileViewerPdfIdentityFontRepair } from './optionalCapabilities.js';
15
16
  import { isExpectedPdfJsDestroyConsoleError } from './pdfConsoleLifecycle.js';
16
17
  export const DEFAULT_FILE_VIEWER_PDF_WORKER_URL = DEFAULT_FILE_VIEWER_PDF_WORKER_PATH;
@@ -36,6 +37,10 @@ const createStyle = (documentRef) => {
36
37
  .pdf-state[hidden],.pdf-nav-pane[hidden]{display:none!important}
37
38
  .pdf-page-button--with-thumbnail{grid-template-columns:52px minmax(0,1fr);min-height:74px}
38
39
  .pdf-page-thumb--thumbnail{width:46px;height:60px;overflow:hidden;background:#fff}
40
+ /* Reading colors affect presentation only, never canvas bytes or downloads. */
41
+ .pdf-shell[data-pdf-reading-theme='dark'] .canvasWrapper canvas{filter:invert(.9) hue-rotate(180deg)}
42
+ .pdf-shell[data-pdf-reading-theme='dark'] .pdfViewer .page{background:#1a1a1a}
43
+ @media print{.pdf-shell[data-pdf-reading-theme='dark'] .canvasWrapper canvas{filter:none}}
39
44
  .pdf-page-thumb--thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
40
45
  .pdf-page-thumb--thumbnail span{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}
41
46
  .pdf-bbox-layer{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:hidden}
@@ -216,9 +221,6 @@ const suppressPdfJsMissingSystemFontWarnings = (view) => {
216
221
  }, PDF_JS_DESTROY_CONSOLE_SUPPRESSION_MS);
217
222
  };
218
223
  };
219
- const isConfiguredUrl = (value) => {
220
- return value !== undefined && value !== null && String(value).trim().length > 0;
221
- };
222
224
  const loadBundledPdfWorkerModule = async () => {
223
225
  bundledPdfWorkerModulePromise !== null && bundledPdfWorkerModulePromise !== void 0 ? bundledPdfWorkerModulePromise : (bundledPdfWorkerModulePromise = import('./vendor/pdfjs/legacy/build/pdf.worker.mjs'));
224
226
  return bundledPdfWorkerModulePromise;
@@ -228,7 +230,9 @@ const createBundledPdfFakeWorker = async () => {
228
230
  const hostWorkerGlobal = capturePdfJsWorkerGlobal(workerGlobal);
229
231
  const workerModule = await loadBundledPdfWorkerModule();
230
232
  const workerHandlerScope = scopePdfJsWorkerMessageHandler(workerGlobal, workerModule.WorkerMessageHandler, hostWorkerGlobal);
233
+ let workerCacheScope;
231
234
  try {
235
+ workerCacheScope = scopePdfJsWorkerHandlerCache(PdfJsWorker, workerModule.WorkerMessageHandler);
232
236
  const worker = new PdfJsWorker({
233
237
  name: 'file-viewer-pdf-worker',
234
238
  });
@@ -236,7 +240,12 @@ const createBundledPdfFakeWorker = async () => {
236
240
  return worker;
237
241
  }
238
242
  finally {
239
- workerHandlerScope.restore();
243
+ try {
244
+ workerCacheScope === null || workerCacheScope === void 0 ? void 0 : workerCacheScope.restore();
245
+ }
246
+ finally {
247
+ workerHandlerScope.restore();
248
+ }
240
249
  }
241
250
  };
242
251
  const resolvePdfWorkerUrl = (options, documentBaseUrl) => {
@@ -256,7 +265,7 @@ const buildOutlineItems = (items, prefix = 'outline', getFallbackTitle = index =
256
265
  };
257
266
  });
258
267
  export default async function renderPdf(buffer, target, context) {
259
- var _a, _b, _c, _d, _e, _f;
268
+ var _a, _b, _c, _d, _e, _f, _g;
260
269
  const documentRef = target.ownerDocument || document;
261
270
  const targetWindow = documentRef.defaultView || (typeof window !== 'undefined' ? window : null);
262
271
  const t = createFileViewerTranslator(context === null || context === void 0 ? void 0 : context.options);
@@ -337,7 +346,14 @@ export default async function renderPdf(buffer, target, context) {
337
346
  }
338
347
  let pending = pdfCjkFontFallbackPageLoads.get(pageNumber);
339
348
  if (!pending) {
340
- pending = pdfCjkFontFallbackManager.ensurePage(page);
349
+ pending = ('getTextContent' in page
350
+ ? pdfCjkFontFallbackManager.ensurePage(page)
351
+ : pdfCjkFontFallbackManager.ensureTextContent(page)).then(loaded => {
352
+ if (!loaded && pdfCjkFontFallbackPageLoads.get(pageNumber) === pending) {
353
+ pdfCjkFontFallbackPageLoads.delete(pageNumber);
354
+ }
355
+ return loaded;
356
+ });
341
357
  pdfCjkFontFallbackPageLoads.set(pageNumber, pending);
342
358
  }
343
359
  return pending;
@@ -345,6 +361,10 @@ export default async function renderPdf(buffer, target, context) {
345
361
  const root = createElement(documentRef, 'div', 'pdf-shell');
346
362
  root.dataset.viewerSearchProvider = 'pdf';
347
363
  root.dataset.viewerZoomProvider = 'pdf';
364
+ const disposeReadingTheme = observeFileViewerColorScheme(target, (_d = context === null || context === void 0 ? void 0 : context.options) === null || _d === void 0 ? void 0 : _d.theme, theme => {
365
+ var _a;
366
+ root.dataset.pdfReadingTheme = ((_a = options === null || options === void 0 ? void 0 : options.darkMode) !== null && _a !== void 0 ? _a : theme === 'dark') ? 'dark' : 'light';
367
+ });
348
368
  const toolbar = createElement(documentRef, 'div', 'pdf-toolbar');
349
369
  const navToggleButton = createButton(documentRef, 'pdf-icon-button', t('pdf.toolbar.toggleNavigation'));
350
370
  navToggleButton.setAttribute('aria-pressed', String(navVisible));
@@ -373,7 +393,10 @@ export default async function renderPdf(buffer, target, context) {
373
393
  if (navigationEnabled) {
374
394
  toolbar.append(navToggleButton);
375
395
  }
376
- toolbar.append(pageGroup, zoomGroup, rotateGroup);
396
+ toolbar.append(pageGroup);
397
+ if ((options === null || options === void 0 ? void 0 : options.zoomToolbar) !== false)
398
+ toolbar.append(zoomGroup);
399
+ toolbar.append(rotateGroup);
377
400
  const content = createElement(documentRef, 'div', 'pdf-content');
378
401
  const navPane = createElement(documentRef, 'aside', 'pdf-nav-pane');
379
402
  const navHead = createElement(documentRef, 'div', 'pdf-nav-head');
@@ -405,7 +428,7 @@ export default async function renderPdf(buffer, target, context) {
405
428
  root.insertBefore(toolbar, content);
406
429
  }
407
430
  target.replaceChildren(createStyle(documentRef), root);
408
- const disposeHandTool = ((_e = (_d = context === null || context === void 0 ? void 0 : context.options) === null || _d === void 0 ? void 0 : _d.pdf) === null || _e === void 0 ? void 0 : _e.handTool) === true
431
+ const disposeHandTool = ((_f = (_e = context === null || context === void 0 ? void 0 : context.options) === null || _e === void 0 ? void 0 : _e.pdf) === null || _f === void 0 ? void 0 : _f.handTool) === true
409
432
  ? installPdfHandTool(container)
410
433
  : () => { };
411
434
  const scaleText = () => `${Math.round(currentScale * 100)}%`;
@@ -599,7 +622,7 @@ export default async function renderPdf(buffer, target, context) {
599
622
  (_f = page.cleanup) === null || _f === void 0 ? void 0 : _f.call(page);
600
623
  }
601
624
  };
602
- (_f = context === null || context === void 0 ? void 0 : context.registerThumbnailAdapter) === null || _f === void 0 ? void 0 : _f.call(context, {
625
+ (_g = context === null || context === void 0 ? void 0 : context.registerThumbnailAdapter) === null || _g === void 0 ? void 0 : _g.call(context, {
603
626
  beforeCapture: async ({ signal }) => {
604
627
  while (loadStatus === 'loading' && !destroyed) {
605
628
  if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
@@ -1749,11 +1772,14 @@ export default async function renderPdf(buffer, target, context) {
1749
1772
  });
1750
1773
  restorePdfJsMissingSystemFontWarnings = suppressPdfJsMissingSystemFontWarnings(targetWindow);
1751
1774
  }
1752
- const source = (context === null || context === void 0 ? void 0 : context.streamUrl)
1775
+ const streamUrl = buffer.byteLength ? undefined : context === null || context === void 0 ? void 0 : context.streamUrl;
1776
+ const source = streamUrl
1753
1777
  ? {
1754
- url: context.streamUrl,
1778
+ url: streamUrl,
1755
1779
  rangeChunkSize: (options === null || options === void 0 ? void 0 : options.rangeChunkSize) || DEFAULT_PDF_RANGE_CHUNK_SIZE,
1756
1780
  withCredentials: (options === null || options === void 0 ? void 0 : options.withCredentials) === true,
1781
+ disableStream: options === null || options === void 0 ? void 0 : options.disableStream,
1782
+ disableAutoFetch: options === null || options === void 0 ? void 0 : options.disableAutoFetch,
1757
1783
  }
1758
1784
  : {
1759
1785
  data: buffer,
@@ -1881,8 +1907,7 @@ export default async function renderPdf(buffer, target, context) {
1881
1907
  pdfContext.document = pdfDocument;
1882
1908
  if (pdfCjkFontFallbackManager && pageCount > 0) {
1883
1909
  if (firstPageTextContent) {
1884
- pdfCjkFontFallbackPageLoads.set(1, pdfCjkFontFallbackManager.ensureTextContent(firstPageTextContent));
1885
- await pdfCjkFontFallbackPageLoads.get(1);
1910
+ await ensurePdfPageCjkFontFallback(1, firstPageTextContent);
1886
1911
  }
1887
1912
  else {
1888
1913
  const firstPage = await pdfDocument.getPage(1);
@@ -1990,6 +2015,7 @@ export default async function renderPdf(buffer, target, context) {
1990
2015
  unmount() {
1991
2016
  var _a, _b, _c, _d;
1992
2017
  destroyed = true;
2018
+ disposeReadingTheme();
1993
2019
  disposeHandTool();
1994
2020
  loadVersion += 1;
1995
2021
  restorePdfJsMissingSystemFontWarnings();
@@ -1,6 +1,6 @@
1
1
  const PDF_CJK_FONT_CSS_FILE = 'noto-sans-sc.css';
2
2
  const PDF_CJK_FONT_TEMPLATE_FAMILY = 'Noto Sans SC Variable';
3
- const PDF_CJK_TEXT_RE = /[\u2e80-\u2fff\u3000-\u303f\u3040-\u30ff\u3100-\u312f\u31a0-\u31bf\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff00-\uffef]/;
3
+ const PDF_CJK_TEXT_RE = /[\u2e80-\u2fff\u3000-\u303f\u3040-\u30ff\u3100-\u312f\u31a0-\u31bf\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff00-\uffef\u{20000}-\u{323af}]/u;
4
4
  const PDF_CONTROL_TEXT_RE = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g;
5
5
  const PDF_CJK_FONT_MAX_PROBE_CHARS = 4096;
6
6
  const PDF_IDENTITY_FONT_MIN_CONTROL_CHARS = 2;
@@ -197,18 +197,20 @@ const loadFamilyText = async (documentRef, documentState, template, family, char
197
197
  documentState.families.set(family, state);
198
198
  }
199
199
  ensureAliasStyle(documentRef, state, template, family);
200
- const pendingChars = [...chars].filter(char => !state.loadedChars.has(char));
201
- if (!pendingChars.length) {
200
+ const needsFont = [...chars].some(char => !state.loadedChars.has(char));
201
+ if (!needsFont) {
202
202
  return false;
203
203
  }
204
- pendingChars.forEach(char => state === null || state === void 0 ? void 0 : state.loadedChars.add(char));
205
- const probeText = pendingChars.join('');
206
204
  const escapedFamily = escapeCssString(family);
207
205
  const fontSet = documentRef.fonts;
208
206
  if (!(fontSet === null || fontSet === void 0 ? void 0 : fontSet.load)) {
209
207
  return true;
210
208
  }
211
209
  const operation = state.tail.then(async () => {
210
+ const pendingChars = [...chars].filter(char => !state.loadedChars.has(char));
211
+ if (!pendingChars.length)
212
+ return;
213
+ const probeText = pendingChars.join('');
212
214
  const loadedFaces = await Promise.all([
213
215
  fontSet.load(`normal 400 16px "${escapedFamily}"`, probeText),
214
216
  fontSet.load(`normal 700 16px "${escapedFamily}"`, probeText),
@@ -216,16 +218,11 @@ const loadFamilyText = async (documentRef, documentState, template, family, char
216
218
  if (!loadedFaces.some(faces => faces.length > 0)) {
217
219
  throw new Error(`No matching CJK fallback font face loaded for ${family}`);
218
220
  }
221
+ pendingChars.forEach(char => state.loadedChars.add(char));
219
222
  });
220
223
  state.tail = operation.catch(() => { });
221
- try {
222
- await operation;
223
- return true;
224
- }
225
- catch (error) {
226
- pendingChars.forEach(char => state === null || state === void 0 ? void 0 : state.loadedChars.delete(char));
227
- throw error;
228
- }
224
+ await operation;
225
+ return true;
229
226
  };
230
227
  export const createPdfCjkFontFallbackManager = ({ documentRef, fontAssetPath, onWarning, }) => {
231
228
  const cssUrl = resolveFontCssUrl(fontAssetPath);
@@ -240,7 +237,10 @@ export const createPdfCjkFontFallbackManager = ({ documentRef, fontAssetPath, on
240
237
  onWarning === null || onWarning === void 0 ? void 0 : onWarning(message, error);
241
238
  };
242
239
  const getTemplate = () => {
243
- templatePromise || (templatePromise = loadFontTemplate(documentRef, cssUrl));
240
+ templatePromise || (templatePromise = loadFontTemplate(documentRef, cssUrl).catch(error => {
241
+ templatePromise = null;
242
+ throw error;
243
+ }));
244
244
  return templatePromise;
245
245
  };
246
246
  const ensureTextContent = async (textContent) => {
@@ -1 +1 @@
1
- export declare const pdfViewerStyle = "/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.textLayer {\n color-scheme: only light;\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: clip;\n opacity: 1;\n line-height: 1;\n letter-spacing: normal;\n word-spacing: normal;\n -webkit-text-size-adjust: none;\n -moz-text-size-adjust: none;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n z-index: 0;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n\n.textLayer.highlighting {\n touch-action: none;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.textLayer > :not(.markedContent),\n.textLayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n\n.textLayer .markedContent {\n display: contents;\n}\n\n.textLayer .markedContent.highlight {\n background: transparent;\n backdrop-filter: none;\n margin: 0;\n padding: 0;\n}\n\n.textLayer span[role='img'] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n cursor: default;\n}\n\n.textLayer .highlight {\n --highlight-bg-color: rgb(180 0 170 / 0.25);\n --highlight-selected-bg-color: rgb(0 100 0 / 0.25);\n --highlight-backdrop-filter: none;\n --highlight-selected-backdrop-filter: none;\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n backdrop-filter: var(--highlight-backdrop-filter);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n backdrop-filter: var(--highlight-selected-backdrop-filter);\n scroll-margin-top: 50px;\n}\n\n.textLayer ::-moz-selection {\n background: transparent;\n}\n\n.textLayer ::selection {\n background: transparent;\n}\n\n.textLayer br::-moz-selection {\n background: transparent;\n}\n\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayer.selecting .endOfContent {\n top: 0;\n}\n\n.textLayerImages {\n position: absolute;\n inset: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayerImages canvas {\n position: absolute;\n transform-origin: 0% 0%;\n}\n\n@media screen and (forced-colors: active) {\n .textLayer .highlight {\n --highlight-bg-color: transparent;\n --highlight-selected-bg-color: transparent;\n --highlight-backdrop-filter: var(--hcm-highlight-filter);\n --highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter);\n }\n}\n\n\n:root {\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .annotationLayer .textWidgetAnnotation input:required,\n .annotationLayer .textWidgetAnnotation textarea:required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n .annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.pushButton > canvas {\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n background-image: var(--annotation-unfocused-field-background);\n border: 1px solid transparent;\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input:required,\n.annotationLayer .textWidgetAnnotation textarea:required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n background: none;\n border: 1px solid transparent;\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n border: 1px solid rgba(0, 0, 0, 1);\n}\n\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 1px solid transparent;\n}\n\n.annotationLayer .textWidgetAnnotation input :focus,\n.annotationLayer .textWidgetAnnotation textarea :focus,\n.annotationLayer .choiceWidgetAnnotation select :focus,\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus,\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n background-color: CanvasText;\n content: \"\";\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n z-index: 200;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n\n:root {\n --xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .xfaLayer *:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.xfaLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: rgba(239, 203, 237, 1);\n border-radius: 4px;\n}\n\n.xfaLayer .highlight.appended {\n position: initial;\n}\n\n.xfaLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.xfaLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.xfaLayer .highlight.middle {\n border-radius: 0;\n}\n\n.xfaLayer .highlight.selected {\n background-color: rgba(203, 223, 203, 1);\n}\n\n.xfaLayer ::-moz-selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaLayer ::selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaPage {\n overflow: hidden;\n position: relative;\n}\n\n.xfaContentarea {\n position: absolute;\n}\n\n.xfaPrintOnly {\n display: none;\n}\n\n.xfaLayer {\n position: absolute;\n text-align: initial;\n top: 0;\n left: 0;\n transform-origin: 0 0;\n line-height: 1.2;\n}\n\n.xfaLayer * {\n color: inherit;\n font: inherit;\n font-style: inherit;\n font-weight: inherit;\n font-kerning: inherit;\n letter-spacing: -0.01px;\n text-align: inherit;\n text-decoration: inherit;\n box-sizing: border-box;\n background-color: transparent;\n padding: 0;\n margin: 0;\n pointer-events: auto;\n line-height: inherit;\n}\n\n.xfaLayer *:required {\n outline: 1.5px solid red;\n}\n\n.xfaLayer div {\n pointer-events: none;\n}\n\n.xfaLayer svg {\n pointer-events: none;\n}\n\n.xfaLayer svg * {\n pointer-events: none;\n}\n\n.xfaLayer a {\n color: blue;\n}\n\n.xfaRich li {\n margin-left: 3em;\n}\n\n.xfaFont {\n color: black;\n font-weight: normal;\n font-kerning: none;\n font-size: 10px;\n font-style: normal;\n letter-spacing: 0;\n text-decoration: none;\n vertical-align: 0;\n}\n\n.xfaCaption {\n overflow: hidden;\n flex: 0 0 auto;\n}\n\n.xfaCaptionForCheckButton {\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.xfaLabel {\n height: 100%;\n width: 100%;\n}\n\n.xfaLeft {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.xfaRight {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n}\n\n.xfaLeft > .xfaCaption,\n.xfaLeft > .xfaCaptionForCheckButton,\n.xfaRight > .xfaCaption,\n.xfaRight > .xfaCaptionForCheckButton {\n max-height: 100%;\n}\n\n.xfaTop {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.xfaBottom {\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n}\n\n.xfaTop > .xfaCaption,\n.xfaTop > .xfaCaptionForCheckButton,\n.xfaBottom > .xfaCaption,\n.xfaBottom > .xfaCaptionForCheckButton {\n width: 100%;\n}\n\n.xfaBorder {\n background-color: transparent;\n position: absolute;\n pointer-events: none;\n}\n\n.xfaWrapped {\n width: 100%;\n height: 100%;\n}\n\n.xfaTextfield:focus,\n.xfaSelect:focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n outline-offset: -1px;\n}\n\n.xfaCheckbox:focus,\n.xfaRadio:focus {\n outline: auto;\n}\n\n.xfaTextfield,\n.xfaSelect {\n height: 100%;\n width: 100%;\n flex: 1 1 auto;\n border: none;\n resize: none;\n background-image: var(--xfa-unfocused-field-background);\n}\n\n.xfaTop > .xfaTextfield,\n.xfaTop > .xfaSelect,\n.xfaBottom > .xfaTextfield,\n.xfaBottom > .xfaSelect {\n flex: 0 1 auto;\n}\n\n.xfaButton {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border: none;\n text-align: center;\n}\n\n.xfaLink {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.xfaCheckbox,\n.xfaRadio {\n width: 100%;\n height: 100%;\n flex: 0 0 auto;\n border: none;\n}\n\n.xfaRich {\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n}\n\n.xfaImage {\n -o-object-position: left top;\n object-position: left top;\n -o-object-fit: contain;\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.xfaLrTb,\n.xfaRlTb,\n.xfaTb {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaLr {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaRl {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n}\n\n.xfaTb > div {\n justify-content: left;\n}\n\n.xfaPosition {\n position: relative;\n}\n\n.xfaArea {\n position: relative;\n}\n\n.xfaValignMiddle {\n display: flex;\n align-items: center;\n}\n\n.xfaTable {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaTable .xfaRow {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaTable .xfaRlRow {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n flex: 1;\n}\n\n.xfaTable .xfaRlRow > div {\n flex: 1;\n}\n\n.xfaNonInteractive input,\n.xfaNonInteractive textarea,\n.xfaDisabled input,\n.xfaDisabled textarea,\n.xfaReadOnly input,\n.xfaReadOnly textarea {\n background: initial;\n}\n\n@media print {\n .xfaTextfield,\n .xfaSelect {\n background: transparent;\n }\n\n .xfaSelect {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-indent: 1px;\n text-overflow: \"\";\n }\n}\n\n\n:root {\n --focus-outline: solid 2px red;\n --hover-outline: dashed 2px blue;\n --freetext-line-height: 1.35;\n --freetext-padding: 2px;\n}\n\n@media (forced-colors: active) {\n :root {\n --focus-outline: solid 3px ButtonText;\n --hover-outline: dashed 3px ButtonText;\n }\n}\n\n[data-editor-rotation=\"90\"] {\n transform: rotate(90deg);\n}\n[data-editor-rotation=\"180\"] {\n transform: rotate(180deg);\n}\n[data-editor-rotation=\"270\"] {\n transform: rotate(270deg);\n}\n\n.annotationEditorLayer {\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n font-size: calc(100px * var(--scale-factor));\n transform-origin: 0 0;\n}\n\n.annotationEditorLayer .selectedEditor {\n outline: var(--focus-outline);\n resize: none;\n}\n\n.annotationEditorLayer .freeTextEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n padding: calc(var(--freetext-padding) * var(--scale-factor));\n resize: none;\n width: auto;\n height: auto;\n z-index: 1;\n transform-origin: 0 0;\n touch-action: none;\n}\n\n.annotationEditorLayer .freeTextEditor .internal {\n background: transparent;\n border: none;\n top: 0;\n left: 0;\n overflow: visible;\n white-space: nowrap;\n resize: none;\n font: 10px sans-serif;\n line-height: var(--freetext-line-height);\n}\n\n.annotationEditorLayer .freeTextEditor .overlay {\n position: absolute;\n display: none;\n background: transparent;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationEditorLayer .freeTextEditor .overlay.enabled {\n display: block;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:empty::before {\n content: attr(default-content);\n color: gray;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:focus {\n outline: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled {\n resize: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled.selectedEditor {\n resize: horizontal;\n}\n\n.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),\n.annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {\n outline: var(--hover-outline);\n}\n\n.annotationEditorLayer .inkEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n overflow: auto;\n width: 100%;\n height: 100%;\n z-index: 1;\n transform-origin: 0 0;\n cursor: auto;\n}\n\n.annotationEditorLayer .inkEditor.editing {\n resize: none;\n cursor: var(--editorInk-editing-cursor), pointer;\n}\n\n.annotationEditorLayer .inkEditor .inkEditorCanvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n touch-action: none;\n}\n\n:root {\n --viewer-container-height: 0;\n --pdfViewer-padding-bottom: 0;\n --page-margin: 1px auto -8px;\n --page-border: 9px solid transparent;\n --page-border-image: url(images/shadow.png) 9 9 repeat;\n --spreadHorizontalWrapped-margin-LR: -3.5px;\n --scale-factor: 1;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --pdfViewer-padding-bottom: 9px;\n --page-margin: 8px auto -1px;\n --page-border: 1px solid CanvasText;\n --page-border-image: none;\n --spreadHorizontalWrapped-margin-LR: 3.5px;\n }\n}\n\n.pdfViewer,\n.pdfViewer *,\n.pdfViewer *::before,\n.pdfViewer *::after {\n box-sizing: content-box;\n}\n\n[data-main-rotation=\"90\"] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation=\"180\"] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation=\"270\"] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.pdfViewer {\n padding-bottom: var(--pdfViewer-padding-bottom);\n}\n\n.pdfViewer .canvasWrapper {\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.pdfViewer .page {\n --user-unit: 1;\n --total-scale-factor: calc(var(--scale-factor) * var(--user-unit));\n --scale-round-x: 1px;\n --scale-round-y: 1px;\n direction: ltr;\n width: 816px;\n height: 1056px;\n margin: var(--page-margin);\n position: relative;\n overflow: visible;\n border: var(--page-border);\n -o-border-image: var(--page-border-image);\n border-image: var(--page-border-image);\n background-clip: content-box;\n background-color: rgba(255, 255, 255, 1);\n}\n\n.pdfViewer .dummyPage {\n position: relative;\n width: 0;\n height: var(--viewer-container-height);\n}\n\n.pdfViewer.removePageBorders .page {\n margin: 0 auto 10px;\n border: none;\n}\n\n.pdfViewer.singlePageView {\n display: inline-block;\n}\n\n.pdfViewer.singlePageView .page {\n margin: 0;\n border: none;\n}\n\n.pdfViewer.scrollHorizontal,\n.pdfViewer.scrollWrapped,\n.spread {\n margin-left: 3.5px;\n margin-right: 3.5px;\n text-align: center;\n}\n\n.pdfViewer.scrollHorizontal,\n.spread {\n white-space: nowrap;\n}\n\n.pdfViewer.removePageBorders,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n margin-left: 0;\n margin-right: 0;\n}\n\n.spread .page,\n.spread .dummyPage,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n display: inline-block;\n vertical-align: middle;\n}\n\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page {\n margin-left: var(--spreadHorizontalWrapped-margin-LR);\n margin-right: var(--spreadHorizontalWrapped-margin-LR);\n}\n\n.pdfViewer.removePageBorders .spread .page,\n.pdfViewer.removePageBorders.scrollHorizontal .page,\n.pdfViewer.removePageBorders.scrollWrapped .page {\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.pdfViewer .page canvas {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n display: block;\n width: 100%;\n height: 100%;\n contain: content;\n}\n\n.pdfViewer .page canvas[hidden] {\n display: none;\n}\n\n.pdfViewer .page .loadingIcon {\n position: absolute;\n display: block;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: url(\"./images/loading-icon.gif\") center no-repeat;\n}\n.pdfViewer .page .loadingIcon.notVisible {\n background: none;\n}\n\n.pdfViewer.enablePermissions .textLayer span {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n user-select: none !important;\n cursor: not-allowed;\n}\n\n.pdfPresentationMode .pdfViewer {\n padding-bottom: 0;\n}\n\n.pdfPresentationMode .spread {\n margin: 0;\n}\n\n.pdfPresentationMode .pdfViewer .page {\n margin: 0 auto;\n border: 2px solid transparent;\n}\n\n\n.pdf-shell {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n color: #1f2937;\n background: #edf2f7;\n}\n\n.pdf-toolbar {\n z-index: 2;\n display: flex;\n align-items: center;\n gap: 10px;\n min-height: 48px;\n padding: 6px 12px;\n border-bottom: 1px solid #d7dee8;\n background: #ffffff;\n box-shadow: 0 1px 4px rgb(15 23 42 / 8%);\n}\n\n.pdf-toolbar-group {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 36px;\n padding: 0 6px;\n border: 1px solid #dde5ef;\n border-radius: 8px;\n background: #f8fafc;\n}\n\n.pdf-toolbar-group--zoom {\n margin-left: auto;\n}\n\n.pdf-toolbar-group--rotate {\n flex-shrink: 0;\n}\n\n.pdf-icon-button,\n.pdf-scale-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;\n}\n\n.pdf-icon-button {\n width: 30px;\n font-size: 18px;\n}\n\n.pdf-scale-button {\n width: 64px;\n font-size: 13px;\n font-weight: 600;\n}\n\n.pdf-icon-button:hover:not(:disabled),\n.pdf-scale-button:hover {\n border-color: #b9c8d8;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-icon-button:disabled {\n color: #a8b3c0;\n cursor: not-allowed;\n}\n\n.pdf-icon-button--active {\n border-color: #9ac2ff;\n color: #1769d8;\n background: #e7f1ff;\n}\n\n.pdf-panel-icon {\n position: relative;\n display: block;\n width: 16px;\n height: 14px;\n border: 2px solid currentColor;\n border-radius: 3px;\n}\n\n.pdf-panel-icon::before {\n position: absolute;\n top: -2px;\n bottom: -2px;\n left: 4px;\n width: 2px;\n background: currentColor;\n content: '';\n}\n\n.pdf-page-meter {\n display: inline-flex;\n align-items: baseline;\n justify-content: center;\n min-width: 72px;\n gap: 3px;\n font-size: 13px;\n color: #64748b;\n white-space: nowrap;\n}\n\n.pdf-page-meter strong {\n color: #1e293b;\n font-size: 14px;\n}\n\n.pdf-rotation-meter {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 42px;\n color: #64748b;\n font-size: 13px;\n font-weight: 700;\n white-space: nowrap;\n}\n\n.pdf-content {\n position: relative;\n display: grid;\n grid-template-columns: clamp(148px, 22%, 220px) minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n\n.pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n}\n\n.pdf-nav-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border-right: 1px solid #d7dee8;\n background: #f8fafc;\n}\n\n.pdf-nav-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 44px;\n padding: 0 12px;\n border-bottom: 1px solid #e3e9f1;\n color: #475569;\n font-size: 13px;\n}\n\n.pdf-nav-head strong {\n color: #1e293b;\n font-size: 12px;\n}\n\n.pdf-nav-tabs {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 4px;\n padding: 8px;\n border-bottom: 1px solid #e3e9f1;\n background: #f8fafc;\n}\n\n.pdf-nav-tabs button {\n min-width: 0;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #64748b;\n background: transparent;\n font: inherit;\n font-size: 12px;\n font-weight: 700;\n cursor: pointer;\n}\n\n.pdf-nav-tabs button:hover,\n.pdf-nav-tabs button.active {\n border-color: #b9d4f6;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-page-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 8px;\n padding: 10px;\n overflow-y: auto;\n}\n\n.pdf-page-button {\n display: grid;\n grid-template-columns: 42px minmax(0, 1fr);\n align-items: center;\n gap: 10px;\n width: 100%;\n min-height: 54px;\n padding: 6px 8px;\n border: 1px solid #dce4ee;\n border-radius: 8px;\n color: #334155;\n background: #ffffff;\n cursor: pointer;\n text-align: left;\n transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;\n}\n\n.pdf-page-button:hover {\n border-color: #a9c5ea;\n background: #f3f8ff;\n}\n\n.pdf-page-button--active {\n border-color: #408fff;\n background: #eaf3ff;\n box-shadow: inset 3px 0 0 #408fff;\n}\n\n.pdf-page-thumb {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 42px;\n border: 1px solid #d6e1ee;\n border-radius: 4px;\n color: #1769d8;\n background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);\n font-size: 12px;\n font-weight: 700;\n}\n\n.pdf-page-label {\n min-width: 0;\n overflow: hidden;\n font-size: 13px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 4px;\n padding: 8px;\n overflow-y: auto;\n}\n\n.pdf-outline-button {\n --outline-depth: 0;\n display: grid;\n grid-template-columns: 16px minmax(0, 1fr);\n align-items: center;\n gap: 6px;\n width: 100%;\n min-height: 32px;\n padding: 5px 7px 5px calc(7px + var(--outline-depth) * 14px);\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.pdf-outline-button:hover {\n border-color: #c7d7eb;\n background: #ffffff;\n}\n\n.pdf-outline-toggle {\n position: relative;\n width: 14px;\n height: 14px;\n border-radius: 4px;\n color: #64748b;\n}\n\n.pdf-outline-toggle::before {\n position: absolute;\n top: 3px;\n left: 4px;\n width: 6px;\n height: 6px;\n border-right: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n content: '';\n transform: rotate(-45deg);\n transition: transform 0.16s ease;\n}\n\n.pdf-outline-toggle--open::before {\n transform: rotate(45deg);\n}\n\n.pdf-outline-toggle--empty::before {\n display: none;\n}\n\n.pdf-outline-title {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-empty {\n margin: 24px 8px;\n padding: 14px 10px;\n border: 1px dashed #cbd5e1;\n border-radius: 8px;\n color: #64748b;\n background: #ffffff;\n font-size: 12px;\n text-align: center;\n}\n\n.pdfViewer {\n margin: 0 auto;\n padding: 18px 14px 28px;\n}\n\n.pdf-viewport {\n position: relative;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n}\n\n.pdf-wrapper {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #e8edf4;\n}\n\n.pdf-state {\n position: absolute;\n top: 50%;\n left: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 168px;\n min-height: 42px;\n padding: 0 16px;\n border: 1px solid #d7dee8;\n border-radius: 8px;\n color: #475569;\n background: #ffffff;\n box-shadow: 0 10px 30px rgb(15 23 42 / 12%);\n transform: translate(-50%, -50%);\n}\n\n.pdf-state--error {\n max-width: min(460px, calc(100% - 32px));\n color: #b42318;\n text-align: center;\n}\n\n@media (max-width: 720px) {\n .pdf-toolbar {\n flex-wrap: wrap;\n min-height: 88px;\n align-content: center;\n }\n\n .pdf-toolbar-group--zoom {\n margin-left: 0;\n }\n\n .pdf-content,\n .pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .pdf-nav-pane {\n position: absolute;\n z-index: 3;\n top: 0;\n bottom: 0;\n left: 0;\n width: min(78vw, 240px);\n box-shadow: 10px 0 24px rgb(15 23 42 / 14%);\n }\n}\n";
1
+ export declare const pdfViewerStyle = "/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.textLayer {\n color-scheme: only light;\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: clip;\n opacity: 1;\n line-height: 1;\n letter-spacing: normal;\n word-spacing: normal;\n -webkit-text-size-adjust: none;\n -moz-text-size-adjust: none;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n z-index: 0;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n\n.textLayer.highlighting {\n touch-action: none;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.textLayer > :not(.markedContent),\n.textLayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n\n.textLayer .markedContent {\n display: contents;\n}\n\n.textLayer .markedContent.highlight {\n background: transparent;\n backdrop-filter: none;\n margin: 0;\n padding: 0;\n}\n\n.textLayer span[role='img'] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n cursor: default;\n}\n\n.textLayer .highlight {\n --highlight-bg-color: rgb(180 0 170 / 0.25);\n --highlight-selected-bg-color: rgb(0 100 0 / 0.25);\n --highlight-backdrop-filter: none;\n --highlight-selected-backdrop-filter: none;\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n backdrop-filter: var(--highlight-backdrop-filter);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n backdrop-filter: var(--highlight-selected-backdrop-filter);\n scroll-margin-top: 50px;\n}\n\n.textLayer ::-moz-selection {\n background: rgba(0, 0, 255, 0.25);\n background: color-mix(in srgb, AccentColor, transparent 75%);\n}\n\n.textLayer ::selection {\n background: rgba(0, 0, 255, 0.25);\n background: color-mix(in srgb, AccentColor, transparent 75%);\n}\n\n.textLayer br::-moz-selection {\n background: transparent;\n}\n\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayer.selecting .endOfContent {\n top: 0;\n}\n\n.textLayerImages {\n position: absolute;\n inset: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayerImages canvas {\n position: absolute;\n transform-origin: 0% 0%;\n}\n\n@media screen and (forced-colors: active) {\n .textLayer .highlight {\n --highlight-bg-color: transparent;\n --highlight-selected-bg-color: transparent;\n --highlight-backdrop-filter: var(--hcm-highlight-filter);\n --highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter);\n }\n}\n\n\n:root {\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .annotationLayer .textWidgetAnnotation input:required,\n .annotationLayer .textWidgetAnnotation textarea:required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n .annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.pushButton > canvas {\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n background-image: var(--annotation-unfocused-field-background);\n border: 1px solid transparent;\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input:required,\n.annotationLayer .textWidgetAnnotation textarea:required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n background: none;\n border: 1px solid transparent;\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n border: 1px solid rgba(0, 0, 0, 1);\n}\n\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 1px solid transparent;\n}\n\n.annotationLayer .textWidgetAnnotation input :focus,\n.annotationLayer .textWidgetAnnotation textarea :focus,\n.annotationLayer .choiceWidgetAnnotation select :focus,\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus,\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n background-color: CanvasText;\n content: \"\";\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n z-index: 200;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n\n:root {\n --xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .xfaLayer *:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.xfaLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: rgba(239, 203, 237, 1);\n border-radius: 4px;\n}\n\n.xfaLayer .highlight.appended {\n position: initial;\n}\n\n.xfaLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.xfaLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.xfaLayer .highlight.middle {\n border-radius: 0;\n}\n\n.xfaLayer .highlight.selected {\n background-color: rgba(203, 223, 203, 1);\n}\n\n.xfaLayer ::-moz-selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaLayer ::selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaPage {\n overflow: hidden;\n position: relative;\n}\n\n.xfaContentarea {\n position: absolute;\n}\n\n.xfaPrintOnly {\n display: none;\n}\n\n.xfaLayer {\n position: absolute;\n text-align: initial;\n top: 0;\n left: 0;\n transform-origin: 0 0;\n line-height: 1.2;\n}\n\n.xfaLayer * {\n color: inherit;\n font: inherit;\n font-style: inherit;\n font-weight: inherit;\n font-kerning: inherit;\n letter-spacing: -0.01px;\n text-align: inherit;\n text-decoration: inherit;\n box-sizing: border-box;\n background-color: transparent;\n padding: 0;\n margin: 0;\n pointer-events: auto;\n line-height: inherit;\n}\n\n.xfaLayer *:required {\n outline: 1.5px solid red;\n}\n\n.xfaLayer div {\n pointer-events: none;\n}\n\n.xfaLayer svg {\n pointer-events: none;\n}\n\n.xfaLayer svg * {\n pointer-events: none;\n}\n\n.xfaLayer a {\n color: blue;\n}\n\n.xfaRich li {\n margin-left: 3em;\n}\n\n.xfaFont {\n color: black;\n font-weight: normal;\n font-kerning: none;\n font-size: 10px;\n font-style: normal;\n letter-spacing: 0;\n text-decoration: none;\n vertical-align: 0;\n}\n\n.xfaCaption {\n overflow: hidden;\n flex: 0 0 auto;\n}\n\n.xfaCaptionForCheckButton {\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.xfaLabel {\n height: 100%;\n width: 100%;\n}\n\n.xfaLeft {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.xfaRight {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n}\n\n.xfaLeft > .xfaCaption,\n.xfaLeft > .xfaCaptionForCheckButton,\n.xfaRight > .xfaCaption,\n.xfaRight > .xfaCaptionForCheckButton {\n max-height: 100%;\n}\n\n.xfaTop {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.xfaBottom {\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n}\n\n.xfaTop > .xfaCaption,\n.xfaTop > .xfaCaptionForCheckButton,\n.xfaBottom > .xfaCaption,\n.xfaBottom > .xfaCaptionForCheckButton {\n width: 100%;\n}\n\n.xfaBorder {\n background-color: transparent;\n position: absolute;\n pointer-events: none;\n}\n\n.xfaWrapped {\n width: 100%;\n height: 100%;\n}\n\n.xfaTextfield:focus,\n.xfaSelect:focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n outline-offset: -1px;\n}\n\n.xfaCheckbox:focus,\n.xfaRadio:focus {\n outline: auto;\n}\n\n.xfaTextfield,\n.xfaSelect {\n height: 100%;\n width: 100%;\n flex: 1 1 auto;\n border: none;\n resize: none;\n background-image: var(--xfa-unfocused-field-background);\n}\n\n.xfaTop > .xfaTextfield,\n.xfaTop > .xfaSelect,\n.xfaBottom > .xfaTextfield,\n.xfaBottom > .xfaSelect {\n flex: 0 1 auto;\n}\n\n.xfaButton {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border: none;\n text-align: center;\n}\n\n.xfaLink {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.xfaCheckbox,\n.xfaRadio {\n width: 100%;\n height: 100%;\n flex: 0 0 auto;\n border: none;\n}\n\n.xfaRich {\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n}\n\n.xfaImage {\n -o-object-position: left top;\n object-position: left top;\n -o-object-fit: contain;\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.xfaLrTb,\n.xfaRlTb,\n.xfaTb {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaLr {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaRl {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n}\n\n.xfaTb > div {\n justify-content: left;\n}\n\n.xfaPosition {\n position: relative;\n}\n\n.xfaArea {\n position: relative;\n}\n\n.xfaValignMiddle {\n display: flex;\n align-items: center;\n}\n\n.xfaTable {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaTable .xfaRow {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaTable .xfaRlRow {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n flex: 1;\n}\n\n.xfaTable .xfaRlRow > div {\n flex: 1;\n}\n\n.xfaNonInteractive input,\n.xfaNonInteractive textarea,\n.xfaDisabled input,\n.xfaDisabled textarea,\n.xfaReadOnly input,\n.xfaReadOnly textarea {\n background: initial;\n}\n\n@media print {\n .xfaTextfield,\n .xfaSelect {\n background: transparent;\n }\n\n .xfaSelect {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-indent: 1px;\n text-overflow: \"\";\n }\n}\n\n\n:root {\n --focus-outline: solid 2px red;\n --hover-outline: dashed 2px blue;\n --freetext-line-height: 1.35;\n --freetext-padding: 2px;\n}\n\n@media (forced-colors: active) {\n :root {\n --focus-outline: solid 3px ButtonText;\n --hover-outline: dashed 3px ButtonText;\n }\n}\n\n[data-editor-rotation=\"90\"] {\n transform: rotate(90deg);\n}\n[data-editor-rotation=\"180\"] {\n transform: rotate(180deg);\n}\n[data-editor-rotation=\"270\"] {\n transform: rotate(270deg);\n}\n\n.annotationEditorLayer {\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n font-size: calc(100px * var(--scale-factor));\n transform-origin: 0 0;\n}\n\n.annotationEditorLayer .selectedEditor {\n outline: var(--focus-outline);\n resize: none;\n}\n\n.annotationEditorLayer .freeTextEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n padding: calc(var(--freetext-padding) * var(--scale-factor));\n resize: none;\n width: auto;\n height: auto;\n z-index: 1;\n transform-origin: 0 0;\n touch-action: none;\n}\n\n.annotationEditorLayer .freeTextEditor .internal {\n background: transparent;\n border: none;\n top: 0;\n left: 0;\n overflow: visible;\n white-space: nowrap;\n resize: none;\n font: 10px sans-serif;\n line-height: var(--freetext-line-height);\n}\n\n.annotationEditorLayer .freeTextEditor .overlay {\n position: absolute;\n display: none;\n background: transparent;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationEditorLayer .freeTextEditor .overlay.enabled {\n display: block;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:empty::before {\n content: attr(default-content);\n color: gray;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:focus {\n outline: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled {\n resize: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled.selectedEditor {\n resize: horizontal;\n}\n\n.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),\n.annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {\n outline: var(--hover-outline);\n}\n\n.annotationEditorLayer .inkEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n overflow: auto;\n width: 100%;\n height: 100%;\n z-index: 1;\n transform-origin: 0 0;\n cursor: auto;\n}\n\n.annotationEditorLayer .inkEditor.editing {\n resize: none;\n cursor: var(--editorInk-editing-cursor), pointer;\n}\n\n.annotationEditorLayer .inkEditor .inkEditorCanvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n touch-action: none;\n}\n\n:root {\n --viewer-container-height: 0;\n --pdfViewer-padding-bottom: 0;\n --page-margin: 1px auto -8px;\n --page-border: 9px solid transparent;\n --page-border-image: url(images/shadow.png) 9 9 repeat;\n --spreadHorizontalWrapped-margin-LR: -3.5px;\n --scale-factor: 1;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --pdfViewer-padding-bottom: 9px;\n --page-margin: 8px auto -1px;\n --page-border: 1px solid CanvasText;\n --page-border-image: none;\n --spreadHorizontalWrapped-margin-LR: 3.5px;\n }\n}\n\n.pdfViewer,\n.pdfViewer *,\n.pdfViewer *::before,\n.pdfViewer *::after {\n box-sizing: content-box;\n}\n\n[data-main-rotation=\"90\"] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation=\"180\"] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation=\"270\"] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.pdfViewer {\n padding-bottom: var(--pdfViewer-padding-bottom);\n}\n\n.pdfViewer .canvasWrapper {\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.pdfViewer .page {\n --user-unit: 1;\n --total-scale-factor: calc(var(--scale-factor) * var(--user-unit));\n --scale-round-x: 1px;\n --scale-round-y: 1px;\n direction: ltr;\n width: 816px;\n height: 1056px;\n margin: var(--page-margin);\n position: relative;\n overflow: visible;\n border: var(--page-border);\n -o-border-image: var(--page-border-image);\n border-image: var(--page-border-image);\n background-clip: content-box;\n background-color: rgba(255, 255, 255, 1);\n}\n\n.pdfViewer .dummyPage {\n position: relative;\n width: 0;\n height: var(--viewer-container-height);\n}\n\n.pdfViewer.removePageBorders .page {\n margin: 0 auto 10px;\n border: none;\n}\n\n.pdfViewer.singlePageView {\n display: inline-block;\n}\n\n.pdfViewer.singlePageView .page {\n margin: 0;\n border: none;\n}\n\n.pdfViewer.scrollHorizontal,\n.pdfViewer.scrollWrapped,\n.spread {\n margin-left: 3.5px;\n margin-right: 3.5px;\n text-align: center;\n}\n\n.pdfViewer.scrollHorizontal,\n.spread {\n white-space: nowrap;\n}\n\n.pdfViewer.removePageBorders,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n margin-left: 0;\n margin-right: 0;\n}\n\n.spread .page,\n.spread .dummyPage,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n display: inline-block;\n vertical-align: middle;\n}\n\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page {\n margin-left: var(--spreadHorizontalWrapped-margin-LR);\n margin-right: var(--spreadHorizontalWrapped-margin-LR);\n}\n\n.pdfViewer.removePageBorders .spread .page,\n.pdfViewer.removePageBorders.scrollHorizontal .page,\n.pdfViewer.removePageBorders.scrollWrapped .page {\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.pdfViewer .page canvas {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n display: block;\n width: 100%;\n height: 100%;\n contain: content;\n}\n\n.pdfViewer .page canvas[hidden] {\n display: none;\n}\n\n.pdfViewer .page .loadingIcon {\n position: absolute;\n display: block;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: url(\"./images/loading-icon.gif\") center no-repeat;\n}\n.pdfViewer .page .loadingIcon.notVisible {\n background: none;\n}\n\n.pdfViewer.enablePermissions .textLayer span {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n user-select: none !important;\n cursor: not-allowed;\n}\n\n.pdfPresentationMode .pdfViewer {\n padding-bottom: 0;\n}\n\n.pdfPresentationMode .spread {\n margin: 0;\n}\n\n.pdfPresentationMode .pdfViewer .page {\n margin: 0 auto;\n border: 2px solid transparent;\n}\n\n\n.pdf-shell {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n color: #1f2937;\n background: #edf2f7;\n}\n\n.pdf-toolbar {\n z-index: 2;\n display: flex;\n align-items: center;\n gap: 10px;\n min-height: 48px;\n padding: 6px 12px;\n border-bottom: 1px solid #d7dee8;\n background: #ffffff;\n box-shadow: 0 1px 4px rgb(15 23 42 / 8%);\n}\n\n.pdf-toolbar-group {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 36px;\n padding: 0 6px;\n border: 1px solid #dde5ef;\n border-radius: 8px;\n background: #f8fafc;\n}\n\n.pdf-toolbar-group--zoom {\n margin-left: auto;\n}\n\n.pdf-toolbar-group--rotate {\n flex-shrink: 0;\n}\n\n.pdf-icon-button,\n.pdf-scale-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;\n}\n\n.pdf-icon-button {\n width: 30px;\n font-size: 18px;\n}\n\n.pdf-scale-button {\n width: 64px;\n font-size: 13px;\n font-weight: 600;\n}\n\n.pdf-icon-button:hover:not(:disabled),\n.pdf-scale-button:hover {\n border-color: #b9c8d8;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-icon-button:disabled {\n color: #a8b3c0;\n cursor: not-allowed;\n}\n\n.pdf-icon-button--active {\n border-color: #9ac2ff;\n color: #1769d8;\n background: #e7f1ff;\n}\n\n.pdf-panel-icon {\n position: relative;\n display: block;\n width: 16px;\n height: 14px;\n border: 2px solid currentColor;\n border-radius: 3px;\n}\n\n.pdf-panel-icon::before {\n position: absolute;\n top: -2px;\n bottom: -2px;\n left: 4px;\n width: 2px;\n background: currentColor;\n content: '';\n}\n\n.pdf-page-meter {\n display: inline-flex;\n align-items: baseline;\n justify-content: center;\n min-width: 72px;\n gap: 3px;\n font-size: 13px;\n color: #64748b;\n white-space: nowrap;\n}\n\n.pdf-page-meter strong {\n color: #1e293b;\n font-size: 14px;\n}\n\n.pdf-rotation-meter {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 42px;\n color: #64748b;\n font-size: 13px;\n font-weight: 700;\n white-space: nowrap;\n}\n\n.pdf-content {\n position: relative;\n display: grid;\n grid-template-columns: clamp(148px, 22%, 220px) minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n\n.pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n}\n\n.pdf-nav-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border-right: 1px solid #d7dee8;\n background: #f8fafc;\n}\n\n.pdf-nav-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 44px;\n padding: 0 12px;\n border-bottom: 1px solid #e3e9f1;\n color: #475569;\n font-size: 13px;\n}\n\n.pdf-nav-head strong {\n color: #1e293b;\n font-size: 12px;\n}\n\n.pdf-nav-tabs {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 4px;\n padding: 8px;\n border-bottom: 1px solid #e3e9f1;\n background: #f8fafc;\n}\n\n.pdf-nav-tabs button {\n min-width: 0;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #64748b;\n background: transparent;\n font: inherit;\n font-size: 12px;\n font-weight: 700;\n cursor: pointer;\n}\n\n.pdf-nav-tabs button:hover,\n.pdf-nav-tabs button.active {\n border-color: #b9d4f6;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-page-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 8px;\n padding: 10px;\n overflow-y: auto;\n}\n\n.pdf-page-button {\n display: grid;\n grid-template-columns: 42px minmax(0, 1fr);\n align-items: center;\n gap: 10px;\n width: 100%;\n min-height: 54px;\n padding: 6px 8px;\n border: 1px solid #dce4ee;\n border-radius: 8px;\n color: #334155;\n background: #ffffff;\n cursor: pointer;\n text-align: left;\n transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;\n}\n\n.pdf-page-button:hover {\n border-color: #a9c5ea;\n background: #f3f8ff;\n}\n\n.pdf-page-button--active {\n border-color: #408fff;\n background: #eaf3ff;\n box-shadow: inset 3px 0 0 #408fff;\n}\n\n.pdf-page-thumb {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 42px;\n border: 1px solid #d6e1ee;\n border-radius: 4px;\n color: #1769d8;\n background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);\n font-size: 12px;\n font-weight: 700;\n}\n\n.pdf-page-label {\n min-width: 0;\n overflow: hidden;\n font-size: 13px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 4px;\n padding: 8px;\n overflow-y: auto;\n}\n\n.pdf-outline-button {\n --outline-depth: 0;\n display: grid;\n grid-template-columns: 16px minmax(0, 1fr);\n align-items: center;\n gap: 6px;\n width: 100%;\n min-height: 32px;\n padding: 5px 7px 5px calc(7px + var(--outline-depth) * 14px);\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.pdf-outline-button:hover {\n border-color: #c7d7eb;\n background: #ffffff;\n}\n\n.pdf-outline-toggle {\n position: relative;\n width: 14px;\n height: 14px;\n border-radius: 4px;\n color: #64748b;\n}\n\n.pdf-outline-toggle::before {\n position: absolute;\n top: 3px;\n left: 4px;\n width: 6px;\n height: 6px;\n border-right: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n content: '';\n transform: rotate(-45deg);\n transition: transform 0.16s ease;\n}\n\n.pdf-outline-toggle--open::before {\n transform: rotate(45deg);\n}\n\n.pdf-outline-toggle--empty::before {\n display: none;\n}\n\n.pdf-outline-title {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-empty {\n margin: 24px 8px;\n padding: 14px 10px;\n border: 1px dashed #cbd5e1;\n border-radius: 8px;\n color: #64748b;\n background: #ffffff;\n font-size: 12px;\n text-align: center;\n}\n\n.pdfViewer {\n margin: 0 auto;\n padding: 18px 14px 28px;\n}\n\n.pdf-viewport {\n position: relative;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n}\n\n.pdf-wrapper {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #e8edf4;\n}\n\n.pdf-state {\n position: absolute;\n top: 50%;\n left: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 168px;\n min-height: 42px;\n padding: 0 16px;\n border: 1px solid #d7dee8;\n border-radius: 8px;\n color: #475569;\n background: #ffffff;\n box-shadow: 0 10px 30px rgb(15 23 42 / 12%);\n transform: translate(-50%, -50%);\n}\n\n.pdf-state--error {\n max-width: min(460px, calc(100% - 32px));\n color: #b42318;\n text-align: center;\n}\n\n@media (max-width: 720px) {\n .pdf-toolbar {\n flex-wrap: wrap;\n min-height: 88px;\n align-content: center;\n }\n\n .pdf-toolbar-group--zoom {\n margin-left: 0;\n }\n\n .pdf-content,\n .pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .pdf-nav-pane {\n position: absolute;\n z-index: 3;\n top: 0;\n bottom: 0;\n left: 0;\n width: min(78vw, 240px);\n box-shadow: 10px 0 24px rgb(15 23 42 / 14%);\n }\n}\n";
package/dist/pdfStyles.js CHANGED
@@ -1 +1 @@
1
- export const pdfViewerStyle = "/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.textLayer {\n color-scheme: only light;\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: clip;\n opacity: 1;\n line-height: 1;\n letter-spacing: normal;\n word-spacing: normal;\n -webkit-text-size-adjust: none;\n -moz-text-size-adjust: none;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n z-index: 0;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n\n.textLayer.highlighting {\n touch-action: none;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.textLayer > :not(.markedContent),\n.textLayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n\n.textLayer .markedContent {\n display: contents;\n}\n\n.textLayer .markedContent.highlight {\n background: transparent;\n backdrop-filter: none;\n margin: 0;\n padding: 0;\n}\n\n.textLayer span[role='img'] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n cursor: default;\n}\n\n.textLayer .highlight {\n --highlight-bg-color: rgb(180 0 170 / 0.25);\n --highlight-selected-bg-color: rgb(0 100 0 / 0.25);\n --highlight-backdrop-filter: none;\n --highlight-selected-backdrop-filter: none;\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n backdrop-filter: var(--highlight-backdrop-filter);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n backdrop-filter: var(--highlight-selected-backdrop-filter);\n scroll-margin-top: 50px;\n}\n\n.textLayer ::-moz-selection {\n background: transparent;\n}\n\n.textLayer ::selection {\n background: transparent;\n}\n\n.textLayer br::-moz-selection {\n background: transparent;\n}\n\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayer.selecting .endOfContent {\n top: 0;\n}\n\n.textLayerImages {\n position: absolute;\n inset: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayerImages canvas {\n position: absolute;\n transform-origin: 0% 0%;\n}\n\n@media screen and (forced-colors: active) {\n .textLayer .highlight {\n --highlight-bg-color: transparent;\n --highlight-selected-bg-color: transparent;\n --highlight-backdrop-filter: var(--hcm-highlight-filter);\n --highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter);\n }\n}\n\n\n:root {\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .annotationLayer .textWidgetAnnotation input:required,\n .annotationLayer .textWidgetAnnotation textarea:required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n .annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.pushButton > canvas {\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n background-image: var(--annotation-unfocused-field-background);\n border: 1px solid transparent;\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input:required,\n.annotationLayer .textWidgetAnnotation textarea:required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n background: none;\n border: 1px solid transparent;\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n border: 1px solid rgba(0, 0, 0, 1);\n}\n\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 1px solid transparent;\n}\n\n.annotationLayer .textWidgetAnnotation input :focus,\n.annotationLayer .textWidgetAnnotation textarea :focus,\n.annotationLayer .choiceWidgetAnnotation select :focus,\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus,\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n background-color: CanvasText;\n content: \"\";\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n z-index: 200;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n\n:root {\n --xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .xfaLayer *:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.xfaLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: rgba(239, 203, 237, 1);\n border-radius: 4px;\n}\n\n.xfaLayer .highlight.appended {\n position: initial;\n}\n\n.xfaLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.xfaLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.xfaLayer .highlight.middle {\n border-radius: 0;\n}\n\n.xfaLayer .highlight.selected {\n background-color: rgba(203, 223, 203, 1);\n}\n\n.xfaLayer ::-moz-selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaLayer ::selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaPage {\n overflow: hidden;\n position: relative;\n}\n\n.xfaContentarea {\n position: absolute;\n}\n\n.xfaPrintOnly {\n display: none;\n}\n\n.xfaLayer {\n position: absolute;\n text-align: initial;\n top: 0;\n left: 0;\n transform-origin: 0 0;\n line-height: 1.2;\n}\n\n.xfaLayer * {\n color: inherit;\n font: inherit;\n font-style: inherit;\n font-weight: inherit;\n font-kerning: inherit;\n letter-spacing: -0.01px;\n text-align: inherit;\n text-decoration: inherit;\n box-sizing: border-box;\n background-color: transparent;\n padding: 0;\n margin: 0;\n pointer-events: auto;\n line-height: inherit;\n}\n\n.xfaLayer *:required {\n outline: 1.5px solid red;\n}\n\n.xfaLayer div {\n pointer-events: none;\n}\n\n.xfaLayer svg {\n pointer-events: none;\n}\n\n.xfaLayer svg * {\n pointer-events: none;\n}\n\n.xfaLayer a {\n color: blue;\n}\n\n.xfaRich li {\n margin-left: 3em;\n}\n\n.xfaFont {\n color: black;\n font-weight: normal;\n font-kerning: none;\n font-size: 10px;\n font-style: normal;\n letter-spacing: 0;\n text-decoration: none;\n vertical-align: 0;\n}\n\n.xfaCaption {\n overflow: hidden;\n flex: 0 0 auto;\n}\n\n.xfaCaptionForCheckButton {\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.xfaLabel {\n height: 100%;\n width: 100%;\n}\n\n.xfaLeft {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.xfaRight {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n}\n\n.xfaLeft > .xfaCaption,\n.xfaLeft > .xfaCaptionForCheckButton,\n.xfaRight > .xfaCaption,\n.xfaRight > .xfaCaptionForCheckButton {\n max-height: 100%;\n}\n\n.xfaTop {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.xfaBottom {\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n}\n\n.xfaTop > .xfaCaption,\n.xfaTop > .xfaCaptionForCheckButton,\n.xfaBottom > .xfaCaption,\n.xfaBottom > .xfaCaptionForCheckButton {\n width: 100%;\n}\n\n.xfaBorder {\n background-color: transparent;\n position: absolute;\n pointer-events: none;\n}\n\n.xfaWrapped {\n width: 100%;\n height: 100%;\n}\n\n.xfaTextfield:focus,\n.xfaSelect:focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n outline-offset: -1px;\n}\n\n.xfaCheckbox:focus,\n.xfaRadio:focus {\n outline: auto;\n}\n\n.xfaTextfield,\n.xfaSelect {\n height: 100%;\n width: 100%;\n flex: 1 1 auto;\n border: none;\n resize: none;\n background-image: var(--xfa-unfocused-field-background);\n}\n\n.xfaTop > .xfaTextfield,\n.xfaTop > .xfaSelect,\n.xfaBottom > .xfaTextfield,\n.xfaBottom > .xfaSelect {\n flex: 0 1 auto;\n}\n\n.xfaButton {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border: none;\n text-align: center;\n}\n\n.xfaLink {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.xfaCheckbox,\n.xfaRadio {\n width: 100%;\n height: 100%;\n flex: 0 0 auto;\n border: none;\n}\n\n.xfaRich {\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n}\n\n.xfaImage {\n -o-object-position: left top;\n object-position: left top;\n -o-object-fit: contain;\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.xfaLrTb,\n.xfaRlTb,\n.xfaTb {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaLr {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaRl {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n}\n\n.xfaTb > div {\n justify-content: left;\n}\n\n.xfaPosition {\n position: relative;\n}\n\n.xfaArea {\n position: relative;\n}\n\n.xfaValignMiddle {\n display: flex;\n align-items: center;\n}\n\n.xfaTable {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaTable .xfaRow {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaTable .xfaRlRow {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n flex: 1;\n}\n\n.xfaTable .xfaRlRow > div {\n flex: 1;\n}\n\n.xfaNonInteractive input,\n.xfaNonInteractive textarea,\n.xfaDisabled input,\n.xfaDisabled textarea,\n.xfaReadOnly input,\n.xfaReadOnly textarea {\n background: initial;\n}\n\n@media print {\n .xfaTextfield,\n .xfaSelect {\n background: transparent;\n }\n\n .xfaSelect {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-indent: 1px;\n text-overflow: \"\";\n }\n}\n\n\n:root {\n --focus-outline: solid 2px red;\n --hover-outline: dashed 2px blue;\n --freetext-line-height: 1.35;\n --freetext-padding: 2px;\n}\n\n@media (forced-colors: active) {\n :root {\n --focus-outline: solid 3px ButtonText;\n --hover-outline: dashed 3px ButtonText;\n }\n}\n\n[data-editor-rotation=\"90\"] {\n transform: rotate(90deg);\n}\n[data-editor-rotation=\"180\"] {\n transform: rotate(180deg);\n}\n[data-editor-rotation=\"270\"] {\n transform: rotate(270deg);\n}\n\n.annotationEditorLayer {\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n font-size: calc(100px * var(--scale-factor));\n transform-origin: 0 0;\n}\n\n.annotationEditorLayer .selectedEditor {\n outline: var(--focus-outline);\n resize: none;\n}\n\n.annotationEditorLayer .freeTextEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n padding: calc(var(--freetext-padding) * var(--scale-factor));\n resize: none;\n width: auto;\n height: auto;\n z-index: 1;\n transform-origin: 0 0;\n touch-action: none;\n}\n\n.annotationEditorLayer .freeTextEditor .internal {\n background: transparent;\n border: none;\n top: 0;\n left: 0;\n overflow: visible;\n white-space: nowrap;\n resize: none;\n font: 10px sans-serif;\n line-height: var(--freetext-line-height);\n}\n\n.annotationEditorLayer .freeTextEditor .overlay {\n position: absolute;\n display: none;\n background: transparent;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationEditorLayer .freeTextEditor .overlay.enabled {\n display: block;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:empty::before {\n content: attr(default-content);\n color: gray;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:focus {\n outline: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled {\n resize: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled.selectedEditor {\n resize: horizontal;\n}\n\n.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),\n.annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {\n outline: var(--hover-outline);\n}\n\n.annotationEditorLayer .inkEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n overflow: auto;\n width: 100%;\n height: 100%;\n z-index: 1;\n transform-origin: 0 0;\n cursor: auto;\n}\n\n.annotationEditorLayer .inkEditor.editing {\n resize: none;\n cursor: var(--editorInk-editing-cursor), pointer;\n}\n\n.annotationEditorLayer .inkEditor .inkEditorCanvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n touch-action: none;\n}\n\n:root {\n --viewer-container-height: 0;\n --pdfViewer-padding-bottom: 0;\n --page-margin: 1px auto -8px;\n --page-border: 9px solid transparent;\n --page-border-image: url(images/shadow.png) 9 9 repeat;\n --spreadHorizontalWrapped-margin-LR: -3.5px;\n --scale-factor: 1;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --pdfViewer-padding-bottom: 9px;\n --page-margin: 8px auto -1px;\n --page-border: 1px solid CanvasText;\n --page-border-image: none;\n --spreadHorizontalWrapped-margin-LR: 3.5px;\n }\n}\n\n.pdfViewer,\n.pdfViewer *,\n.pdfViewer *::before,\n.pdfViewer *::after {\n box-sizing: content-box;\n}\n\n[data-main-rotation=\"90\"] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation=\"180\"] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation=\"270\"] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.pdfViewer {\n padding-bottom: var(--pdfViewer-padding-bottom);\n}\n\n.pdfViewer .canvasWrapper {\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.pdfViewer .page {\n --user-unit: 1;\n --total-scale-factor: calc(var(--scale-factor) * var(--user-unit));\n --scale-round-x: 1px;\n --scale-round-y: 1px;\n direction: ltr;\n width: 816px;\n height: 1056px;\n margin: var(--page-margin);\n position: relative;\n overflow: visible;\n border: var(--page-border);\n -o-border-image: var(--page-border-image);\n border-image: var(--page-border-image);\n background-clip: content-box;\n background-color: rgba(255, 255, 255, 1);\n}\n\n.pdfViewer .dummyPage {\n position: relative;\n width: 0;\n height: var(--viewer-container-height);\n}\n\n.pdfViewer.removePageBorders .page {\n margin: 0 auto 10px;\n border: none;\n}\n\n.pdfViewer.singlePageView {\n display: inline-block;\n}\n\n.pdfViewer.singlePageView .page {\n margin: 0;\n border: none;\n}\n\n.pdfViewer.scrollHorizontal,\n.pdfViewer.scrollWrapped,\n.spread {\n margin-left: 3.5px;\n margin-right: 3.5px;\n text-align: center;\n}\n\n.pdfViewer.scrollHorizontal,\n.spread {\n white-space: nowrap;\n}\n\n.pdfViewer.removePageBorders,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n margin-left: 0;\n margin-right: 0;\n}\n\n.spread .page,\n.spread .dummyPage,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n display: inline-block;\n vertical-align: middle;\n}\n\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page {\n margin-left: var(--spreadHorizontalWrapped-margin-LR);\n margin-right: var(--spreadHorizontalWrapped-margin-LR);\n}\n\n.pdfViewer.removePageBorders .spread .page,\n.pdfViewer.removePageBorders.scrollHorizontal .page,\n.pdfViewer.removePageBorders.scrollWrapped .page {\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.pdfViewer .page canvas {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n display: block;\n width: 100%;\n height: 100%;\n contain: content;\n}\n\n.pdfViewer .page canvas[hidden] {\n display: none;\n}\n\n.pdfViewer .page .loadingIcon {\n position: absolute;\n display: block;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: url(\"./images/loading-icon.gif\") center no-repeat;\n}\n.pdfViewer .page .loadingIcon.notVisible {\n background: none;\n}\n\n.pdfViewer.enablePermissions .textLayer span {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n user-select: none !important;\n cursor: not-allowed;\n}\n\n.pdfPresentationMode .pdfViewer {\n padding-bottom: 0;\n}\n\n.pdfPresentationMode .spread {\n margin: 0;\n}\n\n.pdfPresentationMode .pdfViewer .page {\n margin: 0 auto;\n border: 2px solid transparent;\n}\n\n\n.pdf-shell {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n color: #1f2937;\n background: #edf2f7;\n}\n\n.pdf-toolbar {\n z-index: 2;\n display: flex;\n align-items: center;\n gap: 10px;\n min-height: 48px;\n padding: 6px 12px;\n border-bottom: 1px solid #d7dee8;\n background: #ffffff;\n box-shadow: 0 1px 4px rgb(15 23 42 / 8%);\n}\n\n.pdf-toolbar-group {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 36px;\n padding: 0 6px;\n border: 1px solid #dde5ef;\n border-radius: 8px;\n background: #f8fafc;\n}\n\n.pdf-toolbar-group--zoom {\n margin-left: auto;\n}\n\n.pdf-toolbar-group--rotate {\n flex-shrink: 0;\n}\n\n.pdf-icon-button,\n.pdf-scale-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;\n}\n\n.pdf-icon-button {\n width: 30px;\n font-size: 18px;\n}\n\n.pdf-scale-button {\n width: 64px;\n font-size: 13px;\n font-weight: 600;\n}\n\n.pdf-icon-button:hover:not(:disabled),\n.pdf-scale-button:hover {\n border-color: #b9c8d8;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-icon-button:disabled {\n color: #a8b3c0;\n cursor: not-allowed;\n}\n\n.pdf-icon-button--active {\n border-color: #9ac2ff;\n color: #1769d8;\n background: #e7f1ff;\n}\n\n.pdf-panel-icon {\n position: relative;\n display: block;\n width: 16px;\n height: 14px;\n border: 2px solid currentColor;\n border-radius: 3px;\n}\n\n.pdf-panel-icon::before {\n position: absolute;\n top: -2px;\n bottom: -2px;\n left: 4px;\n width: 2px;\n background: currentColor;\n content: '';\n}\n\n.pdf-page-meter {\n display: inline-flex;\n align-items: baseline;\n justify-content: center;\n min-width: 72px;\n gap: 3px;\n font-size: 13px;\n color: #64748b;\n white-space: nowrap;\n}\n\n.pdf-page-meter strong {\n color: #1e293b;\n font-size: 14px;\n}\n\n.pdf-rotation-meter {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 42px;\n color: #64748b;\n font-size: 13px;\n font-weight: 700;\n white-space: nowrap;\n}\n\n.pdf-content {\n position: relative;\n display: grid;\n grid-template-columns: clamp(148px, 22%, 220px) minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n\n.pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n}\n\n.pdf-nav-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border-right: 1px solid #d7dee8;\n background: #f8fafc;\n}\n\n.pdf-nav-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 44px;\n padding: 0 12px;\n border-bottom: 1px solid #e3e9f1;\n color: #475569;\n font-size: 13px;\n}\n\n.pdf-nav-head strong {\n color: #1e293b;\n font-size: 12px;\n}\n\n.pdf-nav-tabs {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 4px;\n padding: 8px;\n border-bottom: 1px solid #e3e9f1;\n background: #f8fafc;\n}\n\n.pdf-nav-tabs button {\n min-width: 0;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #64748b;\n background: transparent;\n font: inherit;\n font-size: 12px;\n font-weight: 700;\n cursor: pointer;\n}\n\n.pdf-nav-tabs button:hover,\n.pdf-nav-tabs button.active {\n border-color: #b9d4f6;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-page-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 8px;\n padding: 10px;\n overflow-y: auto;\n}\n\n.pdf-page-button {\n display: grid;\n grid-template-columns: 42px minmax(0, 1fr);\n align-items: center;\n gap: 10px;\n width: 100%;\n min-height: 54px;\n padding: 6px 8px;\n border: 1px solid #dce4ee;\n border-radius: 8px;\n color: #334155;\n background: #ffffff;\n cursor: pointer;\n text-align: left;\n transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;\n}\n\n.pdf-page-button:hover {\n border-color: #a9c5ea;\n background: #f3f8ff;\n}\n\n.pdf-page-button--active {\n border-color: #408fff;\n background: #eaf3ff;\n box-shadow: inset 3px 0 0 #408fff;\n}\n\n.pdf-page-thumb {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 42px;\n border: 1px solid #d6e1ee;\n border-radius: 4px;\n color: #1769d8;\n background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);\n font-size: 12px;\n font-weight: 700;\n}\n\n.pdf-page-label {\n min-width: 0;\n overflow: hidden;\n font-size: 13px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 4px;\n padding: 8px;\n overflow-y: auto;\n}\n\n.pdf-outline-button {\n --outline-depth: 0;\n display: grid;\n grid-template-columns: 16px minmax(0, 1fr);\n align-items: center;\n gap: 6px;\n width: 100%;\n min-height: 32px;\n padding: 5px 7px 5px calc(7px + var(--outline-depth) * 14px);\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.pdf-outline-button:hover {\n border-color: #c7d7eb;\n background: #ffffff;\n}\n\n.pdf-outline-toggle {\n position: relative;\n width: 14px;\n height: 14px;\n border-radius: 4px;\n color: #64748b;\n}\n\n.pdf-outline-toggle::before {\n position: absolute;\n top: 3px;\n left: 4px;\n width: 6px;\n height: 6px;\n border-right: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n content: '';\n transform: rotate(-45deg);\n transition: transform 0.16s ease;\n}\n\n.pdf-outline-toggle--open::before {\n transform: rotate(45deg);\n}\n\n.pdf-outline-toggle--empty::before {\n display: none;\n}\n\n.pdf-outline-title {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-empty {\n margin: 24px 8px;\n padding: 14px 10px;\n border: 1px dashed #cbd5e1;\n border-radius: 8px;\n color: #64748b;\n background: #ffffff;\n font-size: 12px;\n text-align: center;\n}\n\n.pdfViewer {\n margin: 0 auto;\n padding: 18px 14px 28px;\n}\n\n.pdf-viewport {\n position: relative;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n}\n\n.pdf-wrapper {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #e8edf4;\n}\n\n.pdf-state {\n position: absolute;\n top: 50%;\n left: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 168px;\n min-height: 42px;\n padding: 0 16px;\n border: 1px solid #d7dee8;\n border-radius: 8px;\n color: #475569;\n background: #ffffff;\n box-shadow: 0 10px 30px rgb(15 23 42 / 12%);\n transform: translate(-50%, -50%);\n}\n\n.pdf-state--error {\n max-width: min(460px, calc(100% - 32px));\n color: #b42318;\n text-align: center;\n}\n\n@media (max-width: 720px) {\n .pdf-toolbar {\n flex-wrap: wrap;\n min-height: 88px;\n align-content: center;\n }\n\n .pdf-toolbar-group--zoom {\n margin-left: 0;\n }\n\n .pdf-content,\n .pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .pdf-nav-pane {\n position: absolute;\n z-index: 3;\n top: 0;\n bottom: 0;\n left: 0;\n width: min(78vw, 240px);\n box-shadow: 10px 0 24px rgb(15 23 42 / 14%);\n }\n}\n";
1
+ export const pdfViewerStyle = "/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.textLayer {\n color-scheme: only light;\n position: absolute;\n text-align: initial;\n inset: 0;\n overflow: clip;\n opacity: 1;\n line-height: 1;\n letter-spacing: normal;\n word-spacing: normal;\n -webkit-text-size-adjust: none;\n -moz-text-size-adjust: none;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n z-index: 0;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n\n.textLayer.highlighting {\n touch-action: none;\n}\n\n.textLayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.textLayer > :not(.markedContent),\n.textLayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n\n.textLayer .markedContent {\n display: contents;\n}\n\n.textLayer .markedContent.highlight {\n background: transparent;\n backdrop-filter: none;\n margin: 0;\n padding: 0;\n}\n\n.textLayer span[role='img'] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n cursor: default;\n}\n\n.textLayer .highlight {\n --highlight-bg-color: rgb(180 0 170 / 0.25);\n --highlight-selected-bg-color: rgb(0 100 0 / 0.25);\n --highlight-backdrop-filter: none;\n --highlight-selected-backdrop-filter: none;\n margin: -1px;\n padding: 1px;\n background-color: var(--highlight-bg-color);\n backdrop-filter: var(--highlight-backdrop-filter);\n border-radius: 4px;\n}\n\n.textLayer .highlight.appended {\n position: initial;\n}\n\n.textLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.textLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.textLayer .highlight.middle {\n border-radius: 0;\n}\n\n.textLayer .highlight.selected {\n background-color: var(--highlight-selected-bg-color);\n backdrop-filter: var(--highlight-selected-backdrop-filter);\n scroll-margin-top: 50px;\n}\n\n.textLayer ::-moz-selection {\n background: rgba(0, 0, 255, 0.25);\n background: color-mix(in srgb, AccentColor, transparent 75%);\n}\n\n.textLayer ::selection {\n background: rgba(0, 0, 255, 0.25);\n background: color-mix(in srgb, AccentColor, transparent 75%);\n}\n\n.textLayer br::-moz-selection {\n background: transparent;\n}\n\n.textLayer br::selection {\n background: transparent;\n}\n\n.textLayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayer.selecting .endOfContent {\n top: 0;\n}\n\n.textLayerImages {\n position: absolute;\n inset: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.textLayerImages canvas {\n position: absolute;\n transform-origin: 0% 0%;\n}\n\n@media screen and (forced-colors: active) {\n .textLayer .highlight {\n --highlight-bg-color: transparent;\n --highlight-selected-bg-color: transparent;\n --highlight-backdrop-filter: var(--hcm-highlight-filter);\n --highlight-selected-backdrop-filter: var(--hcm-highlight-selected-filter);\n }\n}\n\n\n:root {\n --annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .annotationLayer .textWidgetAnnotation input:required,\n .annotationLayer .textWidgetAnnotation textarea:required,\n .annotationLayer .choiceWidgetAnnotation select:required,\n .annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n .annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.annotationLayer {\n position: absolute;\n top: 0;\n left: 0;\n pointer-events: none;\n transform-origin: 0 0;\n}\n\n.annotationLayer section {\n position: absolute;\n text-align: initial;\n pointer-events: auto;\n box-sizing: border-box;\n transform-origin: 0 0;\n}\n\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n position: absolute;\n font-size: 1em;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.pushButton > canvas {\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n opacity: 0.2;\n background: rgba(255, 255, 0, 1);\n box-shadow: 0 2px 10px rgba(255, 255, 0, 1);\n}\n\n.annotationLayer .textAnnotation img {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n background-image: var(--annotation-unfocused-field-background);\n border: 1px solid transparent;\n box-sizing: border-box;\n font: calc(9px * var(--scale-factor)) sans-serif;\n height: 100%;\n margin: 0;\n vertical-align: top;\n width: 100%;\n}\n\n.annotationLayer .textWidgetAnnotation input:required,\n.annotationLayer .textWidgetAnnotation textarea:required,\n.annotationLayer .choiceWidgetAnnotation select:required,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:required,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:required {\n outline: 1.5px solid red;\n}\n\n.annotationLayer .choiceWidgetAnnotation select option {\n padding: 0;\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n border-radius: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation textarea {\n resize: none;\n}\n\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n background: none;\n border: 1px solid transparent;\n cursor: not-allowed;\n}\n\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n border: 1px solid rgba(0, 0, 0, 1);\n}\n\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n background: none;\n border: 1px solid transparent;\n}\n\n.annotationLayer .textWidgetAnnotation input :focus,\n.annotationLayer .textWidgetAnnotation textarea :focus,\n.annotationLayer .choiceWidgetAnnotation select :focus,\n.annotationLayer .buttonWidgetAnnotation.checkBox :focus,\n.annotationLayer .buttonWidgetAnnotation.radioButton :focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n background-color: CanvasText;\n content: \"\";\n display: block;\n position: absolute;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n height: 80%;\n left: 45%;\n width: 1px;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n transform: rotate(45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n transform: rotate(-45deg);\n}\n\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n border-radius: 50%;\n height: 50%;\n left: 30%;\n top: 20%;\n width: 50%;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb {\n font-family: monospace;\n padding-left: 2px;\n padding-right: 0;\n}\n\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n /*\n * Letter spacing is placed on the right side of each character. Hence, the\n * letter spacing of the last character may be placed outside the visible\n * area, causing horizontal scrolling. We avoid this by extending the width\n * when the element has focus and revert this when it loses focus.\n */\n width: 103%;\n}\n\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.annotationLayer .popupTriggerArea {\n height: 100%;\n width: 100%;\n}\n\n.annotationLayer .popupWrapper {\n position: absolute;\n font-size: calc(9px * var(--scale-factor));\n width: 100%;\n min-width: calc(180px * var(--scale-factor));\n pointer-events: none;\n}\n\n.annotationLayer .popup {\n position: absolute;\n z-index: 200;\n max-width: calc(180px * var(--scale-factor));\n background-color: rgba(255, 255, 153, 1);\n box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor))\n rgba(136, 136, 136, 1);\n border-radius: calc(2px * var(--scale-factor));\n padding: calc(6px * var(--scale-factor));\n margin-left: calc(5px * var(--scale-factor));\n cursor: pointer;\n font: message-box;\n white-space: normal;\n word-wrap: break-word;\n pointer-events: auto;\n}\n\n.annotationLayer .popup > * {\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .popup h1 {\n display: inline-block;\n}\n\n.annotationLayer .popupDate {\n display: inline-block;\n margin-left: calc(5px * var(--scale-factor));\n}\n\n.annotationLayer .popupContent {\n border-top: 1px solid rgba(51, 51, 51, 1);\n margin-top: calc(2px * var(--scale-factor));\n padding-top: calc(2px * var(--scale-factor));\n}\n\n.annotationLayer .richText > * {\n white-space: pre-wrap;\n font-size: calc(9px * var(--scale-factor));\n}\n\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n cursor: pointer;\n}\n\n.annotationLayer section svg {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n\n\n:root {\n --xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");\n}\n\n@media (forced-colors: active) {\n .xfaLayer *:required {\n outline: 1.5px solid selectedItem;\n }\n}\n\n.xfaLayer .highlight {\n margin: -1px;\n padding: 1px;\n background-color: rgba(239, 203, 237, 1);\n border-radius: 4px;\n}\n\n.xfaLayer .highlight.appended {\n position: initial;\n}\n\n.xfaLayer .highlight.begin {\n border-radius: 4px 0 0 4px;\n}\n\n.xfaLayer .highlight.end {\n border-radius: 0 4px 4px 0;\n}\n\n.xfaLayer .highlight.middle {\n border-radius: 0;\n}\n\n.xfaLayer .highlight.selected {\n background-color: rgba(203, 223, 203, 1);\n}\n\n.xfaLayer ::-moz-selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaLayer ::selection {\n background: rgba(0, 0, 255, 1);\n}\n\n.xfaPage {\n overflow: hidden;\n position: relative;\n}\n\n.xfaContentarea {\n position: absolute;\n}\n\n.xfaPrintOnly {\n display: none;\n}\n\n.xfaLayer {\n position: absolute;\n text-align: initial;\n top: 0;\n left: 0;\n transform-origin: 0 0;\n line-height: 1.2;\n}\n\n.xfaLayer * {\n color: inherit;\n font: inherit;\n font-style: inherit;\n font-weight: inherit;\n font-kerning: inherit;\n letter-spacing: -0.01px;\n text-align: inherit;\n text-decoration: inherit;\n box-sizing: border-box;\n background-color: transparent;\n padding: 0;\n margin: 0;\n pointer-events: auto;\n line-height: inherit;\n}\n\n.xfaLayer *:required {\n outline: 1.5px solid red;\n}\n\n.xfaLayer div {\n pointer-events: none;\n}\n\n.xfaLayer svg {\n pointer-events: none;\n}\n\n.xfaLayer svg * {\n pointer-events: none;\n}\n\n.xfaLayer a {\n color: blue;\n}\n\n.xfaRich li {\n margin-left: 3em;\n}\n\n.xfaFont {\n color: black;\n font-weight: normal;\n font-kerning: none;\n font-size: 10px;\n font-style: normal;\n letter-spacing: 0;\n text-decoration: none;\n vertical-align: 0;\n}\n\n.xfaCaption {\n overflow: hidden;\n flex: 0 0 auto;\n}\n\n.xfaCaptionForCheckButton {\n overflow: hidden;\n flex: 1 1 auto;\n}\n\n.xfaLabel {\n height: 100%;\n width: 100%;\n}\n\n.xfaLeft {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.xfaRight {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n}\n\n.xfaLeft > .xfaCaption,\n.xfaLeft > .xfaCaptionForCheckButton,\n.xfaRight > .xfaCaption,\n.xfaRight > .xfaCaptionForCheckButton {\n max-height: 100%;\n}\n\n.xfaTop {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n\n.xfaBottom {\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n}\n\n.xfaTop > .xfaCaption,\n.xfaTop > .xfaCaptionForCheckButton,\n.xfaBottom > .xfaCaption,\n.xfaBottom > .xfaCaptionForCheckButton {\n width: 100%;\n}\n\n.xfaBorder {\n background-color: transparent;\n position: absolute;\n pointer-events: none;\n}\n\n.xfaWrapped {\n width: 100%;\n height: 100%;\n}\n\n.xfaTextfield:focus,\n.xfaSelect:focus {\n background-image: none;\n background-color: transparent;\n outline: auto;\n outline-offset: -1px;\n}\n\n.xfaCheckbox:focus,\n.xfaRadio:focus {\n outline: auto;\n}\n\n.xfaTextfield,\n.xfaSelect {\n height: 100%;\n width: 100%;\n flex: 1 1 auto;\n border: none;\n resize: none;\n background-image: var(--xfa-unfocused-field-background);\n}\n\n.xfaTop > .xfaTextfield,\n.xfaTop > .xfaSelect,\n.xfaBottom > .xfaTextfield,\n.xfaBottom > .xfaSelect {\n flex: 0 1 auto;\n}\n\n.xfaButton {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border: none;\n text-align: center;\n}\n\n.xfaLink {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.xfaCheckbox,\n.xfaRadio {\n width: 100%;\n height: 100%;\n flex: 0 0 auto;\n border: none;\n}\n\n.xfaRich {\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n}\n\n.xfaImage {\n -o-object-position: left top;\n object-position: left top;\n -o-object-fit: contain;\n object-fit: contain;\n width: 100%;\n height: 100%;\n}\n\n.xfaLrTb,\n.xfaRlTb,\n.xfaTb {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaLr {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaRl {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n}\n\n.xfaTb > div {\n justify-content: left;\n}\n\n.xfaPosition {\n position: relative;\n}\n\n.xfaArea {\n position: relative;\n}\n\n.xfaValignMiddle {\n display: flex;\n align-items: center;\n}\n\n.xfaTable {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.xfaTable .xfaRow {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n}\n\n.xfaTable .xfaRlRow {\n display: flex;\n flex-direction: row-reverse;\n align-items: stretch;\n flex: 1;\n}\n\n.xfaTable .xfaRlRow > div {\n flex: 1;\n}\n\n.xfaNonInteractive input,\n.xfaNonInteractive textarea,\n.xfaDisabled input,\n.xfaDisabled textarea,\n.xfaReadOnly input,\n.xfaReadOnly textarea {\n background: initial;\n}\n\n@media print {\n .xfaTextfield,\n .xfaSelect {\n background: transparent;\n }\n\n .xfaSelect {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n text-indent: 1px;\n text-overflow: \"\";\n }\n}\n\n\n:root {\n --focus-outline: solid 2px red;\n --hover-outline: dashed 2px blue;\n --freetext-line-height: 1.35;\n --freetext-padding: 2px;\n}\n\n@media (forced-colors: active) {\n :root {\n --focus-outline: solid 3px ButtonText;\n --hover-outline: dashed 3px ButtonText;\n }\n}\n\n[data-editor-rotation=\"90\"] {\n transform: rotate(90deg);\n}\n[data-editor-rotation=\"180\"] {\n transform: rotate(180deg);\n}\n[data-editor-rotation=\"270\"] {\n transform: rotate(270deg);\n}\n\n.annotationEditorLayer {\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n font-size: calc(100px * var(--scale-factor));\n transform-origin: 0 0;\n}\n\n.annotationEditorLayer .selectedEditor {\n outline: var(--focus-outline);\n resize: none;\n}\n\n.annotationEditorLayer .freeTextEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n padding: calc(var(--freetext-padding) * var(--scale-factor));\n resize: none;\n width: auto;\n height: auto;\n z-index: 1;\n transform-origin: 0 0;\n touch-action: none;\n}\n\n.annotationEditorLayer .freeTextEditor .internal {\n background: transparent;\n border: none;\n top: 0;\n left: 0;\n overflow: visible;\n white-space: nowrap;\n resize: none;\n font: 10px sans-serif;\n line-height: var(--freetext-line-height);\n}\n\n.annotationEditorLayer .freeTextEditor .overlay {\n position: absolute;\n display: none;\n background: transparent;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.annotationEditorLayer .freeTextEditor .overlay.enabled {\n display: block;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:empty::before {\n content: attr(default-content);\n color: gray;\n}\n\n.annotationEditorLayer .freeTextEditor .internal:focus {\n outline: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled {\n resize: none;\n}\n\n.annotationEditorLayer .inkEditor.disabled.selectedEditor {\n resize: horizontal;\n}\n\n.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),\n.annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {\n outline: var(--hover-outline);\n}\n\n.annotationEditorLayer .inkEditor {\n position: absolute;\n background: transparent;\n border-radius: 3px;\n overflow: auto;\n width: 100%;\n height: 100%;\n z-index: 1;\n transform-origin: 0 0;\n cursor: auto;\n}\n\n.annotationEditorLayer .inkEditor.editing {\n resize: none;\n cursor: var(--editorInk-editing-cursor), pointer;\n}\n\n.annotationEditorLayer .inkEditor .inkEditorCanvas {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n touch-action: none;\n}\n\n:root {\n --viewer-container-height: 0;\n --pdfViewer-padding-bottom: 0;\n --page-margin: 1px auto -8px;\n --page-border: 9px solid transparent;\n --page-border-image: url(images/shadow.png) 9 9 repeat;\n --spreadHorizontalWrapped-margin-LR: -3.5px;\n --scale-factor: 1;\n}\n\n@media screen and (forced-colors: active) {\n :root {\n --pdfViewer-padding-bottom: 9px;\n --page-margin: 8px auto -1px;\n --page-border: 1px solid CanvasText;\n --page-border-image: none;\n --spreadHorizontalWrapped-margin-LR: 3.5px;\n }\n}\n\n.pdfViewer,\n.pdfViewer *,\n.pdfViewer *::before,\n.pdfViewer *::after {\n box-sizing: content-box;\n}\n\n[data-main-rotation=\"90\"] {\n transform: rotate(90deg) translateY(-100%);\n}\n[data-main-rotation=\"180\"] {\n transform: rotate(180deg) translate(-100%, -100%);\n}\n[data-main-rotation=\"270\"] {\n transform: rotate(270deg) translateX(-100%);\n}\n\n.pdfViewer {\n padding-bottom: var(--pdfViewer-padding-bottom);\n}\n\n.pdfViewer .canvasWrapper {\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.pdfViewer .page {\n --user-unit: 1;\n --total-scale-factor: calc(var(--scale-factor) * var(--user-unit));\n --scale-round-x: 1px;\n --scale-round-y: 1px;\n direction: ltr;\n width: 816px;\n height: 1056px;\n margin: var(--page-margin);\n position: relative;\n overflow: visible;\n border: var(--page-border);\n -o-border-image: var(--page-border-image);\n border-image: var(--page-border-image);\n background-clip: content-box;\n background-color: rgba(255, 255, 255, 1);\n}\n\n.pdfViewer .dummyPage {\n position: relative;\n width: 0;\n height: var(--viewer-container-height);\n}\n\n.pdfViewer.removePageBorders .page {\n margin: 0 auto 10px;\n border: none;\n}\n\n.pdfViewer.singlePageView {\n display: inline-block;\n}\n\n.pdfViewer.singlePageView .page {\n margin: 0;\n border: none;\n}\n\n.pdfViewer.scrollHorizontal,\n.pdfViewer.scrollWrapped,\n.spread {\n margin-left: 3.5px;\n margin-right: 3.5px;\n text-align: center;\n}\n\n.pdfViewer.scrollHorizontal,\n.spread {\n white-space: nowrap;\n}\n\n.pdfViewer.removePageBorders,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n margin-left: 0;\n margin-right: 0;\n}\n\n.spread .page,\n.spread .dummyPage,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n display: inline-block;\n vertical-align: middle;\n}\n\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page {\n margin-left: var(--spreadHorizontalWrapped-margin-LR);\n margin-right: var(--spreadHorizontalWrapped-margin-LR);\n}\n\n.pdfViewer.removePageBorders .spread .page,\n.pdfViewer.removePageBorders.scrollHorizontal .page,\n.pdfViewer.removePageBorders.scrollWrapped .page {\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.pdfViewer .page canvas {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n display: block;\n width: 100%;\n height: 100%;\n contain: content;\n}\n\n.pdfViewer .page canvas[hidden] {\n display: none;\n}\n\n.pdfViewer .page .loadingIcon {\n position: absolute;\n display: block;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: url(\"./images/loading-icon.gif\") center no-repeat;\n}\n.pdfViewer .page .loadingIcon.notVisible {\n background: none;\n}\n\n.pdfViewer.enablePermissions .textLayer span {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n user-select: none !important;\n cursor: not-allowed;\n}\n\n.pdfPresentationMode .pdfViewer {\n padding-bottom: 0;\n}\n\n.pdfPresentationMode .spread {\n margin: 0;\n}\n\n.pdfPresentationMode .pdfViewer .page {\n margin: 0 auto;\n border: 2px solid transparent;\n}\n\n\n.pdf-shell {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n color: #1f2937;\n background: #edf2f7;\n}\n\n.pdf-toolbar {\n z-index: 2;\n display: flex;\n align-items: center;\n gap: 10px;\n min-height: 48px;\n padding: 6px 12px;\n border-bottom: 1px solid #d7dee8;\n background: #ffffff;\n box-shadow: 0 1px 4px rgb(15 23 42 / 8%);\n}\n\n.pdf-toolbar-group {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 36px;\n padding: 0 6px;\n border: 1px solid #dde5ef;\n border-radius: 8px;\n background: #f8fafc;\n}\n\n.pdf-toolbar-group--zoom {\n margin-left: auto;\n}\n\n.pdf-toolbar-group--rotate {\n flex-shrink: 0;\n}\n\n.pdf-icon-button,\n.pdf-scale-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;\n}\n\n.pdf-icon-button {\n width: 30px;\n font-size: 18px;\n}\n\n.pdf-scale-button {\n width: 64px;\n font-size: 13px;\n font-weight: 600;\n}\n\n.pdf-icon-button:hover:not(:disabled),\n.pdf-scale-button:hover {\n border-color: #b9c8d8;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-icon-button:disabled {\n color: #a8b3c0;\n cursor: not-allowed;\n}\n\n.pdf-icon-button--active {\n border-color: #9ac2ff;\n color: #1769d8;\n background: #e7f1ff;\n}\n\n.pdf-panel-icon {\n position: relative;\n display: block;\n width: 16px;\n height: 14px;\n border: 2px solid currentColor;\n border-radius: 3px;\n}\n\n.pdf-panel-icon::before {\n position: absolute;\n top: -2px;\n bottom: -2px;\n left: 4px;\n width: 2px;\n background: currentColor;\n content: '';\n}\n\n.pdf-page-meter {\n display: inline-flex;\n align-items: baseline;\n justify-content: center;\n min-width: 72px;\n gap: 3px;\n font-size: 13px;\n color: #64748b;\n white-space: nowrap;\n}\n\n.pdf-page-meter strong {\n color: #1e293b;\n font-size: 14px;\n}\n\n.pdf-rotation-meter {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 42px;\n color: #64748b;\n font-size: 13px;\n font-weight: 700;\n white-space: nowrap;\n}\n\n.pdf-content {\n position: relative;\n display: grid;\n grid-template-columns: clamp(148px, 22%, 220px) minmax(0, 1fr);\n flex: 1;\n min-height: 0;\n}\n\n.pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n}\n\n.pdf-nav-pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border-right: 1px solid #d7dee8;\n background: #f8fafc;\n}\n\n.pdf-nav-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 44px;\n padding: 0 12px;\n border-bottom: 1px solid #e3e9f1;\n color: #475569;\n font-size: 13px;\n}\n\n.pdf-nav-head strong {\n color: #1e293b;\n font-size: 12px;\n}\n\n.pdf-nav-tabs {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 4px;\n padding: 8px;\n border-bottom: 1px solid #e3e9f1;\n background: #f8fafc;\n}\n\n.pdf-nav-tabs button {\n min-width: 0;\n height: 30px;\n border: 1px solid transparent;\n border-radius: 6px;\n color: #64748b;\n background: transparent;\n font: inherit;\n font-size: 12px;\n font-weight: 700;\n cursor: pointer;\n}\n\n.pdf-nav-tabs button:hover,\n.pdf-nav-tabs button.active {\n border-color: #b9d4f6;\n color: #1769d8;\n background: #edf5ff;\n}\n\n.pdf-page-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 8px;\n padding: 10px;\n overflow-y: auto;\n}\n\n.pdf-page-button {\n display: grid;\n grid-template-columns: 42px minmax(0, 1fr);\n align-items: center;\n gap: 10px;\n width: 100%;\n min-height: 54px;\n padding: 6px 8px;\n border: 1px solid #dce4ee;\n border-radius: 8px;\n color: #334155;\n background: #ffffff;\n cursor: pointer;\n text-align: left;\n transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;\n}\n\n.pdf-page-button:hover {\n border-color: #a9c5ea;\n background: #f3f8ff;\n}\n\n.pdf-page-button--active {\n border-color: #408fff;\n background: #eaf3ff;\n box-shadow: inset 3px 0 0 #408fff;\n}\n\n.pdf-page-thumb {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 42px;\n border: 1px solid #d6e1ee;\n border-radius: 4px;\n color: #1769d8;\n background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);\n font-size: 12px;\n font-weight: 700;\n}\n\n.pdf-page-label {\n min-width: 0;\n overflow: hidden;\n font-size: 13px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-list {\n flex: 1;\n min-height: 0;\n display: grid;\n align-content: start;\n gap: 4px;\n padding: 8px;\n overflow-y: auto;\n}\n\n.pdf-outline-button {\n --outline-depth: 0;\n display: grid;\n grid-template-columns: 16px minmax(0, 1fr);\n align-items: center;\n gap: 6px;\n width: 100%;\n min-height: 32px;\n padding: 5px 7px 5px calc(7px + var(--outline-depth) * 14px);\n border: 1px solid transparent;\n border-radius: 6px;\n color: #334155;\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.pdf-outline-button:hover {\n border-color: #c7d7eb;\n background: #ffffff;\n}\n\n.pdf-outline-toggle {\n position: relative;\n width: 14px;\n height: 14px;\n border-radius: 4px;\n color: #64748b;\n}\n\n.pdf-outline-toggle::before {\n position: absolute;\n top: 3px;\n left: 4px;\n width: 6px;\n height: 6px;\n border-right: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n content: '';\n transform: rotate(-45deg);\n transition: transform 0.16s ease;\n}\n\n.pdf-outline-toggle--open::before {\n transform: rotate(45deg);\n}\n\n.pdf-outline-toggle--empty::before {\n display: none;\n}\n\n.pdf-outline-title {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.pdf-outline-empty {\n margin: 24px 8px;\n padding: 14px 10px;\n border: 1px dashed #cbd5e1;\n border-radius: 8px;\n color: #64748b;\n background: #ffffff;\n font-size: 12px;\n text-align: center;\n}\n\n.pdfViewer {\n margin: 0 auto;\n padding: 18px 14px 28px;\n}\n\n.pdf-viewport {\n position: relative;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n}\n\n.pdf-wrapper {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #e8edf4;\n}\n\n.pdf-state {\n position: absolute;\n top: 50%;\n left: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 168px;\n min-height: 42px;\n padding: 0 16px;\n border: 1px solid #d7dee8;\n border-radius: 8px;\n color: #475569;\n background: #ffffff;\n box-shadow: 0 10px 30px rgb(15 23 42 / 12%);\n transform: translate(-50%, -50%);\n}\n\n.pdf-state--error {\n max-width: min(460px, calc(100% - 32px));\n color: #b42318;\n text-align: center;\n}\n\n@media (max-width: 720px) {\n .pdf-toolbar {\n flex-wrap: wrap;\n min-height: 88px;\n align-content: center;\n }\n\n .pdf-toolbar-group--zoom {\n margin-left: 0;\n }\n\n .pdf-content,\n .pdf-shell--nav-hidden .pdf-content {\n grid-template-columns: minmax(0, 1fr);\n }\n\n .pdf-nav-pane {\n position: absolute;\n z-index: 3;\n top: 0;\n bottom: 0;\n left: 0;\n width: min(78vw, 240px);\n box-shadow: 10px 0 24px rgb(15 23 42 / 14%);\n }\n}\n";
@@ -0,0 +1,3 @@
1
+ export declare const scopePdfJsWorkerHandlerCache: (workerClass: object, handler: unknown) => {
2
+ restore: () => boolean;
3
+ };
@@ -0,0 +1,47 @@
1
+ const workerHandlerScopes = new WeakMap();
2
+ const cacheProperty = '_setupFakeWorkerGlobal';
3
+ export const scopePdfJsWorkerHandlerCache = (workerClass, handler) => {
4
+ var _a;
5
+ const current = Object.getOwnPropertyDescriptor(workerClass, cacheProperty);
6
+ let scope = workerHandlerScopes.get(workerClass);
7
+ if (!scope || scope.handler !== handler || (current === null || current === void 0 ? void 0 : current.value) !== scope.promise) {
8
+ const promise = Promise.resolve(handler);
9
+ const enumerable = (_a = current === null || current === void 0 ? void 0 : current.enumerable) !== null && _a !== void 0 ? _a : true;
10
+ Object.defineProperty(workerClass, cacheProperty, {
11
+ value: promise,
12
+ configurable: true,
13
+ writable: true,
14
+ enumerable,
15
+ });
16
+ scope = { handler, promise, previous: current, enumerable, users: 0 };
17
+ workerHandlerScopes.set(workerClass, scope);
18
+ }
19
+ const ownedScope = scope;
20
+ ownedScope.users += 1;
21
+ let released = false;
22
+ return {
23
+ restore: () => {
24
+ if (released)
25
+ return false;
26
+ released = true;
27
+ ownedScope.users -= 1;
28
+ if (ownedScope.users > 0)
29
+ return false;
30
+ if (workerHandlerScopes.get(workerClass) === ownedScope) {
31
+ workerHandlerScopes.delete(workerClass);
32
+ }
33
+ const installed = Object.getOwnPropertyDescriptor(workerClass, cacheProperty);
34
+ if ((installed === null || installed === void 0 ? void 0 : installed.value) !== ownedScope.promise ||
35
+ installed.configurable !== true || installed.writable !== true ||
36
+ installed.enumerable !== ownedScope.enumerable)
37
+ return false;
38
+ if (ownedScope.previous) {
39
+ Object.defineProperty(workerClass, cacheProperty, ownedScope.previous);
40
+ }
41
+ else {
42
+ Reflect.deleteProperty(workerClass, cacheProperty);
43
+ }
44
+ return true;
45
+ },
46
+ };
47
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/renderer-pdf",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Standalone PDF renderer plugin for File Viewer powered by PDF.js.",
@@ -80,6 +80,8 @@
80
80
  "dist/pdfStyles.js",
81
81
  "dist/pdfViewState.d.ts",
82
82
  "dist/pdfViewState.js",
83
+ "dist/pdfWorkerCache.d.ts",
84
+ "dist/pdfWorkerCache.js",
83
85
  "dist/pdfWorkerGlobal.d.ts",
84
86
  "dist/pdfWorkerGlobal.js",
85
87
  "dist/pdfWorkerProbe.d.ts",
@@ -290,10 +292,11 @@
290
292
  "file-viewer.capability.json",
291
293
  "LICENSE",
292
294
  "README.en.md",
293
- "README.md"
295
+ "README.md",
296
+ "README.zh-CN.md"
294
297
  ],
295
298
  "dependencies": {
296
- "@file-viewer/core": "3.2.1",
299
+ "@file-viewer/core": "3.3.0",
297
300
  "@fontsource-variable/noto-sans-sc": "5.3.0"
298
301
  },
299
302
  "peerDependencies": {