11cb0ef41Sopenharmony_ci"use strict";
21cb0ef41Sopenharmony_civar __assign = (this && this.__assign) || function () {
31cb0ef41Sopenharmony_ci    __assign = Object.assign || function(t) {
41cb0ef41Sopenharmony_ci        for (var s, i = 1, n = arguments.length; i < n; i++) {
51cb0ef41Sopenharmony_ci            s = arguments[i];
61cb0ef41Sopenharmony_ci            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
71cb0ef41Sopenharmony_ci                t[p] = s[p];
81cb0ef41Sopenharmony_ci        }
91cb0ef41Sopenharmony_ci        return t;
101cb0ef41Sopenharmony_ci    };
111cb0ef41Sopenharmony_ci    return __assign.apply(this, arguments);
121cb0ef41Sopenharmony_ci};
131cb0ef41Sopenharmony_ciObject.defineProperty(exports, "__esModule", { value: true });
141cb0ef41Sopenharmony_civar defaultOptions = {
151cb0ef41Sopenharmony_ci    delayFirstAttempt: false,
161cb0ef41Sopenharmony_ci    jitter: "none",
171cb0ef41Sopenharmony_ci    maxDelay: Infinity,
181cb0ef41Sopenharmony_ci    numOfAttempts: 10,
191cb0ef41Sopenharmony_ci    retry: function () { return true; },
201cb0ef41Sopenharmony_ci    startingDelay: 100,
211cb0ef41Sopenharmony_ci    timeMultiple: 2
221cb0ef41Sopenharmony_ci};
231cb0ef41Sopenharmony_cifunction getSanitizedOptions(options) {
241cb0ef41Sopenharmony_ci    var sanitized = __assign(__assign({}, defaultOptions), options);
251cb0ef41Sopenharmony_ci    if (sanitized.numOfAttempts < 1) {
261cb0ef41Sopenharmony_ci        sanitized.numOfAttempts = 1;
271cb0ef41Sopenharmony_ci    }
281cb0ef41Sopenharmony_ci    return sanitized;
291cb0ef41Sopenharmony_ci}
301cb0ef41Sopenharmony_ciexports.getSanitizedOptions = getSanitizedOptions;
311cb0ef41Sopenharmony_ci//# sourceMappingURL=options.js.map