'use strict';var normalizeComponent=require('./normalize-component-a3a558e7.js'),wellKnownSymbol$1=require('./well-known-symbol-f1447879.js');var classof = wellKnownSymbol$1.c;

// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray$1 = Array.isArray || function isArray(arg) {
  return classof(arg) == 'Array';
};var isObject = normalizeComponent.b;
var isArray = isArray$1;
var wellKnownSymbol = wellKnownSymbol$1.w;

var SPECIES = wellKnownSymbol('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 (isObject(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$1;