title-switcher 2.1.17 → 2.1.18
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/browser/titleSwitcher.js +1464 -1510
- package/browser/titleSwitcher.min.js +1 -1
- package/dist/main.d.ts +80 -80
- package/dist/main.js +179 -191
- package/package.json +2 -2
package/browser/titleSwitcher.js
CHANGED
|
@@ -1,114 +1,104 @@
|
|
|
1
|
-
(function () { function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
1
|
+
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.titleSwitcher = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
5
|
+
var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function (receiver, state, value, kind, f) {
|
|
6
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
7
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
8
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
9
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _TitleSwitcher_active, _TitleSwitcher_currentClass, _TitleSwitcher_currentIndex, _TitleSwitcher_delayEffect, _TitleSwitcher_delaySwitch, _TitleSwitcher_isRandom, _TitleSwitcher_titles, _TitleSwitcher_titlesContainer, _TitleSwitcher_switchStyle, _TitleSwitcher_typeSurface;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", {
|
|
18
|
+
value: true
|
|
19
|
+
});
|
|
20
|
+
class TitleSwitcher {
|
|
21
|
+
/**
|
|
23
22
|
* Instantiate this as a class to get an instance of TitleSwitcher
|
|
24
23
|
* @param titlesContainer - The selector where titles are stored
|
|
25
24
|
* @param switchStyle - The function or function name for the effect to apply
|
|
26
25
|
* @constructor
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/**
|
|
27
|
+
constructor(titlesContainer = '', switchStyle = 'typingEffect') {
|
|
28
|
+
_TitleSwitcher_active.set(this, false);
|
|
29
|
+
_TitleSwitcher_currentClass.set(this, 'displayTitle');
|
|
30
|
+
_TitleSwitcher_currentIndex.set(this, 0);
|
|
31
|
+
_TitleSwitcher_delayEffect.set(this, 200);
|
|
32
|
+
_TitleSwitcher_delaySwitch.set(this, 400);
|
|
33
|
+
_TitleSwitcher_isRandom.set(this, false);
|
|
34
|
+
_TitleSwitcher_titles.set(this, []);
|
|
35
|
+
_TitleSwitcher_titlesContainer.set(this, '');
|
|
36
|
+
_TitleSwitcher_switchStyle.set(this, void 0);
|
|
37
|
+
_TitleSwitcher_typeSurface.set(this, void 0);
|
|
38
|
+
__classPrivateFieldSet(this, _TitleSwitcher_currentClass, 'displayTitle', "f");
|
|
39
|
+
if (typeof switchStyle === 'string') {
|
|
40
|
+
// @ts-ignore Obnoxious error "type 'string' can't be used to index type 'TitleSwitcher'"
|
|
41
|
+
__classPrivateFieldSet(this, _TitleSwitcher_switchStyle, typeof this[switchStyle] === 'function' ? this[switchStyle] : this.typingEffect, "f");
|
|
42
|
+
} else {
|
|
43
|
+
__classPrivateFieldSet(this, _TitleSwitcher_switchStyle, switchStyle, "f");
|
|
44
|
+
}
|
|
45
|
+
__classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, titlesContainer, "f");
|
|
46
|
+
__classPrivateFieldSet(this, _TitleSwitcher_titles, [], "f");
|
|
47
|
+
const foundContainers = titlesContainer ? document.querySelectorAll(titlesContainer) : [];
|
|
48
|
+
if (foundContainers && foundContainers[0]) {
|
|
49
|
+
__classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, foundContainers[0], "f");
|
|
50
|
+
__classPrivateFieldSet(this, _TitleSwitcher_titles, foundContainers[0].children, "f");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
56
54
|
* Retrieve active
|
|
57
55
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/**
|
|
56
|
+
get active() {
|
|
57
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_active, "f");
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
63
60
|
* Retrieve currentClass
|
|
64
61
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
62
|
+
get currentClass() {
|
|
63
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
70
66
|
* Retrieve currentIndex
|
|
71
67
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
68
|
+
get currentIndex() {
|
|
69
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f");
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
77
72
|
* Retrieve delayEffect
|
|
78
73
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/**
|
|
74
|
+
get delayEffect() {
|
|
75
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_delayEffect, "f");
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
84
78
|
* Retrieve delaySwitch
|
|
85
79
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/**
|
|
80
|
+
get delaySwitch() {
|
|
81
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_delaySwitch, "f");
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
91
84
|
* Retrieve switchStyle
|
|
92
85
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
86
|
+
get switchStyle() {
|
|
87
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f");
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
98
90
|
* Retrieve list of titles DOM elements
|
|
99
91
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
/**
|
|
92
|
+
get titles() {
|
|
93
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_titles, "f");
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
105
96
|
* Retrieve typeSurface used
|
|
106
97
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
98
|
+
get typeSurface() {
|
|
99
|
+
return __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f");
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
112
102
|
* This is the function to begin the switching titles
|
|
113
103
|
* @param settings
|
|
114
104
|
* @param settings.delaySwitch
|
|
@@ -116,146 +106,143 @@
|
|
|
116
106
|
* @param settings.isRandom
|
|
117
107
|
* @param settings.immediatePause
|
|
118
108
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/**
|
|
109
|
+
startTitles({
|
|
110
|
+
delaySwitch = 400,
|
|
111
|
+
delayEffect = 200,
|
|
112
|
+
isRandom = false,
|
|
113
|
+
immediatePause = false
|
|
114
|
+
} = {}) {
|
|
115
|
+
const typeSurface = 'typeSurface';
|
|
116
|
+
__classPrivateFieldSet(this, _TitleSwitcher_delaySwitch, delaySwitch, "f");
|
|
117
|
+
__classPrivateFieldSet(this, _TitleSwitcher_delayEffect, delayEffect, "f");
|
|
118
|
+
__classPrivateFieldSet(this, _TitleSwitcher_isRandom, isRandom, "f");
|
|
119
|
+
__classPrivateFieldSet(this, _TitleSwitcher_active, !immediatePause, "f");
|
|
120
|
+
if (__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f") >= __classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length || typeof __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f") === 'string') {
|
|
121
|
+
__classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
|
|
122
|
+
console.warn(`No titles found for '${__classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f")}'`);
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
if (__classPrivateFieldGet(this, _TitleSwitcher_isRandom, "f")) {
|
|
126
|
+
__classPrivateFieldSet(this, _TitleSwitcher_currentIndex, Math.round(Math.random() * (__classPrivateFieldGet(this, _TitleSwitcher_titles, "f").length - 2)) + 1, "f");
|
|
127
|
+
}
|
|
128
|
+
const currentTitle = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")];
|
|
129
|
+
if (currentTitle.classList) {
|
|
130
|
+
currentTitle.classList.add(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
|
|
131
|
+
} else {
|
|
132
|
+
currentTitle.className += ' ' + __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
|
|
133
|
+
}
|
|
134
|
+
// @ts-ignore The Node returned is of type Element, or it should be
|
|
135
|
+
const typeElement = __classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[0].cloneNode(true);
|
|
136
|
+
if (typeElement.classList) {
|
|
137
|
+
typeElement.classList.add(typeSurface);
|
|
138
|
+
} else {
|
|
139
|
+
typeElement.className += ' ' + typeSurface;
|
|
140
|
+
}
|
|
141
|
+
if (typeElement.classList) {
|
|
142
|
+
typeElement.classList.remove(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f"));
|
|
143
|
+
} else {
|
|
144
|
+
typeElement.className = typeElement.className.replace(new RegExp('(^|\\b)' + typeElement.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
145
|
+
}
|
|
146
|
+
__classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").insertBefore(typeElement, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").firstChild);
|
|
147
|
+
// @ts-ignore the returned Node is a type of HTMLElement
|
|
148
|
+
__classPrivateFieldSet(this, _TitleSwitcher_typeSurface, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, "f").querySelectorAll('.' + typeSurface)[0], "f");
|
|
149
|
+
__classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").innerHTML = '';
|
|
150
|
+
__classPrivateFieldGet(this, _TitleSwitcher_typeSurface, "f").style.display = 'block';
|
|
151
|
+
Array.prototype.forEach.call(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f"), function (title) {
|
|
152
|
+
title.style.display = 'none';
|
|
153
|
+
});
|
|
154
|
+
// currentTitle, not this.#titles[this.#currentIndex]: inserting typeElement above shifted every later index by
|
|
155
|
+
// one, so #currentIndex (computed before that insert) no longer points at the title it was set for - switchTitle
|
|
156
|
+
// would remove the 'displayTitle' class from whatever title now happens to sit at that stale index instead of
|
|
157
|
+
// from currentTitle, leaving more than one title carrying the class at once.
|
|
158
|
+
return this.switchTitle(currentTitle, __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
172
161
|
* This is the function to pause between switching
|
|
173
162
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**
|
|
163
|
+
pause() {
|
|
164
|
+
__classPrivateFieldSet(this, _TitleSwitcher_active, false, "f");
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
179
167
|
* This is the function to resume after a pause.
|
|
180
168
|
*/
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/**
|
|
169
|
+
resume() {
|
|
170
|
+
if (!__classPrivateFieldGet(this, _TitleSwitcher_active, "f")) {
|
|
171
|
+
__classPrivateFieldSet(this, _TitleSwitcher_active, true, "f");
|
|
172
|
+
this.switchTitle(__classPrivateFieldGet(this, _TitleSwitcher_titles, "f")[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f")], __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, "f"), this);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
189
176
|
* This is the core function for switching titles
|
|
190
177
|
* @param currentTitle
|
|
191
178
|
* @param callBackFunction
|
|
192
179
|
* @param self
|
|
193
180
|
* @param runOnce
|
|
194
181
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
nextIndex = currentIndex < maxIndex ? currentIndex + 1 : 1
|
|
226
|
-
}
|
|
227
|
-
const nextTitle = __classPrivateFieldGet(self, _TitleSwitcher_titles, 'f')[nextIndex]
|
|
228
|
-
if (currentTitle.classList) {
|
|
229
|
-
currentTitle.classList.remove(self.currentClass)
|
|
230
|
-
} else {
|
|
231
|
-
currentTitle.className = currentTitle.className.replace(new RegExp('(^|\\b)' + currentTitle.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ')
|
|
232
|
-
}
|
|
233
|
-
if (nextTitle.classList) {
|
|
234
|
-
nextTitle.classList.add(self.currentClass)
|
|
235
|
-
} else {
|
|
236
|
-
nextTitle.className += ' ' + self.currentClass
|
|
237
|
-
}
|
|
238
|
-
return callBackFunction(nextTitle, runOnce ? () => self : self.switchTitle, self, runOnce)
|
|
182
|
+
switchTitle(currentTitle, callBackFunction, self, runOnce = false) {
|
|
183
|
+
self = self || this;
|
|
184
|
+
let currentIndex = 1;
|
|
185
|
+
const size = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f").length;
|
|
186
|
+
for (let i = 1; i < size; ++i) {
|
|
187
|
+
if (__classPrivateFieldGet(self, _TitleSwitcher_titles, "f")[i] === currentTitle) {
|
|
188
|
+
currentIndex = i;
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (!__classPrivateFieldGet(self, _TitleSwitcher_active, "f")) {
|
|
193
|
+
__classPrivateFieldSet(self, _TitleSwitcher_currentIndex, currentIndex, "f");
|
|
194
|
+
return self;
|
|
195
|
+
}
|
|
196
|
+
const maxIndex = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f").length - 1;
|
|
197
|
+
let nextIndex = 1;
|
|
198
|
+
if (maxIndex === 1) {
|
|
199
|
+
return callBackFunction(currentTitle, runOnce ? () => self : self.switchTitle, self, runOnce);
|
|
200
|
+
}
|
|
201
|
+
if (__classPrivateFieldGet(self, _TitleSwitcher_isRandom, "f")) {
|
|
202
|
+
if (!self.typeSurface.textContent.trim()) {
|
|
203
|
+
currentIndex = -1;
|
|
204
|
+
}
|
|
205
|
+
do {
|
|
206
|
+
nextIndex = Math.round(Math.random() * (maxIndex - 1)) + 1;
|
|
207
|
+
} while (nextIndex === currentIndex);
|
|
208
|
+
} else {
|
|
209
|
+
if (!self.typeSurface.textContent.trim()) {
|
|
210
|
+
currentIndex = maxIndex;
|
|
239
211
|
}
|
|
212
|
+
nextIndex = currentIndex < maxIndex ? currentIndex + 1 : 1;
|
|
213
|
+
}
|
|
214
|
+
const nextTitle = __classPrivateFieldGet(self, _TitleSwitcher_titles, "f")[nextIndex];
|
|
215
|
+
if (currentTitle.classList) {
|
|
216
|
+
currentTitle.classList.remove(self.currentClass);
|
|
217
|
+
} else {
|
|
218
|
+
currentTitle.className = currentTitle.className.replace(new RegExp('(^|\\b)' + currentTitle.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
219
|
+
}
|
|
220
|
+
if (nextTitle.classList) {
|
|
221
|
+
nextTitle.classList.add(self.currentClass);
|
|
222
|
+
} else {
|
|
223
|
+
nextTitle.className += ' ' + self.currentClass;
|
|
240
224
|
}
|
|
241
|
-
|
|
242
|
-
|
|
225
|
+
return callBackFunction(nextTitle, runOnce ? () => self : self.switchTitle, self, runOnce);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
_TitleSwitcher_active = new WeakMap(), _TitleSwitcher_currentClass = new WeakMap(), _TitleSwitcher_currentIndex = new WeakMap(), _TitleSwitcher_delayEffect = new WeakMap(), _TitleSwitcher_delaySwitch = new WeakMap(), _TitleSwitcher_isRandom = new WeakMap(), _TitleSwitcher_titles = new WeakMap(), _TitleSwitcher_titlesContainer = new WeakMap(), _TitleSwitcher_switchStyle = new WeakMap(), _TitleSwitcher_typeSurface = new WeakMap();
|
|
229
|
+
/**
|
|
243
230
|
* This is a helper function to improve the default 'typingEffect'
|
|
244
231
|
* @param blinkOn
|
|
245
232
|
* @param self
|
|
246
233
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
234
|
+
TitleSwitcher.prototype.cursorBlink = (blinkOn, self) => {
|
|
235
|
+
// display cursor effect
|
|
236
|
+
self = self || void 0;
|
|
237
|
+
if (blinkOn) {
|
|
238
|
+
self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\|| *(<\/span>)?$/, '$1').trim();
|
|
239
|
+
self.typeSurface.innerHTML = self.typeSurface.innerHTML + '<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">|</span>';
|
|
240
|
+
} else {
|
|
241
|
+
self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\|(<\/span>)$/, ' $1');
|
|
242
|
+
}
|
|
243
|
+
return self;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
259
246
|
* Count how many typed "units" domObject's text takes to fully reveal via typedPartialHtml - one unit per
|
|
260
247
|
* non-whitespace character, but a whole run of consecutive whitespace (most often the newline and indentation
|
|
261
248
|
* left behind where a title's HTML source wraps onto a new line) counts as a single unit, matching how many
|
|
@@ -264,29 +251,29 @@
|
|
|
264
251
|
* in between - not a slower typing speed, but a real stall followed by the next word suddenly catching up.
|
|
265
252
|
* @param domObject
|
|
266
253
|
*/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
} else {
|
|
279
|
-
++position
|
|
280
|
-
}
|
|
281
|
-
++length
|
|
254
|
+
const typedLength = domObject => {
|
|
255
|
+
let length = 0;
|
|
256
|
+
Array.prototype.forEach.call(domObject.childNodes, child => {
|
|
257
|
+
if (child.nodeType === 3) {
|
|
258
|
+
const text = child.textContent || '';
|
|
259
|
+
let position = 0;
|
|
260
|
+
while (position < text.length) {
|
|
261
|
+
if (/\s/.test(text[position])) {
|
|
262
|
+
while (position < text.length && /\s/.test(text[position])) {
|
|
263
|
+
++position;
|
|
282
264
|
}
|
|
283
|
-
} else
|
|
284
|
-
|
|
265
|
+
} else {
|
|
266
|
+
++position;
|
|
285
267
|
}
|
|
286
|
-
|
|
287
|
-
|
|
268
|
+
++length;
|
|
269
|
+
}
|
|
270
|
+
} else if (child.nodeType === 1) {
|
|
271
|
+
length += typedLength(child);
|
|
288
272
|
}
|
|
289
|
-
|
|
273
|
+
});
|
|
274
|
+
return length;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
290
277
|
* Build the markup for the first `remaining` typed units of domObject's text (see typedLength), keeping
|
|
291
278
|
* whichever of its nested tags (em, strong, ...) that content falls under. This lets the typing effect reveal
|
|
292
279
|
* a title's formatting as each character is typed, instead of only applying it once the whole tag has been
|
|
@@ -294,45 +281,45 @@
|
|
|
294
281
|
* @param domObject
|
|
295
282
|
* @param remaining
|
|
296
283
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
taken += text.slice(runStart, position)
|
|
313
|
-
} else {
|
|
314
|
-
taken += text[position]
|
|
315
|
-
++position
|
|
316
|
-
}
|
|
317
|
-
--remaining
|
|
284
|
+
const typedPartialHtml = (domObject, remaining) => {
|
|
285
|
+
let html = '';
|
|
286
|
+
const children = Array.prototype.slice.call(domObject.childNodes);
|
|
287
|
+
for (let i = 0; i < children.length && remaining > 0; ++i) {
|
|
288
|
+
const child = children[i];
|
|
289
|
+
if (child.nodeType === 3) {
|
|
290
|
+
const text = child.textContent || '';
|
|
291
|
+
let position = 0;
|
|
292
|
+
let taken = '';
|
|
293
|
+
while (position < text.length && remaining > 0) {
|
|
294
|
+
if (/\s/.test(text[position])) {
|
|
295
|
+
const runStart = position;
|
|
296
|
+
while (position < text.length && /\s/.test(text[position])) {
|
|
297
|
+
++position;
|
|
318
298
|
}
|
|
319
|
-
|
|
320
|
-
} else
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
const wrapper = child.cloneNode(false)
|
|
324
|
-
wrapper.innerHTML = result.html
|
|
325
|
-
html += wrapper.outerHTML
|
|
326
|
-
}
|
|
327
|
-
remaining = result.remaining
|
|
299
|
+
taken += text.slice(runStart, position);
|
|
300
|
+
} else {
|
|
301
|
+
taken += text[position];
|
|
302
|
+
++position;
|
|
328
303
|
}
|
|
304
|
+
--remaining;
|
|
329
305
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
306
|
+
html += taken;
|
|
307
|
+
} else if (child.nodeType === 1) {
|
|
308
|
+
const result = typedPartialHtml(child, remaining);
|
|
309
|
+
if (result.html) {
|
|
310
|
+
const wrapper = child.cloneNode(false);
|
|
311
|
+
wrapper.innerHTML = result.html;
|
|
312
|
+
html += wrapper.outerHTML;
|
|
333
313
|
}
|
|
314
|
+
remaining = result.remaining;
|
|
334
315
|
}
|
|
335
|
-
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
html,
|
|
319
|
+
remaining
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
336
323
|
* This is the default and example of an effect being implemented when Titles are switched
|
|
337
324
|
* These functions take the currentElement in focus, the switchTitle function as a callback
|
|
338
325
|
* and an instance of the TitleSwitcher
|
|
@@ -341,340 +328,331 @@
|
|
|
341
328
|
* @param self
|
|
342
329
|
* @param runOnce
|
|
343
330
|
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
331
|
+
TitleSwitcher.prototype.typingEffect = (domObject, callBackFunction, self, runOnce = false) => {
|
|
332
|
+
self = self || void 0;
|
|
333
|
+
const size = self.titles.length;
|
|
334
|
+
let currentIndex = 0;
|
|
335
|
+
for (let i = 1; i < size; ++i) {
|
|
336
|
+
if (self.titles[i] === domObject) {
|
|
337
|
+
currentIndex = i;
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
domObject = domObject || self.titles[currentIndex + 1];
|
|
342
|
+
let blinkOn = true;
|
|
343
|
+
const numBlinks = 4;
|
|
344
|
+
if (self.typeSurface.hasAttribute('style')) {
|
|
345
|
+
self.typeSurface.removeAttribute('style');
|
|
346
|
+
}
|
|
347
|
+
if (domObject.hasAttribute('style')) {
|
|
348
|
+
self.typeSurface.setAttribute('style', domObject.getAttribute('style'));
|
|
349
|
+
}
|
|
350
|
+
// If we copied the title style, then display:none is set, so we need to ensure the surface is display:block
|
|
351
|
+
self.typeSurface.innerHTML = '';
|
|
352
|
+
self.typeSurface.style.display = 'block';
|
|
353
|
+
// Initialize with a few cursor blinks
|
|
354
|
+
for (let i = 0; i < numBlinks; ++i) {
|
|
355
|
+
setTimeout(() => {
|
|
356
|
+
self.cursorBlink(blinkOn, self);
|
|
357
|
+
blinkOn = !blinkOn;
|
|
358
|
+
}, i * self.delaySwitch);
|
|
359
|
+
}
|
|
360
|
+
setTimeout(() => {
|
|
361
|
+
// Empty the surface, and display the cursor (cursor is always solid while typing / not flashing)
|
|
362
|
+
self.typeSurface.innerHTML = '';
|
|
363
|
+
self.cursorBlink(true, self);
|
|
364
|
+
// Copy each letter from the current title, keeping whichever tags (em, strong, ...) it falls under
|
|
365
|
+
const totalLength = typedLength(domObject);
|
|
366
|
+
for (let i = 0; i < totalLength; ++i) {
|
|
373
367
|
setTimeout(() => {
|
|
374
|
-
//
|
|
375
|
-
|
|
376
|
-
self.
|
|
377
|
-
//
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
// Run the blinking cursor two times the regular time in order to let the text be readable before switching
|
|
389
|
-
for (let j = 0; j < numBlinks * 2; ++j) {
|
|
390
|
-
setTimeout(() => {
|
|
391
|
-
--j
|
|
392
|
-
self.cursorBlink(blinkOn, self)
|
|
393
|
-
if (j === 0) {
|
|
394
|
-
callBackFunction(domObject, runOnce ? () => self : self.switchStyle, self, runOnce)
|
|
395
|
-
}
|
|
396
|
-
}, j * self.delaySwitch)
|
|
368
|
+
// Reveal one more character, wrapped in whatever tags its position in the title falls under,
|
|
369
|
+
// then append a formatted cursor on the end
|
|
370
|
+
self.typeSurface.innerHTML = typedPartialHtml(domObject, i + 1).html + '<span style="font-weight: normal; color: black; text-decoration: none">|</span>';
|
|
371
|
+
// If the text content equals the title content with a cursor appended then we reached the end.
|
|
372
|
+
if (domObject.textContent + '|' === self.typeSurface.textContent) {
|
|
373
|
+
// Replace html with old html on last letter, so we get all the html formatting applied
|
|
374
|
+
self.typeSurface.innerHTML = domObject.innerHTML + '<span style="font-weight: normal; color: black; text-decoration: none">|</span>';
|
|
375
|
+
// Run the blinking cursor two times the regular time in order to let the text be readable before switching
|
|
376
|
+
for (let j = 0; j < numBlinks * 2; ++j) {
|
|
377
|
+
setTimeout(() => {
|
|
378
|
+
--j;
|
|
379
|
+
self.cursorBlink(blinkOn, self);
|
|
380
|
+
if (j === 0) {
|
|
381
|
+
callBackFunction(domObject, runOnce ? () => self : self.switchStyle, self, runOnce);
|
|
397
382
|
}
|
|
398
|
-
}
|
|
399
|
-
}, i * self.delayEffect)
|
|
400
|
-
}
|
|
401
|
-
}, numBlinks * self.delaySwitch)
|
|
402
|
-
return self
|
|
403
|
-
}
|
|
404
|
-
exports.default = TitleSwitcher
|
|
405
|
-
if (void 0) {
|
|
406
|
-
// @ts-ignore 'this' is used in node as the global, and the key CAN be referenced by string
|
|
407
|
-
(void 0).TitleSwitcher = TitleSwitcher
|
|
408
|
-
} else if (typeof window !== 'undefined') {
|
|
409
|
-
// @ts-ignore YES, we can use a string to add a property to Window
|
|
410
|
-
window.TitleSwitcher = TitleSwitcher
|
|
411
|
-
}
|
|
412
|
-
}, { 'core-js/modules/esnext.weak-map.delete-all.js': 69 }],
|
|
413
|
-
2: [function (require, module, exports) {
|
|
414
|
-
'use strict'
|
|
415
|
-
const isCallable = require('../internals/is-callable')
|
|
416
|
-
const tryToString = require('../internals/try-to-string')
|
|
417
|
-
|
|
418
|
-
const $TypeError = TypeError
|
|
419
|
-
|
|
420
|
-
// `Assert: IsCallable(argument) is true`
|
|
421
|
-
module.exports = function (argument) {
|
|
422
|
-
if (isCallable(argument)) return argument
|
|
423
|
-
throw new $TypeError(tryToString(argument) + ' is not a function')
|
|
424
|
-
}
|
|
425
|
-
}, { '../internals/is-callable': 32, '../internals/try-to-string': 62 }],
|
|
426
|
-
3: [function (require, module, exports) {
|
|
427
|
-
'use strict'
|
|
428
|
-
const has = require('../internals/weak-map-helpers').has
|
|
429
|
-
|
|
430
|
-
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
431
|
-
module.exports = function (it) {
|
|
432
|
-
has(it)
|
|
433
|
-
return it
|
|
434
|
-
}
|
|
435
|
-
}, { '../internals/weak-map-helpers': 67 }],
|
|
436
|
-
4: [function (require, module, exports) {
|
|
437
|
-
'use strict'
|
|
438
|
-
const isObject = require('../internals/is-object')
|
|
439
|
-
|
|
440
|
-
const $String = String
|
|
441
|
-
const $TypeError = TypeError
|
|
442
|
-
|
|
443
|
-
// `Assert: Type(argument) is Object`
|
|
444
|
-
module.exports = function (argument) {
|
|
445
|
-
if (isObject(argument)) return argument
|
|
446
|
-
throw new $TypeError($String(argument) + ' is not an object')
|
|
447
|
-
}
|
|
448
|
-
}, { '../internals/is-object': 35 }],
|
|
449
|
-
5: [function (require, module, exports) {
|
|
450
|
-
'use strict'
|
|
451
|
-
const toIndexedObject = require('../internals/to-indexed-object')
|
|
452
|
-
const toAbsoluteIndex = require('../internals/to-absolute-index')
|
|
453
|
-
const lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
454
|
-
|
|
455
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
456
|
-
const createMethod = function (IS_INCLUDES) {
|
|
457
|
-
return function ($this, el, fromIndex) {
|
|
458
|
-
const O = toIndexedObject($this)
|
|
459
|
-
const length = lengthOfArrayLike(O)
|
|
460
|
-
if (length === 0) return !IS_INCLUDES && -1
|
|
461
|
-
let index = toAbsoluteIndex(fromIndex, length)
|
|
462
|
-
let value
|
|
463
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
464
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
465
|
-
if (IS_INCLUDES && el !== el) {
|
|
466
|
-
while (length > index) {
|
|
467
|
-
value = O[index++]
|
|
468
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
469
|
-
if (value !== value) return true
|
|
470
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
471
|
-
}
|
|
472
|
-
} else {
|
|
473
|
-
for (;length > index; index++) {
|
|
474
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0
|
|
383
|
+
}, j * self.delaySwitch);
|
|
475
384
|
}
|
|
476
|
-
} return !IS_INCLUDES && -1
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
module.exports = {
|
|
481
|
-
// `Array.prototype.includes` method
|
|
482
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
483
|
-
includes: createMethod(true),
|
|
484
|
-
// `Array.prototype.indexOf` method
|
|
485
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
486
|
-
indexOf: createMethod(false)
|
|
487
|
-
}
|
|
488
|
-
}, { '../internals/length-of-array-like': 38, '../internals/to-absolute-index': 55, '../internals/to-indexed-object': 56 }],
|
|
489
|
-
6: [function (require, module, exports) {
|
|
490
|
-
'use strict'
|
|
491
|
-
const uncurryThis = require('../internals/function-uncurry-this')
|
|
492
|
-
|
|
493
|
-
const toString = uncurryThis({}.toString)
|
|
494
|
-
const stringSlice = uncurryThis(''.slice)
|
|
495
|
-
|
|
496
|
-
module.exports = function (it) {
|
|
497
|
-
return stringSlice(toString(it), 8, -1)
|
|
498
|
-
}
|
|
499
|
-
}, { '../internals/function-uncurry-this': 22 }],
|
|
500
|
-
7: [function (require, module, exports) {
|
|
501
|
-
'use strict'
|
|
502
|
-
const hasOwn = require('../internals/has-own-property')
|
|
503
|
-
const ownKeys = require('../internals/own-keys')
|
|
504
|
-
const getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor')
|
|
505
|
-
const definePropertyModule = require('../internals/object-define-property')
|
|
506
|
-
|
|
507
|
-
module.exports = function (target, source, exceptions) {
|
|
508
|
-
const keys = ownKeys(source)
|
|
509
|
-
const defineProperty = definePropertyModule.f
|
|
510
|
-
const getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f
|
|
511
|
-
for (let i = 0; i < keys.length; i++) {
|
|
512
|
-
const key = keys[i]
|
|
513
|
-
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
514
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key))
|
|
515
385
|
}
|
|
516
|
-
}
|
|
386
|
+
}, i * self.delayEffect);
|
|
517
387
|
}
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}, {}],
|
|
628
|
-
15: [function (require, module, exports) {
|
|
629
|
-
'use strict'
|
|
630
|
-
const globalThis = require('../internals/global-this')
|
|
631
|
-
|
|
632
|
-
const navigator = globalThis.navigator
|
|
633
|
-
const userAgent = navigator && navigator.userAgent
|
|
634
|
-
|
|
635
|
-
module.exports = userAgent ? String(userAgent) : ''
|
|
636
|
-
}, { '../internals/global-this': 25 }],
|
|
637
|
-
16: [function (require, module, exports) {
|
|
638
|
-
'use strict'
|
|
639
|
-
const globalThis = require('../internals/global-this')
|
|
640
|
-
const userAgent = require('../internals/environment-user-agent')
|
|
641
|
-
|
|
642
|
-
const process = globalThis.process
|
|
643
|
-
const Deno = globalThis.Deno
|
|
644
|
-
const versions = process && process.versions || Deno && Deno.version
|
|
645
|
-
const v8 = versions && versions.v8
|
|
646
|
-
let match, version
|
|
647
|
-
|
|
648
|
-
if (v8) {
|
|
649
|
-
match = v8.split('.')
|
|
650
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
651
|
-
// but their correct versions are not interesting for us
|
|
652
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1])
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
656
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
657
|
-
if (!version && userAgent) {
|
|
658
|
-
match = userAgent.match(/Edge\/(\d+)/)
|
|
659
|
-
if (!match || match[1] >= 74) {
|
|
660
|
-
match = userAgent.match(/Chrome\/(\d+)/)
|
|
661
|
-
if (match) version = +match[1]
|
|
662
|
-
}
|
|
388
|
+
}, numBlinks * self.delaySwitch);
|
|
389
|
+
return self;
|
|
390
|
+
};
|
|
391
|
+
exports.default = TitleSwitcher;
|
|
392
|
+
if (void 0) {
|
|
393
|
+
// @ts-ignore 'this' is used in node as the global, and the key CAN be referenced by string
|
|
394
|
+
(void 0)['TitleSwitcher'] = TitleSwitcher;
|
|
395
|
+
} else if (typeof window !== 'undefined') {
|
|
396
|
+
// @ts-ignore YES, we can use a string to add a property to Window
|
|
397
|
+
window['TitleSwitcher'] = TitleSwitcher;
|
|
398
|
+
}
|
|
399
|
+
},{"core-js/modules/esnext.weak-map.delete-all.js":69}],2:[function(require,module,exports){
|
|
400
|
+
'use strict';
|
|
401
|
+
var isCallable = require('../internals/is-callable');
|
|
402
|
+
var tryToString = require('../internals/try-to-string');
|
|
403
|
+
|
|
404
|
+
var $TypeError = TypeError;
|
|
405
|
+
|
|
406
|
+
// `Assert: IsCallable(argument) is true`
|
|
407
|
+
module.exports = function (argument) {
|
|
408
|
+
if (isCallable(argument)) return argument;
|
|
409
|
+
throw new $TypeError(tryToString(argument) + ' is not a function');
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
},{"../internals/is-callable":32,"../internals/try-to-string":62}],3:[function(require,module,exports){
|
|
413
|
+
'use strict';
|
|
414
|
+
var has = require('../internals/weak-map-helpers').has;
|
|
415
|
+
|
|
416
|
+
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
417
|
+
module.exports = function (it) {
|
|
418
|
+
has(it);
|
|
419
|
+
return it;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
},{"../internals/weak-map-helpers":67}],4:[function(require,module,exports){
|
|
423
|
+
'use strict';
|
|
424
|
+
var isObject = require('../internals/is-object');
|
|
425
|
+
|
|
426
|
+
var $String = String;
|
|
427
|
+
var $TypeError = TypeError;
|
|
428
|
+
|
|
429
|
+
// `Assert: Type(argument) is Object`
|
|
430
|
+
module.exports = function (argument) {
|
|
431
|
+
if (isObject(argument)) return argument;
|
|
432
|
+
throw new $TypeError($String(argument) + ' is not an object');
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
},{"../internals/is-object":35}],5:[function(require,module,exports){
|
|
436
|
+
'use strict';
|
|
437
|
+
var toIndexedObject = require('../internals/to-indexed-object');
|
|
438
|
+
var toAbsoluteIndex = require('../internals/to-absolute-index');
|
|
439
|
+
var lengthOfArrayLike = require('../internals/length-of-array-like');
|
|
440
|
+
|
|
441
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
442
|
+
var createMethod = function (IS_INCLUDES) {
|
|
443
|
+
return function ($this, el, fromIndex) {
|
|
444
|
+
var O = toIndexedObject($this);
|
|
445
|
+
var length = lengthOfArrayLike(O);
|
|
446
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
447
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
448
|
+
var value;
|
|
449
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
450
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
451
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
452
|
+
value = O[index++];
|
|
453
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
454
|
+
if (value !== value) return true;
|
|
455
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
456
|
+
} else for (;length > index; index++) {
|
|
457
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
458
|
+
} return !IS_INCLUDES && -1;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
module.exports = {
|
|
463
|
+
// `Array.prototype.includes` method
|
|
464
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
465
|
+
includes: createMethod(true),
|
|
466
|
+
// `Array.prototype.indexOf` method
|
|
467
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
468
|
+
indexOf: createMethod(false)
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
},{"../internals/length-of-array-like":38,"../internals/to-absolute-index":55,"../internals/to-indexed-object":56}],6:[function(require,module,exports){
|
|
472
|
+
'use strict';
|
|
473
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
474
|
+
|
|
475
|
+
var toString = uncurryThis({}.toString);
|
|
476
|
+
var stringSlice = uncurryThis(''.slice);
|
|
477
|
+
|
|
478
|
+
module.exports = function (it) {
|
|
479
|
+
return stringSlice(toString(it), 8, -1);
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
},{"../internals/function-uncurry-this":22}],7:[function(require,module,exports){
|
|
483
|
+
'use strict';
|
|
484
|
+
var hasOwn = require('../internals/has-own-property');
|
|
485
|
+
var ownKeys = require('../internals/own-keys');
|
|
486
|
+
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
|
|
487
|
+
var definePropertyModule = require('../internals/object-define-property');
|
|
488
|
+
|
|
489
|
+
module.exports = function (target, source, exceptions) {
|
|
490
|
+
var keys = ownKeys(source);
|
|
491
|
+
var defineProperty = definePropertyModule.f;
|
|
492
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
493
|
+
for (var i = 0; i < keys.length; i++) {
|
|
494
|
+
var key = keys[i];
|
|
495
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
496
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
663
497
|
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
},{"../internals/has-own-property":26,"../internals/object-define-property":41,"../internals/object-get-own-property-descriptor":42,"../internals/own-keys":49}],8:[function(require,module,exports){
|
|
502
|
+
'use strict';
|
|
503
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
504
|
+
var definePropertyModule = require('../internals/object-define-property');
|
|
505
|
+
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
506
|
+
|
|
507
|
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
508
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
509
|
+
} : function (object, key, value) {
|
|
510
|
+
object[key] = value;
|
|
511
|
+
return object;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/object-define-property":41}],9:[function(require,module,exports){
|
|
515
|
+
'use strict';
|
|
516
|
+
module.exports = function (bitmap, value) {
|
|
517
|
+
return {
|
|
518
|
+
enumerable: !(bitmap & 1),
|
|
519
|
+
configurable: !(bitmap & 2),
|
|
520
|
+
writable: !(bitmap & 4),
|
|
521
|
+
value: value
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
},{}],10:[function(require,module,exports){
|
|
526
|
+
'use strict';
|
|
527
|
+
var isCallable = require('../internals/is-callable');
|
|
528
|
+
var definePropertyModule = require('../internals/object-define-property');
|
|
529
|
+
var makeBuiltIn = require('../internals/make-built-in');
|
|
530
|
+
var defineGlobalProperty = require('../internals/define-global-property');
|
|
531
|
+
|
|
532
|
+
module.exports = function (O, key, value, options) {
|
|
533
|
+
if (!options) options = {};
|
|
534
|
+
var simple = options.enumerable;
|
|
535
|
+
var name = options.name !== undefined ? options.name : key;
|
|
536
|
+
if (isCallable(value)) makeBuiltIn(value, name, options);
|
|
537
|
+
if (options.global) {
|
|
538
|
+
if (simple) O[key] = value;
|
|
539
|
+
else defineGlobalProperty(key, value);
|
|
540
|
+
} else {
|
|
541
|
+
try {
|
|
542
|
+
if (!options.unsafe) delete O[key];
|
|
543
|
+
else if (O[key]) simple = true;
|
|
544
|
+
} catch (error) { /* empty */ }
|
|
545
|
+
if (simple) O[key] = value;
|
|
546
|
+
else definePropertyModule.f(O, key, {
|
|
547
|
+
value: value,
|
|
548
|
+
enumerable: false,
|
|
549
|
+
configurable: !options.nonConfigurable,
|
|
550
|
+
writable: !options.nonWritable
|
|
551
|
+
});
|
|
552
|
+
} return O;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
},{"../internals/define-global-property":11,"../internals/is-callable":32,"../internals/make-built-in":39,"../internals/object-define-property":41}],11:[function(require,module,exports){
|
|
556
|
+
'use strict';
|
|
557
|
+
var globalThis = require('../internals/global-this');
|
|
558
|
+
|
|
559
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
560
|
+
var defineProperty = Object.defineProperty;
|
|
561
|
+
|
|
562
|
+
module.exports = function (key, value) {
|
|
563
|
+
try {
|
|
564
|
+
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
|
|
565
|
+
} catch (error) {
|
|
566
|
+
globalThis[key] = value;
|
|
567
|
+
} return value;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
},{"../internals/global-this":25}],12:[function(require,module,exports){
|
|
571
|
+
'use strict';
|
|
572
|
+
var fails = require('../internals/fails');
|
|
573
|
+
|
|
574
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
575
|
+
module.exports = !fails(function () {
|
|
576
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
577
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
},{"../internals/fails":18}],13:[function(require,module,exports){
|
|
581
|
+
'use strict';
|
|
582
|
+
var globalThis = require('../internals/global-this');
|
|
583
|
+
var isObject = require('../internals/is-object');
|
|
584
|
+
|
|
585
|
+
var document = globalThis.document;
|
|
586
|
+
// typeof document.createElement is 'object' in old IE
|
|
587
|
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
588
|
+
|
|
589
|
+
module.exports = function (it) {
|
|
590
|
+
return EXISTS ? document.createElement(it) : {};
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
},{"../internals/global-this":25,"../internals/is-object":35}],14:[function(require,module,exports){
|
|
594
|
+
'use strict';
|
|
595
|
+
// IE8- don't enum bug keys
|
|
596
|
+
module.exports = [
|
|
597
|
+
'constructor',
|
|
598
|
+
'hasOwnProperty',
|
|
599
|
+
'isPrototypeOf',
|
|
600
|
+
'propertyIsEnumerable',
|
|
601
|
+
'toLocaleString',
|
|
602
|
+
'toString',
|
|
603
|
+
'valueOf'
|
|
604
|
+
];
|
|
605
|
+
|
|
606
|
+
},{}],15:[function(require,module,exports){
|
|
607
|
+
'use strict';
|
|
608
|
+
var globalThis = require('../internals/global-this');
|
|
609
|
+
|
|
610
|
+
var navigator = globalThis.navigator;
|
|
611
|
+
var userAgent = navigator && navigator.userAgent;
|
|
612
|
+
|
|
613
|
+
module.exports = userAgent ? String(userAgent) : '';
|
|
614
|
+
|
|
615
|
+
},{"../internals/global-this":25}],16:[function(require,module,exports){
|
|
616
|
+
'use strict';
|
|
617
|
+
var globalThis = require('../internals/global-this');
|
|
618
|
+
var userAgent = require('../internals/environment-user-agent');
|
|
619
|
+
|
|
620
|
+
var process = globalThis.process;
|
|
621
|
+
var Deno = globalThis.Deno;
|
|
622
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
623
|
+
var v8 = versions && versions.v8;
|
|
624
|
+
var match, version;
|
|
625
|
+
|
|
626
|
+
if (v8) {
|
|
627
|
+
match = v8.split('.');
|
|
628
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
629
|
+
// but their correct versions are not interesting for us
|
|
630
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
634
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
635
|
+
if (!version && userAgent) {
|
|
636
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
637
|
+
if (!match || match[1] >= 74) {
|
|
638
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
639
|
+
if (match) version = +match[1];
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
module.exports = version;
|
|
644
|
+
|
|
645
|
+
},{"../internals/environment-user-agent":15,"../internals/global-this":25}],17:[function(require,module,exports){
|
|
646
|
+
'use strict';
|
|
647
|
+
var globalThis = require('../internals/global-this');
|
|
648
|
+
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
649
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
650
|
+
var defineBuiltIn = require('../internals/define-built-in');
|
|
651
|
+
var defineGlobalProperty = require('../internals/define-global-property');
|
|
652
|
+
var copyConstructorProperties = require('../internals/copy-constructor-properties');
|
|
653
|
+
var isForced = require('../internals/is-forced');
|
|
654
|
+
|
|
655
|
+
/*
|
|
678
656
|
options.target - name of the target object
|
|
679
657
|
options.global - target is the global object
|
|
680
658
|
options.stat - export as static methods of target
|
|
@@ -689,925 +667,901 @@
|
|
|
689
667
|
options.dontCallGetSet - prevent calling a getter on target
|
|
690
668
|
options.name - the .name of the function if it does not match the key
|
|
691
669
|
*/
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
copyConstructorProperties(sourceProperty, targetProperty)
|
|
716
|
-
}
|
|
717
|
-
// add a flag to not completely full polyfills
|
|
718
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
719
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true)
|
|
720
|
-
}
|
|
721
|
-
defineBuiltIn(target, key, sourceProperty, options)
|
|
722
|
-
}
|
|
723
|
-
}
|
|
670
|
+
module.exports = function (options, source) {
|
|
671
|
+
var TARGET = options.target;
|
|
672
|
+
var GLOBAL = options.global;
|
|
673
|
+
var STATIC = options.stat;
|
|
674
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
675
|
+
if (GLOBAL) {
|
|
676
|
+
target = globalThis;
|
|
677
|
+
} else if (STATIC) {
|
|
678
|
+
target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
|
|
679
|
+
} else {
|
|
680
|
+
target = globalThis[TARGET] && globalThis[TARGET].prototype;
|
|
681
|
+
}
|
|
682
|
+
if (target) for (key in source) {
|
|
683
|
+
sourceProperty = source[key];
|
|
684
|
+
if (options.dontCallGetSet) {
|
|
685
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
686
|
+
targetProperty = descriptor && descriptor.value;
|
|
687
|
+
} else targetProperty = target[key];
|
|
688
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
689
|
+
// contained in target
|
|
690
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
691
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
692
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
724
693
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
module.exports = function (exec) {
|
|
729
|
-
try {
|
|
730
|
-
return !!exec()
|
|
731
|
-
} catch (error) {
|
|
732
|
-
return true
|
|
733
|
-
}
|
|
694
|
+
// add a flag to not completely full polyfills
|
|
695
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
696
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
734
697
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
698
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
},{"../internals/copy-constructor-properties":7,"../internals/create-non-enumerable-property":8,"../internals/define-built-in":10,"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-forced":33,"../internals/object-get-own-property-descriptor":42}],18:[function(require,module,exports){
|
|
703
|
+
'use strict';
|
|
704
|
+
module.exports = function (exec) {
|
|
705
|
+
try {
|
|
706
|
+
return !!exec();
|
|
707
|
+
} catch (error) {
|
|
708
|
+
return true;
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
},{}],19:[function(require,module,exports){
|
|
713
|
+
'use strict';
|
|
714
|
+
var fails = require('../internals/fails');
|
|
715
|
+
|
|
716
|
+
module.exports = !fails(function () {
|
|
717
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
718
|
+
var test = function () { /* empty */ }.bind();
|
|
719
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
720
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
},{"../internals/fails":18}],20:[function(require,module,exports){
|
|
724
|
+
'use strict';
|
|
725
|
+
var NATIVE_BIND = require('../internals/function-bind-native');
|
|
726
|
+
|
|
727
|
+
var call = Function.prototype.call;
|
|
728
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
729
|
+
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
730
|
+
return call.apply(call, arguments);
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
},{"../internals/function-bind-native":19}],21:[function(require,module,exports){
|
|
734
|
+
'use strict';
|
|
735
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
736
|
+
var hasOwn = require('../internals/has-own-property');
|
|
737
|
+
|
|
738
|
+
var FunctionPrototype = Function.prototype;
|
|
739
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
740
|
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
741
|
+
|
|
742
|
+
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
743
|
+
// additional protection from minified / mangled / dropped function names
|
|
744
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
745
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
746
|
+
|
|
747
|
+
module.exports = {
|
|
748
|
+
EXISTS: EXISTS,
|
|
749
|
+
PROPER: PROPER,
|
|
750
|
+
CONFIGURABLE: CONFIGURABLE
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
},{"../internals/descriptors":12,"../internals/has-own-property":26}],22:[function(require,module,exports){
|
|
754
|
+
'use strict';
|
|
755
|
+
var NATIVE_BIND = require('../internals/function-bind-native');
|
|
756
|
+
|
|
757
|
+
var FunctionPrototype = Function.prototype;
|
|
758
|
+
var call = FunctionPrototype.call;
|
|
759
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
760
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
761
|
+
|
|
762
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
763
|
+
return function () {
|
|
764
|
+
return call.apply(fn, arguments);
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
},{"../internals/function-bind-native":19}],23:[function(require,module,exports){
|
|
769
|
+
'use strict';
|
|
770
|
+
var globalThis = require('../internals/global-this');
|
|
771
|
+
var isCallable = require('../internals/is-callable');
|
|
772
|
+
|
|
773
|
+
var aFunction = function (argument) {
|
|
774
|
+
return isCallable(argument) ? argument : undefined;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
module.exports = function (namespace, method) {
|
|
778
|
+
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
},{"../internals/global-this":25,"../internals/is-callable":32}],24:[function(require,module,exports){
|
|
782
|
+
'use strict';
|
|
783
|
+
var aCallable = require('../internals/a-callable');
|
|
784
|
+
var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
|
785
|
+
|
|
786
|
+
// `GetMethod` abstract operation
|
|
787
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
788
|
+
module.exports = function (V, P) {
|
|
789
|
+
var func = V[P];
|
|
790
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
},{"../internals/a-callable":2,"../internals/is-null-or-undefined":34}],25:[function(require,module,exports){
|
|
794
|
+
(function (global){(function (){
|
|
795
|
+
'use strict';
|
|
796
|
+
var check = function (it) {
|
|
797
|
+
return it && it.Math === Math && it;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
801
|
+
module.exports =
|
|
831
802
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
832
|
-
check(typeof globalThis
|
|
833
|
-
check(typeof window
|
|
803
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
804
|
+
check(typeof window == 'object' && window) ||
|
|
834
805
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
835
|
-
check(typeof self
|
|
836
|
-
check(typeof global
|
|
837
|
-
check(typeof this
|
|
806
|
+
check(typeof self == 'object' && self) ||
|
|
807
|
+
check(typeof global == 'object' && global) ||
|
|
808
|
+
check(typeof this == 'object' && this) ||
|
|
838
809
|
// eslint-disable-next-line no-new-func -- fallback
|
|
839
|
-
(function () { return this })() || Function('return this')()
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
1170
|
-
const current = $getOwnPropertyDescriptor(O, P)
|
|
1171
|
-
if (current && current[WRITABLE]) {
|
|
1172
|
-
O[P] = Attributes.value
|
|
1173
|
-
Attributes = {
|
|
1174
|
-
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
1175
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
1176
|
-
writable: false
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
} return $defineProperty(O, P, Attributes)
|
|
1180
|
-
}
|
|
1181
|
-
: $defineProperty : function defineProperty (O, P, Attributes) {
|
|
1182
|
-
anObject(O)
|
|
1183
|
-
P = toPropertyKey(P)
|
|
1184
|
-
anObject(Attributes)
|
|
1185
|
-
if (IE8_DOM_DEFINE) {
|
|
1186
|
-
try {
|
|
1187
|
-
return $defineProperty(O, P, Attributes)
|
|
1188
|
-
} catch (error) { /* empty */ }
|
|
1189
|
-
}
|
|
1190
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported')
|
|
1191
|
-
if ('value' in Attributes) O[P] = Attributes.value
|
|
1192
|
-
return O
|
|
1193
|
-
}
|
|
1194
|
-
}, { '../internals/an-object': 4, '../internals/descriptors': 12, '../internals/ie8-dom-define': 28, '../internals/to-property-key': 61, '../internals/v8-prototype-define-bug': 65 }],
|
|
1195
|
-
42: [function (require, module, exports) {
|
|
1196
|
-
'use strict'
|
|
1197
|
-
const DESCRIPTORS = require('../internals/descriptors')
|
|
1198
|
-
const call = require('../internals/function-call')
|
|
1199
|
-
const propertyIsEnumerableModule = require('../internals/object-property-is-enumerable')
|
|
1200
|
-
const createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
1201
|
-
const toIndexedObject = require('../internals/to-indexed-object')
|
|
1202
|
-
const toPropertyKey = require('../internals/to-property-key')
|
|
1203
|
-
const hasOwn = require('../internals/has-own-property')
|
|
1204
|
-
const IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
1205
|
-
|
|
1206
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1207
|
-
const $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
1208
|
-
|
|
1209
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
1210
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1211
|
-
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor (O, P) {
|
|
1212
|
-
O = toIndexedObject(O)
|
|
1213
|
-
P = toPropertyKey(P)
|
|
1214
|
-
if (IE8_DOM_DEFINE) {
|
|
1215
|
-
try {
|
|
1216
|
-
return $getOwnPropertyDescriptor(O, P)
|
|
1217
|
-
} catch (error) { /* empty */ }
|
|
1218
|
-
}
|
|
1219
|
-
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P])
|
|
1220
|
-
}
|
|
1221
|
-
}, { '../internals/create-property-descriptor': 9, '../internals/descriptors': 12, '../internals/function-call': 20, '../internals/has-own-property': 26, '../internals/ie8-dom-define': 28, '../internals/object-property-is-enumerable': 47, '../internals/to-indexed-object': 56, '../internals/to-property-key': 61 }],
|
|
1222
|
-
43: [function (require, module, exports) {
|
|
1223
|
-
'use strict'
|
|
1224
|
-
const internalObjectKeys = require('../internals/object-keys-internal')
|
|
1225
|
-
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
1226
|
-
|
|
1227
|
-
const hiddenKeys = enumBugKeys.concat('length', 'prototype')
|
|
1228
|
-
|
|
1229
|
-
// `Object.getOwnPropertyNames` method
|
|
1230
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1231
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1232
|
-
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames (O) {
|
|
1233
|
-
return internalObjectKeys(O, hiddenKeys)
|
|
1234
|
-
}
|
|
1235
|
-
}, { '../internals/enum-bug-keys': 14, '../internals/object-keys-internal': 46 }],
|
|
1236
|
-
44: [function (require, module, exports) {
|
|
1237
|
-
'use strict'
|
|
1238
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1239
|
-
exports.f = Object.getOwnPropertySymbols
|
|
1240
|
-
}, {}],
|
|
1241
|
-
45: [function (require, module, exports) {
|
|
1242
|
-
'use strict'
|
|
1243
|
-
const uncurryThis = require('../internals/function-uncurry-this')
|
|
1244
|
-
|
|
1245
|
-
module.exports = uncurryThis({}.isPrototypeOf)
|
|
1246
|
-
}, { '../internals/function-uncurry-this': 22 }],
|
|
1247
|
-
46: [function (require, module, exports) {
|
|
1248
|
-
'use strict'
|
|
1249
|
-
const uncurryThis = require('../internals/function-uncurry-this')
|
|
1250
|
-
const hasOwn = require('../internals/has-own-property')
|
|
1251
|
-
const toIndexedObject = require('../internals/to-indexed-object')
|
|
1252
|
-
const indexOf = require('../internals/array-includes').indexOf
|
|
1253
|
-
const hiddenKeys = require('../internals/hidden-keys')
|
|
1254
|
-
|
|
1255
|
-
const push = uncurryThis([].push)
|
|
1256
|
-
|
|
1257
|
-
module.exports = function (object, names) {
|
|
1258
|
-
const O = toIndexedObject(object)
|
|
1259
|
-
let i = 0
|
|
1260
|
-
const result = []
|
|
1261
|
-
let key
|
|
1262
|
-
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key)
|
|
1263
|
-
// Don't enum bug & hidden keys
|
|
1264
|
-
while (names.length > i) {
|
|
1265
|
-
if (hasOwn(O, key = names[i++])) {
|
|
1266
|
-
~indexOf(result, key) || push(result, key)
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
return result
|
|
1270
|
-
}
|
|
1271
|
-
}, { '../internals/array-includes': 5, '../internals/function-uncurry-this': 22, '../internals/has-own-property': 26, '../internals/hidden-keys': 27, '../internals/to-indexed-object': 56 }],
|
|
1272
|
-
47: [function (require, module, exports) {
|
|
1273
|
-
'use strict'
|
|
1274
|
-
const $propertyIsEnumerable = {}.propertyIsEnumerable
|
|
1275
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1276
|
-
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
1277
|
-
|
|
1278
|
-
// Nashorn ~ JDK8 bug
|
|
1279
|
-
const NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1)
|
|
1280
|
-
|
|
1281
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1282
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1283
|
-
exports.f = NASHORN_BUG
|
|
1284
|
-
? function propertyIsEnumerable (V) {
|
|
1285
|
-
const descriptor = getOwnPropertyDescriptor(this, V)
|
|
1286
|
-
return !!descriptor && descriptor.enumerable
|
|
1287
|
-
}
|
|
1288
|
-
: $propertyIsEnumerable
|
|
1289
|
-
}, {}],
|
|
1290
|
-
48: [function (require, module, exports) {
|
|
1291
|
-
'use strict'
|
|
1292
|
-
const call = require('../internals/function-call')
|
|
1293
|
-
const isCallable = require('../internals/is-callable')
|
|
1294
|
-
const isObject = require('../internals/is-object')
|
|
1295
|
-
|
|
1296
|
-
const $TypeError = TypeError
|
|
1297
|
-
|
|
1298
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
1299
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1300
|
-
module.exports = function (input, pref) {
|
|
1301
|
-
let fn, val
|
|
1302
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
1303
|
-
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val
|
|
1304
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
1305
|
-
throw new $TypeError("Can't convert object to primitive value")
|
|
1306
|
-
}
|
|
1307
|
-
}, { '../internals/function-call': 20, '../internals/is-callable': 32, '../internals/is-object': 35 }],
|
|
1308
|
-
49: [function (require, module, exports) {
|
|
1309
|
-
'use strict'
|
|
1310
|
-
const getBuiltIn = require('../internals/get-built-in')
|
|
1311
|
-
const uncurryThis = require('../internals/function-uncurry-this')
|
|
1312
|
-
const getOwnPropertyNamesModule = require('../internals/object-get-own-property-names')
|
|
1313
|
-
const getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols')
|
|
1314
|
-
const anObject = require('../internals/an-object')
|
|
1315
|
-
|
|
1316
|
-
const concat = uncurryThis([].concat)
|
|
1317
|
-
|
|
1318
|
-
// all object keys, includes non-enumerable and symbols
|
|
1319
|
-
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys (it) {
|
|
1320
|
-
const keys = getOwnPropertyNamesModule.f(anObject(it))
|
|
1321
|
-
const getOwnPropertySymbols = getOwnPropertySymbolsModule.f
|
|
1322
|
-
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys
|
|
1323
|
-
}
|
|
1324
|
-
}, { '../internals/an-object': 4, '../internals/function-uncurry-this': 22, '../internals/get-built-in': 23, '../internals/object-get-own-property-names': 43, '../internals/object-get-own-property-symbols': 44 }],
|
|
1325
|
-
50: [function (require, module, exports) {
|
|
1326
|
-
'use strict'
|
|
1327
|
-
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
1328
|
-
|
|
1329
|
-
const $TypeError = TypeError
|
|
1330
|
-
|
|
1331
|
-
// `RequireObjectCoercible` abstract operation
|
|
1332
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1333
|
-
module.exports = function (it) {
|
|
1334
|
-
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it)
|
|
1335
|
-
return it
|
|
1336
|
-
}
|
|
1337
|
-
}, { '../internals/is-null-or-undefined': 34 }],
|
|
1338
|
-
51: [function (require, module, exports) {
|
|
1339
|
-
'use strict'
|
|
1340
|
-
const shared = require('../internals/shared')
|
|
1341
|
-
const uid = require('../internals/uid')
|
|
1342
|
-
|
|
1343
|
-
const keys = shared('keys')
|
|
1344
|
-
|
|
1345
|
-
module.exports = function (key) {
|
|
1346
|
-
return keys[key] || (keys[key] = uid(key))
|
|
1347
|
-
}
|
|
1348
|
-
}, { '../internals/shared': 53, '../internals/uid': 63 }],
|
|
1349
|
-
52: [function (require, module, exports) {
|
|
1350
|
-
'use strict'
|
|
1351
|
-
const IS_PURE = require('../internals/is-pure')
|
|
1352
|
-
const globalThis = require('../internals/global-this')
|
|
1353
|
-
const defineGlobalProperty = require('../internals/define-global-property')
|
|
1354
|
-
|
|
1355
|
-
const SHARED = '__core-js_shared__'
|
|
1356
|
-
const store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1357
|
-
|
|
1358
|
-
(store.versions || (store.versions = [])).push({
|
|
1359
|
-
version: '3.50.0',
|
|
1360
|
-
mode: IS_PURE ? 'pure' : 'global',
|
|
1361
|
-
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
1362
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
|
|
1363
|
-
source: 'https://github.com/zloirock/core-js'
|
|
1364
|
-
})
|
|
1365
|
-
}, { '../internals/define-global-property': 11, '../internals/global-this': 25, '../internals/is-pure': 36 }],
|
|
1366
|
-
53: [function (require, module, exports) {
|
|
1367
|
-
'use strict'
|
|
1368
|
-
const store = require('../internals/shared-store')
|
|
1369
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
1370
|
-
const create = Object.create || Object
|
|
1371
|
-
|
|
1372
|
-
module.exports = function (key, value) {
|
|
1373
|
-
return store[key] || (store[key] = value || create(null))
|
|
810
|
+
(function () { return this; })() || Function('return this')();
|
|
811
|
+
|
|
812
|
+
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
813
|
+
},{}],26:[function(require,module,exports){
|
|
814
|
+
'use strict';
|
|
815
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
816
|
+
var toObject = require('../internals/to-object');
|
|
817
|
+
|
|
818
|
+
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
|
819
|
+
|
|
820
|
+
// `HasOwnProperty` abstract operation
|
|
821
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
822
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
823
|
+
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
824
|
+
return hasOwnProperty(toObject(it), key);
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
},{"../internals/function-uncurry-this":22,"../internals/to-object":59}],27:[function(require,module,exports){
|
|
828
|
+
'use strict';
|
|
829
|
+
module.exports = {};
|
|
830
|
+
|
|
831
|
+
},{}],28:[function(require,module,exports){
|
|
832
|
+
'use strict';
|
|
833
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
834
|
+
var fails = require('../internals/fails');
|
|
835
|
+
var createElement = require('../internals/document-create-element');
|
|
836
|
+
|
|
837
|
+
// Thanks to IE8 for its funny defineProperty
|
|
838
|
+
module.exports = !DESCRIPTORS && !fails(function () {
|
|
839
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
840
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
841
|
+
get: function () { return 7; }
|
|
842
|
+
}).a !== 7;
|
|
843
|
+
});
|
|
844
|
+
|
|
845
|
+
},{"../internals/descriptors":12,"../internals/document-create-element":13,"../internals/fails":18}],29:[function(require,module,exports){
|
|
846
|
+
'use strict';
|
|
847
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
848
|
+
var fails = require('../internals/fails');
|
|
849
|
+
var classof = require('../internals/classof-raw');
|
|
850
|
+
|
|
851
|
+
var $Object = Object;
|
|
852
|
+
var split = uncurryThis(''.split);
|
|
853
|
+
|
|
854
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
855
|
+
module.exports = fails(function () {
|
|
856
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
857
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
858
|
+
return !$Object('z').propertyIsEnumerable(0);
|
|
859
|
+
}) ? function (it) {
|
|
860
|
+
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
|
861
|
+
} : $Object;
|
|
862
|
+
|
|
863
|
+
},{"../internals/classof-raw":6,"../internals/fails":18,"../internals/function-uncurry-this":22}],30:[function(require,module,exports){
|
|
864
|
+
'use strict';
|
|
865
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
866
|
+
var isCallable = require('../internals/is-callable');
|
|
867
|
+
var store = require('../internals/shared-store');
|
|
868
|
+
|
|
869
|
+
var functionToString = uncurryThis(Function.toString);
|
|
870
|
+
|
|
871
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
872
|
+
if (!isCallable(store.inspectSource)) {
|
|
873
|
+
store.inspectSource = function (it) {
|
|
874
|
+
return functionToString(it);
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
module.exports = store.inspectSource;
|
|
879
|
+
|
|
880
|
+
},{"../internals/function-uncurry-this":22,"../internals/is-callable":32,"../internals/shared-store":52}],31:[function(require,module,exports){
|
|
881
|
+
'use strict';
|
|
882
|
+
var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');
|
|
883
|
+
var globalThis = require('../internals/global-this');
|
|
884
|
+
var isObject = require('../internals/is-object');
|
|
885
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
886
|
+
var hasOwn = require('../internals/has-own-property');
|
|
887
|
+
var shared = require('../internals/shared-store');
|
|
888
|
+
var sharedKey = require('../internals/shared-key');
|
|
889
|
+
var hiddenKeys = require('../internals/hidden-keys');
|
|
890
|
+
|
|
891
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
892
|
+
var TypeError = globalThis.TypeError;
|
|
893
|
+
var WeakMap = globalThis.WeakMap;
|
|
894
|
+
var set, get, has;
|
|
895
|
+
|
|
896
|
+
var enforce = function (it) {
|
|
897
|
+
return has(it) ? get(it) : set(it, {});
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
var getterFor = function (TYPE) {
|
|
901
|
+
return function (it) {
|
|
902
|
+
var state;
|
|
903
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
904
|
+
throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
905
|
+
} return state;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
910
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
911
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
912
|
+
store.get = store.get;
|
|
913
|
+
store.has = store.has;
|
|
914
|
+
store.set = store.set;
|
|
915
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
916
|
+
set = function (it, metadata) {
|
|
917
|
+
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
918
|
+
metadata.facade = it;
|
|
919
|
+
store.set(it, metadata);
|
|
920
|
+
return metadata;
|
|
921
|
+
};
|
|
922
|
+
get = function (it) {
|
|
923
|
+
return store.get(it) || {};
|
|
924
|
+
};
|
|
925
|
+
has = function (it) {
|
|
926
|
+
return store.has(it);
|
|
927
|
+
};
|
|
928
|
+
} else {
|
|
929
|
+
var STATE = sharedKey('state');
|
|
930
|
+
hiddenKeys[STATE] = true;
|
|
931
|
+
set = function (it, metadata) {
|
|
932
|
+
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
933
|
+
metadata.facade = it;
|
|
934
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
|
935
|
+
return metadata;
|
|
936
|
+
};
|
|
937
|
+
get = function (it) {
|
|
938
|
+
return hasOwn(it, STATE) ? it[STATE] : {};
|
|
939
|
+
};
|
|
940
|
+
has = function (it) {
|
|
941
|
+
return hasOwn(it, STATE);
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
module.exports = {
|
|
946
|
+
set: set,
|
|
947
|
+
get: get,
|
|
948
|
+
has: has,
|
|
949
|
+
enforce: enforce,
|
|
950
|
+
getterFor: getterFor
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
},{"../internals/create-non-enumerable-property":8,"../internals/global-this":25,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/is-object":35,"../internals/shared-key":51,"../internals/shared-store":52,"../internals/weak-map-basic-detection":66}],32:[function(require,module,exports){
|
|
954
|
+
'use strict';
|
|
955
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
956
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
957
|
+
|
|
958
|
+
// `IsCallable` abstract operation
|
|
959
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
960
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
961
|
+
module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
962
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
963
|
+
} : function (argument) {
|
|
964
|
+
return typeof argument == 'function';
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
},{}],33:[function(require,module,exports){
|
|
968
|
+
'use strict';
|
|
969
|
+
var fails = require('../internals/fails');
|
|
970
|
+
var isCallable = require('../internals/is-callable');
|
|
971
|
+
|
|
972
|
+
var replacement = /#|\.prototype\./;
|
|
973
|
+
|
|
974
|
+
var isForced = function (feature, detection) {
|
|
975
|
+
var value = data[normalize(feature)];
|
|
976
|
+
return value === POLYFILL ? true
|
|
977
|
+
: value === NATIVE ? false
|
|
978
|
+
: isCallable(detection) ? fails(detection)
|
|
979
|
+
: !!detection;
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
var normalize = isForced.normalize = function (string) {
|
|
983
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
var data = isForced.data = {};
|
|
987
|
+
var NATIVE = isForced.NATIVE = 'N';
|
|
988
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
|
989
|
+
|
|
990
|
+
module.exports = isForced;
|
|
991
|
+
|
|
992
|
+
},{"../internals/fails":18,"../internals/is-callable":32}],34:[function(require,module,exports){
|
|
993
|
+
'use strict';
|
|
994
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
995
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
996
|
+
module.exports = function (it) {
|
|
997
|
+
return it === null || it === undefined;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
},{}],35:[function(require,module,exports){
|
|
1001
|
+
'use strict';
|
|
1002
|
+
var isCallable = require('../internals/is-callable');
|
|
1003
|
+
|
|
1004
|
+
module.exports = function (it) {
|
|
1005
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
},{"../internals/is-callable":32}],36:[function(require,module,exports){
|
|
1009
|
+
'use strict';
|
|
1010
|
+
module.exports = false;
|
|
1011
|
+
|
|
1012
|
+
},{}],37:[function(require,module,exports){
|
|
1013
|
+
'use strict';
|
|
1014
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
1015
|
+
var isCallable = require('../internals/is-callable');
|
|
1016
|
+
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
|
1017
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
1018
|
+
|
|
1019
|
+
var $Object = Object;
|
|
1020
|
+
|
|
1021
|
+
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
1022
|
+
return typeof it == 'symbol';
|
|
1023
|
+
} : function (it) {
|
|
1024
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
1025
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
},{"../internals/get-built-in":23,"../internals/is-callable":32,"../internals/object-is-prototype-of":45,"../internals/use-symbol-as-uid":64}],38:[function(require,module,exports){
|
|
1029
|
+
'use strict';
|
|
1030
|
+
var toLength = require('../internals/to-length');
|
|
1031
|
+
|
|
1032
|
+
// `LengthOfArrayLike` abstract operation
|
|
1033
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1034
|
+
module.exports = function (obj) {
|
|
1035
|
+
return toLength(obj.length);
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
},{"../internals/to-length":58}],39:[function(require,module,exports){
|
|
1039
|
+
'use strict';
|
|
1040
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1041
|
+
var fails = require('../internals/fails');
|
|
1042
|
+
var isCallable = require('../internals/is-callable');
|
|
1043
|
+
var hasOwn = require('../internals/has-own-property');
|
|
1044
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
1045
|
+
var CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;
|
|
1046
|
+
var inspectSource = require('../internals/inspect-source');
|
|
1047
|
+
var InternalStateModule = require('../internals/internal-state');
|
|
1048
|
+
|
|
1049
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
1050
|
+
var getInternalState = InternalStateModule.get;
|
|
1051
|
+
var $String = String;
|
|
1052
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1053
|
+
var defineProperty = Object.defineProperty;
|
|
1054
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1055
|
+
var replace = uncurryThis(''.replace);
|
|
1056
|
+
var join = uncurryThis([].join);
|
|
1057
|
+
|
|
1058
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
1059
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1060
|
+
});
|
|
1061
|
+
|
|
1062
|
+
var TEMPLATE = String(String).split('String');
|
|
1063
|
+
|
|
1064
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
1065
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
1066
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
1067
|
+
}
|
|
1068
|
+
if (options && options.getter) name = 'get ' + name;
|
|
1069
|
+
if (options && options.setter) name = 'set ' + name;
|
|
1070
|
+
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
1071
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
1072
|
+
else value.name = name;
|
|
1073
|
+
}
|
|
1074
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
1075
|
+
defineProperty(value, 'length', { value: options.arity });
|
|
1076
|
+
}
|
|
1077
|
+
try {
|
|
1078
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
1079
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
1080
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1081
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
1082
|
+
} catch (error) { /* empty */ }
|
|
1083
|
+
var state = enforceInternalState(value);
|
|
1084
|
+
if (!hasOwn(state, 'source')) {
|
|
1085
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
1086
|
+
} return value;
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1090
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
1091
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
1092
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
1093
|
+
}, 'toString');
|
|
1094
|
+
|
|
1095
|
+
},{"../internals/descriptors":12,"../internals/fails":18,"../internals/function-name":21,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/inspect-source":30,"../internals/internal-state":31,"../internals/is-callable":32}],40:[function(require,module,exports){
|
|
1096
|
+
'use strict';
|
|
1097
|
+
var ceil = Math.ceil;
|
|
1098
|
+
var floor = Math.floor;
|
|
1099
|
+
|
|
1100
|
+
// `Math.trunc` method
|
|
1101
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
1102
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
1103
|
+
module.exports = Math.trunc || function trunc(x) {
|
|
1104
|
+
var n = +x;
|
|
1105
|
+
return (n > 0 ? floor : ceil)(n);
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
},{}],41:[function(require,module,exports){
|
|
1109
|
+
'use strict';
|
|
1110
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
1111
|
+
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
|
|
1112
|
+
var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');
|
|
1113
|
+
var anObject = require('../internals/an-object');
|
|
1114
|
+
var toPropertyKey = require('../internals/to-property-key');
|
|
1115
|
+
|
|
1116
|
+
var $TypeError = TypeError;
|
|
1117
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1118
|
+
var $defineProperty = Object.defineProperty;
|
|
1119
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1120
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1121
|
+
var ENUMERABLE = 'enumerable';
|
|
1122
|
+
var CONFIGURABLE = 'configurable';
|
|
1123
|
+
var WRITABLE = 'writable';
|
|
1124
|
+
|
|
1125
|
+
// `Object.defineProperty` method
|
|
1126
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
1127
|
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
1128
|
+
anObject(O);
|
|
1129
|
+
P = toPropertyKey(P);
|
|
1130
|
+
anObject(Attributes);
|
|
1131
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
1132
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
1133
|
+
if (current && current[WRITABLE]) {
|
|
1134
|
+
O[P] = Attributes.value;
|
|
1135
|
+
Attributes = {
|
|
1136
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
1137
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
1138
|
+
writable: false
|
|
1139
|
+
};
|
|
1374
1140
|
}
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1141
|
+
} return $defineProperty(O, P, Attributes);
|
|
1142
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
1143
|
+
anObject(O);
|
|
1144
|
+
P = toPropertyKey(P);
|
|
1145
|
+
anObject(Attributes);
|
|
1146
|
+
if (IE8_DOM_DEFINE) try {
|
|
1147
|
+
return $defineProperty(O, P, Attributes);
|
|
1148
|
+
} catch (error) { /* empty */ }
|
|
1149
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
|
|
1150
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
1151
|
+
return O;
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
},{"../internals/an-object":4,"../internals/descriptors":12,"../internals/ie8-dom-define":28,"../internals/to-property-key":61,"../internals/v8-prototype-define-bug":65}],42:[function(require,module,exports){
|
|
1155
|
+
'use strict';
|
|
1156
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
1157
|
+
var call = require('../internals/function-call');
|
|
1158
|
+
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
|
|
1159
|
+
var createPropertyDescriptor = require('../internals/create-property-descriptor');
|
|
1160
|
+
var toIndexedObject = require('../internals/to-indexed-object');
|
|
1161
|
+
var toPropertyKey = require('../internals/to-property-key');
|
|
1162
|
+
var hasOwn = require('../internals/has-own-property');
|
|
1163
|
+
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
|
|
1164
|
+
|
|
1165
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1166
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1167
|
+
|
|
1168
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
1169
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1170
|
+
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1171
|
+
O = toIndexedObject(O);
|
|
1172
|
+
P = toPropertyKey(P);
|
|
1173
|
+
if (IE8_DOM_DEFINE) try {
|
|
1174
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
1175
|
+
} catch (error) { /* empty */ }
|
|
1176
|
+
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/function-call":20,"../internals/has-own-property":26,"../internals/ie8-dom-define":28,"../internals/object-property-is-enumerable":47,"../internals/to-indexed-object":56,"../internals/to-property-key":61}],43:[function(require,module,exports){
|
|
1180
|
+
'use strict';
|
|
1181
|
+
var internalObjectKeys = require('../internals/object-keys-internal');
|
|
1182
|
+
var enumBugKeys = require('../internals/enum-bug-keys');
|
|
1183
|
+
|
|
1184
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
1185
|
+
|
|
1186
|
+
// `Object.getOwnPropertyNames` method
|
|
1187
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1188
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1189
|
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1190
|
+
return internalObjectKeys(O, hiddenKeys);
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
},{"../internals/enum-bug-keys":14,"../internals/object-keys-internal":46}],44:[function(require,module,exports){
|
|
1194
|
+
'use strict';
|
|
1195
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1196
|
+
exports.f = Object.getOwnPropertySymbols;
|
|
1197
|
+
|
|
1198
|
+
},{}],45:[function(require,module,exports){
|
|
1199
|
+
'use strict';
|
|
1200
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1201
|
+
|
|
1202
|
+
module.exports = uncurryThis({}.isPrototypeOf);
|
|
1203
|
+
|
|
1204
|
+
},{"../internals/function-uncurry-this":22}],46:[function(require,module,exports){
|
|
1205
|
+
'use strict';
|
|
1206
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1207
|
+
var hasOwn = require('../internals/has-own-property');
|
|
1208
|
+
var toIndexedObject = require('../internals/to-indexed-object');
|
|
1209
|
+
var indexOf = require('../internals/array-includes').indexOf;
|
|
1210
|
+
var hiddenKeys = require('../internals/hidden-keys');
|
|
1211
|
+
|
|
1212
|
+
var push = uncurryThis([].push);
|
|
1213
|
+
|
|
1214
|
+
module.exports = function (object, names) {
|
|
1215
|
+
var O = toIndexedObject(object);
|
|
1216
|
+
var i = 0;
|
|
1217
|
+
var result = [];
|
|
1218
|
+
var key;
|
|
1219
|
+
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
|
1220
|
+
// Don't enum bug & hidden keys
|
|
1221
|
+
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
|
1222
|
+
~indexOf(result, key) || push(result, key);
|
|
1223
|
+
}
|
|
1224
|
+
return result;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
},{"../internals/array-includes":5,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/to-indexed-object":56}],47:[function(require,module,exports){
|
|
1228
|
+
'use strict';
|
|
1229
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1230
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1231
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1232
|
+
|
|
1233
|
+
// Nashorn ~ JDK8 bug
|
|
1234
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1235
|
+
|
|
1236
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1237
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1238
|
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1239
|
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
1240
|
+
return !!descriptor && descriptor.enumerable;
|
|
1241
|
+
} : $propertyIsEnumerable;
|
|
1242
|
+
|
|
1243
|
+
},{}],48:[function(require,module,exports){
|
|
1244
|
+
'use strict';
|
|
1245
|
+
var call = require('../internals/function-call');
|
|
1246
|
+
var isCallable = require('../internals/is-callable');
|
|
1247
|
+
var isObject = require('../internals/is-object');
|
|
1248
|
+
|
|
1249
|
+
var $TypeError = TypeError;
|
|
1250
|
+
|
|
1251
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
1252
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1253
|
+
module.exports = function (input, pref) {
|
|
1254
|
+
var fn, val;
|
|
1255
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
1256
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
|
1257
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
1258
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
},{"../internals/function-call":20,"../internals/is-callable":32,"../internals/is-object":35}],49:[function(require,module,exports){
|
|
1262
|
+
'use strict';
|
|
1263
|
+
var getBuiltIn = require('../internals/get-built-in');
|
|
1264
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1265
|
+
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
|
|
1266
|
+
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
|
|
1267
|
+
var anObject = require('../internals/an-object');
|
|
1268
|
+
|
|
1269
|
+
var concat = uncurryThis([].concat);
|
|
1270
|
+
|
|
1271
|
+
// all object keys, includes non-enumerable and symbols
|
|
1272
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1273
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
1274
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1275
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
},{"../internals/an-object":4,"../internals/function-uncurry-this":22,"../internals/get-built-in":23,"../internals/object-get-own-property-names":43,"../internals/object-get-own-property-symbols":44}],50:[function(require,module,exports){
|
|
1279
|
+
'use strict';
|
|
1280
|
+
var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
|
1281
|
+
|
|
1282
|
+
var $TypeError = TypeError;
|
|
1283
|
+
|
|
1284
|
+
// `RequireObjectCoercible` abstract operation
|
|
1285
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1286
|
+
module.exports = function (it) {
|
|
1287
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
1288
|
+
return it;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
},{"../internals/is-null-or-undefined":34}],51:[function(require,module,exports){
|
|
1292
|
+
'use strict';
|
|
1293
|
+
var shared = require('../internals/shared');
|
|
1294
|
+
var uid = require('../internals/uid');
|
|
1295
|
+
|
|
1296
|
+
var keys = shared('keys');
|
|
1297
|
+
|
|
1298
|
+
module.exports = function (key) {
|
|
1299
|
+
return keys[key] || (keys[key] = uid(key));
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
},{"../internals/shared":53,"../internals/uid":63}],52:[function(require,module,exports){
|
|
1303
|
+
'use strict';
|
|
1304
|
+
var IS_PURE = require('../internals/is-pure');
|
|
1305
|
+
var globalThis = require('../internals/global-this');
|
|
1306
|
+
var defineGlobalProperty = require('../internals/define-global-property');
|
|
1307
|
+
|
|
1308
|
+
var SHARED = '__core-js_shared__';
|
|
1309
|
+
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1310
|
+
|
|
1311
|
+
(store.versions || (store.versions = [])).push({
|
|
1312
|
+
version: '3.50.0',
|
|
1313
|
+
mode: IS_PURE ? 'pure' : 'global',
|
|
1314
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
1315
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
|
|
1316
|
+
source: 'https://github.com/zloirock/core-js'
|
|
1317
|
+
});
|
|
1318
|
+
|
|
1319
|
+
},{"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-pure":36}],53:[function(require,module,exports){
|
|
1320
|
+
'use strict';
|
|
1321
|
+
var store = require('../internals/shared-store');
|
|
1322
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1323
|
+
var create = Object.create || Object;
|
|
1324
|
+
|
|
1325
|
+
module.exports = function (key, value) {
|
|
1326
|
+
return store[key] || (store[key] = value || create(null));
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
},{"../internals/shared-store":52}],54:[function(require,module,exports){
|
|
1330
|
+
'use strict';
|
|
1331
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1332
|
+
var V8_VERSION = require('../internals/environment-v8-version');
|
|
1333
|
+
var fails = require('../internals/fails');
|
|
1334
|
+
var globalThis = require('../internals/global-this');
|
|
1335
|
+
|
|
1336
|
+
var $String = globalThis.String;
|
|
1337
|
+
|
|
1338
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1339
|
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
1340
|
+
var symbol = Symbol('symbol detection');
|
|
1341
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
1342
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1343
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
1344
|
+
// of course, fail.
|
|
1345
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
1393
1346
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
1394
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1347
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
1348
|
+
});
|
|
1349
|
+
|
|
1350
|
+
},{"../internals/environment-v8-version":16,"../internals/fails":18,"../internals/global-this":25}],55:[function(require,module,exports){
|
|
1351
|
+
'use strict';
|
|
1352
|
+
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
1353
|
+
|
|
1354
|
+
var max = Math.max;
|
|
1355
|
+
var min = Math.min;
|
|
1356
|
+
|
|
1357
|
+
// Helper for a popular repeating case of the spec:
|
|
1358
|
+
// Let integer be ? ToInteger(index).
|
|
1359
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
1360
|
+
module.exports = function (index, length) {
|
|
1361
|
+
var integer = toIntegerOrInfinity(index);
|
|
1362
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
},{"../internals/to-integer-or-infinity":57}],56:[function(require,module,exports){
|
|
1366
|
+
'use strict';
|
|
1367
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
1368
|
+
var IndexedObject = require('../internals/indexed-object');
|
|
1369
|
+
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
1370
|
+
|
|
1371
|
+
module.exports = function (it) {
|
|
1372
|
+
return IndexedObject(requireObjectCoercible(it));
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
},{"../internals/indexed-object":29,"../internals/require-object-coercible":50}],57:[function(require,module,exports){
|
|
1376
|
+
'use strict';
|
|
1377
|
+
var trunc = require('../internals/math-trunc');
|
|
1378
|
+
|
|
1379
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
1380
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
1381
|
+
module.exports = function (argument) {
|
|
1382
|
+
var number = +argument;
|
|
1383
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1384
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
},{"../internals/math-trunc":40}],58:[function(require,module,exports){
|
|
1388
|
+
'use strict';
|
|
1389
|
+
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
1390
|
+
|
|
1391
|
+
var min = Math.min;
|
|
1392
|
+
|
|
1393
|
+
// `ToLength` abstract operation
|
|
1394
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
1395
|
+
module.exports = function (argument) {
|
|
1396
|
+
var len = toIntegerOrInfinity(argument);
|
|
1397
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
},{"../internals/to-integer-or-infinity":57}],59:[function(require,module,exports){
|
|
1401
|
+
'use strict';
|
|
1402
|
+
var requireObjectCoercible = require('../internals/require-object-coercible');
|
|
1403
|
+
|
|
1404
|
+
var $Object = Object;
|
|
1405
|
+
|
|
1406
|
+
// `ToObject` abstract operation
|
|
1407
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
1408
|
+
module.exports = function (argument) {
|
|
1409
|
+
return $Object(requireObjectCoercible(argument));
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
},{"../internals/require-object-coercible":50}],60:[function(require,module,exports){
|
|
1413
|
+
'use strict';
|
|
1414
|
+
var call = require('../internals/function-call');
|
|
1415
|
+
var isObject = require('../internals/is-object');
|
|
1416
|
+
var isSymbol = require('../internals/is-symbol');
|
|
1417
|
+
var getMethod = require('../internals/get-method');
|
|
1418
|
+
var ordinaryToPrimitive = require('../internals/ordinary-to-primitive');
|
|
1419
|
+
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
1420
|
+
|
|
1421
|
+
var $TypeError = TypeError;
|
|
1422
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
1423
|
+
|
|
1424
|
+
// `ToPrimitive` abstract operation
|
|
1425
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
1426
|
+
module.exports = function (input, pref) {
|
|
1427
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
1428
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
1429
|
+
var result;
|
|
1430
|
+
if (exoticToPrim) {
|
|
1431
|
+
if (pref === undefined) pref = 'default';
|
|
1432
|
+
result = call(exoticToPrim, input, pref);
|
|
1433
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
1434
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
1435
|
+
}
|
|
1436
|
+
if (pref === undefined) pref = 'number';
|
|
1437
|
+
return ordinaryToPrimitive(input, pref);
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
},{"../internals/function-call":20,"../internals/get-method":24,"../internals/is-object":35,"../internals/is-symbol":37,"../internals/ordinary-to-primitive":48,"../internals/well-known-symbol":68}],61:[function(require,module,exports){
|
|
1441
|
+
'use strict';
|
|
1442
|
+
var toPrimitive = require('../internals/to-primitive');
|
|
1443
|
+
var isSymbol = require('../internals/is-symbol');
|
|
1444
|
+
|
|
1445
|
+
// `ToPropertyKey` abstract operation
|
|
1446
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
1447
|
+
module.exports = function (argument) {
|
|
1448
|
+
var key = toPrimitive(argument, 'string');
|
|
1449
|
+
return isSymbol(key) ? key : key + '';
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
},{"../internals/is-symbol":37,"../internals/to-primitive":60}],62:[function(require,module,exports){
|
|
1453
|
+
'use strict';
|
|
1454
|
+
var $String = String;
|
|
1455
|
+
|
|
1456
|
+
module.exports = function (argument) {
|
|
1457
|
+
try {
|
|
1458
|
+
return $String(argument);
|
|
1459
|
+
} catch (error) {
|
|
1460
|
+
return 'Object';
|
|
1461
|
+
}
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
},{}],63:[function(require,module,exports){
|
|
1465
|
+
'use strict';
|
|
1466
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1467
|
+
|
|
1468
|
+
var id = 0;
|
|
1469
|
+
var postfix = Math.random();
|
|
1470
|
+
var toString = uncurryThis(1.1.toString);
|
|
1471
|
+
|
|
1472
|
+
module.exports = function (key) {
|
|
1473
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
},{"../internals/function-uncurry-this":22}],64:[function(require,module,exports){
|
|
1477
|
+
'use strict';
|
|
1478
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1479
|
+
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
|
|
1480
|
+
|
|
1481
|
+
module.exports = NATIVE_SYMBOL &&
|
|
1529
1482
|
!Symbol.sham &&
|
|
1530
|
-
typeof Symbol.iterator
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
},
|
|
1483
|
+
typeof Symbol.iterator == 'symbol';
|
|
1484
|
+
|
|
1485
|
+
},{"../internals/symbol-constructor-detection":54}],65:[function(require,module,exports){
|
|
1486
|
+
'use strict';
|
|
1487
|
+
var DESCRIPTORS = require('../internals/descriptors');
|
|
1488
|
+
var fails = require('../internals/fails');
|
|
1489
|
+
|
|
1490
|
+
// V8 ~ Chrome 36-
|
|
1491
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1492
|
+
module.exports = DESCRIPTORS && fails(function () {
|
|
1493
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1494
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1495
|
+
value: 42,
|
|
1496
|
+
writable: false
|
|
1497
|
+
}).prototype !== 42;
|
|
1498
|
+
});
|
|
1499
|
+
|
|
1500
|
+
},{"../internals/descriptors":12,"../internals/fails":18}],66:[function(require,module,exports){
|
|
1501
|
+
'use strict';
|
|
1502
|
+
var globalThis = require('../internals/global-this');
|
|
1503
|
+
var isCallable = require('../internals/is-callable');
|
|
1504
|
+
|
|
1505
|
+
var WeakMap = globalThis.WeakMap;
|
|
1506
|
+
|
|
1507
|
+
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
1508
|
+
|
|
1509
|
+
},{"../internals/global-this":25,"../internals/is-callable":32}],67:[function(require,module,exports){
|
|
1510
|
+
'use strict';
|
|
1511
|
+
var uncurryThis = require('../internals/function-uncurry-this');
|
|
1512
|
+
|
|
1513
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
1514
|
+
var WeakMapPrototype = WeakMap.prototype;
|
|
1515
|
+
|
|
1516
|
+
module.exports = {
|
|
1517
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
1518
|
+
WeakMap: WeakMap,
|
|
1519
|
+
set: uncurryThis(WeakMapPrototype.set),
|
|
1520
|
+
get: uncurryThis(WeakMapPrototype.get),
|
|
1521
|
+
has: uncurryThis(WeakMapPrototype.has),
|
|
1522
|
+
remove: uncurryThis(WeakMapPrototype['delete'])
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
},{"../internals/function-uncurry-this":22}],68:[function(require,module,exports){
|
|
1526
|
+
'use strict';
|
|
1527
|
+
var globalThis = require('../internals/global-this');
|
|
1528
|
+
var shared = require('../internals/shared');
|
|
1529
|
+
var hasOwn = require('../internals/has-own-property');
|
|
1530
|
+
var uid = require('../internals/uid');
|
|
1531
|
+
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
|
|
1532
|
+
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
1533
|
+
|
|
1534
|
+
var Symbol = globalThis.Symbol;
|
|
1535
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
1536
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
1537
|
+
|
|
1538
|
+
module.exports = function (name) {
|
|
1539
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
1540
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
1541
|
+
? Symbol[name]
|
|
1542
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
1543
|
+
} return WellKnownSymbolsStore[name];
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
},{"../internals/global-this":25,"../internals/has-own-property":26,"../internals/shared":53,"../internals/symbol-constructor-detection":54,"../internals/uid":63,"../internals/use-symbol-as-uid":64}],69:[function(require,module,exports){
|
|
1547
|
+
'use strict';
|
|
1548
|
+
var $ = require('../internals/export');
|
|
1549
|
+
var aWeakMap = require('../internals/a-weak-map');
|
|
1550
|
+
var remove = require('../internals/weak-map-helpers').remove;
|
|
1551
|
+
|
|
1552
|
+
// `WeakMap.prototype.deleteAll` method
|
|
1553
|
+
// https://github.com/tc39/proposal-collection-methods
|
|
1554
|
+
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
1555
|
+
deleteAll: function deleteAll(/* ...elements */) {
|
|
1556
|
+
var collection = aWeakMap(this);
|
|
1557
|
+
var allDeleted = true;
|
|
1558
|
+
var wasDeleted;
|
|
1559
|
+
for (var k = 0, len = arguments.length; k < len; k++) {
|
|
1560
|
+
wasDeleted = remove(collection, arguments[k]);
|
|
1561
|
+
allDeleted = allDeleted && wasDeleted;
|
|
1562
|
+
} return !!allDeleted;
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
|
|
1566
|
+
},{"../internals/a-weak-map":3,"../internals/export":17,"../internals/weak-map-helpers":67}]},{},[1])(1)
|
|
1567
|
+
});
|