@anoki/fse-ui
Version:
FSE UI components library
21 lines (20 loc) • 755 B
JavaScript
import s from "./index.es240.js";
import t from "./index.es239.js";
import o from "./index.es229.js";
import n from "./index.es241.js";
import { isUndefined as i, isString as m, isNumber as l } from "./index.es231.js";
import c from "./index.es242.js";
function S(e, f) {
if (i(e) || e === null)
return f;
if (e instanceof s)
return e;
if (m(e)) {
const r = e.toLowerCase();
return r === "default" ? f : r === "local" || r === "system" ? c.instance : r === "utc" || r === "gmt" ? o.utcInstance : o.parseSpecifier(r) || t.create(e);
} else return l(e) ? o.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new n(e);
}
export {
S as normalizeZone
};
//# sourceMappingURL=index.es232.js.map