1 |
- {"ast":null,"code":"'use strict';\n\nvar fails = require('../internals/fails');\n\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\n\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar has = require('../internals/has');\n\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () {\n return this;\n}; // `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\n\n\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n/* eslint-disable es/no-array-prototype-keys -- safe */\n\nif ([].keys) {\n arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next`\n\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {}; // FF44- legacy iterators case\n\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; // `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\n\nif ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/core-js-pure/internals/iterators-core.js"],"names":["fails","require","getPrototypeOf","createNonEnumerableProperty","has","wellKnownSymbol","IS_PURE","ITERATOR","BUGGY_SAFARI_ITERATORS","returnThis","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","keys","Object","prototype","NEW_ITERATOR_PROTOTYPE","undefined","test","call","module","exports"],"mappings":"AAAA;;AACA,IAAIA,KAAK,GAAGC,OAAO,CAAC,oBAAD,CAAnB;;AACA,IAAIC,cAAc,GAAGD,OAAO,CAAC,sCAAD,CAA5B;;AACA,IAAIE,2BAA2B,GAAGF,OAAO,CAAC,6CAAD,CAAzC;;AACA,IAAIG,GAAG,GAAGH,OAAO,CAAC,kBAAD,CAAjB;;AACA,IAAII,eAAe,GAAGJ,OAAO,CAAC,gCAAD,CAA7B;;AACA,IAAIK,OAAO,GAAGL,OAAO,CAAC,sBAAD,CAArB;;AAEA,IAAIM,QAAQ,GAAGF,eAAe,CAAC,UAAD,CAA9B;AACA,IAAIG,sBAAsB,GAAG,KAA7B;;AAEA,IAAIC,UAAU,GAAG,YAAY;AAAE,SAAO,IAAP;AAAc,CAA7C,C,CAEA;AACA;;;AACA,IAAIC,iBAAJ,EAAuBC,iCAAvB,EAA0DC,aAA1D;AAEA;;AACA,IAAI,GAAGC,IAAP,EAAa;AACXD,EAAAA,aAAa,GAAG,GAAGC,IAAH,EAAhB,CADW,CAEX;;AACA,MAAI,EAAE,UAAUD,aAAZ,CAAJ,EAAgCJ,sBAAsB,GAAG,IAAzB,CAAhC,KACK;AACHG,IAAAA,iCAAiC,GAAGT,cAAc,CAACA,cAAc,CAACU,aAAD,CAAf,CAAlD;AACA,QAAID,iCAAiC,KAAKG,MAAM,CAACC,SAAjD,EAA4DL,iBAAiB,GAAGC,iCAApB;AAC7D;AACF;;AAED,IAAIK,sBAAsB,GAAGN,iBAAiB,IAAIO,SAArB,IAAkCjB,KAAK,CAAC,YAAY;AAC/E,MAAIkB,IAAI,GAAG,EAAX,CAD+E,CAE/E;;AACA,SAAOR,iBAAiB,CAACH,QAAD,CAAjB,CAA4BY,IAA5B,CAAiCD,IAAjC,MAA2CA,IAAlD;AACD,CAJmE,CAApE;AAMA,IAAIF,sBAAJ,EAA4BN,iBAAiB,GAAG,EAApB,C,CAE5B;AACA;;AACA,IAAI,CAAC,CAACJ,OAAD,IAAYU,sBAAb,KAAwC,CAACZ,GAAG,CAACM,iBAAD,EAAoBH,QAApB,CAAhD,EAA+E;AAC7EJ,EAAAA,2BAA2B,CAACO,iBAAD,EAAoBH,QAApB,EAA8BE,UAA9B,CAA3B;AACD;;AAEDW,MAAM,CAACC,OAAP,GAAiB;AACfX,EAAAA,iBAAiB,EAAEA,iBADJ;AAEfF,EAAAA,sBAAsB,EAAEA;AAFT,CAAjB","sourcesContent":["'use strict';\nvar fails = require('../internals/fails');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n"]},"metadata":{},"sourceType":"script"}
|