@pristy/pristy-libvue 2.5.3 → 2.6.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.
Files changed (130) hide show
  1. package/README.md +80 -17
  2. package/dist/{jszip.min-BrgORSfj.js → jszip.min-BrmBkVmG.js} +35 -32
  3. package/dist/jszip.min-BrmBkVmG.js.map +1 -0
  4. package/dist/pristy-libvue.css +1 -1
  5. package/dist/pristy-libvue.es.js +31413 -173
  6. package/dist/pristy-libvue.es.js.map +1 -1
  7. package/dist/pristy-libvue.umd.js +27 -26
  8. package/dist/pristy-libvue.umd.js.map +1 -1
  9. package/dist/src/components/CodeMirrorEditor.vue.d.ts +3 -0
  10. package/dist/src/components/CodeMirrorEditor.vue.d.ts.map +1 -1
  11. package/dist/src/components/DiffViewerDialog.vue.d.ts +2 -0
  12. package/dist/src/components/DiffViewerDialog.vue.d.ts.map +1 -1
  13. package/dist/src/components/HelpKeyMessage.vue.d.ts.map +1 -1
  14. package/dist/src/components/SelectionStatus.vue.d.ts +1 -1
  15. package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts +1 -1
  16. package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts.map +1 -1
  17. package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts +1 -1
  18. package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts.map +1 -1
  19. package/dist/src/components/chat/ChatInput.vue.d.ts.map +1 -1
  20. package/dist/src/components/chat/ChatPanel.vue.d.ts.map +1 -1
  21. package/dist/src/components/classification/EmplacementForm.vue.d.ts.map +1 -1
  22. package/dist/src/components/classification/FieldForm.vue.d.ts.map +1 -1
  23. package/dist/src/components/classification/MetadataFormFields.vue.d.ts +151 -1
  24. package/dist/src/components/classification/NatureSelector.vue.d.ts +151 -1
  25. package/dist/src/components/classification/NatureSelector.vue.d.ts.map +1 -1
  26. package/dist/src/components/classification/RequalifyPlanPopup.vue.d.ts +453 -3
  27. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts +456 -6
  28. package/dist/src/components/config/ArrayEditor.vue.d.ts.map +1 -1
  29. package/dist/src/components/config/ConfigSplitView.vue.d.ts.map +1 -1
  30. package/dist/src/components/config/ConfigUpload.vue.d.ts +2 -2
  31. package/dist/src/components/config/ListVersionConfig.vue.d.ts.map +1 -1
  32. package/dist/src/components/layouts/AppLayout.vue.d.ts +46 -2
  33. package/dist/src/components/layouts/AppLayout.vue.d.ts.map +1 -1
  34. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts +1 -0
  35. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts.map +1 -1
  36. package/dist/src/components/layouts/AppSidebar.vue.d.ts +42 -0
  37. package/dist/src/components/layouts/AppSidebar.vue.d.ts.map +1 -1
  38. package/dist/src/components/layouts/AppTopbar.vue.d.ts +2 -1
  39. package/dist/src/components/layouts/AppTopbar.vue.d.ts.map +1 -1
  40. package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts +49 -0
  41. package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts.map +1 -0
  42. package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts +2 -0
  43. package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts.map +1 -1
  44. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +140 -31
  45. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts.map +1 -1
  46. package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts +1 -24
  47. package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts.map +1 -1
  48. package/dist/src/components/navigation/ContentGridView.vue.d.ts +7 -2
  49. package/dist/src/components/navigation/ContentGridView.vue.d.ts.map +1 -1
  50. package/dist/src/components/navigation/ContentListView.vue.d.ts +3 -2
  51. package/dist/src/components/navigation/ContentListView.vue.d.ts.map +1 -1
  52. package/dist/src/components/navigation/ContentTableView.vue.d.ts +155 -23
  53. package/dist/src/components/navigation/ContentTableView.vue.d.ts.map +1 -1
  54. package/dist/src/components/navigation/ContentToolbar.vue.d.ts +19 -0
  55. package/dist/src/components/navigation/ContentToolbar.vue.d.ts.map +1 -0
  56. package/dist/src/components/navigation/DynamicContentView.vue.d.ts +338 -91
  57. package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
  58. package/dist/src/components/navigation/LayoutSelector.vue.d.ts +1 -0
  59. package/dist/src/components/navigation/LayoutSelector.vue.d.ts.map +1 -1
  60. package/dist/src/components/navigation/PreviewPanel.vue.d.ts +41 -2
  61. package/dist/src/components/navigation/PreviewPanel.vue.d.ts.map +1 -1
  62. package/dist/src/components/navigation/SelectionBar.vue.d.ts +90 -0
  63. package/dist/src/components/navigation/SelectionBar.vue.d.ts.map +1 -0
  64. package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts.map +1 -1
  65. package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts.map +1 -1
  66. package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts +1 -0
  67. package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts.map +1 -1
  68. package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts +2 -2
  69. package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts.map +1 -1
  70. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts +2 -2
  71. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts.map +1 -1
  72. package/dist/src/components/popup/MemberListPopup.vue.d.ts +2 -0
  73. package/dist/src/components/popup/MemberListPopup.vue.d.ts.map +1 -1
  74. package/dist/src/components/popup/SendMailPopup.vue.d.ts +3 -0
  75. package/dist/src/components/popup/SendMailPopup.vue.d.ts.map +1 -1
  76. package/dist/src/components/popup/ShareLinkPopup.vue.d.ts.map +1 -1
  77. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +1 -1
  78. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
  79. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +18 -1
  80. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts.map +1 -1
  81. package/dist/src/components/search/FavoriteViewMenu.vue.d.ts +1 -0
  82. package/dist/src/components/search/FavoriteViewMenu.vue.d.ts.map +1 -1
  83. package/dist/src/components/search/SaveViewPopup.vue.d.ts.map +1 -1
  84. package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts +1 -0
  85. package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts.map +1 -1
  86. package/dist/src/components/search/ViewResultsPanel.vue.d.ts +1 -1
  87. package/dist/src/components/users/MemberList.vue.d.ts +2 -0
  88. package/dist/src/components/users/MemberList.vue.d.ts.map +1 -1
  89. package/dist/src/components/viewer/ImageViewer.vue.d.ts.map +1 -1
  90. package/dist/src/components/viewer/PDFComponent.vue.d.ts +41 -2
  91. package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +1 -1
  92. package/dist/src/components/viewer/VideoPlayer.vue.d.ts.map +1 -1
  93. package/dist/src/components/workspace/WorkspaceCard.vue.d.ts.map +1 -1
  94. package/dist/src/composables/useAuth.d.ts +4 -0
  95. package/dist/src/composables/useAuth.d.ts.map +1 -0
  96. package/dist/src/composables/useCodeMirror.d.ts.map +1 -1
  97. package/dist/src/composables/useCollabEditor.d.ts +1 -0
  98. package/dist/src/composables/useCollabEditor.d.ts.map +1 -1
  99. package/dist/src/composables/useCollabWebSocket.d.ts.map +1 -1
  100. package/dist/src/composables/useColumnFilter.d.ts +27 -0
  101. package/dist/src/composables/useColumnFilter.d.ts.map +1 -0
  102. package/dist/src/composables/useLayout.d.ts +4 -0
  103. package/dist/src/composables/useLayout.d.ts.map +1 -1
  104. package/dist/src/composables/useMarkdownPreview.d.ts.map +1 -1
  105. package/dist/src/i18n/index.d.ts +150 -0
  106. package/dist/src/i18n/index.d.ts.map +1 -1
  107. package/dist/src/index.d.ts +116 -111
  108. package/dist/src/index.d.ts.map +1 -1
  109. package/dist/src/services/AlfrescoFileService.d.ts +6 -0
  110. package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
  111. package/dist/src/services/AlfrescoNodeService.d.ts +8 -0
  112. package/dist/src/services/AlfrescoNodeService.d.ts.map +1 -1
  113. package/dist/src/services/CollabBackupService.d.ts +27 -0
  114. package/dist/src/services/CollabBackupService.d.ts.map +1 -0
  115. package/dist/src/services/FormatService.d.ts.map +1 -1
  116. package/dist/src/services/UserViewService.d.ts.map +1 -1
  117. package/dist/src/services/WorkflowService.d.ts.map +1 -1
  118. package/dist/src/services/WorkspaceService.d.ts.map +1 -1
  119. package/dist/src/stores/config.d.ts +39 -0
  120. package/dist/src/stores/config.d.ts.map +1 -1
  121. package/dist/src/stores/taskNotification.d.ts +9 -0
  122. package/dist/src/stores/taskNotification.d.ts.map +1 -0
  123. package/dist/src/stores/upload.d.ts.map +1 -1
  124. package/dist/src/stores/user.d.ts.map +1 -1
  125. package/dist/src/typedef.d.ts +367 -0
  126. package/dist/src/typedef.d.ts.map +1 -0
  127. package/package.json +10 -10
  128. package/dist/index-DYatiWG2.js +0 -78789
  129. package/dist/index-DYatiWG2.js.map +0 -1
  130. package/dist/jszip.min-BrgORSfj.js.map +0 -1
