"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.searchLocalUrl = void 0;
const tslib_1 = require("tslib");
function searchLocalUrl(url, finder) {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        const data = yield finder(url);
        if (data)
            return data;
        return finder(removeQueryParams(url));
    });
}
exports.searchLocalUrl = searchLocalUrl;
function removeQueryParams(url) {
    return url.split('?').shift();
}
//# sourceMappingURL=utils.js.map