'use strict';var normalizeComponent=require('./normalize-component-a3a558e7.js'),domIterables=require('./dom-iterables-e2602b7e.js'),arrayIteration=require('./array-iteration-ec368d38.js'),arrayMethodIsStrict$1=require('./array-method-is-strict-eaf6e6bc.js'),wellKnownSymbol=require('./well-known-symbol-f1447879.js');var $forEach = arrayIteration.a.forEach;
var arrayMethodIsStrict = arrayMethodIsStrict$1.a;

var STRICT_METHOD = arrayMethodIsStrict('forEach');

// `Array.prototype.forEach` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;var global = normalizeComponent.g;
var DOMIterables = domIterables.d;
var forEach = arrayForEach;
var createNonEnumerableProperty = wellKnownSymbol.j;

for (var COLLECTION_NAME in DOMIterables) {
  var Collection = global[COLLECTION_NAME];
  var CollectionPrototype = Collection && Collection.prototype;
  // some Chrome versions have non-configurable methods on DOMTokenList
  if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
    createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  } catch (error) {
    CollectionPrototype.forEach = forEach;
  }
}