0
  (   ˆÀ�þY!Vq²7$�4ðe¿ÏÄ974Ã_ˆI|¥�+H‹	ÃÂ Î    import type { ContextOptions, DateArg, RoundingOptions } from "./types.ts";
/**
 * The {@link differenceInQuarters} function options.
 */
export interface DifferenceInQuartersOptions
  extends RoundingOptions,
    ContextOptions<Date> {}
/**
 * @name differenceInQuarters
 * @category Quarter Helpers
 * @summary Get the number of quarters between the given dates.
 *
 * @description
 * Get the number of quarters between the given dates.
 *
 * @param laterDate - The later date
 * @param earlierDate - The earlier date
 * @param options - An object with options.
 *
 * @returns The number of full quarters
 *
 * @example
 * // How many full quarters are between 31 December 2013 and 2 July 2014?
 * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31))
 * //=> 2
 */
export declare function differenceInQuarters(
  laterDate: DateArg<Date> & {},
  earlierDate: DateArg<Date> & {},
  options?: DifferenceInQuartersOptions | undefined,
): number;
  5   	ˆl–ßi~” T¾R( 	Å�rã.©‹Fÿ�þB gàÅ�Â2ïóÆƒh¹ÅÄÃ      	0
     ˆ¾�þB gàÅ|Ž6×óÆƒh¹ÅÄÃ      0
  5   ˆl–ßi~” T¾R( 	Å�rãAS�ÿ�þB gàâu¢¯çÇƒh¹ÆÅÄ      auto
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«È633_‘I|¥‰ÓMdœv ©ƒ†ü+=ÈÇ y    ‹      Õ–]oÓ0†ï÷+Œ/¸kN?¶¶4h4“¨Øºj+B¡Ê�OkŽÙ.Ýøõ8MK»O˜•¸Š}ò&ç}|ç„¯â‹þøËè”|ŸŸ‘Ñ§÷gƒ>¡€Ï�>@<Ž«ûA³p:¤„fÎG ‹Å"XtmR_Bær¹Ö‘¸€;N£½°ŒE{$Ì�q%¡Nb4PoˆžÐsgÇöz \ç,*>Ž¹2$Z>×‰mX+×joÈ˜@®9J×J/$ò'Sf1„*™O«üáTóÛÒVkW|¦%6›.�”C….#ß™©êQ§…"O‰5I�‚H´²0•L]©˜QÂ¤ëÑ¯ƒþÅ7¯—•OG!#™ÁY�¾ë÷†Ç½˜FC–û|ìqÍ¹×œÐèŒYG¼S1ÈŸ_Uâ+ñãéÆ•&F›Q8¡ÕF
q5ÑÒÌ³x‚Ìl«*	ÿÝj°äÎbŒN.O‡ãxpY-	/_±qWoAi4b•#±0˜8mnW UÖ×jj‹ãõ”¬0ŒH3G#BäQåØgZr4ÛôOq3eh¼áÕ`Ûç=cíf»ÛhµíCÒìtù‡sU~jÁoŽg&åúfº&YÏkj~Ü]Iæ0õ[Æå×ð?,ËÚû¦0÷#µ@uþ¾4/€’:a7Hwçu u‚Î.�rTó‰p˜o˜„êÀjÍ]bhra­ÿÃl¸ÆêëîL2¡&Ëe"Ênd‚7,/$ÚŠñ¹ÛµlÏnw—‡ˆ3þ4—ÌÝ)ä#Á:ÐÞ¼}í[X5m!,»Æªfö'>¦>/       ˆÆ�þJVq²7$�4Ð?ŸÊƒeÀ·ÉÈÇ     "use strict";
exports.formatISO = formatISO;
var _index = require("./_lib/addLeadingZeros.cjs");
var _index2 = require("./toDate.cjs");

/**
 * The {@link formatISO} function options.
 */

/**
 * @name formatISO
 * @category Common Helpers
 * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).
 *
 * @description
 * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.
 *
 * @param date - The original date
 * @param options - An object with options.
 *
 * @returns The formatted date string (in local time zone)
 *
 * @throws `date` must not be Invalid Date
 *
 * @example
 * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):
 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))
 * //=> '2019-09-18T19:00:52Z'
 *
 * @example
 * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):
 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })
 * //=> '20190918T190052'
 *
 * @example
 * // Represent 18 September 2019 in ISO 8601 format, date only:
 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })
 * //=> '2019-09-18'
 *
 * @example
 * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):
 * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })
 * //=> '19:00:52Z'
 */
function formatISO(date, options) {
  const date_ = (0, _index2.toDate)(date, options?.in);

  if (isNaN(+date_)) {
    throw new RangeError("Invalid time value");
  }

  const format = options?.format ?? "extended";
  const representation = options?.representation ?? "complete";

  let result = "";
  let tzOffset = "";

  const dateDelimiter = format === "extended" ? "-" : "";
  const timeDelimiter = format === "extended" ? ":" : "";

  // Representation is either 'date' or 'complete'
  if (representation !== "time") {
    const day = (0, _index.addLeadingZeros)(da