@pdf-viewer/react 0.0.0-experimental.7 → 0.0.0-experimental.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 (227) hide show
  1. package/dist/{LayoutWrapper-e310e12f.js → LayoutWrapper-6224491f.js} +2 -10
  2. package/dist/{SearchCloseButton-52d8ac31.js → SearchCloseButton-08d57275.js} +8 -16
  3. package/dist/ToolbarLayout.module-49d71551.js +3556 -0
  4. package/dist/assets/style.css +1 -1
  5. package/dist/assets/style.js +11 -11
  6. package/dist/components/RPConfig.js +4 -28
  7. package/dist/components/RPController.js +57 -104
  8. package/dist/components/RPDropFileZone.js +20 -43
  9. package/dist/components/RPPages.js +9 -21
  10. package/dist/components/RPProvider.js +16 -43
  11. package/dist/components/RPTheme.js +10 -17
  12. package/dist/components/icons/CheckIcon.js +18 -12
  13. package/dist/components/icons/ChevronDownIcon.js +19 -15
  14. package/dist/components/icons/ChevronUpIcon.js +18 -12
  15. package/dist/components/icons/ClearIcon.js +21 -24
  16. package/dist/components/icons/ClockwiseIcon.js +18 -12
  17. package/dist/components/icons/CloseIcon.js +18 -12
  18. package/dist/components/icons/DarkPdfIcon.js +8 -5
  19. package/dist/components/icons/DualPageIcon.js +18 -12
  20. package/dist/components/icons/FileDownloadDefaultIcon.js +19 -16
  21. package/dist/components/icons/FileUploadDefaultIcon.js +19 -16
  22. package/dist/components/icons/FullScreenIcon.js +18 -12
  23. package/dist/components/icons/GoToDownIcon.js +18 -12
  24. package/dist/components/icons/HandModeDefaultIcon.js +18 -12
  25. package/dist/components/icons/HorizontalScrollingIcon.js +20 -14
  26. package/dist/components/icons/InfoIcon.js +18 -12
  27. package/dist/components/icons/LightPdfIcon.js +8 -5
  28. package/dist/components/icons/LoaderIcon.js +9 -9
  29. package/dist/components/icons/MoonIcon.js +18 -12
  30. package/dist/components/icons/PageScrollingIcon.js +20 -14
  31. package/dist/components/icons/PrintDefaultIcon.js +19 -16
  32. package/dist/components/icons/SearchIcon.js +18 -12
  33. package/dist/components/icons/SinglePageIcon.js +18 -12
  34. package/dist/components/icons/SunIcon.js +21 -24
  35. package/dist/components/icons/TextSelectionDefaultIcon.js +19 -16
  36. package/dist/components/icons/ThreeDotIcon.js +18 -12
  37. package/dist/components/icons/Thumbnail.js +50 -30
  38. package/dist/components/icons/VerticalScrollingIcon.js +20 -14
  39. package/dist/components/icons/WrappedScrollingIcon.js +20 -14
  40. package/dist/components/icons/ZoomInIcon.js +18 -12
  41. package/dist/components/icons/ZoomOutIcon.js +18 -12
  42. package/dist/components/layout/Container.js +12 -14
  43. package/dist/components/layout/LayoutContainer.js +9 -21
  44. package/dist/components/layout/LayoutWrapper.js +1 -1
  45. package/dist/components/layout/RPDefaultLayout.js +8 -20
  46. package/dist/components/layout/RPLayout.js +36 -58
  47. package/dist/components/layout/WrapperLayout.js +7 -32
  48. package/dist/components/layout/sidebar/RPSidebar.js +8 -20
  49. package/dist/components/layout/sidebar/RPSplitter.js +22 -23
  50. package/dist/components/layout/sidebar/Thumbnail.js +9 -21
  51. package/dist/components/layout/sidebar/Thumbnails.js +8 -20
  52. package/dist/components/layout/toolbar/DarkModeTool.js +6 -42
  53. package/dist/components/layout/toolbar/DocumentDialog.js +9 -21
  54. package/dist/components/layout/toolbar/DocumentProperties.js +15 -43
  55. package/dist/components/layout/toolbar/FileDownloadTool.js +8 -20
  56. package/dist/components/layout/toolbar/FileUploadTool.js +11 -80
  57. package/dist/components/layout/toolbar/FullScreenTool.js +35 -73
  58. package/dist/components/layout/toolbar/MenuItem.js +10 -28
  59. package/dist/components/layout/toolbar/MenuSeparator.js +5 -16
  60. package/dist/components/layout/toolbar/MostPageTool.js +8 -20
  61. package/dist/components/layout/toolbar/OtherTool.js +8 -20
  62. package/dist/components/layout/toolbar/Paginate.js +8 -20
  63. package/dist/components/layout/toolbar/PrintTool.js +8 -20
  64. package/dist/components/layout/toolbar/PropertyItem.js +4 -13
  65. package/dist/components/layout/toolbar/RPMenuItem.js +16 -30
  66. package/dist/components/layout/toolbar/RPMoreOptions.js +114 -111
  67. package/dist/components/layout/toolbar/RPToolbar.js +8 -20
  68. package/dist/components/layout/toolbar/RPToolbarEnd.js +8 -20
  69. package/dist/components/layout/toolbar/RotateTool.js +26 -69
  70. package/dist/components/layout/toolbar/ScrollModeTool.js +33 -83
  71. package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
  72. package/dist/components/layout/toolbar/SearchResultNavigator.js +8 -20
  73. package/dist/components/layout/toolbar/SearchTool.js +8 -20
  74. package/dist/components/layout/toolbar/SelectionModeTool.js +21 -63
  75. package/dist/components/layout/toolbar/ThumbnailTool.js +11 -48
  76. package/dist/components/layout/toolbar/ToolbarCustom.js +44 -81
  77. package/dist/components/layout/toolbar/ToolbarDefault.js +44 -80
  78. package/dist/components/layout/toolbar/ToolbarLayout.js +11 -31
  79. package/dist/components/layout/toolbar/ViewModeTool.js +26 -72
  80. package/dist/components/layout/toolbar/ZoomTool.js +8 -20
  81. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +18 -39
  82. package/dist/components/layout/toolbar/tools/DualPageTool.js +11 -44
  83. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +11 -44
  84. package/dist/components/layout/toolbar/tools/FileUploadTool.js +6 -36
  85. package/dist/components/layout/toolbar/tools/FullScreenTool.js +9 -25
  86. package/dist/components/layout/toolbar/tools/InputPageTool.js +27 -41
  87. package/dist/components/layout/toolbar/tools/NextPageTool.js +20 -50
  88. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +19 -40
  89. package/dist/components/layout/toolbar/tools/PrintTool.js +11 -44
  90. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +6 -31
  91. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +11 -31
  92. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +8 -22
  93. package/dist/components/layout/toolbar/tools/SinglePageTool.js +11 -44
  94. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +5 -19
  95. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +19 -40
  96. package/dist/components/layout/toolbar/tools/ZoomInTool.js +14 -31
  97. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +9 -21
  98. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +56 -82
  99. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +14 -31
  100. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +20 -64
  101. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +13 -40
  102. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +11 -36
  103. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +14 -42
  104. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +14 -42
  105. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +11 -38
  106. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +21 -73
  107. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +14 -42
  108. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +20 -57
  109. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +29 -70
  110. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +22 -58
  111. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +21 -61
  112. package/dist/components/page/AnnotationLayer.js +9 -21
  113. package/dist/components/page/CanvasLayer.js +9 -21
  114. package/dist/components/page/CustomElement.js +8 -38
  115. package/dist/components/page/DualPage.js +8 -20
  116. package/dist/components/page/RPPage.js +9 -21
  117. package/dist/components/page/SinglePage.js +8 -20
  118. package/dist/components/page/TextHighlightLayer.js +18 -30
  119. package/dist/components/page/TextLayer.js +15 -27
  120. package/dist/components/ui/Button.js +11 -13
  121. package/dist/components/ui/Checkbox.js +15 -23
  122. package/dist/components/ui/DropDown.js +18 -40
  123. package/dist/components/ui/Input.js +14 -18
  124. package/dist/components/ui/LoadingIndicator.js +8 -20
  125. package/dist/components/ui/PasswordModal.js +24 -33
  126. package/dist/components/ui/RPTooltip.js +11 -29
  127. package/dist/contexts/ConfigContext.js +2 -8
  128. package/dist/contexts/DarkModeContext.js +2 -11
  129. package/dist/contexts/DimensionPagesContext.js +28 -89
  130. package/dist/contexts/DocumentPasswordContext.js +1 -4
  131. package/dist/contexts/DownloadContext.js +9 -9
  132. package/dist/contexts/DropFileZoneContext.js +34 -45
  133. package/dist/contexts/ElementPageContext.js +80 -111
  134. package/dist/contexts/EventCallbackContext.js +11 -8
  135. package/dist/contexts/FileInputContext.js +22 -39
  136. package/dist/contexts/FullScreenContext.js +3 -18
  137. package/dist/contexts/GlobalCurrentPage.js +3 -15
  138. package/dist/contexts/HighlightContext.js +7 -32
  139. package/dist/contexts/IconContext.js +1 -4
  140. package/dist/contexts/IconToolContext.js +2 -12
  141. package/dist/contexts/InitialStateContext.js +1 -4
  142. package/dist/contexts/LayerContext.js +1 -11
  143. package/dist/contexts/LicenseContext.js +8 -17
  144. package/dist/contexts/LoaderContext.js +10 -10
  145. package/dist/contexts/LocalizationContext.js +9 -6
  146. package/dist/contexts/OtherToolContext.js +2 -7
  147. package/dist/contexts/PageViewportContext.js +1 -6
  148. package/dist/contexts/PagesRotateContext.js +13 -45
  149. package/dist/contexts/PaginationContext.js +10 -22
  150. package/dist/contexts/PrintContext.js +10 -22
  151. package/dist/contexts/RPDocumentContext.js +17 -34
  152. package/dist/contexts/RenderQueueProvider.js +10 -22
  153. package/dist/contexts/RenderedPagesCache.js +8 -23
  154. package/dist/contexts/RotationContext.js +16 -33
  155. package/dist/contexts/ScrollModeContext.js +3 -13
  156. package/dist/contexts/SearchContext.js +10 -22
  157. package/dist/contexts/SelectionModeContext.js +1 -7
  158. package/dist/contexts/SmoothScrollContext.js +3 -12
  159. package/dist/contexts/ThumbnailsContext.js +10 -22
  160. package/dist/contexts/ToolComponentContext.js +2 -10
  161. package/dist/contexts/ToolbarComponentContext.js +2 -8
  162. package/dist/contexts/ViewModeContext.js +3 -15
  163. package/dist/contexts/ViewportContext.js +2 -7
  164. package/dist/contexts/VirtualGridContext.js +2 -10
  165. package/dist/contexts/VirtualScrollContext.js +19 -18
  166. package/dist/contexts/ZoomContext.js +84 -196
  167. package/dist/{index-1d695410.js → index-808ea7bf.js} +1 -1
  168. package/dist/index-a48ec088.js +1672 -0
  169. package/dist/{index-7ca3764b.js → index-c9a2990a.js} +3 -3
  170. package/dist/main.js +91 -103
  171. package/dist/types/utils/approximateFragtion.d.ts +9 -0
  172. package/dist/types/utils/link_service.d.ts +8 -0
  173. package/dist/utils/Queue.js +18 -60
  174. package/dist/utils/annotations.js +75 -109
  175. package/dist/utils/approximateFragtion.js +22 -0
  176. package/dist/utils/calculatePage.js +11 -23
  177. package/dist/utils/convertPdfDate.js +3 -1
  178. package/dist/utils/elementPagePosition.js +1 -8
  179. package/dist/utils/getElementPositionInPage.js +44 -16
  180. package/dist/utils/getScrollDistance.js +2 -5
  181. package/dist/utils/getThumbnailViewport.js +2 -10
  182. package/dist/utils/getZoomLevel.js +4 -1
  183. package/dist/utils/highlight.js +153 -225
  184. package/dist/utils/hooks/useCopyText.js +19 -20
  185. package/dist/utils/hooks/useDarkModeProps.js +1 -4
  186. package/dist/utils/hooks/useElementSize.js +10 -25
  187. package/dist/utils/hooks/useFileDownload.js +9 -21
  188. package/dist/utils/hooks/useFullScreen.js +1 -6
  189. package/dist/utils/hooks/useGrabScroll.js +16 -17
  190. package/dist/utils/hooks/useHighlight.js +22 -25
  191. package/dist/utils/hooks/useInfiniteScroll.js +8 -8
  192. package/dist/utils/hooks/useLicense.js +55 -1174
  193. package/dist/utils/hooks/useLoadPdf.js +42 -81
  194. package/dist/utils/hooks/useLoadWorker.js +8 -8
  195. package/dist/utils/hooks/useMousePressed.js +2 -8
  196. package/dist/utils/hooks/usePageRotateContext.js +18 -33
  197. package/dist/utils/hooks/usePaginate.js +9 -21
  198. package/dist/utils/hooks/usePinch.js +39 -49
  199. package/dist/utils/hooks/usePresentPage.js +18 -30
  200. package/dist/utils/hooks/usePrint.js +9 -21
  201. package/dist/utils/hooks/useRequestAnimationFrame.js +9 -9
  202. package/dist/utils/hooks/useRotate.js +4 -17
  203. package/dist/utils/hooks/useScrollToPage.js +9 -21
  204. package/dist/utils/hooks/useSearch.js +9 -21
  205. package/dist/utils/hooks/useThumbnail.js +9 -21
  206. package/dist/utils/hooks/useVirtualReactWindow.js +9 -21
  207. package/dist/utils/hooks/useWatermark.js +42 -55
  208. package/dist/utils/link_service.js +36 -20
  209. package/dist/utils/renderPage.js +5 -12
  210. package/dist/utils/smoothScrollTo.js +1 -4
  211. package/dist/utils/withRef.js +1 -4
  212. package/package.json +5 -9
  213. package/dist/ToolbarLayout.module-d74981d1.js +0 -4270
  214. package/dist/classof-56f81803.js +0 -76
  215. package/dist/es.iterator.constructor-05468e3d.js +0 -126
  216. package/dist/es.iterator.filter-1ddb1471.js +0 -37
  217. package/dist/es.iterator.for-each-ed4cb4aa.js +0 -34
  218. package/dist/es.iterator.map-635f6e20.js +0 -157
  219. package/dist/es.iterator.reduce-969434f1.js +0 -31
  220. package/dist/esnext.json.parse-3bf99e2e.js +0 -152
  221. package/dist/esnext.map.delete-all-fa83df07.js +0 -401
  222. package/dist/function-uncurry-this-accessor-efc140e6.js +0 -17
  223. package/dist/index-922e8d58.js +0 -2545
  224. package/dist/is-pure-db2321f6.js +0 -886
  225. package/dist/iterate-1672c441.js +0 -110
  226. package/dist/iterator-helper-without-closing-on-early-error-a6637535.js +0 -69
  227. package/dist/web.url-search-params.delete-c65de04d.js +0 -51
