"use strict";varroot_1=require('../util/root');functionsymbolIteratorPonyfill(root){varSymbol=root.Symbol;if(typeofSymbol==='function'){if(!Symbol.iterator){Symbol.iterator=Symbol('iterator polyfill');}returnSymbol.iterator;}else{// [for Mozilla Gecko 27-35:](https://mzl.la/2ewE1zC)varSet_1=root.Set;if(Set_1&&typeofnewSet_1()['@@iterator']==='function'){return'@@iterator';}varMap_1=root.Map;// required for compatability with es6-shimif(Map_1){varkeys=Object.getOwnPropertyNames(Map_1.prototype);for(vari=0;i<keys.length;++i){varkey=keys[i];// according to spec, Map.prototype[@@iterator] and Map.orototype.entries must be equal.if(key!=='entries'&&key!=='size'&&Map_1.prototype[key]===Map_1.prototype['entries']){returnkey;}}}return'@@iterator';}}exports.symbolIteratorPonyfill=symbolIteratorPonyfill;exports.iterator=symbolIteratorPonyfill(root_1.root);/** * @deprecated use iterator instead */exports.$$iterator=exports.iterator;//# sourceMappingURL=iterator.js.map