@oneclick.dev/cms-core-modules 0.0.67 → 0.0.69
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/dist/{ContentEditor-Co4Qh5nc.mjs → ContentEditor-B7IYLH91.mjs} +7019 -6537
- package/dist/ContentEditor-LOn09n7N.js +307 -0
- package/dist/{Create-Lnus48i-.mjs → Create-BDiyCtrp.mjs} +1 -1
- package/dist/{Create-Up0iauPG.js → Create-D8NBEkJU.js} +1 -1
- package/dist/DateFormatter-Bw-SCfUS.js +1 -0
- package/dist/{DateFormatter-CxPCk9KT.mjs → DateFormatter-DAZP9a6L.mjs} +16 -10
- package/dist/{Detail-Bz2rvLw7.mjs → Detail-CxUU6BpO.mjs} +1 -1
- package/dist/{Detail-BPSuxN2J.js → Detail-DTHaYmyl.js} +1 -1
- package/dist/Entries-BPkZ7Jg5.js +1 -0
- package/dist/Entries-D7MHylQE.mjs +728 -0
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-DMnulmdl.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-B-ZhMrMu.js} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CZmLnut_.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-CJ7hh7ug.mjs} +1 -1
- package/dist/{TableView-DSVM0B47.mjs → TableView-B5OyApnP.mjs} +24044 -21159
- package/dist/{TableView-BGvNdnpI.js → TableView-C4NNrJpP.js} +394 -100
- package/dist/{agenda-By_hEZ4I.mjs → agenda-CTG6N_Lt.mjs} +2 -2
- package/dist/{agenda-D4jdNRbI.js → agenda-OSkAh0Oa.js} +1 -1
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-DGnziH-3.js → exceptions-BvMTqtof.js} +1 -1
- package/dist/{exceptions-B0kOmB-_.mjs → exceptions-CEXIFw47.mjs} +1 -1
- package/dist/{index-CzoYAqKd-iAfM7ky8.mjs → index-Biuv2zTx-DBCin9DT.mjs} +1431 -1311
- package/dist/index-Biuv2zTx-DHiVlXFj.js +88 -0
- package/dist/{index--0-qy_7x.mjs → index-HLGxDG-0.mjs} +156 -156
- package/dist/{index-DIg9ePkI.js → index-n2p9TTRq.js} +27 -27
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +100 -82
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/{Columns.d.ts → Row.d.ts} +2 -2
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Stack.d.ts +14 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/Stack.vue.d.ts +115 -0
- package/dist/src/content-manager/components/content-editor/tiptap-extensions/helpers/TopMarginDragger.vue.d.ts +11 -1
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/StackMenu.vue.d.ts +13 -0
- package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/index.d.ts +16 -2
- package/dist/src/products/index.d.ts +14 -0
- package/dist/src/products/tools.d.ts +9 -20
- package/package.json +2 -2
- package/dist/ContentEditor-BhWqzASE.js +0 -307
- package/dist/DateFormatter-DKlDa1Jq.js +0 -1
- package/dist/Entries-C6Di46My.mjs +0 -713
- package/dist/Entries-DlFiZ8EU.js +0 -1
- package/dist/index-CzoYAqKd-rheC_QgC.js +0 -88
- /package/dist/src/content-manager/components/content-editor/tiptap-extensions/{Columns.vue.d.ts → Row.vue.d.ts} +0 -0
- /package/dist/src/content-manager/components/content-editor/tiptap-menus/element-editor-views/{ColumnsMenu.vue.d.ts → RowMenu.vue.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function U(e,t){return e-t*Math.floor(e/t)}const te=1721426;function E(e,t,r,n){t=A(e,t);let a=t-1,o=-2;return r<=2?o=0:Y(t)&&(o=-1),te-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+o+n)}function Y(e){return e%4===0&&(e%100!==0||e%400===0)}function A(e,t){return e==="BC"?1-t:t}function re(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const we={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class b{fromJulianDay(t){let r=t,n=r-te,a=Math.floor(n/146097),o=U(n,146097),c=Math.floor(o/36524),i=U(o,36524),f=Math.floor(i/1461),d=U(i,1461),M=Math.floor(d/365),x=a*400+c*100+f*4+M+(c!==4&&M!==4?1:0),[g,m]=re(x),y=r-E(g,m,1,1),O=2;r<E(g,m,3,1)?O=0:Y(m)&&(O=1);let G=Math.floor(((y+O)*12+373)/367),pe=r-E(g,m,G,1)+1;return new w(g,m,G,pe)}toJulianDay(t){return E(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return we[Y(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Y(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}function J(e,t){return t=l(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ne(e,t){return t=l(t,e.calendar),e=F(e),t=F(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function Me(e,t){return W(e.calendar,t.calendar)&&J(e,t)}function xe(e,t){return W(e.calendar,t.calendar)&&ne(e,t)}function W(e,t){var r,n,a,o;return(o=(a=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&a!==void 0?a:(n=t.isEqual)===null||n===void 0?void 0:n.call(t,e))!==null&&o!==void 0?o:e.identifier===t.identifier}function ge(e,t){return J(e,ae(t))}const ve={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function De(e,t,r){let n=e.calendar.toJulianDay(e),a=ve[r],o=Math.ceil(n+1-a)%7;return o<0&&(o+=7),o}function Ie(e){return u(Date.now(),e)}function ae(e){return Te(Ie(e))}function oe(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Se(e,t){return Q(e)-Q(t)}function Q(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let P=null;function N(){return P==null&&(P=new Intl.DateTimeFormat().resolvedOptions().timeZone),P}function F(e){return e.subtract({days:e.day-1})}function Ce(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function v(e){e=l(e,new b);let t=A(e.era,e.year);return ce(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ce(e,t,r,n,a,o,c){let i=new Date;return i.setUTCHours(n,a,o,c),i.setUTCFullYear(e,t-1,r),i.getTime()}function j(e,t){if(t==="UTC")return 0;if(e>0&&t===N())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:a,hour:o,minute:c,second:i}=ie(e,t);return ce(r,n,a,o,c,i,0)-Math.floor(e/1e3)*1e3}const X=new Map;function ie(e,t){let r=X.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),X.set(t,r));let n=r.formatToParts(new Date(e)),a={};for(let o of n)o.type!=="literal"&&(a[o.type]=o.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const ee=864e5;function Ee(e,t,r,n){return(r===n?[r]:[r,n]).filter(o=>Ye(e,t,o))}function Ye(e,t,r){let n=ie(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function h(e,t,r="compatible"){let n=D(e);if(t==="UTC")return v(n);if(t===N()&&r==="compatible"){n=l(n,new b);let f=new Date,d=A(n.era,n.year);return f.setFullYear(d,n.month-1,n.day),f.setHours(n.hour,n.minute,n.second,n.millisecond),f.getTime()}let a=v(n),o=j(a-ee,t),c=j(a+ee,t),i=Ee(n,t,a-o,a-c);if(i.length===1)return i[0];if(i.length>1)switch(r){case"compatible":case"earlier":return i[0];case"later":return i[i.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(a-o,a-c);case"compatible":case"later":return Math.max(a-o,a-c);case"reject":throw new RangeError("No such absolute time found")}}function fe(e,t,r="compatible"){return new Date(h(e,t,r))}function u(e,t){let r=j(e,t),n=new Date(e+r),a=n.getUTCFullYear(),o=n.getUTCMonth()+1,c=n.getUTCDate(),i=n.getUTCHours(),f=n.getUTCMinutes(),d=n.getUTCSeconds(),M=n.getUTCMilliseconds();return new S(a<1?"BC":"AD",a<1?-a+1:a,o,c,t,r,i,f,d,M)}function Te(e){return new w(e.calendar,e.era,e.year,e.month,e.day)}function D(e,t){let r=0,n=0,a=0,o=0;if("timeZone"in e)({hour:r,minute:n,second:a,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:a,millisecond:o}=t),new I(e.calendar,e.era,e.year,e.month,e.day,r,n,a,o)}function l(e,t){if(W(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,p(n),n}function Ue(e,t,r){if(e instanceof S)return e.timeZone===t?e:Ae(e,t);let n=h(e,t,r);return u(n,t)}function ke(e){let t=v(e)-e.offset;return new Date(t)}function Ae(e,t){let r=v(e)-e.offset;return l(u(r,t),e.calendar)}const C=36e5;function B(e,t){let r=e.copy(),n="hour"in r?Re(r,t):0;q(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,_(r),le(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Be(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let a=r.calendar.getYearsInEra(r);if(r.year>a){var o,c;let f=(o=(c=r.calendar).isInverseEra)===null||o===void 0?void 0:o.call(c,r);r.year=a,r.month=f?1:r.calendar.getMonthsInYear(r),r.day=f?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let i=r.calendar.getMonthsInYear(r);return r.month>i&&(r.month=i,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function q(e,t){var r,n;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function _(e){for(;e.month<1;)q(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,q(e,1)}function Be(e){for(;e.day<1;)e.month--,_(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,_(e)}function le(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function p(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),le(e)}function se(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function de(e,t){return B(e,se(t))}function V(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),p(r),r}function k(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Pe(r),r}function Oe(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=T(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=T(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=T(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=T(e.hour,24),t}function Pe(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function T(e,t){let r=e%t;return r<0&&(r+=t),r}function Re(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Oe(e)}function z(e,t,r,n){let a=e.copy();switch(t){case"era":{let i=e.calendar.getEras(),f=i.indexOf(e.era);if(f<0)throw new Error("Invalid era: "+e.era);f=$(f,r,0,i.length-1,n?.round),a.era=i[f],p(a);break}case"year":var o,c;!((o=(c=a.calendar).isInverseEra)===null||o===void 0)&&o.call(c,a)&&(r=-r),a.year=$(e.year,r,-1/0,9999,n?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case"month":a.month=$(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":a.day=$(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),p(a),a}function he(e,t,r,n){let a=e.copy();switch(t){case"hour":{let o=e.hour,c=0,i=23;if(n?.hourCycle===12){let f=o>=12;c=f?12:0,i=f?23:11}a.hour=$(o,r,c,i,n?.round);break}case"minute":a.minute=$(e.minute,r,0,59,n?.round);break;case"second":a.second=$(e.second,r,0,59,n?.round);break;case"millisecond":a.millisecond=$(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return a}function $(e,t,r,n,a=!1){if(a){e+=Math.sign(t),e<r&&(e=n);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function ue(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let a=B(D(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=h(a,e.timeZone)}else r=v(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let n=u(r,e.timeZone);return l(n,e.calendar)}function He(e,t){return ue(e,se(t))}function Ze(e,t,r,n){switch(t){case"hour":{let a=0,o=23;if(n?.hourCycle===12){let y=e.hour>=12;a=y?12:0,o=y?23:11}let c=D(e),i=l(k(c,{hour:a}),new b),f=[h(i,e.timeZone,"earlier"),h(i,e.timeZone,"later")].filter(y=>u(y,e.timeZone).day===i.day)[0],d=l(k(c,{hour:o}),new b),M=[h(d,e.timeZone,"earlier"),h(d,e.timeZone,"later")].filter(y=>u(y,e.timeZone).day===d.day).pop(),x=v(e)-e.offset,g=Math.floor(x/C),m=x%C;return x=$(g,r,Math.floor(f/C),Math.floor(M/C),n?.round)*C+m,l(u(x,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return he(e,t,r,n);case"era":case"year":case"month":case"day":{let a=z(D(e),t,r,n),o=h(a,e.timeZone);return l(u(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Fe(e,t,r){let n=D(e),a=k(V(n,t),t);if(a.compare(n)===0)return e;let o=h(a,e.timeZone,r);return l(u(o,e.timeZone),e.calendar)}const je=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qe=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,$e=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function _e(e){let t=e.match(je);if(!t)throw $e.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new w(s(t[1],0,9999),s(t[2],1,12),1);return r.day=s(t[3],1,r.calendar.getDaysInMonth(r)),r}function Je(e){let t=e.match(qe);if(!t)throw $e.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let r=s(t[1],-9999,9999),n=r<1?"BC":"AD",a=new I(n,r<1?-r+1:r,s(t[2],1,12),1,t[4]?s(t[4],0,23):0,t[5]?s(t[5],0,59):0,t[6]?s(t[6],0,59):0,t[7]?s(t[7],0,1/0)*1e3:0);return a.day=s(t[3],0,a.calendar.getDaysInMonth(a)),a}function s(e,t,r){let n=Number(e);if(n<t||n>r)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function We(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function ye(e){let t=l(e,new b),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function me(e){return`${ye(e)}T${We(e)}`}function Ne(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),a=Math.floor(e%36e5%6e4/1e3),o=`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return a!==0&&(o+=`:${String(a).padStart(2,"0")}`),o}function Ve(e){return`${me(e)}${Ne(e.offset)}[${e.timeZone}]`}function ze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function L(e,t,r){ze(e,t),t.set(e,r)}function K(e){let t=typeof e[0]=="object"?e.shift():new b,r;if(typeof e[0]=="string")r=e.shift();else{let c=t.getEras();r=c[c.length-1]}let n=e.shift(),a=e.shift(),o=e.shift();return[t,r,n,a,o]}var Le=new WeakMap;class w{copy(){return this.era?new w(this.calendar,this.era,this.year,this.month,this.day):new w(this.calendar,this.year,this.month,this.day)}add(t){return B(this,t)}subtract(t){return de(this,t)}set(t){return V(this,t)}cycle(t,r,n){return z(this,t,r,n)}toDate(t){return fe(this,t)}toString(){return ye(this)}compare(t){return oe(this,t)}constructor(...t){L(this,Le,{writable:!0,value:void 0});let[r,n,a,o,c]=K(t);this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,p(this)}}var Ke=new WeakMap;class I{copy(){return this.era?new I(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new I(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return B(this,t)}subtract(t){return de(this,t)}set(t){return V(k(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return z(this,t,r,n);default:return he(this,t,r,n)}}toDate(t,r){return fe(this,t,r)}toString(){return me(this)}compare(t){let r=oe(this,t);return r===0?Se(this,D(t)):r}constructor(...t){L(this,Ke,{writable:!0,value:void 0});let[r,n,a,o,c]=K(t);this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,p(this)}}var Ge=new WeakMap;class S{copy(){return this.era?new S(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new S(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return ue(this,t)}subtract(t){return He(this,t)}set(t,r){return Fe(this,t,r)}cycle(t,r,n){return Ze(this,t,r,n)}toDate(){return ke(this)}toString(){return Ve(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Ue(t,this.timeZone).toDate().getTime()}constructor(...t){L(this,Ge,{writable:!0,value:void 0});let[r,n,a,o,c]=K(t),i=t.shift(),f=t.shift();this.calendar=r,this.era=n,this.year=a,this.month=o,this.day=c,this.timeZone=i,this.offset=f,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,p(this)}}let R=new Map;class Qe{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),a=this.formatter.formatToParts(r);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return tt()&&(this.resolvedHourCycle||(this.resolvedHourCycle=rt(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=be(t,r),this.options=r}}const Xe={true:{ja:"h11"},false:{}};function be(e,t={}){if(typeof t.hour12=="boolean"&&et()){t={...t};let a=Xe[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=a??o,delete t.hour12}let r=e+(t?Object.entries(t).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(R.has(r))return R.get(r);let n=new Intl.DateTimeFormat(e,t);return R.set(r,n),n}let H=null;function et(){return H==null&&(H=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),H}let Z=null;function tt(){return Z==null&&(Z=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Z}function rt(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=be(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),a=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}exports.$11d87f3f76e88657$export$b4a036af3fc0b032=l;exports.$14e0f24ef4ac5c92$export$2061056d06d7cdf7=De;exports.$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2=xe;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=ge;exports.$14e0f24ef4ac5c92$export$91b62ebf2ba703ee=Me;exports.$14e0f24ef4ac5c92$export$a18c89cbd24170ff=ne;exports.$14e0f24ef4ac5c92$export$a2258d9c4118825c=Ce;exports.$14e0f24ef4ac5c92$export$a5a3b454ada2268e=F;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=N;exports.$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3=ae;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=J;exports.$2b4dce13dd5a17fa$export$842a2cf37af977e1=U;exports.$35ea8db9cb2ccb90$export$99faa760c7908e4f=w;exports.$35ea8db9cb2ccb90$export$ca871e8dbb80966f=I;exports.$35ea8db9cb2ccb90$export$d3b7288e7994edea=S;exports.$3b62074eb05584b2$export$4475b7e617eb123c=re;exports.$3b62074eb05584b2$export$553d7fa8e3805fc0=Y;exports.$3b62074eb05584b2$export$80ee6245ec4f29ec=b;exports.$3b62074eb05584b2$export$c36e0ecb2d4fa69d=A;exports.$3b62074eb05584b2$export$f297eb839006d339=E;exports.$fae977aafc393c5c$export$588937bcd60ade55=Je;exports.$fae977aafc393c5c$export$6b862160d295c8e=_e;exports.$fb18d541ea1ad717$export$ad991b66133851cf=Qe;
|