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.
@@ -1,114 +1,104 @@
1
- (function () { function r (e, n, t) { function o (i, f) { if (!n[i]) { if (!e[i]) { const c = typeof require === 'function' && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); const a = new Error("Cannot find module '" + i + "'"); throw a.code = 'MODULE_NOT_FOUND', a } const p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { const n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = typeof require === 'function' && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
2
- 1: [function (require, module, exports) {
3
- 'use strict'
4
-
5
- require('core-js/modules/esnext.weak-map.delete-all.js')
6
- const __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function (receiver, state, value, kind, f) {
7
- if (kind === 'm') throw new TypeError('Private method is not writable')
8
- if (kind === 'a' && !f) throw new TypeError('Private accessor was defined without a setter')
9
- 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')
10
- return kind === 'a' ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value
11
- }
12
- const __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function (receiver, state, kind, f) {
13
- if (kind === 'a' && !f) throw new TypeError('Private accessor was defined without a getter')
14
- 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')
15
- return kind === 'm' ? f : kind === 'a' ? f.call(receiver) : f ? f.value : state.get(receiver)
16
- }
17
- let _TitleSwitcher_active, _TitleSwitcher_currentClass, _TitleSwitcher_currentIndex, _TitleSwitcher_delayEffect, _TitleSwitcher_delaySwitch, _TitleSwitcher_isRandom, _TitleSwitcher_titles, _TitleSwitcher_titlesContainer, _TitleSwitcher_switchStyle, _TitleSwitcher_typeSurface
18
- Object.defineProperty(exports, '__esModule', {
19
- value: true
20
- })
21
- class TitleSwitcher {
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
- constructor (titlesContainer = '', switchStyle = 'typingEffect') {
29
- _TitleSwitcher_active.set(this, false)
30
- _TitleSwitcher_currentClass.set(this, 'displayTitle')
31
- _TitleSwitcher_currentIndex.set(this, 0)
32
- _TitleSwitcher_delayEffect.set(this, 200)
33
- _TitleSwitcher_delaySwitch.set(this, 400)
34
- _TitleSwitcher_isRandom.set(this, false)
35
- _TitleSwitcher_titles.set(this, [])
36
- _TitleSwitcher_titlesContainer.set(this, '')
37
- _TitleSwitcher_switchStyle.set(this, void 0)
38
- _TitleSwitcher_typeSurface.set(this, void 0)
39
- __classPrivateFieldSet(this, _TitleSwitcher_currentClass, 'displayTitle', 'f')
40
- if (typeof switchStyle === 'string') {
41
- // @ts-ignore Obnoxious error "type 'string' can't be used to index type 'TitleSwitcher'"
42
- __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, typeof this[switchStyle] === 'function' ? this[switchStyle] : this.typingEffect, 'f')
43
- } else {
44
- __classPrivateFieldSet(this, _TitleSwitcher_switchStyle, switchStyle, 'f')
45
- }
46
- __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, titlesContainer, 'f')
47
- __classPrivateFieldSet(this, _TitleSwitcher_titles, [], 'f')
48
- const foundContainers = titlesContainer ? document.querySelectorAll(titlesContainer) : []
49
- if (foundContainers && foundContainers[0]) {
50
- __classPrivateFieldSet(this, _TitleSwitcher_titlesContainer, foundContainers[0], 'f')
51
- __classPrivateFieldSet(this, _TitleSwitcher_titles, foundContainers[0].children, 'f')
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
- get active () {
59
- return __classPrivateFieldGet(this, _TitleSwitcher_active, 'f')
60
- }
61
-
62
- /**
56
+ get active() {
57
+ return __classPrivateFieldGet(this, _TitleSwitcher_active, "f");
58
+ }
59
+ /**
63
60
  * Retrieve currentClass
64
61
  */
65
- get currentClass () {
66
- return __classPrivateFieldGet(this, _TitleSwitcher_currentClass, 'f')
67
- }
68
-
69
- /**
62
+ get currentClass() {
63
+ return __classPrivateFieldGet(this, _TitleSwitcher_currentClass, "f");
64
+ }
65
+ /**
70
66
  * Retrieve currentIndex
71
67
  */
72
- get currentIndex () {
73
- return __classPrivateFieldGet(this, _TitleSwitcher_currentIndex, 'f')
74
- }
75
-
76
- /**
68
+ get currentIndex() {
69
+ return __classPrivateFieldGet(this, _TitleSwitcher_currentIndex, "f");
70
+ }
71
+ /**
77
72
  * Retrieve delayEffect
78
73
  */
79
- get delayEffect () {
80
- return __classPrivateFieldGet(this, _TitleSwitcher_delayEffect, 'f')
81
- }
82
-
83
- /**
74
+ get delayEffect() {
75
+ return __classPrivateFieldGet(this, _TitleSwitcher_delayEffect, "f");
76
+ }
77
+ /**
84
78
  * Retrieve delaySwitch
85
79
  */
86
- get delaySwitch () {
87
- return __classPrivateFieldGet(this, _TitleSwitcher_delaySwitch, 'f')
88
- }
89
-
90
- /**
80
+ get delaySwitch() {
81
+ return __classPrivateFieldGet(this, _TitleSwitcher_delaySwitch, "f");
82
+ }
83
+ /**
91
84
  * Retrieve switchStyle
92
85
  */
93
- get switchStyle () {
94
- return __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, 'f')
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
- get titles () {
101
- return __classPrivateFieldGet(this, _TitleSwitcher_titles, 'f')
102
- }
103
-
104
- /**
92
+ get titles() {
93
+ return __classPrivateFieldGet(this, _TitleSwitcher_titles, "f");
94
+ }
95
+ /**
105
96
  * Retrieve typeSurface used
106
97
  */
107
- get typeSurface () {
108
- return __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, 'f')
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
- startTitles ({
120
- delaySwitch = 400,
121
- delayEffect = 200,
122
- isRandom = false,
123
- immediatePause = false
124
- } = {}) {
125
- const typeSurface = 'typeSurface'
126
- __classPrivateFieldSet(this, _TitleSwitcher_delaySwitch, delaySwitch, 'f')
127
- __classPrivateFieldSet(this, _TitleSwitcher_delayEffect, delayEffect, 'f')
128
- __classPrivateFieldSet(this, _TitleSwitcher_isRandom, isRandom, 'f')
129
- __classPrivateFieldSet(this, _TitleSwitcher_active, !immediatePause, 'f')
130
- if (__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, 'f') >= __classPrivateFieldGet(this, _TitleSwitcher_titles, 'f').length || typeof __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, 'f') === 'string') {
131
- __classPrivateFieldSet(this, _TitleSwitcher_active, false, 'f')
132
- console.warn(`No titles found for '${__classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, 'f')}'`)
133
- return this
134
- }
135
- if (__classPrivateFieldGet(this, _TitleSwitcher_isRandom, 'f')) {
136
- __classPrivateFieldSet(this, _TitleSwitcher_currentIndex, Math.round(Math.random() * (__classPrivateFieldGet(this, _TitleSwitcher_titles, 'f').length - 2)) + 1, 'f')
137
- }
138
- const currentTitle = __classPrivateFieldGet(this, _TitleSwitcher_titles, 'f')[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, 'f')]
139
- if (currentTitle.classList) {
140
- currentTitle.classList.add(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, 'f'))
141
- } else {
142
- currentTitle.className += ' ' + __classPrivateFieldGet(this, _TitleSwitcher_currentClass, 'f')
143
- }
144
- // @ts-ignore The Node returned is of type Element, or it should be
145
- const typeElement = __classPrivateFieldGet(this, _TitleSwitcher_titles, 'f')[0].cloneNode(true)
146
- if (typeElement.classList) {
147
- typeElement.classList.add(typeSurface)
148
- } else {
149
- typeElement.className += ' ' + typeSurface
150
- }
151
- if (typeElement.classList) {
152
- typeElement.classList.remove(__classPrivateFieldGet(this, _TitleSwitcher_currentClass, 'f'))
153
- } else {
154
- typeElement.className = typeElement.className.replace(new RegExp('(^|\\b)' + typeElement.className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ')
155
- }
156
- __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, 'f').insertBefore(typeElement, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, 'f').firstChild)
157
- // @ts-ignore the returned Node is a type of HTMLElement
158
- __classPrivateFieldSet(this, _TitleSwitcher_typeSurface, __classPrivateFieldGet(this, _TitleSwitcher_titlesContainer, 'f').querySelectorAll('.' + typeSurface)[0], 'f')
159
- __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, 'f').innerHTML = ''
160
- __classPrivateFieldGet(this, _TitleSwitcher_typeSurface, 'f').style.display = 'block'
161
- Array.prototype.forEach.call(__classPrivateFieldGet(this, _TitleSwitcher_titles, 'f'), function (title) {
162
- title.style.display = 'none'
163
- })
164
- // currentTitle, not this.#titles[this.#currentIndex]: inserting typeElement above shifted every later index by
165
- // one, so #currentIndex (computed before that insert) no longer points at the title it was set for - switchTitle
166
- // would remove the 'displayTitle' class from whatever title now happens to sit at that stale index instead of
167
- // from currentTitle, leaving more than one title carrying the class at once.
168
- return this.switchTitle(currentTitle, __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, 'f'), this)
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
- pause () {
175
- __classPrivateFieldSet(this, _TitleSwitcher_active, false, 'f')
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
- resume () {
182
- if (!__classPrivateFieldGet(this, _TitleSwitcher_active, 'f')) {
183
- __classPrivateFieldSet(this, _TitleSwitcher_active, true, 'f')
184
- this.switchTitle(__classPrivateFieldGet(this, _TitleSwitcher_titles, 'f')[__classPrivateFieldGet(this, _TitleSwitcher_currentIndex, 'f')], __classPrivateFieldGet(this, _TitleSwitcher_switchStyle, 'f'), this)
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
- switchTitle (currentTitle, callBackFunction, self, runOnce = false) {
196
- self = self || this
197
- let currentIndex = 1
198
- const size = __classPrivateFieldGet(self, _TitleSwitcher_titles, 'f').length
199
- for (let i = 1; i < size; ++i) {
200
- if (__classPrivateFieldGet(self, _TitleSwitcher_titles, 'f')[i] === currentTitle) {
201
- currentIndex = i
202
- break
203
- }
204
- }
205
- if (!__classPrivateFieldGet(self, _TitleSwitcher_active, 'f')) {
206
- __classPrivateFieldSet(self, _TitleSwitcher_currentIndex, currentIndex, 'f')
207
- return self
208
- }
209
- const maxIndex = __classPrivateFieldGet(self, _TitleSwitcher_titles, 'f').length - 1
210
- let nextIndex = 1
211
- if (maxIndex === 1) {
212
- return callBackFunction(currentTitle, runOnce ? () => self : self.switchTitle, self, runOnce)
213
- }
214
- if (__classPrivateFieldGet(self, _TitleSwitcher_isRandom, 'f')) {
215
- if (!self.typeSurface.textContent.trim()) {
216
- currentIndex = -1
217
- }
218
- do {
219
- nextIndex = Math.round(Math.random() * (maxIndex - 1)) + 1
220
- } while (nextIndex === currentIndex)
221
- } else {
222
- if (!self.typeSurface.textContent.trim()) {
223
- currentIndex = maxIndex
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
- _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()
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
- TitleSwitcher.prototype.cursorBlink = (blinkOn, self) => {
248
- // display cursor effect
249
- self = self || void 0
250
- if (blinkOn) {
251
- self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/, '$1').trim()
252
- self.typeSurface.innerHTML = self.typeSurface.innerHTML + '<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>'
253
- } else {
254
- self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\|(<\/span>)$/, '&nbsp;$1')
255
- }
256
- return self
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(/\||&nbsp;*(<\/span>)?$/, '$1').trim();
239
+ self.typeSurface.innerHTML = self.typeSurface.innerHTML + '<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>';
240
+ } else {
241
+ self.typeSurface.innerHTML = self.typeSurface.innerHTML.replace(/\|(<\/span>)$/, '&nbsp;$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
- const typedLength = domObject => {
268
- let length = 0
269
- Array.prototype.forEach.call(domObject.childNodes, child => {
270
- if (child.nodeType === 3) {
271
- const text = child.textContent || ''
272
- let position = 0
273
- while (position < text.length) {
274
- if (/\s/.test(text[position])) {
275
- while (position < text.length && /\s/.test(text[position])) {
276
- ++position
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 if (child.nodeType === 1) {
284
- length += typedLength(child)
265
+ } else {
266
+ ++position;
285
267
  }
286
- })
287
- return length
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
- const typedPartialHtml = (domObject, remaining) => {
298
- let html = ''
299
- const children = Array.prototype.slice.call(domObject.childNodes)
300
- for (let i = 0; i < children.length && remaining > 0; ++i) {
301
- const child = children[i]
302
- if (child.nodeType === 3) {
303
- const text = child.textContent || ''
304
- let position = 0
305
- let taken = ''
306
- while (position < text.length && remaining > 0) {
307
- if (/\s/.test(text[position])) {
308
- const runStart = position
309
- while (position < text.length && /\s/.test(text[position])) {
310
- ++position
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
- html += taken
320
- } else if (child.nodeType === 1) {
321
- const result = typedPartialHtml(child, remaining)
322
- if (result.html) {
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
- return {
331
- html,
332
- remaining
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
- TitleSwitcher.prototype.typingEffect = (domObject, callBackFunction, self, runOnce = false) => {
345
- self = self || void 0
346
- const size = self.titles.length
347
- let currentIndex = 0
348
- for (let i = 1; i < size; ++i) {
349
- if (self.titles[i] === domObject) {
350
- currentIndex = i
351
- break
352
- }
353
- }
354
- domObject = domObject || self.titles[currentIndex + 1]
355
- let blinkOn = true
356
- const numBlinks = 4
357
- if (self.typeSurface.hasAttribute('style')) {
358
- self.typeSurface.removeAttribute('style')
359
- }
360
- if (domObject.hasAttribute('style')) {
361
- self.typeSurface.setAttribute('style', domObject.getAttribute('style'))
362
- }
363
- // If we copied the title style, then display:none is set, so we need to ensure the surface is display:block
364
- self.typeSurface.innerHTML = ''
365
- self.typeSurface.style.display = 'block'
366
- // Initialize with a few cursor blinks
367
- for (let i = 0; i < numBlinks; ++i) {
368
- setTimeout(() => {
369
- self.cursorBlink(blinkOn, self)
370
- blinkOn = !blinkOn
371
- }, i * self.delaySwitch)
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
- // Empty the surface, and display the cursor (cursor is always solid while typing / not flashing)
375
- self.typeSurface.innerHTML = ''
376
- self.cursorBlink(true, self)
377
- // Copy each letter from the current title, keeping whichever tags (em, strong, ...) it falls under
378
- const totalLength = typedLength(domObject)
379
- for (let i = 0; i < totalLength; ++i) {
380
- setTimeout(() => {
381
- // Reveal one more character, wrapped in whatever tags its position in the title falls under,
382
- // then append a formatted cursor on the end
383
- self.typeSurface.innerHTML = typedPartialHtml(domObject, i + 1).html + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>'
384
- // If the text content equals the title content with a cursor appended then we reached the end.
385
- if (domObject.textContent + '|' === self.typeSurface.textContent) {
386
- // Replace html with old html on last letter, so we get all the html formatting applied
387
- self.typeSurface.innerHTML = domObject.innerHTML + '<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>'
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">&#124;</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">&#124;</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
- }, { '../internals/has-own-property': 26, '../internals/object-define-property': 41, '../internals/object-get-own-property-descriptor': 42, '../internals/own-keys': 49 }],
519
- 8: [function (require, module, exports) {
520
- 'use strict'
521
- const DESCRIPTORS = require('../internals/descriptors')
522
- const definePropertyModule = require('../internals/object-define-property')
523
- const createPropertyDescriptor = require('../internals/create-property-descriptor')
524
-
525
- module.exports = DESCRIPTORS
526
- ? function (object, key, value) {
527
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value))
528
- }
529
- : function (object, key, value) {
530
- object[key] = value
531
- return object
532
- }
533
- }, { '../internals/create-property-descriptor': 9, '../internals/descriptors': 12, '../internals/object-define-property': 41 }],
534
- 9: [function (require, module, exports) {
535
- 'use strict'
536
- module.exports = function (bitmap, value) {
537
- return {
538
- enumerable: !(bitmap & 1),
539
- configurable: !(bitmap & 2),
540
- writable: !(bitmap & 4),
541
- value
542
- }
543
- }
544
- }, {}],
545
- 10: [function (require, module, exports) {
546
- 'use strict'
547
- const isCallable = require('../internals/is-callable')
548
- const definePropertyModule = require('../internals/object-define-property')
549
- const makeBuiltIn = require('../internals/make-built-in')
550
- const defineGlobalProperty = require('../internals/define-global-property')
551
-
552
- module.exports = function (O, key, value, options) {
553
- if (!options) options = {}
554
- let simple = options.enumerable
555
- const name = options.name !== undefined ? options.name : key
556
- if (isCallable(value)) makeBuiltIn(value, name, options)
557
- if (options.global) {
558
- if (simple) O[key] = value
559
- else defineGlobalProperty(key, value)
560
- } else {
561
- try {
562
- if (!options.unsafe) delete O[key]
563
- else if (O[key]) simple = true
564
- } catch (error) { /* empty */ }
565
- if (simple) O[key] = value
566
- else {
567
- definePropertyModule.f(O, key, {
568
- value,
569
- enumerable: false,
570
- configurable: !options.nonConfigurable,
571
- writable: !options.nonWritable
572
- })
573
- }
574
- } return O
575
- }
576
- }, { '../internals/define-global-property': 11, '../internals/is-callable': 32, '../internals/make-built-in': 39, '../internals/object-define-property': 41 }],
577
- 11: [function (require, module, exports) {
578
- 'use strict'
579
- const globalThis = require('../internals/global-this')
580
-
581
- // eslint-disable-next-line es/no-object-defineproperty -- safe
582
- const defineProperty = Object.defineProperty
583
-
584
- module.exports = function (key, value) {
585
- try {
586
- defineProperty(globalThis, key, { value, configurable: true, writable: true })
587
- } catch (error) {
588
- globalThis[key] = value
589
- } return value
590
- }
591
- }, { '../internals/global-this': 25 }],
592
- 12: [function (require, module, exports) {
593
- 'use strict'
594
- const fails = require('../internals/fails')
595
-
596
- // Detect IE8's incomplete defineProperty implementation
597
- module.exports = !fails(function () {
598
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
599
- return Object.defineProperty({}, 1, { get: function () { return 7 } })[1] !== 7
600
- })
601
- }, { '../internals/fails': 18 }],
602
- 13: [function (require, module, exports) {
603
- 'use strict'
604
- const globalThis = require('../internals/global-this')
605
- const isObject = require('../internals/is-object')
606
-
607
- const document = globalThis.document
608
- // typeof document.createElement is 'object' in old IE
609
- const EXISTS = isObject(document) && isObject(document.createElement)
610
-
611
- module.exports = function (it) {
612
- return EXISTS ? document.createElement(it) : {}
613
- }
614
- }, { '../internals/global-this': 25, '../internals/is-object': 35 }],
615
- 14: [function (require, module, exports) {
616
- 'use strict'
617
- // IE8- don't enum bug keys
618
- module.exports = [
619
- 'constructor',
620
- 'hasOwnProperty',
621
- 'isPrototypeOf',
622
- 'propertyIsEnumerable',
623
- 'toLocaleString',
624
- 'toString',
625
- 'valueOf'
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
- module.exports = version
666
- }, { '../internals/environment-user-agent': 15, '../internals/global-this': 25 }],
667
- 17: [function (require, module, exports) {
668
- 'use strict'
669
- const globalThis = require('../internals/global-this')
670
- const getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f
671
- const createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
672
- const defineBuiltIn = require('../internals/define-built-in')
673
- const defineGlobalProperty = require('../internals/define-global-property')
674
- const copyConstructorProperties = require('../internals/copy-constructor-properties')
675
- const isForced = require('../internals/is-forced')
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
- module.exports = function (options, source) {
693
- const TARGET = options.target
694
- const GLOBAL = options.global
695
- const STATIC = options.stat
696
- let FORCED, target, key, targetProperty, sourceProperty, descriptor
697
- if (GLOBAL) {
698
- target = globalThis
699
- } else if (STATIC) {
700
- target = globalThis[TARGET] || defineGlobalProperty(TARGET, {})
701
- } else {
702
- target = globalThis[TARGET] && globalThis[TARGET].prototype
703
- }
704
- if (target) {
705
- for (key in source) {
706
- sourceProperty = source[key]
707
- if (options.dontCallGetSet) {
708
- descriptor = getOwnPropertyDescriptor(target, key)
709
- targetProperty = descriptor && descriptor.value
710
- } else targetProperty = target[key]
711
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced)
712
- // contained in target
713
- if (!FORCED && targetProperty !== undefined) {
714
- if (typeof sourceProperty === typeof targetProperty) continue
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
- }, { '../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 }],
726
- 18: [function (require, module, exports) {
727
- 'use strict'
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
- 19: [function (require, module, exports) {
737
- 'use strict'
738
- const fails = require('../internals/fails')
739
-
740
- module.exports = !fails(function () {
741
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
742
- const test = function () { /* empty */ }.bind()
743
- // eslint-disable-next-line no-prototype-builtins -- safe
744
- return typeof test !== 'function' || test.hasOwnProperty('prototype')
745
- })
746
- }, { '../internals/fails': 18 }],
747
- 20: [function (require, module, exports) {
748
- 'use strict'
749
- const NATIVE_BIND = require('../internals/function-bind-native')
750
-
751
- const call = Function.prototype.call
752
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
753
- module.exports = NATIVE_BIND
754
- ? call.bind(call)
755
- : function () {
756
- return call.apply(call, arguments)
757
- }
758
- }, { '../internals/function-bind-native': 19 }],
759
- 21: [function (require, module, exports) {
760
- 'use strict'
761
- const DESCRIPTORS = require('../internals/descriptors')
762
- const hasOwn = require('../internals/has-own-property')
763
-
764
- const FunctionPrototype = Function.prototype
765
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
766
- const getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor
767
-
768
- const EXISTS = hasOwn(FunctionPrototype, 'name')
769
- // additional protection from minified / mangled / dropped function names
770
- const PROPER = EXISTS && function something () { /* empty */ }.name === 'something'
771
- const CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable))
772
-
773
- module.exports = {
774
- EXISTS,
775
- PROPER,
776
- CONFIGURABLE
777
- }
778
- }, { '../internals/descriptors': 12, '../internals/has-own-property': 26 }],
779
- 22: [function (require, module, exports) {
780
- 'use strict'
781
- const NATIVE_BIND = require('../internals/function-bind-native')
782
-
783
- const FunctionPrototype = Function.prototype
784
- const call = FunctionPrototype.call
785
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
786
- const uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call)
787
-
788
- module.exports = NATIVE_BIND
789
- ? uncurryThisWithBind
790
- : function (fn) {
791
- return function () {
792
- return call.apply(fn, arguments)
793
- }
794
- }
795
- }, { '../internals/function-bind-native': 19 }],
796
- 23: [function (require, module, exports) {
797
- 'use strict'
798
- const globalThis = require('../internals/global-this')
799
- const isCallable = require('../internals/is-callable')
800
-
801
- const aFunction = function (argument) {
802
- return isCallable(argument) ? argument : undefined
803
- }
804
-
805
- module.exports = function (namespace, method) {
806
- return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]
807
- }
808
- }, { '../internals/global-this': 25, '../internals/is-callable': 32 }],
809
- 24: [function (require, module, exports) {
810
- 'use strict'
811
- const aCallable = require('../internals/a-callable')
812
- const isNullOrUndefined = require('../internals/is-null-or-undefined')
813
-
814
- // `GetMethod` abstract operation
815
- // https://tc39.es/ecma262/#sec-getmethod
816
- module.exports = function (V, P) {
817
- const func = V[P]
818
- return isNullOrUndefined(func) ? undefined : aCallable(func)
819
- }
820
- }, { '../internals/a-callable': 2, '../internals/is-null-or-undefined': 34 }],
821
- 25: [function (require, module, exports) {
822
- (function (global) {
823
- (function () {
824
- 'use strict'
825
- const check = function (it) {
826
- return it && it.Math === Math && it
827
- }
828
-
829
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
830
- module.exports =
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 === 'object' && globalThis) ||
833
- check(typeof window === 'object' && 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 === 'object' && self) ||
836
- check(typeof global === 'object' && global) ||
837
- check(typeof this === 'object' && 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
- }).call(this)
841
- }).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
842
- }, {}],
843
- 26: [function (require, module, exports) {
844
- 'use strict'
845
- const uncurryThis = require('../internals/function-uncurry-this')
846
- const toObject = require('../internals/to-object')
847
-
848
- const hasOwnProperty = uncurryThis({}.hasOwnProperty)
849
-
850
- // `HasOwnProperty` abstract operation
851
- // https://tc39.es/ecma262/#sec-hasownproperty
852
- // eslint-disable-next-line es/no-object-hasown -- safe
853
- module.exports = Object.hasOwn || function hasOwn (it, key) {
854
- return hasOwnProperty(toObject(it), key)
855
- }
856
- }, { '../internals/function-uncurry-this': 22, '../internals/to-object': 59 }],
857
- 27: [function (require, module, exports) {
858
- 'use strict'
859
- module.exports = {}
860
- }, {}],
861
- 28: [function (require, module, exports) {
862
- 'use strict'
863
- const DESCRIPTORS = require('../internals/descriptors')
864
- const fails = require('../internals/fails')
865
- const createElement = require('../internals/document-create-element')
866
-
867
- // Thanks to IE8 for its funny defineProperty
868
- module.exports = !DESCRIPTORS && !fails(function () {
869
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
870
- return Object.defineProperty(createElement('div'), 'a', {
871
- get: function () { return 7 }
872
- }).a !== 7
873
- })
874
- }, { '../internals/descriptors': 12, '../internals/document-create-element': 13, '../internals/fails': 18 }],
875
- 29: [function (require, module, exports) {
876
- 'use strict'
877
- const uncurryThis = require('../internals/function-uncurry-this')
878
- const fails = require('../internals/fails')
879
- const classof = require('../internals/classof-raw')
880
-
881
- const $Object = Object
882
- const split = uncurryThis(''.split)
883
-
884
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
885
- module.exports = fails(function () {
886
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
887
- // eslint-disable-next-line no-prototype-builtins -- safe
888
- return !$Object('z').propertyIsEnumerable(0)
889
- }) ? function (it) {
890
- return classof(it) === 'String' ? split(it, '') : $Object(it)
891
- } : $Object
892
- }, { '../internals/classof-raw': 6, '../internals/fails': 18, '../internals/function-uncurry-this': 22 }],
893
- 30: [function (require, module, exports) {
894
- 'use strict'
895
- const uncurryThis = require('../internals/function-uncurry-this')
896
- const isCallable = require('../internals/is-callable')
897
- const store = require('../internals/shared-store')
898
-
899
- const functionToString = uncurryThis(Function.toString)
900
-
901
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
902
- if (!isCallable(store.inspectSource)) {
903
- store.inspectSource = function (it) {
904
- return functionToString(it)
905
- }
906
- }
907
-
908
- module.exports = store.inspectSource
909
- }, { '../internals/function-uncurry-this': 22, '../internals/is-callable': 32, '../internals/shared-store': 52 }],
910
- 31: [function (require, module, exports) {
911
- 'use strict'
912
- const NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection')
913
- const globalThis = require('../internals/global-this')
914
- const isObject = require('../internals/is-object')
915
- const createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
916
- const hasOwn = require('../internals/has-own-property')
917
- const shared = require('../internals/shared-store')
918
- const sharedKey = require('../internals/shared-key')
919
- const hiddenKeys = require('../internals/hidden-keys')
920
-
921
- const OBJECT_ALREADY_INITIALIZED = 'Object already initialized'
922
- const TypeError = globalThis.TypeError
923
- const WeakMap = globalThis.WeakMap
924
- let set, get, has
925
-
926
- const enforce = function (it) {
927
- return has(it) ? get(it) : set(it, {})
928
- }
929
-
930
- const getterFor = function (TYPE) {
931
- return function (it) {
932
- let state
933
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
934
- throw new TypeError('Incompatible receiver, ' + TYPE + ' required')
935
- } return state
936
- }
937
- }
938
-
939
- if (NATIVE_WEAK_MAP || shared.state) {
940
- const store = shared.state || (shared.state = new WeakMap())
941
- /* eslint-disable no-self-assign -- prototype methods protection */
942
- store.get = store.get
943
- store.has = store.has
944
- store.set = store.set
945
- /* eslint-enable no-self-assign -- prototype methods protection */
946
- set = function (it, metadata) {
947
- if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED)
948
- metadata.facade = it
949
- store.set(it, metadata)
950
- return metadata
951
- }
952
- get = function (it) {
953
- return store.get(it) || {}
954
- }
955
- has = function (it) {
956
- return store.has(it)
957
- }
958
- } else {
959
- const STATE = sharedKey('state')
960
- hiddenKeys[STATE] = true
961
- set = function (it, metadata) {
962
- if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED)
963
- metadata.facade = it
964
- createNonEnumerableProperty(it, STATE, metadata)
965
- return metadata
966
- }
967
- get = function (it) {
968
- return hasOwn(it, STATE) ? it[STATE] : {}
969
- }
970
- has = function (it) {
971
- return hasOwn(it, STATE)
972
- }
973
- }
974
-
975
- module.exports = {
976
- set,
977
- get,
978
- has,
979
- enforce,
980
- getterFor
981
- }
982
- }, { '../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 }],
983
- 32: [function (require, module, exports) {
984
- 'use strict'
985
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
986
- const documentAll = typeof document === 'object' && document.all
987
-
988
- // `IsCallable` abstract operation
989
- // https://tc39.es/ecma262/#sec-iscallable
990
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
991
- module.exports = typeof documentAll === 'undefined' && documentAll !== undefined
992
- ? function (argument) {
993
- return typeof argument === 'function' || argument === documentAll
994
- }
995
- : function (argument) {
996
- return typeof argument === 'function'
997
- }
998
- }, {}],
999
- 33: [function (require, module, exports) {
1000
- 'use strict'
1001
- const fails = require('../internals/fails')
1002
- const isCallable = require('../internals/is-callable')
1003
-
1004
- const replacement = /#|\.prototype\./
1005
-
1006
- const isForced = function (feature, detection) {
1007
- const value = data[normalize(feature)]
1008
- return value === POLYFILL
1009
- ? true
1010
- : value === NATIVE
1011
- ? false
1012
- : isCallable(detection)
1013
- ? fails(detection)
1014
- : !!detection
1015
- }
1016
-
1017
- var normalize = isForced.normalize = function (string) {
1018
- return String(string).replace(replacement, '.').toLowerCase()
1019
- }
1020
-
1021
- var data = isForced.data = {}
1022
- var NATIVE = isForced.NATIVE = 'N'
1023
- var POLYFILL = isForced.POLYFILL = 'P'
1024
-
1025
- module.exports = isForced
1026
- }, { '../internals/fails': 18, '../internals/is-callable': 32 }],
1027
- 34: [function (require, module, exports) {
1028
- 'use strict'
1029
- // we can't use just `it == null` since of `document.all` special case
1030
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
1031
- module.exports = function (it) {
1032
- return it === null || it === undefined
1033
- }
1034
- }, {}],
1035
- 35: [function (require, module, exports) {
1036
- 'use strict'
1037
- const isCallable = require('../internals/is-callable')
1038
-
1039
- module.exports = function (it) {
1040
- return typeof it === 'object' ? it !== null : isCallable(it)
1041
- }
1042
- }, { '../internals/is-callable': 32 }],
1043
- 36: [function (require, module, exports) {
1044
- 'use strict'
1045
- module.exports = false
1046
- }, {}],
1047
- 37: [function (require, module, exports) {
1048
- 'use strict'
1049
- const getBuiltIn = require('../internals/get-built-in')
1050
- const isCallable = require('../internals/is-callable')
1051
- const isPrototypeOf = require('../internals/object-is-prototype-of')
1052
- const USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
1053
-
1054
- const $Object = Object
1055
-
1056
- module.exports = USE_SYMBOL_AS_UID
1057
- ? function (it) {
1058
- return typeof it === 'symbol'
1059
- }
1060
- : function (it) {
1061
- const $Symbol = getBuiltIn('Symbol')
1062
- return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it))
1063
- }
1064
- }, { '../internals/get-built-in': 23, '../internals/is-callable': 32, '../internals/object-is-prototype-of': 45, '../internals/use-symbol-as-uid': 64 }],
1065
- 38: [function (require, module, exports) {
1066
- 'use strict'
1067
- const toLength = require('../internals/to-length')
1068
-
1069
- // `LengthOfArrayLike` abstract operation
1070
- // https://tc39.es/ecma262/#sec-lengthofarraylike
1071
- module.exports = function (obj) {
1072
- return toLength(obj.length)
1073
- }
1074
- }, { '../internals/to-length': 58 }],
1075
- 39: [function (require, module, exports) {
1076
- 'use strict'
1077
- const uncurryThis = require('../internals/function-uncurry-this')
1078
- const fails = require('../internals/fails')
1079
- const isCallable = require('../internals/is-callable')
1080
- const hasOwn = require('../internals/has-own-property')
1081
- const DESCRIPTORS = require('../internals/descriptors')
1082
- const CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE
1083
- const inspectSource = require('../internals/inspect-source')
1084
- const InternalStateModule = require('../internals/internal-state')
1085
-
1086
- const enforceInternalState = InternalStateModule.enforce
1087
- const getInternalState = InternalStateModule.get
1088
- const $String = String
1089
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1090
- const defineProperty = Object.defineProperty
1091
- const stringSlice = uncurryThis(''.slice)
1092
- const replace = uncurryThis(''.replace)
1093
- const join = uncurryThis([].join)
1094
-
1095
- const CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
1096
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8
1097
- })
1098
-
1099
- const TEMPLATE = String(String).split('String')
1100
-
1101
- const makeBuiltIn = module.exports = function (value, name, options) {
1102
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
1103
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'
1104
- }
1105
- if (options && options.getter) name = 'get ' + name
1106
- if (options && options.setter) name = 'set ' + name
1107
- if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
1108
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true })
1109
- else value.name = name
1110
- }
1111
- if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
1112
- defineProperty(value, 'length', { value: options.arity })
1113
- }
1114
- try {
1115
- if (options && hasOwn(options, 'constructor') && options.constructor) {
1116
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false })
1117
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1118
- } else if (value.prototype) value.prototype = undefined
1119
- } catch (error) { /* empty */ }
1120
- const state = enforceInternalState(value)
1121
- if (!hasOwn(state, 'source')) {
1122
- state.source = join(TEMPLATE, typeof name === 'string' ? name : '')
1123
- } return value
1124
- }
1125
-
1126
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1127
- // eslint-disable-next-line no-extend-native -- required
1128
- Function.prototype.toString = makeBuiltIn(function toString () {
1129
- return isCallable(this) && getInternalState(this).source || inspectSource(this)
1130
- }, 'toString')
1131
- }, { '../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 }],
1132
- 40: [function (require, module, exports) {
1133
- 'use strict'
1134
- const ceil = Math.ceil
1135
- const floor = Math.floor
1136
-
1137
- // `Math.trunc` method
1138
- // https://tc39.es/ecma262/#sec-math.trunc
1139
- // eslint-disable-next-line es/no-math-trunc -- safe
1140
- module.exports = Math.trunc || function trunc (x) {
1141
- const n = +x
1142
- return (n > 0 ? floor : ceil)(n)
1143
- }
1144
- }, {}],
1145
- 41: [function (require, module, exports) {
1146
- 'use strict'
1147
- const DESCRIPTORS = require('../internals/descriptors')
1148
- const IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
1149
- const V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
1150
- const anObject = require('../internals/an-object')
1151
- const toPropertyKey = require('../internals/to-property-key')
1152
-
1153
- const $TypeError = TypeError
1154
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1155
- const $defineProperty = Object.defineProperty
1156
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1157
- const $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
1158
- const ENUMERABLE = 'enumerable'
1159
- const CONFIGURABLE = 'configurable'
1160
- const WRITABLE = 'writable'
1161
-
1162
- // `Object.defineProperty` method
1163
- // https://tc39.es/ecma262/#sec-object.defineproperty
1164
- exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG
1165
- ? function defineProperty (O, P, Attributes) {
1166
- anObject(O)
1167
- P = toPropertyKey(P)
1168
- anObject(Attributes)
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
- }, { '../internals/shared-store': 52 }],
1376
- 54: [function (require, module, exports) {
1377
- 'use strict'
1378
- /* eslint-disable es/no-symbol -- required for testing */
1379
- const V8_VERSION = require('../internals/environment-v8-version')
1380
- const fails = require('../internals/fails')
1381
- const globalThis = require('../internals/global-this')
1382
-
1383
- const $String = globalThis.String
1384
-
1385
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1386
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
1387
- const symbol = Symbol('symbol detection')
1388
- // Chrome 38 Symbol has incorrect toString conversion
1389
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1390
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1391
- // of course, fail.
1392
- return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
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
- }, { '../internals/environment-v8-version': 16, '../internals/fails': 18, '../internals/global-this': 25 }],
1397
- 55: [function (require, module, exports) {
1398
- 'use strict'
1399
- const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
1400
-
1401
- const max = Math.max
1402
- const min = Math.min
1403
-
1404
- // Helper for a popular repeating case of the spec:
1405
- // Let integer be ? ToInteger(index).
1406
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1407
- module.exports = function (index, length) {
1408
- const integer = toIntegerOrInfinity(index)
1409
- return integer < 0 ? max(integer + length, 0) : min(integer, length)
1410
- }
1411
- }, { '../internals/to-integer-or-infinity': 57 }],
1412
- 56: [function (require, module, exports) {
1413
- 'use strict'
1414
- // toObject with fallback for non-array-like ES3 strings
1415
- const IndexedObject = require('../internals/indexed-object')
1416
- const requireObjectCoercible = require('../internals/require-object-coercible')
1417
-
1418
- module.exports = function (it) {
1419
- return IndexedObject(requireObjectCoercible(it))
1420
- }
1421
- }, { '../internals/indexed-object': 29, '../internals/require-object-coercible': 50 }],
1422
- 57: [function (require, module, exports) {
1423
- 'use strict'
1424
- const trunc = require('../internals/math-trunc')
1425
-
1426
- // `ToIntegerOrInfinity` abstract operation
1427
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
1428
- module.exports = function (argument) {
1429
- const number = +argument
1430
- // eslint-disable-next-line no-self-compare -- NaN check
1431
- return number !== number || number === 0 ? 0 : trunc(number)
1432
- }
1433
- }, { '../internals/math-trunc': 40 }],
1434
- 58: [function (require, module, exports) {
1435
- 'use strict'
1436
- const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
1437
-
1438
- const min = Math.min
1439
-
1440
- // `ToLength` abstract operation
1441
- // https://tc39.es/ecma262/#sec-tolength
1442
- module.exports = function (argument) {
1443
- const len = toIntegerOrInfinity(argument)
1444
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
1445
- }
1446
- }, { '../internals/to-integer-or-infinity': 57 }],
1447
- 59: [function (require, module, exports) {
1448
- 'use strict'
1449
- const requireObjectCoercible = require('../internals/require-object-coercible')
1450
-
1451
- const $Object = Object
1452
-
1453
- // `ToObject` abstract operation
1454
- // https://tc39.es/ecma262/#sec-toobject
1455
- module.exports = function (argument) {
1456
- return $Object(requireObjectCoercible(argument))
1457
- }
1458
- }, { '../internals/require-object-coercible': 50 }],
1459
- 60: [function (require, module, exports) {
1460
- 'use strict'
1461
- const call = require('../internals/function-call')
1462
- const isObject = require('../internals/is-object')
1463
- const isSymbol = require('../internals/is-symbol')
1464
- const getMethod = require('../internals/get-method')
1465
- const ordinaryToPrimitive = require('../internals/ordinary-to-primitive')
1466
- const wellKnownSymbol = require('../internals/well-known-symbol')
1467
-
1468
- const $TypeError = TypeError
1469
- const TO_PRIMITIVE = wellKnownSymbol('toPrimitive')
1470
-
1471
- // `ToPrimitive` abstract operation
1472
- // https://tc39.es/ecma262/#sec-toprimitive
1473
- module.exports = function (input, pref) {
1474
- if (!isObject(input) || isSymbol(input)) return input
1475
- const exoticToPrim = getMethod(input, TO_PRIMITIVE)
1476
- let result
1477
- if (exoticToPrim) {
1478
- if (pref === undefined) pref = 'default'
1479
- result = call(exoticToPrim, input, pref)
1480
- if (!isObject(result) || isSymbol(result)) return result
1481
- throw new $TypeError("Can't convert object to primitive value")
1482
- }
1483
- if (pref === undefined) pref = 'number'
1484
- return ordinaryToPrimitive(input, pref)
1485
- }
1486
- }, { '../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 }],
1487
- 61: [function (require, module, exports) {
1488
- 'use strict'
1489
- const toPrimitive = require('../internals/to-primitive')
1490
- const isSymbol = require('../internals/is-symbol')
1491
-
1492
- // `ToPropertyKey` abstract operation
1493
- // https://tc39.es/ecma262/#sec-topropertykey
1494
- module.exports = function (argument) {
1495
- const key = toPrimitive(argument, 'string')
1496
- return isSymbol(key) ? key : key + ''
1497
- }
1498
- }, { '../internals/is-symbol': 37, '../internals/to-primitive': 60 }],
1499
- 62: [function (require, module, exports) {
1500
- 'use strict'
1501
- const $String = String
1502
-
1503
- module.exports = function (argument) {
1504
- try {
1505
- return $String(argument)
1506
- } catch (error) {
1507
- return 'Object'
1508
- }
1509
- }
1510
- }, {}],
1511
- 63: [function (require, module, exports) {
1512
- 'use strict'
1513
- const uncurryThis = require('../internals/function-uncurry-this')
1514
-
1515
- let id = 0
1516
- const postfix = Math.random()
1517
- const toString = uncurryThis(1.1.toString)
1518
-
1519
- module.exports = function (key) {
1520
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36)
1521
- }
1522
- }, { '../internals/function-uncurry-this': 22 }],
1523
- 64: [function (require, module, exports) {
1524
- 'use strict'
1525
- /* eslint-disable es/no-symbol -- required for testing */
1526
- const NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
1527
-
1528
- module.exports = NATIVE_SYMBOL &&
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 === 'symbol'
1531
- }, { '../internals/symbol-constructor-detection': 54 }],
1532
- 65: [function (require, module, exports) {
1533
- 'use strict'
1534
- const DESCRIPTORS = require('../internals/descriptors')
1535
- const fails = require('../internals/fails')
1536
-
1537
- // V8 ~ Chrome 36-
1538
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1539
- module.exports = DESCRIPTORS && fails(function () {
1540
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1541
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1542
- value: 42,
1543
- writable: false
1544
- }).prototype !== 42
1545
- })
1546
- }, { '../internals/descriptors': 12, '../internals/fails': 18 }],
1547
- 66: [function (require, module, exports) {
1548
- 'use strict'
1549
- const globalThis = require('../internals/global-this')
1550
- const isCallable = require('../internals/is-callable')
1551
-
1552
- const WeakMap = globalThis.WeakMap
1553
-
1554
- module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap))
1555
- }, { '../internals/global-this': 25, '../internals/is-callable': 32 }],
1556
- 67: [function (require, module, exports) {
1557
- 'use strict'
1558
- const uncurryThis = require('../internals/function-uncurry-this')
1559
-
1560
- // eslint-disable-next-line es/no-weak-map -- safe
1561
- const WeakMapPrototype = WeakMap.prototype
1562
-
1563
- module.exports = {
1564
- // eslint-disable-next-line es/no-weak-map -- safe
1565
- WeakMap,
1566
- set: uncurryThis(WeakMapPrototype.set),
1567
- get: uncurryThis(WeakMapPrototype.get),
1568
- has: uncurryThis(WeakMapPrototype.has),
1569
- remove: uncurryThis(WeakMapPrototype.delete)
1570
- }
1571
- }, { '../internals/function-uncurry-this': 22 }],
1572
- 68: [function (require, module, exports) {
1573
- 'use strict'
1574
- const globalThis = require('../internals/global-this')
1575
- const shared = require('../internals/shared')
1576
- const hasOwn = require('../internals/has-own-property')
1577
- const uid = require('../internals/uid')
1578
- const NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
1579
- const USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
1580
-
1581
- const Symbol = globalThis.Symbol
1582
- const WellKnownSymbolsStore = shared('wks')
1583
- const createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol.for || Symbol : Symbol && Symbol.withoutSetter || uid
1584
-
1585
- module.exports = function (name) {
1586
- if (!hasOwn(WellKnownSymbolsStore, name)) {
1587
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
1588
- ? Symbol[name]
1589
- : createWellKnownSymbol('Symbol.' + name)
1590
- } return WellKnownSymbolsStore[name]
1591
- }
1592
- }, { '../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 }],
1593
- 69: [function (require, module, exports) {
1594
- 'use strict'
1595
- const $ = require('../internals/export')
1596
- const aWeakMap = require('../internals/a-weak-map')
1597
- const remove = require('../internals/weak-map-helpers').remove
1598
-
1599
- // `WeakMap.prototype.deleteAll` method
1600
- // https://github.com/tc39/proposal-collection-methods
1601
- $({ target: 'WeakMap', proto: true, real: true, forced: true }, {
1602
- deleteAll: function deleteAll (/* ...elements */) {
1603
- const collection = aWeakMap(this)
1604
- let allDeleted = true
1605
- let wasDeleted
1606
- for (let k = 0, len = arguments.length; k < len; k++) {
1607
- wasDeleted = remove(collection, arguments[k])
1608
- allDeleted = allDeleted && wasDeleted
1609
- } return !!allDeleted
1610
- }
1611
- })
1612
- }, { '../internals/a-weak-map': 3, '../internals/export': 17, '../internals/weak-map-helpers': 67 }]
1613
- }, {}, [1])
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
+ });