package/README.md CHANGED
@@ -1,35 +1,98 @@
1
1
  # Pristy Libvue
2
2
 
3
- Code factoring for Pristy
3
+ Shared Vue 3 component library for the [Pristy](https://pristy.fr/) ECM suite. Provides reusable components, services, stores, composables, and plugins used across all Pristy frontend applications.
4
4
 
5
- ## Developing with Pristy-libvue
5
+ ## Installation
6
6
 
7
- Add `@pristy/pristy-libvue` package.
7
+ ```bash
8
+ npm install @pristy/pristy-libvue
9
+ ```
10
+
11
+ ## Usage
8
12
 
9
- Then call the available classes where necessary. Be careful, there is no default class, you must use {} in the import.
13
+ All exports use named imports:
10
14
 
11
- ```vue
12
- import { AlfrescoFileService } from "@pristy/pristy-libvue"
15
+ ```js
16
+ import { alfrescoFileService, useUserStore, TreeExplorer } from "@pristy/pristy-libvue"
13
17
  ```
14
18
 
15
- ## Dev locally
19
+ ### What's included
20
+
21
+ | Category | Examples | Count |
22
+ |---|---|---|
23
+ | **Components** | `TreeExplorer`, `PDFComponent`, `DynamicContentView`, `CopyOrMovePopup`, `AdvancedSearchPanel`, `ChatPanel` | ~45 |
24
+ | **Services** | `alfrescoFileService`, `alfrescoNodeService`, `configService`, `workspaceService`, `errorService` | ~20 |
25
+ | **Stores** (Pinia) | `useUserStore`, `useConfigStore`, `useNavigationStore`, `useFavoritesStore`, `useSearchStore` | ~15 |
26
+ | **Composables** | `useCodeMirror`, `useMarkdownPreview`, `useCollabEditor`, `useCollabWebSocket` | 5 |
27
+ | **Pages** | `LoginPage`, `NotFoundPages`, `ErrorPage` | 3 |
28
+ | **Plugins** | `vueKeyCloak` | 1 |
29
+
30
+ See [`src/index.js`](src/index.js) for the full list of exports.
31
+
32
+ ## Peer Dependencies
33
+
34
+ These must be installed by the consuming application:
16
35
 
17
- 1. In prity-libvue
36
+ | Package | Version |
37
+ |---|---|
38
+ | `vue` | ^3.5 |
39
+ | `vue-i18n` | ^11.3 |
40
+ | `vue-router` | ^4.6 |
41
+ | `@codemirror/*` | ^6.x (14 packages) |
42
+ | `codemirror` | 6.0.2 |
18
43
 
44
+ ## Local Development
45
+
46
+ ### Build the library
47
+
48
+ ```bash
49
+ npm install
50
+ npm run build:library
19
51
  ```
52
+
53
+ ### Link locally to another Pristy app
54
+
55
+ ```bash
56
+ # In pristy-libvue
20
57
  npm link
58
+
59
+ # In the consuming app (e.g. pristy-espaces)
60
+ npm link ../pristy-libvue
61
+ npm run dev.link # Uses vite.config.link.js
21
62
  ```
22
63
 
23
- 2. In another pristy application
64
+ After any change to pristy-libvue, rebuild with `npm run build:library` (or use `npm run build:dev` for watch mode with source maps).
24
65
 
25
- ```
26
- npm link <local directory off pristy-libvue>
27
- ```
66
+ ### Available scripts
28
67
 
29
- The library needs to be built by vite to be usable locally.
68
+ | Script | Description |
69
+ |---|---|
70
+ | `npm run build:library` | Production build (ESM + UMD + CSS + .d.ts) |
71
+ | `npm run build:dev` | Watch mode build with source maps |
72
+ | `npm run analyze` | Bundle size analysis (opens stats.html) |
73
+ | `npm run lint` | Lint and auto-fix with ESLint |
74
+ | `npm run check` | Lint without fixing (CI mode) |
75
+ | `npm run format` | Format with Prettier |
76
+ | `npm run test` | Run tests with Vitest |
77
+ | `npm run coverage` | Generate test coverage report |
30
78
 
31
- ```
32
- npm run build:library
33
- ```
79
+ ## Architecture
80
+
81
+ The library follows a **Services -> Stores -> Components** pattern:
82
+
83
+ - **Services** (`src/services/`): Stateless modules handling API calls and business logic
84
+ - **Stores** (`src/stores/`): Pinia stores managing session state
85
+ - **Components** (`src/components/`): UI presentation consuming stores
86
+ - **Composables** (`src/composables/`): Reusable composition functions (CodeMirror, Markdown, WebSocket)
87
+
88
+ ## Conventions
89
+
90
+ - **Icons**: Remixicon only (`ri-*` classes). No PrimeIcons.
91
+ - **i18n**: All user-facing strings must use `$t('key')`. No hardcoded text.
92
+ - **Imports**: Use `@/` alias for all internal imports. Never import from `@/index.js` internally.
93
+ - **License**: Every `.vue` and `.js` file must include the AGPL-3.0 header.
94
+ - **Comments**: English only.
95
+
96
+ ## License
34
97
 
35
- The pristy-libvue package of the package.json will be overloaded by the local library.
98
+ [AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html) - Copyright (C) 2022 [Jeci SARL](https://jeci.fr)
@@ -1,29 +1,32 @@
1
- import { c as vt, g as Bt } from "./index-DYatiWG2.js";
2
- function Rt(ct, wt) {
1
+ function Bt(ut, wt) {
3
2
  for (var _ = 0; _ < wt.length; _++) {
4
3
  const N = wt[_];
5
4
  if (typeof N != "string" && !Array.isArray(N)) {
6
5
  for (const w in N)
7
- if (w !== "default" && !(w in ct)) {
6
+ if (w !== "default" && !(w in ut)) {
8
7
  const u = Object.getOwnPropertyDescriptor(N, w);
9
- u && Object.defineProperty(ct, w, u.get ? u : {
8
+ u && Object.defineProperty(ut, w, u.get ? u : {
10
9
  enumerable: !0,
11
10
  get: () => N[w]
12
11
  });
13
12
  }
14
13
  }
15
14
  }
16
- return Object.freeze(Object.defineProperty(ct, Symbol.toStringTag, { value: "Module" }));
15
+ return Object.freeze(Object.defineProperty(ut, Symbol.toStringTag, { value: "Module" }));
17
16
  }
18
- function yt(ct) {
19
- throw new Error('Could not dynamically require "' + ct + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
17
+ var vt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ function Rt(ut) {
19
+ return ut && ut.__esModule && Object.prototype.hasOwnProperty.call(ut, "default") ? ut.default : ut;
20
+ }
21
+ function yt(ut) {
22
+ throw new Error('Could not dynamically require "' + ut + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
20
23
  }
21
24
  var xt = { exports: {} };
22
25
  var Ct;
23
26
  function Tt() {
24
- return Ct || (Ct = 1, (function(ct, wt) {
27
+ return Ct || (Ct = 1, (function(ut, wt) {
25
28
  (function(_) {
26
- ct.exports = _();
29
+ ut.exports = _();
27
30
  })(function() {
28
31
  return (function _(N, w, u) {
29
32
  function o(g, y) {
@@ -1465,19 +1468,19 @@ function Tt() {
1465
1468
  var R;
1466
1469
  return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : B, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = p, n._tr_init(R), i) : $(t, d);
1467
1470
  }
1468
- function lt(t) {
1471
+ function ft(t) {
1469
1472
  var R = it(t);
1470
1473
  return R === i && (function(A) {
1471
1474
  A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = u[A.level].max_lazy, A.good_match = u[A.level].good_length, A.nice_match = u[A.level].nice_length, A.max_chain_length = u[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
1472
1475
  })(t.state), R;
1473
1476
  }
1474
- function ht(t, R, A, f, s, k) {
1477
+ function lt(t, R, A, f, s, k) {
1475
1478
  if (!t) return d;
1476
1479
  var F = 1;
1477
1480
  if (R === r && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || k < 0 || l < k) return $(t, d);
1478
1481
  f === 8 && (f = 9);
1479
1482
  var P = new st();
1480
- return (t.state = P).strm = t, P.wrap = F, P.gzhead = null, P.w_bits = f, P.w_size = 1 << P.w_bits, P.w_mask = P.w_size - 1, P.hash_bits = s + 7, P.hash_size = 1 << P.hash_bits, P.hash_mask = P.hash_size - 1, P.hash_shift = ~~((P.hash_bits + I - 1) / I), P.window = new o.Buf8(2 * P.w_size), P.head = new o.Buf16(P.hash_size), P.prev = new o.Buf16(P.w_size), P.lit_bufsize = 1 << s + 6, P.pending_buf_size = 4 * P.lit_bufsize, P.pending_buf = new o.Buf8(P.pending_buf_size), P.d_buf = 1 * P.lit_bufsize, P.l_buf = 3 * P.lit_bufsize, P.level = R, P.strategy = k, P.method = A, lt(t);
1483
+ return (t.state = P).strm = t, P.wrap = F, P.gzhead = null, P.w_bits = f, P.w_size = 1 << P.w_bits, P.w_mask = P.w_size - 1, P.hash_bits = s + 7, P.hash_size = 1 << P.hash_bits, P.hash_mask = P.hash_size - 1, P.hash_shift = ~~((P.hash_bits + I - 1) / I), P.window = new o.Buf8(2 * P.w_size), P.head = new o.Buf16(P.hash_size), P.prev = new o.Buf16(P.w_size), P.lit_bufsize = 1 << s + 6, P.pending_buf_size = 4 * P.lit_bufsize, P.pending_buf = new o.Buf8(P.pending_buf_size), P.d_buf = 1 * P.lit_bufsize, P.l_buf = 3 * P.lit_bufsize, P.level = R, P.strategy = k, P.method = A, ft(t);
1481
1484
  }
1482
1485
  u = [new et(0, 0, 0, 0, function(t, R) {
1483
1486
  var A = 65535;
@@ -1492,8 +1495,8 @@ function Tt() {
1492
1495
  }
1493
1496
  return t.insert = 0, R === b ? (C(t, !0), t.strm.avail_out === 0 ? J : U) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), e);
1494
1497
  }), new et(4, 4, 8, 4, ot), new et(4, 5, 16, 8, ot), new et(4, 6, 32, 32, ot), new et(4, 4, 16, 16, Q), new et(8, 16, 32, 32, Q), new et(8, 16, 128, 128, Q), new et(8, 32, 128, 256, Q), new et(32, 128, 258, 1024, Q), new et(32, 258, 258, 4096, Q)], w.deflateInit = function(t, R) {
1495
- return ht(t, R, c, 15, 8, 0);
1496
- }, w.deflateInit2 = ht, w.deflateReset = lt, w.deflateResetKeep = it, w.deflateSetHeader = function(t, R) {
1498
+ return lt(t, R, c, 15, 8, 0);
1499
+ }, w.deflateInit2 = lt, w.deflateReset = ft, w.deflateResetKeep = it, w.deflateSetHeader = function(t, R) {
1497
1500
  return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
1498
1501
  }, w.deflate = function(t, R) {
1499
1502
  var A, f, s, k;
@@ -1696,7 +1699,7 @@ function Tt() {
1696
1699
  w.inflateReset = S, w.inflateReset2 = x, w.inflateResetKeep = v, w.inflateInit = function(m) {
1697
1700
  return D(m, 15);
1698
1701
  }, w.inflateInit2 = D, w.inflate = function(m, B) {
1699
- var e, T, J, U, $, L, V, E, C, X, G, H, nt, ot, Q, et, st, it, lt, ht, t, R, A, f, s = 0, k = new u.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1702
+ var e, T, J, U, $, L, V, E, C, X, G, H, nt, ot, Q, et, st, it, ft, lt, t, R, A, f, s = 0, k = new u.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1700
1703
  if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
1701
1704
  (e = m.state).mode === 12 && (e.mode = 13), $ = m.next_out, J = m.output, V = m.avail_out, U = m.next_in, T = m.input, L = m.avail_in, E = e.hold, C = e.bits, X = L, G = V, R = b;
1702
1705
  t: for (; ; ) switch (e.mode) {
@@ -1938,7 +1941,7 @@ function Tt() {
1938
1941
  L--, E += T[U++] << C, C += 8;
1939
1942
  }
1940
1943
  if (et && (240 & et) == 0) {
1941
- for (it = Q, lt = et, ht = st; et = (s = e.lencode[ht + ((E & (1 << it + lt) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
1944
+ for (it = Q, ft = et, lt = st; et = (s = e.lencode[lt + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
1942
1945
  if (L === 0) break t;
1943
1946
  L--, E += T[U++] << C, C += 8;
1944
1947
  }
@@ -1972,7 +1975,7 @@ function Tt() {
1972
1975
  L--, E += T[U++] << C, C += 8;
1973
1976
  }
1974
1977
  if ((240 & et) == 0) {
1975
- for (it = Q, lt = et, ht = st; et = (s = e.distcode[ht + ((E & (1 << it + lt) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
1978
+ for (it = Q, ft = et, lt = st; et = (s = e.distcode[lt + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
1976
1979
  if (L === 0) break t;
1977
1980
  L--, E += T[U++] << C, C += 8;
1978
1981
  }
@@ -2156,27 +2159,27 @@ function Tt() {
2156
2159
  for (var P = s.heap[F], z = F << 1; z <= s.heap_len && (z < s.heap_len && st(k, s.heap[z + 1], s.heap[z], s.depth) && z++, !st(k, P, s.heap[z], s.depth)); ) s.heap[F] = s.heap[z], F = z, z <<= 1;
2157
2160
  s.heap[F] = P;
2158
2161
  }
2159
- function lt(s, k, F) {
2162
+ function ft(s, k, F) {
2160
2163
  var P, z, Z, K, M = 0;
2161
2164
  if (s.last_lit !== 0) for (; P = s.pending_buf[s.d_buf + 2 * M] << 8 | s.pending_buf[s.d_buf + 2 * M + 1], z = s.pending_buf[s.l_buf + M], M++, P === 0 ? H(s, z, k) : (H(s, (Z = e[z]) + p + 1, k), (K = O[Z]) !== 0 && G(s, z -= T[Z], K), H(s, Z = C(--P), F), (K = j[Z]) !== 0 && G(s, P -= L[Z], K)), M < s.last_lit; ) ;
2162
2165
  H(s, v, k);
2163
2166
  }
2164
- function ht(s, k) {
2167
+ function lt(s, k) {
2165
2168
  var F, P, z, Z = k.dyn_tree, K = k.stat_desc.static_tree, M = k.stat_desc.has_stree, Y = k.stat_desc.elems, rt = -1;
2166
2169
  for (s.heap_len = 0, s.heap_max = r, F = 0; F < Y; F++) Z[2 * F] !== 0 ? (s.heap[++s.heap_len] = rt = F, s.depth[F] = 0) : Z[2 * F + 1] = 0;
2167
2170
  for (; s.heap_len < 2; ) Z[2 * (z = s.heap[++s.heap_len] = rt < 2 ? ++rt : 0)] = 1, s.depth[z] = 0, s.opt_len--, M && (s.static_len -= K[2 * z + 1]);
2168
2171
  for (k.max_code = rt, F = s.heap_len >> 1; 1 <= F; F--) it(s, Z, F);
2169
2172
  for (z = Y; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1), P = s.heap[1], s.heap[--s.heap_max] = F, s.heap[--s.heap_max] = P, Z[2 * z] = Z[2 * F] + Z[2 * P], s.depth[z] = (s.depth[F] >= s.depth[P] ? s.depth[F] : s.depth[P]) + 1, Z[2 * F + 1] = Z[2 * P + 1] = z, s.heap[1] = z++, it(s, Z, 1), 2 <= s.heap_len; ) ;
2170
- s.heap[--s.heap_max] = s.heap[1], (function(tt, ut) {
2171
- var pt, ft, mt, at, gt, kt, dt = ut.dyn_tree, St = ut.max_code, At = ut.stat_desc.static_tree, It = ut.stat_desc.has_stree, Ot = ut.stat_desc.extra_bits, zt = ut.stat_desc.extra_base, _t = ut.stat_desc.max_length, bt = 0;
2173
+ s.heap[--s.heap_max] = s.heap[1], (function(tt, ht) {
2174
+ var pt, dt, mt, at, gt, kt, ct = ht.dyn_tree, St = ht.max_code, At = ht.stat_desc.static_tree, It = ht.stat_desc.has_stree, Ot = ht.stat_desc.extra_bits, zt = ht.stat_desc.extra_base, _t = ht.stat_desc.max_length, bt = 0;
2172
2175
  for (at = 0; at <= l; at++) tt.bl_count[at] = 0;
2173
- for (dt[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < r; pt++) _t < (at = dt[2 * dt[2 * (ft = tt.heap[pt]) + 1] + 1] + 1) && (at = _t, bt++), dt[2 * ft + 1] = at, St < ft || (tt.bl_count[at]++, gt = 0, zt <= ft && (gt = Ot[ft - zt]), kt = dt[2 * ft], tt.opt_len += kt * (at + gt), It && (tt.static_len += kt * (At[2 * ft + 1] + gt)));
2176
+ for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < r; pt++) _t < (at = ct[2 * ct[2 * (dt = tt.heap[pt]) + 1] + 1] + 1) && (at = _t, bt++), ct[2 * dt + 1] = at, St < dt || (tt.bl_count[at]++, gt = 0, zt <= dt && (gt = Ot[dt - zt]), kt = ct[2 * dt], tt.opt_len += kt * (at + gt), It && (tt.static_len += kt * (At[2 * dt + 1] + gt)));
2174
2177
  if (bt !== 0) {
2175
2178
  do {
2176
2179
  for (at = _t - 1; tt.bl_count[at] === 0; ) at--;
2177
2180
  tt.bl_count[at]--, tt.bl_count[at + 1] += 2, tt.bl_count[_t]--, bt -= 2;
2178
2181
  } while (0 < bt);
2179
- for (at = _t; at !== 0; at--) for (ft = tt.bl_count[at]; ft !== 0; ) St < (mt = tt.heap[--pt]) || (dt[2 * mt + 1] !== at && (tt.opt_len += (at - dt[2 * mt + 1]) * dt[2 * mt], dt[2 * mt + 1] = at), ft--);
2182
+ for (at = _t; at !== 0; at--) for (dt = tt.bl_count[at]; dt !== 0; ) St < (mt = tt.heap[--pt]) || (ct[2 * mt + 1] !== at && (tt.opt_len += (at - ct[2 * mt + 1]) * ct[2 * mt], ct[2 * mt + 1] = at), dt--);
2180
2183
  }
2181
2184
  })(s, k), ot(Z, rt, s.bl_count);
2182
2185
  }
@@ -2221,15 +2224,15 @@ function Tt() {
2221
2224
  if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return n;
2222
2225
  for (Y = 32; Y < p; Y++) if (M.dyn_ltree[2 * Y] !== 0) return n;
2223
2226
  return o;
2224
- })(s)), ht(s, s.l_desc), ht(s, s.d_desc), K = (function(M) {
2227
+ })(s)), lt(s, s.l_desc), lt(s, s.d_desc), K = (function(M) {
2225
2228
  var Y;
2226
- for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code), ht(M, M.bl_desc), Y = d - 1; 3 <= Y && M.bl_tree[2 * W[Y] + 1] === 0; Y--) ;
2229
+ for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code), lt(M, M.bl_desc), Y = d - 1; 3 <= Y && M.bl_tree[2 * W[Y] + 1] === 0; Y--) ;
2227
2230
  return M.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
2228
- })(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && k !== -1 ? f(s, k, F, P) : s.strategy === 4 || Z === z ? (G(s, 2 + (P ? 1 : 0), 3), lt(s, q, m)) : (G(s, 4 + (P ? 1 : 0), 3), (function(M, Y, rt, tt) {
2229
- var ut;
2230
- for (G(M, Y - 257, 5), G(M, rt - 1, 5), G(M, tt - 4, 4), ut = 0; ut < tt; ut++) G(M, M.bl_tree[2 * W[ut] + 1], 3);
2231
+ })(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && k !== -1 ? f(s, k, F, P) : s.strategy === 4 || Z === z ? (G(s, 2 + (P ? 1 : 0), 3), ft(s, q, m)) : (G(s, 4 + (P ? 1 : 0), 3), (function(M, Y, rt, tt) {
2232
+ var ht;
2233
+ for (G(M, Y - 257, 5), G(M, rt - 1, 5), G(M, tt - 4, 4), ht = 0; ht < tt; ht++) G(M, M.bl_tree[2 * W[ht] + 1], 3);
2231
2234
  R(M, M.dyn_ltree, Y - 1), R(M, M.dyn_dtree, rt - 1);
2232
- })(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1), lt(s, s.dyn_ltree, s.dyn_dtree)), Q(s), P && et(s);
2235
+ })(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1), ft(s, s.dyn_ltree, s.dyn_dtree)), Q(s), P && et(s);
2233
2236
  }, w._tr_tally = function(s, k, F) {
2234
2237
  return s.pending_buf[s.d_buf + 2 * s.last_lit] = k >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & k, s.pending_buf[s.l_buf + s.last_lit] = 255 & F, s.last_lit++, k === 0 ? s.dyn_ltree[2 * F]++ : (s.matches++, k--, s.dyn_ltree[2 * (e[F] + p + 1)]++, s.dyn_dtree[2 * C(k)]++), s.last_lit === s.lit_bufsize - 1;
2235
2238
  }, w._tr_align = function(s) {
@@ -2322,11 +2325,11 @@ function Tt() {
2322
2325
  })(xt)), xt.exports;
2323
2326
  }
2324
2327
  var Et = Tt();
2325
- const Dt = /* @__PURE__ */ Bt(Et), Nt = /* @__PURE__ */ Rt({
2328
+ const Dt = /* @__PURE__ */ Rt(Et), Ft = /* @__PURE__ */ Bt({
2326
2329
  __proto__: null,
2327
2330
  default: Dt
2328
2331
  }, [Et]);
2329
2332
  export {
2330
- Nt as j
2333
+ Ft as j
2331
2334
  };
2332
- //# sourceMappingURL=jszip.min-BrgORSfj.js.map
2335
+ //# sourceMappingURL=jszip.min-BrmBkVmG.js.map