function cloneRefs(references) {
    return references.map((ref) => {
      const clone = new shaka.media.SegmentReference(
          ref.startTime,
          ref.endTime,
          ref.getUrisInner,
          ref.startByte,
          ref.endByte,
          ref.initSegmentReference,
          ref.timestampOffset,
          ref.appendWindowStart,
          ref.appendWindowEnd);
      clone.codecs = ref.codecs;
      clone.mimeType = ref.mimeType;
      clone.bandwidth = ref.bandwidth;
      return clone;
    });
  }
Make clones of a list of references so that they can be modified without
affecting the originals.

@param {!Array<!shaka.media.SegmentReference>} references
@return {!Array<!shaka.media.SegmentReference>}