@@ -1,401 +0,0 @@
1
- var me = (t, r) => () => (r || t((r = { exports: {} }).exports, r), r.exports);
2
- import { b as m, s as ue, e as ie, a as $ } from "./is-pure-db2321f6.js";
3
- import { a as h, r as de } from "./iterate-1672c441.js";
4
- import "./es.iterator.constructor-05468e3d.js";
5
- import "./es.iterator.for-each-ed4cb4aa.js";
6
- var Fe = me((De, b) => {
7
- var R = {}, I = {}, O;
8
- function le() {
9
- if (O)
10
- return I;
11
- O = 1;
12
- var t = m(), r = d(), n = g, a = n.get, v = n.has, s = n.set;
13
- return t({
14
- target: "Map",
15
- proto: !0,
16
- real: !0,
17
- forced: !0
18
- }, {
19
- emplace: function(p, i) {
20
- var e = r(this), o, f;
21
- return v(e, p) ? (o = a(e, p), "update" in i && (o = i.update(o, p, e), s(e, p, o)), o) : (f = i.insert(p, e), s(e, p, f), f);
22
- }
23
- }), I;
24
- }
25
- le();
26
- var y = {}, se = require("../internals/function-uncurry-this"), _e = require("../internals/iterate-simple"), pe = require("../internals/map-helpers"), ce = pe.Map, oe = pe.proto, ge = se(oe.forEach), ve = se(oe.entries), he = ve(new ce()).next;
27
- b.exports = function(t, r, n) {
28
- return n ? _e({
29
- iterator: ve(t),
30
- next: he
31
- }, function(a) {
32
- return r(a[1], a[0]);
33
- }) : ge(t, r);
34
- };
35
- const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36
- __proto__: null
37
- }, Symbol.toStringTag, { value: "Module" })), c = /* @__PURE__ */ ue(Me);
38
- var w;
39
- function xe() {
40
- if (w)
41
- return y;
42
- w = 1;
43
- var t = m(), r = h(), n = d(), a = c;
44
- return t({
45
- target: "Map",
46
- proto: !0,
47
- real: !0,
48
- forced: !0
49
- }, {
50
- every: function(s) {
51
- var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0);
52
- return a(u, function(i, e) {
53
- if (!p(i, e, u))
54
- return !1;
55
- }, !0) !== !1;
56
- }
57
- }), y;
58
- }
59
- xe();
60
- var S = {}, A;
61
- function qe() {
62
- if (A)
63
- return S;
64
- A = 1;
65
- var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
66
- return t({
67
- target: "Map",
68
- proto: !0,
69
- real: !0,
70
- forced: !0
71
- }, {
72
- filter: function(i) {
73
- var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
74
- return v(e, function(l, _) {
75
- o(l, _, e) && u(f, _, l);
76
- }), f;
77
- }
78
- }), S;
79
- }
80
- qe();
81
- var C = {}, K;
82
- function Ee() {
83
- if (K)
84
- return C;
85
- K = 1;
86
- var t = m(), r = h(), n = d(), a = c;
87
- return t({
88
- target: "Map",
89
- proto: !0,
90
- real: !0,
91
- forced: !0
92
- }, {
93
- find: function(s) {
94
- var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0), i = a(u, function(e, o) {
95
- if (p(e, o, u))
96
- return {
97
- value: e
98
- };
99
- }, !0);
100
- return i && i.value;
101
- }
102
- }), C;
103
- }
104
- Ee();
105
- var H = {}, T;
106
- function $e() {
107
- if (T)
108
- return H;
109
- T = 1;
110
- var t = m(), r = h(), n = d(), a = c;
111
- return t({
112
- target: "Map",
113
- proto: !0,
114
- real: !0,
115
- forced: !0
116
- }, {
117
- findKey: function(s) {
118
- var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0), i = a(u, function(e, o) {
119
- if (p(e, o, u))
120
- return {
121
- key: o
122
- };
123
- }, !0);
124
- return i && i.key;
125
- }
126
- }), H;
127
- }
128
- $e();
129
- var V = {}, F;
130
- function be() {
131
- if (F)
132
- return V;
133
- F = 1;
134
- var t = m(), r = d(), n = g, a = ie(), v = n.get, s = n.has, u = n.set;
135
- return t({
136
- target: "Map",
137
- proto: !0,
138
- real: !0,
139
- forced: a
140
- }, {
141
- getOrInsert: function(i, e) {
142
- return s(r(this), i) ? v(this, i) : (u(this, i, e), e);
143
- }
144
- }), V;
145
- }
146
- be();
147
- var P = {}, j;
148
- function Re() {
149
- if (j)
150
- return P;
151
- j = 1;
152
- var t = m(), r = $(), n = d(), a = g, v = ie(), s = a.get, u = a.has, p = a.set;
153
- return t({
154
- target: "Map",
155
- proto: !0,
156
- real: !0,
157
- forced: v
158
- }, {
159
- getOrInsertComputed: function(e, o) {
160
- if (n(this), r(o), u(this, e))
161
- return s(this, e);
162
- e === 0 && 1 / e === -1 / 0 && (e = 0);
163
- var f = o(e);
164
- return p(this, e, f), f;
165
- }
166
- }), P;
167
- }
168
- Re();
169
- var Z = {}, q, U;
170
- function Ie() {
171
- return U || (U = 1, q = function(t, r) {
172
- return t === r || t !== t && r !== r;
173
- }), q;
174
- }
175
- var z;
176
- function Oe() {
177
- if (z)
178
- return Z;
179
- z = 1;
180
- var t = m(), r = Ie(), n = d(), a = c;
181
- return t({
182
- target: "Map",
183
- proto: !0,
184
- real: !0,
185
- forced: !0
186
- }, {
187
- includes: function(s) {
188
- return a(n(this), function(u) {
189
- if (r(u, s))
190
- return !0;
191
- }, !0) === !0;
192
- }
193
- }), Z;
194
- }
195
- Oe();
196
- var D = {}, N;
197
- function ye() {
198
- if (N)
199
- return D;
200
- N = 1;
201
- var t = m(), r = d(), n = c;
202
- return t({
203
- target: "Map",
204
- proto: !0,
205
- real: !0,
206
- forced: !0
207
- }, {
208
- keyOf: function(v) {
209
- var s = n(r(this), function(u, p) {
210
- if (u === v)
211
- return {
212
- key: p
213
- };
214
- }, !0);
215
- return s && s.key;
216
- }
217
- }), D;
218
- }
219
- ye();
220
- var B = {}, L;
221
- function we() {
222
- if (L)
223
- return B;
224
- L = 1;
225
- var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
226
- return t({
227
- target: "Map",
228
- proto: !0,
229
- real: !0,
230
- forced: !0
231
- }, {
232
- mapKeys: function(i) {
233
- var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
234
- return v(e, function(l, _) {
235
- u(f, o(l, _, e), l);
236
- }), f;
237
- }
238
- }), B;
239
- }
240
- we();
241
- var G = {}, J;
242
- function Se() {
243
- if (J)
244
- return G;
245
- J = 1;
246
- var t = m(), r = h(), n = d(), a = g, v = c, s = a.Map, u = a.set;
247
- return t({
248
- target: "Map",
249
- proto: !0,
250
- real: !0,
251
- forced: !0
252
- }, {
253
- mapValues: function(i) {
254
- var e = n(this), o = r(i, arguments.length > 1 ? arguments[1] : void 0), f = new s();
255
- return v(e, function(l, _) {
256
- u(f, _, o(l, _, e));
257
- }), f;
258
- }
259
- }), G;
260
- }
261
- Se();
262
- var Q = {}, W;
263
- function Ae() {
264
- if (W)
265
- return Q;
266
- W = 1;
267
- var t = m(), r = d(), n = de(), a = g.set;
268
- return t({
269
- target: "Map",
270
- proto: !0,
271
- real: !0,
272
- arity: 1,
273
- forced: !0
274
- }, {
275
- // eslint-disable-next-line no-unused-vars -- required for `.length`
276
- merge: function(s) {
277
- for (var u = r(this), p = arguments.length, i = 0; i < p; )
278
- n(arguments[i++], function(e, o) {
279
- a(u, e, o);
280
- }, {
281
- AS_ENTRIES: !0
282
- });
283
- return u;
284
- }
285
- }), Q;
286
- }
287
- Ae();
288
- var X = {}, Y;
289
- function Ce() {
290
- if (Y)
291
- return X;
292
- Y = 1;
293
- var t = m(), r = $(), n = d(), a = c, v = TypeError;
294
- return t({
295
- target: "Map",
296
- proto: !0,
297
- real: !0,
298
- forced: !0
299
- }, {
300
- reduce: function(u) {
301
- var p = n(this), i = arguments.length < 2, e = i ? void 0 : arguments[1];
302
- if (r(u), a(p, function(o, f) {
303
- i ? (i = !1, e = o) : e = u(e, o, f, p);
304
- }), i)
305
- throw new v("Reduce of empty map with no initial value");
306
- return e;
307
- }
308
- }), X;
309
- }
310
- Ce();
311
- var k = {}, ee;
312
- function Ke() {
313
- if (ee)
314
- return k;
315
- ee = 1;
316
- var t = m(), r = h(), n = d(), a = c;
317
- return t({
318
- target: "Map",
319
- proto: !0,
320
- real: !0,
321
- forced: !0
322
- }, {
323
- some: function(s) {
324
- var u = n(this), p = r(s, arguments.length > 1 ? arguments[1] : void 0);
325
- return a(u, function(i, e) {
326
- if (p(i, e, u))
327
- return !0;
328
- }, !0) === !0;
329
- }
330
- }), k;
331
- }
332
- Ke();
333
- var re = {}, te;
334
- function He() {
335
- if (te)
336
- return re;
337
- te = 1;
338
- var t = m(), r = $(), n = d(), a = g, v = TypeError, s = a.get, u = a.has, p = a.set;
339
- return t({
340
- target: "Map",
341
- proto: !0,
342
- real: !0,
343
- forced: !0
344
- }, {
345
- update: function(e, o) {
346
- var f = n(this), l = arguments.length;
347
- r(o);
348
- var _ = u(f, e);
349
- if (!_ && l < 3)
350
- throw new v("Updating absent value");
351
- var fe = _ ? s(f, e) : r(l > 2 ? arguments[2] : void 0)(e, f);
352
- return p(f, e, o(fe, e, f)), f;
353
- }
354
- }), re;
355
- }
356
- He();
357
- var x = require("../internals/function-uncurry-this"), M = Map.prototype;
358
- b.exports = {
359
- // eslint-disable-next-line es/no-map -- safe
360
- Map,
361
- set: x(M.set),
362
- get: x(M.get),
363
- has: x(M.has),
364
- remove: x(M.delete),
365
- proto: M
366
- };
367
- const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
368
- __proto__: null
369
- }, Symbol.toStringTag, { value: "Module" })), g = /* @__PURE__ */ ue(Te);
370
- var E, ae;
371
- function d() {
372
- if (ae)
373
- return E;
374
- ae = 1;
375
- var t = g.has;
376
- return E = function(r) {
377
- return t(r), r;
378
- }, E;
379
- }
380
- var ne;
381
- function Ve() {
382
- if (ne)
383
- return R;
384
- ne = 1;
385
- var t = m(), r = d(), n = g.remove;
386
- return t({
387
- target: "Map",
388
- proto: !0,
389
- real: !0,
390
- forced: !0
391
- }, {
392
- deleteAll: function() {
393
- for (var v = r(this), s = !0, u, p = 0, i = arguments.length; p < i; p++)
394
- u = n(v, arguments[p]), s = s && u;
395
- return !!s;
396
- }
397
- }), R;
398
- }
399
- Ve();
400
- });
401
- export default Fe();
@@ -1,17 +0,0 @@
1
- import { r as s, a } from "./is-pure-db2321f6.js";
2
- var r, e;
3
- function y() {
4
- if (e)
5
- return r;
6
- e = 1;
7
- var c = s(), n = a();
8
- return r = function(u, i, t) {
9
- try {
10
- return c(n(Object.getOwnPropertyDescriptor(u, i)[t]));
11
- } catch {
12
- }
13
- }, r;
14
- }
15
- export {
16
- y as r
17
- };