@mmb-digital/ds-lilly 1.0.0-alpha.5 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Form/DatePicker/DatePicker.d.ts +2 -2
- package/cjs/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
- package/cjs/components/Form/DatePicker/DatePicker.js.map +1 -1
- package/cjs/ds-lilly.css +6 -3
- package/cjs/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/cjs/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/cjs/ext/date-fns/format.js +1 -1
- package/cjs/ext/date-fns/format.js.map +1 -1
- package/cjs/ext/date-fns/format2.js +1 -1
- package/cjs/ext/date-fns/format2.js.map +1 -1
- package/cjs/ext/date-fns/formatISO9075.js +1 -1
- package/cjs/ext/date-fns/formatISO9075.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js +1 -1
- package/cjs/ext/date-fns/formatRFC3339.js.map +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js +1 -1
- package/cjs/ext/date-fns/formatRFC7231.js.map +1 -1
- package/cjs/ext/date-fns/index.js +1 -1
- package/cjs/ext/date-fns/index.js.map +1 -1
- package/cjs/ext/date-fns/isMatch.js +1 -1
- package/cjs/ext/date-fns/isMatch.js.map +1 -1
- package/cjs/ext/date-fns/isValid.js +1 -1
- package/cjs/ext/date-fns/isValid.js.map +1 -1
- package/cjs/ext/date-fns/isValid2.js +1 -1
- package/cjs/ext/date-fns/isValid2.js.map +1 -1
- package/cjs/ext/date-fns/lightFormat.js +1 -1
- package/cjs/ext/date-fns/lightFormat.js.map +1 -1
- package/cjs/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/parseDateValue.d.ts +2 -0
- package/cjs/utils/parseDateValue.d.ts.map +1 -1
- package/cjs/utils/parseDateValue.js +1 -1
- package/cjs/utils/parseDateValue.js.map +1 -1
- package/components/Form/DatePicker/DatePicker.d.ts +2 -2
- package/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
- package/components/Form/DatePicker/DatePicker.js +1 -1
- package/components/Form/DatePicker/DatePicker.js.map +1 -1
- package/ds-lilly.css +6 -3
- package/ext/date-fns/differenceInBusinessDays.js +1 -1
- package/ext/date-fns/differenceInBusinessDays.js.map +1 -1
- package/ext/date-fns/format.js +1 -1
- package/ext/date-fns/format.js.map +1 -1
- package/ext/date-fns/format2.js +1 -1
- package/ext/date-fns/format2.js.map +1 -1
- package/ext/date-fns/formatISO9075.js +1 -1
- package/ext/date-fns/formatISO9075.js.map +1 -1
- package/ext/date-fns/formatRFC3339.js +1 -1
- package/ext/date-fns/formatRFC3339.js.map +1 -1
- package/ext/date-fns/formatRFC7231.js +1 -1
- package/ext/date-fns/formatRFC7231.js.map +1 -1
- package/ext/date-fns/index.js +1 -1
- package/ext/date-fns/index.js.map +1 -1
- package/ext/date-fns/isMatch.js +1 -1
- package/ext/date-fns/isMatch.js.map +1 -1
- package/ext/date-fns/isValid.js +1 -1
- package/ext/date-fns/isValid.js.map +1 -1
- package/ext/date-fns/isValid2.js +1 -1
- package/ext/date-fns/isValid2.js.map +1 -1
- package/ext/date-fns/lightFormat.js +1 -1
- package/ext/date-fns/lightFormat.js.map +1 -1
- package/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/index.js +1 -1
- package/utils/parseDateValue.d.ts +2 -0
- package/utils/parseDateValue.d.ts.map +1 -1
- package/utils/parseDateValue.js +1 -1
- package/utils/parseDateValue.js.map +1 -1
- /package/assets/{6435ffa7cd1886becafc.ttf → 0144096826fba60c6b42.ttf} +0 -0
- /package/assets/{f618d3159c3aa8488754.ttf → 07397a2b6aafb84679e0.ttf} +0 -0
- /package/assets/{037a36d28ebd87f051d3.eot → 23bb9886bdd0dc44dff6.eot} +0 -0
- /package/assets/{4d5a327a1a44681f2458.svg → 46aada24ff89321385d2.svg} +0 -0
- /package/assets/{99153328d71fea9d93ce.gif → 7cb188cf12d09151747a.gif} +0 -0
- /package/assets/{4189e2d90dd307138afb.woff → 7d9de53606f21f2f6c45.woff} +0 -0
- /package/assets/{40ed5e193591e9d1be62.eot → 7e361d8bd5c55bf6c21c.eot} +0 -0
- /package/assets/{57812b82890fc255739c.eot → d40c7e6631a0d677a706.eot} +0 -0
- /package/assets/{ada08b2452c612109f0b.woff → d9c1330c1f1ced96701f.woff} +0 -0
- /package/assets/{c6d450a2f1e864dc42ba.svg → f5385a37dd88672e239c.svg} +0 -0
- /package/assets/{f4ea1400e397e6adb50d.gif → f71f0ecf662dfd59d6bb.gif} +0 -0
- /package/assets/{fd762a36308258602380.eot → ff96897ac09f3966a01a.eot} +0 -0
|
@@ -9,7 +9,7 @@ export interface DatePickerPropsType extends Omit<FormField2PropsType, 'onChange
|
|
|
9
9
|
/** Children to be rendered in the main container. */
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
/** format ISO YYYY-MM-DD or UNIX time */
|
|
12
|
-
|
|
12
|
+
dateFormat?: 'ISO' | 'UNIX';
|
|
13
13
|
/** Disabled the whole DatePicker */
|
|
14
14
|
isDisabled?: boolean;
|
|
15
15
|
/** Language for localization of the date picker. */
|
|
@@ -27,5 +27,5 @@ export interface DatePickerPropsType extends Omit<FormField2PropsType, 'onChange
|
|
|
27
27
|
/** Define custom input for datepicker */
|
|
28
28
|
customInputType?: 'default' | 'monthInput';
|
|
29
29
|
}
|
|
30
|
-
export declare const DatePicker: ({ ariaLabel, customInputType,
|
|
30
|
+
export declare const DatePicker: ({ ariaLabel, customInputType, dateFormat, disabledTooltip, isDisabled, language, onChange, placeholder, settings, theme, value, ...props }: DatePickerPropsType) => JSX.Element;
|
|
31
31
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAA;AAMnD,OAAc,EAAE,SAAS,EAA6C,MAAM,OAAO,CAAA;AACnF,OAAwB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAGxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAA;AAMnD,OAAc,EAAE,SAAS,EAA6C,MAAM,OAAO,CAAA;AACnF,OAAwB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAGxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EACL,kBAAkB,EAOnB,MAAM,gBAAgB,CAAA;AAIvB,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,EAAE,kBAAkB;IACpG,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC3B,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACtB,gFAAgF;IAChF,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAA;IACjD,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yCAAyC;IACzC,eAAe,CAAC,EAAE,SAAS,GAAG,YAAY,CAAA;CAC3C;AAED,eAAO,MAAM,UAAU,+IAapB,mBAAmB,KAAG,WAkKxB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require('./../../../ext/cuid/index.js'),r=require('./../../../ext/date-fns/locale/cs.js'),
|
|
1
|
+
"use strict";var e=require('./../../../ext/tslib/tslib.es6.js'),t=require('./../../../ext/cuid/index.js'),r=require('./../../../ext/date-fns/locale/cs.js'),n=require('./../../../ext/date-fns/locale/en-GB.js'),o=require("react"),a=require('./../../../ext/react-datepicker/dist/react-datepicker.min.js'),s=require('./../../../ext/react-device-detect/dist/lib.js');require("../../../utils/getDisplayName.js"),require("../../../utils/getIntegerMask.js"),require("../../../utils/isFilled.js"),require("../../../utils/isNotFilled.js"),require("../../../utils/isNotNilNorEmpty.js"),require('./../../../ext/diacritic/diacritics.js');var i=require("../../../utils/classBinder.js");require('./../../../ext/text-mask-addons/dist/textMaskAddons.js');var u=require("../../../utils/parseDateValue.js"),l=require("../../Components/Avatar/Avatar.js"),d=require("../../Components/Button/Button.js");require("../../Components/ButtonTooltip/ButtonTooltip.js"),require("../../../contexts/CardContext.js"),require("../../../contexts/FormGroupContext.js"),require("../../../contexts/ModalContext.js"),require("../../../contexts/Select2Context.js"),require("../../../contexts/TabsContext.js"),require("react-slick"),require("../../Components/Collapse/Collapse.js"),require('./../../../ext/lodash/_baseToString.js');var c=require("../Input/Input.js");require("../../Typography/Amount/Amount.js"),require("../../Components/Dropdown/_elements_/DropdownMenu.js"),require("../../../contexts/ContentTableContext.js"),require("../../Components/ContentTable/ContentTableRow.js"),require("../../Components/Link/Link.js"),require("react-dom"),require("react-router-dom"),require("../../Components/SuperModal/SuperModal.context.js"),require('./../../../ext/lodash.debounce/index.js'),require("../../../contexts/MobilePanelContext.js"),require("../Slider/Slider.js"),require("../../Components/UserAuth/UserAuth.js");var p=require('./../../../ext/date-fns/format.js'),m=require('./../../../ext/date-fns/parse.js'),q=require('./../../../ext/date-fns/isValid.js');exports.DatePicker=function(j){var f=j.ariaLabel,C=j.customInputType,b=void 0===C?"default":C,v=j.dateFormat,y=void 0===v?"ISO":v,g=j.disabledTooltip,x=j.isDisabled,h=void 0!==x&&x,D=j.language,_=void 0===D?"cs":D,M=j.onChange,T=j.placeholder,S=j.settings,I=j.theme,k=j.value,w=e.__rest(j,["ariaLabel","customInputType","dateFormat","disabledTooltip","isDisabled","language","onChange","placeholder","settings","theme","value"]),E=o.useState(),F=E[0],N=E[1],A=o.useState(!1),B=A[0],O=A[1],L=o.useState(!1),P=L[0],z=L[1],G=o.useState(),U=G[0],V=G[1],R=s.isMobile||s.isTablet;o.useEffect((function(){var e=u.parseCzechDate(k),t=u.parseUnixDate(k),r=t||e||k,n=r?new Date(r):void 0,o=n?u.formatMonthDate(n,_):void 0,a=n?H(y,n):void 0;O(!!e),z(!!t),N(a),V(o)}),[k,y,b,U,_]);var Y=o.useCallback((function(e,t){if(t)return P?"".concat(t.getTime()):B?p.formatDate(t,"d. M. yyyy"):"ISO"===e?p.formatDate(new Date(t),"yyyy-MM-dd"):"".concat(new Date(t).getTime())}),[B,P]),H=function(e,t){if("object"==typeof t)return t;if(t){if("ISO"===e){var r=m.parse(t,"yyyy-MM-dd",new Date);return q.isValid(r)?r:new Date(t)}return new Date(parseInt("".concat(t)))}},J=o.useCallback((function(e){null==e||e.setHours(1,30),N(e);var t=Y(y,e);M(t)}),[y,M,Y]),K=o.useCallback((function(e){"string"==typeof e&&J(H("ISO",e))}),[J]),Q=o.useCallback((function(e){if("string"==typeof e)if(u.isDate(e)){var t=u.parseDate(e.replace(/\s/g,""));J(t)}else N(void 0),M(void 0)}),[J,M]),W=o.useCallback((function(e){e&&J(e)}),[J]),X=o.useMemo((function(){return t.default()}),[]);return o.createElement(o.Fragment,null,R?o.createElement(c.Input,e.__assign({"data-onopen":X},w,{disabledTooltip:g,isDisabled:h,type:"date",value:Y("ISO",F),onChange:K})):o.createElement(a.default,e.__assign({preventOpenOnFocus:!0,showMonthDropdown:!0,showYearDropdown:!0,autoFocus:!1,className:i.cx(I),customInput:"monthInput"===b?o.createElement("div",null,o.createElement(d.Button,{allowEventPropagation:!0,ariaLabel:f,disabledTooltip:g,isDisabled:h,size:"small",type:"border"},o.createElement(l.Avatar,{isLeft:!0,iconName:"calendar",size:"xSmall"}),null==U?void 0:U.toString())):o.createElement(c.Input,e.__assign({"data-onopen":X},w,{disabledTooltip:g,isDisabled:h,suffixIconName:"calendar",type:"text"})),dateFormat:"en"===_?"d/M/yyyy":"d. M. yyyy",dateFormatCalendar:" ",disabled:h,locale:"en"===_?n.enGB:r.cs,placeholderText:T,popperClassName:"custom-datepicker",renderMonthContent:function(e,t,r){return o.createElement("span",null,r)},selected:F,showMonthYearPicker:"monthInput"===b,onCalendarOpen:function(){var e;return null===(e=document.querySelector('[data-onopen="'.concat(X,'"]')))||void 0===e?void 0:e.blur()},onChangeRaw:Q},S||{},{onChange:W})))};
|
|
2
2
|
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.js","sources":["../../../../../../src/components/Form/DatePicker/DatePicker.tsx"],"sourcesContent":[null],"names":["_a","ariaLabel","_b","customInputType","
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sources":["../../../../../../src/components/Form/DatePicker/DatePicker.tsx"],"sourcesContent":[null],"names":["_a","ariaLabel","_b","customInputType","_c","dateFormat","disabledTooltip","_d","isDisabled","_e","language","onChange","placeholder","settings","theme","value","props","__rest","_f","useState","dateValue","setDateValue","_g","isCzechDateType","setIsCzechDateType","_h","isUnixDateType","setIsUnixDateType","_j","monthInputValue","setMonthInputValue","hasNativeCalendar","isMobile","isTablet","useEffect","czechValue","parseCzechDate","unixValue","parseUnixDate","correctValue","correctDate","Date","undefined","formattedMonthValue","formatMonthDate","formattedDateValue","formatValue","formatDate","useCallback","format","getTime","dateFns.format","date","dateFns.parse","dateFns.isValid","parseInt","handleChange","setHours","outValue","handleNativeInputChange","handleInputChange","isDate","parseDate","replace","handlePickerChange","generatedId","useMemo","createId","React","createElement","Fragment","Input","__assign","type","ReactDatePicker","default","preventOpenOnFocus","showMonthDropdown","showYearDropdown","autoFocus","className","cx","customInput","Button","allowEventPropagation","size","Avatar","isLeft","iconName","toString","suffixIconName","dateFormatCalendar","disabled","locale","enGB","cs","placeholderText","popperClassName","renderMonthContent","month","shortMonth","longMonth","selected","showMonthYearPicker","onCalendarOpen","document","querySelector","concat","blur","onChangeRaw"],"mappings":"wlEAgD0B,SAACA,GACzB,IAAAC,EAASD,EAAAC,UACTC,EAA2BF,EAAAG,gBAA3BA,OAAkB,IAAAD,EAAA,UAASA,EAC3BE,EAAkBJ,EAAAK,WAAlBA,OAAa,IAAAD,EAAA,MAAKA,EAClBE,EAAeN,EAAAM,gBACfC,EAAkBP,EAAAQ,WAAlBA,OAAU,IAAAD,GAAQA,EAClBE,EAAeT,EAAAU,SAAfA,OAAQ,IAAAD,EAAG,KAAIA,EACfE,EAAQX,EAAAW,SACRC,EAAWZ,EAAAY,YACXC,EAAQb,EAAAa,SACRC,EAAKd,EAAAc,MACLC,UACGC,EAZsBC,EAAAA,OAAAjB,EAAA,CAAA,YAAA,kBAAA,aAAA,kBAAA,aAAA,WAAA,WAAA,cAAA,WAAA,QAAA,UAcnBkB,EAA4BC,aAA3BC,EAASF,EAAA,GAAEG,EAAYH,EAAA,GACxBI,EAAwCH,EAAAA,UAAkB,GAAzDI,EAAeD,EAAA,GAAEE,EAAkBF,EAAA,GACpCG,EAAsCN,EAAAA,UAAkB,GAAvDO,EAAcD,EAAA,GAAEE,EAAiBF,EAAA,GAClCG,EAAwCT,aAAvCU,EAAeD,EAAA,GAAEE,EAAkBF,EAAA,GAEpCG,EAAoBC,EAAQA,UAAIC,WAEtCC,EAAAA,WAAU,WACR,IAAMC,EAAaC,iBAAerB,GAC5BsB,EAAYC,gBAAcvB,GAC1BwB,EAAeF,GAAaF,GAAcpB,EAC1CyB,EAAcD,EAAe,IAAIE,KAAKF,QAAgBG,EACtDC,EAAsBH,EAAcI,EAAAA,gBAAgBJ,EAAa9B,QAAYgC,EAE7EG,EAAqBL,EAAcM,EAAYzC,EAAYmC,QAAsBE,EAEvFlB,IAAqBW,GACrBR,IAAoBU,GACpBhB,EAAawB,GACbf,EAAmBa,EACrB,GAAG,CAAC5B,EAAOV,EAAYF,EAAiB0B,EAAiBnB,IAEzD,IAAMqC,EAAaC,EAAAA,aACjB,SAACC,EAAwBlC,GACvB,GAAIA,EACF,OAAIW,EAAuB,UAAGX,EAAMmC,WAChC3B,EAAwB4B,EAAcJ,WAAChC,EAAO,cAChC,QAAXkC,EAAmBE,EAAAA,WAAe,IAAIV,KAAK1B,GAAQ,cAAgB,UAAG,IAAI0B,KAAK1B,GAAOmC,UAEjG,GACA,CAAC3B,EAAiBG,IAGdoB,EAAc,SAACG,EAAwBlC,GAC3C,GAAqB,iBAAVA,EAAoB,OAAOA,EACjC,GAAIA,EAAO,CACd,GAAe,QAAXkC,EAAkB,CACpB,IAAMG,EAAOC,EAAAA,MAActC,EAAO,aAAc,IAAI0B,MACpD,OAAOa,EAAAA,QAAgBF,GAAQA,EAAO,IAAIX,KAAK1B,EAChD,CACD,OAAO,IAAI0B,KAAKc,SAAS,UAAGxC,IAC7B,CACH,EAEMyC,EAAeR,eACnB,SAACjC,GACCA,SAAAA,EAAO0C,SAAS,EAAG,IACnBpC,EAAaN,GACb,IAAM2C,EAAWX,EAAW1C,EAAYU,GACxCJ,EAAS+C,EACV,GACD,CAACrD,EAAYM,EAAUoC,IAGnBY,EAA2DX,eAC/D,SAACjC,GACsB,iBAAVA,GACTyC,EAAaV,EAAY,MAAO/B,GAEpC,GACA,CAACyC,IAGGI,EAAqDZ,eACzD,SAACjC,GACC,GAAqB,iBAAVA,EACT,GAAI8C,EAAAA,OAAO9C,GAAQ,CACjB,IAAMqC,EAAOU,EAAAA,UAAU/C,EAAMgD,QAAQ,MAAO,KAC5CP,EAAaJ,EACd,MACC/B,OAAaqB,GACb/B,OAAS+B,EAGf,GACA,CAACc,EAAc7C,IAGXqD,EAAqBhB,eACzB,SAACjC,GACKA,GACFyC,EAAazC,EAEjB,GACA,CAACyC,IAGGS,EAAcC,EAAAA,SAAQ,WAAM,OAAAC,EAAAA,SAAA,GAAY,IAM9C,OACEC,EAACC,cAAAD,EAAME,cACJvC,EACCqC,EAACC,cAAAE,QACcC,EAAAA,SAAA,CAAA,cAAAP,GACTjD,EAAK,CACTV,gBAAiBA,EACjBE,WAAYA,EACZiE,KAAK,OACL1D,MAAOgC,EAAW,MAAO3B,GACzBT,SAAUgD,KAGZS,EAACC,cAAAK,EAAeC,oBACdC,oBAAkB,EAClBC,mBAAiB,EACjBC,kBACA,EAAAC,WAAW,EACXC,UAAWC,EAAAA,GAAGnE,GACdoE,YACsB,eAApB/E,EACEiE,EAAAC,cAAA,MAAA,KACED,EAACC,cAAAc,EAAMA,QACLC,uBAAqB,EACrBnF,UAAWA,EACXK,gBAAiBA,EACjBE,WAAYA,EACZ6E,KAAK,QACLZ,KAAK,UAELL,EAAAC,cAACiB,EAAMA,OAAA,CAACC,QAAM,EAACC,SAAS,WAAWH,KAAK,WACvCxD,aAAe,EAAfA,EAAiB4D,aAItBrB,EAACC,cAAAE,EAAKA,gCACSN,GACTjD,EACJ,CAAAV,gBAAiBA,EACjBE,WAAYA,EACZkF,eAAe,WACfjB,KAAK,UAIXpE,WAAyB,OAAbK,EAAoB,WAAa,aAC7CiF,mBAAmB,IACnBC,SAAUpF,EACVqF,OAAqB,OAAbnF,EAAoBoF,EAAIA,KAAGC,KACnCC,gBAAiBpF,EACjBqF,gBAAgB,oBAChBC,mBAvD+D,SAACC,EAAOC,EAAYC,GACzF,OAAOjC,EAAAC,cAAA,OAAA,KAAOgC,EAChB,EAsDQC,SAAUlF,EACVmF,oBAAyC,eAApBpG,EAGrBqG,eAAgB,WAAM,IAAAxG,EAAA,OAAwD,QAAxDA,EAAAyG,SAASC,cAAc,iBAAiBC,OAAA1C,gBAAgB,IAAAjE,OAAA,EAAAA,EAAE4G,MAAM,EAGtFC,YAAajD,GACR/C,GAAY,GAAG,CAGpBF,SAAUqD,KAKpB"}
|
package/cjs/ds-lilly.css
CHANGED
|
@@ -7299,6 +7299,9 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
7299
7299
|
z-index: 1;
|
|
7300
7300
|
}
|
|
7301
7301
|
|
|
7302
|
+
.custom-datepicker {
|
|
7303
|
+
z-index: 1000 !important;
|
|
7304
|
+
}
|
|
7302
7305
|
.custom-datepicker .react-datepicker {
|
|
7303
7306
|
border: 0 !important;
|
|
7304
7307
|
box-shadow: var(--boxShadowXXSmall);
|
|
@@ -9316,7 +9319,7 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
9316
9319
|
/* Slider */
|
|
9317
9320
|
.slick-loading .slick-list
|
|
9318
9321
|
{
|
|
9319
|
-
background: #fff url('assets/
|
|
9322
|
+
background: #fff url('assets/7cb188cf12d09151747a.gif') center center no-repeat;
|
|
9320
9323
|
}
|
|
9321
9324
|
|
|
9322
9325
|
/* Icons */
|
|
@@ -9326,8 +9329,8 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
|
|
|
9326
9329
|
font-weight: normal;
|
|
9327
9330
|
font-style: normal;
|
|
9328
9331
|
|
|
9329
|
-
src: url('assets/
|
|
9330
|
-
src: url('assets/
|
|
9332
|
+
src: url('assets/ff96897ac09f3966a01a.eot');
|
|
9333
|
+
src: url('assets/23bb9886bdd0dc44dff6.eot') format('embedded-opentype'), url('assets/7d9de53606f21f2f6c45.woff') format('woff'), url('assets/07397a2b6aafb84679e0.ttf') format('truetype'), url('assets/46aada24ff89321385d2.svg') format('svg');
|
|
9331
9334
|
}
|
|
9332
9335
|
/* Arrows */
|
|
9333
9336
|
.slick-prev,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,r=require("../../_virtual/differenceInBusinessDays.js"),i=require("./addDays.js"),s=require("./differenceInCalendarDays.js"),a=require("./isSameDay.js"),n=require("./
|
|
1
|
+
"use strict";var e,r=require("../../_virtual/differenceInBusinessDays.js"),i=require("./addDays.js"),s=require("./differenceInCalendarDays.js"),a=require("./isSameDay.js"),n=require("./isValid2.js"),t=require("./isWeekend.js"),u=require("./toDate.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.differenceInBusinessDays=function(e,r){const i=(0,D.toDate)(e);let s=(0,D.toDate)(r);if(!(0,f.isValid)(i)||!(0,f.isValid)(s))return NaN;const a=(0,d.differenceInCalendarDays)(i,s),n=a<0?-1:1,t=Math.trunc(a/7);let u=5*t;s=(0,_.addDays)(s,7*t);for(;!(0,q.isSameDay)(i,s);)u+=(0,o.isWeekend)(s)?0:n,s=(0,_.addDays)(s,n);return 0===u?0:u};var _=i.__require(),d=s.__require(),q=a.__require(),f=n.__require(),o=t.__require(),D=u.__require();return r.__exports};
|
|
2
2
|
//# sourceMappingURL=differenceInBusinessDays.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"differenceInBusinessDays.js","sources":["../../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","__exports","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"
|
|
1
|
+
{"version":3,"file":"differenceInBusinessDays.js","sources":["../../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","__exports","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"qTACgCA,EAAAC,UAAAC,yBA2DhC,SAAkCC,EAAUC,GAC1C,MAAMC,GAAY,EAAIC,EAAQC,QAAQJ,GACtC,IAAIK,GAAa,EAAIF,EAAQC,QAAQH,GAErC,KAAK,EAAIK,EAAQC,SAASL,MAAe,EAAII,EAAQC,SAASF,GAC5D,OAAOG,IAET,MAAMC,GAAqB,EAAIC,EAAQC,0BACrCT,EACAG,GAEIO,EAAOH,EAAqB,GAAK,EAAI,EAErCI,EAAQC,KAAKC,MAAMN,EAAqB,GAE9C,IAAIO,EAAiB,EAARH,EACbR,GAAa,EAAIY,EAAOC,SAASb,EAAoB,EAARQ,GAG7C,OAAQ,EAAIM,EAAQC,WAAWlB,EAAWG,IAExCW,IAAU,EAAIK,EAAQC,WAAWjB,GAAc,EAAIO,EACnDP,GAAa,EAAIY,EAAOC,SAASb,EAAYO,GAI/C,OAAkB,IAAXI,EAAe,EAAIA,CAC5B,EArFA,IAAIC,EAASM,EAAAA,YACTb,EAAUc,EAAAA,YACVL,EAAUM,EAAAA,YACVnB,EAAUoB,EAAAA,YACVL,EAAUM,EAAAA,YACVxB,EAAUyB,EAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./_lib/defaultOptions.js"),t=require("./_lib/format/formatters.js"),r=require("./_lib/format/longFormatters.js"),o=require("./_lib/protectedTokens.js"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./_lib/defaultOptions.js"),t=require("./_lib/format/formatters.js"),r=require("./_lib/format/longFormatters.js"),o=require("./_lib/protectedTokens.js"),a=require("./isValid.js"),n=require("./toDate2.js"),s=require("./locale/en-US.js");const i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c=/^'([^]*?)'?$/,u=/''/g,f=/[a-zA-Z]/;function p(c,u,p){const k=e.getDefaultOptions(),d=p?.locale??k.locale??s.enUS,g=p?.firstWeekContainsDate??p?.locale?.options?.firstWeekContainsDate??k.firstWeekContainsDate??k.locale?.options?.firstWeekContainsDate??1,w=p?.weekStartsOn??p?.locale?.options?.weekStartsOn??k.weekStartsOn??k.locale?.options?.weekStartsOn??0,D=n.toDate(c);if(!a.isValid(D))throw new RangeError("Invalid time value");let O=u.match(l).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,r.longFormatters[t])(e,d.formatLong)}return e})).join("").match(i).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:m(e)};if(t.formatters[r])return{isToken:!0,value:e};if(r.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));d.localize.preprocessor&&(O=d.localize.preprocessor(D,O));const T={firstWeekContainsDate:g,weekStartsOn:w,locale:d};return O.map((e=>{if(!e.isToken)return e.value;const r=e.value;(!p?.useAdditionalWeekYearTokens&&o.isProtectedWeekYearToken(r)||!p?.useAdditionalDayOfYearTokens&&o.isProtectedDayOfYearToken(r))&&o.warnOrThrowProtectedError(r,u,String(c));return(0,t.formatters[r[0]])(D,r,d.localize,T)})).join("")}function m(e){const t=e.match(c);return t?t[1].replace(u,"'"):e}exports.formatters=t.formatters,exports.longFormatters=r.longFormatters,exports.default=p,exports.format=p,exports.formatDate=p;
|
|
2
2
|
//# sourceMappingURL=format.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sources":["../../../../node_modules/date-fns/format.mjs"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","date","formatStr","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","toDate","isValid","RangeError","parts","match","map","substring","firstCharacter","longFormatter","longFormatters","formatLong","join","isToken","value","cleanEscapedString","formatters","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","input","matched","replace"],"mappings":"+TA2BA,MAAMA,EACJ,wDAIIC,EAA6B,oCAE7BC,EAAsB,eACtBC,EAAoB,MACpBC,EAAgC,WAsS/B,SAASC,EAAOC,EAAMC,EAAWC,GACtC,MAAMC,EAAiBC,EAAAA,oBACjBC,EAASH,GAASG,QAAUF,EAAeE,QAAUC,EAAAA,KAErDC,EACJL,GAASK,uBACTL,GAASG,QAAQH,SAASK,uBAC1BJ,EAAeI,uBACfJ,EAAeE,QAAQH,SAASK,uBAChC,EAEIC,EACJN,GAASM,cACTN,GAASG,QAAQH,SAASM,cAC1BL,EAAeK,cACfL,EAAeE,QAAQH,SAASM,cAChC,EAEIC,EAAeC,SAAOV,GAE5B,IAAKW,EAAAA,QAAQF,GACX,MAAM,IAAIG,WAAW,sBAGvB,IAAIC,EAAQZ,EACTa,MAAMnB,GACNoB,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,iBAAeF,IAChBD,EAAWX,EAAOe,WACxC,CACD,OAAOJ,CAAS,IAEjBK,KAAK,IACLP,MAAMpB,GACNqB,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEM,SAAS,EAAOC,MAAO,KAGlC,MAAMN,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEK,SAAS,EAAOC,MAAOC,EAAmBR,IAGrD,GAAIS,EAAAA,WAAWR,GACb,MAAO,CAAEK,SAAS,EAAMC,MAAOP,GAGjC,GAAIC,EAAeH,MAAMhB,GACvB,MAAM,IAAIc,WACR,iEACEK,EACA,KAIN,MAAO,CAAEK,SAAS,EAAOC,MAAOP,EAAW,IAI3CX,EAAOqB,SAASC,eAClBd,EAAQR,EAAOqB,SAASC,aAAalB,EAAcI,IAGrD,MAAMe,EAAmB,CACvBrB,wBACAC,eACAH,UAGF,OAAOQ,EACJE,KAAKc,IACJ,IAAKA,EAAKP,QAAS,OAAOO,EAAKN,MAE/B,MAAMO,EAAQD,EAAKN,QAGfrB,GAAS6B,6BACTC,EAAAA,yBAAyBF,KACzB5B,GAAS+B,8BACTC,EAAyBA,0BAACJ,KAE5BK,EAAAA,0BAA0BL,EAAO7B,EAAWmC,OAAOpC,IAIrD,OAAOqC,EADWZ,EAAUA,WAACK,EAAM,KAClBrB,EAAcqB,EAAOzB,EAAOqB,SAAUE,EAAiB,IAEzEP,KAAK,GACV,CAEA,SAASG,EAAmBc,GAC1B,MAAMC,EAAUD,EAAMxB,MAAMlB,GAE5B,OAAK2C,EAIEA,EAAQ,GAAGC,QAAQ3C,EAAmB,KAHpCyC,CAIX","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"format.js","sources":["../../../../node_modules/date-fns/format.mjs"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","date","formatStr","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","toDate","isValid","RangeError","parts","match","map","substring","firstCharacter","longFormatter","longFormatters","formatLong","join","isToken","value","cleanEscapedString","formatters","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","input","matched","replace"],"mappings":"8TA2BA,MAAMA,EACJ,wDAIIC,EAA6B,oCAE7BC,EAAsB,eACtBC,EAAoB,MACpBC,EAAgC,WAsS/B,SAASC,EAAOC,EAAMC,EAAWC,GACtC,MAAMC,EAAiBC,EAAAA,oBACjBC,EAASH,GAASG,QAAUF,EAAeE,QAAUC,EAAAA,KAErDC,EACJL,GAASK,uBACTL,GAASG,QAAQH,SAASK,uBAC1BJ,EAAeI,uBACfJ,EAAeE,QAAQH,SAASK,uBAChC,EAEIC,EACJN,GAASM,cACTN,GAASG,QAAQH,SAASM,cAC1BL,EAAeK,cACfL,EAAeE,QAAQH,SAASM,cAChC,EAEIC,EAAeC,SAAOV,GAE5B,IAAKW,EAAAA,QAAQF,GACX,MAAM,IAAIG,WAAW,sBAGvB,IAAIC,EAAQZ,EACTa,MAAMnB,GACNoB,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,iBAAeF,IAChBD,EAAWX,EAAOe,WACxC,CACD,OAAOJ,CAAS,IAEjBK,KAAK,IACLP,MAAMpB,GACNqB,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEM,SAAS,EAAOC,MAAO,KAGlC,MAAMN,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEK,SAAS,EAAOC,MAAOC,EAAmBR,IAGrD,GAAIS,EAAAA,WAAWR,GACb,MAAO,CAAEK,SAAS,EAAMC,MAAOP,GAGjC,GAAIC,EAAeH,MAAMhB,GACvB,MAAM,IAAIc,WACR,iEACEK,EACA,KAIN,MAAO,CAAEK,SAAS,EAAOC,MAAOP,EAAW,IAI3CX,EAAOqB,SAASC,eAClBd,EAAQR,EAAOqB,SAASC,aAAalB,EAAcI,IAGrD,MAAMe,EAAmB,CACvBrB,wBACAC,eACAH,UAGF,OAAOQ,EACJE,KAAKc,IACJ,IAAKA,EAAKP,QAAS,OAAOO,EAAKN,MAE/B,MAAMO,EAAQD,EAAKN,QAGfrB,GAAS6B,6BACTC,EAAAA,yBAAyBF,KACzB5B,GAAS+B,8BACTC,EAAyBA,0BAACJ,KAE5BK,EAAAA,0BAA0BL,EAAO7B,EAAWmC,OAAOpC,IAIrD,OAAOqC,EADWZ,EAAUA,WAACK,EAAM,KAClBrB,EAAcqB,EAAOzB,EAAOqB,SAAUE,EAAiB,IAEzEP,KAAK,GACV,CAEA,SAASG,EAAmBc,GAC1B,MAAMC,EAAUD,EAAMxB,MAAMlB,GAE5B,OAAK2C,EAIEA,EAAQ,GAAGC,QAAQ3C,EAAmB,KAHpCyC,CAIX","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,r=require("../../_virtual/format.js"),t=require("./_lib/defaultLocale.js"),o=require("./_lib/defaultOptions2.js"),a=require("./_lib/format/formatters2.js"),n=require("./_lib/format/longFormatters2.js"),i=require("./_lib/protectedTokens2.js"),s=require("./
|
|
1
|
+
"use strict";var e,r=require("../../_virtual/format.js"),t=require("./_lib/defaultLocale.js"),o=require("./_lib/defaultOptions2.js"),a=require("./_lib/format/formatters2.js"),n=require("./_lib/format/longFormatters2.js"),i=require("./_lib/protectedTokens2.js"),s=require("./isValid2.js"),l=require("./toDate.js");exports.__require=function(){return e||(e=1,function(e){e.format=e.formatDate=function(e,t,o){const a=(0,u.getDefaultOptions)(),n=o?.locale??a.locale??r.defaultLocale,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=(0,p.toDate)(e);if(!(0,_.isValid)(l))throw new RangeError("Invalid time value");let q=t.match(d).map((e=>{const r=e[0];if("p"===r||"P"===r){return(0,f.longFormatters[r])(e,n.formatLong)}return e})).join("").match(k).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:j(e)};if(c.formatters[r])return{isToken:!0,value:e};if(r.match(w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));n.localize.preprocessor&&(q=n.localize.preprocessor(l,q));const g={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return q.map((r=>{if(!r.isToken)return r.value;const a=r.value;(!o?.useAdditionalWeekYearTokens&&(0,m.isProtectedWeekYearToken)(a)||!o?.useAdditionalDayOfYearTokens&&(0,m.isProtectedDayOfYearToken)(a))&&(0,m.warnOrThrowProtectedError)(a,t,String(e));return(0,c.formatters[a[0]])(l,a,n.localize,g)})).join("")},Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return c.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return f.longFormatters}});var r=t.__require(),u=o.__require(),c=a.__require(),f=n.__require(),m=i.__require(),_=s.__require(),p=l.__require();const k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q=/^'([^]*?)'?$/,g=/''/g,w=/[a-zA-Z]/;function j(e){const r=e.match(q);return r?r[1].replace(g,"'"):e}}(r.__exports)),r.__exports};
|
|
2
2
|
//# sourceMappingURL=format2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format2.js","sources":["../../../../node_modules/date-fns/format.js"],"sourcesContent":["\"use strict\";\nexports.format = exports.formatDate = format;\nObject.defineProperty(exports, \"formatters\", {\n enumerable: true,\n get: function () {\n return _index3.formatters;\n },\n});\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index4.longFormatters;\n },\n});\nvar _index = require(\"./_lib/defaultLocale.js\");\nvar _index2 = require(\"./_lib/defaultOptions.js\");\nvar _index3 = require(\"./_lib/format/formatters.js\");\nvar _index4 = require(\"./_lib/format/longFormatters.js\");\nvar _index5 = require(\"./_lib/protectedTokens.js\");\n\nvar _index6 = require(\"./isValid.js\");\nvar _index7 = require(\"./toDate.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nfunction format(date, formatStr, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = (0, _index7.toDate)(date);\n\n if (!(0, _index6.isValid)(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = _index4.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (_index3.formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n (0, _index5.isProtectedWeekYearToken)(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n (0, _index5.isProtectedDayOfYearToken)(token))\n ) {\n (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));\n }\n\n const formatter = _index3.formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["exports","format","formatDate","date","formatStr","options","defaultOptions","_index2","getDefaultOptions","locale","_index","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","_index7","toDate","_index6","isValid","RangeError","parts","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","_index4","longFormatters","formatLong","join","formattingTokensRegExp","isToken","value","cleanEscapedString","_index3","formatters","unescapedLatinCharacterRegExp","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","_index5","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","Object","defineProperty","enumerable","get","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","escapedStringRegExp","doubleQuoteRegExp","input","matched","replace"],"mappings":"gXACAA,EAAiBC,OAAAD,EAAAE,WAiVjB,SAAgBC,EAAMC,EAAWC,GAC/B,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,QAAUH,EAAeG,QAAUC,EAAOC,cAE/CC,EACJP,GAASO,uBACTP,GAASI,QAAQJ,SAASO,uBAC1BN,EAAeM,uBACfN,EAAeG,QAAQJ,SAASO,uBAChC,EAEIC,EACJR,GAASQ,cACTR,GAASI,QAAQJ,SAASQ,cAC1BP,EAAeO,cACfP,EAAeG,QAAQJ,SAASQ,cAChC,EAEIC,GAAe,EAAIC,EAAQC,QAAQb,GAEzC,KAAK,EAAIc,EAAQC,SAASJ,GACxB,MAAM,IAAIK,WAAW,sBAGvB,IAAIC,EAAQhB,EACTiB,MAAMC,GACNC,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,EAAQC,eAAeH,IACxBD,EAAWf,EAAOoB,WACxC,CACD,OAAOL,CAAS,IAEjBM,KAAK,IACLT,MAAMU,GACNR,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEQ,SAAS,EAAOC,MAAO,KAGlC,MAAMR,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEO,SAAS,EAAOC,MAAOC,EAAmBV,IAGrD,GAAIW,EAAQC,WAAWX,GACrB,MAAO,CAAEO,SAAS,EAAMC,MAAOT,GAGjC,GAAIC,EAAeJ,MAAMgB,GACvB,MAAM,IAAIlB,WACR,iEACEM,EACA,KAIN,MAAO,CAAEO,SAAS,EAAOC,MAAOT,EAAW,IAI3Cf,EAAO6B,SAASC,eAClBnB,EAAQX,EAAO6B,SAASC,aAAazB,EAAcM,IAGrD,MAAMoB,EAAmB,CACvB5B,wBACAC,eACAJ,UAGF,OAAOW,EACJG,KAAKkB,IACJ,IAAKA,EAAKT,QAAS,OAAOS,EAAKR,MAE/B,MAAMS,EAAQD,EAAKR,QAGf5B,GAASsC,8BACT,EAAIC,EAAQC,0BAA0BH,KACtCrC,GAASyC,+BACT,EAAIF,EAAQG,2BAA2BL,MAEzC,EAAIE,EAAQI,2BAA2BN,EAAOtC,EAAW6C,OAAO9C,IAIlE,OAAO+C,EADWf,EAAQC,WAAWM,EAAM,KAC1B5B,EAAc4B,EAAOjC,EAAO6B,SAAUE,EAAiB,IAEzEV,KAAK,GACT,EA7aDqB,OAAOC,eAAepD,EAAS,aAAc,CAC3CqD,YAAY,EACZC,IAAK,WACH,OAAOnB,EAAQC,UAChB,IAEHe,OAAOC,eAAepD,EAAS,iBAAkB,CAC/CqD,YAAY,EACZC,IAAK,WACH,OAAO3B,EAAQC,cAChB,IAEH,IAAIlB,EAAS6C,EAAAA,YACThD,EAAUiD,EAAAA,YACVrB,EAAUsB,EAAAA,YACV9B,EAAU+B,EAAAA,YACVd,EAAUe,EAAAA,YAEV1C,EAAU2C,EAAAA,YACV7C,EAAU8C,EAAAA,YAgBd,MAAM9B,EACJ,wDAIIT,EAA6B,oCAE7BwC,EAAsB,eACtBC,EAAoB,MACpB1B,EAAgC,WAmYtC,SAASH,EAAmB8B,GAC1B,MAAMC,EAAUD,EAAM3C,MAAMyC,GAE5B,OAAKG,EAIEA,EAAQ,GAAGC,QAAQH,EAAmB,KAHpCC,CAIX","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"format2.js","sources":["../../../../node_modules/date-fns/format.js"],"sourcesContent":["\"use strict\";\nexports.format = exports.formatDate = format;\nObject.defineProperty(exports, \"formatters\", {\n enumerable: true,\n get: function () {\n return _index3.formatters;\n },\n});\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index4.longFormatters;\n },\n});\nvar _index = require(\"./_lib/defaultLocale.js\");\nvar _index2 = require(\"./_lib/defaultOptions.js\");\nvar _index3 = require(\"./_lib/format/formatters.js\");\nvar _index4 = require(\"./_lib/format/longFormatters.js\");\nvar _index5 = require(\"./_lib/protectedTokens.js\");\n\nvar _index6 = require(\"./isValid.js\");\nvar _index7 = require(\"./toDate.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nfunction format(date, formatStr, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = (0, _index7.toDate)(date);\n\n if (!(0, _index6.isValid)(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = _index4.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (_index3.formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n (0, _index5.isProtectedWeekYearToken)(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n (0, _index5.isProtectedDayOfYearToken)(token))\n ) {\n (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));\n }\n\n const formatter = _index3.formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["exports","format","formatDate","date","formatStr","options","defaultOptions","_index2","getDefaultOptions","locale","_index","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","_index7","toDate","_index6","isValid","RangeError","parts","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","_index4","longFormatters","formatLong","join","formattingTokensRegExp","isToken","value","cleanEscapedString","_index3","formatters","unescapedLatinCharacterRegExp","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","_index5","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","Object","defineProperty","enumerable","get","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","escapedStringRegExp","doubleQuoteRegExp","input","matched","replace"],"mappings":"iXACAA,EAAiBC,OAAAD,EAAAE,WAiVjB,SAAgBC,EAAMC,EAAWC,GAC/B,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,QAAUH,EAAeG,QAAUC,EAAOC,cAE/CC,EACJP,GAASO,uBACTP,GAASI,QAAQJ,SAASO,uBAC1BN,EAAeM,uBACfN,EAAeG,QAAQJ,SAASO,uBAChC,EAEIC,EACJR,GAASQ,cACTR,GAASI,QAAQJ,SAASQ,cAC1BP,EAAeO,cACfP,EAAeG,QAAQJ,SAASQ,cAChC,EAEIC,GAAe,EAAIC,EAAQC,QAAQb,GAEzC,KAAK,EAAIc,EAAQC,SAASJ,GACxB,MAAM,IAAIK,WAAW,sBAGvB,IAAIC,EAAQhB,EACTiB,MAAMC,GACNC,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,EAAQC,eAAeH,IACxBD,EAAWf,EAAOoB,WACxC,CACD,OAAOL,CAAS,IAEjBM,KAAK,IACLT,MAAMU,GACNR,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEQ,SAAS,EAAOC,MAAO,KAGlC,MAAMR,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEO,SAAS,EAAOC,MAAOC,EAAmBV,IAGrD,GAAIW,EAAQC,WAAWX,GACrB,MAAO,CAAEO,SAAS,EAAMC,MAAOT,GAGjC,GAAIC,EAAeJ,MAAMgB,GACvB,MAAM,IAAIlB,WACR,iEACEM,EACA,KAIN,MAAO,CAAEO,SAAS,EAAOC,MAAOT,EAAW,IAI3Cf,EAAO6B,SAASC,eAClBnB,EAAQX,EAAO6B,SAASC,aAAazB,EAAcM,IAGrD,MAAMoB,EAAmB,CACvB5B,wBACAC,eACAJ,UAGF,OAAOW,EACJG,KAAKkB,IACJ,IAAKA,EAAKT,QAAS,OAAOS,EAAKR,MAE/B,MAAMS,EAAQD,EAAKR,QAGf5B,GAASsC,8BACT,EAAIC,EAAQC,0BAA0BH,KACtCrC,GAASyC,+BACT,EAAIF,EAAQG,2BAA2BL,MAEzC,EAAIE,EAAQI,2BAA2BN,EAAOtC,EAAW6C,OAAO9C,IAIlE,OAAO+C,EADWf,EAAQC,WAAWM,EAAM,KAC1B5B,EAAc4B,EAAOjC,EAAO6B,SAAUE,EAAiB,IAEzEV,KAAK,GACT,EA7aDqB,OAAOC,eAAepD,EAAS,aAAc,CAC3CqD,YAAY,EACZC,IAAK,WACH,OAAOnB,EAAQC,UAChB,IAEHe,OAAOC,eAAepD,EAAS,iBAAkB,CAC/CqD,YAAY,EACZC,IAAK,WACH,OAAO3B,EAAQC,cAChB,IAEH,IAAIlB,EAAS6C,EAAAA,YACThD,EAAUiD,EAAAA,YACVrB,EAAUsB,EAAAA,YACV9B,EAAU+B,EAAAA,YACVd,EAAUe,EAAAA,YAEV1C,EAAU2C,EAAAA,YACV7C,EAAU8C,EAAAA,YAgBd,MAAM9B,EACJ,wDAIIT,EAA6B,oCAE7BwC,EAAsB,eACtBC,EAAoB,MACpB1B,EAAgC,WAmYtC,SAASH,EAAmB8B,GAC1B,MAAMC,EAAUD,EAAM3C,MAAMyC,GAE5B,OAAKG,EAIEA,EAAQ,GAAGC,QAAQH,EAAmB,KAHpCC,CAIX","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,r=require("../../_virtual/formatISO9075.js"),t=require("./
|
|
1
|
+
"use strict";var e,r=require("../../_virtual/formatISO9075.js"),t=require("./isValid2.js"),i=require("./toDate.js"),d=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatISO9075=function(e,r){const t=(0,n.toDate)(e);if(!(0,a.isValid)(t))throw new RangeError("Invalid time value");const i=r?.format??"extended",d=r?.representation??"complete";let s="";const u="extended"===i?"-":"",_="extended"===i?":":"";if("time"!==d){const e=(0,o.addLeadingZeros)(t.getDate(),2),r=(0,o.addLeadingZeros)(t.getMonth()+1,2);s=`${(0,o.addLeadingZeros)(t.getFullYear(),4)}${u}${r}${u}${e}`}if("date"!==d){s=`${s}${""===s?"":" "}${(0,o.addLeadingZeros)(t.getHours(),2)}${_}${(0,o.addLeadingZeros)(t.getMinutes(),2)}${_}${(0,o.addLeadingZeros)(t.getSeconds(),2)}`}return s};var a=t.__require(),n=i.__require(),o=d.__require();return r.__exports};
|
|
2
2
|
//# sourceMappingURL=formatISO9075.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatISO9075.js","sources":["../../../../node_modules/date-fns/formatISO9075.js"],"sourcesContent":["\"use strict\";\nexports.formatISO9075 = formatISO9075;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatISO9075} function options.\n */\n\n/**\n * @name formatISO9075\n * @category Common Helpers\n * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).\n *\n * @description\n * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18 19:00:52'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075, short format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918 190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, date only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, time only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52'\n */\nfunction formatISO9075(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const format = options?.format ?? \"extended\";\n const representation = options?.representation ?? \"complete\";\n\n let result = \"\";\n\n const dateDelimiter = format === \"extended\" ? \"-\" : \"\";\n const timeDelimiter = format === \"extended\" ? \":\" : \"\";\n\n // Representation is either 'date' or 'complete'\n if (representation !== \"time\") {\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = (0, _index3.addLeadingZeros)(_date.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`;\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== \"date\") {\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n // If there's also date, separate it with time with a space\n const separator = result === \"\" ? \"\" : \" \";\n\n // HHmmss or HH:mm:ss.\n result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`;\n }\n\n return result;\n}\n"],"names":["formatISO9075_1","__exports","formatISO9075","date","options","_date","_index2","toDate","_index","isValid","RangeError","format","representation","result","dateDelimiter","timeDelimiter","day","_index3","addLeadingZeros","getDate","month","getMonth","getFullYear","getHours","getMinutes","getSeconds","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatISO9075.js","sources":["../../../../node_modules/date-fns/formatISO9075.js"],"sourcesContent":["\"use strict\";\nexports.formatISO9075 = formatISO9075;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatISO9075} function options.\n */\n\n/**\n * @name formatISO9075\n * @category Common Helpers\n * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).\n *\n * @description\n * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18 19:00:52'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075, short format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918 190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, date only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, time only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52'\n */\nfunction formatISO9075(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const format = options?.format ?? \"extended\";\n const representation = options?.representation ?? \"complete\";\n\n let result = \"\";\n\n const dateDelimiter = format === \"extended\" ? \"-\" : \"\";\n const timeDelimiter = format === \"extended\" ? \":\" : \"\";\n\n // Representation is either 'date' or 'complete'\n if (representation !== \"time\") {\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = (0, _index3.addLeadingZeros)(_date.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`;\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== \"date\") {\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n // If there's also date, separate it with time with a space\n const separator = result === \"\" ? \"\" : \" \";\n\n // HHmmss or HH:mm:ss.\n result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`;\n }\n\n return result;\n}\n"],"names":["formatISO9075_1","__exports","formatISO9075","date","options","_date","_index2","toDate","_index","isValid","RangeError","format","representation","result","dateDelimiter","timeDelimiter","day","_index3","addLeadingZeros","getDate","month","getMonth","getFullYear","getHours","getMinutes","getSeconds","require$$0","require$$1","require$$2"],"mappings":"qNACqBA,EAAAC,UAAAC,cA+CrB,SAAuBC,EAAMC,GAC3B,MAAMC,GAAQ,EAAIC,EAAQC,QAAQJ,GAElC,KAAK,EAAIK,EAAOC,SAASJ,GACvB,MAAM,IAAIK,WAAW,sBAGvB,MAAMC,EAASP,GAASO,QAAU,WAC5BC,EAAiBR,GAASQ,gBAAkB,WAElD,IAAIC,EAAS,GAEb,MAAMC,EAA2B,aAAXH,EAAwB,IAAM,GAC9CI,EAA2B,aAAXJ,EAAwB,IAAM,GAGpD,GAAuB,SAAnBC,EAA2B,CAC7B,MAAMI,GAAM,EAAIC,EAAQC,iBAAiBb,EAAMc,UAAW,GACpDC,GAAQ,EAAIH,EAAQC,iBAAiBb,EAAMgB,WAAa,EAAG,GAIjER,EAAS,IAHI,EAAII,EAAQC,iBAAiBb,EAAMiB,cAAe,KAG5CR,IAAgBM,IAAQN,IAAgBE,GAC5D,CAGD,GAAuB,SAAnBJ,EAA2B,CAS7BC,EAAS,GAAGA,IAHiB,KAAXA,EAAgB,GAAK,OAL1B,EAAII,EAAQC,iBAAiBb,EAAMkB,WAAY,KAQpBR,KAPzB,EAAIE,EAAQC,iBAAiBb,EAAMmB,aAAc,KAOCT,KANlD,EAAIE,EAAQC,iBAAiBb,EAAMoB,aAAc,IAOjE,CAED,OAAOZ,CACT,EArFA,IAAIL,EAASkB,EAAAA,YACTpB,EAAUqB,EAAAA,YAEVV,EAAUW,EAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,r=require("../../_virtual/formatRFC3339.js"),t=require("./
|
|
1
|
+
"use strict";var e,r=require("../../_virtual/formatRFC3339.js"),t=require("./isValid2.js"),i=require("./toDate.js"),a=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatRFC3339=function(e,r){const t=(0,o.toDate)(e);if(!(0,s.isValid)(t))throw new RangeError("Invalid time value");const i=r?.fractionDigits??0,a=(0,d.addLeadingZeros)(t.getDate(),2),n=(0,d.addLeadingZeros)(t.getMonth()+1,2),u=t.getFullYear(),g=(0,d.addLeadingZeros)(t.getHours(),2),_=(0,d.addLeadingZeros)(t.getMinutes(),2),c=(0,d.addLeadingZeros)(t.getSeconds(),2);let l="";if(i>0){const e=t.getMilliseconds(),r=Math.trunc(e*Math.pow(10,i-3));l="."+(0,d.addLeadingZeros)(r,i)}let f="";const $=t.getTimezoneOffset();if(0!==$){const e=Math.abs($);f=`${$<0?"+":"-"}${(0,d.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,d.addLeadingZeros)(e%60,2)}`}else f="Z";return`${u}-${n}-${a}T${g}:${_}:${c}${l}${f}`};var s=t.__require(),o=i.__require(),d=a.__require();return r.__exports};
|
|
2
2
|
//# sourceMappingURL=formatRFC3339.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatRFC3339.js","sources":["../../../../node_modules/date-fns/formatRFC3339.js"],"sourcesContent":["\"use strict\";\nexports.formatRFC3339 = formatRFC3339;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatRFC3339} function options.\n */\n\n/**\n * @name formatRFC3339\n * @category Common Helpers\n * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6).\n *\n * @description\n * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format:\n * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction\n * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), {\n * fractionDigits: 3\n * })\n * //=> '2019-09-18T19:00:52.234Z'\n */\nfunction formatRFC3339(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const fractionDigits = options?.fractionDigits ?? 0;\n\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = _date.getFullYear();\n\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n let fractionalSecond = \"\";\n if (fractionDigits > 0) {\n const milliseconds = _date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, fractionDigits - 3),\n );\n fractionalSecond =\n \".\" + (0, _index3.addLeadingZeros)(fractionalSeconds, fractionDigits);\n }\n\n let offset = \"\";\n const tzOffset = _date.getTimezoneOffset();\n\n if (tzOffset !== 0) {\n const absoluteOffset = Math.abs(tzOffset);\n const hourOffset = (0, _index3.addLeadingZeros)(\n Math.trunc(absoluteOffset / 60),\n 2,\n );\n const minuteOffset = (0, _index3.addLeadingZeros)(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n const sign = tzOffset < 0 ? \"+\" : \"-\";\n\n offset = `${sign}${hourOffset}:${minuteOffset}`;\n } else {\n offset = \"Z\";\n }\n\n return `${year}-${month}-${day}T${hour}:${minute}:${second}${fractionalSecond}${offset}`;\n}\n"],"names":["formatRFC3339_1","__exports","formatRFC3339","date","options","_date","_index2","toDate","_index","isValid","RangeError","fractionDigits","day","_index3","addLeadingZeros","getDate","month","getMonth","year","getFullYear","hour","getHours","minute","getMinutes","second","getSeconds","fractionalSecond","milliseconds","getMilliseconds","fractionalSeconds","Math","trunc","pow","offset","tzOffset","getTimezoneOffset","absoluteOffset","abs","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatRFC3339.js","sources":["../../../../node_modules/date-fns/formatRFC3339.js"],"sourcesContent":["\"use strict\";\nexports.formatRFC3339 = formatRFC3339;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatRFC3339} function options.\n */\n\n/**\n * @name formatRFC3339\n * @category Common Helpers\n * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6).\n *\n * @description\n * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format:\n * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction\n * formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), {\n * fractionDigits: 3\n * })\n * //=> '2019-09-18T19:00:52.234Z'\n */\nfunction formatRFC3339(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const fractionDigits = options?.fractionDigits ?? 0;\n\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = _date.getFullYear();\n\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n let fractionalSecond = \"\";\n if (fractionDigits > 0) {\n const milliseconds = _date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, fractionDigits - 3),\n );\n fractionalSecond =\n \".\" + (0, _index3.addLeadingZeros)(fractionalSeconds, fractionDigits);\n }\n\n let offset = \"\";\n const tzOffset = _date.getTimezoneOffset();\n\n if (tzOffset !== 0) {\n const absoluteOffset = Math.abs(tzOffset);\n const hourOffset = (0, _index3.addLeadingZeros)(\n Math.trunc(absoluteOffset / 60),\n 2,\n );\n const minuteOffset = (0, _index3.addLeadingZeros)(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n const sign = tzOffset < 0 ? \"+\" : \"-\";\n\n offset = `${sign}${hourOffset}:${minuteOffset}`;\n } else {\n offset = \"Z\";\n }\n\n return `${year}-${month}-${day}T${hour}:${minute}:${second}${fractionalSecond}${offset}`;\n}\n"],"names":["formatRFC3339_1","__exports","formatRFC3339","date","options","_date","_index2","toDate","_index","isValid","RangeError","fractionDigits","day","_index3","addLeadingZeros","getDate","month","getMonth","year","getFullYear","hour","getHours","minute","getMinutes","second","getSeconds","fractionalSecond","milliseconds","getMilliseconds","fractionalSeconds","Math","trunc","pow","offset","tzOffset","getTimezoneOffset","absoluteOffset","abs","require$$0","require$$1","require$$2"],"mappings":"qNACqBA,EAAAC,UAAAC,cAsCrB,SAAuBC,EAAMC,GAC3B,MAAMC,GAAQ,EAAIC,EAAQC,QAAQJ,GAElC,KAAK,EAAIK,EAAOC,SAASJ,GACvB,MAAM,IAAIK,WAAW,sBAGvB,MAAMC,EAAiBP,GAASO,gBAAkB,EAE5CC,GAAM,EAAIC,EAAQC,iBAAiBT,EAAMU,UAAW,GACpDC,GAAQ,EAAIH,EAAQC,iBAAiBT,EAAMY,WAAa,EAAG,GAC3DC,EAAOb,EAAMc,cAEbC,GAAO,EAAIP,EAAQC,iBAAiBT,EAAMgB,WAAY,GACtDC,GAAS,EAAIT,EAAQC,iBAAiBT,EAAMkB,aAAc,GAC1DC,GAAS,EAAIX,EAAQC,iBAAiBT,EAAMoB,aAAc,GAEhE,IAAIC,EAAmB,GACvB,GAAIf,EAAiB,EAAG,CACtB,MAAMgB,EAAetB,EAAMuB,kBACrBC,EAAoBC,KAAKC,MAC7BJ,EAAeG,KAAKE,IAAI,GAAIrB,EAAiB,IAE/Ce,EACE,KAAM,EAAIb,EAAQC,iBAAiBe,EAAmBlB,EACzD,CAED,IAAIsB,EAAS,GACb,MAAMC,EAAW7B,EAAM8B,oBAEvB,GAAiB,IAAbD,EAAgB,CAClB,MAAME,EAAiBN,KAAKO,IAAIH,GAShCD,EAAS,GAFIC,EAAW,EAAI,IAAM,OANf,EAAIrB,EAAQC,iBAC7BgB,KAAKC,MAAMK,EAAiB,IAC5B,OAEmB,EAAIvB,EAAQC,iBAAiBsB,EAAiB,GAAI,IAK3E,MACIH,EAAS,IAGX,MAAO,GAAGf,KAAQF,KAASJ,KAAOQ,KAAQE,KAAUE,IAASE,IAAmBO,GAClF,EAnFA,IAAIzB,EAAS8B,EAAAA,YACThC,EAAUiC,EAAAA,YACV1B,EAAU2B,EAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,r=require("../../_virtual/formatRFC7231.js"),t=require("./
|
|
1
|
+
"use strict";var e,r=require("../../_virtual/formatRFC7231.js"),t=require("./isValid2.js"),a=require("./toDate.js"),i=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatRFC7231=function(e){const r=(0,o.toDate)(e);if(!(0,n.isValid)(r))throw new RangeError("Invalid time value");const t=s[r.getUTCDay()],a=(0,u.addLeadingZeros)(r.getUTCDate(),2),i=d[r.getUTCMonth()],_=r.getUTCFullYear(),g=(0,u.addLeadingZeros)(r.getUTCHours(),2),T=(0,u.addLeadingZeros)(r.getUTCMinutes(),2),c=(0,u.addLeadingZeros)(r.getUTCSeconds(),2);return`${t}, ${a} ${i} ${_} ${g}:${T}:${c} GMT`};var n=t.__require(),o=a.__require(),u=i.__require();const s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return r.__exports};
|
|
2
2
|
//# sourceMappingURL=formatRFC7231.js.map
|