'use strict';var normalizeComponent=require('./normalize-component-ebe0c011.js'),wellKnownSymbol=require('./well-known-symbol-08f3111a.js');// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray || function isArray(arg) {
  return wellKnownSymbol.c(arg) == 'Array';
};var SPECIES = wellKnownSymbol.w('species');

// `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
var arraySpeciesCreate = function (originalArray, length) {
  var C;
  if (isArray(originalArray)) {
    C = originalArray.constructor;
    // cross-realm fallback
    if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
    else if (normalizeComponent.b(C)) {
      C = C[SPECIES];
      if (C === null) C = undefined;
    }
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
};exports.a=arraySpeciesCreate;exports.i=isArray;