11/**
2- * core-js 3.27.0
2+ * core-js 3.27.1
33 * © 2014-2022 Denis Pushkarev (zloirock.ru)
4- * license: https://github.com/zloirock/core-js/blob/v3.27.0 /LICENSE
4+ * license: https://github.com/zloirock/core-js/blob/v3.27.1 /LICENSE
55 * source: https://github.com/zloirock/core-js
66 */
77! function ( undefined ) { 'use strict' ; /******/ ( function ( modules ) { // webpackBootstrap
@@ -939,10 +939,10 @@ var store = __webpack_require__(36);
939939( module . exports = function ( key , value ) {
940940 return store [ key ] || ( store [ key ] = value !== undefined ? value : { } ) ;
941941} ) ( 'versions' , [ ] ) . push ( {
942- version : '3.27.0 ' ,
942+ version : '3.27.1 ' ,
943943 mode : IS_PURE ? 'pure' : 'global' ,
944944 copyright : '© 2014-2022 Denis Pushkarev (zloirock.ru)' ,
945- license : 'https://github.com/zloirock/core-js/blob/v3.27.0 /LICENSE' ,
945+ license : 'https://github.com/zloirock/core-js/blob/v3.27.1 /LICENSE' ,
946946 source : 'https://github.com/zloirock/core-js'
947947} ) ;
948948
@@ -7831,17 +7831,34 @@ __webpack_require__(242);
78317831
78327832"use strict" ;
78337833
7834+ var FREEZING = __webpack_require__ ( 238 ) ;
78347835var global = __webpack_require__ ( 3 ) ;
78357836var uncurryThis = __webpack_require__ ( 13 ) ;
78367837var defineBuiltIns = __webpack_require__ ( 166 ) ;
78377838var InternalMetadataModule = __webpack_require__ ( 232 ) ;
78387839var collection = __webpack_require__ ( 231 ) ;
78397840var collectionWeak = __webpack_require__ ( 243 ) ;
78407841var isObject = __webpack_require__ ( 19 ) ;
7841- var isExtensible = __webpack_require__ ( 236 ) ;
78427842var enforceInternalState = __webpack_require__ ( 51 ) . enforce ;
7843+ var fails = __webpack_require__ ( 6 ) ;
78437844var NATIVE_WEAK_MAP = __webpack_require__ ( 52 ) ;
78447845
7846+ var $Object = Object ;
7847+ // eslint-disable-next-line es/no-array-isarray -- safe
7848+ var isArray = Array . isArray ;
7849+ // eslint-disable-next-line es/no-object-isextensible -- safe
7850+ var isExtensible = $Object . isExtensible ;
7851+ // eslint-disable-next-line es/no-object-isfrozen -- safe
7852+ var isFrozen = $Object . isFrozen ;
7853+ // eslint-disable-next-line es/no-object-issealed -- safe
7854+ var isSealed = $Object . isSealed ;
7855+ // eslint-disable-next-line es/no-object-freeze -- safe
7856+ var freeze = $Object . freeze ;
7857+ // eslint-disable-next-line es/no-object-seal -- safe
7858+ var seal = $Object . seal ;
7859+
7860+ var FROZEN = { } ;
7861+ var SEALED = { } ;
78457862var IS_IE11 = ! global . ActiveXObject && 'ActiveXObject' in global ;
78467863var InternalWeakMap ;
78477864
@@ -7854,18 +7871,27 @@ var wrapper = function (init) {
78547871// `WeakMap` constructor
78557872// https://tc39.es/ecma262/#sec-weakmap-constructor
78567873var $WeakMap = collection ( 'WeakMap' , wrapper , collectionWeak ) ;
7874+ var WeakMapPrototype = $WeakMap . prototype ;
7875+ var nativeSet = uncurryThis ( WeakMapPrototype . set ) ;
7876+
7877+ // Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
7878+ var hasMSEdgeFreezingBug = function ( ) {
7879+ return FREEZING && fails ( function ( ) {
7880+ var frozenArray = freeze ( [ ] ) ;
7881+ nativeSet ( new $WeakMap ( ) , frozenArray , 1 ) ;
7882+ return ! isFrozen ( frozenArray ) ;
7883+ } ) ;
7884+ } ;
78577885
78587886// IE11 WeakMap frozen keys fix
78597887// We can't use feature detection because it crash some old IE builds
78607888// https://github.com/zloirock/core-js/issues/485
7861- if ( NATIVE_WEAK_MAP && IS_IE11 ) {
7889+ if ( NATIVE_WEAK_MAP ) if ( IS_IE11 ) {
78627890 InternalWeakMap = collectionWeak . getConstructor ( wrapper , 'WeakMap' , true ) ;
78637891 InternalMetadataModule . enable ( ) ;
7864- var WeakMapPrototype = $WeakMap . prototype ;
78657892 var nativeDelete = uncurryThis ( WeakMapPrototype [ 'delete' ] ) ;
78667893 var nativeHas = uncurryThis ( WeakMapPrototype . has ) ;
78677894 var nativeGet = uncurryThis ( WeakMapPrototype . get ) ;
7868- var nativeSet = uncurryThis ( WeakMapPrototype . set ) ;
78697895 defineBuiltIns ( WeakMapPrototype , {
78707896 'delete' : function ( key ) {
78717897 if ( isObject ( key ) && ! isExtensible ( key ) ) {
@@ -7897,6 +7923,21 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
78977923 return this ;
78987924 }
78997925 } ) ;
7926+ // Chakra Edge frozen keys fix
7927+ } else if ( hasMSEdgeFreezingBug ( ) ) {
7928+ defineBuiltIns ( WeakMapPrototype , {
7929+ set : function set ( key , value ) {
7930+ var arrayIntegrityLevel ;
7931+ if ( isArray ( key ) ) {
7932+ if ( isFrozen ( key ) ) arrayIntegrityLevel = FROZEN ;
7933+ else if ( isSealed ( key ) ) arrayIntegrityLevel = SEALED ;
7934+ }
7935+ nativeSet ( this , key , value ) ;
7936+ if ( arrayIntegrityLevel == FROZEN ) freeze ( key ) ;
7937+ if ( arrayIntegrityLevel == SEALED ) seal ( key ) ;
7938+ return this ;
7939+ }
7940+ } ) ;
79007941}
79017942
79027943
0 commit comments