UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) • 865 B
import { t as canonicalizeBase64 } from "./base64-CnKpkbff.mjs"; import "./realtime-voice-provider-CvdkBd_7.mjs"; //#region extensions/google/base64.ts /** * Convert a ProtoJSON URL-safe Base64 payload to the standard alphabet without * validating the payload. Returns undefined when the input mixes alphabets, so * callers can reject it before the shared strict validator runs once. */ function toStandardGoogleProviderBase64(e) { const t = e.includes("+") || e.includes("/"); const n = e.includes("-") || e.includes("_"); if (t && n) return; return n ? e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/") : e; } function canonicalizeGoogleProviderBase64(e) { const t = toStandardGoogleProviderBase64(e); return t === void 0 ? void 0 : canonicalizeBase64(t); } //#endregion export { toStandardGoogleProviderBase64 as n, canonicalizeGoogleProviderBase64 as t };