"use strict";const e=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;const r=Object.create(null);module.exports=function(a){if("string"!=typeof a)throw new TypeError;let c=r[a];return c||(c=r[a]={},a.replace(e,function(e){return function(e,r){switch(e.charAt(0)){case"G":r.era=["short","short","short","long","narrow"][e.length-1];break;case"y":case"Y":case"u":case"U":case"r":r.year=2===e.length?"2-digit":"numeric";break;case"Q":case"q":r.quarter=["numeric","2-digit","short","long","narrow"][e.length-1];break;case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][e.length-1];break;case"w":r.week=2===e.length?"2-digit":"numeric";break;case"W":r.week="numeric";break;case"d":r.day=2===e.length?"2-digit":"numeric";break;case"D":case"F":case"g":r.day="numeric";break;case"E":r.weekday=["short","short","short","long","narrow","short"][e.length-1];break;case"e":r.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1];break;case"c":r.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1];break;case"a":case"b":case"B":r.hour12=!0;break;case"h":r.hourCycle="h12",r.hour12=!0,r.hour=2===e.length?"2-digit":"numeric";break;case"H":r.hourCycle="h23",r.hour12=!1,r.hour=2===e.length?"2-digit":"numeric";break;case"k":r.hourCycle="h24",r.hour12=!1,r.hour=2===e.length?"2-digit":"numeric";break;case"K":r.hourCycle="h11",r.hour12=!0,r.hour=2===e.length?"2-digit":"numeric";break;case"m":r.minute=2===e.length?"2-digit":"numeric";break;case"s":r.second=2===e.length?"2-digit":"numeric";break;case"S":case"A":r.second="numeric";break;case"z":case"Z":case"O":case"v":case"V":case"X":case"x":r.timeZoneName=e.length<4?"short":"long"}}(e,c),""}),c)};
