pseudo-dom 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +774 -0
- package/browser/pseudo-dom.js +1266 -260
- package/browser/pseudo-dom.min.js +1 -1
- package/dist/factories/createEvent.d.ts +28 -0
- package/dist/factories/createEvent.js +56 -0
- package/dist/factories/createEvent.min.js +1 -0
- package/dist/factories/eventDefaults.d.ts +31 -0
- package/dist/factories/eventDefaults.js +105 -0
- package/dist/factories/eventDefaults.min.js +1 -0
- package/dist/factories.d.ts +6 -0
- package/dist/factories.js +5 -1
- package/dist/factories.min.js +1 -1
- package/dist/functions/activeElement.d.ts +14 -0
- package/dist/functions/activeElement.js +33 -0
- package/dist/functions/activeElement.min.js +1 -0
- package/dist/functions/modifierState.d.ts +29 -0
- package/dist/functions/modifierState.js +41 -0
- package/dist/functions/modifierState.min.js +1 -0
- package/dist/main.d.ts +32 -1
- package/dist/main.js +66 -1
- package/dist/main.min.js +1 -1
- package/dist/services/CustomEventService.d.ts +37 -0
- package/dist/services/CustomEventService.js +35 -0
- package/dist/services/CustomEventService.min.js +1 -0
- package/dist/services/ElementService.js +13 -13
- package/dist/services/ElementService.min.js +1 -1
- package/dist/services/EventService.d.ts +2 -0
- package/dist/services/EventService.js +7 -1
- package/dist/services/EventService.min.js +1 -1
- package/dist/services/FocusEventService.d.ts +32 -0
- package/dist/services/FocusEventService.js +35 -0
- package/dist/services/FocusEventService.min.js +1 -0
- package/dist/services/HTMLElementService.d.ts +20 -0
- package/dist/services/HTMLElementService.js +95 -0
- package/dist/services/HTMLElementService.min.js +1 -1
- package/dist/services/InputEventService.d.ts +41 -0
- package/dist/services/InputEventService.js +47 -0
- package/dist/services/InputEventService.min.js +1 -0
- package/dist/services/KeyboardEventService.d.ts +70 -0
- package/dist/services/KeyboardEventService.js +86 -0
- package/dist/services/KeyboardEventService.min.js +1 -0
- package/dist/services/MouseEventService.d.ts +80 -0
- package/dist/services/MouseEventService.js +108 -0
- package/dist/services/MouseEventService.min.js +1 -0
- package/dist/services/PointerEventService.d.ts +51 -0
- package/dist/services/PointerEventService.js +67 -0
- package/dist/services/PointerEventService.min.js +1 -0
- package/dist/services/UIEventService.d.ts +43 -0
- package/dist/services/UIEventService.js +42 -0
- package/dist/services/UIEventService.min.js +1 -0
- package/dist/simulate.d.ts +32 -0
- package/dist/simulate.js +115 -0
- package/dist/simulate.min.js +1 -0
- package/package.json +1 -1
package/browser/pseudo-dom.js
CHANGED
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
exports.default = PseudoEventListener
|
|
154
|
-
}, { '../services/EventService':
|
|
154
|
+
}, { '../services/EventService': 17 }],
|
|
155
155
|
2: [function (require, module, exports) {
|
|
156
156
|
'use strict'
|
|
157
157
|
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.default = PseudoHTMLDocument
|
|
222
|
-
}, { '../services/HTMLElementService':
|
|
222
|
+
}, { '../services/HTMLElementService': 20 }],
|
|
223
223
|
3: [function (require, module, exports) {
|
|
224
224
|
'use strict'
|
|
225
225
|
|
|
@@ -292,10 +292,175 @@
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
exports.PseudoNodeList = PseudoNodeList
|
|
295
|
-
}, { 'collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList':
|
|
295
|
+
}, { 'collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList': 35, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.map.js': 148 }],
|
|
296
296
|
4: [function (require, module, exports) {
|
|
297
297
|
'use strict'
|
|
298
298
|
|
|
299
|
+
Object.defineProperty(exports, '__esModule', {
|
|
300
|
+
value: true
|
|
301
|
+
})
|
|
302
|
+
exports.createEvent = void 0
|
|
303
|
+
const EventService_1 = require('../services/EventService')
|
|
304
|
+
const UIEventService_1 = require('../services/UIEventService')
|
|
305
|
+
const MouseEventService_1 = require('../services/MouseEventService')
|
|
306
|
+
const PointerEventService_1 = require('../services/PointerEventService')
|
|
307
|
+
const KeyboardEventService_1 = require('../services/KeyboardEventService')
|
|
308
|
+
const FocusEventService_1 = require('../services/FocusEventService')
|
|
309
|
+
const InputEventService_1 = require('../services/InputEventService')
|
|
310
|
+
const CustomEventService_1 = require('../services/CustomEventService')
|
|
311
|
+
const eventDefaults_1 = require('./eventDefaults')
|
|
312
|
+
const eventClasses = {
|
|
313
|
+
Event: EventService_1.EventService,
|
|
314
|
+
UIEvent: UIEventService_1.UIEventService,
|
|
315
|
+
MouseEvent: MouseEventService_1.MouseEventService,
|
|
316
|
+
PointerEvent: PointerEventService_1.PointerEventService,
|
|
317
|
+
KeyboardEvent: KeyboardEventService_1.KeyboardEventService,
|
|
318
|
+
FocusEvent: FocusEventService_1.FocusEventService,
|
|
319
|
+
InputEvent: InputEventService_1.InputEventService,
|
|
320
|
+
CustomEvent: CustomEventService_1.CustomEventService
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Create an event of the kind which suits its type (a click is a MouseEvent, a keydown a KeyboardEvent, ...).
|
|
324
|
+
* By default this is like using the constructor of the event in a script: nothing bubbles or can be cancelled unless
|
|
325
|
+
* the init says so, and the event is not trusted. With browser: true the event is created the way the browser creates
|
|
326
|
+
* it, using the standard options for its type (see eventDefaults), and trusted: true makes it look like it came from a
|
|
327
|
+
* real user action (isTrusted).
|
|
328
|
+
* @function createEvent
|
|
329
|
+
* @param {string} type The type of the event, such as click
|
|
330
|
+
* @param {Object} [init={}] The options for the event (bubbles, cancelable, composed and those of its kind of event)
|
|
331
|
+
* @param {CreateEventOptions} [options={}] Whether the browser is creating the event, and whether it is trusted
|
|
332
|
+
* @returns {EventService}
|
|
333
|
+
*/
|
|
334
|
+
const createEvent = (type, init = {}, {
|
|
335
|
+
browser = false,
|
|
336
|
+
trusted = false
|
|
337
|
+
} = {}) => {
|
|
338
|
+
const definition = eventDefaults_1.eventDefaults[type]
|
|
339
|
+
const options = browser && definition
|
|
340
|
+
? Object.assign({
|
|
341
|
+
bubbles: definition.bubbles,
|
|
342
|
+
cancelable: definition.cancelable,
|
|
343
|
+
composed: definition.composed
|
|
344
|
+
}, init)
|
|
345
|
+
: init
|
|
346
|
+
const EventClass = eventClasses[definition ? definition.interface : 'Event']
|
|
347
|
+
const event = new EventClass(type, options)
|
|
348
|
+
event.inner.trusted = trusted
|
|
349
|
+
return event
|
|
350
|
+
}
|
|
351
|
+
exports.createEvent = createEvent
|
|
352
|
+
exports.default = exports.createEvent
|
|
353
|
+
}, { '../services/CustomEventService': 14, '../services/EventService': 17, '../services/FocusEventService': 19, '../services/InputEventService': 21, '../services/KeyboardEventService': 22, '../services/MouseEventService': 23, '../services/PointerEventService': 26, '../services/UIEventService': 27, './eventDefaults': 5 }],
|
|
354
|
+
5: [function (require, module, exports) {
|
|
355
|
+
'use strict'
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @file The standard event types of the browser, and how the browser creates them.
|
|
359
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
360
|
+
* @version 1.0.0
|
|
361
|
+
*/
|
|
362
|
+
Object.defineProperty(exports, '__esModule', {
|
|
363
|
+
value: true
|
|
364
|
+
})
|
|
365
|
+
exports.eventDefaults = void 0
|
|
366
|
+
const define = (bubbles, cancelable, composed, eventInterface = 'Event') => ({
|
|
367
|
+
bubbles,
|
|
368
|
+
cancelable,
|
|
369
|
+
composed,
|
|
370
|
+
interface: eventInterface
|
|
371
|
+
})
|
|
372
|
+
/**
|
|
373
|
+
* The events which the browser itself creates (for a user action, or for something like element.click()) have these
|
|
374
|
+
* options. A script which creates an event with the constructor gets none of them (everything is false) unless it asks
|
|
375
|
+
* for them, which is why createEvent only uses this table when it is told the browser is creating the event.
|
|
376
|
+
* The values follow the UI Events, HTML, Pointer Events, Clipboard, Drag and Drop, Touch and CSS specifications.
|
|
377
|
+
* @type {Object.<string, EventDefinition>}
|
|
378
|
+
*/
|
|
379
|
+
exports.eventDefaults = {
|
|
380
|
+
// Mouse (UI Events)
|
|
381
|
+
click: define(true, true, true, 'MouseEvent'),
|
|
382
|
+
auxclick: define(true, true, true, 'MouseEvent'),
|
|
383
|
+
dblclick: define(true, true, true, 'MouseEvent'),
|
|
384
|
+
contextmenu: define(true, true, true, 'MouseEvent'),
|
|
385
|
+
mousedown: define(true, true, true, 'MouseEvent'),
|
|
386
|
+
mouseup: define(true, true, true, 'MouseEvent'),
|
|
387
|
+
mousemove: define(true, true, true, 'MouseEvent'),
|
|
388
|
+
mouseover: define(true, true, true, 'MouseEvent'),
|
|
389
|
+
mouseout: define(true, true, true, 'MouseEvent'),
|
|
390
|
+
mouseenter: define(false, false, true, 'MouseEvent'),
|
|
391
|
+
mouseleave: define(false, false, true, 'MouseEvent'),
|
|
392
|
+
wheel: define(true, true, true, 'MouseEvent'),
|
|
393
|
+
// Pointer (Pointer Events)
|
|
394
|
+
pointerdown: define(true, true, true, 'PointerEvent'),
|
|
395
|
+
pointerup: define(true, true, true, 'PointerEvent'),
|
|
396
|
+
pointermove: define(true, true, true, 'PointerEvent'),
|
|
397
|
+
pointerover: define(true, true, true, 'PointerEvent'),
|
|
398
|
+
pointerout: define(true, true, true, 'PointerEvent'),
|
|
399
|
+
pointerenter: define(false, false, true, 'PointerEvent'),
|
|
400
|
+
pointerleave: define(false, false, true, 'PointerEvent'),
|
|
401
|
+
pointercancel: define(true, false, true, 'PointerEvent'),
|
|
402
|
+
gotpointercapture: define(true, false, true, 'PointerEvent'),
|
|
403
|
+
lostpointercapture: define(true, false, true, 'PointerEvent'),
|
|
404
|
+
// Keyboard (UI Events)
|
|
405
|
+
keydown: define(true, true, true, 'KeyboardEvent'),
|
|
406
|
+
keypress: define(true, true, true, 'KeyboardEvent'),
|
|
407
|
+
keyup: define(true, true, true, 'KeyboardEvent'),
|
|
408
|
+
// Focus (UI Events): focus and blur do not bubble, focusin and focusout do
|
|
409
|
+
focus: define(false, false, true, 'FocusEvent'),
|
|
410
|
+
blur: define(false, false, true, 'FocusEvent'),
|
|
411
|
+
focusin: define(true, false, true, 'FocusEvent'),
|
|
412
|
+
focusout: define(true, false, true, 'FocusEvent'),
|
|
413
|
+
// Forms (HTML, Input Events)
|
|
414
|
+
beforeinput: define(true, true, true, 'InputEvent'),
|
|
415
|
+
input: define(true, false, true, 'InputEvent'),
|
|
416
|
+
change: define(true, false, false),
|
|
417
|
+
select: define(true, false, false),
|
|
418
|
+
submit: define(true, true, false),
|
|
419
|
+
reset: define(true, true, false),
|
|
420
|
+
invalid: define(false, true, false),
|
|
421
|
+
toggle: define(false, false, false),
|
|
422
|
+
// Loading and the page (HTML)
|
|
423
|
+
load: define(false, false, false),
|
|
424
|
+
error: define(false, false, false),
|
|
425
|
+
abort: define(false, false, false),
|
|
426
|
+
scroll: define(false, false, false),
|
|
427
|
+
scrollend: define(false, false, false),
|
|
428
|
+
resize: define(false, false, false),
|
|
429
|
+
DOMContentLoaded: define(true, false, false),
|
|
430
|
+
readystatechange: define(false, false, false),
|
|
431
|
+
visibilitychange: define(true, false, false),
|
|
432
|
+
// Clipboard
|
|
433
|
+
copy: define(true, true, true),
|
|
434
|
+
cut: define(true, true, true),
|
|
435
|
+
paste: define(true, true, true),
|
|
436
|
+
// Drag and drop
|
|
437
|
+
drag: define(true, true, true, 'MouseEvent'),
|
|
438
|
+
dragstart: define(true, true, true, 'MouseEvent'),
|
|
439
|
+
dragend: define(true, false, true, 'MouseEvent'),
|
|
440
|
+
dragenter: define(true, true, true, 'MouseEvent'),
|
|
441
|
+
dragover: define(true, true, true, 'MouseEvent'),
|
|
442
|
+
dragleave: define(true, false, true, 'MouseEvent'),
|
|
443
|
+
drop: define(true, true, true, 'MouseEvent'),
|
|
444
|
+
// Touch
|
|
445
|
+
touchstart: define(true, true, true, 'UIEvent'),
|
|
446
|
+
touchmove: define(true, true, true, 'UIEvent'),
|
|
447
|
+
touchend: define(true, true, true, 'UIEvent'),
|
|
448
|
+
touchcancel: define(true, false, true, 'UIEvent'),
|
|
449
|
+
// Animations and transitions (CSS)
|
|
450
|
+
animationstart: define(true, false, false),
|
|
451
|
+
animationiteration: define(true, false, false),
|
|
452
|
+
animationend: define(true, false, false),
|
|
453
|
+
animationcancel: define(true, false, false),
|
|
454
|
+
transitionrun: define(true, false, false),
|
|
455
|
+
transitionstart: define(true, false, false),
|
|
456
|
+
transitionend: define(true, false, false),
|
|
457
|
+
transitioncancel: define(true, false, false)
|
|
458
|
+
}
|
|
459
|
+
exports.default = exports.eventDefaults
|
|
460
|
+
}, {}],
|
|
461
|
+
6: [function (require, module, exports) {
|
|
462
|
+
'use strict'
|
|
463
|
+
|
|
299
464
|
const __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
300
465
|
return mod && mod.__esModule
|
|
301
466
|
? mod
|
|
@@ -359,8 +524,8 @@
|
|
|
359
524
|
return context ? Object.assign(context, newWindow) : Object.assign(root, newWindow)
|
|
360
525
|
}
|
|
361
526
|
exports.default = generateDocument
|
|
362
|
-
}, { '../classes/PseudoHTMLDocument': 2, '../services/ElementService':
|
|
363
|
-
|
|
527
|
+
}, { '../classes/PseudoHTMLDocument': 2, '../services/ElementService': 16, '../services/EventTargetService': 18, '../services/HTMLElementService': 20, '../services/NodeService': 25 }],
|
|
528
|
+
7: [function (require, module, exports) {
|
|
364
529
|
'use strict'
|
|
365
530
|
|
|
366
531
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -375,7 +540,42 @@
|
|
|
375
540
|
const generateNodeList = (innerList = null) => new PseudoNodeList_1.PseudoNodeList().initialize(innerList)
|
|
376
541
|
exports.default = generateNodeList
|
|
377
542
|
}, { '../classes/PseudoNodeList': 3 }],
|
|
378
|
-
|
|
543
|
+
8: [function (require, module, exports) {
|
|
544
|
+
'use strict'
|
|
545
|
+
|
|
546
|
+
require('core-js/modules/esnext.weak-map.delete-all.js')
|
|
547
|
+
Object.defineProperty(exports, '__esModule', {
|
|
548
|
+
value: true
|
|
549
|
+
})
|
|
550
|
+
exports.setActiveElement = exports.getActiveElement = void 0
|
|
551
|
+
/**
|
|
552
|
+
* The element which has the focus, kept for each tree (the root node of the tree it is in), like document.activeElement.
|
|
553
|
+
*/
|
|
554
|
+
const focused = new WeakMap()
|
|
555
|
+
/**
|
|
556
|
+
* Find the element which has the focus in a tree.
|
|
557
|
+
* @function getActiveElement
|
|
558
|
+
* @param {Object} root The root node of the tree
|
|
559
|
+
* @returns {Object|null}
|
|
560
|
+
*/
|
|
561
|
+
const getActiveElement = root => focused.get(root) || null
|
|
562
|
+
exports.getActiveElement = getActiveElement
|
|
563
|
+
/**
|
|
564
|
+
* Remember the element which has the focus in a tree.
|
|
565
|
+
* @function setActiveElement
|
|
566
|
+
* @param {Object} root The root node of the tree
|
|
567
|
+
* @param {Object|null} element The element which now has the focus, or null when nothing has it
|
|
568
|
+
*/
|
|
569
|
+
const setActiveElement = (root, element) => {
|
|
570
|
+
if (element === null) {
|
|
571
|
+
focused.delete(root)
|
|
572
|
+
} else {
|
|
573
|
+
focused.set(root, element)
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
exports.setActiveElement = setActiveElement
|
|
577
|
+
}, { 'core-js/modules/esnext.weak-map.delete-all.js': 151 }],
|
|
578
|
+
9: [function (require, module, exports) {
|
|
379
579
|
'use strict'
|
|
380
580
|
|
|
381
581
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -399,7 +599,7 @@
|
|
|
399
599
|
}
|
|
400
600
|
exports.default = getParentNodes
|
|
401
601
|
}, {}],
|
|
402
|
-
|
|
602
|
+
10: [function (require, module, exports) {
|
|
403
603
|
'use strict'
|
|
404
604
|
|
|
405
605
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
@@ -429,8 +629,51 @@
|
|
|
429
629
|
return (0, getParentNodes_1.default)(node).filter(parent => (parent[attr] || false) === value)
|
|
430
630
|
}
|
|
431
631
|
exports.default = getParentNodesFromAttribute
|
|
432
|
-
}, { './getParentNodes':
|
|
433
|
-
|
|
632
|
+
}, { './getParentNodes': 9, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.filter.js': 145 }],
|
|
633
|
+
11: [function (require, module, exports) {
|
|
634
|
+
'use strict'
|
|
635
|
+
|
|
636
|
+
Object.defineProperty(exports, '__esModule', {
|
|
637
|
+
value: true
|
|
638
|
+
})
|
|
639
|
+
exports.modifierState = exports.modifierKeys = void 0
|
|
640
|
+
/**
|
|
641
|
+
* Pick the modifier keys out of the init object of an event.
|
|
642
|
+
* @function modifierKeys
|
|
643
|
+
* @param {Object} [init={}] The init of an event
|
|
644
|
+
* @returns {ModifierKeys}
|
|
645
|
+
*/
|
|
646
|
+
const modifierKeys = (init = {}) => ({
|
|
647
|
+
ctrlKey: !!init.ctrlKey,
|
|
648
|
+
shiftKey: !!init.shiftKey,
|
|
649
|
+
altKey: !!init.altKey,
|
|
650
|
+
metaKey: !!init.metaKey
|
|
651
|
+
})
|
|
652
|
+
exports.modifierKeys = modifierKeys
|
|
653
|
+
/**
|
|
654
|
+
* Answer getModifierState for a set of held modifier keys.
|
|
655
|
+
* @function modifierState
|
|
656
|
+
* @param {ModifierKeys} keys The modifier keys which were held down
|
|
657
|
+
* @param {string} key The name of the modifier (Control, Shift, Alt or Meta)
|
|
658
|
+
* @returns {boolean}
|
|
659
|
+
*/
|
|
660
|
+
const modifierState = (keys, key) => {
|
|
661
|
+
switch (key) {
|
|
662
|
+
case 'Control':
|
|
663
|
+
return keys.ctrlKey
|
|
664
|
+
case 'Shift':
|
|
665
|
+
return keys.shiftKey
|
|
666
|
+
case 'Alt':
|
|
667
|
+
return keys.altKey
|
|
668
|
+
case 'Meta':
|
|
669
|
+
return keys.metaKey
|
|
670
|
+
default:
|
|
671
|
+
return false
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
exports.modifierState = modifierState
|
|
675
|
+
}, {}],
|
|
676
|
+
12: [function (require, module, exports) {
|
|
434
677
|
'use strict'
|
|
435
678
|
|
|
436
679
|
/**
|
|
@@ -448,7 +691,7 @@
|
|
|
448
691
|
Object.defineProperty(exports, '__esModule', {
|
|
449
692
|
value: true
|
|
450
693
|
})
|
|
451
|
-
exports.PseudoHTMLDocument = exports.PseudoHTMLElement = exports.PseudoElement = exports.PseudoNode = exports.PseudoEventTarget = exports.PseudoEvent = exports.generateDocument = void 0
|
|
694
|
+
exports.PseudoHTMLDocument = exports.PseudoHTMLElement = exports.PseudoElement = exports.PseudoNode = exports.PseudoEventTarget = exports.PseudoCustomEvent = exports.PseudoInputEvent = exports.PseudoFocusEvent = exports.PseudoKeyboardEvent = exports.PseudoPointerEvent = exports.PseudoMouseEvent = exports.PseudoUIEvent = exports.PseudoEvent = exports.simulate = exports.eventDefaults = exports.createEvent = exports.generateDocument = void 0
|
|
452
695
|
const EventService_1 = require('./services/EventService')
|
|
453
696
|
Object.defineProperty(exports, 'PseudoEvent', {
|
|
454
697
|
enumerable: true,
|
|
@@ -483,6 +726,61 @@
|
|
|
483
726
|
exports.PseudoHTMLDocument = PseudoHTMLDocument_1.default
|
|
484
727
|
const generateDocument_1 = __importDefault(require('./factories/generateDocument'))
|
|
485
728
|
exports.generateDocument = generateDocument_1.default
|
|
729
|
+
const createEvent_1 = __importDefault(require('./factories/createEvent'))
|
|
730
|
+
exports.createEvent = createEvent_1.default
|
|
731
|
+
const eventDefaults_1 = __importDefault(require('./factories/eventDefaults'))
|
|
732
|
+
exports.eventDefaults = eventDefaults_1.default
|
|
733
|
+
const UIEventService_1 = require('./services/UIEventService')
|
|
734
|
+
Object.defineProperty(exports, 'PseudoUIEvent', {
|
|
735
|
+
enumerable: true,
|
|
736
|
+
get: function () {
|
|
737
|
+
return UIEventService_1.UIEventService
|
|
738
|
+
}
|
|
739
|
+
})
|
|
740
|
+
const MouseEventService_1 = require('./services/MouseEventService')
|
|
741
|
+
Object.defineProperty(exports, 'PseudoMouseEvent', {
|
|
742
|
+
enumerable: true,
|
|
743
|
+
get: function () {
|
|
744
|
+
return MouseEventService_1.MouseEventService
|
|
745
|
+
}
|
|
746
|
+
})
|
|
747
|
+
const PointerEventService_1 = require('./services/PointerEventService')
|
|
748
|
+
Object.defineProperty(exports, 'PseudoPointerEvent', {
|
|
749
|
+
enumerable: true,
|
|
750
|
+
get: function () {
|
|
751
|
+
return PointerEventService_1.PointerEventService
|
|
752
|
+
}
|
|
753
|
+
})
|
|
754
|
+
const KeyboardEventService_1 = require('./services/KeyboardEventService')
|
|
755
|
+
Object.defineProperty(exports, 'PseudoKeyboardEvent', {
|
|
756
|
+
enumerable: true,
|
|
757
|
+
get: function () {
|
|
758
|
+
return KeyboardEventService_1.KeyboardEventService
|
|
759
|
+
}
|
|
760
|
+
})
|
|
761
|
+
const FocusEventService_1 = require('./services/FocusEventService')
|
|
762
|
+
Object.defineProperty(exports, 'PseudoFocusEvent', {
|
|
763
|
+
enumerable: true,
|
|
764
|
+
get: function () {
|
|
765
|
+
return FocusEventService_1.FocusEventService
|
|
766
|
+
}
|
|
767
|
+
})
|
|
768
|
+
const InputEventService_1 = require('./services/InputEventService')
|
|
769
|
+
Object.defineProperty(exports, 'PseudoInputEvent', {
|
|
770
|
+
enumerable: true,
|
|
771
|
+
get: function () {
|
|
772
|
+
return InputEventService_1.InputEventService
|
|
773
|
+
}
|
|
774
|
+
})
|
|
775
|
+
const CustomEventService_1 = require('./services/CustomEventService')
|
|
776
|
+
Object.defineProperty(exports, 'PseudoCustomEvent', {
|
|
777
|
+
enumerable: true,
|
|
778
|
+
get: function () {
|
|
779
|
+
return CustomEventService_1.CustomEventService
|
|
780
|
+
}
|
|
781
|
+
})
|
|
782
|
+
const simulate_1 = __importDefault(require('./simulate'))
|
|
783
|
+
exports.simulate = simulate_1.default
|
|
486
784
|
/**
|
|
487
785
|
* All methods exported from this module are encapsulated within pseudoDom.
|
|
488
786
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -491,7 +789,17 @@
|
|
|
491
789
|
*/
|
|
492
790
|
const pseudoDom = {
|
|
493
791
|
generateDocument: generateDocument_1.default,
|
|
792
|
+
createEvent: createEvent_1.default,
|
|
793
|
+
eventDefaults: eventDefaults_1.default,
|
|
794
|
+
simulate: simulate_1.default,
|
|
494
795
|
PseudoEvent: EventService_1.EventService,
|
|
796
|
+
PseudoUIEvent: UIEventService_1.UIEventService,
|
|
797
|
+
PseudoMouseEvent: MouseEventService_1.MouseEventService,
|
|
798
|
+
PseudoPointerEvent: PointerEventService_1.PointerEventService,
|
|
799
|
+
PseudoKeyboardEvent: KeyboardEventService_1.KeyboardEventService,
|
|
800
|
+
PseudoFocusEvent: FocusEventService_1.FocusEventService,
|
|
801
|
+
PseudoInputEvent: InputEventService_1.InputEventService,
|
|
802
|
+
PseudoCustomEvent: CustomEventService_1.CustomEventService,
|
|
495
803
|
PseudoEventTarget: EventTargetService_1.default,
|
|
496
804
|
PseudoNode: NodeService_1.NodeService,
|
|
497
805
|
PseudoElement: ElementService_1.ElementService,
|
|
@@ -506,8 +814,8 @@
|
|
|
506
814
|
// @ts-ignore
|
|
507
815
|
window.pseudoDom = pseudoDom
|
|
508
816
|
}
|
|
509
|
-
}, { './classes/PseudoHTMLDocument': 2, './factories/
|
|
510
|
-
|
|
817
|
+
}, { './classes/PseudoHTMLDocument': 2, './factories/createEvent': 4, './factories/eventDefaults': 5, './factories/generateDocument': 6, './services/CustomEventService': 14, './services/ElementService': 16, './services/EventService': 17, './services/EventTargetService': 18, './services/FocusEventService': 19, './services/HTMLElementService': 20, './services/InputEventService': 21, './services/KeyboardEventService': 22, './services/MouseEventService': 23, './services/NodeService': 25, './services/PointerEventService': 26, './services/UIEventService': 27, './simulate': 28 }],
|
|
818
|
+
13: [function (require, module, exports) {
|
|
511
819
|
'use strict'
|
|
512
820
|
|
|
513
821
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -565,8 +873,45 @@
|
|
|
565
873
|
}
|
|
566
874
|
}
|
|
567
875
|
exports.AttrService = AttrService
|
|
568
|
-
}, { './NodeService':
|
|
569
|
-
|
|
876
|
+
}, { './NodeService': 25 }],
|
|
877
|
+
14: [function (require, module, exports) {
|
|
878
|
+
'use strict'
|
|
879
|
+
|
|
880
|
+
Object.defineProperty(exports, '__esModule', {
|
|
881
|
+
value: true
|
|
882
|
+
})
|
|
883
|
+
exports.CustomEventService = void 0
|
|
884
|
+
/**
|
|
885
|
+
* @file Substitute for the DOM CustomEvent Class.
|
|
886
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
887
|
+
* @version 1.0.0
|
|
888
|
+
*/
|
|
889
|
+
const EventService_1 = require('./EventService')
|
|
890
|
+
/**
|
|
891
|
+
* Simulate the behaviour of the CustomEvent Class when there is no DOM available: an event which carries data.
|
|
892
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
893
|
+
* @class
|
|
894
|
+
* @augments EventService
|
|
895
|
+
* @property {*} detail
|
|
896
|
+
*/
|
|
897
|
+
class CustomEventService extends EventService_1.EventService {
|
|
898
|
+
/**
|
|
899
|
+
* @param {string} [typeArg=''] The type of the event
|
|
900
|
+
* @param {CustomEventInit} [init={}] The options for the event
|
|
901
|
+
* @constructor
|
|
902
|
+
*/
|
|
903
|
+
constructor (typeArg = '', init = {}) {
|
|
904
|
+
super(typeArg, init)
|
|
905
|
+
this.eventDetail = typeof init.detail === 'undefined' ? null : init.detail
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
get detail () {
|
|
909
|
+
return this.eventDetail
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
exports.CustomEventService = CustomEventService
|
|
913
|
+
}, { './EventService': 17 }],
|
|
914
|
+
15: [function (require, module, exports) {
|
|
570
915
|
'use strict'
|
|
571
916
|
|
|
572
917
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
@@ -684,8 +1029,8 @@
|
|
|
684
1029
|
}
|
|
685
1030
|
}
|
|
686
1031
|
exports.DOMTokenListService = DOMTokenListService
|
|
687
|
-
}, { 'core-js/modules/esnext.iterator.constructor.js':
|
|
688
|
-
|
|
1032
|
+
}, { 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.filter.js': 145, 'core-js/modules/esnext.iterator.for-each.js': 147, 'core-js/modules/esnext.iterator.map.js': 148 }],
|
|
1033
|
+
16: [function (require, module, exports) {
|
|
689
1034
|
'use strict'
|
|
690
1035
|
|
|
691
1036
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
@@ -704,7 +1049,7 @@
|
|
|
704
1049
|
value: true
|
|
705
1050
|
})
|
|
706
1051
|
exports.ElementService = void 0
|
|
707
|
-
const
|
|
1052
|
+
const createEvent_1 = __importDefault(require('../factories/createEvent'))
|
|
708
1053
|
const NodeService_1 = require('./NodeService')
|
|
709
1054
|
const AttrService_1 = require('./AttrService')
|
|
710
1055
|
const DOMTokenListService_1 = require('./DOMTokenListService')
|
|
@@ -813,20 +1158,20 @@
|
|
|
813
1158
|
switch (this.tagName) {
|
|
814
1159
|
case 'button':
|
|
815
1160
|
case 'input':
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
}
|
|
1161
|
+
// Clicking a submit button submits the form it is in: the form gets a submit event, which can be cancelled
|
|
1162
|
+
callback = event => {
|
|
1163
|
+
const type = String(this.getAttribute('type') || this.type || '').toLowerCase()
|
|
1164
|
+
const submits = this.tagName === 'button' ? type !== 'button' && type !== 'reset' : /^(submit|image)$/.test(type)
|
|
1165
|
+
const forms = (0, getParentNodesFromAttribute_1.default)('tagName', 'form', this)
|
|
1166
|
+
if (submits && forms.length && !this.hasAttribute('disabled')) {
|
|
1167
|
+
forms[forms.length - 1].dispatchEvent((0, createEvent_1.default)('submit', {}, {
|
|
1168
|
+
browser: true,
|
|
1169
|
+
trusted: event.isTrusted
|
|
1170
|
+
}))
|
|
826
1171
|
}
|
|
827
|
-
super.setDefaultEvent('click', callback)
|
|
828
|
-
this.defaultEventApplied = true
|
|
829
1172
|
}
|
|
1173
|
+
super.setDefaultEvent('click', callback)
|
|
1174
|
+
this.defaultEventApplied = true
|
|
830
1175
|
}
|
|
831
1176
|
return callback
|
|
832
1177
|
}
|
|
@@ -902,8 +1247,8 @@
|
|
|
902
1247
|
}
|
|
903
1248
|
}
|
|
904
1249
|
exports.ElementService = ElementService
|
|
905
|
-
}, { '../
|
|
906
|
-
|
|
1250
|
+
}, { '../factories/createEvent': 4, '../functions/getParentNodesFromAttribute': 10, './AttrService': 13, './DOMTokenListService': 15, './NamedNodeMapService': 24, './NodeService': 25, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.find.js': 146, 'core-js/modules/esnext.iterator.for-each.js': 147, 'core-js/modules/esnext.iterator.map.js': 148, 'core-js/modules/esnext.iterator.some.js': 150 }],
|
|
1251
|
+
17: [function (require, module, exports) {
|
|
907
1252
|
'use strict'
|
|
908
1253
|
|
|
909
1254
|
/**
|
|
@@ -971,7 +1316,7 @@
|
|
|
971
1316
|
target: null,
|
|
972
1317
|
timeStamp: Math.floor(Date.now() / 1000),
|
|
973
1318
|
type: '',
|
|
974
|
-
isTrusted:
|
|
1319
|
+
isTrusted: false,
|
|
975
1320
|
dispatching: false,
|
|
976
1321
|
inPassiveListener: false,
|
|
977
1322
|
path: []
|
|
@@ -1055,6 +1400,12 @@
|
|
|
1055
1400
|
get propagationStopped () {
|
|
1056
1401
|
return self.properties.propagationStopped
|
|
1057
1402
|
},
|
|
1403
|
+
get trusted () {
|
|
1404
|
+
return self.properties.isTrusted
|
|
1405
|
+
},
|
|
1406
|
+
set trusted (trusted) {
|
|
1407
|
+
self.properties.isTrusted = trusted
|
|
1408
|
+
},
|
|
1058
1409
|
get dispatching () {
|
|
1059
1410
|
return self.properties.dispatching
|
|
1060
1411
|
},
|
|
@@ -1149,7 +1500,7 @@
|
|
|
1149
1500
|
EventService.AT_TARGET = 2
|
|
1150
1501
|
EventService.BUBBLING_PHASE = 3
|
|
1151
1502
|
}, {}],
|
|
1152
|
-
|
|
1503
|
+
18: [function (require, module, exports) {
|
|
1153
1504
|
'use strict'
|
|
1154
1505
|
|
|
1155
1506
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
@@ -1382,15 +1733,61 @@
|
|
|
1382
1733
|
}
|
|
1383
1734
|
}
|
|
1384
1735
|
exports.default = EventTargetService
|
|
1385
|
-
}, { '../classes/PseudoEventListener': 1, '../functions/getParentNodes':
|
|
1386
|
-
|
|
1736
|
+
}, { '../classes/PseudoEventListener': 1, '../functions/getParentNodes': 9, './EventService': 17, 'collect-your-stuff/dist/collections/linked-list/LinkedList': 33, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.filter.js': 145, 'core-js/modules/esnext.iterator.find.js': 146, 'core-js/modules/esnext.iterator.for-each.js': 147, 'core-js/modules/esnext.iterator.map.js': 148, 'core-js/modules/esnext.iterator.some.js': 150 }],
|
|
1737
|
+
19: [function (require, module, exports) {
|
|
1387
1738
|
'use strict'
|
|
1388
1739
|
|
|
1740
|
+
Object.defineProperty(exports, '__esModule', {
|
|
1741
|
+
value: true
|
|
1742
|
+
})
|
|
1743
|
+
exports.FocusEventService = void 0
|
|
1744
|
+
/**
|
|
1745
|
+
* @file Substitute for the DOM FocusEvent Class.
|
|
1746
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
1747
|
+
* @version 1.0.0
|
|
1748
|
+
*/
|
|
1749
|
+
const UIEventService_1 = require('./UIEventService')
|
|
1750
|
+
/**
|
|
1751
|
+
* Simulate the behaviour of the FocusEvent Class when there is no DOM available.
|
|
1752
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
1753
|
+
* @class
|
|
1754
|
+
* @augments UIEventService
|
|
1755
|
+
* @property {PseudoEventTarget|null} relatedTarget
|
|
1756
|
+
*/
|
|
1757
|
+
class FocusEventService extends UIEventService_1.UIEventService {
|
|
1758
|
+
/**
|
|
1759
|
+
* @param {string} [typeArg=''] The type of the event
|
|
1760
|
+
* @param {FocusEventInit} [init={}] The options for the event
|
|
1761
|
+
* @constructor
|
|
1762
|
+
*/
|
|
1763
|
+
constructor (typeArg = '', init = {}) {
|
|
1764
|
+
super(typeArg, init)
|
|
1765
|
+
this.related = init.relatedTarget || null
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
get relatedTarget () {
|
|
1769
|
+
return this.related
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
exports.FocusEventService = FocusEventService
|
|
1773
|
+
}, { './UIEventService': 27 }],
|
|
1774
|
+
20: [function (require, module, exports) {
|
|
1775
|
+
'use strict'
|
|
1776
|
+
|
|
1777
|
+
const __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
1778
|
+
return mod && mod.__esModule
|
|
1779
|
+
? mod
|
|
1780
|
+
: {
|
|
1781
|
+
default: mod
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1389
1784
|
Object.defineProperty(exports, '__esModule', {
|
|
1390
1785
|
value: true
|
|
1391
1786
|
})
|
|
1392
1787
|
exports.HTMLElementService = void 0
|
|
1393
1788
|
const ElementService_1 = require('./ElementService')
|
|
1789
|
+
const createEvent_1 = __importDefault(require('../factories/createEvent'))
|
|
1790
|
+
const activeElement_1 = require('../functions/activeElement')
|
|
1394
1791
|
/**
|
|
1395
1792
|
* Simulate the behaviour of the HTMLElement Class when there is no DOM available.
|
|
1396
1793
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -1450,10 +1847,343 @@
|
|
|
1450
1847
|
children
|
|
1451
1848
|
})
|
|
1452
1849
|
}
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Whether this element can have the focus: form controls and links which are not disabled, and anything with a tabindex.
|
|
1853
|
+
* @returns {boolean}
|
|
1854
|
+
*/
|
|
1855
|
+
get canFocus () {
|
|
1856
|
+
if (this.hasAttribute('disabled')) {
|
|
1857
|
+
return false
|
|
1858
|
+
}
|
|
1859
|
+
switch (this.tagName) {
|
|
1860
|
+
case 'button':
|
|
1861
|
+
case 'select':
|
|
1862
|
+
case 'textarea':
|
|
1863
|
+
return true
|
|
1864
|
+
case 'input':
|
|
1865
|
+
return String(this.getAttribute('type') || '').toLowerCase() !== 'hidden'
|
|
1866
|
+
case 'a':
|
|
1867
|
+
return this.hasAttribute('href') || this.hasAttribute('tabindex')
|
|
1868
|
+
default:
|
|
1869
|
+
return this.hasAttribute('tabindex')
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* Click the element: a click event is sent to it, which bubbles and can be cancelled, like one from a user but a
|
|
1875
|
+
* script made it (so it is not trusted). A disabled element does nothing.
|
|
1876
|
+
*/
|
|
1877
|
+
click () {
|
|
1878
|
+
if (this.hasAttribute('disabled')) {
|
|
1879
|
+
return
|
|
1880
|
+
}
|
|
1881
|
+
this.dispatchEvent((0, createEvent_1.default)('click', {}, {
|
|
1882
|
+
browser: true
|
|
1883
|
+
}))
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* Give the element the focus. The element which had it gets blur then focusout, and this one gets focus then
|
|
1888
|
+
* focusin (blur and focus do not bubble, focusin and focusout do). Nothing happens when the element cannot have the
|
|
1889
|
+
* focus or already has it.
|
|
1890
|
+
*/
|
|
1891
|
+
focus () {
|
|
1892
|
+
const root = this.getRootNode()
|
|
1893
|
+
const previous = (0, activeElement_1.getActiveElement)(root)
|
|
1894
|
+
if (!this.canFocus || previous === this) {
|
|
1895
|
+
return
|
|
1896
|
+
}
|
|
1897
|
+
const send = (target, type, relatedTarget) => {
|
|
1898
|
+
target.dispatchEvent((0, createEvent_1.default)(type, {
|
|
1899
|
+
relatedTarget
|
|
1900
|
+
}, {
|
|
1901
|
+
browser: true,
|
|
1902
|
+
trusted: true
|
|
1903
|
+
}))
|
|
1904
|
+
}
|
|
1905
|
+
if (previous) {
|
|
1906
|
+
send(previous, 'blur', this)
|
|
1907
|
+
send(previous, 'focusout', this)
|
|
1908
|
+
}
|
|
1909
|
+
(0, activeElement_1.setActiveElement)(root, this)
|
|
1910
|
+
send(this, 'focus', previous)
|
|
1911
|
+
send(this, 'focusin', previous)
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Take the focus away from the element, when it has it: it gets blur then focusout.
|
|
1916
|
+
*/
|
|
1917
|
+
blur () {
|
|
1918
|
+
const root = this.getRootNode()
|
|
1919
|
+
if ((0, activeElement_1.getActiveElement)(root) !== this) {
|
|
1920
|
+
return
|
|
1921
|
+
}
|
|
1922
|
+
(0, activeElement_1.setActiveElement)(root, null)
|
|
1923
|
+
this.dispatchEvent((0, createEvent_1.default)('blur', {
|
|
1924
|
+
relatedTarget: null
|
|
1925
|
+
}, {
|
|
1926
|
+
browser: true,
|
|
1927
|
+
trusted: true
|
|
1928
|
+
}))
|
|
1929
|
+
this.dispatchEvent((0, createEvent_1.default)('focusout', {
|
|
1930
|
+
relatedTarget: null
|
|
1931
|
+
}, {
|
|
1932
|
+
browser: true,
|
|
1933
|
+
trusted: true
|
|
1934
|
+
}))
|
|
1935
|
+
}
|
|
1453
1936
|
}
|
|
1454
1937
|
exports.HTMLElementService = HTMLElementService
|
|
1455
|
-
}, { './ElementService':
|
|
1456
|
-
|
|
1938
|
+
}, { '../factories/createEvent': 4, '../functions/activeElement': 8, './ElementService': 16 }],
|
|
1939
|
+
21: [function (require, module, exports) {
|
|
1940
|
+
'use strict'
|
|
1941
|
+
|
|
1942
|
+
Object.defineProperty(exports, '__esModule', {
|
|
1943
|
+
value: true
|
|
1944
|
+
})
|
|
1945
|
+
exports.InputEventService = void 0
|
|
1946
|
+
/**
|
|
1947
|
+
* @file Substitute for the DOM InputEvent Class.
|
|
1948
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
1949
|
+
* @version 1.0.0
|
|
1950
|
+
*/
|
|
1951
|
+
const UIEventService_1 = require('./UIEventService')
|
|
1952
|
+
/**
|
|
1953
|
+
* Simulate the behaviour of the InputEvent Class when there is no DOM available.
|
|
1954
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
1955
|
+
* @class
|
|
1956
|
+
* @augments UIEventService
|
|
1957
|
+
* @property {string|null} data
|
|
1958
|
+
* @property {string} inputType
|
|
1959
|
+
* @property {boolean} isComposing
|
|
1960
|
+
*/
|
|
1961
|
+
class InputEventService extends UIEventService_1.UIEventService {
|
|
1962
|
+
/**
|
|
1963
|
+
* @param {string} [typeArg=''] The type of the event
|
|
1964
|
+
* @param {InputEventInit} [init={}] The options for the event
|
|
1965
|
+
* @constructor
|
|
1966
|
+
*/
|
|
1967
|
+
constructor (typeArg = '', init = {}) {
|
|
1968
|
+
super(typeArg, init)
|
|
1969
|
+
this.inputData = typeof init.data === 'string' ? init.data : null
|
|
1970
|
+
this.kind = init.inputType || ''
|
|
1971
|
+
this.composing = !!init.isComposing
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
get data () {
|
|
1975
|
+
return this.inputData
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
get inputType () {
|
|
1979
|
+
return this.kind
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
get isComposing () {
|
|
1983
|
+
return this.composing
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
exports.InputEventService = InputEventService
|
|
1987
|
+
}, { './UIEventService': 27 }],
|
|
1988
|
+
22: [function (require, module, exports) {
|
|
1989
|
+
'use strict'
|
|
1990
|
+
|
|
1991
|
+
Object.defineProperty(exports, '__esModule', {
|
|
1992
|
+
value: true
|
|
1993
|
+
})
|
|
1994
|
+
exports.KeyboardEventService = void 0
|
|
1995
|
+
/**
|
|
1996
|
+
* @file Substitute for the DOM KeyboardEvent Class.
|
|
1997
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
1998
|
+
* @version 1.0.0
|
|
1999
|
+
*/
|
|
2000
|
+
const UIEventService_1 = require('./UIEventService')
|
|
2001
|
+
const modifierState_1 = require('../functions/modifierState')
|
|
2002
|
+
/**
|
|
2003
|
+
* Simulate the behaviour of the KeyboardEvent Class when there is no DOM available.
|
|
2004
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2005
|
+
* @class
|
|
2006
|
+
* @augments UIEventService
|
|
2007
|
+
* @property {string} key
|
|
2008
|
+
* @property {string} code
|
|
2009
|
+
* @property {number} location
|
|
2010
|
+
* @property {boolean} repeat
|
|
2011
|
+
* @property {boolean} isComposing
|
|
2012
|
+
*/
|
|
2013
|
+
class KeyboardEventService extends UIEventService_1.UIEventService {
|
|
2014
|
+
/**
|
|
2015
|
+
* @param {string} [typeArg=''] The type of the event
|
|
2016
|
+
* @param {KeyboardEventInit} [init={}] The options for the event
|
|
2017
|
+
* @constructor
|
|
2018
|
+
*/
|
|
2019
|
+
constructor (typeArg = '', init = {}) {
|
|
2020
|
+
super(typeArg, init)
|
|
2021
|
+
this.keyValue = init.key || ''
|
|
2022
|
+
this.keyCode = init.code || ''
|
|
2023
|
+
this.keyLocation = init.location || 0
|
|
2024
|
+
this.held = !!init.repeat
|
|
2025
|
+
this.composing = !!init.isComposing
|
|
2026
|
+
this.modifiers = (0, modifierState_1.modifierKeys)(init)
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
get key () {
|
|
2030
|
+
return this.keyValue
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
get code () {
|
|
2034
|
+
return this.keyCode
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
get location () {
|
|
2038
|
+
return this.keyLocation
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
get repeat () {
|
|
2042
|
+
return this.held
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
get isComposing () {
|
|
2046
|
+
return this.composing
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
get ctrlKey () {
|
|
2050
|
+
return this.modifiers.ctrlKey
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
get shiftKey () {
|
|
2054
|
+
return this.modifiers.shiftKey
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
get altKey () {
|
|
2058
|
+
return this.modifiers.altKey
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
get metaKey () {
|
|
2062
|
+
return this.modifiers.metaKey
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* Whether a modifier key was held down when the event happened.
|
|
2067
|
+
* @param {string} key Control, Shift, Alt or Meta
|
|
2068
|
+
* @returns {boolean}
|
|
2069
|
+
*/
|
|
2070
|
+
getModifierState (key) {
|
|
2071
|
+
return (0, modifierState_1.modifierState)(this.modifiers, key)
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
exports.KeyboardEventService = KeyboardEventService
|
|
2075
|
+
}, { '../functions/modifierState': 11, './UIEventService': 27 }],
|
|
2076
|
+
23: [function (require, module, exports) {
|
|
2077
|
+
'use strict'
|
|
2078
|
+
|
|
2079
|
+
Object.defineProperty(exports, '__esModule', {
|
|
2080
|
+
value: true
|
|
2081
|
+
})
|
|
2082
|
+
exports.MouseEventService = void 0
|
|
2083
|
+
/**
|
|
2084
|
+
* @file Substitute for the DOM MouseEvent Class.
|
|
2085
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2086
|
+
* @version 1.0.0
|
|
2087
|
+
*/
|
|
2088
|
+
const UIEventService_1 = require('./UIEventService')
|
|
2089
|
+
const modifierState_1 = require('../functions/modifierState')
|
|
2090
|
+
/**
|
|
2091
|
+
* Simulate the behaviour of the MouseEvent Class when there is no DOM available.
|
|
2092
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2093
|
+
* @class
|
|
2094
|
+
* @augments UIEventService
|
|
2095
|
+
* @property {number} screenX
|
|
2096
|
+
* @property {number} screenY
|
|
2097
|
+
* @property {number} clientX
|
|
2098
|
+
* @property {number} clientY
|
|
2099
|
+
* @property {number} button
|
|
2100
|
+
* @property {number} buttons
|
|
2101
|
+
* @property {PseudoEventTarget|null} relatedTarget
|
|
2102
|
+
*/
|
|
2103
|
+
class MouseEventService extends UIEventService_1.UIEventService {
|
|
2104
|
+
/**
|
|
2105
|
+
* @param {string} [typeArg=''] The type of the event
|
|
2106
|
+
* @param {MouseEventInit} [init={}] The options for the event
|
|
2107
|
+
* @constructor
|
|
2108
|
+
*/
|
|
2109
|
+
constructor (typeArg = '', init = {}) {
|
|
2110
|
+
super(typeArg, init)
|
|
2111
|
+
this.position = {
|
|
2112
|
+
screenX: init.screenX || 0,
|
|
2113
|
+
screenY: init.screenY || 0,
|
|
2114
|
+
clientX: init.clientX || 0,
|
|
2115
|
+
clientY: init.clientY || 0
|
|
2116
|
+
}
|
|
2117
|
+
this.modifiers = (0, modifierState_1.modifierKeys)(init)
|
|
2118
|
+
this.buttonPressed = init.button || 0
|
|
2119
|
+
this.buttonsDown = init.buttons || 0
|
|
2120
|
+
this.related = init.relatedTarget || null
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
get screenX () {
|
|
2124
|
+
return this.position.screenX
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
get screenY () {
|
|
2128
|
+
return this.position.screenY
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
get clientX () {
|
|
2132
|
+
return this.position.clientX
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
get clientY () {
|
|
2136
|
+
return this.position.clientY
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
get x () {
|
|
2140
|
+
return this.position.clientX
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
get y () {
|
|
2144
|
+
return this.position.clientY
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
get ctrlKey () {
|
|
2148
|
+
return this.modifiers.ctrlKey
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
get shiftKey () {
|
|
2152
|
+
return this.modifiers.shiftKey
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
get altKey () {
|
|
2156
|
+
return this.modifiers.altKey
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
get metaKey () {
|
|
2160
|
+
return this.modifiers.metaKey
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
get button () {
|
|
2164
|
+
return this.buttonPressed
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
get buttons () {
|
|
2168
|
+
return this.buttonsDown
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
get relatedTarget () {
|
|
2172
|
+
return this.related
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Whether a modifier key was held down when the event happened.
|
|
2177
|
+
* @param {string} key Control, Shift, Alt or Meta
|
|
2178
|
+
* @returns {boolean}
|
|
2179
|
+
*/
|
|
2180
|
+
getModifierState (key) {
|
|
2181
|
+
return (0, modifierState_1.modifierState)(this.modifiers, key)
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
exports.MouseEventService = MouseEventService
|
|
2185
|
+
}, { '../functions/modifierState': 11, './UIEventService': 27 }],
|
|
2186
|
+
24: [function (require, module, exports) {
|
|
1457
2187
|
'use strict'
|
|
1458
2188
|
|
|
1459
2189
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
@@ -1531,8 +2261,8 @@
|
|
|
1531
2261
|
}
|
|
1532
2262
|
}
|
|
1533
2263
|
exports.NamedNodeMapService = NamedNodeMapService
|
|
1534
|
-
}, { 'core-js/modules/esnext.iterator.constructor.js':
|
|
1535
|
-
|
|
2264
|
+
}, { 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.find.js': 146 }],
|
|
2265
|
+
25: [function (require, module, exports) {
|
|
1536
2266
|
'use strict'
|
|
1537
2267
|
|
|
1538
2268
|
const __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
@@ -1820,8 +2550,238 @@
|
|
|
1820
2550
|
NodeService.DOCUMENT_TYPE_NODE = 10
|
|
1821
2551
|
NodeService.DOCUMENT_FRAGMENT_NODE = 11
|
|
1822
2552
|
NodeService.NOTATION_NODE = 12
|
|
1823
|
-
}, { '../factories/generateNodeList':
|
|
1824
|
-
|
|
2553
|
+
}, { '../factories/generateNodeList': 7, './EventTargetService': 18, 'collect-your-stuff/dist/collections/linked-tree-list/TreeLinker': 36 }],
|
|
2554
|
+
26: [function (require, module, exports) {
|
|
2555
|
+
'use strict'
|
|
2556
|
+
|
|
2557
|
+
Object.defineProperty(exports, '__esModule', {
|
|
2558
|
+
value: true
|
|
2559
|
+
})
|
|
2560
|
+
exports.PointerEventService = void 0
|
|
2561
|
+
/**
|
|
2562
|
+
* @file Substitute for the DOM PointerEvent Class.
|
|
2563
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2564
|
+
* @version 1.0.0
|
|
2565
|
+
*/
|
|
2566
|
+
const MouseEventService_1 = require('./MouseEventService')
|
|
2567
|
+
/**
|
|
2568
|
+
* Simulate the behaviour of the PointerEvent Class when there is no DOM available.
|
|
2569
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2570
|
+
* @class
|
|
2571
|
+
* @augments MouseEventService
|
|
2572
|
+
* @property {number} pointerId
|
|
2573
|
+
* @property {number} width
|
|
2574
|
+
* @property {number} height
|
|
2575
|
+
* @property {number} pressure
|
|
2576
|
+
* @property {string} pointerType
|
|
2577
|
+
* @property {boolean} isPrimary
|
|
2578
|
+
*/
|
|
2579
|
+
class PointerEventService extends MouseEventService_1.MouseEventService {
|
|
2580
|
+
/**
|
|
2581
|
+
* @param {string} [typeArg=''] The type of the event
|
|
2582
|
+
* @param {PointerEventInit} [init={}] The options for the event
|
|
2583
|
+
* @constructor
|
|
2584
|
+
*/
|
|
2585
|
+
constructor (typeArg = '', init = {}) {
|
|
2586
|
+
super(typeArg, init)
|
|
2587
|
+
this.pointer = {
|
|
2588
|
+
pointerId: init.pointerId || 0,
|
|
2589
|
+
width: typeof init.width === 'number' ? init.width : 1,
|
|
2590
|
+
height: typeof init.height === 'number' ? init.height : 1,
|
|
2591
|
+
pressure: init.pressure || 0,
|
|
2592
|
+
pointerType: init.pointerType || '',
|
|
2593
|
+
isPrimary: !!init.isPrimary
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
get pointerId () {
|
|
2598
|
+
return this.pointer.pointerId
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
get width () {
|
|
2602
|
+
return this.pointer.width
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
get height () {
|
|
2606
|
+
return this.pointer.height
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
get pressure () {
|
|
2610
|
+
return this.pointer.pressure
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
get pointerType () {
|
|
2614
|
+
return this.pointer.pointerType
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
get isPrimary () {
|
|
2618
|
+
return this.pointer.isPrimary
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
exports.PointerEventService = PointerEventService
|
|
2622
|
+
}, { './MouseEventService': 23 }],
|
|
2623
|
+
27: [function (require, module, exports) {
|
|
2624
|
+
'use strict'
|
|
2625
|
+
|
|
2626
|
+
Object.defineProperty(exports, '__esModule', {
|
|
2627
|
+
value: true
|
|
2628
|
+
})
|
|
2629
|
+
exports.UIEventService = void 0
|
|
2630
|
+
/**
|
|
2631
|
+
* @file Substitute for the DOM UIEvent Class.
|
|
2632
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2633
|
+
* @version 1.0.0
|
|
2634
|
+
*/
|
|
2635
|
+
const EventService_1 = require('./EventService')
|
|
2636
|
+
/**
|
|
2637
|
+
* Simulate the behaviour of the UIEvent Class when there is no DOM available: the events which come from a user
|
|
2638
|
+
* interface (the mouse, the keyboard, focus and input).
|
|
2639
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2640
|
+
* @class
|
|
2641
|
+
* @augments EventService
|
|
2642
|
+
* @property {number} detail
|
|
2643
|
+
* @property {*} view
|
|
2644
|
+
*/
|
|
2645
|
+
class UIEventService extends EventService_1.EventService {
|
|
2646
|
+
/**
|
|
2647
|
+
* @param {string} [typeArg=''] The type of the event
|
|
2648
|
+
* @param {UIEventInit} [init={}] The options for the event
|
|
2649
|
+
* @constructor
|
|
2650
|
+
*/
|
|
2651
|
+
constructor (typeArg = '', init = {}) {
|
|
2652
|
+
super(typeArg, init)
|
|
2653
|
+
this.uiDetail = init.detail || 0
|
|
2654
|
+
this.uiView = init.view || null
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
get detail () {
|
|
2658
|
+
return this.uiDetail
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
get view () {
|
|
2662
|
+
return this.uiView
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
exports.UIEventService = UIEventService
|
|
2666
|
+
}, { './EventService': 17 }],
|
|
2667
|
+
28: [function (require, module, exports) {
|
|
2668
|
+
'use strict'
|
|
2669
|
+
|
|
2670
|
+
const __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
2671
|
+
return mod && mod.__esModule
|
|
2672
|
+
? mod
|
|
2673
|
+
: {
|
|
2674
|
+
default: mod
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
Object.defineProperty(exports, '__esModule', {
|
|
2678
|
+
value: true
|
|
2679
|
+
})
|
|
2680
|
+
exports.keyPress = exports.click = void 0
|
|
2681
|
+
/**
|
|
2682
|
+
* @file Simulate what a user does, with the events the browser sends for it.
|
|
2683
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
2684
|
+
* @version 1.0.0
|
|
2685
|
+
* @module pseudoDom/simulate
|
|
2686
|
+
*/
|
|
2687
|
+
const createEvent_1 = __importDefault(require('./factories/createEvent'))
|
|
2688
|
+
const activeElement_1 = require('./functions/activeElement')
|
|
2689
|
+
const send = (target, type, init) => target.dispatchEvent((0, createEvent_1.default)(type, init, {
|
|
2690
|
+
browser: true,
|
|
2691
|
+
trusted: true
|
|
2692
|
+
}))
|
|
2693
|
+
/**
|
|
2694
|
+
* The nearest element (starting with the element itself) which can have the focus.
|
|
2695
|
+
* @param {*} element Where to start
|
|
2696
|
+
* @returns {*|null}
|
|
2697
|
+
*/
|
|
2698
|
+
const focusableFrom = element => {
|
|
2699
|
+
let current = element
|
|
2700
|
+
while (current) {
|
|
2701
|
+
if (current.canFocus) {
|
|
2702
|
+
return current
|
|
2703
|
+
}
|
|
2704
|
+
current = current.parentNode
|
|
2705
|
+
}
|
|
2706
|
+
return null
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* Click an element the way a user does: pointerdown and mousedown, then the focus moves to the nearest element which
|
|
2710
|
+
* can have it (or is taken away from the one which had it) unless mousedown was cancelled, then pointerup, mouseup
|
|
2711
|
+
* and finally click. Every event is trusted and has the options the browser gives it. A disabled element gets nothing.
|
|
2712
|
+
* @function click
|
|
2713
|
+
* @param {*} element The element to click
|
|
2714
|
+
* @param {Object} [init={}] Options for the events (for example clientX, clientY, shiftKey)
|
|
2715
|
+
* @returns {boolean} False when the click was cancelled (or the element is disabled), so its default action did not happen
|
|
2716
|
+
*/
|
|
2717
|
+
const click = (element, init = {}) => {
|
|
2718
|
+
if (element.hasAttribute && element.hasAttribute('disabled')) {
|
|
2719
|
+
return false
|
|
2720
|
+
}
|
|
2721
|
+
const pointer = Object.assign({
|
|
2722
|
+
pointerId: 1,
|
|
2723
|
+
pointerType: 'mouse',
|
|
2724
|
+
isPrimary: true,
|
|
2725
|
+
button: 0
|
|
2726
|
+
}, init)
|
|
2727
|
+
send(element, 'pointerdown', Object.assign({
|
|
2728
|
+
buttons: 1
|
|
2729
|
+
}, pointer))
|
|
2730
|
+
if (send(element, 'mousedown', Object.assign({
|
|
2731
|
+
buttons: 1,
|
|
2732
|
+
detail: 1
|
|
2733
|
+
}, init, {
|
|
2734
|
+
button: 0
|
|
2735
|
+
}))) {
|
|
2736
|
+
const focusable = focusableFrom(element)
|
|
2737
|
+
if (focusable) {
|
|
2738
|
+
focusable.focus()
|
|
2739
|
+
} else {
|
|
2740
|
+
const active = (0, activeElement_1.getActiveElement)(element.getRootNode())
|
|
2741
|
+
if (active) {
|
|
2742
|
+
active.blur()
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
send(element, 'pointerup', Object.assign({
|
|
2747
|
+
buttons: 0
|
|
2748
|
+
}, pointer))
|
|
2749
|
+
send(element, 'mouseup', Object.assign({
|
|
2750
|
+
buttons: 0,
|
|
2751
|
+
detail: 1
|
|
2752
|
+
}, init, {
|
|
2753
|
+
button: 0
|
|
2754
|
+
}))
|
|
2755
|
+
return send(element, 'click', Object.assign({
|
|
2756
|
+
detail: 1
|
|
2757
|
+
}, init, {
|
|
2758
|
+
button: 0
|
|
2759
|
+
}))
|
|
2760
|
+
}
|
|
2761
|
+
exports.click = click
|
|
2762
|
+
/**
|
|
2763
|
+
* Press and release a key on an element (the element which has the focus, or one given): keydown and then keyup.
|
|
2764
|
+
* @function keyPress
|
|
2765
|
+
* @param {*} element The element which gets the key
|
|
2766
|
+
* @param {string} key The value of the key, such as a or Enter
|
|
2767
|
+
* @param {Object} [init={}] Options for the events (for example code, shiftKey)
|
|
2768
|
+
* @returns {boolean} False when keydown was cancelled, so its default action did not happen
|
|
2769
|
+
*/
|
|
2770
|
+
const keyPress = (element, key, init = {}) => {
|
|
2771
|
+
const options = Object.assign({
|
|
2772
|
+
key
|
|
2773
|
+
}, init)
|
|
2774
|
+
const proceeded = send(element, 'keydown', options)
|
|
2775
|
+
send(element, 'keyup', options)
|
|
2776
|
+
return proceeded
|
|
2777
|
+
}
|
|
2778
|
+
exports.keyPress = keyPress
|
|
2779
|
+
exports.default = {
|
|
2780
|
+
click: exports.click,
|
|
2781
|
+
keyPress: exports.keyPress
|
|
2782
|
+
}
|
|
2783
|
+
}, { './factories/createEvent': 4, './functions/activeElement': 8 }],
|
|
2784
|
+
29: [function (require, module, exports) {
|
|
1825
2785
|
'use strict'
|
|
1826
2786
|
|
|
1827
2787
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -1888,8 +2848,8 @@
|
|
|
1888
2848
|
head: [],
|
|
1889
2849
|
tail: null
|
|
1890
2850
|
})
|
|
1891
|
-
}, { 'core-js/modules/esnext.iterator.constructor.js':
|
|
1892
|
-
|
|
2851
|
+
}, { 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.reduce.js': 149 }],
|
|
2852
|
+
30: [function (require, module, exports) {
|
|
1893
2853
|
'use strict'
|
|
1894
2854
|
|
|
1895
2855
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -2113,8 +3073,8 @@
|
|
|
2113
3073
|
const list = new classType(elementClass)
|
|
2114
3074
|
return list.initialize(elementClass.fromArray(values).head)
|
|
2115
3075
|
}
|
|
2116
|
-
}, { '../../recipes/ArrayIterator':
|
|
2117
|
-
|
|
3076
|
+
}, { '../../recipes/ArrayIterator': 37, './ArrayElement': 29 }],
|
|
3077
|
+
31: [function (require, module, exports) {
|
|
2118
3078
|
'use strict'
|
|
2119
3079
|
|
|
2120
3080
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -2188,8 +3148,8 @@
|
|
|
2188
3148
|
head: null,
|
|
2189
3149
|
tail: null
|
|
2190
3150
|
})
|
|
2191
|
-
}, { '../linked-list/Linker':
|
|
2192
|
-
|
|
3151
|
+
}, { '../linked-list/Linker': 34, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.reduce.js': 149 }],
|
|
3152
|
+
32: [function (require, module, exports) {
|
|
2193
3153
|
'use strict'
|
|
2194
3154
|
|
|
2195
3155
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -2517,8 +3477,8 @@
|
|
|
2517
3477
|
DoublyLinkedList.fromArray = (values = [], linkerClass = _DoubleLinker.DoubleLinker, classType = DoublyLinkedList) => {
|
|
2518
3478
|
return _LinkedList.LinkedList.fromArray(values, linkerClass, classType)
|
|
2519
3479
|
}
|
|
2520
|
-
}, { '../../recipes/DoubleLinkerIterator':
|
|
2521
|
-
|
|
3480
|
+
}, { '../../recipes/DoubleLinkerIterator': 38, '../linked-list/LinkedList': 33, './DoubleLinker': 31, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.for-each.js': 147 }],
|
|
3481
|
+
33: [function (require, module, exports) {
|
|
2522
3482
|
'use strict'
|
|
2523
3483
|
|
|
2524
3484
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -2815,8 +3775,8 @@
|
|
|
2815
3775
|
const list = new classType(linkerClass)
|
|
2816
3776
|
return list.initialize(linkerClass.fromArray(values).head)
|
|
2817
3777
|
}
|
|
2818
|
-
}, { '../../recipes/LinkerIterator':
|
|
2819
|
-
|
|
3778
|
+
}, { '../../recipes/LinkerIterator': 39, '../arrayable/Arrayable': 30, './Linker': 34 }],
|
|
3779
|
+
34: [function (require, module, exports) {
|
|
2820
3780
|
'use strict'
|
|
2821
3781
|
|
|
2822
3782
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -2901,8 +3861,8 @@
|
|
|
2901
3861
|
head: null,
|
|
2902
3862
|
tail: null
|
|
2903
3863
|
})
|
|
2904
|
-
}, { '../arrayable/ArrayElement':
|
|
2905
|
-
|
|
3864
|
+
}, { '../arrayable/ArrayElement': 29, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.reduce.js': 149 }],
|
|
3865
|
+
35: [function (require, module, exports) {
|
|
2906
3866
|
'use strict'
|
|
2907
3867
|
|
|
2908
3868
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3197,8 +4157,8 @@
|
|
|
3197
4157
|
const list = new classType(linkerClass)
|
|
3198
4158
|
return list.initialize(linkerClass.fromArray(values).head)
|
|
3199
4159
|
}
|
|
3200
|
-
}, { '../../recipes/TreeLinkerIterator':
|
|
3201
|
-
|
|
4160
|
+
}, { '../../recipes/TreeLinkerIterator': 40, '../doubly-linked-list/DoublyLinkedList': 32, './TreeLinker': 36, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.for-each.js': 147 }],
|
|
4161
|
+
36: [function (require, module, exports) {
|
|
3202
4162
|
'use strict'
|
|
3203
4163
|
|
|
3204
4164
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3293,8 +4253,8 @@
|
|
|
3293
4253
|
* @returns {{head: TreeLinker, tail: TreeLinker}}
|
|
3294
4254
|
*/
|
|
3295
4255
|
TreeLinker.fromArray = (values = [], classType = TreeLinker) => _DoubleLinker.DoubleLinker.fromArray(values, classType)
|
|
3296
|
-
}, { '../doubly-linked-list/DoubleLinker':
|
|
3297
|
-
|
|
4256
|
+
}, { '../doubly-linked-list/DoubleLinker': 31, './LinkedTreeList': 35, 'core-js/modules/esnext.iterator.constructor.js': 144, 'core-js/modules/esnext.iterator.map.js': 148 }],
|
|
4257
|
+
37: [function (require, module, exports) {
|
|
3298
4258
|
'use strict'
|
|
3299
4259
|
|
|
3300
4260
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3335,7 +4295,7 @@
|
|
|
3335
4295
|
}
|
|
3336
4296
|
exports.ArrayIterator = ArrayIterator
|
|
3337
4297
|
}, {}],
|
|
3338
|
-
|
|
4298
|
+
38: [function (require, module, exports) {
|
|
3339
4299
|
'use strict'
|
|
3340
4300
|
|
|
3341
4301
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3370,7 +4330,7 @@
|
|
|
3370
4330
|
}
|
|
3371
4331
|
exports.DoubleLinkerIterator = DoubleLinkerIterator
|
|
3372
4332
|
}, {}],
|
|
3373
|
-
|
|
4333
|
+
39: [function (require, module, exports) {
|
|
3374
4334
|
'use strict'
|
|
3375
4335
|
|
|
3376
4336
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3405,7 +4365,7 @@
|
|
|
3405
4365
|
}
|
|
3406
4366
|
exports.LinkerIterator = LinkerIterator
|
|
3407
4367
|
}, {}],
|
|
3408
|
-
|
|
4368
|
+
40: [function (require, module, exports) {
|
|
3409
4369
|
'use strict'
|
|
3410
4370
|
|
|
3411
4371
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3442,8 +4402,8 @@
|
|
|
3442
4402
|
}
|
|
3443
4403
|
}
|
|
3444
4404
|
exports.TreeLinkerIterator = TreeLinkerIterator
|
|
3445
|
-
}, { '../services/parseTreeNext':
|
|
3446
|
-
|
|
4405
|
+
}, { '../services/parseTreeNext': 41 }],
|
|
4406
|
+
41: [function (require, module, exports) {
|
|
3447
4407
|
'use strict'
|
|
3448
4408
|
|
|
3449
4409
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3487,7 +4447,7 @@
|
|
|
3487
4447
|
}
|
|
3488
4448
|
exports.parseTreeNext = parseTreeNext
|
|
3489
4449
|
}, {}],
|
|
3490
|
-
|
|
4450
|
+
42: [function (require, module, exports) {
|
|
3491
4451
|
'use strict'
|
|
3492
4452
|
const isCallable = require('../internals/is-callable')
|
|
3493
4453
|
const tryToString = require('../internals/try-to-string')
|
|
@@ -3499,8 +4459,18 @@
|
|
|
3499
4459
|
if (isCallable(argument)) return argument
|
|
3500
4460
|
throw new $TypeError(tryToString(argument) + ' is not a function')
|
|
3501
4461
|
}
|
|
3502
|
-
}, { '../internals/is-callable':
|
|
3503
|
-
|
|
4462
|
+
}, { '../internals/is-callable': 87, '../internals/try-to-string': 130 }],
|
|
4463
|
+
43: [function (require, module, exports) {
|
|
4464
|
+
'use strict'
|
|
4465
|
+
const has = require('../internals/weak-map-helpers').has
|
|
4466
|
+
|
|
4467
|
+
// Perform ? RequireInternalSlot(M, [[WeakMapData]])
|
|
4468
|
+
module.exports = function (it) {
|
|
4469
|
+
has(it)
|
|
4470
|
+
return it
|
|
4471
|
+
}
|
|
4472
|
+
}, { '../internals/weak-map-helpers': 135 }],
|
|
4473
|
+
44: [function (require, module, exports) {
|
|
3504
4474
|
'use strict'
|
|
3505
4475
|
const isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
3506
4476
|
|
|
@@ -3510,8 +4480,8 @@
|
|
|
3510
4480
|
if (isPrototypeOf(Prototype, it)) return it
|
|
3511
4481
|
throw new $TypeError('Incorrect invocation')
|
|
3512
4482
|
}
|
|
3513
|
-
}, { '../internals/object-is-prototype-of':
|
|
3514
|
-
|
|
4483
|
+
}, { '../internals/object-is-prototype-of': 112 }],
|
|
4484
|
+
45: [function (require, module, exports) {
|
|
3515
4485
|
'use strict'
|
|
3516
4486
|
const isObject = require('../internals/is-object')
|
|
3517
4487
|
|
|
@@ -3523,8 +4493,8 @@
|
|
|
3523
4493
|
if (isObject(argument)) return argument
|
|
3524
4494
|
throw new $TypeError($String(argument) + ' is not an object')
|
|
3525
4495
|
}
|
|
3526
|
-
}, { '../internals/is-object':
|
|
3527
|
-
|
|
4496
|
+
}, { '../internals/is-object': 90 }],
|
|
4497
|
+
46: [function (require, module, exports) {
|
|
3528
4498
|
'use strict'
|
|
3529
4499
|
const toIndexedObject = require('../internals/to-indexed-object')
|
|
3530
4500
|
const toAbsoluteIndex = require('../internals/to-absolute-index')
|
|
@@ -3563,8 +4533,8 @@
|
|
|
3563
4533
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
3564
4534
|
indexOf: createMethod(false)
|
|
3565
4535
|
}
|
|
3566
|
-
}, { '../internals/length-of-array-like':
|
|
3567
|
-
|
|
4536
|
+
}, { '../internals/length-of-array-like': 102, '../internals/to-absolute-index': 123, '../internals/to-indexed-object': 124 }],
|
|
4537
|
+
47: [function (require, module, exports) {
|
|
3568
4538
|
'use strict'
|
|
3569
4539
|
const anObject = require('../internals/an-object')
|
|
3570
4540
|
const iteratorClose = require('../internals/iterator-close')
|
|
@@ -3577,8 +4547,8 @@
|
|
|
3577
4547
|
iteratorClose(iterator, 'throw', error)
|
|
3578
4548
|
}
|
|
3579
4549
|
}
|
|
3580
|
-
}, { '../internals/an-object':
|
|
3581
|
-
|
|
4550
|
+
}, { '../internals/an-object': 45, '../internals/iterator-close': 96 }],
|
|
4551
|
+
48: [function (require, module, exports) {
|
|
3582
4552
|
'use strict'
|
|
3583
4553
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3584
4554
|
|
|
@@ -3588,8 +4558,8 @@
|
|
|
3588
4558
|
module.exports = function (it) {
|
|
3589
4559
|
return stringSlice(toString(it), 8, -1)
|
|
3590
4560
|
}
|
|
3591
|
-
}, { '../internals/function-uncurry-this':
|
|
3592
|
-
|
|
4561
|
+
}, { '../internals/function-uncurry-this': 72 }],
|
|
4562
|
+
49: [function (require, module, exports) {
|
|
3593
4563
|
'use strict'
|
|
3594
4564
|
const hasOwn = require('../internals/has-own-property')
|
|
3595
4565
|
const ownKeys = require('../internals/own-keys')
|
|
@@ -3607,8 +4577,8 @@
|
|
|
3607
4577
|
}
|
|
3608
4578
|
}
|
|
3609
4579
|
}
|
|
3610
|
-
}, { '../internals/has-own-property':
|
|
3611
|
-
|
|
4580
|
+
}, { '../internals/has-own-property': 79, '../internals/object-define-property': 107, '../internals/object-get-own-property-descriptor': 108, '../internals/own-keys': 117 }],
|
|
4581
|
+
50: [function (require, module, exports) {
|
|
3612
4582
|
'use strict'
|
|
3613
4583
|
const fails = require('../internals/fails')
|
|
3614
4584
|
|
|
@@ -3618,8 +4588,8 @@
|
|
|
3618
4588
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
3619
4589
|
return Object.getPrototypeOf(new F()) !== F.prototype
|
|
3620
4590
|
})
|
|
3621
|
-
}, { '../internals/fails':
|
|
3622
|
-
|
|
4591
|
+
}, { '../internals/fails': 65 }],
|
|
4592
|
+
51: [function (require, module, exports) {
|
|
3623
4593
|
'use strict'
|
|
3624
4594
|
// `CreateIterResultObject` abstract operation
|
|
3625
4595
|
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
@@ -3627,7 +4597,7 @@
|
|
|
3627
4597
|
return { value, done }
|
|
3628
4598
|
}
|
|
3629
4599
|
}, {}],
|
|
3630
|
-
|
|
4600
|
+
52: [function (require, module, exports) {
|
|
3631
4601
|
'use strict'
|
|
3632
4602
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
3633
4603
|
const definePropertyModule = require('../internals/object-define-property')
|
|
@@ -3641,8 +4611,8 @@
|
|
|
3641
4611
|
object[key] = value
|
|
3642
4612
|
return object
|
|
3643
4613
|
}
|
|
3644
|
-
}, { '../internals/create-property-descriptor':
|
|
3645
|
-
|
|
4614
|
+
}, { '../internals/create-property-descriptor': 53, '../internals/descriptors': 59, '../internals/object-define-property': 107 }],
|
|
4615
|
+
53: [function (require, module, exports) {
|
|
3646
4616
|
'use strict'
|
|
3647
4617
|
module.exports = function (bitmap, value) {
|
|
3648
4618
|
return {
|
|
@@ -3653,7 +4623,7 @@
|
|
|
3653
4623
|
}
|
|
3654
4624
|
}
|
|
3655
4625
|
}, {}],
|
|
3656
|
-
|
|
4626
|
+
54: [function (require, module, exports) {
|
|
3657
4627
|
'use strict'
|
|
3658
4628
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
3659
4629
|
const definePropertyModule = require('../internals/object-define-property')
|
|
@@ -3663,8 +4633,8 @@
|
|
|
3663
4633
|
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value))
|
|
3664
4634
|
else object[key] = value
|
|
3665
4635
|
}
|
|
3666
|
-
}, { '../internals/create-property-descriptor':
|
|
3667
|
-
|
|
4636
|
+
}, { '../internals/create-property-descriptor': 53, '../internals/descriptors': 59, '../internals/object-define-property': 107 }],
|
|
4637
|
+
55: [function (require, module, exports) {
|
|
3668
4638
|
'use strict'
|
|
3669
4639
|
const makeBuiltIn = require('../internals/make-built-in')
|
|
3670
4640
|
const defineProperty = require('../internals/object-define-property')
|
|
@@ -3674,8 +4644,8 @@
|
|
|
3674
4644
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true })
|
|
3675
4645
|
return defineProperty.f(target, name, descriptor)
|
|
3676
4646
|
}
|
|
3677
|
-
}, { '../internals/make-built-in':
|
|
3678
|
-
|
|
4647
|
+
}, { '../internals/make-built-in': 103, '../internals/object-define-property': 107 }],
|
|
4648
|
+
56: [function (require, module, exports) {
|
|
3679
4649
|
'use strict'
|
|
3680
4650
|
const isCallable = require('../internals/is-callable')
|
|
3681
4651
|
const definePropertyModule = require('../internals/object-define-property')
|
|
@@ -3706,8 +4676,8 @@
|
|
|
3706
4676
|
}
|
|
3707
4677
|
} return O
|
|
3708
4678
|
}
|
|
3709
|
-
}, { '../internals/define-global-property':
|
|
3710
|
-
|
|
4679
|
+
}, { '../internals/define-global-property': 58, '../internals/is-callable': 87, '../internals/make-built-in': 103, '../internals/object-define-property': 107 }],
|
|
4680
|
+
57: [function (require, module, exports) {
|
|
3711
4681
|
'use strict'
|
|
3712
4682
|
const defineBuiltIn = require('../internals/define-built-in')
|
|
3713
4683
|
|
|
@@ -3715,8 +4685,8 @@
|
|
|
3715
4685
|
for (const key in src) defineBuiltIn(target, key, src[key], options)
|
|
3716
4686
|
return target
|
|
3717
4687
|
}
|
|
3718
|
-
}, { '../internals/define-built-in':
|
|
3719
|
-
|
|
4688
|
+
}, { '../internals/define-built-in': 56 }],
|
|
4689
|
+
58: [function (require, module, exports) {
|
|
3720
4690
|
'use strict'
|
|
3721
4691
|
const globalThis = require('../internals/global-this')
|
|
3722
4692
|
|
|
@@ -3730,8 +4700,8 @@
|
|
|
3730
4700
|
globalThis[key] = value
|
|
3731
4701
|
} return value
|
|
3732
4702
|
}
|
|
3733
|
-
}, { '../internals/global-this':
|
|
3734
|
-
|
|
4703
|
+
}, { '../internals/global-this': 78 }],
|
|
4704
|
+
59: [function (require, module, exports) {
|
|
3735
4705
|
'use strict'
|
|
3736
4706
|
const fails = require('../internals/fails')
|
|
3737
4707
|
|
|
@@ -3740,8 +4710,8 @@
|
|
|
3740
4710
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3741
4711
|
return Object.defineProperty({}, 1, { get: function () { return 7 } })[1] !== 7
|
|
3742
4712
|
})
|
|
3743
|
-
}, { '../internals/fails':
|
|
3744
|
-
|
|
4713
|
+
}, { '../internals/fails': 65 }],
|
|
4714
|
+
60: [function (require, module, exports) {
|
|
3745
4715
|
'use strict'
|
|
3746
4716
|
const globalThis = require('../internals/global-this')
|
|
3747
4717
|
const isObject = require('../internals/is-object')
|
|
@@ -3753,8 +4723,8 @@
|
|
|
3753
4723
|
module.exports = function (it) {
|
|
3754
4724
|
return EXISTS ? document.createElement(it) : {}
|
|
3755
4725
|
}
|
|
3756
|
-
}, { '../internals/global-this':
|
|
3757
|
-
|
|
4726
|
+
}, { '../internals/global-this': 78, '../internals/is-object': 90 }],
|
|
4727
|
+
61: [function (require, module, exports) {
|
|
3758
4728
|
'use strict'
|
|
3759
4729
|
// IE8- don't enum bug keys
|
|
3760
4730
|
module.exports = [
|
|
@@ -3767,7 +4737,7 @@
|
|
|
3767
4737
|
'valueOf'
|
|
3768
4738
|
]
|
|
3769
4739
|
}, {}],
|
|
3770
|
-
|
|
4740
|
+
62: [function (require, module, exports) {
|
|
3771
4741
|
'use strict'
|
|
3772
4742
|
const globalThis = require('../internals/global-this')
|
|
3773
4743
|
|
|
@@ -3775,8 +4745,8 @@
|
|
|
3775
4745
|
const userAgent = navigator && navigator.userAgent
|
|
3776
4746
|
|
|
3777
4747
|
module.exports = userAgent ? String(userAgent) : ''
|
|
3778
|
-
}, { '../internals/global-this':
|
|
3779
|
-
|
|
4748
|
+
}, { '../internals/global-this': 78 }],
|
|
4749
|
+
63: [function (require, module, exports) {
|
|
3780
4750
|
'use strict'
|
|
3781
4751
|
const globalThis = require('../internals/global-this')
|
|
3782
4752
|
const userAgent = require('../internals/environment-user-agent')
|
|
@@ -3805,8 +4775,8 @@
|
|
|
3805
4775
|
}
|
|
3806
4776
|
|
|
3807
4777
|
module.exports = version
|
|
3808
|
-
}, { '../internals/environment-user-agent':
|
|
3809
|
-
|
|
4778
|
+
}, { '../internals/environment-user-agent': 62, '../internals/global-this': 78 }],
|
|
4779
|
+
64: [function (require, module, exports) {
|
|
3810
4780
|
'use strict'
|
|
3811
4781
|
const globalThis = require('../internals/global-this')
|
|
3812
4782
|
const getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f
|
|
@@ -3864,8 +4834,8 @@
|
|
|
3864
4834
|
}
|
|
3865
4835
|
}
|
|
3866
4836
|
}
|
|
3867
|
-
}, { '../internals/copy-constructor-properties':
|
|
3868
|
-
|
|
4837
|
+
}, { '../internals/copy-constructor-properties': 49, '../internals/create-non-enumerable-property': 52, '../internals/define-built-in': 56, '../internals/define-global-property': 58, '../internals/global-this': 78, '../internals/is-forced': 88, '../internals/object-get-own-property-descriptor': 108 }],
|
|
4838
|
+
65: [function (require, module, exports) {
|
|
3869
4839
|
'use strict'
|
|
3870
4840
|
module.exports = function (exec) {
|
|
3871
4841
|
try {
|
|
@@ -3875,7 +4845,7 @@
|
|
|
3875
4845
|
}
|
|
3876
4846
|
}
|
|
3877
4847
|
}, {}],
|
|
3878
|
-
|
|
4848
|
+
66: [function (require, module, exports) {
|
|
3879
4849
|
'use strict'
|
|
3880
4850
|
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3881
4851
|
|
|
@@ -3889,8 +4859,8 @@
|
|
|
3889
4859
|
: function () {
|
|
3890
4860
|
return call.apply(apply, arguments)
|
|
3891
4861
|
})
|
|
3892
|
-
}, { '../internals/function-bind-native':
|
|
3893
|
-
|
|
4862
|
+
}, { '../internals/function-bind-native': 68 }],
|
|
4863
|
+
67: [function (require, module, exports) {
|
|
3894
4864
|
'use strict'
|
|
3895
4865
|
const uncurryThis = require('../internals/function-uncurry-this-clause')
|
|
3896
4866
|
const aCallable = require('../internals/a-callable')
|
|
@@ -3905,8 +4875,8 @@
|
|
|
3905
4875
|
return fn.apply(that, arguments)
|
|
3906
4876
|
}
|
|
3907
4877
|
}
|
|
3908
|
-
}, { '../internals/a-callable':
|
|
3909
|
-
|
|
4878
|
+
}, { '../internals/a-callable': 42, '../internals/function-bind-native': 68, '../internals/function-uncurry-this-clause': 71 }],
|
|
4879
|
+
68: [function (require, module, exports) {
|
|
3910
4880
|
'use strict'
|
|
3911
4881
|
const fails = require('../internals/fails')
|
|
3912
4882
|
|
|
@@ -3916,8 +4886,8 @@
|
|
|
3916
4886
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
3917
4887
|
return typeof test !== 'function' || test.hasOwnProperty('prototype')
|
|
3918
4888
|
})
|
|
3919
|
-
}, { '../internals/fails':
|
|
3920
|
-
|
|
4889
|
+
}, { '../internals/fails': 65 }],
|
|
4890
|
+
69: [function (require, module, exports) {
|
|
3921
4891
|
'use strict'
|
|
3922
4892
|
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3923
4893
|
|
|
@@ -3928,8 +4898,8 @@
|
|
|
3928
4898
|
: function () {
|
|
3929
4899
|
return call.apply(call, arguments)
|
|
3930
4900
|
}
|
|
3931
|
-
}, { '../internals/function-bind-native':
|
|
3932
|
-
|
|
4901
|
+
}, { '../internals/function-bind-native': 68 }],
|
|
4902
|
+
70: [function (require, module, exports) {
|
|
3933
4903
|
'use strict'
|
|
3934
4904
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
3935
4905
|
const hasOwn = require('../internals/has-own-property')
|
|
@@ -3948,8 +4918,8 @@
|
|
|
3948
4918
|
PROPER,
|
|
3949
4919
|
CONFIGURABLE
|
|
3950
4920
|
}
|
|
3951
|
-
}, { '../internals/descriptors':
|
|
3952
|
-
|
|
4921
|
+
}, { '../internals/descriptors': 59, '../internals/has-own-property': 79 }],
|
|
4922
|
+
71: [function (require, module, exports) {
|
|
3953
4923
|
'use strict'
|
|
3954
4924
|
const classofRaw = require('../internals/classof-raw')
|
|
3955
4925
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -3960,8 +4930,8 @@
|
|
|
3960
4930
|
// https://github.com/zloirock/core-js/issues/1130
|
|
3961
4931
|
if (classofRaw(fn) === 'Function') return uncurryThis(fn)
|
|
3962
4932
|
}
|
|
3963
|
-
}, { '../internals/classof-raw':
|
|
3964
|
-
|
|
4933
|
+
}, { '../internals/classof-raw': 48, '../internals/function-uncurry-this': 72 }],
|
|
4934
|
+
72: [function (require, module, exports) {
|
|
3965
4935
|
'use strict'
|
|
3966
4936
|
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3967
4937
|
|
|
@@ -3977,8 +4947,8 @@
|
|
|
3977
4947
|
return call.apply(fn, arguments)
|
|
3978
4948
|
}
|
|
3979
4949
|
}
|
|
3980
|
-
}, { '../internals/function-bind-native':
|
|
3981
|
-
|
|
4950
|
+
}, { '../internals/function-bind-native': 68 }],
|
|
4951
|
+
73: [function (require, module, exports) {
|
|
3982
4952
|
'use strict'
|
|
3983
4953
|
const globalThis = require('../internals/global-this')
|
|
3984
4954
|
const isCallable = require('../internals/is-callable')
|
|
@@ -3990,8 +4960,8 @@
|
|
|
3990
4960
|
module.exports = function (namespace, method) {
|
|
3991
4961
|
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]
|
|
3992
4962
|
}
|
|
3993
|
-
}, { '../internals/global-this':
|
|
3994
|
-
|
|
4963
|
+
}, { '../internals/global-this': 78, '../internals/is-callable': 87 }],
|
|
4964
|
+
74: [function (require, module, exports) {
|
|
3995
4965
|
'use strict'
|
|
3996
4966
|
// `GetIteratorDirect(obj)` abstract operation
|
|
3997
4967
|
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
@@ -4003,7 +4973,7 @@
|
|
|
4003
4973
|
}
|
|
4004
4974
|
}
|
|
4005
4975
|
}, {}],
|
|
4006
|
-
|
|
4976
|
+
75: [function (require, module, exports) {
|
|
4007
4977
|
'use strict'
|
|
4008
4978
|
const call = require('../internals/function-call')
|
|
4009
4979
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4018,8 +4988,8 @@
|
|
|
4018
4988
|
if (isCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument))
|
|
4019
4989
|
throw new $TypeError(tryToString(argument) + ' is not iterable')
|
|
4020
4990
|
}
|
|
4021
|
-
}, { '../internals/an-object':
|
|
4022
|
-
|
|
4991
|
+
}, { '../internals/an-object': 45, '../internals/function-call': 69, '../internals/get-iterator-method-internal': 76, '../internals/is-callable': 87, '../internals/try-to-string': 130 }],
|
|
4992
|
+
76: [function (require, module, exports) {
|
|
4023
4993
|
'use strict'
|
|
4024
4994
|
const classof = require('../internals/classof-raw')
|
|
4025
4995
|
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
@@ -4036,8 +5006,8 @@
|
|
|
4036
5006
|
(classof(it) === 'Arguments' ? ArrayPrototype[ITERATOR] : undefined)
|
|
4037
5007
|
}
|
|
4038
5008
|
}
|
|
4039
|
-
}, { '../internals/classof-raw':
|
|
4040
|
-
|
|
5009
|
+
}, { '../internals/classof-raw': 48, '../internals/get-method': 77, '../internals/is-null-or-undefined': 89, '../internals/well-known-symbol': 136 }],
|
|
5010
|
+
77: [function (require, module, exports) {
|
|
4041
5011
|
'use strict'
|
|
4042
5012
|
const aCallable = require('../internals/a-callable')
|
|
4043
5013
|
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
@@ -4048,8 +5018,8 @@
|
|
|
4048
5018
|
const func = V[P]
|
|
4049
5019
|
return isNullOrUndefined(func) ? undefined : aCallable(func)
|
|
4050
5020
|
}
|
|
4051
|
-
}, { '../internals/a-callable':
|
|
4052
|
-
|
|
5021
|
+
}, { '../internals/a-callable': 42, '../internals/is-null-or-undefined': 89 }],
|
|
5022
|
+
78: [function (require, module, exports) {
|
|
4053
5023
|
(function (global) {
|
|
4054
5024
|
(function () {
|
|
4055
5025
|
'use strict'
|
|
@@ -4071,7 +5041,7 @@
|
|
|
4071
5041
|
}).call(this)
|
|
4072
5042
|
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
|
|
4073
5043
|
}, {}],
|
|
4074
|
-
|
|
5044
|
+
79: [function (require, module, exports) {
|
|
4075
5045
|
'use strict'
|
|
4076
5046
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4077
5047
|
const toObject = require('../internals/to-object')
|
|
@@ -4084,18 +5054,18 @@
|
|
|
4084
5054
|
module.exports = Object.hasOwn || function hasOwn (it, key) {
|
|
4085
5055
|
return hasOwnProperty(toObject(it), key)
|
|
4086
5056
|
}
|
|
4087
|
-
}, { '../internals/function-uncurry-this':
|
|
4088
|
-
|
|
5057
|
+
}, { '../internals/function-uncurry-this': 72, '../internals/to-object': 127 }],
|
|
5058
|
+
80: [function (require, module, exports) {
|
|
4089
5059
|
'use strict'
|
|
4090
5060
|
module.exports = {}
|
|
4091
5061
|
}, {}],
|
|
4092
|
-
|
|
5062
|
+
81: [function (require, module, exports) {
|
|
4093
5063
|
'use strict'
|
|
4094
5064
|
const getBuiltIn = require('../internals/get-built-in')
|
|
4095
5065
|
|
|
4096
5066
|
module.exports = getBuiltIn('document', 'documentElement')
|
|
4097
|
-
}, { '../internals/get-built-in':
|
|
4098
|
-
|
|
5067
|
+
}, { '../internals/get-built-in': 73 }],
|
|
5068
|
+
82: [function (require, module, exports) {
|
|
4099
5069
|
'use strict'
|
|
4100
5070
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
4101
5071
|
const fails = require('../internals/fails')
|
|
@@ -4108,8 +5078,8 @@
|
|
|
4108
5078
|
get: function () { return 7 }
|
|
4109
5079
|
}).a !== 7
|
|
4110
5080
|
})
|
|
4111
|
-
}, { '../internals/descriptors':
|
|
4112
|
-
|
|
5081
|
+
}, { '../internals/descriptors': 59, '../internals/document-create-element': 60, '../internals/fails': 65 }],
|
|
5082
|
+
83: [function (require, module, exports) {
|
|
4113
5083
|
'use strict'
|
|
4114
5084
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4115
5085
|
const fails = require('../internals/fails')
|
|
@@ -4126,8 +5096,8 @@
|
|
|
4126
5096
|
}) ? function (it) {
|
|
4127
5097
|
return classof(it) === 'String' ? split(it, '') : $Object(it)
|
|
4128
5098
|
} : $Object
|
|
4129
|
-
}, { '../internals/classof-raw':
|
|
4130
|
-
|
|
5099
|
+
}, { '../internals/classof-raw': 48, '../internals/fails': 65, '../internals/function-uncurry-this': 72 }],
|
|
5100
|
+
84: [function (require, module, exports) {
|
|
4131
5101
|
'use strict'
|
|
4132
5102
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4133
5103
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4143,8 +5113,8 @@
|
|
|
4143
5113
|
}
|
|
4144
5114
|
|
|
4145
5115
|
module.exports = store.inspectSource
|
|
4146
|
-
}, { '../internals/function-uncurry-this':
|
|
4147
|
-
|
|
5116
|
+
}, { '../internals/function-uncurry-this': 72, '../internals/is-callable': 87, '../internals/shared-store': 120 }],
|
|
5117
|
+
85: [function (require, module, exports) {
|
|
4148
5118
|
'use strict'
|
|
4149
5119
|
const NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection')
|
|
4150
5120
|
const globalThis = require('../internals/global-this')
|
|
@@ -4216,8 +5186,8 @@
|
|
|
4216
5186
|
enforce,
|
|
4217
5187
|
getterFor
|
|
4218
5188
|
}
|
|
4219
|
-
}, { '../internals/create-non-enumerable-property':
|
|
4220
|
-
|
|
5189
|
+
}, { '../internals/create-non-enumerable-property': 52, '../internals/global-this': 78, '../internals/has-own-property': 79, '../internals/hidden-keys': 80, '../internals/is-object': 90, '../internals/shared-key': 119, '../internals/shared-store': 120, '../internals/weak-map-basic-detection': 134 }],
|
|
5190
|
+
86: [function (require, module, exports) {
|
|
4221
5191
|
'use strict'
|
|
4222
5192
|
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
4223
5193
|
const Iterators = require('../internals/iterators')
|
|
@@ -4229,8 +5199,8 @@
|
|
|
4229
5199
|
module.exports = function (it) {
|
|
4230
5200
|
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it)
|
|
4231
5201
|
}
|
|
4232
|
-
}, { '../internals/iterators':
|
|
4233
|
-
|
|
5202
|
+
}, { '../internals/iterators': 101, '../internals/well-known-symbol': 136 }],
|
|
5203
|
+
87: [function (require, module, exports) {
|
|
4234
5204
|
'use strict'
|
|
4235
5205
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
4236
5206
|
const documentAll = typeof document === 'object' && document.all
|
|
@@ -4246,7 +5216,7 @@
|
|
|
4246
5216
|
return typeof argument === 'function'
|
|
4247
5217
|
}
|
|
4248
5218
|
}, {}],
|
|
4249
|
-
|
|
5219
|
+
88: [function (require, module, exports) {
|
|
4250
5220
|
'use strict'
|
|
4251
5221
|
const fails = require('../internals/fails')
|
|
4252
5222
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4273,8 +5243,8 @@
|
|
|
4273
5243
|
var POLYFILL = isForced.POLYFILL = 'P'
|
|
4274
5244
|
|
|
4275
5245
|
module.exports = isForced
|
|
4276
|
-
}, { '../internals/fails':
|
|
4277
|
-
|
|
5246
|
+
}, { '../internals/fails': 65, '../internals/is-callable': 87 }],
|
|
5247
|
+
89: [function (require, module, exports) {
|
|
4278
5248
|
'use strict'
|
|
4279
5249
|
// we can't use just `it == null` since of `document.all` special case
|
|
4280
5250
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
@@ -4282,19 +5252,19 @@
|
|
|
4282
5252
|
return it === null || it === undefined
|
|
4283
5253
|
}
|
|
4284
5254
|
}, {}],
|
|
4285
|
-
|
|
5255
|
+
90: [function (require, module, exports) {
|
|
4286
5256
|
'use strict'
|
|
4287
5257
|
const isCallable = require('../internals/is-callable')
|
|
4288
5258
|
|
|
4289
5259
|
module.exports = function (it) {
|
|
4290
5260
|
return typeof it === 'object' ? it !== null : isCallable(it)
|
|
4291
5261
|
}
|
|
4292
|
-
}, { '../internals/is-callable':
|
|
4293
|
-
|
|
5262
|
+
}, { '../internals/is-callable': 87 }],
|
|
5263
|
+
91: [function (require, module, exports) {
|
|
4294
5264
|
'use strict'
|
|
4295
5265
|
module.exports = false
|
|
4296
5266
|
}, {}],
|
|
4297
|
-
|
|
5267
|
+
92: [function (require, module, exports) {
|
|
4298
5268
|
'use strict'
|
|
4299
5269
|
const getBuiltIn = require('../internals/get-built-in')
|
|
4300
5270
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4311,8 +5281,8 @@
|
|
|
4311
5281
|
const $Symbol = getBuiltIn('Symbol')
|
|
4312
5282
|
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it))
|
|
4313
5283
|
}
|
|
4314
|
-
}, { '../internals/get-built-in':
|
|
4315
|
-
|
|
5284
|
+
}, { '../internals/get-built-in': 73, '../internals/is-callable': 87, '../internals/object-is-prototype-of': 112, '../internals/use-symbol-as-uid': 132 }],
|
|
5285
|
+
93: [function (require, module, exports) {
|
|
4316
5286
|
'use strict'
|
|
4317
5287
|
const bind = require('../internals/function-bind-context')
|
|
4318
5288
|
const call = require('../internals/function-call')
|
|
@@ -4387,8 +5357,8 @@
|
|
|
4387
5357
|
if (typeof result === 'object' && result && isPrototypeOf(ResultPrototype, result)) return result
|
|
4388
5358
|
} return new Result(false)
|
|
4389
5359
|
}
|
|
4390
|
-
}, { '../internals/an-object':
|
|
4391
|
-
|
|
5360
|
+
}, { '../internals/an-object': 45, '../internals/function-bind-context': 67, '../internals/function-call': 69, '../internals/get-iterator-internal': 75, '../internals/get-iterator-method-internal': 76, '../internals/is-array-iterator-method': 86, '../internals/iterator-close': 96, '../internals/length-of-array-like': 102, '../internals/object-is-prototype-of': 112, '../internals/try-to-string': 130 }],
|
|
5361
|
+
94: [function (require, module, exports) {
|
|
4392
5362
|
'use strict'
|
|
4393
5363
|
// release references held by exhausted / closed iterator helpers to allow GC of the source chain
|
|
4394
5364
|
module.exports = function (state) {
|
|
@@ -4396,7 +5366,7 @@
|
|
|
4396
5366
|
state.iterables = state.iters = state.openIters = state.padding = state.finishResults = state.buffer = null
|
|
4397
5367
|
}
|
|
4398
5368
|
}, {}],
|
|
4399
|
-
|
|
5369
|
+
95: [function (require, module, exports) {
|
|
4400
5370
|
'use strict'
|
|
4401
5371
|
const iteratorClose = require('../internals/iterator-close')
|
|
4402
5372
|
|
|
@@ -4413,8 +5383,8 @@
|
|
|
4413
5383
|
if (kind === 'throw') throw value
|
|
4414
5384
|
return value
|
|
4415
5385
|
}
|
|
4416
|
-
}, { '../internals/iterator-close':
|
|
4417
|
-
|
|
5386
|
+
}, { '../internals/iterator-close': 96 }],
|
|
5387
|
+
96: [function (require, module, exports) {
|
|
4418
5388
|
'use strict'
|
|
4419
5389
|
const call = require('../internals/function-call')
|
|
4420
5390
|
const anObject = require('../internals/an-object')
|
|
@@ -4439,8 +5409,8 @@
|
|
|
4439
5409
|
anObject(innerResult)
|
|
4440
5410
|
return value
|
|
4441
5411
|
}
|
|
4442
|
-
}, { '../internals/an-object':
|
|
4443
|
-
|
|
5412
|
+
}, { '../internals/an-object': 45, '../internals/function-call': 69, '../internals/get-method': 77 }],
|
|
5413
|
+
97: [function (require, module, exports) {
|
|
4444
5414
|
'use strict'
|
|
4445
5415
|
const call = require('../internals/function-call')
|
|
4446
5416
|
const create = require('../internals/object-create')
|
|
@@ -4540,8 +5510,8 @@
|
|
|
4540
5510
|
|
|
4541
5511
|
return IteratorProxy
|
|
4542
5512
|
}
|
|
4543
|
-
}, { '../internals/create-iter-result-object':
|
|
4544
|
-
|
|
5513
|
+
}, { '../internals/create-iter-result-object': 51, '../internals/create-non-enumerable-property': 52, '../internals/define-built-ins': 57, '../internals/function-call': 69, '../internals/get-method': 77, '../internals/internal-state': 85, '../internals/iterator-cleanup-state': 94, '../internals/iterator-close': 96, '../internals/iterator-close-all': 95, '../internals/iterators-core': 100, '../internals/object-create': 105, '../internals/well-known-symbol': 136 }],
|
|
5514
|
+
98: [function (require, module, exports) {
|
|
4545
5515
|
'use strict'
|
|
4546
5516
|
// Should throw an error on invalid iterator
|
|
4547
5517
|
// https://issues.chromium.org/issues/336839115
|
|
@@ -4557,7 +5527,7 @@
|
|
|
4557
5527
|
}
|
|
4558
5528
|
}
|
|
4559
5529
|
}, {}],
|
|
4560
|
-
|
|
5530
|
+
99: [function (require, module, exports) {
|
|
4561
5531
|
'use strict'
|
|
4562
5532
|
const globalThis = require('../internals/global-this')
|
|
4563
5533
|
|
|
@@ -4583,8 +5553,8 @@
|
|
|
4583
5553
|
|
|
4584
5554
|
if (!CLOSED) return method
|
|
4585
5555
|
}
|
|
4586
|
-
}, { '../internals/global-this':
|
|
4587
|
-
|
|
5556
|
+
}, { '../internals/global-this': 78 }],
|
|
5557
|
+
100: [function (require, module, exports) {
|
|
4588
5558
|
'use strict'
|
|
4589
5559
|
const fails = require('../internals/fails')
|
|
4590
5560
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4634,12 +5604,12 @@
|
|
|
4634
5604
|
IteratorPrototype,
|
|
4635
5605
|
BUGGY_SAFARI_ITERATORS
|
|
4636
5606
|
}
|
|
4637
|
-
}, { '../internals/define-built-in':
|
|
4638
|
-
|
|
5607
|
+
}, { '../internals/define-built-in': 56, '../internals/fails': 65, '../internals/is-callable': 87, '../internals/is-object': 90, '../internals/is-pure': 91, '../internals/object-create': 105, '../internals/object-get-prototype-of': 111, '../internals/well-known-symbol': 136 }],
|
|
5608
|
+
101: [function (require, module, exports) {
|
|
4639
5609
|
'use strict'
|
|
4640
5610
|
module.exports = Object.create ? Object.create(null) : {}
|
|
4641
5611
|
}, {}],
|
|
4642
|
-
|
|
5612
|
+
102: [function (require, module, exports) {
|
|
4643
5613
|
'use strict'
|
|
4644
5614
|
const toLength = require('../internals/to-length')
|
|
4645
5615
|
|
|
@@ -4648,8 +5618,8 @@
|
|
|
4648
5618
|
module.exports = function (obj) {
|
|
4649
5619
|
return toLength(obj.length)
|
|
4650
5620
|
}
|
|
4651
|
-
}, { '../internals/to-length':
|
|
4652
|
-
|
|
5621
|
+
}, { '../internals/to-length': 126 }],
|
|
5622
|
+
103: [function (require, module, exports) {
|
|
4653
5623
|
'use strict'
|
|
4654
5624
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4655
5625
|
const fails = require('../internals/fails')
|
|
@@ -4705,8 +5675,8 @@
|
|
|
4705
5675
|
Function.prototype.toString = makeBuiltIn(function toString () {
|
|
4706
5676
|
return isCallable(this) && getInternalState(this).source || inspectSource(this)
|
|
4707
5677
|
}, 'toString')
|
|
4708
|
-
}, { '../internals/descriptors':
|
|
4709
|
-
|
|
5678
|
+
}, { '../internals/descriptors': 59, '../internals/fails': 65, '../internals/function-name': 70, '../internals/function-uncurry-this': 72, '../internals/has-own-property': 79, '../internals/inspect-source': 84, '../internals/internal-state': 85, '../internals/is-callable': 87 }],
|
|
5679
|
+
104: [function (require, module, exports) {
|
|
4710
5680
|
'use strict'
|
|
4711
5681
|
const ceil = Math.ceil
|
|
4712
5682
|
const floor = Math.floor
|
|
@@ -4719,7 +5689,7 @@
|
|
|
4719
5689
|
return (n > 0 ? floor : ceil)(n)
|
|
4720
5690
|
}
|
|
4721
5691
|
}, {}],
|
|
4722
|
-
|
|
5692
|
+
105: [function (require, module, exports) {
|
|
4723
5693
|
'use strict'
|
|
4724
5694
|
/* global ActiveXObject -- old IE, WSH */
|
|
4725
5695
|
const anObject = require('../internals/an-object')
|
|
@@ -4805,8 +5775,8 @@
|
|
|
4805
5775
|
} else result = NullProtoObject()
|
|
4806
5776
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties)
|
|
4807
5777
|
}
|
|
4808
|
-
}, { '../internals/an-object':
|
|
4809
|
-
|
|
5778
|
+
}, { '../internals/an-object': 45, '../internals/document-create-element': 60, '../internals/enum-bug-keys': 61, '../internals/hidden-keys': 80, '../internals/html': 81, '../internals/object-define-properties': 106, '../internals/shared-key': 119 }],
|
|
5779
|
+
106: [function (require, module, exports) {
|
|
4810
5780
|
'use strict'
|
|
4811
5781
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
4812
5782
|
const V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
@@ -4830,8 +5800,8 @@
|
|
|
4830
5800
|
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key])
|
|
4831
5801
|
return O
|
|
4832
5802
|
}
|
|
4833
|
-
}, { '../internals/an-object':
|
|
4834
|
-
|
|
5803
|
+
}, { '../internals/an-object': 45, '../internals/descriptors': 59, '../internals/object-define-property': 107, '../internals/object-keys': 114, '../internals/to-indexed-object': 124, '../internals/v8-prototype-define-bug': 133 }],
|
|
5804
|
+
107: [function (require, module, exports) {
|
|
4835
5805
|
'use strict'
|
|
4836
5806
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
4837
5807
|
const IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
@@ -4880,8 +5850,8 @@
|
|
|
4880
5850
|
if ('value' in Attributes) O[P] = Attributes.value
|
|
4881
5851
|
return O
|
|
4882
5852
|
}
|
|
4883
|
-
}, { '../internals/an-object':
|
|
4884
|
-
|
|
5853
|
+
}, { '../internals/an-object': 45, '../internals/descriptors': 59, '../internals/ie8-dom-define': 82, '../internals/to-property-key': 129, '../internals/v8-prototype-define-bug': 133 }],
|
|
5854
|
+
108: [function (require, module, exports) {
|
|
4885
5855
|
'use strict'
|
|
4886
5856
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
4887
5857
|
const call = require('../internals/function-call')
|
|
@@ -4907,8 +5877,8 @@
|
|
|
4907
5877
|
}
|
|
4908
5878
|
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P])
|
|
4909
5879
|
}
|
|
4910
|
-
}, { '../internals/create-property-descriptor':
|
|
4911
|
-
|
|
5880
|
+
}, { '../internals/create-property-descriptor': 53, '../internals/descriptors': 59, '../internals/function-call': 69, '../internals/has-own-property': 79, '../internals/ie8-dom-define': 82, '../internals/object-property-is-enumerable': 115, '../internals/to-indexed-object': 124, '../internals/to-property-key': 129 }],
|
|
5881
|
+
109: [function (require, module, exports) {
|
|
4912
5882
|
'use strict'
|
|
4913
5883
|
const internalObjectKeys = require('../internals/object-keys-internal')
|
|
4914
5884
|
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
@@ -4921,13 +5891,13 @@
|
|
|
4921
5891
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames (O) {
|
|
4922
5892
|
return internalObjectKeys(O, hiddenKeys)
|
|
4923
5893
|
}
|
|
4924
|
-
}, { '../internals/enum-bug-keys':
|
|
4925
|
-
|
|
5894
|
+
}, { '../internals/enum-bug-keys': 61, '../internals/object-keys-internal': 113 }],
|
|
5895
|
+
110: [function (require, module, exports) {
|
|
4926
5896
|
'use strict'
|
|
4927
5897
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
4928
5898
|
exports.f = Object.getOwnPropertySymbols
|
|
4929
5899
|
}, {}],
|
|
4930
|
-
|
|
5900
|
+
111: [function (require, module, exports) {
|
|
4931
5901
|
'use strict'
|
|
4932
5902
|
const hasOwn = require('../internals/has-own-property')
|
|
4933
5903
|
const isCallable = require('../internals/is-callable')
|
|
@@ -4952,14 +5922,14 @@
|
|
|
4952
5922
|
return constructor.prototype
|
|
4953
5923
|
} return object instanceof $Object ? ObjectPrototype : null
|
|
4954
5924
|
}
|
|
4955
|
-
}, { '../internals/correct-prototype-getter':
|
|
4956
|
-
|
|
5925
|
+
}, { '../internals/correct-prototype-getter': 50, '../internals/has-own-property': 79, '../internals/is-callable': 87, '../internals/shared-key': 119, '../internals/to-object': 127 }],
|
|
5926
|
+
112: [function (require, module, exports) {
|
|
4957
5927
|
'use strict'
|
|
4958
5928
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4959
5929
|
|
|
4960
5930
|
module.exports = uncurryThis({}.isPrototypeOf)
|
|
4961
|
-
}, { '../internals/function-uncurry-this':
|
|
4962
|
-
|
|
5931
|
+
}, { '../internals/function-uncurry-this': 72 }],
|
|
5932
|
+
113: [function (require, module, exports) {
|
|
4963
5933
|
'use strict'
|
|
4964
5934
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4965
5935
|
const hasOwn = require('../internals/has-own-property')
|
|
@@ -4983,8 +5953,8 @@
|
|
|
4983
5953
|
}
|
|
4984
5954
|
return result
|
|
4985
5955
|
}
|
|
4986
|
-
}, { '../internals/array-includes':
|
|
4987
|
-
|
|
5956
|
+
}, { '../internals/array-includes': 46, '../internals/function-uncurry-this': 72, '../internals/has-own-property': 79, '../internals/hidden-keys': 80, '../internals/to-indexed-object': 124 }],
|
|
5957
|
+
114: [function (require, module, exports) {
|
|
4988
5958
|
'use strict'
|
|
4989
5959
|
const internalObjectKeys = require('../internals/object-keys-internal')
|
|
4990
5960
|
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
@@ -4995,8 +5965,8 @@
|
|
|
4995
5965
|
module.exports = Object.keys || function keys (O) {
|
|
4996
5966
|
return internalObjectKeys(O, enumBugKeys)
|
|
4997
5967
|
}
|
|
4998
|
-
}, { '../internals/enum-bug-keys':
|
|
4999
|
-
|
|
5968
|
+
}, { '../internals/enum-bug-keys': 61, '../internals/object-keys-internal': 113 }],
|
|
5969
|
+
115: [function (require, module, exports) {
|
|
5000
5970
|
'use strict'
|
|
5001
5971
|
const $propertyIsEnumerable = {}.propertyIsEnumerable
|
|
5002
5972
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -5014,7 +5984,7 @@
|
|
|
5014
5984
|
}
|
|
5015
5985
|
: $propertyIsEnumerable
|
|
5016
5986
|
}, {}],
|
|
5017
|
-
|
|
5987
|
+
116: [function (require, module, exports) {
|
|
5018
5988
|
'use strict'
|
|
5019
5989
|
const call = require('../internals/function-call')
|
|
5020
5990
|
const isCallable = require('../internals/is-callable')
|
|
@@ -5031,8 +6001,8 @@
|
|
|
5031
6001
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
5032
6002
|
throw new $TypeError("Can't convert object to primitive value")
|
|
5033
6003
|
}
|
|
5034
|
-
}, { '../internals/function-call':
|
|
5035
|
-
|
|
6004
|
+
}, { '../internals/function-call': 69, '../internals/is-callable': 87, '../internals/is-object': 90 }],
|
|
6005
|
+
117: [function (require, module, exports) {
|
|
5036
6006
|
'use strict'
|
|
5037
6007
|
const getBuiltIn = require('../internals/get-built-in')
|
|
5038
6008
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -5048,8 +6018,8 @@
|
|
|
5048
6018
|
const getOwnPropertySymbols = getOwnPropertySymbolsModule.f
|
|
5049
6019
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys
|
|
5050
6020
|
}
|
|
5051
|
-
}, { '../internals/an-object':
|
|
5052
|
-
|
|
6021
|
+
}, { '../internals/an-object': 45, '../internals/function-uncurry-this': 72, '../internals/get-built-in': 73, '../internals/object-get-own-property-names': 109, '../internals/object-get-own-property-symbols': 110 }],
|
|
6022
|
+
118: [function (require, module, exports) {
|
|
5053
6023
|
'use strict'
|
|
5054
6024
|
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
5055
6025
|
|
|
@@ -5061,8 +6031,8 @@
|
|
|
5061
6031
|
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it)
|
|
5062
6032
|
return it
|
|
5063
6033
|
}
|
|
5064
|
-
}, { '../internals/is-null-or-undefined':
|
|
5065
|
-
|
|
6034
|
+
}, { '../internals/is-null-or-undefined': 89 }],
|
|
6035
|
+
119: [function (require, module, exports) {
|
|
5066
6036
|
'use strict'
|
|
5067
6037
|
const shared = require('../internals/shared')
|
|
5068
6038
|
const uid = require('../internals/uid')
|
|
@@ -5072,8 +6042,8 @@
|
|
|
5072
6042
|
module.exports = function (key) {
|
|
5073
6043
|
return keys[key] || (keys[key] = uid(key))
|
|
5074
6044
|
}
|
|
5075
|
-
}, { '../internals/shared':
|
|
5076
|
-
|
|
6045
|
+
}, { '../internals/shared': 121, '../internals/uid': 131 }],
|
|
6046
|
+
120: [function (require, module, exports) {
|
|
5077
6047
|
'use strict'
|
|
5078
6048
|
const IS_PURE = require('../internals/is-pure')
|
|
5079
6049
|
const globalThis = require('../internals/global-this')
|
|
@@ -5089,8 +6059,8 @@
|
|
|
5089
6059
|
license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
|
|
5090
6060
|
source: 'https://github.com/zloirock/core-js'
|
|
5091
6061
|
})
|
|
5092
|
-
}, { '../internals/define-global-property':
|
|
5093
|
-
|
|
6062
|
+
}, { '../internals/define-global-property': 58, '../internals/global-this': 78, '../internals/is-pure': 91 }],
|
|
6063
|
+
121: [function (require, module, exports) {
|
|
5094
6064
|
'use strict'
|
|
5095
6065
|
const store = require('../internals/shared-store')
|
|
5096
6066
|
// eslint-disable-next-line es/no-object-create -- safe
|
|
@@ -5099,8 +6069,8 @@
|
|
|
5099
6069
|
module.exports = function (key, value) {
|
|
5100
6070
|
return store[key] || (store[key] = value || create(null))
|
|
5101
6071
|
}
|
|
5102
|
-
}, { '../internals/shared-store':
|
|
5103
|
-
|
|
6072
|
+
}, { '../internals/shared-store': 120 }],
|
|
6073
|
+
122: [function (require, module, exports) {
|
|
5104
6074
|
'use strict'
|
|
5105
6075
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
5106
6076
|
const V8_VERSION = require('../internals/environment-v8-version')
|
|
@@ -5120,8 +6090,8 @@
|
|
|
5120
6090
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
5121
6091
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41
|
|
5122
6092
|
})
|
|
5123
|
-
}, { '../internals/environment-v8-version':
|
|
5124
|
-
|
|
6093
|
+
}, { '../internals/environment-v8-version': 63, '../internals/fails': 65, '../internals/global-this': 78 }],
|
|
6094
|
+
123: [function (require, module, exports) {
|
|
5125
6095
|
'use strict'
|
|
5126
6096
|
const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
5127
6097
|
|
|
@@ -5135,8 +6105,8 @@
|
|
|
5135
6105
|
const integer = toIntegerOrInfinity(index)
|
|
5136
6106
|
return integer < 0 ? max(integer + length, 0) : min(integer, length)
|
|
5137
6107
|
}
|
|
5138
|
-
}, { '../internals/to-integer-or-infinity':
|
|
5139
|
-
|
|
6108
|
+
}, { '../internals/to-integer-or-infinity': 125 }],
|
|
6109
|
+
124: [function (require, module, exports) {
|
|
5140
6110
|
'use strict'
|
|
5141
6111
|
// toObject with fallback for non-array-like ES3 strings
|
|
5142
6112
|
const IndexedObject = require('../internals/indexed-object')
|
|
@@ -5145,8 +6115,8 @@
|
|
|
5145
6115
|
module.exports = function (it) {
|
|
5146
6116
|
return IndexedObject(requireObjectCoercible(it))
|
|
5147
6117
|
}
|
|
5148
|
-
}, { '../internals/indexed-object':
|
|
5149
|
-
|
|
6118
|
+
}, { '../internals/indexed-object': 83, '../internals/require-object-coercible': 118 }],
|
|
6119
|
+
125: [function (require, module, exports) {
|
|
5150
6120
|
'use strict'
|
|
5151
6121
|
const trunc = require('../internals/math-trunc')
|
|
5152
6122
|
|
|
@@ -5157,8 +6127,8 @@
|
|
|
5157
6127
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
5158
6128
|
return number !== number || number === 0 ? 0 : trunc(number)
|
|
5159
6129
|
}
|
|
5160
|
-
}, { '../internals/math-trunc':
|
|
5161
|
-
|
|
6130
|
+
}, { '../internals/math-trunc': 104 }],
|
|
6131
|
+
126: [function (require, module, exports) {
|
|
5162
6132
|
'use strict'
|
|
5163
6133
|
const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
5164
6134
|
|
|
@@ -5170,8 +6140,8 @@
|
|
|
5170
6140
|
const len = toIntegerOrInfinity(argument)
|
|
5171
6141
|
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
|
|
5172
6142
|
}
|
|
5173
|
-
}, { '../internals/to-integer-or-infinity':
|
|
5174
|
-
|
|
6143
|
+
}, { '../internals/to-integer-or-infinity': 125 }],
|
|
6144
|
+
127: [function (require, module, exports) {
|
|
5175
6145
|
'use strict'
|
|
5176
6146
|
const requireObjectCoercible = require('../internals/require-object-coercible')
|
|
5177
6147
|
|
|
@@ -5182,8 +6152,8 @@
|
|
|
5182
6152
|
module.exports = function (argument) {
|
|
5183
6153
|
return $Object(requireObjectCoercible(argument))
|
|
5184
6154
|
}
|
|
5185
|
-
}, { '../internals/require-object-coercible':
|
|
5186
|
-
|
|
6155
|
+
}, { '../internals/require-object-coercible': 118 }],
|
|
6156
|
+
128: [function (require, module, exports) {
|
|
5187
6157
|
'use strict'
|
|
5188
6158
|
const call = require('../internals/function-call')
|
|
5189
6159
|
const isObject = require('../internals/is-object')
|
|
@@ -5210,8 +6180,8 @@
|
|
|
5210
6180
|
if (pref === undefined) pref = 'number'
|
|
5211
6181
|
return ordinaryToPrimitive(input, pref)
|
|
5212
6182
|
}
|
|
5213
|
-
}, { '../internals/function-call':
|
|
5214
|
-
|
|
6183
|
+
}, { '../internals/function-call': 69, '../internals/get-method': 77, '../internals/is-object': 90, '../internals/is-symbol': 92, '../internals/ordinary-to-primitive': 116, '../internals/well-known-symbol': 136 }],
|
|
6184
|
+
129: [function (require, module, exports) {
|
|
5215
6185
|
'use strict'
|
|
5216
6186
|
const toPrimitive = require('../internals/to-primitive')
|
|
5217
6187
|
const isSymbol = require('../internals/is-symbol')
|
|
@@ -5222,8 +6192,8 @@
|
|
|
5222
6192
|
const key = toPrimitive(argument, 'string')
|
|
5223
6193
|
return isSymbol(key) ? key : key + ''
|
|
5224
6194
|
}
|
|
5225
|
-
}, { '../internals/is-symbol':
|
|
5226
|
-
|
|
6195
|
+
}, { '../internals/is-symbol': 92, '../internals/to-primitive': 128 }],
|
|
6196
|
+
130: [function (require, module, exports) {
|
|
5227
6197
|
'use strict'
|
|
5228
6198
|
const $String = String
|
|
5229
6199
|
|
|
@@ -5235,7 +6205,7 @@
|
|
|
5235
6205
|
}
|
|
5236
6206
|
}
|
|
5237
6207
|
}, {}],
|
|
5238
|
-
|
|
6208
|
+
131: [function (require, module, exports) {
|
|
5239
6209
|
'use strict'
|
|
5240
6210
|
const uncurryThis = require('../internals/function-uncurry-this')
|
|
5241
6211
|
|
|
@@ -5246,8 +6216,8 @@
|
|
|
5246
6216
|
module.exports = function (key) {
|
|
5247
6217
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36)
|
|
5248
6218
|
}
|
|
5249
|
-
}, { '../internals/function-uncurry-this':
|
|
5250
|
-
|
|
6219
|
+
}, { '../internals/function-uncurry-this': 72 }],
|
|
6220
|
+
132: [function (require, module, exports) {
|
|
5251
6221
|
'use strict'
|
|
5252
6222
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
5253
6223
|
const NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
@@ -5255,8 +6225,8 @@
|
|
|
5255
6225
|
module.exports = NATIVE_SYMBOL &&
|
|
5256
6226
|
!Symbol.sham &&
|
|
5257
6227
|
typeof Symbol.iterator === 'symbol'
|
|
5258
|
-
}, { '../internals/symbol-constructor-detection':
|
|
5259
|
-
|
|
6228
|
+
}, { '../internals/symbol-constructor-detection': 122 }],
|
|
6229
|
+
133: [function (require, module, exports) {
|
|
5260
6230
|
'use strict'
|
|
5261
6231
|
const DESCRIPTORS = require('../internals/descriptors')
|
|
5262
6232
|
const fails = require('../internals/fails')
|
|
@@ -5270,8 +6240,8 @@
|
|
|
5270
6240
|
writable: false
|
|
5271
6241
|
}).prototype !== 42
|
|
5272
6242
|
})
|
|
5273
|
-
}, { '../internals/descriptors':
|
|
5274
|
-
|
|
6243
|
+
}, { '../internals/descriptors': 59, '../internals/fails': 65 }],
|
|
6244
|
+
134: [function (require, module, exports) {
|
|
5275
6245
|
'use strict'
|
|
5276
6246
|
const globalThis = require('../internals/global-this')
|
|
5277
6247
|
const isCallable = require('../internals/is-callable')
|
|
@@ -5279,8 +6249,24 @@
|
|
|
5279
6249
|
const WeakMap = globalThis.WeakMap
|
|
5280
6250
|
|
|
5281
6251
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap))
|
|
5282
|
-
}, { '../internals/global-this':
|
|
5283
|
-
|
|
6252
|
+
}, { '../internals/global-this': 78, '../internals/is-callable': 87 }],
|
|
6253
|
+
135: [function (require, module, exports) {
|
|
6254
|
+
'use strict'
|
|
6255
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
6256
|
+
|
|
6257
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
6258
|
+
const WeakMapPrototype = WeakMap.prototype
|
|
6259
|
+
|
|
6260
|
+
module.exports = {
|
|
6261
|
+
// eslint-disable-next-line es/no-weak-map -- safe
|
|
6262
|
+
WeakMap,
|
|
6263
|
+
set: uncurryThis(WeakMapPrototype.set),
|
|
6264
|
+
get: uncurryThis(WeakMapPrototype.get),
|
|
6265
|
+
has: uncurryThis(WeakMapPrototype.has),
|
|
6266
|
+
remove: uncurryThis(WeakMapPrototype.delete)
|
|
6267
|
+
}
|
|
6268
|
+
}, { '../internals/function-uncurry-this': 72 }],
|
|
6269
|
+
136: [function (require, module, exports) {
|
|
5284
6270
|
'use strict'
|
|
5285
6271
|
const globalThis = require('../internals/global-this')
|
|
5286
6272
|
const shared = require('../internals/shared')
|
|
@@ -5300,8 +6286,8 @@
|
|
|
5300
6286
|
: createWellKnownSymbol('Symbol.' + name)
|
|
5301
6287
|
} return WellKnownSymbolsStore[name]
|
|
5302
6288
|
}
|
|
5303
|
-
}, { '../internals/global-this':
|
|
5304
|
-
|
|
6289
|
+
}, { '../internals/global-this': 78, '../internals/has-own-property': 79, '../internals/shared': 121, '../internals/symbol-constructor-detection': 122, '../internals/uid': 131, '../internals/use-symbol-as-uid': 132 }],
|
|
6290
|
+
137: [function (require, module, exports) {
|
|
5305
6291
|
'use strict'
|
|
5306
6292
|
const $ = require('../internals/export')
|
|
5307
6293
|
const globalThis = require('../internals/global-this')
|
|
@@ -5367,8 +6353,8 @@
|
|
|
5367
6353
|
$({ global: true, constructor: true, forced: FORCED }, {
|
|
5368
6354
|
Iterator: IteratorConstructor
|
|
5369
6355
|
})
|
|
5370
|
-
}, { '../internals/an-instance':
|
|
5371
|
-
|
|
6356
|
+
}, { '../internals/an-instance': 44, '../internals/an-object': 45, '../internals/create-property': 54, '../internals/define-built-in-accessor': 55, '../internals/descriptors': 59, '../internals/export': 64, '../internals/fails': 65, '../internals/global-this': 78, '../internals/has-own-property': 79, '../internals/is-callable': 87, '../internals/is-pure': 91, '../internals/iterators-core': 100, '../internals/object-get-prototype-of': 111, '../internals/well-known-symbol': 136 }],
|
|
6357
|
+
138: [function (require, module, exports) {
|
|
5372
6358
|
'use strict'
|
|
5373
6359
|
const $ = require('../internals/export')
|
|
5374
6360
|
const call = require('../internals/function-call')
|
|
@@ -5420,8 +6406,8 @@
|
|
|
5420
6406
|
})
|
|
5421
6407
|
}
|
|
5422
6408
|
})
|
|
5423
|
-
}, { '../internals/a-callable':
|
|
5424
|
-
|
|
6409
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/call-with-safe-iteration-closing': 47, '../internals/export': 64, '../internals/function-call': 69, '../internals/get-iterator-direct': 74, '../internals/is-pure': 91, '../internals/iterator-close': 96, '../internals/iterator-create-proxy': 97, '../internals/iterator-helper-throws-on-invalid-iterator': 98, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6410
|
+
139: [function (require, module, exports) {
|
|
5425
6411
|
'use strict'
|
|
5426
6412
|
const $ = require('../internals/export')
|
|
5427
6413
|
const call = require('../internals/function-call')
|
|
@@ -5454,8 +6440,8 @@
|
|
|
5454
6440
|
}, { IS_RECORD: true, INTERRUPTED: true }).result
|
|
5455
6441
|
}
|
|
5456
6442
|
})
|
|
5457
|
-
}, { '../internals/a-callable':
|
|
5458
|
-
|
|
6443
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/export': 64, '../internals/function-call': 69, '../internals/get-iterator-direct': 74, '../internals/iterate': 93, '../internals/iterator-close': 96, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6444
|
+
140: [function (require, module, exports) {
|
|
5459
6445
|
'use strict'
|
|
5460
6446
|
const $ = require('../internals/export')
|
|
5461
6447
|
const call = require('../internals/function-call')
|
|
@@ -5488,8 +6474,8 @@
|
|
|
5488
6474
|
}, { IS_RECORD: true })
|
|
5489
6475
|
}
|
|
5490
6476
|
})
|
|
5491
|
-
}, { '../internals/a-callable':
|
|
5492
|
-
|
|
6477
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/export': 64, '../internals/function-call': 69, '../internals/get-iterator-direct': 74, '../internals/iterate': 93, '../internals/iterator-close': 96, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6478
|
+
141: [function (require, module, exports) {
|
|
5493
6479
|
'use strict'
|
|
5494
6480
|
const $ = require('../internals/export')
|
|
5495
6481
|
const call = require('../internals/function-call')
|
|
@@ -5534,8 +6520,8 @@
|
|
|
5534
6520
|
})
|
|
5535
6521
|
}
|
|
5536
6522
|
})
|
|
5537
|
-
}, { '../internals/a-callable':
|
|
5538
|
-
|
|
6523
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/call-with-safe-iteration-closing': 47, '../internals/export': 64, '../internals/function-call': 69, '../internals/get-iterator-direct': 74, '../internals/is-pure': 91, '../internals/iterator-close': 96, '../internals/iterator-create-proxy': 97, '../internals/iterator-helper-throws-on-invalid-iterator': 98, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6524
|
+
142: [function (require, module, exports) {
|
|
5539
6525
|
'use strict'
|
|
5540
6526
|
const $ = require('../internals/export')
|
|
5541
6527
|
const iterate = require('../internals/iterate')
|
|
@@ -5588,8 +6574,8 @@
|
|
|
5588
6574
|
return accumulator
|
|
5589
6575
|
}
|
|
5590
6576
|
})
|
|
5591
|
-
}, { '../internals/a-callable':
|
|
5592
|
-
|
|
6577
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/export': 64, '../internals/fails': 65, '../internals/function-apply': 66, '../internals/get-iterator-direct': 74, '../internals/iterate': 93, '../internals/iterator-close': 96, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6578
|
+
143: [function (require, module, exports) {
|
|
5593
6579
|
'use strict'
|
|
5594
6580
|
const $ = require('../internals/export')
|
|
5595
6581
|
const call = require('../internals/function-call')
|
|
@@ -5622,40 +6608,60 @@
|
|
|
5622
6608
|
}, { IS_RECORD: true, INTERRUPTED: true }).stopped
|
|
5623
6609
|
}
|
|
5624
6610
|
})
|
|
5625
|
-
}, { '../internals/a-callable':
|
|
5626
|
-
|
|
6611
|
+
}, { '../internals/a-callable': 42, '../internals/an-object': 45, '../internals/export': 64, '../internals/function-call': 69, '../internals/get-iterator-direct': 74, '../internals/iterate': 93, '../internals/iterator-close': 96, '../internals/iterator-helper-without-closing-on-early-error': 99 }],
|
|
6612
|
+
144: [function (require, module, exports) {
|
|
5627
6613
|
'use strict'
|
|
5628
6614
|
// TODO: Remove from `core-js@4`
|
|
5629
6615
|
require('../modules/es.iterator.constructor')
|
|
5630
|
-
}, { '../modules/es.iterator.constructor':
|
|
5631
|
-
|
|
6616
|
+
}, { '../modules/es.iterator.constructor': 137 }],
|
|
6617
|
+
145: [function (require, module, exports) {
|
|
5632
6618
|
'use strict'
|
|
5633
6619
|
// TODO: Remove from `core-js@4`
|
|
5634
6620
|
require('../modules/es.iterator.filter')
|
|
5635
|
-
}, { '../modules/es.iterator.filter':
|
|
5636
|
-
|
|
6621
|
+
}, { '../modules/es.iterator.filter': 138 }],
|
|
6622
|
+
146: [function (require, module, exports) {
|
|
5637
6623
|
'use strict'
|
|
5638
6624
|
// TODO: Remove from `core-js@4`
|
|
5639
6625
|
require('../modules/es.iterator.find')
|
|
5640
|
-
}, { '../modules/es.iterator.find':
|
|
5641
|
-
|
|
6626
|
+
}, { '../modules/es.iterator.find': 139 }],
|
|
6627
|
+
147: [function (require, module, exports) {
|
|
5642
6628
|
'use strict'
|
|
5643
6629
|
// TODO: Remove from `core-js@4`
|
|
5644
6630
|
require('../modules/es.iterator.for-each')
|
|
5645
|
-
}, { '../modules/es.iterator.for-each':
|
|
5646
|
-
|
|
6631
|
+
}, { '../modules/es.iterator.for-each': 140 }],
|
|
6632
|
+
148: [function (require, module, exports) {
|
|
5647
6633
|
'use strict'
|
|
5648
6634
|
// TODO: Remove from `core-js@4`
|
|
5649
6635
|
require('../modules/es.iterator.map')
|
|
5650
|
-
}, { '../modules/es.iterator.map':
|
|
5651
|
-
|
|
6636
|
+
}, { '../modules/es.iterator.map': 141 }],
|
|
6637
|
+
149: [function (require, module, exports) {
|
|
5652
6638
|
'use strict'
|
|
5653
6639
|
// TODO: Remove from `core-js@4`
|
|
5654
6640
|
require('../modules/es.iterator.reduce')
|
|
5655
|
-
}, { '../modules/es.iterator.reduce':
|
|
5656
|
-
|
|
6641
|
+
}, { '../modules/es.iterator.reduce': 142 }],
|
|
6642
|
+
150: [function (require, module, exports) {
|
|
5657
6643
|
'use strict'
|
|
5658
6644
|
// TODO: Remove from `core-js@4`
|
|
5659
6645
|
require('../modules/es.iterator.some')
|
|
5660
|
-
}, { '../modules/es.iterator.some':
|
|
5661
|
-
|
|
6646
|
+
}, { '../modules/es.iterator.some': 143 }],
|
|
6647
|
+
151: [function (require, module, exports) {
|
|
6648
|
+
'use strict'
|
|
6649
|
+
const $ = require('../internals/export')
|
|
6650
|
+
const aWeakMap = require('../internals/a-weak-map')
|
|
6651
|
+
const remove = require('../internals/weak-map-helpers').remove
|
|
6652
|
+
|
|
6653
|
+
// `WeakMap.prototype.deleteAll` method
|
|
6654
|
+
// https://github.com/tc39/proposal-collection-methods
|
|
6655
|
+
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
|
|
6656
|
+
deleteAll: function deleteAll (/* ...elements */) {
|
|
6657
|
+
const collection = aWeakMap(this)
|
|
6658
|
+
let allDeleted = true
|
|
6659
|
+
let wasDeleted
|
|
6660
|
+
for (let k = 0, len = arguments.length; k < len; k++) {
|
|
6661
|
+
wasDeleted = remove(collection, arguments[k])
|
|
6662
|
+
allDeleted = allDeleted && wasDeleted
|
|
6663
|
+
} return !!allDeleted
|
|
6664
|
+
}
|
|
6665
|
+
})
|
|
6666
|
+
}, { '../internals/a-weak-map': 43, '../internals/export': 64, '../internals/weak-map-helpers': 135 }]
|
|
6667
|
+
}, {}, [12])
|