@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.
- package/dist/{LayoutWrapper-e310e12f.js → LayoutWrapper-6224491f.js} +2 -10
- package/dist/{SearchCloseButton-52d8ac31.js → SearchCloseButton-08d57275.js} +8 -16
- package/dist/ToolbarLayout.module-49d71551.js +3556 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +11 -11
- package/dist/components/RPConfig.js +4 -28
- package/dist/components/RPController.js +57 -104
- package/dist/components/RPDropFileZone.js +20 -43
- package/dist/components/RPPages.js +9 -21
- package/dist/components/RPProvider.js +16 -43
- package/dist/components/RPTheme.js +10 -17
- package/dist/components/icons/CheckIcon.js +18 -12
- package/dist/components/icons/ChevronDownIcon.js +19 -15
- package/dist/components/icons/ChevronUpIcon.js +18 -12
- package/dist/components/icons/ClearIcon.js +21 -24
- package/dist/components/icons/ClockwiseIcon.js +18 -12
- package/dist/components/icons/CloseIcon.js +18 -12
- package/dist/components/icons/DarkPdfIcon.js +8 -5
- package/dist/components/icons/DualPageIcon.js +18 -12
- package/dist/components/icons/FileDownloadDefaultIcon.js +19 -16
- package/dist/components/icons/FileUploadDefaultIcon.js +19 -16
- package/dist/components/icons/FullScreenIcon.js +18 -12
- package/dist/components/icons/GoToDownIcon.js +18 -12
- package/dist/components/icons/HandModeDefaultIcon.js +18 -12
- package/dist/components/icons/HorizontalScrollingIcon.js +20 -14
- package/dist/components/icons/InfoIcon.js +18 -12
- package/dist/components/icons/LightPdfIcon.js +8 -5
- package/dist/components/icons/LoaderIcon.js +9 -9
- package/dist/components/icons/MoonIcon.js +18 -12
- package/dist/components/icons/PageScrollingIcon.js +20 -14
- package/dist/components/icons/PrintDefaultIcon.js +19 -16
- package/dist/components/icons/SearchIcon.js +18 -12
- package/dist/components/icons/SinglePageIcon.js +18 -12
- package/dist/components/icons/SunIcon.js +21 -24
- package/dist/components/icons/TextSelectionDefaultIcon.js +19 -16
- package/dist/components/icons/ThreeDotIcon.js +18 -12
- package/dist/components/icons/Thumbnail.js +50 -30
- package/dist/components/icons/VerticalScrollingIcon.js +20 -14
- package/dist/components/icons/WrappedScrollingIcon.js +20 -14
- package/dist/components/icons/ZoomInIcon.js +18 -12
- package/dist/components/icons/ZoomOutIcon.js +18 -12
- package/dist/components/layout/Container.js +12 -14
- package/dist/components/layout/LayoutContainer.js +9 -21
- package/dist/components/layout/LayoutWrapper.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +8 -20
- package/dist/components/layout/RPLayout.js +36 -58
- package/dist/components/layout/WrapperLayout.js +7 -32
- package/dist/components/layout/sidebar/RPSidebar.js +8 -20
- package/dist/components/layout/sidebar/RPSplitter.js +22 -23
- package/dist/components/layout/sidebar/Thumbnail.js +9 -21
- package/dist/components/layout/sidebar/Thumbnails.js +8 -20
- package/dist/components/layout/toolbar/DarkModeTool.js +6 -42
- package/dist/components/layout/toolbar/DocumentDialog.js +9 -21
- package/dist/components/layout/toolbar/DocumentProperties.js +15 -43
- package/dist/components/layout/toolbar/FileDownloadTool.js +8 -20
- package/dist/components/layout/toolbar/FileUploadTool.js +11 -80
- package/dist/components/layout/toolbar/FullScreenTool.js +35 -73
- package/dist/components/layout/toolbar/MenuItem.js +10 -28
- package/dist/components/layout/toolbar/MenuSeparator.js +5 -16
- package/dist/components/layout/toolbar/MostPageTool.js +8 -20
- package/dist/components/layout/toolbar/OtherTool.js +8 -20
- package/dist/components/layout/toolbar/Paginate.js +8 -20
- package/dist/components/layout/toolbar/PrintTool.js +8 -20
- package/dist/components/layout/toolbar/PropertyItem.js +4 -13
- package/dist/components/layout/toolbar/RPMenuItem.js +16 -30
- package/dist/components/layout/toolbar/RPMoreOptions.js +114 -111
- package/dist/components/layout/toolbar/RPToolbar.js +8 -20
- package/dist/components/layout/toolbar/RPToolbarEnd.js +8 -20
- package/dist/components/layout/toolbar/RotateTool.js +26 -69
- package/dist/components/layout/toolbar/ScrollModeTool.js +33 -83
- package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
- package/dist/components/layout/toolbar/SearchResultNavigator.js +8 -20
- package/dist/components/layout/toolbar/SearchTool.js +8 -20
- package/dist/components/layout/toolbar/SelectionModeTool.js +21 -63
- package/dist/components/layout/toolbar/ThumbnailTool.js +11 -48
- package/dist/components/layout/toolbar/ToolbarCustom.js +44 -81
- package/dist/components/layout/toolbar/ToolbarDefault.js +44 -80
- package/dist/components/layout/toolbar/ToolbarLayout.js +11 -31
- package/dist/components/layout/toolbar/ViewModeTool.js +26 -72
- package/dist/components/layout/toolbar/ZoomTool.js +8 -20
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +18 -39
- package/dist/components/layout/toolbar/tools/DualPageTool.js +11 -44
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +11 -44
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +6 -36
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +9 -25
- package/dist/components/layout/toolbar/tools/InputPageTool.js +27 -41
- package/dist/components/layout/toolbar/tools/NextPageTool.js +20 -50
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +19 -40
- package/dist/components/layout/toolbar/tools/PrintTool.js +11 -44
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +6 -31
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +11 -31
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +8 -22
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +11 -44
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +5 -19
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +19 -40
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +14 -31
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +9 -21
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +56 -82
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +14 -31
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +20 -64
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +13 -40
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +11 -36
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +14 -42
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +14 -42
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +11 -38
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +21 -73
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +14 -42
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +20 -57
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +29 -70
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +22 -58
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +21 -61
- package/dist/components/page/AnnotationLayer.js +9 -21
- package/dist/components/page/CanvasLayer.js +9 -21
- package/dist/components/page/CustomElement.js +8 -38
- package/dist/components/page/DualPage.js +8 -20
- package/dist/components/page/RPPage.js +9 -21
- package/dist/components/page/SinglePage.js +8 -20
- package/dist/components/page/TextHighlightLayer.js +18 -30
- package/dist/components/page/TextLayer.js +15 -27
- package/dist/components/ui/Button.js +11 -13
- package/dist/components/ui/Checkbox.js +15 -23
- package/dist/components/ui/DropDown.js +18 -40
- package/dist/components/ui/Input.js +14 -18
- package/dist/components/ui/LoadingIndicator.js +8 -20
- package/dist/components/ui/PasswordModal.js +24 -33
- package/dist/components/ui/RPTooltip.js +11 -29
- package/dist/contexts/ConfigContext.js +2 -8
- package/dist/contexts/DarkModeContext.js +2 -11
- package/dist/contexts/DimensionPagesContext.js +28 -89
- package/dist/contexts/DocumentPasswordContext.js +1 -4
- package/dist/contexts/DownloadContext.js +9 -9
- package/dist/contexts/DropFileZoneContext.js +34 -45
- package/dist/contexts/ElementPageContext.js +80 -111
- package/dist/contexts/EventCallbackContext.js +11 -8
- package/dist/contexts/FileInputContext.js +22 -39
- package/dist/contexts/FullScreenContext.js +3 -18
- package/dist/contexts/GlobalCurrentPage.js +3 -15
- package/dist/contexts/HighlightContext.js +7 -32
- package/dist/contexts/IconContext.js +1 -4
- package/dist/contexts/IconToolContext.js +2 -12
- package/dist/contexts/InitialStateContext.js +1 -4
- package/dist/contexts/LayerContext.js +1 -11
- package/dist/contexts/LicenseContext.js +8 -17
- package/dist/contexts/LoaderContext.js +10 -10
- package/dist/contexts/LocalizationContext.js +9 -6
- package/dist/contexts/OtherToolContext.js +2 -7
- package/dist/contexts/PageViewportContext.js +1 -6
- package/dist/contexts/PagesRotateContext.js +13 -45
- package/dist/contexts/PaginationContext.js +10 -22
- package/dist/contexts/PrintContext.js +10 -22
- package/dist/contexts/RPDocumentContext.js +17 -34
- package/dist/contexts/RenderQueueProvider.js +10 -22
- package/dist/contexts/RenderedPagesCache.js +8 -23
- package/dist/contexts/RotationContext.js +16 -33
- package/dist/contexts/ScrollModeContext.js +3 -13
- package/dist/contexts/SearchContext.js +10 -22
- package/dist/contexts/SelectionModeContext.js +1 -7
- package/dist/contexts/SmoothScrollContext.js +3 -12
- package/dist/contexts/ThumbnailsContext.js +10 -22
- package/dist/contexts/ToolComponentContext.js +2 -10
- package/dist/contexts/ToolbarComponentContext.js +2 -8
- package/dist/contexts/ViewModeContext.js +3 -15
- package/dist/contexts/ViewportContext.js +2 -7
- package/dist/contexts/VirtualGridContext.js +2 -10
- package/dist/contexts/VirtualScrollContext.js +19 -18
- package/dist/contexts/ZoomContext.js +84 -196
- package/dist/{index-1d695410.js → index-808ea7bf.js} +1 -1
- package/dist/index-a48ec088.js +1672 -0
- package/dist/{index-7ca3764b.js → index-c9a2990a.js} +3 -3
- package/dist/main.js +91 -103
- package/dist/types/utils/approximateFragtion.d.ts +9 -0
- package/dist/types/utils/link_service.d.ts +8 -0
- package/dist/utils/Queue.js +18 -60
- package/dist/utils/annotations.js +75 -109
- package/dist/utils/approximateFragtion.js +22 -0
- package/dist/utils/calculatePage.js +11 -23
- package/dist/utils/convertPdfDate.js +3 -1
- package/dist/utils/elementPagePosition.js +1 -8
- package/dist/utils/getElementPositionInPage.js +44 -16
- package/dist/utils/getScrollDistance.js +2 -5
- package/dist/utils/getThumbnailViewport.js +2 -10
- package/dist/utils/getZoomLevel.js +4 -1
- package/dist/utils/highlight.js +153 -225
- package/dist/utils/hooks/useCopyText.js +19 -20
- package/dist/utils/hooks/useDarkModeProps.js +1 -4
- package/dist/utils/hooks/useElementSize.js +10 -25
- package/dist/utils/hooks/useFileDownload.js +9 -21
- package/dist/utils/hooks/useFullScreen.js +1 -6
- package/dist/utils/hooks/useGrabScroll.js +16 -17
- package/dist/utils/hooks/useHighlight.js +22 -25
- package/dist/utils/hooks/useInfiniteScroll.js +8 -8
- package/dist/utils/hooks/useLicense.js +55 -1174
- package/dist/utils/hooks/useLoadPdf.js +42 -81
- package/dist/utils/hooks/useLoadWorker.js +8 -8
- package/dist/utils/hooks/useMousePressed.js +2 -8
- package/dist/utils/hooks/usePageRotateContext.js +18 -33
- package/dist/utils/hooks/usePaginate.js +9 -21
- package/dist/utils/hooks/usePinch.js +39 -49
- package/dist/utils/hooks/usePresentPage.js +18 -30
- package/dist/utils/hooks/usePrint.js +9 -21
- package/dist/utils/hooks/useRequestAnimationFrame.js +9 -9
- package/dist/utils/hooks/useRotate.js +4 -17
- package/dist/utils/hooks/useScrollToPage.js +9 -21
- package/dist/utils/hooks/useSearch.js +9 -21
- package/dist/utils/hooks/useThumbnail.js +9 -21
- package/dist/utils/hooks/useVirtualReactWindow.js +9 -21
- package/dist/utils/hooks/useWatermark.js +42 -55
- package/dist/utils/link_service.js +36 -20
- package/dist/utils/renderPage.js +5 -12
- package/dist/utils/smoothScrollTo.js +1 -4
- package/dist/utils/withRef.js +1 -4
- package/package.json +5 -9
- package/dist/ToolbarLayout.module-d74981d1.js +0 -4270
- package/dist/classof-56f81803.js +0 -76
- package/dist/es.iterator.constructor-05468e3d.js +0 -126
- package/dist/es.iterator.filter-1ddb1471.js +0 -37
- package/dist/es.iterator.for-each-ed4cb4aa.js +0 -34
- package/dist/es.iterator.map-635f6e20.js +0 -157
- package/dist/es.iterator.reduce-969434f1.js +0 -31
- package/dist/esnext.json.parse-3bf99e2e.js +0 -152
- package/dist/esnext.map.delete-all-fa83df07.js +0 -401
- package/dist/function-uncurry-this-accessor-efc140e6.js +0 -17
- package/dist/index-922e8d58.js +0 -2545
- package/dist/is-pure-db2321f6.js +0 -886
- package/dist/iterate-1672c441.js +0 -110
- package/dist/iterator-helper-without-closing-on-early-error-a6637535.js +0 -69
- package/dist/web.url-search-params.delete-c65de04d.js +0 -51
package/dist/iterate-1672c441.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { m as Z, r as rr, n as er, a as K, k as L, f as tr, o as ar, c as $, d as V, p as W, q as nr } from "./is-pure-db2321f6.js";
|
|
2
|
-
import { r as or, a as ir } from "./classof-56f81803.js";
|
|
3
|
-
import { r as ur } from "./iterator-helper-without-closing-on-early-error-a6637535.js";
|
|
4
|
-
var T, _;
|
|
5
|
-
function sr() {
|
|
6
|
-
if (_)
|
|
7
|
-
return T;
|
|
8
|
-
_ = 1;
|
|
9
|
-
var e = Z(), t = rr();
|
|
10
|
-
return T = function(a) {
|
|
11
|
-
if (e(a) === "Function")
|
|
12
|
-
return t(a);
|
|
13
|
-
}, T;
|
|
14
|
-
}
|
|
15
|
-
var E, P;
|
|
16
|
-
function vr() {
|
|
17
|
-
if (P)
|
|
18
|
-
return E;
|
|
19
|
-
P = 1;
|
|
20
|
-
var e = sr(), t = K(), a = er(), s = e(e.bind);
|
|
21
|
-
return E = function(r, v) {
|
|
22
|
-
return t(r), v === void 0 ? r : a ? s(r, v) : function() {
|
|
23
|
-
return r.apply(v, arguments);
|
|
24
|
-
};
|
|
25
|
-
}, E;
|
|
26
|
-
}
|
|
27
|
-
var A, j;
|
|
28
|
-
function z() {
|
|
29
|
-
return j || (j = 1, A = {}), A;
|
|
30
|
-
}
|
|
31
|
-
var w, B;
|
|
32
|
-
function fr() {
|
|
33
|
-
if (B)
|
|
34
|
-
return w;
|
|
35
|
-
B = 1;
|
|
36
|
-
var e = L(), t = z(), a = e("iterator"), s = Array.prototype;
|
|
37
|
-
return w = function(r) {
|
|
38
|
-
return r !== void 0 && (t.Array === r || s[a] === r);
|
|
39
|
-
}, w;
|
|
40
|
-
}
|
|
41
|
-
var C, D;
|
|
42
|
-
function H() {
|
|
43
|
-
if (D)
|
|
44
|
-
return C;
|
|
45
|
-
D = 1;
|
|
46
|
-
var e = or(), t = tr(), a = ar(), s = z(), r = L(), v = r("iterator");
|
|
47
|
-
return C = function(n) {
|
|
48
|
-
if (!a(n))
|
|
49
|
-
return t(n, v) || t(n, "@@iterator") || s[e(n)];
|
|
50
|
-
}, C;
|
|
51
|
-
}
|
|
52
|
-
var O, G;
|
|
53
|
-
function cr() {
|
|
54
|
-
if (G)
|
|
55
|
-
return O;
|
|
56
|
-
G = 1;
|
|
57
|
-
var e = $(), t = K(), a = V(), s = W(), r = H(), v = TypeError;
|
|
58
|
-
return O = function(n, q) {
|
|
59
|
-
var l = arguments.length < 2 ? r(n) : q;
|
|
60
|
-
if (t(l))
|
|
61
|
-
return a(e(l, n));
|
|
62
|
-
throw new v(s(n) + " is not iterable");
|
|
63
|
-
}, O;
|
|
64
|
-
}
|
|
65
|
-
var p, k;
|
|
66
|
-
function hr() {
|
|
67
|
-
if (k)
|
|
68
|
-
return p;
|
|
69
|
-
k = 1;
|
|
70
|
-
var e = vr(), t = $(), a = V(), s = W(), r = fr(), v = ir(), n = nr(), q = cr(), l = H(), S = ur(), J = TypeError, d = function(i, R) {
|
|
71
|
-
this.stopped = i, this.result = R;
|
|
72
|
-
}, g = d.prototype;
|
|
73
|
-
return p = function(i, R, u) {
|
|
74
|
-
var Q = u && u.that, X = !!(u && u.AS_ENTRIES), M = !!(u && u.IS_RECORD), Y = !!(u && u.IS_ITERATOR), m = !!(u && u.INTERRUPTED), I = e(R, Q), c, h, y, b, f, F, N, x = function(o) {
|
|
75
|
-
return c && S(c, "normal"), new d(!0, o);
|
|
76
|
-
}, U = function(o) {
|
|
77
|
-
return X ? (a(o), m ? I(o[0], o[1], x) : I(o[0], o[1])) : m ? I(o, x) : I(o);
|
|
78
|
-
};
|
|
79
|
-
if (M)
|
|
80
|
-
c = i.iterator;
|
|
81
|
-
else if (Y)
|
|
82
|
-
c = i;
|
|
83
|
-
else {
|
|
84
|
-
if (h = l(i), !h)
|
|
85
|
-
throw new J(s(i) + " is not iterable");
|
|
86
|
-
if (r(h)) {
|
|
87
|
-
for (y = 0, b = v(i); b > y; y++)
|
|
88
|
-
if (f = U(i[y]), f && n(g, f))
|
|
89
|
-
return f;
|
|
90
|
-
return new d(!1);
|
|
91
|
-
}
|
|
92
|
-
c = q(i, h);
|
|
93
|
-
}
|
|
94
|
-
for (F = M ? i.next : c.next; !(N = t(F, c)).done; ) {
|
|
95
|
-
try {
|
|
96
|
-
f = U(N.value);
|
|
97
|
-
} catch (o) {
|
|
98
|
-
S(c, "throw", o);
|
|
99
|
-
}
|
|
100
|
-
if (typeof f == "object" && f && n(g, f))
|
|
101
|
-
return f;
|
|
102
|
-
}
|
|
103
|
-
return new d(!1);
|
|
104
|
-
}, p;
|
|
105
|
-
}
|
|
106
|
-
export {
|
|
107
|
-
vr as a,
|
|
108
|
-
z as b,
|
|
109
|
-
hr as r
|
|
110
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { c as I, d, f as p, g as C } from "./is-pure-db2321f6.js";
|
|
2
|
-
var f, c;
|
|
3
|
-
function g() {
|
|
4
|
-
if (c)
|
|
5
|
-
return f;
|
|
6
|
-
c = 1;
|
|
7
|
-
var e = I(), n = d(), u = p();
|
|
8
|
-
return f = function(o, a, t) {
|
|
9
|
-
var r, i;
|
|
10
|
-
n(o);
|
|
11
|
-
try {
|
|
12
|
-
if (r = u(o, "return"), !r) {
|
|
13
|
-
if (a === "throw")
|
|
14
|
-
throw t;
|
|
15
|
-
return t;
|
|
16
|
-
}
|
|
17
|
-
r = e(r, o);
|
|
18
|
-
} catch (q) {
|
|
19
|
-
i = !0, r = q;
|
|
20
|
-
}
|
|
21
|
-
if (a === "throw")
|
|
22
|
-
throw t;
|
|
23
|
-
if (i)
|
|
24
|
-
throw r;
|
|
25
|
-
return n(r), t;
|
|
26
|
-
}, f;
|
|
27
|
-
}
|
|
28
|
-
var l, h;
|
|
29
|
-
function y() {
|
|
30
|
-
return h || (h = 1, l = function(e) {
|
|
31
|
-
return {
|
|
32
|
-
iterator: e,
|
|
33
|
-
next: e.next,
|
|
34
|
-
done: !1
|
|
35
|
-
};
|
|
36
|
-
}), l;
|
|
37
|
-
}
|
|
38
|
-
var s, v;
|
|
39
|
-
function O() {
|
|
40
|
-
if (v)
|
|
41
|
-
return s;
|
|
42
|
-
v = 1;
|
|
43
|
-
var e = C();
|
|
44
|
-
return s = function(n, u) {
|
|
45
|
-
var o = e.Iterator, a = o && o.prototype, t = a && a[n], r = !1;
|
|
46
|
-
if (t)
|
|
47
|
-
try {
|
|
48
|
-
t.call({
|
|
49
|
-
next: function() {
|
|
50
|
-
return {
|
|
51
|
-
done: !0
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
return: function() {
|
|
55
|
-
r = !0;
|
|
56
|
-
}
|
|
57
|
-
}, -1);
|
|
58
|
-
} catch (i) {
|
|
59
|
-
i instanceof u || (r = !1);
|
|
60
|
-
}
|
|
61
|
-
if (!r)
|
|
62
|
-
return t;
|
|
63
|
-
}, s;
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
O as a,
|
|
67
|
-
y as b,
|
|
68
|
-
g as r
|
|
69
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import "./is-pure-db2321f6.js";
|
|
2
|
-
import "./es.iterator.constructor-05468e3d.js";
|
|
3
|
-
import "./es.iterator.for-each-ed4cb4aa.js";
|
|
4
|
-
var R = require("../internals/descriptors"), U = require("../internals/function-uncurry-this"), b = require("../internals/define-built-in-accessor"), f = URLSearchParams.prototype, k = U(f.forEach);
|
|
5
|
-
R && !("size" in f) && b(f, "size", {
|
|
6
|
-
get: function() {
|
|
7
|
-
var e = 0;
|
|
8
|
-
return k(this, function() {
|
|
9
|
-
e++;
|
|
10
|
-
}), e;
|
|
11
|
-
},
|
|
12
|
-
configurable: !0,
|
|
13
|
-
enumerable: !0
|
|
14
|
-
});
|
|
15
|
-
var w = require("../internals/define-built-in"), $ = require("../internals/function-uncurry-this"), A = require("../internals/to-string"), E = require("../internals/validate-arguments-length"), P = URLSearchParams, o = P.prototype, I = $(o.getAll), T = $(o.has), m = new P("a=1");
|
|
16
|
-
(m.has("a", 2) || !m.has("a", void 0)) && w(o, "has", function(e) {
|
|
17
|
-
var t = arguments.length, a = t < 2 ? void 0 : arguments[1];
|
|
18
|
-
if (t && a === void 0)
|
|
19
|
-
return T(this, e);
|
|
20
|
-
var n = I(this, e);
|
|
21
|
-
E(t, 1);
|
|
22
|
-
for (var h = A(a), u = 0; u < n.length; )
|
|
23
|
-
if (n[u++] === h)
|
|
24
|
-
return !0;
|
|
25
|
-
return !1;
|
|
26
|
-
}, {
|
|
27
|
-
enumerable: !0,
|
|
28
|
-
unsafe: !0
|
|
29
|
-
});
|
|
30
|
-
var x = require("../internals/define-built-in"), v = require("../internals/function-uncurry-this"), p = require("../internals/to-string"), z = require("../internals/validate-arguments-length"), S = URLSearchParams, s = S.prototype, B = v(s.append), y = v(s.delete), C = v(s.forEach), D = v([].push), d = new S("a=1&a=2&b=3");
|
|
31
|
-
d.delete("a", 1);
|
|
32
|
-
d.delete("b", void 0);
|
|
33
|
-
d + "" != "a=2" && x(s, "delete", function(i) {
|
|
34
|
-
var e = arguments.length, t = e < 2 ? void 0 : arguments[1];
|
|
35
|
-
if (e && t === void 0)
|
|
36
|
-
return y(this, i);
|
|
37
|
-
var a = [];
|
|
38
|
-
C(this, function(q, L) {
|
|
39
|
-
D(a, {
|
|
40
|
-
key: L,
|
|
41
|
-
value: q
|
|
42
|
-
});
|
|
43
|
-
}), z(e, 1);
|
|
44
|
-
for (var n = p(i), h = p(t), u = 0, l = 0, c = !1, g = a.length, r; u < g; )
|
|
45
|
-
r = a[u++], c || r.key === n ? (c = !0, y(this, r.key)) : l++;
|
|
46
|
-
for (; l < g; )
|
|
47
|
-
r = a[l++], r.key === n && r.value === h || B(this, r.key, r.value);
|
|
48
|
-
}, {
|
|
49
|
-
enumerable: !0,
|
|
50
|
-
unsafe: !0
|
|
51
|
-
});
|