{"version":3,"file":"differenceInMilliseconds-BwWOjUbw.js","sources":["../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getRoundingMethod.js","../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js"],"sourcesContent":["export function getRoundingMethod(method) {\n return (number) => {\n const round = method ? Math[method] : Math.trunc;\n const result = round(number);\n // Prevent negative zero\n return result === 0 ? 0 : result;\n };\n}\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(laterDate, earlierDate) {\n return +toDate(laterDate) - +toDate(earlierDate);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n"],"names":["getRoundingMethod","method","number","round","result","differenceInMilliseconds","laterDate","earlierDate","toDate"],"mappings":"yCAAO,SAASA,EAAkBC,EAAQ,CACxC,OAAQC,GAAW,CACjB,MAAMC,EAAgC,KAAK,MACrCC,EAASD,EAAMD,CAAM,EAE3B,OAAOE,IAAW,EAAI,EAAIA,CAC3B,CACH,CCiBO,SAASC,EAAyBC,EAAWC,EAAa,CAC/D,MAAO,CAACC,EAAOF,CAAS,EAAI,CAACE,EAAOD,CAAW,CACjD","x_google_ignoreList":[0,1]}