// Metro module 6133 (f6134). import { getComplimentaryPaletteForColor } from "../../utils/ColorUtils"; import { memoize } from "../../_bundle/Module12"; const r15 = memoize((a0) => { let length; const r4 = 0 < a0.length; let r0 = 0; let r6 = 0; let r7 = 0; if (r4) { do { r6 = (r6 << 5) - r6 + a0.charCodeAt(r0); r0 = r0 + 1; length = a0.length; r7 = r6; } while (r0 < length); } return Math.abs(r7); }); export function replaceAnimationColors(a0, a1) { const complimentaryPaletteForColor = getComplimentaryPaletteForColor([a1.r, a1.g, a1.b], 2); return a0.replace.call(a0, /(\[1,0,0,)/g, `[${complimentaryPaletteForColor[0][0] / 255},${complimentaryPaletteForColor[0][1] / 255},${complimentaryPaletteForColor[0][2] / 255},`).replace(/\[0,0,1,/g, `[${complimentaryPaletteForColor[1][0] / 255},${complimentaryPaletteForColor[1][1] / 255},${complimentaryPaletteForColor[1][2] / 255},`); } export { r15 as getBurstAnimationHash };