mat-date 1.9.64 → 1.15.25

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.
@@ -120,10 +120,10 @@ export declare class MDateUtil {
120
120
  static diffMins(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
121
121
  static diffSecs(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
122
122
  static divideTime(value: string): {
123
- h: number;
124
- m: number;
125
- s: number;
126
- ms: number;
123
+ h: any;
124
+ m: any;
125
+ s: any;
126
+ ms: any;
127
127
  };
128
128
  }
129
129
  export {};
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1467a1={};a0_0x1467a1['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x1467a1),exports['MDateUtil']=void 0x0;const a0_0x156890=require('@js-temporal/polyfill'),a0_0x5883d2=(_0x22245f,_0x533b0b=0x2)=>_0x22245f['toString']()['padStart'](_0x533b0b,'0');function a0_0xf45132(_0x4eb759,_0x4df440){try{return _0x4eb759();}catch(_0x19c264){if(_0x4df440)return _0x4df440;throw new Error('UNKNOWN');}}function a0_0x484b0e(_0x47a4c8,_0x3cdbe1){try{if(_0x47a4c8 instanceof Date)return a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](_0x47a4c8['getTime']())['toZonedDateTimeISO'](_0x3cdbe1)['epochMilliseconds'];if(typeof _0x47a4c8==='number')return _0x47a4c8;if(typeof _0x47a4c8==='string')return a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x47a4c8)['getTime']())['toZonedDateTimeISO'](_0x3cdbe1)['epochMilliseconds'];if(_0x47a4c8 instanceof a0_0xcd5165)return _0x47a4c8['toTime']();if(_0x47a4c8['idkey']==='MDateUtil')return _0x47a4c8['toTime']();return 0x0;}catch(_0x34920b){throw new Error('ERROR');}}function a0_0xbe5e6a(_0x1472c6){function _0x679d02(_0x178f4a){const _0x43e460={};return _0x43e460['weekday']=_0x178f4a,a0_0xf45132(()=>new Intl['DateTimeFormat'](_0x1472c6['localCode'],_0x43e460)['format'](a0_0x484b0e(_0x1472c6,_0x1472c6['zone'])),'');}function _0x29ef2b(){return _0x679d02('long');}function _0x17b258(){return _0x679d02('short');}function _0x4a7b7a(){return _0x679d02('narrow');}const _0xa53057={};return _0xa53057['ln']=_0x29ef2b,_0xa53057['sh']=_0x17b258,_0xa53057['nr']=_0x4a7b7a,_0xa53057;}function a0_0x2033a0(_0x5d8b9d){let _0x327b3a=undefined,_0x2e92ac=undefined,_0x10c9e8=undefined,_0xb48355=undefined;try{const _0x4114ae=(_0x5d8b9d||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x327b3a=_0x4114ae['length']>=0x1?Number(_0x4114ae[0x0]):undefined,_0x2e92ac=_0x4114ae['length']>=0x2?Number(_0x4114ae[0x1]):undefined,_0x10c9e8=_0x4114ae['length']>=0x3?Number(_0x4114ae[0x2]):undefined;}catch(_0x4d7d1a){}try{let _0x22f3fc=_0x5d8b9d||'',_0x2166b0=/\.\d{3}/g,_0x2c20b7=_0x22f3fc['match'](_0x2166b0)[0x0]['split']('.')['filter'](_0x2e85d5=>Boolean(_0x2e85d5));_0xb48355=_0x2c20b7['length']>=0x1?Number(_0x2c20b7[0x0]):undefined;}catch(_0x4c74ac){}const _0x4dc18e={};return _0x4dc18e['h']=_0x327b3a,_0x4dc18e['m']=_0x2e92ac,_0x4dc18e['s']=_0x10c9e8,_0x4dc18e['ms']=_0xb48355,_0x4dc18e;}let a0_0x4a8a87=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x45087c=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x1423d9(_0x3fbf58){return Number(Number(_0x3fbf58)['toFixed'](0x0))||0x0;}class a0_0xcd5165{#val;#_code=Intl['NumberFormat']()['resolvedOptions']()['locale'];#_zone=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];#dyfrmt=a0_0xbe5e6a(this);get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x5be170){this.#val=this.#val['with']({'year':_0x5be170['getFullYear'](),'month':_0x5be170['getMonth']()+0x1,'day':_0x5be170['getDate'](),'hour':_0x5be170['getHours'](),'minute':_0x5be170['getMinutes'](),'second':_0x5be170['getSeconds'](),'millisecond':_0x5be170['getMilliseconds']()});}['init'](){const _0x116956=new Date();return this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x116956['toISOString']())['toZonedDateTimeISO'](this['zone']),this.#dyfrmt=a0_0xbe5e6a(this),this;}['toString'](){return'---';}static['new'](){return new a0_0xcd5165()['setCode'](a0_0x4a8a87)['setZone'](a0_0x45087c)['init']();}static['setCode'](_0x40b4ba){return a0_0x4a8a87=_0x40b4ba,this;}static['setZone'](_0x345d5d){return a0_0x45087c=_0x345d5d,this;}static['seperator'](){return a0_0xf45132(()=>new Date()['toLocaleDateString'](a0_0x4a8a87)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0xf45132(()=>a0_0xcd5165['new']()['setTime'](this['toTime']()));}['setCode'](_0x45958c){return this.#_code=_0x45958c,this;}['setZone'](_0x293e67){return this.#_zone=_0x293e67,this;}['seperator'](){return a0_0xf45132(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0xf45132(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x5c305e=this.#_code){return a0_0xf45132(()=>{return new Intl['Locale'](_0x5c305e)?.['timeZones']||[];},null);}['region'](_0x5dde77=this.#_code){return a0_0xf45132(()=>{return new Intl['Locale'](_0x5dde77)['region'];},null);}['year'](){return this.#val['year'];}['month'](){return this.#val['month'];}['monthUtc'](){return this.#val['month']-0x1;}['day'](){return this.#val['day'];}['hours'](){return this.#val['hour'];}['min'](){return this.#val['minute'];}['sec'](){return this.#val['second'];}['msec'](){return this.#val['millisecond'];}['dayOfWeek'](){const _0x4c181d=this.#val['dayOfWeek'];return _0x4c181d?_0x4c181d:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x48b7da){return this.#val=this.#val['with']({'year':a0_0x1423d9(_0x48b7da)}),this;}['setMonth'](_0x25b5e4){return this.#val=this.#val['with']({'month':a0_0x1423d9(_0x25b5e4)}),this;}['setMonthUtc'](_0xd16dd0){return this.#val=this.#val['with']({'month':a0_0x1423d9(_0xd16dd0)+0x1}),this;}['setDay'](_0x567403){return this.#val=this.#val['with']({'day':a0_0x1423d9(_0x567403)}),this;}['setHour'](_0x73d8bd){return this.#val=this.#val['with']({'hour':a0_0x1423d9(_0x73d8bd)}),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x1d0325){return this.#val=this.#val['with']({'minute':a0_0x1423d9(_0x1d0325)}),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0xa12982){return this.#val=this.#val['with']({'second':a0_0x1423d9(_0xa12982)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x1633fc){return this.#val=this.#val['with']({'millisecond':a0_0x1423d9(_0x1633fc)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x1373e2){const _0x52a4c3=_0x1373e2?new Date(_0x1373e2?.['replace']('T','\x20')):new Date();return this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x52a4c3['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x558845){return this.#val=a0_0x156890['Temporal']['Instant']['fromEpochMilliseconds'](_0x558845||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x1d3745){return this['setIsoDate'](_0x1d3745?.['toISOString']()),this;}['setDateInputValue'](_0x1b94f7){const _0x2cca0c=_0x1b94f7?new Date(_0x1b94f7?.['replace']('T','\x20')):new Date();return _0x2cca0c['getTime']()&&(this.#val=a0_0x156890['Temporal']['Instant']['from'](_0x2cca0c?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x2cca0c)),this;}['setVal'](_0x48b38a){return a0_0xf45132(()=>{return a0_0xcd5165['new']()['setTime'](a0_0x484b0e(_0x48b38a,this['zone']));});}['toIsoDate'](){const _0x1e7406={};return _0x1e7406['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x1e7406);}['toIsoDateZone'](){return this.#val['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this.#val['epochMilliseconds'];}['toDate'](){return new Date(this.#val['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x5883d2(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x5883d2(this['month']())+'-'+a0_0x5883d2(this['day']());}['toTimeInput'](_0x7b472a=!![]){const _0x3e86dd=[];return _0x3e86dd['push'](a0_0x5883d2(this['hours']())),_0x3e86dd['push'](a0_0x5883d2(this['min']())),_0x7b472a&&_0x3e86dd['push'](a0_0x5883d2(this['sec']())),_0x3e86dd['join'](':');}['toDateTimeInput'](_0x50a101=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x50a101);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x32c893={};return _0x32c893['month']='2-digit',_0x32c893['day']='2-digit',_0x32c893['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x32c893);}['strTime'](){return a0_0x5883d2(this['hours']())+':'+a0_0x5883d2(this['min']())+':'+a0_0x5883d2(this['sec']());}['strHHmm'](){return a0_0x5883d2(this['hours']())+':'+a0_0x5883d2(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x4471af){return this.#val['toLocaleString'](this.#_code,_0x4471af);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x5883d2(this['month'](),0x2);}['strDay'](){return a0_0x5883d2(this['day'](),0x2);}['strHour'](){return a0_0x5883d2(this['hours'](),0x2);}['strMin'](){return a0_0x5883d2(this['min'](),0x2);}['strSec'](){return a0_0x5883d2(this['sec'](),0x2);}['strMsec'](){return a0_0x5883d2(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this.#dyfrmt['ln'](),'sh':()=>this.#dyfrmt['sh'](),'nr':()=>this.#dyfrmt['nr']()};}['addMonth'](_0x31b0dc){return this.#val=this.#val['add']({'months':a0_0x1423d9(_0x31b0dc)}),this;}['addDay'](_0x42c092){return this['addHours'](Number(_0x42c092)*0x18),this;}['addHours'](_0x258439){return this['addMins'](Number(_0x258439)*0x3c),this;}['addMins'](_0x16898b){return this['addSecs'](Number(_0x16898b)*0x3c),this;}['addSecs'](_0x11d727){return this['addMilliseconds'](Number(_0x11d727)*0x3e8),this;}['addMilliseconds'](_0x341021){return this.#val=this.#val['add']({'milliseconds':a0_0x1423d9(_0x341021)}),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setTime'](this.#val['epochMilliseconds'])['startOfMonth']()['addMonth'](0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0xcb6a14){return a0_0xf45132(()=>{return this['cpy']()['toTime']()===a0_0x484b0e(_0xcb6a14,this['zone']);});}['gt'](_0x2a8db8){return a0_0xf45132(()=>{return this['cpy']()['toTime']()>a0_0x484b0e(_0x2a8db8,this['zone']);});}['gte'](_0x51739e){return a0_0xf45132(()=>{return this['cpy']()['toTime']()>=a0_0x484b0e(_0x51739e,this['zone']);});}['lt'](_0x22482e){return a0_0xf45132(()=>{return this['cpy']()['toTime']()<a0_0x484b0e(_0x22482e,this['zone']);});}['lte'](_0x4b614d){return a0_0xf45132(()=>{return this['cpy']()['toTime']()<=a0_0x484b0e(_0x4b614d,this['zone']);});}['btw'](_0x213a30,_0x5a8275){return a0_0xf45132(()=>{const _0x11aaf4=a0_0x484b0e(_0x213a30,this['zone']),_0x5cc8b9=a0_0x484b0e(_0x5a8275,this['zone']),_0x2d94a6=this['cpy']()['toTime']();return _0x11aaf4<_0x2d94a6&&_0x2d94a6<_0x5cc8b9;});}['btweq'](_0x26ce48,_0x16400f){return a0_0xf45132(()=>{const _0xc0fd23=a0_0x484b0e(_0x26ce48,this['zone']),_0x26e377=a0_0x484b0e(_0x16400f,this['zone']),_0x5727c0=this['cpy']()['toTime']();return _0xc0fd23<=_0x5727c0&&_0x5727c0<=_0x26e377;});}['btwEqStart'](_0x2585d5,_0x160d28){return a0_0xf45132(()=>{const _0x40c0d3=a0_0x484b0e(_0x2585d5,this['zone']),_0x4bcda8=a0_0x484b0e(_0x160d28,this['zone']),_0x121a8b=this['cpy']()['toTime']();return _0x40c0d3<=_0x121a8b&&_0x121a8b<_0x4bcda8;});}['btwEqEnd'](_0x487767,_0x492d16){return a0_0xf45132(()=>{const _0x2e6ef9=a0_0x484b0e(_0x487767,this['zone']),_0x7dc355=a0_0x484b0e(_0x492d16,this['zone']),_0x1ba993=this['cpy']()['toTime']();return _0x2e6ef9<_0x1ba993&&_0x1ba993<=_0x7dc355;});}static['diffDays'](_0x3f069c,_0x23a528,_0x1c7648){return a0_0xf45132(()=>{const _0x3a6c23=a0_0x484b0e(_0x3f069c,a0_0x45087c),_0x48f5ab=a0_0x484b0e(_0x23a528,a0_0x45087c);return _0x1c7648?Math['abs'](_0x3a6c23-_0x48f5ab)/0x36ee80/0x18:(_0x3a6c23-_0x48f5ab)/0x36ee80/0x18;});}static['diffHours'](_0x1253eb,_0x10eb18,_0x13588b){return a0_0xf45132(()=>{const _0x5b6275=a0_0x484b0e(_0x1253eb,a0_0x45087c),_0xae866e=a0_0x484b0e(_0x10eb18,a0_0x45087c);return _0x13588b?Math['abs'](_0x5b6275-_0xae866e)/0x36ee80:(_0x5b6275-_0xae866e)/0x36ee80;});}static['diffMins'](_0x20f340,_0xd049e3,_0x24bdd3){return a0_0xf45132(()=>{const _0x4f576a=a0_0x484b0e(_0x20f340,a0_0x45087c),_0x1a18dd=a0_0x484b0e(_0xd049e3,a0_0x45087c);return _0x24bdd3?Math['abs'](_0x4f576a-_0x1a18dd)/0x3e8/0x3c:(_0x4f576a-_0x1a18dd)/0x3e8/0x3c;});}static['diffSecs'](_0xb460ac,_0x2f719a,_0x455399){return a0_0xf45132(()=>{const _0x9f5641=a0_0x484b0e(_0xb460ac,a0_0x45087c),_0x2a3ab7=a0_0x484b0e(_0x2f719a,a0_0x45087c);return _0x455399?Math['abs'](_0x9f5641-_0x2a3ab7)/0x3e8:(_0x9f5641-_0x2a3ab7)/0x3e8;});}static['divideTime'](_0x1e82e4){return a0_0xf45132(()=>a0_0x2033a0(_0x1e82e4));}}exports['MDateUtil']=a0_0xcd5165;const a0_0x1db644={};a0_0x1db644['value']='MDateUtil',a0_0x1db644['writable']=![],a0_0x1db644['enumerable']=!![],a0_0x1db644['configurable']=![],Object['defineProperty'](a0_0xcd5165['prototype'],'idkey',a0_0x1db644);
1
+ 'use strict';const a0_0x2f9fd3={};a0_0x2f9fd3['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2f9fd3),exports['MDateUtil']=void 0x0;const a0_0x2667aa=require('temporal-polyfill'),a0_0x2b0797=(_0x23cf4c,_0x1b79ee=0x2)=>_0x23cf4c['toString']()['padStart'](_0x1b79ee,'0');function a0_0x23cc65(_0x29b206,_0x582a73){try{return _0x29b206();}catch(_0xe60d95){if(_0x582a73)return _0x582a73;throw new Error('UNKNOWN');}}function a0_0x4502ac(_0x343f99,_0xf0ca94){try{if(_0x343f99 instanceof Date)return a0_0x2667aa['Temporal']['Instant']['fromEpochMilliseconds'](_0x343f99['getTime']())['toZonedDateTimeISO'](_0xf0ca94)['epochMilliseconds'];if(typeof _0x343f99==='number')return _0x343f99;if(typeof _0x343f99==='string')return a0_0x2667aa['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x343f99)['getTime']())['toZonedDateTimeISO'](_0xf0ca94)['epochMilliseconds'];if(_0x343f99 instanceof a0_0x3b4d22)return _0x343f99['toTime']();if(_0x343f99['idkey']==='MDateUtil')return _0x343f99['toTime']();return 0x0;}catch(_0x1337b8){throw new Error('ERROR');}}function a0_0x41f58f(_0x5bca38){function _0x2ec2a7(_0xc978c){const _0x10e8f3={};return _0x10e8f3['weekday']=_0xc978c,a0_0x23cc65(()=>new Intl['DateTimeFormat'](_0x5bca38['localCode'],_0x10e8f3)['format'](a0_0x4502ac(_0x5bca38,_0x5bca38['zone'])),'');}function _0x4d1c3b(){return _0x2ec2a7('long');}function _0x163d2b(){return _0x2ec2a7('short');}function _0x37fc88(){return _0x2ec2a7('narrow');}const _0x5d7f23={};return _0x5d7f23['ln']=_0x4d1c3b,_0x5d7f23['sh']=_0x163d2b,_0x5d7f23['nr']=_0x37fc88,_0x5d7f23;}function a0_0x530287(_0x216331=''){const _0x2bc103={};_0x2bc103['h']=undefined,_0x2bc103['m']=undefined,_0x2bc103['s']=undefined,_0x2bc103['ms']=undefined;const _0x48a465=_0x2bc103,_0x424ca2=_0x216331['match'](/\b\d{1,2}:\d{2}(?::\d{2})?\b/);if(_0x424ca2?.[0x0]){const [_0x46b4c5,_0xbdba41,_0x52cfdc]=_0x424ca2[0x0]['split'](':')['map'](Number);_0x48a465['h']=_0x46b4c5,_0x48a465['m']=_0xbdba41,_0x48a465['s']=_0x52cfdc;}const _0x4057ff=_0x216331['match'](/\.(\d{1,3})/);return _0x4057ff?.[0x1]&&(_0x48a465['ms']=Number(_0x4057ff[0x1]['padEnd'](0x3,'0'))),_0x48a465;}let a0_0x317ee5=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x4fb016=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];function a0_0x52b0c2(_0x12c43a){return Math['floor'](_0x12c43a)||0x0;}class a0_0x3b4d22{#val;#_code=a0_0x317ee5;#_zone=a0_0x4fb016;#dyfrmt=a0_0x41f58f(this);get['localCode'](){return this.#_code;}get['zone'](){return this.#_zone;}['with'](_0x322bc5){this.#val=this.#val['with']({'year':_0x322bc5['getFullYear'](),'month':_0x322bc5['getMonth']()+0x1,'day':_0x322bc5['getDate'](),'hour':_0x322bc5['getHours'](),'minute':_0x322bc5['getMinutes'](),'second':_0x322bc5['getSeconds'](),'millisecond':_0x322bc5['getMilliseconds']()});}['init'](){return this.#val=a0_0x2667aa['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this.#dyfrmt=a0_0x41f58f(this),this;}['toString'](){return'---';}static['new'](){return new a0_0x3b4d22()['setCode'](a0_0x317ee5)['setZone'](a0_0x4fb016)['init']();}static['setCode'](_0x38906d){return a0_0x317ee5=_0x38906d,this;}static['setZone'](_0x362a82){return a0_0x4fb016=_0x362a82,this;}static['seperator'](){return a0_0x23cc65(()=>new Date()['toLocaleDateString'](a0_0x317ee5)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x3b4d22['new']()['setTime'](this['toTime']());}['setCode'](_0x49f481){return this.#_code=_0x49f481,this;}['setZone'](_0x8f4f38){return this.#_zone=_0x8f4f38,this;}['seperator'](){return a0_0x23cc65(()=>new Date()['toLocaleDateString'](this.#_code)['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x23cc65(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x303543=this.#_code){return a0_0x23cc65(()=>{return new Intl['Locale'](_0x303543)?.['timeZones']||[];},null);}['region'](_0x54352a=this.#_code){return a0_0x23cc65(()=>{return new Intl['Locale'](_0x54352a)['region'];},null);}['year'](){return this.#val['year'];}['month'](){return this.#val['month'];}['monthUtc'](){return this.#val['month']-0x1;}['day'](){return this.#val['day'];}['hours'](){return this.#val['hour'];}['min'](){return this.#val['minute'];}['sec'](){return this.#val['second'];}['msec'](){return this.#val['millisecond'];}['dayOfWeek'](){const _0x100168=this.#val['dayOfWeek'];return _0x100168?_0x100168:0x7;}['dayOfWeekUtc'](){return this.#val['dayOfWeek']-0x1;}['setYear'](_0x5b4b4c){return this.#val=this.#val['with']({'year':a0_0x52b0c2(_0x5b4b4c)}),this;}['setMonth'](_0x1e31f2){return this.#val=this.#val['with']({'month':a0_0x52b0c2(_0x1e31f2)}),this;}['setMonthUtc'](_0x89ef11){return this.#val=this.#val['with']({'month':a0_0x52b0c2(_0x89ef11)+0x1}),this;}['setDay'](_0x296600){return this.#val=this.#val['with']({'day':a0_0x52b0c2(_0x296600)}),this;}['setHour'](_0x1b1d64){return this.#val=this.#val['with']({'hour':a0_0x52b0c2(_0x1b1d64)}),this;}['startOfHours'](){const _0xc3f369={};return _0xc3f369['minute']=0x0,_0xc3f369['second']=0x0,_0xc3f369['millisecond']=0x0,this.#val=this.#val['with'](_0xc3f369),this;}['endOfHours'](){const _0x579863={};return _0x579863['minute']=0x3b,_0x579863['second']=0x3b,_0x579863['millisecond']=0x3e7,this.#val=this.#val['with'](_0x579863),this;}['setMin'](_0x1b3722){return this.#val=this.#val['with']({'minute':a0_0x52b0c2(_0x1b3722)}),this;}['startOfMin'](){const _0x1b8bf2={};return _0x1b8bf2['second']=0x0,_0x1b8bf2['millisecond']=0x0,this.#val=this.#val['with'](_0x1b8bf2),this;}['endOfMin'](){const _0x100bff={};return _0x100bff['second']=0x3b,_0x100bff['millisecond']=0x3e7,this.#val=this.#val['with'](_0x100bff),this;}['setSeconds'](_0x413b25){return this.#val=this.#val['with']({'second':a0_0x52b0c2(_0x413b25)}),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x537519){return this.#val=this.#val['with']({'millisecond':a0_0x52b0c2(_0x537519)}),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x14967d){return _0x14967d?this.#val=a0_0x2667aa['Temporal']['Instant']['from'](new Date(_0x14967d)['toISOString']())['toZonedDateTimeISO'](this['zone']):this.#val=a0_0x2667aa['Temporal']['Now']['zonedDateTimeISO'](this['zone']),this;}['setTime'](_0x23e459){return this.#val=a0_0x2667aa['Temporal']['Instant']['fromEpochMilliseconds'](_0x23e459||new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x7088b5){return this['setIsoDate'](_0x7088b5?.['toISOString']()),this;}['setDateInputValue'](_0x42881b){const _0x2ce27a=_0x42881b?new Date(_0x42881b?.['replace']('T','\x20')):new Date();return _0x2ce27a['getTime']()&&(this.#val=a0_0x2667aa['Temporal']['Instant']['from'](_0x2ce27a?.['toISOString']())['toZonedDateTimeISO'](this['zone']),this['with'](_0x2ce27a)),this;}['setVal'](_0x15630f){return a0_0x3b4d22['new']()['setTime'](a0_0x4502ac(_0x15630f,this['zone']));}['toIsoDate'](){const _0x5ede3f={};return _0x5ede3f['fractionalSecondDigits']=0x3,this.#val['toInstant']()['toString'](_0x5ede3f);}['toIsoDateZone'](){return this.#val['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this.#val['epochMilliseconds'];}['toDate'](){return new Date(this.#val['toInstant']()['epochMilliseconds']);}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2b0797(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2b0797(this['month']())+'-'+a0_0x2b0797(this['day']());}['toTimeInput'](_0x17e5eb=!![]){const _0x1c7683=[];return _0x1c7683['push'](a0_0x2b0797(this['hours']())),_0x1c7683['push'](a0_0x2b0797(this['min']())),_0x17e5eb&&_0x1c7683['push'](a0_0x2b0797(this['sec']())),_0x1c7683['join'](':');}['toDateTimeInput'](_0x31c825=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x31c825);}['toAs'](){return this.#val['toInstant']()['toString']();}['strDate'](){const _0x20a1d0={};return _0x20a1d0['month']='2-digit',_0x20a1d0['day']='2-digit',_0x20a1d0['year']='numeric',this.#val['toLocaleString'](this.#_code,_0x20a1d0);}['strTime'](){return a0_0x2b0797(this['hours']())+':'+a0_0x2b0797(this['min']())+':'+a0_0x2b0797(this['sec']());}['strHHmm'](){return a0_0x2b0797(this['hours']())+':'+a0_0x2b0797(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x26920e){return this.#val['toLocaleString'](this.#_code,_0x26920e);}['strYears'](){return this.#val['year']['toString']();}['strMounth'](){return a0_0x2b0797(this['month'](),0x2);}['strDay'](){return a0_0x2b0797(this['day'](),0x2);}['strHour'](){return a0_0x2b0797(this['hours'](),0x2);}['strMin'](){return a0_0x2b0797(this['min'](),0x2);}['strSec'](){return a0_0x2b0797(this['sec'](),0x2);}['strMsec'](){return a0_0x2b0797(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this.#dyfrmt['ln'](),'sh':()=>this.#dyfrmt['sh'](),'nr':()=>this.#dyfrmt['nr']()};}['addMonth'](_0x4656e8){return this.#val=this.#val['add']({'months':a0_0x52b0c2(_0x4656e8)}),this;}['addDay'](_0x1ccd40){return this['addHours'](_0x1ccd40*0x18),this;}['addHours'](_0x2e9975){return this['addMins'](_0x2e9975*0x3c),this;}['addMins'](_0x1d82da){return this['addSecs'](_0x1d82da*0x3c),this;}['addSecs'](_0x499fd2){return this['addMilliseconds'](_0x499fd2*0x3e8),this;}['addMilliseconds'](_0x5cc17f){return this.#val=this.#val['add']({'milliseconds':a0_0x52b0c2(_0x5cc17f)}),this;}['startOfDay'](){const _0x2ef7ca={};return _0x2ef7ca['hour']=0x0,_0x2ef7ca['minute']=0x0,_0x2ef7ca['second']=0x0,_0x2ef7ca['millisecond']=0x0,this.#val=this.#val['with'](_0x2ef7ca),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){const _0x231195={};return _0x231195['hour']=0x17,_0x231195['minute']=0x3b,_0x231195['second']=0x3b,_0x231195['millisecond']=0x3e7,this.#val=this.#val['with'](_0x231195),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){const _0x341420={};return _0x341420['day']=0x1,_0x341420['hour']=0x0,_0x341420['minute']=0x0,_0x341420['second']=0x0,_0x341420['millisecond']=0x0,this.#val=this.#val['with'](_0x341420),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){const _0x47afb2=a0_0x2667aa['Temporal']['ZonedDateTime']['from'](this.#val),_0x3b8bd5={};_0x3b8bd5['day']=_0x47afb2['daysInMonth'];const _0x3b9bab={};return _0x3b9bab['hour']=0x17,_0x3b9bab['minute']=0x3b,_0x3b9bab['second']=0x3b,_0x3b9bab['millisecond']=0x3e7,_0x3b9bab['microsecond']=0x3e7,_0x3b9bab['nanosecond']=0x3e7,this.#val=this.#val['with'](_0x3b8bd5)['with'](_0x3b9bab),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x5d4543){return this['cpy']()['toTime']()===a0_0x4502ac(_0x5d4543,this['zone']);}['gt'](_0xd08e0){return this['cpy']()['toTime']()>a0_0x4502ac(_0xd08e0,this['zone']);}['gte'](_0x200edf){return this['cpy']()['toTime']()>=a0_0x4502ac(_0x200edf,this['zone']);}['lt'](_0xd2561e){return this['cpy']()['toTime']()<a0_0x4502ac(_0xd2561e,this['zone']);}['lte'](_0x5b280b){return this['cpy']()['toTime']()<=a0_0x4502ac(_0x5b280b,this['zone']);}['btw'](_0x55cad7,_0x573441){const _0x3b7230=a0_0x4502ac(_0x55cad7,this['zone']),_0x3f5d18=a0_0x4502ac(_0x573441,this['zone']),_0x131389=this['cpy']()['toTime']();return _0x3b7230<_0x131389&&_0x131389<_0x3f5d18;}['btweq'](_0x5f5400,_0x42d87d){const _0x169ef4=a0_0x4502ac(_0x5f5400,this['zone']),_0x9c7c5c=a0_0x4502ac(_0x42d87d,this['zone']),_0x5e2dee=this['cpy']()['toTime']();return _0x169ef4<=_0x5e2dee&&_0x5e2dee<=_0x9c7c5c;}['btwEqStart'](_0x23fdef,_0x47f006){const _0x4c856f=a0_0x4502ac(_0x23fdef,this['zone']),_0x1a338c=a0_0x4502ac(_0x47f006,this['zone']),_0x2db2b1=this['cpy']()['toTime']();return _0x4c856f<=_0x2db2b1&&_0x2db2b1<_0x1a338c;}['btwEqEnd'](_0x1f2a58,_0xf60e32){const _0xf83440=a0_0x4502ac(_0x1f2a58,this['zone']),_0x5314ba=a0_0x4502ac(_0xf60e32,this['zone']),_0x100677=this['cpy']()['toTime']();return _0xf83440<_0x100677&&_0x100677<=_0x5314ba;}static['diffDays'](_0x4bc75f,_0x6948dc,_0x54d897){const _0xc48c52=a0_0x4502ac(_0x4bc75f,a0_0x4fb016),_0x539b5e=a0_0x4502ac(_0x6948dc,a0_0x4fb016);return _0x54d897?Math['abs'](_0xc48c52-_0x539b5e)/0x36ee80/0x18:(_0xc48c52-_0x539b5e)/0x36ee80/0x18;}static['diffHours'](_0x5b3b81,_0x25d05b,_0x385487){const _0x50df63=a0_0x4502ac(_0x5b3b81,a0_0x4fb016),_0x265609=a0_0x4502ac(_0x25d05b,a0_0x4fb016);return _0x385487?Math['abs'](_0x50df63-_0x265609)/0x36ee80:(_0x50df63-_0x265609)/0x36ee80;}static['diffMins'](_0x91fcc5,_0x3dca9b,_0x4046e7){const _0x277f90=a0_0x4502ac(_0x91fcc5,a0_0x4fb016),_0x2d9303=a0_0x4502ac(_0x3dca9b,a0_0x4fb016);return _0x4046e7?Math['abs'](_0x277f90-_0x2d9303)/0x3e8/0x3c:(_0x277f90-_0x2d9303)/0x3e8/0x3c;}static['diffSecs'](_0x366ebe,_0x4a184d,_0xded2f){const _0x3cc151=a0_0x4502ac(_0x366ebe,a0_0x4fb016),_0x825abe=a0_0x4502ac(_0x4a184d,a0_0x4fb016);return _0xded2f?Math['abs'](_0x3cc151-_0x825abe)/0x3e8:(_0x3cc151-_0x825abe)/0x3e8;}static['divideTime'](_0x3ee0f0){return a0_0x530287(_0x3ee0f0);}}exports['MDateUtil']=a0_0x3b4d22;const a0_0x12250c={};a0_0x12250c['value']='MDateUtil',a0_0x12250c['writable']=![],a0_0x12250c['enumerable']=!![],a0_0x12250c['configurable']=![],Object['defineProperty'](a0_0x3b4d22['prototype'],'idkey',a0_0x12250c);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x3c3651=this&&this['__createBinding']||(Object['create']?function(_0x183adf,_0x4c37be,_0x3f2cac,_0x47f260){if(_0x47f260===undefined)_0x47f260=_0x3f2cac;var _0x17c727=Object['getOwnPropertyDescriptor'](_0x4c37be,_0x3f2cac);if(!_0x17c727||('get'in _0x17c727?!_0x4c37be['__esModule']:_0x17c727['writable']||_0x17c727['configurable'])){var _0x36d68f={};_0x36d68f['enumerable']=!![],_0x36d68f['get']=function(){return _0x4c37be[_0x3f2cac];},_0x17c727=_0x36d68f;}Object['defineProperty'](_0x183adf,_0x47f260,_0x17c727);}:function(_0x232058,_0x1b1f6c,_0x49b177,_0x4705c8){if(_0x4705c8===undefined)_0x4705c8=_0x49b177;_0x232058[_0x4705c8]=_0x1b1f6c[_0x49b177];}),a0_0xef62aa=this&&this['__exportStar']||function(_0x27a061,_0x49477d){for(var _0x5700c5 in _0x27a061)if(_0x5700c5!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x49477d,_0x5700c5))a0_0x3c3651(_0x49477d,_0x27a061,_0x5700c5);},a0_0x37c330={};a0_0x37c330['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x37c330),a0_0xef62aa(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x249f4a=this&&this['__createBinding']||(Object['create']?function(_0x27ab72,_0x533e30,_0x3f4d73,_0x5938f1){if(_0x5938f1===undefined)_0x5938f1=_0x3f4d73;var _0x4e9a21=Object['getOwnPropertyDescriptor'](_0x533e30,_0x3f4d73);if(!_0x4e9a21||('get'in _0x4e9a21?!_0x533e30['__esModule']:_0x4e9a21['writable']||_0x4e9a21['configurable'])){var _0x2f0e25={};_0x2f0e25['enumerable']=!![],_0x2f0e25['get']=function(){return _0x533e30[_0x3f4d73];},_0x4e9a21=_0x2f0e25;}Object['defineProperty'](_0x27ab72,_0x5938f1,_0x4e9a21);}:function(_0x407736,_0x42669d,_0x427de8,_0x49b86a){if(_0x49b86a===undefined)_0x49b86a=_0x427de8;_0x407736[_0x49b86a]=_0x42669d[_0x427de8];}),a0_0x4433d2=this&&this['__exportStar']||function(_0x176228,_0x38f1af){for(var _0x3a0417 in _0x176228)if(_0x3a0417!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x38f1af,_0x3a0417))a0_0x249f4a(_0x38f1af,_0x176228,_0x3a0417);},a0_0x5c79a0={};a0_0x5c79a0['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x5c79a0),a0_0x4433d2(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.9.64",
3
+ "version": "1.15.25",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
- "@js-temporal/polyfill": "^0.5.1",
29
+ "temporal-polyfill": "^0.3.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {