pdf-master-landing 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +82 -82
  2. package/bin/deploy.mjs +164 -164
  3. package/dist/_diag.html +159 -159
  4. package/dist/app/.last_build_id +1 -1
  5. package/dist/app/README.md +49 -49
  6. package/dist/app/assets/AssetManifest.bin +1 -1
  7. package/dist/app/assets/AssetManifest.bin.json +1 -1
  8. package/dist/app/assets/FontManifest.json +1 -1
  9. package/dist/app/assets/NOTICES +75 -50
  10. package/dist/app/assets/fonts/MaterialIcons-Regular.otf +0 -0
  11. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w100.ttf +0 -0
  12. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w200.ttf +0 -0
  13. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w300.ttf +0 -0
  14. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w400.ttf +0 -0
  15. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w500.ttf +0 -0
  16. package/dist/app/assets/packages/lucide_icons_flutter/assets/build_font/LucideVariable-w600.ttf +0 -0
  17. package/dist/app/assets/packages/lucide_icons_flutter/assets/lucide.ttf +0 -0
  18. package/dist/app/assets/packages/pdfrx/assets/pdfium_client.js +65 -65
  19. package/dist/app/assets/packages/pdfrx/assets/pdfium_worker.js +5206 -5206
  20. package/dist/app/canvaskit/canvaskit.wasm +0 -0
  21. package/dist/app/canvaskit/chromium/canvaskit.wasm +0 -0
  22. package/dist/app/canvaskit/experimental_webparagraph/canvaskit.wasm +0 -0
  23. package/dist/app/canvaskit/skwasm.wasm +0 -0
  24. package/dist/app/canvaskit/skwasm_heavy.wasm +0 -0
  25. package/dist/app/canvaskit/wimp.wasm +0 -0
  26. package/dist/app/drift_worker.dart.js +13271 -13271
  27. package/dist/app/flutter_bootstrap.js +1 -1
  28. package/dist/app/flutter_service_worker.js +31 -31
  29. package/dist/app/index.html +59 -59
  30. package/dist/app/main.dart.js +56086 -56064
  31. package/dist/app/main.dart.wasm +0 -0
  32. package/dist/app/manifest.json +34 -34
  33. package/dist/app/version.json +1 -1
  34. package/dist/index.html +21 -21
  35. package/dist/privacy.html +18 -18
  36. package/package.json +41 -41
package/dist/_diag.html CHANGED
@@ -1,159 +1,159 @@
1
- <!doctype html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Flutter Web 加载路径检测</title>
6
- <style>
7
- body {
8
- font: 14px/1.6 -apple-system, system-ui, "PingFang SC", sans-serif;
9
- max-width: 760px;
10
- margin: 40px auto;
11
- padding: 0 20px;
12
- color: #15161a;
13
- }
14
- h1 { font-size: 22px; margin: 0 0 6px; }
15
- h2 { font-size: 16px; margin: 32px 0 10px; }
16
- p.lede { color: #5c6068; margin: 0 0 24px; }
17
- table { width: 100%; border-collapse: collapse; }
18
- td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
19
- td:first-child { width: 240px; color: #5c6068; }
20
- td b { color: #15161a; font-weight: 600; }
21
- .yes { color: #1a7f3c; font-weight: 600; }
22
- .no { color: #b3261e; font-weight: 600; }
23
- code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #f4f4f4; padding: 1px 6px; border-radius: 4px; }
24
- .verdict { margin-top: 24px; padding: 16px 18px; border-radius: 10px; }
25
- .verdict.wasm { background: #e8f4ec; border: 1px solid #1a7f3c; }
26
- .verdict.js { background: #fdecea; border: 1px solid #b3261e; }
27
- .verdict h2 { margin: 0 0 6px; }
28
- .net { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #5c6068; }
29
- </style>
30
- </head>
31
- <body>
32
- <h1>Flutter Web 加载路径检测</h1>
33
- <p class="lede">这一页直接读浏览器 capability + 本次实际加载的脚本,告诉你跑的是 wasm 还是 JS fallback。</p>
34
-
35
- <h2>浏览器能力</h2>
36
- <table id="caps"></table>
37
-
38
- <h2>本次实际加载</h2>
39
- <table id="loaded"></table>
40
-
41
- <div id="verdict" class="verdict"></div>
42
-
43
- <h2>原始抓取详情</h2>
44
- <pre class="net" id="raw"></pre>
45
-
46
- <script type="module">
47
- // —— 浏览器 capability ——
48
- const wasmGcBytes = [0,97,115,109,1,0,0,0,1,5,1,95,1,120,0];
49
- const supportsWasmGC = (() => {
50
- try { return WebAssembly.validate(new Uint8Array(wasmGcBytes)); } catch { return false; }
51
- })();
52
- const c = document.createElement('canvas');
53
- const webgl2 = c.getContext('webgl2') != null;
54
- const webgl1 = !webgl2 && c.getContext('webgl') != null;
55
- const webglVersion = webgl2 ? 2 : (webgl1 ? 1 : 0);
56
- const crossOriginIsolated = window.crossOriginIsolated;
57
- const isHttps = location.protocol === 'https:' || location.hostname === 'localhost' || location.hostname === '127.0.0.1';
58
-
59
- const caps = [
60
- ['supportsWasmGC', supportsWasmGC, 'dart2wasm 必需'],
61
- ['webGLVersion', webglVersion, 'skwasm renderer 要 WebGL2,否则降到 canvaskit'],
62
- ['crossOriginIsolated', crossOriginIsolated, 'COOP+COEP 头是否生效;skwasm 多线程必需'],
63
- ['secure context', isHttps, 'HTTPS 或 localhost'],
64
- ];
65
- const capsEl = document.getElementById('caps');
66
- caps.forEach(([k, v, hint]) => {
67
- const ok = !!v && v !== 0;
68
- const row = document.createElement('tr');
69
- row.innerHTML = `<td><b>${k}</b><div style="font-size:12px;color:#888">${hint}</div></td>` +
70
- `<td><span class="${ok ? 'yes' : 'no'}">${typeof v === 'boolean' ? (v ? 'true' : 'false') : v}</span></td>`;
71
- capsEl.appendChild(row);
72
- });
73
-
74
- // —— 抓 build config ——
75
- const cfgRes = await fetch('/app/flutter_bootstrap.js', { cache: 'no-cache' });
76
- const cfgText = await cfgRes.text();
77
- const cfgMatch = cfgText.match(/_flutter\.buildConfig\s*=\s*(\{[^;]+\})/);
78
- const buildConfig = cfgMatch ? JSON.parse(cfgMatch[1]) : null;
79
- const builds = buildConfig?.builds ?? [];
80
-
81
- // —— 模拟 flutter.js 选择逻辑 ——
82
- const browserEngine = (() => {
83
- if (navigator.vendor === 'Google Inc.' || navigator.userAgent.includes('Edg/')) return 'blink';
84
- if (navigator.vendor === 'Apple Computer, Inc.') return 'webkit';
85
- if (navigator.vendor === '' && navigator.userAgent.includes('Firefox')) return 'gecko';
86
- return 'unknown';
87
- })();
88
- // flutter.js 默认 wasmAllowList: blink=true, gecko=false, webkit=false
89
- const wasmAllowed = browserEngine === 'blink';
90
-
91
- const picked = builds.find(b => {
92
- if (b.compileTarget === 'dart2wasm' && !supportsWasmGC) return false;
93
- if (b.renderer === 'skwasm' && (webglVersion === 0 || !wasmAllowed)) return false;
94
- return true;
95
- });
96
-
97
- // —— 探测实际加载(runtime 监听) ——
98
- const seen = new Set();
99
- const obs = new PerformanceObserver((entries) => {
100
- for (const e of entries.getEntries()) {
101
- if (/main\.dart\.(wasm|mjs|js)|canvaskit\.|skwasm/.test(e.name)) {
102
- seen.add(e.name.split(/[?#]/)[0].split('/').slice(-2).join('/'));
103
- }
104
- }
105
- });
106
- obs.observe({ type: 'resource', buffered: true });
107
-
108
- // 把已有的 performance entries 也吃一遍(首次进页面之前已发生的)
109
- performance.getEntriesByType('resource').forEach(e => {
110
- if (/main\.dart\.(wasm|mjs|js)|canvaskit\.|skwasm/.test(e.name)) {
111
- seen.add(e.name.split(/[?#]/)[0].split('/').slice(-2).join('/'));
112
- }
113
- });
114
-
115
- // —— 渲染结论 ——
116
- const loadedEl = document.getElementById('loaded');
117
- [
118
- ['browserEngine', browserEngine],
119
- ['build config 优先项', picked ? `${picked.compileTarget} / ${picked.renderer}` : '<无匹配>'],
120
- ['理论选中入口', picked?.mainWasmPath ?? picked?.mainJsPath ?? '-'],
121
- ].forEach(([k, v]) => {
122
- const row = document.createElement('tr');
123
- row.innerHTML = `<td><b>${k}</b></td><td>${v}</td>`;
124
- loadedEl.appendChild(row);
125
- });
126
-
127
- const verdict = document.getElementById('verdict');
128
- if (picked?.compileTarget === 'dart2wasm') {
129
- verdict.classList.add('wasm');
130
- verdict.innerHTML = `<h2>✅ 走的是 WASM 路径</h2>` +
131
- `<p>本次会加载 <code>main.dart.wasm</code> + <code>main.dart.mjs</code>,渲染器 <code>${picked.renderer}</code>。如果体感仍然慢,更可能是 Flutter 应用自身的工作量(首屏 widget 树、字体、PDF 渲染),而不是 wasm 没启用。</p>`;
132
- } else if (picked) {
133
- verdict.classList.add('js');
134
- verdict.innerHTML = `<h2>⚠️ 走的是 JS fallback (dart2js)</h2>` +
135
- `<p>本次将加载 <code>main.dart.js</code> + 渲染器 <code>${picked.renderer}</code>。原因看上方"浏览器能力"——任何一项 false 都会让 wasm 路径被淘汰。</p>` +
136
- `<ul>` +
137
- `<li>如果 <code>supportsWasmGC</code> false:浏览器版本不够新(Chrome 119+/Safari 18.2+/FF 120+)。</li>` +
138
- `<li>如果 <code>webGLVersion</code> 是 0:硬件加速被关或者驱动有问题,skwasm 用不了 → 整套 wasm 路径被砍。</li>` +
139
- `<li>如果 <code>crossOriginIsolated</code> false:服务器没配 COOP/COEP 头,skwasm 多线程会被禁。</li>` +
140
- `<li>如果 <code>browserEngine</code> 是 webkit/gecko:flutter.js 默认 wasmAllowList 只允许 blink,要打开需要 <code>config.wasmAllowList</code>。</li>` +
141
- `</ul>`;
142
- } else {
143
- verdict.classList.add('js');
144
- verdict.innerHTML = `<h2>❌ build config 里没有匹配项</h2>`;
145
- }
146
-
147
- // 等几百毫秒让 flutter_bootstrap.js 真的开始加载
148
- setTimeout(() => {
149
- const raw = document.getElementById('raw');
150
- raw.textContent = '已观测到的网络请求(资源名):\n' +
151
- Array.from(seen).sort().map(s => ' • ' + s).join('\n') +
152
- '\n\nbuildConfig:\n' + JSON.stringify(buildConfig, null, 2);
153
- }, 1500);
154
- </script>
155
-
156
- <h2>下一步</h2>
157
- <p>访问 <code>http://localhost:5180/_diag.html</code> 即可看本机当前的判定。</p>
158
- </body>
159
- </html>
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Flutter Web 加载路径检测</title>
6
+ <style>
7
+ body {
8
+ font: 14px/1.6 -apple-system, system-ui, "PingFang SC", sans-serif;
9
+ max-width: 760px;
10
+ margin: 40px auto;
11
+ padding: 0 20px;
12
+ color: #15161a;
13
+ }
14
+ h1 { font-size: 22px; margin: 0 0 6px; }
15
+ h2 { font-size: 16px; margin: 32px 0 10px; }
16
+ p.lede { color: #5c6068; margin: 0 0 24px; }
17
+ table { width: 100%; border-collapse: collapse; }
18
+ td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
19
+ td:first-child { width: 240px; color: #5c6068; }
20
+ td b { color: #15161a; font-weight: 600; }
21
+ .yes { color: #1a7f3c; font-weight: 600; }
22
+ .no { color: #b3261e; font-weight: 600; }
23
+ code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #f4f4f4; padding: 1px 6px; border-radius: 4px; }
24
+ .verdict { margin-top: 24px; padding: 16px 18px; border-radius: 10px; }
25
+ .verdict.wasm { background: #e8f4ec; border: 1px solid #1a7f3c; }
26
+ .verdict.js { background: #fdecea; border: 1px solid #b3261e; }
27
+ .verdict h2 { margin: 0 0 6px; }
28
+ .net { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #5c6068; }
29
+ </style>
30
+ </head>
31
+ <body>
32
+ <h1>Flutter Web 加载路径检测</h1>
33
+ <p class="lede">这一页直接读浏览器 capability + 本次实际加载的脚本,告诉你跑的是 wasm 还是 JS fallback。</p>
34
+
35
+ <h2>浏览器能力</h2>
36
+ <table id="caps"></table>
37
+
38
+ <h2>本次实际加载</h2>
39
+ <table id="loaded"></table>
40
+
41
+ <div id="verdict" class="verdict"></div>
42
+
43
+ <h2>原始抓取详情</h2>
44
+ <pre class="net" id="raw"></pre>
45
+
46
+ <script type="module">
47
+ // —— 浏览器 capability ——
48
+ const wasmGcBytes = [0,97,115,109,1,0,0,0,1,5,1,95,1,120,0];
49
+ const supportsWasmGC = (() => {
50
+ try { return WebAssembly.validate(new Uint8Array(wasmGcBytes)); } catch { return false; }
51
+ })();
52
+ const c = document.createElement('canvas');
53
+ const webgl2 = c.getContext('webgl2') != null;
54
+ const webgl1 = !webgl2 && c.getContext('webgl') != null;
55
+ const webglVersion = webgl2 ? 2 : (webgl1 ? 1 : 0);
56
+ const crossOriginIsolated = window.crossOriginIsolated;
57
+ const isHttps = location.protocol === 'https:' || location.hostname === 'localhost' || location.hostname === '127.0.0.1';
58
+
59
+ const caps = [
60
+ ['supportsWasmGC', supportsWasmGC, 'dart2wasm 必需'],
61
+ ['webGLVersion', webglVersion, 'skwasm renderer 要 WebGL2,否则降到 canvaskit'],
62
+ ['crossOriginIsolated', crossOriginIsolated, 'COOP+COEP 头是否生效;skwasm 多线程必需'],
63
+ ['secure context', isHttps, 'HTTPS 或 localhost'],
64
+ ];
65
+ const capsEl = document.getElementById('caps');
66
+ caps.forEach(([k, v, hint]) => {
67
+ const ok = !!v && v !== 0;
68
+ const row = document.createElement('tr');
69
+ row.innerHTML = `<td><b>${k}</b><div style="font-size:12px;color:#888">${hint}</div></td>` +
70
+ `<td><span class="${ok ? 'yes' : 'no'}">${typeof v === 'boolean' ? (v ? 'true' : 'false') : v}</span></td>`;
71
+ capsEl.appendChild(row);
72
+ });
73
+
74
+ // —— 抓 build config ——
75
+ const cfgRes = await fetch('/app/flutter_bootstrap.js', { cache: 'no-cache' });
76
+ const cfgText = await cfgRes.text();
77
+ const cfgMatch = cfgText.match(/_flutter\.buildConfig\s*=\s*(\{[^;]+\})/);
78
+ const buildConfig = cfgMatch ? JSON.parse(cfgMatch[1]) : null;
79
+ const builds = buildConfig?.builds ?? [];
80
+
81
+ // —— 模拟 flutter.js 选择逻辑 ——
82
+ const browserEngine = (() => {
83
+ if (navigator.vendor === 'Google Inc.' || navigator.userAgent.includes('Edg/')) return 'blink';
84
+ if (navigator.vendor === 'Apple Computer, Inc.') return 'webkit';
85
+ if (navigator.vendor === '' && navigator.userAgent.includes('Firefox')) return 'gecko';
86
+ return 'unknown';
87
+ })();
88
+ // flutter.js 默认 wasmAllowList: blink=true, gecko=false, webkit=false
89
+ const wasmAllowed = browserEngine === 'blink';
90
+
91
+ const picked = builds.find(b => {
92
+ if (b.compileTarget === 'dart2wasm' && !supportsWasmGC) return false;
93
+ if (b.renderer === 'skwasm' && (webglVersion === 0 || !wasmAllowed)) return false;
94
+ return true;
95
+ });
96
+
97
+ // —— 探测实际加载(runtime 监听) ——
98
+ const seen = new Set();
99
+ const obs = new PerformanceObserver((entries) => {
100
+ for (const e of entries.getEntries()) {
101
+ if (/main\.dart\.(wasm|mjs|js)|canvaskit\.|skwasm/.test(e.name)) {
102
+ seen.add(e.name.split(/[?#]/)[0].split('/').slice(-2).join('/'));
103
+ }
104
+ }
105
+ });
106
+ obs.observe({ type: 'resource', buffered: true });
107
+
108
+ // 把已有的 performance entries 也吃一遍(首次进页面之前已发生的)
109
+ performance.getEntriesByType('resource').forEach(e => {
110
+ if (/main\.dart\.(wasm|mjs|js)|canvaskit\.|skwasm/.test(e.name)) {
111
+ seen.add(e.name.split(/[?#]/)[0].split('/').slice(-2).join('/'));
112
+ }
113
+ });
114
+
115
+ // —— 渲染结论 ——
116
+ const loadedEl = document.getElementById('loaded');
117
+ [
118
+ ['browserEngine', browserEngine],
119
+ ['build config 优先项', picked ? `${picked.compileTarget} / ${picked.renderer}` : '<无匹配>'],
120
+ ['理论选中入口', picked?.mainWasmPath ?? picked?.mainJsPath ?? '-'],
121
+ ].forEach(([k, v]) => {
122
+ const row = document.createElement('tr');
123
+ row.innerHTML = `<td><b>${k}</b></td><td>${v}</td>`;
124
+ loadedEl.appendChild(row);
125
+ });
126
+
127
+ const verdict = document.getElementById('verdict');
128
+ if (picked?.compileTarget === 'dart2wasm') {
129
+ verdict.classList.add('wasm');
130
+ verdict.innerHTML = `<h2>✅ 走的是 WASM 路径</h2>` +
131
+ `<p>本次会加载 <code>main.dart.wasm</code> + <code>main.dart.mjs</code>,渲染器 <code>${picked.renderer}</code>。如果体感仍然慢,更可能是 Flutter 应用自身的工作量(首屏 widget 树、字体、PDF 渲染),而不是 wasm 没启用。</p>`;
132
+ } else if (picked) {
133
+ verdict.classList.add('js');
134
+ verdict.innerHTML = `<h2>⚠️ 走的是 JS fallback (dart2js)</h2>` +
135
+ `<p>本次将加载 <code>main.dart.js</code> + 渲染器 <code>${picked.renderer}</code>。原因看上方"浏览器能力"——任何一项 false 都会让 wasm 路径被淘汰。</p>` +
136
+ `<ul>` +
137
+ `<li>如果 <code>supportsWasmGC</code> false:浏览器版本不够新(Chrome 119+/Safari 18.2+/FF 120+)。</li>` +
138
+ `<li>如果 <code>webGLVersion</code> 是 0:硬件加速被关或者驱动有问题,skwasm 用不了 → 整套 wasm 路径被砍。</li>` +
139
+ `<li>如果 <code>crossOriginIsolated</code> false:服务器没配 COOP/COEP 头,skwasm 多线程会被禁。</li>` +
140
+ `<li>如果 <code>browserEngine</code> 是 webkit/gecko:flutter.js 默认 wasmAllowList 只允许 blink,要打开需要 <code>config.wasmAllowList</code>。</li>` +
141
+ `</ul>`;
142
+ } else {
143
+ verdict.classList.add('js');
144
+ verdict.innerHTML = `<h2>❌ build config 里没有匹配项</h2>`;
145
+ }
146
+
147
+ // 等几百毫秒让 flutter_bootstrap.js 真的开始加载
148
+ setTimeout(() => {
149
+ const raw = document.getElementById('raw');
150
+ raw.textContent = '已观测到的网络请求(资源名):\n' +
151
+ Array.from(seen).sort().map(s => ' • ' + s).join('\n') +
152
+ '\n\nbuildConfig:\n' + JSON.stringify(buildConfig, null, 2);
153
+ }, 1500);
154
+ </script>
155
+
156
+ <h2>下一步</h2>
157
+ <p>访问 <code>http://localhost:5180/_diag.html</code> 即可看本机当前的判定。</p>
158
+ </body>
159
+ </html>
@@ -1 +1 @@
1
- e4090c6e53b1b723fb4f5fcb324e14d3
1
+ 5b8083240414b940c62baaaf71a3e977
@@ -1,49 +1,49 @@
1
- # Web Build Notes
2
-
3
- `web/sqlite3.wasm` 与 `web/drift_worker.dart.js` 是 drift 在 Web 端跑 SQLite 必需的两份运行时资产,
4
- **直接入库**——版本必须与 `pubspec.lock` 里 `drift` / `sqlite3` 包对齐,统一管理省事且能避免本地版本漂移。
5
-
6
- ## 升级流程
7
-
8
- 升级 `drift` 或 `sqlite3` 后,按新版本号同步替换这两个文件,**与 pubspec 改动一并 commit**:
9
-
10
- ```bash
11
- DRIFT_VERSION=$(awk '/^ drift:/,/version:/' pubspec.lock | tail -1 | tr -d ' "version:')
12
- SQLITE_VERSION=$(awk '/^ sqlite3:/,/version:/' pubspec.lock | tail -1 | tr -d ' "version:')
13
-
14
- curl -fsSL -o web/sqlite3.wasm \
15
- "https://github.com/simolus3/sqlite3.dart/releases/download/sqlite3-${SQLITE_VERSION}/sqlite3.wasm"
16
-
17
- curl -fsSL -o web/drift_worker.dart.js \
18
- "https://github.com/simolus3/drift/releases/download/drift-${DRIFT_VERSION}/drift_worker.js"
19
- ```
20
-
21
- 发布说明:
22
- - sqlite3:https://github.com/simolus3/sqlite3.dart/releases
23
- - drift:https://github.com/simolus3/drift/releases
24
-
25
- ## 浏览器要求
26
-
27
- Web 端依赖 OPFS(Origin Private File System)做物理 PDF 落盘:
28
- - Chrome / Edge ≥ 102
29
- - Firefox ≥ 111
30
- - Safari ≥ 16
31
-
32
- 低于此版本启动后第一次访问 OPFS 会抛错,文件库无法使用。
33
-
34
- ## 性能小贴士
35
-
36
- 按 drift 文档建议,给 dev server 加跨源隔离响应头能让 OPFS 走更快的 SharedArrayBuffer 路径:
37
-
38
- ```bash
39
- flutter run -d chrome \
40
- --web-header=Cross-Origin-Opener-Policy=same-origin \
41
- --web-header=Cross-Origin-Embedder-Policy=require-corp
42
- ```
43
-
44
- 不加也能跑,只是稍慢。
45
-
46
- ## 已知限制
47
-
48
- - 桌面端的 `window_manager`(窗口尺寸记忆等)在 Web 上完全跳过,由浏览器自身管理。
49
- - `PdfViewer.data` 进 reader 前要把整份 PDF 读进内存,>100MB 大文档会卡。
1
+ # Web Build Notes
2
+
3
+ `web/sqlite3.wasm` 与 `web/drift_worker.dart.js` 是 drift 在 Web 端跑 SQLite 必需的两份运行时资产,
4
+ **直接入库**——版本必须与 `pubspec.lock` 里 `drift` / `sqlite3` 包对齐,统一管理省事且能避免本地版本漂移。
5
+
6
+ ## 升级流程
7
+
8
+ 升级 `drift` 或 `sqlite3` 后,按新版本号同步替换这两个文件,**与 pubspec 改动一并 commit**:
9
+
10
+ ```bash
11
+ DRIFT_VERSION=$(awk '/^ drift:/,/version:/' pubspec.lock | tail -1 | tr -d ' "version:')
12
+ SQLITE_VERSION=$(awk '/^ sqlite3:/,/version:/' pubspec.lock | tail -1 | tr -d ' "version:')
13
+
14
+ curl -fsSL -o web/sqlite3.wasm \
15
+ "https://github.com/simolus3/sqlite3.dart/releases/download/sqlite3-${SQLITE_VERSION}/sqlite3.wasm"
16
+
17
+ curl -fsSL -o web/drift_worker.dart.js \
18
+ "https://github.com/simolus3/drift/releases/download/drift-${DRIFT_VERSION}/drift_worker.js"
19
+ ```
20
+
21
+ 发布说明:
22
+ - sqlite3:https://github.com/simolus3/sqlite3.dart/releases
23
+ - drift:https://github.com/simolus3/drift/releases
24
+
25
+ ## 浏览器要求
26
+
27
+ Web 端依赖 OPFS(Origin Private File System)做物理 PDF 落盘:
28
+ - Chrome / Edge ≥ 102
29
+ - Firefox ≥ 111
30
+ - Safari ≥ 16
31
+
32
+ 低于此版本启动后第一次访问 OPFS 会抛错,文件库无法使用。
33
+
34
+ ## 性能小贴士
35
+
36
+ 按 drift 文档建议,给 dev server 加跨源隔离响应头能让 OPFS 走更快的 SharedArrayBuffer 路径:
37
+
38
+ ```bash
39
+ flutter run -d chrome \
40
+ --web-header=Cross-Origin-Opener-Policy=same-origin \
41
+ --web-header=Cross-Origin-Embedder-Policy=require-corp
42
+ ```
43
+
44
+ 不加也能跑,只是稍慢。
45
+
46
+ ## 已知限制
47
+
48
+ - 桌面端的 `window_manager`(窗口尺寸记忆等)在 Web 上完全跳过,由浏览器自身管理。
49
+ - `PdfViewer.data` 进 reader 前要把整份 PDF 读进内存,>100MB 大文档会卡。
@@ -1 +1 @@
1
-
1
+
@@ -1 +1 @@
1
- "DQgHHWFzc2V0cy9icmFuZGluZy9hcHBfYnJhbmQucG5nDAENAQcFYXNzZXQHHWFzc2V0cy9icmFuZGluZy9hcHBfYnJhbmQucG5nBx5hc3NldHMvZm9udHMvTWlTYW5zLU1lZGl1bS50dGYMAQ0BBwVhc3NldAceYXNzZXRzL2ZvbnRzL01pU2Fucy1NZWRpdW0udHRmBx9hc3NldHMvZm9udHMvTWlTYW5zLVJlZ3VsYXIudHRmDAENAQcFYXNzZXQHH2Fzc2V0cy9mb250cy9NaVNhbnMtUmVndWxhci50dGYHIGFzc2V0cy9mb250cy9NaVNhbnMtU2VtaWJvbGQudHRmDAENAQcFYXNzZXQHIGFzc2V0cy9mb250cy9NaVNhbnMtU2VtaWJvbGQudHRmByFwYWNrYWdlcy9wZGZyeC9hc3NldHMvcGRmaXVtLndhc20MAQ0BBwVhc3NldAchcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bS53YXNtByZwYWNrYWdlcy9wZGZyeC9hc3NldHMvcGRmaXVtX2NsaWVudC5qcwwBDQEHBWFzc2V0ByZwYWNrYWdlcy9wZGZyeC9hc3NldHMvcGRmaXVtX2NsaWVudC5qcwcmcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bV93b3JrZXIuanMMAQ0BBwVhc3NldAcmcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bV93b3JrZXIuanMHPXBhY2thZ2VzL3RvYXN0aWZpY2F0aW9uL2Fzc2V0cy9mb250cy9Ub2FzdGlmaWNhdGlvbl9pY29ucy50dGYMAQ0BBwVhc3NldAc9cGFja2FnZXMvdG9hc3RpZmljYXRpb24vYXNzZXRzL2ZvbnRzL1RvYXN0aWZpY2F0aW9uX2ljb25zLnR0Zg=="
1
+ "DQ8HHWFzc2V0cy9icmFuZGluZy9hcHBfYnJhbmQucG5nDAENAQcFYXNzZXQHHWFzc2V0cy9icmFuZGluZy9hcHBfYnJhbmQucG5nBx5hc3NldHMvZm9udHMvTWlTYW5zLU1lZGl1bS50dGYMAQ0BBwVhc3NldAceYXNzZXRzL2ZvbnRzL01pU2Fucy1NZWRpdW0udHRmBx9hc3NldHMvZm9udHMvTWlTYW5zLVJlZ3VsYXIudHRmDAENAQcFYXNzZXQHH2Fzc2V0cy9mb250cy9NaVNhbnMtUmVndWxhci50dGYHIGFzc2V0cy9mb250cy9NaVNhbnMtU2VtaWJvbGQudHRmDAENAQcFYXNzZXQHIGFzc2V0cy9mb250cy9NaVNhbnMtU2VtaWJvbGQudHRmB0dwYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvYnVpbGRfZm9udC9MdWNpZGVWYXJpYWJsZS13MTAwLnR0ZgwBDQEHBWFzc2V0B0dwYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvYnVpbGRfZm9udC9MdWNpZGVWYXJpYWJsZS13MTAwLnR0ZgdHcGFja2FnZXMvbHVjaWRlX2ljb25zX2ZsdXR0ZXIvYXNzZXRzL2J1aWxkX2ZvbnQvTHVjaWRlVmFyaWFibGUtdzIwMC50dGYMAQ0BBwVhc3NldAdHcGFja2FnZXMvbHVjaWRlX2ljb25zX2ZsdXR0ZXIvYXNzZXRzL2J1aWxkX2ZvbnQvTHVjaWRlVmFyaWFibGUtdzIwMC50dGYHR3BhY2thZ2VzL2x1Y2lkZV9pY29uc19mbHV0dGVyL2Fzc2V0cy9idWlsZF9mb250L0x1Y2lkZVZhcmlhYmxlLXczMDAudHRmDAENAQcFYXNzZXQHR3BhY2thZ2VzL2x1Y2lkZV9pY29uc19mbHV0dGVyL2Fzc2V0cy9idWlsZF9mb250L0x1Y2lkZVZhcmlhYmxlLXczMDAudHRmB0dwYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvYnVpbGRfZm9udC9MdWNpZGVWYXJpYWJsZS13NDAwLnR0ZgwBDQEHBWFzc2V0B0dwYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvYnVpbGRfZm9udC9MdWNpZGVWYXJpYWJsZS13NDAwLnR0ZgdHcGFja2FnZXMvbHVjaWRlX2ljb25zX2ZsdXR0ZXIvYXNzZXRzL2J1aWxkX2ZvbnQvTHVjaWRlVmFyaWFibGUtdzUwMC50dGYMAQ0BBwVhc3NldAdHcGFja2FnZXMvbHVjaWRlX2ljb25zX2ZsdXR0ZXIvYXNzZXRzL2J1aWxkX2ZvbnQvTHVjaWRlVmFyaWFibGUtdzUwMC50dGYHR3BhY2thZ2VzL2x1Y2lkZV9pY29uc19mbHV0dGVyL2Fzc2V0cy9idWlsZF9mb250L0x1Y2lkZVZhcmlhYmxlLXc2MDAudHRmDAENAQcFYXNzZXQHR3BhY2thZ2VzL2x1Y2lkZV9pY29uc19mbHV0dGVyL2Fzc2V0cy9idWlsZF9mb250L0x1Y2lkZVZhcmlhYmxlLXc2MDAudHRmBy9wYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvbHVjaWRlLnR0ZgwBDQEHBWFzc2V0By9wYWNrYWdlcy9sdWNpZGVfaWNvbnNfZmx1dHRlci9hc3NldHMvbHVjaWRlLnR0ZgchcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bS53YXNtDAENAQcFYXNzZXQHIXBhY2thZ2VzL3BkZnJ4L2Fzc2V0cy9wZGZpdW0ud2FzbQcmcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bV9jbGllbnQuanMMAQ0BBwVhc3NldAcmcGFja2FnZXMvcGRmcngvYXNzZXRzL3BkZml1bV9jbGllbnQuanMHJnBhY2thZ2VzL3BkZnJ4L2Fzc2V0cy9wZGZpdW1fd29ya2VyLmpzDAENAQcFYXNzZXQHJnBhY2thZ2VzL3BkZnJ4L2Fzc2V0cy9wZGZpdW1fd29ya2VyLmpzBz1wYWNrYWdlcy90b2FzdGlmaWNhdGlvbi9hc3NldHMvZm9udHMvVG9hc3RpZmljYXRpb25faWNvbnMudHRmDAENAQcFYXNzZXQHPXBhY2thZ2VzL3RvYXN0aWZpY2F0aW9uL2Fzc2V0cy9mb250cy9Ub2FzdGlmaWNhdGlvbl9pY29ucy50dGY="
@@ -1 +1 @@
1
- [{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"MiSans","fonts":[{"weight":400,"asset":"assets/fonts/MiSans-Regular.ttf"},{"weight":500,"asset":"assets/fonts/MiSans-Medium.ttf"},{"weight":600,"asset":"assets/fonts/MiSans-Semibold.ttf"}]},{"family":"packages/toastification/Toastification_icons","fonts":[{"asset":"packages/toastification/assets/fonts/Toastification_icons.ttf"}]}]
1
+ [{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"MiSans","fonts":[{"weight":400,"asset":"assets/fonts/MiSans-Regular.ttf"},{"weight":500,"asset":"assets/fonts/MiSans-Medium.ttf"},{"weight":600,"asset":"assets/fonts/MiSans-Semibold.ttf"}]},{"family":"packages/toastification/Toastification_icons","fonts":[{"asset":"packages/toastification/assets/fonts/Toastification_icons.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide","fonts":[{"asset":"packages/lucide_icons_flutter/assets/lucide.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide100","fonts":[{"weight":100,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w100.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide200","fonts":[{"weight":200,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w200.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide300","fonts":[{"weight":300,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w300.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide400","fonts":[{"weight":400,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w400.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide500","fonts":[{"weight":500,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w500.ttf"}]},{"family":"packages/lucide_icons_flutter/Lucide600","fonts":[{"weight":600,"asset":"packages/lucide_icons_flutter/assets/build_font/LucideVariable-w600.ttf"}]}]
@@ -6363,37 +6363,37 @@ shaderc
6363
6363
  flutter
6364
6364
 
6365
6365
  Copyright 2014 The Flutter Authors. All rights reserved.
6366
- Use of this source code is governed by a BSD-style license that can be
6367
- found in the LICENSE file.
6366
+
6367
+ Redistribution and use in source and binary forms, with or without modification,
6368
+ are permitted provided that the following conditions are met:
6369
+
6370
+ * Redistributions of source code must retain the above copyright
6371
+ notice, this list of conditions and the following disclaimer.
6372
+ * Redistributions in binary form must reproduce the above
6373
+ copyright notice, this list of conditions and the following
6374
+ disclaimer in the documentation and/or other materials provided
6375
+ with the distribution.
6376
+ * Neither the name of Google Inc. nor the names of its
6377
+ contributors may be used to endorse or promote products derived
6378
+ from this software without specific prior written permission.
6379
+
6380
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
6381
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
6382
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6383
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
6384
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
6385
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
6386
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
6387
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6388
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
6389
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6390
+
6368
6391
  --------------------------------------------------------------------------------
6369
6392
  flutter
6370
6393
 
6371
- Copyright 2014 The Flutter Authors. All rights reserved.
6372
-
6373
- Redistribution and use in source and binary forms, with or without modification,
6374
- are permitted provided that the following conditions are met:
6375
-
6376
- * Redistributions of source code must retain the above copyright
6377
- notice, this list of conditions and the following disclaimer.
6378
- * Redistributions in binary form must reproduce the above
6379
- copyright notice, this list of conditions and the following
6380
- disclaimer in the documentation and/or other materials provided
6381
- with the distribution.
6382
- * Neither the name of Google Inc. nor the names of its
6383
- contributors may be used to endorse or promote products derived
6384
- from this software without specific prior written permission.
6385
-
6386
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
6387
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
6388
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6389
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
6390
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
6391
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
6392
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
6393
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
6394
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
6395
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6396
-
6394
+ Copyright 2014 The Flutter Authors. All rights reserved.
6395
+ Use of this source code is governed by a BSD-style license that can be
6396
+ found in the LICENSE file.
6397
6397
  --------------------------------------------------------------------------------
6398
6398
  flutter
6399
6399
 
@@ -25070,6 +25070,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25070
25070
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
25071
25071
  SOFTWARE.
25072
25072
  --------------------------------------------------------------------------------
25073
+ lucide_icons_flutter
25074
+
25075
+
25076
+ MIT License
25077
+
25078
+ Copyright (c) 2024 vqhapp
25079
+
25080
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25081
+ of this software and associated documentation files (the "Software"), to deal
25082
+ in the Software without restriction, including without limitation the rights
25083
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25084
+ copies of the Software, and to permit persons to whom the Software is
25085
+ furnished to do so, subject to the following conditions:
25086
+
25087
+ The above copyright notice and this permission notice shall be included in all
25088
+ copies or substantial portions of the Software.
25089
+
25090
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25091
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25092
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25093
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25094
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25095
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25096
+ SOFTWARE.
25097
+ --------------------------------------------------------------------------------
25073
25098
  lunarg-vulkantools
25074
25099
 
25075
25100
  Apache License
@@ -25912,33 +25937,33 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25912
25937
  pdfium_dart
25913
25938
  pdfium_flutter
25914
25939
 
25915
-
25916
- The MIT License (MIT)
25917
- ===============
25918
-
25919
- Copyright (c) 2025 @espresso3389 (Takashi Kawasaki)
25920
-
25921
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
25922
-
25923
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25924
-
25925
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25940
+
25941
+ The MIT License (MIT)
25942
+ ===============
25943
+
25944
+ Copyright (c) 2025 @espresso3389 (Takashi Kawasaki)
25945
+
25946
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
25947
+
25948
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25949
+
25950
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25926
25951
 
25927
25952
  --------------------------------------------------------------------------------
25928
25953
  pdfrx
25929
25954
  pdfrx_engine
25930
25955
 
25931
-
25932
- The MIT License (MIT)
25933
- ===============
25934
-
25935
- Copyright (c) 2018 @espresso3389 (Takashi Kawasaki)
25936
-
25937
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
25938
-
25939
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25940
-
25941
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25956
+
25957
+ The MIT License (MIT)
25958
+ ===============
25959
+
25960
+ Copyright (c) 2018 @espresso3389 (Takashi Kawasaki)
25961
+
25962
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
25963
+
25964
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
25965
+
25966
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25942
25967
 
25943
25968
  --------------------------------------------------------------------------------
25944
25969
  perfetto