Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
Math.sinh(freqForT) +
[19500] Fix | Delete
dampedAngularFreq *
[19501] Fix | Delete
initialDelta *
[19502] Fix | Delete
Math.cosh(freqForT))) /
[19503] Fix | Delete
dampedAngularFreq);
[19504] Fix | Delete
};
[19505] Fix | Delete
}
[19506] Fix | Delete
return {
[19507] Fix | Delete
calculatedDuration: isResolvedFromDuration ? duration || null : null,
[19508] Fix | Delete
next: (t) => {
[19509] Fix | Delete
const current = resolveSpring(t);
[19510] Fix | Delete
if (!isResolvedFromDuration) {
[19511] Fix | Delete
let currentVelocity = initialVelocity;
[19512] Fix | Delete
if (t !== 0) {
[19513] Fix | Delete
/**
[19514] Fix | Delete
* We only need to calculate velocity for under-damped springs
[19515] Fix | Delete
* as over- and critically-damped springs can't overshoot, so
[19516] Fix | Delete
* checking only for displacement is enough.
[19517] Fix | Delete
*/
[19518] Fix | Delete
if (dampingRatio < 1) {
[19519] Fix | Delete
currentVelocity = calcGeneratorVelocity(resolveSpring, t, current);
[19520] Fix | Delete
}
[19521] Fix | Delete
else {
[19522] Fix | Delete
currentVelocity = 0;
[19523] Fix | Delete
}
[19524] Fix | Delete
}
[19525] Fix | Delete
const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;
[19526] Fix | Delete
const isBelowDisplacementThreshold = Math.abs(target - current) <= restDelta;
[19527] Fix | Delete
state.done =
[19528] Fix | Delete
isBelowVelocityThreshold && isBelowDisplacementThreshold;
[19529] Fix | Delete
}
[19530] Fix | Delete
else {
[19531] Fix | Delete
state.done = t >= duration;
[19532] Fix | Delete
}
[19533] Fix | Delete
state.value = state.done ? target : current;
[19534] Fix | Delete
return state;
[19535] Fix | Delete
},
[19536] Fix | Delete
};
[19537] Fix | Delete
}
[19538] Fix | Delete
[19539] Fix | Delete
[19540] Fix | Delete
[19541] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/animation/generators/inertia.mjs
[19542] Fix | Delete
[19543] Fix | Delete
[19544] Fix | Delete
[19545] Fix | Delete
function inertia({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed, }) {
[19546] Fix | Delete
const origin = keyframes[0];
[19547] Fix | Delete
const state = {
[19548] Fix | Delete
done: false,
[19549] Fix | Delete
value: origin,
[19550] Fix | Delete
};
[19551] Fix | Delete
const isOutOfBounds = (v) => (min !== undefined && v < min) || (max !== undefined && v > max);
[19552] Fix | Delete
const nearestBoundary = (v) => {
[19553] Fix | Delete
if (min === undefined)
[19554] Fix | Delete
return max;
[19555] Fix | Delete
if (max === undefined)
[19556] Fix | Delete
return min;
[19557] Fix | Delete
return Math.abs(min - v) < Math.abs(max - v) ? min : max;
[19558] Fix | Delete
};
[19559] Fix | Delete
let amplitude = power * velocity;
[19560] Fix | Delete
const ideal = origin + amplitude;
[19561] Fix | Delete
const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);
[19562] Fix | Delete
/**
[19563] Fix | Delete
* If the target has changed we need to re-calculate the amplitude, otherwise
[19564] Fix | Delete
* the animation will start from the wrong position.
[19565] Fix | Delete
*/
[19566] Fix | Delete
if (target !== ideal)
[19567] Fix | Delete
amplitude = target - origin;
[19568] Fix | Delete
const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);
[19569] Fix | Delete
const calcLatest = (t) => target + calcDelta(t);
[19570] Fix | Delete
const applyFriction = (t) => {
[19571] Fix | Delete
const delta = calcDelta(t);
[19572] Fix | Delete
const latest = calcLatest(t);
[19573] Fix | Delete
state.done = Math.abs(delta) <= restDelta;
[19574] Fix | Delete
state.value = state.done ? target : latest;
[19575] Fix | Delete
};
[19576] Fix | Delete
/**
[19577] Fix | Delete
* Ideally this would resolve for t in a stateless way, we could
[19578] Fix | Delete
* do that by always precalculating the animation but as we know
[19579] Fix | Delete
* this will be done anyway we can assume that spring will
[19580] Fix | Delete
* be discovered during that.
[19581] Fix | Delete
*/
[19582] Fix | Delete
let timeReachedBoundary;
[19583] Fix | Delete
let spring$1;
[19584] Fix | Delete
const checkCatchBoundary = (t) => {
[19585] Fix | Delete
if (!isOutOfBounds(state.value))
[19586] Fix | Delete
return;
[19587] Fix | Delete
timeReachedBoundary = t;
[19588] Fix | Delete
spring$1 = spring({
[19589] Fix | Delete
keyframes: [state.value, nearestBoundary(state.value)],
[19590] Fix | Delete
velocity: calcGeneratorVelocity(calcLatest, t, state.value), // TODO: This should be passing * 1000
[19591] Fix | Delete
damping: bounceDamping,
[19592] Fix | Delete
stiffness: bounceStiffness,
[19593] Fix | Delete
restDelta,
[19594] Fix | Delete
restSpeed,
[19595] Fix | Delete
});
[19596] Fix | Delete
};
[19597] Fix | Delete
checkCatchBoundary(0);
[19598] Fix | Delete
return {
[19599] Fix | Delete
calculatedDuration: null,
[19600] Fix | Delete
next: (t) => {
[19601] Fix | Delete
/**
[19602] Fix | Delete
* We need to resolve the friction to figure out if we need a
[19603] Fix | Delete
* spring but we don't want to do this twice per frame. So here
[19604] Fix | Delete
* we flag if we updated for this frame and later if we did
[19605] Fix | Delete
* we can skip doing it again.
[19606] Fix | Delete
*/
[19607] Fix | Delete
let hasUpdatedFrame = false;
[19608] Fix | Delete
if (!spring$1 && timeReachedBoundary === undefined) {
[19609] Fix | Delete
hasUpdatedFrame = true;
[19610] Fix | Delete
applyFriction(t);
[19611] Fix | Delete
checkCatchBoundary(t);
[19612] Fix | Delete
}
[19613] Fix | Delete
/**
[19614] Fix | Delete
* If we have a spring and the provided t is beyond the moment the friction
[19615] Fix | Delete
* animation crossed the min/max boundary, use the spring.
[19616] Fix | Delete
*/
[19617] Fix | Delete
if (timeReachedBoundary !== undefined && t >= timeReachedBoundary) {
[19618] Fix | Delete
return spring$1.next(t - timeReachedBoundary);
[19619] Fix | Delete
}
[19620] Fix | Delete
else {
[19621] Fix | Delete
!hasUpdatedFrame && applyFriction(t);
[19622] Fix | Delete
return state;
[19623] Fix | Delete
}
[19624] Fix | Delete
},
[19625] Fix | Delete
};
[19626] Fix | Delete
}
[19627] Fix | Delete
[19628] Fix | Delete
[19629] Fix | Delete
[19630] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs
[19631] Fix | Delete
[19632] Fix | Delete
[19633] Fix | Delete
/*
[19634] Fix | Delete
Bezier function generator
[19635] Fix | Delete
This has been modified from Gaëtan Renaudeau's BezierEasing
[19636] Fix | Delete
https://github.com/gre/bezier-easing/blob/master/src/index.js
[19637] Fix | Delete
https://github.com/gre/bezier-easing/blob/master/LICENSE
[19638] Fix | Delete
[19639] Fix | Delete
I've removed the newtonRaphsonIterate algo because in benchmarking it
[19640] Fix | Delete
wasn't noticiably faster than binarySubdivision, indeed removing it
[19641] Fix | Delete
usually improved times, depending on the curve.
[19642] Fix | Delete
I also removed the lookup table, as for the added bundle size and loop we're
[19643] Fix | Delete
only cutting ~4 or so subdivision iterations. I bumped the max iterations up
[19644] Fix | Delete
to 12 to compensate and this still tended to be faster for no perceivable
[19645] Fix | Delete
loss in accuracy.
[19646] Fix | Delete
Usage
[19647] Fix | Delete
const easeOut = cubicBezier(.17,.67,.83,.67);
[19648] Fix | Delete
const x = easeOut(0.5); // returns 0.627...
[19649] Fix | Delete
*/
[19650] Fix | Delete
// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
[19651] Fix | Delete
const calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *
[19652] Fix | Delete
t;
[19653] Fix | Delete
const subdivisionPrecision = 0.0000001;
[19654] Fix | Delete
const subdivisionMaxIterations = 12;
[19655] Fix | Delete
function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
[19656] Fix | Delete
let currentX;
[19657] Fix | Delete
let currentT;
[19658] Fix | Delete
let i = 0;
[19659] Fix | Delete
do {
[19660] Fix | Delete
currentT = lowerBound + (upperBound - lowerBound) / 2.0;
[19661] Fix | Delete
currentX = calcBezier(currentT, mX1, mX2) - x;
[19662] Fix | Delete
if (currentX > 0.0) {
[19663] Fix | Delete
upperBound = currentT;
[19664] Fix | Delete
}
[19665] Fix | Delete
else {
[19666] Fix | Delete
lowerBound = currentT;
[19667] Fix | Delete
}
[19668] Fix | Delete
} while (Math.abs(currentX) > subdivisionPrecision &&
[19669] Fix | Delete
++i < subdivisionMaxIterations);
[19670] Fix | Delete
return currentT;
[19671] Fix | Delete
}
[19672] Fix | Delete
function cubicBezier(mX1, mY1, mX2, mY2) {
[19673] Fix | Delete
// If this is a linear gradient, return linear easing
[19674] Fix | Delete
if (mX1 === mY1 && mX2 === mY2)
[19675] Fix | Delete
return noop_noop;
[19676] Fix | Delete
const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);
[19677] Fix | Delete
// If animation is at start/end, return t without easing
[19678] Fix | Delete
return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);
[19679] Fix | Delete
}
[19680] Fix | Delete
[19681] Fix | Delete
[19682] Fix | Delete
[19683] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/ease.mjs
[19684] Fix | Delete
[19685] Fix | Delete
[19686] Fix | Delete
const easeIn = cubicBezier(0.42, 0, 1, 1);
[19687] Fix | Delete
const easeOut = cubicBezier(0, 0, 0.58, 1);
[19688] Fix | Delete
const easeInOut = cubicBezier(0.42, 0, 0.58, 1);
[19689] Fix | Delete
[19690] Fix | Delete
[19691] Fix | Delete
[19692] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs
[19693] Fix | Delete
const isEasingArray = (ease) => {
[19694] Fix | Delete
return Array.isArray(ease) && typeof ease[0] !== "number";
[19695] Fix | Delete
};
[19696] Fix | Delete
[19697] Fix | Delete
[19698] Fix | Delete
[19699] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs
[19700] Fix | Delete
// Accepts an easing function and returns a new one that outputs mirrored values for
[19701] Fix | Delete
// the second half of the animation. Turns easeIn into easeInOut.
[19702] Fix | Delete
const mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
[19703] Fix | Delete
[19704] Fix | Delete
[19705] Fix | Delete
[19706] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
[19707] Fix | Delete
// Accepts an easing function and returns a new one that outputs reversed values.
[19708] Fix | Delete
// Turns easeIn into easeOut.
[19709] Fix | Delete
const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
[19710] Fix | Delete
[19711] Fix | Delete
[19712] Fix | Delete
[19713] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/circ.mjs
[19714] Fix | Delete
[19715] Fix | Delete
[19716] Fix | Delete
[19717] Fix | Delete
const circIn = (p) => 1 - Math.sin(Math.acos(p));
[19718] Fix | Delete
const circOut = reverseEasing(circIn);
[19719] Fix | Delete
const circInOut = mirrorEasing(circIn);
[19720] Fix | Delete
[19721] Fix | Delete
[19722] Fix | Delete
[19723] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/back.mjs
[19724] Fix | Delete
[19725] Fix | Delete
[19726] Fix | Delete
[19727] Fix | Delete
[19728] Fix | Delete
const backOut = cubicBezier(0.33, 1.53, 0.69, 0.99);
[19729] Fix | Delete
const backIn = reverseEasing(backOut);
[19730] Fix | Delete
const backInOut = mirrorEasing(backIn);
[19731] Fix | Delete
[19732] Fix | Delete
[19733] Fix | Delete
[19734] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/anticipate.mjs
[19735] Fix | Delete
[19736] Fix | Delete
[19737] Fix | Delete
const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
[19738] Fix | Delete
[19739] Fix | Delete
[19740] Fix | Delete
[19741] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/easing/utils/map.mjs
[19742] Fix | Delete
[19743] Fix | Delete
[19744] Fix | Delete
[19745] Fix | Delete
[19746] Fix | Delete
[19747] Fix | Delete
[19748] Fix | Delete
[19749] Fix | Delete
[19750] Fix | Delete
const easingLookup = {
[19751] Fix | Delete
linear: noop_noop,
[19752] Fix | Delete
easeIn: easeIn,
[19753] Fix | Delete
easeInOut: easeInOut,
[19754] Fix | Delete
easeOut: easeOut,
[19755] Fix | Delete
circIn: circIn,
[19756] Fix | Delete
circInOut: circInOut,
[19757] Fix | Delete
circOut: circOut,
[19758] Fix | Delete
backIn: backIn,
[19759] Fix | Delete
backInOut: backInOut,
[19760] Fix | Delete
backOut: backOut,
[19761] Fix | Delete
anticipate: anticipate,
[19762] Fix | Delete
};
[19763] Fix | Delete
const easingDefinitionToFunction = (definition) => {
[19764] Fix | Delete
if (Array.isArray(definition)) {
[19765] Fix | Delete
// If cubic bezier definition, create bezier curve
[19766] Fix | Delete
errors_invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`);
[19767] Fix | Delete
const [x1, y1, x2, y2] = definition;
[19768] Fix | Delete
return cubicBezier(x1, y1, x2, y2);
[19769] Fix | Delete
}
[19770] Fix | Delete
else if (typeof definition === "string") {
[19771] Fix | Delete
// Else lookup from table
[19772] Fix | Delete
errors_invariant(easingLookup[definition] !== undefined, `Invalid easing type '${definition}'`);
[19773] Fix | Delete
return easingLookup[definition];
[19774] Fix | Delete
}
[19775] Fix | Delete
return definition;
[19776] Fix | Delete
};
[19777] Fix | Delete
[19778] Fix | Delete
[19779] Fix | Delete
[19780] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/progress.mjs
[19781] Fix | Delete
/*
[19782] Fix | Delete
Progress within given range
[19783] Fix | Delete
[19784] Fix | Delete
Given a lower limit and an upper limit, we return the progress
[19785] Fix | Delete
(expressed as a number 0-1) represented by the given value, and
[19786] Fix | Delete
limit that progress to within 0-1.
[19787] Fix | Delete
[19788] Fix | Delete
@param [number]: Lower limit
[19789] Fix | Delete
@param [number]: Upper limit
[19790] Fix | Delete
@param [number]: Value to find progress within given range
[19791] Fix | Delete
@return [number]: Progress of value within range as expressed 0-1
[19792] Fix | Delete
*/
[19793] Fix | Delete
const progress = (from, to, value) => {
[19794] Fix | Delete
const toFromDifference = to - from;
[19795] Fix | Delete
return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
[19796] Fix | Delete
};
[19797] Fix | Delete
[19798] Fix | Delete
[19799] Fix | Delete
[19800] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/number.mjs
[19801] Fix | Delete
/*
[19802] Fix | Delete
Value in range from progress
[19803] Fix | Delete
[19804] Fix | Delete
Given a lower limit and an upper limit, we return the value within
[19805] Fix | Delete
that range as expressed by progress (usually a number from 0 to 1)
[19806] Fix | Delete
[19807] Fix | Delete
So progress = 0.5 would change
[19808] Fix | Delete
[19809] Fix | Delete
from -------- to
[19810] Fix | Delete
[19811] Fix | Delete
to
[19812] Fix | Delete
[19813] Fix | Delete
from ---- to
[19814] Fix | Delete
[19815] Fix | Delete
E.g. from = 10, to = 20, progress = 0.5 => 15
[19816] Fix | Delete
[19817] Fix | Delete
@param [number]: Lower limit of range
[19818] Fix | Delete
@param [number]: Upper limit of range
[19819] Fix | Delete
@param [number]: The progress between lower and upper limits expressed 0-1
[19820] Fix | Delete
@return [number]: Value as calculated from progress within range (not limited within range)
[19821] Fix | Delete
*/
[19822] Fix | Delete
const mixNumber = (from, to, progress) => {
[19823] Fix | Delete
return from + (to - from) * progress;
[19824] Fix | Delete
};
[19825] Fix | Delete
[19826] Fix | Delete
[19827] Fix | Delete
[19828] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs
[19829] Fix | Delete
// Adapted from https://gist.github.com/mjackson/5311256
[19830] Fix | Delete
function hueToRgb(p, q, t) {
[19831] Fix | Delete
if (t < 0)
[19832] Fix | Delete
t += 1;
[19833] Fix | Delete
if (t > 1)
[19834] Fix | Delete
t -= 1;
[19835] Fix | Delete
if (t < 1 / 6)
[19836] Fix | Delete
return p + (q - p) * 6 * t;
[19837] Fix | Delete
if (t < 1 / 2)
[19838] Fix | Delete
return q;
[19839] Fix | Delete
if (t < 2 / 3)
[19840] Fix | Delete
return p + (q - p) * (2 / 3 - t) * 6;
[19841] Fix | Delete
return p;
[19842] Fix | Delete
}
[19843] Fix | Delete
function hslaToRgba({ hue, saturation, lightness, alpha }) {
[19844] Fix | Delete
hue /= 360;
[19845] Fix | Delete
saturation /= 100;
[19846] Fix | Delete
lightness /= 100;
[19847] Fix | Delete
let red = 0;
[19848] Fix | Delete
let green = 0;
[19849] Fix | Delete
let blue = 0;
[19850] Fix | Delete
if (!saturation) {
[19851] Fix | Delete
red = green = blue = lightness;
[19852] Fix | Delete
}
[19853] Fix | Delete
else {
[19854] Fix | Delete
const q = lightness < 0.5
[19855] Fix | Delete
? lightness * (1 + saturation)
[19856] Fix | Delete
: lightness + saturation - lightness * saturation;
[19857] Fix | Delete
const p = 2 * lightness - q;
[19858] Fix | Delete
red = hueToRgb(p, q, hue + 1 / 3);
[19859] Fix | Delete
green = hueToRgb(p, q, hue);
[19860] Fix | Delete
blue = hueToRgb(p, q, hue - 1 / 3);
[19861] Fix | Delete
}
[19862] Fix | Delete
return {
[19863] Fix | Delete
red: Math.round(red * 255),
[19864] Fix | Delete
green: Math.round(green * 255),
[19865] Fix | Delete
blue: Math.round(blue * 255),
[19866] Fix | Delete
alpha,
[19867] Fix | Delete
};
[19868] Fix | Delete
}
[19869] Fix | Delete
[19870] Fix | Delete
[19871] Fix | Delete
[19872] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/color.mjs
[19873] Fix | Delete
[19874] Fix | Delete
[19875] Fix | Delete
[19876] Fix | Delete
[19877] Fix | Delete
[19878] Fix | Delete
[19879] Fix | Delete
[19880] Fix | Delete
// Linear color space blending
[19881] Fix | Delete
// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw
[19882] Fix | Delete
// Demonstrated http://codepen.io/osublake/pen/xGVVaN
[19883] Fix | Delete
const mixLinearColor = (from, to, v) => {
[19884] Fix | Delete
const fromExpo = from * from;
[19885] Fix | Delete
const expo = v * (to * to - fromExpo) + fromExpo;
[19886] Fix | Delete
return expo < 0 ? 0 : Math.sqrt(expo);
[19887] Fix | Delete
};
[19888] Fix | Delete
const colorTypes = [hex, rgba, hsla];
[19889] Fix | Delete
const getColorType = (v) => colorTypes.find((type) => type.test(v));
[19890] Fix | Delete
function asRGBA(color) {
[19891] Fix | Delete
const type = getColorType(color);
[19892] Fix | Delete
errors_invariant(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`);
[19893] Fix | Delete
let model = type.parse(color);
[19894] Fix | Delete
if (type === hsla) {
[19895] Fix | Delete
// TODO Remove this cast - needed since Framer Motion's stricter typing
[19896] Fix | Delete
model = hslaToRgba(model);
[19897] Fix | Delete
}
[19898] Fix | Delete
return model;
[19899] Fix | Delete
}
[19900] Fix | Delete
const mixColor = (from, to) => {
[19901] Fix | Delete
const fromRGBA = asRGBA(from);
[19902] Fix | Delete
const toRGBA = asRGBA(to);
[19903] Fix | Delete
const blended = { ...fromRGBA };
[19904] Fix | Delete
return (v) => {
[19905] Fix | Delete
blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);
[19906] Fix | Delete
blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);
[19907] Fix | Delete
blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);
[19908] Fix | Delete
blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);
[19909] Fix | Delete
return rgba.transform(blended);
[19910] Fix | Delete
};
[19911] Fix | Delete
};
[19912] Fix | Delete
[19913] Fix | Delete
[19914] Fix | Delete
[19915] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/visibility.mjs
[19916] Fix | Delete
const invisibleValues = new Set(["none", "hidden"]);
[19917] Fix | Delete
/**
[19918] Fix | Delete
* Returns a function that, when provided a progress value between 0 and 1,
[19919] Fix | Delete
* will return the "none" or "hidden" string only when the progress is that of
[19920] Fix | Delete
* the origin or target.
[19921] Fix | Delete
*/
[19922] Fix | Delete
function mixVisibility(origin, target) {
[19923] Fix | Delete
if (invisibleValues.has(origin)) {
[19924] Fix | Delete
return (p) => (p <= 0 ? origin : target);
[19925] Fix | Delete
}
[19926] Fix | Delete
else {
[19927] Fix | Delete
return (p) => (p >= 1 ? target : origin);
[19928] Fix | Delete
}
[19929] Fix | Delete
}
[19930] Fix | Delete
[19931] Fix | Delete
[19932] Fix | Delete
[19933] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/mix/complex.mjs
[19934] Fix | Delete
[19935] Fix | Delete
[19936] Fix | Delete
[19937] Fix | Delete
[19938] Fix | Delete
[19939] Fix | Delete
[19940] Fix | Delete
[19941] Fix | Delete
[19942] Fix | Delete
[19943] Fix | Delete
function mixImmediate(a, b) {
[19944] Fix | Delete
return (p) => (p > 0 ? b : a);
[19945] Fix | Delete
}
[19946] Fix | Delete
function complex_mixNumber(a, b) {
[19947] Fix | Delete
return (p) => mixNumber(a, b, p);
[19948] Fix | Delete
}
[19949] Fix | Delete
function getMixer(a) {
[19950] Fix | Delete
if (typeof a === "number") {
[19951] Fix | Delete
return complex_mixNumber;
[19952] Fix | Delete
}
[19953] Fix | Delete
else if (typeof a === "string") {
[19954] Fix | Delete
return isCSSVariableToken(a)
[19955] Fix | Delete
? mixImmediate
[19956] Fix | Delete
: color.test(a)
[19957] Fix | Delete
? mixColor
[19958] Fix | Delete
: mixComplex;
[19959] Fix | Delete
}
[19960] Fix | Delete
else if (Array.isArray(a)) {
[19961] Fix | Delete
return mixArray;
[19962] Fix | Delete
}
[19963] Fix | Delete
else if (typeof a === "object") {
[19964] Fix | Delete
return color.test(a) ? mixColor : mixObject;
[19965] Fix | Delete
}
[19966] Fix | Delete
return mixImmediate;
[19967] Fix | Delete
}
[19968] Fix | Delete
function mixArray(a, b) {
[19969] Fix | Delete
const output = [...a];
[19970] Fix | Delete
const numValues = output.length;
[19971] Fix | Delete
const blendValue = a.map((v, i) => getMixer(v)(v, b[i]));
[19972] Fix | Delete
return (p) => {
[19973] Fix | Delete
for (let i = 0; i < numValues; i++) {
[19974] Fix | Delete
output[i] = blendValue[i](p);
[19975] Fix | Delete
}
[19976] Fix | Delete
return output;
[19977] Fix | Delete
};
[19978] Fix | Delete
}
[19979] Fix | Delete
function mixObject(a, b) {
[19980] Fix | Delete
const output = { ...a, ...b };
[19981] Fix | Delete
const blendValue = {};
[19982] Fix | Delete
for (const key in output) {
[19983] Fix | Delete
if (a[key] !== undefined && b[key] !== undefined) {
[19984] Fix | Delete
blendValue[key] = getMixer(a[key])(a[key], b[key]);
[19985] Fix | Delete
}
[19986] Fix | Delete
}
[19987] Fix | Delete
return (v) => {
[19988] Fix | Delete
for (const key in blendValue) {
[19989] Fix | Delete
output[key] = blendValue[key](v);
[19990] Fix | Delete
}
[19991] Fix | Delete
return output;
[19992] Fix | Delete
};
[19993] Fix | Delete
}
[19994] Fix | Delete
function matchOrder(origin, target) {
[19995] Fix | Delete
var _a;
[19996] Fix | Delete
const orderedOrigin = [];
[19997] Fix | Delete
const pointers = { color: 0, var: 0, number: 0 };
[19998] Fix | Delete
for (let i = 0; i < target.values.length; i++) {
[19999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function