diff --git a/dist/js/tool.js b/dist/js/tool.js index e3ade6c..ccb0611 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1 +1 @@ -(()=>{"use strict";var e={490:(e,t)=>{function n(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(c(Error)),y=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(m),v=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(m),p=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(m),g=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(m),w=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(m),k=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(m),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(m),T="numeric",N="short",S="long",x={year:T,month:T,day:T},C={year:T,month:N,day:T},M={year:T,month:N,day:T,weekday:N},V={year:T,month:S,day:T},O={year:T,month:S,day:T,weekday:S},E={hour:T,minute:T},D={hour:T,minute:T,second:T},_={hour:T,minute:T,second:T,timeZoneName:N},I={hour:T,minute:T,second:T,timeZoneName:S},F={hour:T,minute:T,hourCycle:"h23"},L={hour:T,minute:T,second:T,hourCycle:"h23"},Z={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:N},A={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:S},j={year:T,month:T,day:T,hour:T,minute:T},z={year:T,month:T,day:T,hour:T,minute:T,second:T},q={year:T,month:N,day:T,hour:T,minute:T},U={year:T,month:N,day:T,hour:T,minute:T,second:T},B={year:T,month:N,day:T,weekday:N,hour:T,minute:T},H={year:T,month:S,day:T,hour:T,minute:T,timeZoneName:N},R={year:T,month:S,day:T,hour:T,minute:T,second:T,timeZoneName:N},P={year:T,month:S,day:T,weekday:S,hour:T,minute:T,timeZoneName:S},W={year:T,month:S,day:T,weekday:S,hour:T,minute:T,second:T,timeZoneName:S};function Y(e){return void 0===e}function J(e){return"number"==typeof e}function G(e){return"number"==typeof e&&e%1==0}function $(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Q(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function K(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X(e,t,n){return G(e)&&e>=t&&e<=n}function ee(e,t){return void 0===t&&(t=2),e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function te(e){return Y(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){return Y(e)||null===e||""===e?void 0:parseFloat(e)}function re(e){if(!Y(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function oe(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ie(e){return e%4==0&&(e%100!=0||e%400==0)}function ae(e){return ie(e)?366:365}function se(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ie(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ue(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ce(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var s=o({timeZoneName:t},a),u=new Intl.DateTimeFormat(n,s).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return u?u.value:null}function fe(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function he(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new k("Invalid unit value "+e);return t}function me(e,t){var n={};for(var r in e)if(K(e,r)){var o=e[r];if(null==o)continue;n[t(r)]=he(o)}return n}function ye(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return""+o+ee(n,2)+":"+ee(r,2);case"narrow":return""+o+n+(r>0?":"+r:"");case"techie":return""+o+ee(n,2)+ee(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ve(e){return function(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}(e,["hour","minute","second","millisecond"])}var pe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ke=["J","F","M","A","M","J","J","A","S","O","N","D"];function be(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(we);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Te=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ne=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Se=["M","T","W","T","F","S","S"];function xe(e){switch(e){case"narrow":return[].concat(Se);case"short":return[].concat(Ne);case"long":return[].concat(Te);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],Me=["Before Christ","Anno Domini"],Ve=["BC","AD"],Oe=["B","A"];function Ee(e){switch(e){case"narrow":return[].concat(Oe);case"short":return[].concat(Ve);case"long":return[].concat(Me);default:return null}}function De(e,t){for(var n,r="",o=h(e);!(n=o()).done;){var i=n.value;i.literal?r+=i.val:r+=t(i.val)}return r}var _e={D:x,DD:C,DDD:V,DDDD:O,t:E,tt:D,ttt:_,tttt:I,T:F,TT:L,TTT:Z,TTTT:A,f:j,ff:q,fff:H,ffff:P,F:z,FF:U,FFF:R,FFFF:W},Ie=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,o=[],i=0;i0&&o.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&o.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&o.push({literal:r,val:n}),o},e.macroTokenToFormatOpts=function(e){return _e[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,o({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var n=o({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,o="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(){return o?function(e){return Ce[e.hour<12?0:1]}(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod")},l=function(e,n){return o?function(e,t){return be(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return o?function(e,t){return xe(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},d=function(e){return o?function(e,t){return Ee(t)[e.year<0?0:1]}(t,e):a({era:e},"era")};return De(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"uu":return r.num(Math.floor(t.millisecond/10),2);case"uuu":return r.num(Math.floor(t.millisecond/100));case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return u();case"d":return i?a({day:"numeric"},"day"):r.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):r.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):r.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var o=e.macroTokenToFormatOpts(n);return o?r.formatWithSystemDefault(t,o):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,o=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),u=t.shiftTo.apply(t,s.map(i).filter((function(e){return e})));return De(a,(r=u,function(e){var t=i(e);return t?o.num(r.get(t),e.length):e}))},e}(),Fe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Le=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},r(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ze=null,Ae=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale)},n.formatOffset=function(e,t){return ye(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},r(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ze&&(Ze=new t),Ze}}]),t}(Le),je={};var ze={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};var qe={},Ue=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}i(t,e),t.create=function(e){return qe[e]||(qe[e]=new t(e)),qe[e]},t.resetCache=function(){qe={},je={}},t.isValidSpecifier=function(e){return this.isValidZone(e)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return ye(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,je[n]||(je[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[n]),o=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],o=0;o=0?h:1e3+h))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Le),Be=null,He=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(fe(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return ye(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ye(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+ye(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Be&&(Be=new t(0)),Be}}]),t}(Le),Re=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}i(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Le);function Pe(e,t){if(Y(e)||null===e)return t;if(e instanceof Le)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n||"system"===n?t:"utc"===n||"gmt"===n?He.utcInstance:He.parseSpecifier(n)||Ue.create(e)}return J(e)?He.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Re(e)}var We,Ye=function(){return Date.now()},Je="system",Ge=null,$e=null,Qe=null,Ke=function(){function e(){}return e.resetCaches=function(){dt.resetCache(),Ue.resetCache()},r(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZone",get:function(){return Pe(Je,Ae.instance)},set:function(e){Je=e}},{key:"defaultLocale",get:function(){return Ge},set:function(e){Ge=e}},{key:"defaultNumberingSystem",get:function(){return $e},set:function(e){$e=e}},{key:"defaultOutputCalendar",get:function(){return Qe},set:function(e){Qe=e}},{key:"throwOnInvalid",get:function(){return We},set:function(e){We=e}}]),e}(),Xe=["base"],et=["padTo","floor"],tt={};var nt={};function rt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.DateTimeFormat(e,t),nt[n]=r),r}var ot={};var it={};var at=null;function st(e,t,n,r,o){var i=e.listingMode(n);return"error"===i?null:"en"===i?r(t):o(t)}var ut=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,n.padTo,n.floor;var r=d(n,et);if(!t||Object.keys(r).length>0){var i=o({useGrouping:!1},n);n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=ot[n];return r||(r=new Intl.NumberFormat(e,t),ot[n]=r),r}(e,i)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),lt=function(){function e(e,t,n){var r;if(this.opts=n,e.zone.isUniversal){var i=e.offset/60*-1,a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i;0!==e.offset&&Ue.create(a).valid?(r=a,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:fr.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);var s=o({},this.opts);r&&(s.timeZone=r),this.dtf=rt(t,s)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ct=function(){function e(e,t,n){this.opts=o({style:"long"},n),!t&&$()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=d(n,Xe),o=JSON.stringify([e,r]),i=it[o];return i||(i=new Intl.RelativeTimeFormat(e,t),it[o]=i),i}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+o[e][0];case-1:return a?"yesterday":"last "+o[e][0];case 0:return a?"today":"this "+o[e][0]}}var s=Object.is(t,-0)||t<0,u=Math.abs(t),l=1===u,c=o[e],d=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return s?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),dt=function(){function e(e,t,n,r){var o=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=rt(e).resolvedOptions()}catch(e){n=rt(r).resolvedOptions()}var o=n;return[r,o.numberingSystem,o.calendar]}(e),i=o[0],a=o[1],s=o[2];this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,o){void 0===o&&(o=!1);var i=t||Ke.defaultLocale;return new e(i||(o?"en-US":at||(at=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Ke.defaultNumberingSystem,r||Ke.defaultOutputCalendar,i)},e.resetCache=function(){at=null,nt={},ot={},it={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,o=n.numberingSystem,i=n.outputCalendar;return e.create(r,o,i)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(o({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(o({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,be,(function(){var n=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return r.monthsCache[o][e]||(r.monthsCache[o][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=fr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[o][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,xe,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return r.weekdaysCache[o][e]||(r.weekdaysCache[o][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=fr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[o][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),st(this,e,t,Ee,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new lt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ct(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){return void 0===e&&(e={}),function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.ListFormat(e,t),tt[n]=r),r}(this.intl,e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ft(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?Te.indexOf(e)+1:Ne.indexOf(e)+1),s}var It=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ft(e){var t,n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],d=e[10],f=e[11],h=_t(n,i,o,r,a,s,u);return t=l?Dt[l]:c?0:fe(d,f),[h,new He(t)]}var Lt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jt(e){var t=e[1],n=e[2],r=e[3];return[_t(t,e[4],r,n,e[5],e[6],e[7]),He.utcInstance]}function zt(e){var t=e[1],n=e[2],r=e[3],o=e[4],i=e[5],a=e[6];return[_t(t,e[7],n,r,o,i,a),He.utcInstance]}var qt=ft(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Ut=ft(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Bt=ft(/(\d{4})-?(\d{3})/,wt),Ht=ft(gt),Rt=ht((function(e,t){return[{year:St(e,t),month:St(e,t+1,1),day:St(e,t+2,1)},null,t+3]}),xt,Ct,Mt),Pt=ht(kt,xt,Ct,Mt),Wt=ht(bt,xt,Ct,Mt),Yt=ht(xt,Ct,Mt);var Jt=ht(xt);var Gt=ft(/(\d{4})-(\d\d)-(\d\d)/,Nt),$t=ft(Tt),Qt=ht(xt,Ct,Mt);var Kt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=o({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Kt),en=365.2425,tn=30.436875,nn=o({years:{quarters:4,months:12,weeks:52.1775,days:en,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:tn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Kt),rn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],on=rn.slice(0).reverse();function an(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:o({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new un(r)}function sn(e,t,n,r,o){var i=e[o][n],a=t[n]/i,s=!(Math.sign(a)===Math.sign(r[o]))&&0!==r[o]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[o]+=s,t[n]-=s*i}var un=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?nn:Xt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new k("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:me(t,e.normalizeUnit),loc:dt.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromDurationLike=function(t){if(J(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new k("Unknown duration argument "+t+" of type "+typeof t)},e.fromISO=function(t,n){var r=function(e){return mt(e,[Ot,Et])}(t),o=r[0];return o?e.fromObject(o,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return mt(e,[Vt,Jt])}(t),o=r[0];return o?e.fromObject(o,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new k("need to specify a reason the Duration is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(Ke.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new w(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=o({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ie.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toHuman=function(e){var t=this;void 0===e&&(e={});var n=rn.map((function(n){var r=t.values[n];return Y(r)?null:t.loc.numberFormatter(o({style:"unit",unitDisplay:"long"},e,{unit:n.slice(0,-1)})).format(r)})).filter((function(e){return e}));return this.loc.listFormatter(o({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)},t.toObject=function(){return this.isValid?o({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=o({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(t){if(!this.isValid)return this;for(var n,r=e.fromDurationLike(t),o={},i=h(rn);!(n=i()).done;){var a=n.value;(K(r.values,a)||K(this.values,a))&&(o[a]=r.get(a)+this.get(a))}return an(this,{values:o},!0)},t.minus=function(t){if(!this.isValid)return this;var n=e.fromDurationLike(t);return this.plus(n.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){o=c;var d=0;for(var f in s)d+=this.matrix[f][c]*s[f],s[f]=0;J(u[c])&&(d+=u[c]);var m=Math.trunc(d);for(var y in a[c]=m,s[c]=(1e3*d-1e3*m)/1e3,u)rn.indexOf(y)>rn.indexOf(c)&&sn(this.matrix,u,y,a,c)}else J(u[c])&&(s[c]=u[c])}for(var v in s)0!==s[v]&&(a[o]+=v===o?s[v]:s[v]/this.matrix[o][v]);return an(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,o=n.end;return this.isValid?e.fromDateTimes(r||this.s,o||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),o=0;o+this.e?this.e:l;a.push(e.fromDateTimes(s,c)),s=c,u+=1}return a},t.splitBy=function(t){var n=un.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,o=this.s,i=1,a=[];o+this.e?this.e:s,a.push(e.fromDateTimes(o,r)),o=r,i+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,o=null,i=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=h((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var l=r.value;1===(i+="s"===l.type?1:-1)?o=l.time:(o&&+o!=+l.time&&a.push(e.fromDateTimes(o,l.time)),o=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o=0){var d;r=l;var f,h=c(e,t);(o=e.plus(((d={})[l]=h,d)))>t?(e=e.plus(((f={})[l]=h-1,f)),h-=1):e=o,i[l]=h}}return[e,i,o,r]}(e,t,n),i=o[0],a=o[1],s=o[2],u=o[3],l=t-i,c=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===c.length){var d;if(s0?(f=un.fromMillis(l,r)).shiftTo.apply(f,c).plus(h):h}var yn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},pn=yn.hanidec.replace(/[\[|\]]/g,"").split("");function gn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+yn[n||"latn"]+t)}function wn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var kn="[ "+String.fromCharCode(160)+"]",bn=new RegExp(kn,"g");function Tn(e){return e.replace(/\./g,"\\.?").replace(bn,kn)}function Nn(e){return e.replace(/\./g,"").replace(bn," ").toLowerCase()}function Sn(e,t){return null===e?null:{regex:RegExp(e.map(Tn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return Nn(r)===Nn(e)}))+t}}}function xn(e,t){return{regex:e,deser:function(e){return fe(e[1],e[2])},groups:t}}function Cn(e){return{regex:e,deser:function(e){return e[0]}}}var Mn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Vn=null;function On(e,t){if(e.literal)return e;var n=Ie.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ie.create(t,n).formatDateTimeParts((Vn||(Vn=fr.fromMillis(1555555555555)),Vn)).map((function(e){return function(e,t,n){var r=e.type,o=e.value;if("literal"===r)return{literal:!0,val:o};var i=n[r],a=Mn[r];return"object"==typeof a&&(a=a[i]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function En(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return On(e,t)})))}(Ie.parseFormat(n),e),o=r.map((function(t){return n=t,o=gn(r=e),i=gn(r,"{2}"),a=gn(r,"{3}"),s=gn(r,"{4}"),u=gn(r,"{6}"),l=gn(r,"{1,2}"),c=gn(r,"{1,3}"),d=gn(r,"{1,6}"),f=gn(r,"{1,9}"),h=gn(r,"{2,4}"),m=gn(r,"{4,6}"),y=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},v=function(e){if(n.literal)return y(e);switch(e.val){case"G":return Sn(r.eras("short",!1),0);case"GG":return Sn(r.eras("long",!1),0);case"y":return wn(d);case"yy":return wn(h,ce);case"yyyy":return wn(s);case"yyyyy":return wn(m);case"yyyyyy":return wn(u);case"M":return wn(l);case"MM":return wn(i);case"MMM":return Sn(r.months("short",!0,!1),1);case"MMMM":return Sn(r.months("long",!0,!1),1);case"L":return wn(l);case"LL":return wn(i);case"LLL":return Sn(r.months("short",!1,!1),1);case"LLLL":return Sn(r.months("long",!1,!1),1);case"d":return wn(l);case"dd":return wn(i);case"o":return wn(c);case"ooo":return wn(a);case"HH":return wn(i);case"H":return wn(l);case"hh":return wn(i);case"h":return wn(l);case"mm":return wn(i);case"m":case"q":return wn(l);case"qq":return wn(i);case"s":return wn(l);case"ss":return wn(i);case"S":return wn(c);case"SSS":return wn(a);case"u":return Cn(f);case"uu":return Cn(l);case"uuu":return wn(o);case"a":return Sn(r.meridiems(),0);case"kkkk":return wn(s);case"kk":return wn(h,ce);case"W":return wn(l);case"WW":return wn(i);case"E":case"c":return wn(o);case"EEE":return Sn(r.weekdays("short",!1,!1),1);case"EEEE":return Sn(r.weekdays("long",!1,!1),1);case"ccc":return Sn(r.weekdays("short",!0,!1),1);case"cccc":return Sn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xn(new RegExp("([+-]"+l.source+")(?::("+i.source+"))?"),2);case"ZZZ":return xn(new RegExp("([+-]"+l.source+")("+i.source+")?"),2);case"z":return Cn(/[a-z_+-/]{1,256}?/i);default:return y(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},v.token=n,v;var n,r,o,i,a,s,u,l,c,d,f,h,m,y,v})),i=o.find((function(e){return e.invalidReason}));if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};var a=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(o),s=a[0],u=a[1],l=RegExp(s,"i"),c=function(e,t,n){var r=e.match(t);if(r){var o={},i=1;for(var a in n)if(K(n,a)){var s=n[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+u))),i+=u}return[r,o]}return[r,{}]}(t,l,u),d=c[0],f=c[1],h=f?function(e){var t,n=null;return Y(e.z)||(n=Ue.create(e.z)),Y(e.Z)||(n||(n=new He(e.Z)),t=e.Z),Y(e.q)||(e.M=3*(e.q-1)+1),Y(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Y(e.u)||(e.S=re(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),n,t]}(f):[null,null,void 0],m=h[0],y=h[1],v=h[2];if(K(f,"a")&&K(f,"H"))throw new g("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:d,matches:f,result:m,zone:y,specificOffset:v}}var Dn=[0,31,59,90,120,151,181,212,243,273,304,334],_n=[0,31,60,91,121,152,182,213,244,274,305,335];function In(e,t){return new Fe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Fn(e,t,n){var r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);var o=r.getUTCDay();return 0===o?7:o}function Ln(e,t,n){return n+(ie(e)?_n:Dn)[t-1]}function Zn(e,t){var n=ie(e)?_n:Dn,r=n.findIndex((function(e){return ele(n)?(t=n+1,u=1):t=n,o({weekYear:t,weekNumber:u,weekday:s},ve(e))}function jn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,a=Fn(n,1,4),s=ae(n),u=7*r+i-a-3;u<1?u+=ae(t=n-1):u>s?(t=n+1,u-=ae(n)):t=n;var l=Zn(t,u);return o({year:t,month:l.month,day:l.day},ve(e))}function zn(e){var t=e.year;return o({year:t,ordinal:Ln(t,e.month,e.day)},ve(e))}function qn(e){var t=e.year,n=Zn(t,e.ordinal);return o({year:t,month:n.month,day:n.day},ve(e))}function Un(e){var t=G(e.year),n=X(e.month,1,12),r=X(e.day,1,se(e.year,e.month));return t?n?!r&&In("day",e.day):In("month",e.month):In("year",e.year)}function Bn(e){var t=e.hour,n=e.minute,r=e.second,o=e.millisecond,i=X(t,0,23)||24===t&&0===n&&0===r&&0===o,a=X(n,0,59),s=X(r,0,59),u=X(o,0,999);return i?a?s?!u&&In("millisecond",o):In("second",r):In("minute",n):In("hour",t)}var Hn="Invalid DateTime",Rn=864e13;function Pn(e){return new Fe("unsupported zone",'the zone "'+e.name+'" is not supported')}function Wn(e){return null===e.weekData&&(e.weekData=An(e.c)),e.weekData}function Yn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new fr(o({},n,t,{old:n}))}function Jn(e,t,n){var r=e-60*t*1e3,o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;var i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Gn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function $n(e,t,n){return Jn(ue(e),t,n)}function Qn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a=o({},e.c,{year:r,month:i,day:Math.min(e.c.day,se(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=un.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Jn(ue(a),n,e.zone),l=u[0],c=u[1];return 0!==s&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function Kn(e,t,n,r,i,a){var s=n.setZone,u=n.zone;if(e&&0!==Object.keys(e).length){var l=t||u,c=fr.fromObject(e,o({},n,{zone:l,specificOffset:a}));return s?c:c.setZone(u)}return fr.invalid(new Fe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Xn(e,t,n){return void 0===n&&(n=!0),e.isValid?Ie.create(dt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function er(e,t){var n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=ee(e.c.year,n?6:4),t?(r+="-",r+=ee(e.c.month),r+="-",r+=ee(e.c.day)):(r+=ee(e.c.month),r+=ee(e.c.day)),r}function tr(e,t,n,r,o,i){var a=ee(e.c.hour);return t?(a+=":",a+=ee(e.c.minute),0===e.c.second&&n||(a+=":")):a+=ee(e.c.minute),0===e.c.second&&n||(a+=ee(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=ee(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?(a+="-",a+=ee(Math.trunc(-e.o/60)),a+=":",a+=ee(Math.trunc(-e.o%60))):(a+="+",a+=ee(Math.trunc(e.o/60)),a+=":",a+=ee(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}var nr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},or={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ir=["year","month","day","hour","minute","second","millisecond"],ar=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sr=["year","ordinal","hour","minute","second","millisecond"];function ur(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new w(e);return t}function lr(e,t){var n,r,o=Pe(t.zone,Ke.defaultZone),i=dt.fromObject(t),a=Ke.now();if(Y(e.year))n=a;else{for(var s,u=h(ir);!(s=u()).done;){var l=s.value;Y(e[l])&&(e[l]=nr[l])}var c=Un(e)||Bn(e);if(c)return fr.invalid(c);var d=$n(e,o.offset(a),o);n=d[0],r=d[1]}return new fr({ts:n,zone:o,loc:i,o:r})}function cr(e,t,n){var r=!!Y(n.round)||n.round,o=function(e,o){return e=oe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,o)},i=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return o(i(n.unit),n.unit);for(var a,s=h(n.units);!(a=s()).done;){var u=a.value,l=i(u);if(Math.abs(l)>=1)return o(l,u)}return o(e>t?-0:0,n.units[n.units.length-1])}function dr(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var fr=function(){function e(e){var t=e.zone||Ke.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Fe("invalid input"):null)||(t.isValid?null:Pn(t));this.ts=Y(e.ts)?Ke.now():e.ts;var r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var i=[e.old.c,e.old.o];r=i[0],o=i[1]}else{var a=t.offset(this.ts);r=Gn(this.ts,a),r=(n=Number.isNaN(r.year)?new Fe("invalid input"):null)?null:r,o=n?null:a}this._zone=t,this.loc=e.loc||dt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=dr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],l=n[6];return lr({year:r,month:o,day:i,hour:a,minute:s,second:u,millisecond:l},t)},e.utc=function(){var e=dr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],l=n[6];return t.zone=He.utcInstance,lr({year:r,month:o,day:i,hour:a,minute:s,second:u,millisecond:l},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,o=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(o))return e.invalid("invalid input");var i=Pe(n.zone,Ke.defaultZone);return i.isValid?new e({ts:o,zone:i,loc:dt.fromObject(n)}):e.invalid(Pn(i))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),J(t))return t<-Rn||t>Rn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Pe(n.zone,Ke.defaultZone),loc:dt.fromObject(n)});throw new k("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),J(t))return new e({ts:1e3*t,zone:Pe(n.zone,Ke.defaultZone),loc:dt.fromObject(n)});throw new k("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=Pe(n.zone,Ke.defaultZone);if(!r.isValid)return e.invalid(Pn(r));var o=Ke.now(),i=Y(n.specificOffset)?r.offset(o):n.specificOffset,a=me(t,ur),s=!Y(a.ordinal),u=!Y(a.year),l=!Y(a.month)||!Y(a.day),c=u||l,d=a.weekYear||a.weekNumber,f=dt.fromObject(n);if((c||s)&&d)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new g("Can't mix ordinal dates with month/day");var m,y,v=d||a.weekday&&!c,p=Gn(o,i);v?(m=ar,y=rr,p=An(p)):s?(m=sr,y=or,p=zn(p)):(m=ir,y=nr);for(var w,k=!1,b=h(m);!(w=b()).done;){var T=w.value;Y(a[T])?a[T]=k?y[T]:p[T]:k=!0}var N=v?function(e){var t=G(e.weekYear),n=X(e.weekNumber,1,le(e.weekYear)),r=X(e.weekday,1,7);return t?n?!r&&In("weekday",e.weekday):In("week",e.week):In("weekYear",e.weekYear)}(a):s?function(e){var t=G(e.year),n=X(e.ordinal,1,ae(e.year));return t?!n&&In("ordinal",e.ordinal):In("year",e.year)}(a):Un(a),S=N||Bn(a);if(S)return e.invalid(S);var x=$n(v?jn(a):s?qn(a):a,i,r),C=new e({ts:x[0],zone:r,o:x[1],loc:f});return a.weekday&&c&&t.weekday!==C.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+C.toISO()):C},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[qt,Rt],[Ut,Pt],[Bt,Wt],[Ht,Yt])}(e);return Kn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return mt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[It,Ft])}(e);return Kn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Lt,jt],[Zt,jt],[At,zt])}(e);return Kn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),Y(t)||Y(n))throw new k("fromFormat requires an input string and a format");var o=r,i=o.locale,a=void 0===i?null:i,s=o.numberingSystem,u=void 0===s?null:s,l=function(e,t,n){var r=En(e,t,n);return[r.result,r.zone,r.specificOffset,r.invalidReason]}(dt.fromOpts({locale:a,numberingSystem:u,defaultToEN:!0}),t,n),c=l[0],d=l[1],f=l[2],h=l[3];return h?e.invalid(h):Kn(c,d,r,"format "+n,t,f)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Gt,Rt],[$t,Qt])}(e);return Kn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new k("need to specify a reason the DateTime is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(Ke.throwOnInvalid)throw new y(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(He.instance(e),t)},t.toLocal=function(){return this.setZone(Ke.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,o=r.keepLocalTime,i=void 0!==o&&o,a=r.keepCalendarTime,s=void 0!==a&&a;if((t=Pe(t,Ke.defaultZone)).equals(this.zone))return this;if(t.isValid){var u=this.ts;if(i||s){var l=t.offset(this.ts);u=$n(this.toObject(),l,t)[0]}return Yn(this,{ts:u,zone:t})}return e.invalid(Pn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,o=t.outputCalendar;return Yn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:o})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=me(e,ur),r=!Y(n.weekYear)||!Y(n.weekNumber)||!Y(n.weekday),i=!Y(n.ordinal),a=!Y(n.year),s=!Y(n.month)||!Y(n.day),u=a||s,l=n.weekYear||n.weekNumber;if((u||i)&&l)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new g("Can't mix ordinal dates with month/day");r?t=jn(o({},An(this.c),n)):Y(n.ordinal)?(t=o({},this.toObject(),n),Y(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=qn(o({},zn(this.c),n));var c=$n(t,this.o,this.zone);return Yn(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?Yn(this,Qn(this,un.fromDurationLike(e))):this},t.minus=function(e){return this.isValid?Yn(this,Qn(this,un.fromDurationLike(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=un.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ie.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Hn},t.toLocaleString=function(e,t){return void 0===e&&(e=x),void 0===t&&(t={}),this.isValid?Ie.create(this.loc.clone(t),e).formatDateTime(this):Hn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){var t=void 0===e?{}:e,n=t.format,r=void 0===n?"extended":n,o=t.suppressSeconds,i=void 0!==o&&o,a=t.suppressMilliseconds,s=void 0!==a&&a,u=t.includeOffset,l=void 0===u||u,c=t.extendedZone,d=void 0!==c&&c;if(!this.isValid)return null;var f="extended"===r,h=er(this,f);return h+="T",h+=tr(this,f,i,s,l,d)},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n=void 0===t?"extended":t;return this.isValid?er(this,"extended"===n):null},t.toISOWeekDate=function(){return Xn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,o=t.suppressSeconds,i=void 0!==o&&o,a=t.includeOffset,s=void 0===a||a,u=t.includePrefix,l=void 0!==u&&u,c=t.extendedZone,d=void 0!==c&&c,f=t.format,h=void 0===f?"extended":f;return this.isValid?(l?"T":"")+tr(this,"extended"===h,i,r,s,d):null},t.toRFC2822=function(){return Xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return this.isValid?er(this,!0):null},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,o=t.includeZone,i=void 0!==o&&o,a=t.includeOffsetSpace,s="HH:mm:ss.SSS";return(i||r)&&((void 0===a||a)&&(s+=" "),i?s+="z":r&&(s+="ZZ")),Xn(this,s,!0)},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Hn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=o({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return un.invalid("created by diffing an invalid DateTime");var r,i=o({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=t,Array.isArray(r)?r:[r]).map(un.normalizeUnit),s=e.valueOf()>this.valueOf(),u=mn(s?this:e,s?e:this,a,i);return s?u.negate():u},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?dn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?thisthis.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ae(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return C}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return M}},{key:"DATE_FULL",get:function(){return V}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return E}},{key:"TIME_WITH_SECONDS",get:function(){return D}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return _}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return I}},{key:"TIME_24_SIMPLE",get:function(){return F}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return Z}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return A}},{key:"DATETIME_SHORT",get:function(){return j}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_MED",get:function(){return q}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return B}},{key:"DATETIME_FULL",get:function(){return H}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return R}},{key:"DATETIME_HUGE",get:function(){return P}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function hr(e){if(fr.isDateTime(e))return e;if(e&&e.valueOf&&J(e.valueOf()))return fr.fromJSDate(e);if(e&&"object"==typeof e)return fr.fromObject(e);throw new k("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=fr},744:(e,t)=>{t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{const e=Vue;var t={class:"relative"},r=(0,e.createElementVNode)("div",{class:"flex flex-col md:flex-row md:items-center py-3 border-b border-gray-200 dark:border-gray-700"},null,-1),o={key:0,class:"overflow-hidden overflow-x-auto relative"},i={class:"table w-full",cellspacing:"0",cellpadding:"0"},a={class:"bg-gray-50 dark:bg-gray-800"},s=(0,e.createElementVNode)("th",{class:"td-fit uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"},[(0,e.createElementVNode)("span",{class:"sr-only"},"spacer")],-1),u={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},l={key:0,class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},c={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},d={class:"uppercase text-xxs tracking-wide px-2 py-2"},f={class:"sr-only"};const h={props:["resourceName","resourceId","panel"],data:function(){return{tokens:[],showCreateTokenModal:!1,showCreatedTokenModal:!1,createdToken:null}},created:function(){this.fetchTokens()},methods:{createNewToken:function(e,t){var n=this;this.showCreateTokenModal=!1,Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId),{name:e,abilities:null===t?this.panel.fields[0].defaultAbilities:t}).then((function(e){n.createdToken=e.data,n.showCreatedTokenModal=!0}))},handleCreatedTokenConfirmation:function(){this.showCreatedTokenModal=!1,this.fetchTokens(),this.createdToken=null},fetchTokens:function(){var e=this;Nova.request().get("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId)).then((function(t){e.tokens=t.data.tokens}))},revokeToken:function(e){var t=this;Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId,"/revoke"),{token_id:e}).then((function(){t.fetchTokens()}))}}};var m=n(744);const y=(0,m.Z)(h,[["render",function(n,h,m,y,v,p){var g=(0,e.resolveComponent)("DefaultButton"),w=(0,e.resolveComponent)("Heading"),k=(0,e.resolveComponent)("TokenRow"),b=(0,e.resolveComponent)("NoTokens"),T=(0,e.resolveComponent)("Card"),N=(0,e.resolveComponent)("CreateTokenModal"),S=(0,e.resolveComponent)("CreatedTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createVNode)(w,{level:1,class:"mb-3 flex items-center justify-between"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(n.__("Personal Access Tokens")),1),(0,e.createVNode)(g,{onClick:h[0]||(h[0]=function(e){return v.showCreateTokenModal=!0})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.__("Create Token")),1)]})),_:1})]})),_:1}),(0,e.createVNode)(T,null,{default:(0,e.withCtx)((function(){return[r,v.tokens.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",o,[(0,e.createElementVNode)("table",i,[(0,e.createElementVNode)("thead",a,[(0,e.createElementVNode)("tr",null,[s,(0,e.createElementVNode)("th",u,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Name")),1)]),m.panel.fields[0].showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("th",l,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Abilities")),1)])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("th",c,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Last Used")),1)]),(0,e.createElementVNode)("th",d,[(0,e.createElementVNode)("span",f,(0,e.toDisplayString)(n.__("Controls")),1)])])]),(0,e.createElementVNode)("tbody",null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(v.tokens,(function(t){return(0,e.openBlock)(),(0,e.createBlock)(k,{key:t.id,token:t,"show-abilities":m.panel.fields[0].showAbilities,onRevokeToken:p.revokeToken},null,8,["token","show-abilities","onRevokeToken"])})),128))])])])):((0,e.openBlock)(),(0,e.createBlock)(b,{key:1,onShowCreateTokenModal:h[1]||(h[1]=function(e){return v.showCreateTokenModal=!0})}))]})),_:1}),(0,e.createVNode)(N,{options:m.panel.fields[0],show:v.showCreateTokenModal,onClose:h[2]||(h[2]=function(e){return v.showCreateTokenModal=!1}),onCreate:p.createNewToken},null,8,["options","show","onCreate"]),(0,e.createVNode)(S,{show:v.showCreatedTokenModal,"new-token":v.createdToken,onConfirmed:p.handleCreatedTokenConfirmation},null,8,["show","new-token","onConfirmed"])])}]]);var v={class:"flex flex-col"},p={class:"flex flex-col space-y-2"},g={for:"name",class:"inline-block leading-tight"},w={class:"text-red-500 text-sm"},k={key:0,class:"flex flex-col space-y-2 mt-3"},b={for:"abilities",class:"inline-block leading-tight"},T=["placeholder"],N={class:"ml-auto"};const S={props:{options:{required:!0,type:Object},show:{type:Boolean,default:!1}},emits:["create","close"],data:function(){return{tokenName:null,tokenAbilities:null}},methods:{handleCreate:function(){this.$emit("create",this.tokenName,this.tokenAbilities),this.resetForm()},handleCancelled:function(){this.resetForm(),this.$emit("close")},resetForm:function(){this.tokenName=null,this.tokenAbilities=null}}},x=(0,m.Z)(S,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("ModalContent"),l=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("LoadingButton"),d=(0,e.resolveComponent)("ModalFooter"),f=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(f,{show:r.show,onCloseViaEscape:a.handleCancelled},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("form",{class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden",autocomplete:"off",onSubmit:n[2]||(n[2]=(0,e.withModifiers)((function(){return a.handleCreate&&a.handleCreate.apply(a,arguments)}),["prevent","stop"]))},[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1}),(0,e.createVNode)(u,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",v,[(0,e.createElementVNode)("div",p,[(0,e.createElementVNode)("label",g,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Name"))+" ",1),(0,e.createElementVNode)("span",w,(0,e.toDisplayString)(t.__("*")),1)]),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"name","onUpdate:modelValue":n[0]||(n[0]=function(e){return i.tokenName=e}),list:"name-list",type:"text",placeholder:"Name",class:"w-full form-control form-input form-input-bordered",required:""},null,512),[[e.vModelText,i.tokenName]])]),r.options.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("div",k,[(0,e.createElementVNode)("label",b,(0,e.toDisplayString)(t.__("Abilities")),1),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"abilities","onUpdate:modelValue":n[1]||(n[1]=function(e){return i.tokenAbilities=e}),type:"text",placeholder:r.options.defaultAbilities,class:"w-full form-control form-input form-input-bordered"},null,8,T),[[e.vModelText,i.tokenAbilities]]),(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(t.__("Comma separated list of abilities to apply to token.")),1)])):(0,e.createCommentVNode)("",!0)])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",N,[(0,e.createVNode)(l,{type:"button",class:"mr-3",onClick:(0,e.withModifiers)(a.handleCancelled,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1},8,["onClick"]),(0,e.createVNode)(c,{ref:"confirmButton",processing:!1,disabled:!1,component:"DefaultButton",type:"submit"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create New Token")),1)]})),_:1},512)])]})),_:1})],32)]})),_:3},8,["show","onCloseViaEscape"])}]]);var C={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},M={class:"flex flex-col"},V={class:"flex flex-col space-y-2"},O={class:"text-lg bg-gray-100 rounded p-4"},E={class:"ml-auto"};const D={props:{newToken:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed"],methods:{handleConfirmed:function(){this.$emit("confirmed")},copyValueToClipboard:function(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else if(window.clipboardData)window.clipboardData.setData("Text",e);else{var t=document.createElement("input"),n=[document.documentElement.scrollTop,document.documentElement.scrollLeft],r=n[0],o=n[1];document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.documentElement.scrollTop=r,document.documentElement.scrollLeft=o,document.execCommand("copy"),t.remove()}}}},_=(0,m.Z)(D,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("Icon"),l=(0,e.resolveComponent)("HelpText"),c=(0,e.resolveComponent)("ModalContent"),d=(0,e.resolveComponent)("DefaultButton"),f=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal"),m=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",C,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Created Token")),1)]})),_:1}),(0,e.createVNode)(c,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",M,[(0,e.createElementVNode)("div",V,[(0,e.createElementVNode)("div",O,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{type:"button",class:"flex items-center justify-between w-full hover:bg-gray-50 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-400 hover:text-gray-500 active:text-gray-600 rounded-lg px-1 -mx-1",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return a.copyValueToClipboard(r.newToken)}),["prevent","stop"]))},[(0,e.createElementVNode)("span",{ref:"theFieldValue"},(0,e.toDisplayString)(r.newToken),513),(0,e.createVNode)(u,{class:"text-gray-500 dark:text-gray-400 ml-1",solid:!0,type:"clipboard",width:"14"})])),[[m,t.__("Copy to clipboard")]])]),(0,e.createVNode)(l,{class:"mt-2 help-text-error"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Make sure to copy your new personal access token now. You won't be able to see it again!")),1)]})),_:1})])])]})),_:1})]})),(0,e.createVNode)(f,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",E,[(0,e.createVNode)(d,{type:"button",onClick:(0,e.withModifiers)(a.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Confirm")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var I={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},F={class:"flex flex-col"},L={class:"flex flex-col space-y-2"},Z=(0,e.createTextVNode)(" Are you sure you want to revoke the following token? "),A={class:"p-4 rounded mt-3 text-red-500 text-center text-lg bg-gray-50 bor"},j={class:"ml-auto"};const z={props:{tokenName:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed","cancel"],methods:{handleConfirmed:function(){this.$emit("confirmed")}}},q=(0,m.Z)(z,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("ModalContent"),l=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("DangerButton"),d=(0,e.resolveComponent)("ModalFooter"),f=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(f,{show:r.show,onCloseViaEscape:n[1]||(n[1]=function(e){return t.$emit("cancel")})},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",I,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1}),(0,e.createVNode)(u,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",F,[(0,e.createElementVNode)("div",L,[Z,(0,e.createElementVNode)("pre",A,(0,e.toDisplayString)(r.tokenName),1)])])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",j,[(0,e.createVNode)(l,{type:"button",class:"mr-4",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return t.$emit("cancel")}),["prevent"]))},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1}),(0,e.createVNode)(c,{type:"button",onClick:(0,e.withModifiers)(a.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var U={class:"flex flex-col justify-center items-center px-6 py-8"},B=(0,e.createElementVNode)("svg",{class:"w-10 h-10",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,e.createElementVNode)("path",{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1),H={class:"text-base text-80 font-normal mb-6 mt-3"};const R={emits:["showCreateTokenModal"]},P=(0,m.Z)(R,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("DefaultButton");return(0,e.openBlock)(),(0,e.createElementBlock)("div",U,[B,(0,e.createElementVNode)("h3",H,(0,e.toDisplayString)(t.__("No Tokens For User.")),1),(0,e.createVNode)(s,{onClick:n[0]||(n[0]=function(e){return t.$emit("showCreateTokenModal")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1})])}]]);var W=(0,e.createElementVNode)("td",{class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit pl-5 pr-5 dark:bg-gray-800"},null,-1),Y={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},J={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},G={class:"whitespace-no-wrap"},$={key:0,class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},Q={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},K={class:"whitespace-no-wrap"},X={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},ee=["title"],te={class:"whitespace-no-wrap"},ne={class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit text-right align-middle dark:bg-gray-800"},re={class:"flex items-center justify-end space-x-0 text-gray-400"},oe=[(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",width:"24",height:"24",class:"inline-block",role:"presentation"},[(0,e.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)];var ie=n(490);const ae={props:{token:{required:!0,type:Object},showAbilities:{required:!0,type:Boolean}},emits:["revoke-token"],data:function(){return{showDeleteModal:!1}},computed:{lastUsed:function(){return this.token.last_used_at?ie.ou.fromISO(this.token.last_used_at).toRelativeCalendar():"—"},lastUsedTooltip:function(){return this.token.last_used_at?ie.ou.fromISO(this.token.last_used_at).toFormat("f ZZZZ"):"—"}},methods:{revokeToken:function(){this.showDeleteModal=!1,this.$emit("revoke-token",this.token.id)}}},se=(0,m.Z)(ae,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("DeleteTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("tr",null,[W,(0,e.createElementVNode)("td",Y,[(0,e.createElementVNode)("div",J,[(0,e.createElementVNode)("span",G,(0,e.toDisplayString)(r.token.name),1)])]),r.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("td",$,[(0,e.createElementVNode)("div",Q,[(0,e.createElementVNode)("span",K,(0,e.toDisplayString)(r.token.abilities),1)])])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("td",X,[(0,e.createElementVNode)("div",{class:"text-left text-left","via-resource":"users","via-resource-id":"1",title:a.lastUsedTooltip},[(0,e.createElementVNode)("span",te,(0,e.toDisplayString)(a.lastUsed),1)],8,ee)]),(0,e.createElementVNode)("td",ne,[(0,e.createElementVNode)("div",re,[(0,e.createElementVNode)("button",{"aria-label":"Delete",class:"toolbar-button hover:text-primary-500 px-2 v-popper--has-tooltip",onClick:n[0]||(n[0]=function(e){return i.showDeleteModal=!0})},oe)])]),(0,e.createVNode)(s,{show:i.showDeleteModal,"token-name":r.token.name,onCancel:n[1]||(n[1]=function(e){return i.showDeleteModal=!1}),onConfirmed:a.revokeToken},null,8,["show","token-name","onConfirmed"])])}]]);Nova.booting((function(e,t){e.component("SanctumTokens",y),e.component("CreateTokenModal",x),e.component("CreatedTokenModal",_),e.component("DeleteTokenModal",q),e.component("NoTokens",P),e.component("TokenRow",se)}))})()})(); \ No newline at end of file +(()=>{"use strict";var e={590:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".warning-color[data-v-167d010e]{color:#f97316}.expired-color[data-v-167d010e]{color:#ef4444}",""]);const i=o},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i{function n(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(c(Error)),v=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(m),y=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(m),p=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(m),g=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(m),w=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(m),k=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(m),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(m),T="numeric",N="short",x="long",S={year:T,month:T,day:T},C={year:T,month:N,day:T},M={year:T,month:N,day:T,weekday:N},V={year:T,month:x,day:T},O={year:T,month:x,day:T,weekday:x},E={hour:T,minute:T},D={hour:T,minute:T,second:T},_={hour:T,minute:T,second:T,timeZoneName:N},I={hour:T,minute:T,second:T,timeZoneName:x},F={hour:T,minute:T,hourCycle:"h23"},L={hour:T,minute:T,second:T,hourCycle:"h23"},Z={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:N},A={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:x},j={year:T,month:T,day:T,hour:T,minute:T},z={year:T,month:T,day:T,hour:T,minute:T,second:T},q={year:T,month:N,day:T,hour:T,minute:T},U={year:T,month:N,day:T,hour:T,minute:T,second:T},B={year:T,month:N,day:T,weekday:N,hour:T,minute:T},H={year:T,month:x,day:T,hour:T,minute:T,timeZoneName:N},R={year:T,month:x,day:T,hour:T,minute:T,second:T,timeZoneName:N},P={year:T,month:x,day:T,weekday:x,hour:T,minute:T,timeZoneName:x},W={year:T,month:x,day:T,weekday:x,hour:T,minute:T,second:T,timeZoneName:x};function J(e){return void 0===e}function Y(e){return"number"==typeof e}function G(e){return"number"==typeof e&&e%1==0}function $(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Q(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var o=[t(r),r];return e&&n(e[0],o[0])===e[0]?e:o}),null)[1]}function K(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function X(e,t,n){return G(e)&&e>=t&&e<=n}function ee(e,t){return void 0===t&&(t=2),e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function te(e){return J(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){return J(e)||null===e||""===e?void 0:parseFloat(e)}function re(e){if(!J(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function oe(e,t,n){void 0===n&&(n=!1);var r=Math.pow(10,t);return(n?Math.trunc:Math.round)(e*r)/r}function ie(e){return e%4==0&&(e%100!=0||e%400==0)}function ae(e){return ie(e)?366:365}function se(e,t){var n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?ie(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ue(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ce(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var s=o({timeZoneName:t},a),u=new Intl.DateTimeFormat(n,s).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return u?u.value:null}function fe(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function he(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new k("Invalid unit value "+e);return t}function me(e,t){var n={};for(var r in e)if(K(e,r)){var o=e[r];if(null==o)continue;n[t(r)]=he(o)}return n}function ve(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return""+o+ee(n,2)+":"+ee(r,2);case"narrow":return""+o+n+(r>0?":"+r:"");case"techie":return""+o+ee(n,2)+ee(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ye(e){return function(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}(e,["hour","minute","second","millisecond"])}var pe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ke=["J","F","M","A","M","J","J","A","S","O","N","D"];function be(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(we);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Te=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ne=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat(Ne);case"long":return[].concat(Te);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ce=["AM","PM"],Me=["Before Christ","Anno Domini"],Ve=["BC","AD"],Oe=["B","A"];function Ee(e){switch(e){case"narrow":return[].concat(Oe);case"short":return[].concat(Ve);case"long":return[].concat(Me);default:return null}}function De(e,t){for(var n,r="",o=h(e);!(n=o()).done;){var i=n.value;i.literal?r+=i.val:r+=t(i.val)}return r}var _e={D:S,DD:C,DDD:V,DDDD:O,t:E,tt:D,ttt:_,tttt:I,T:F,TT:L,TTT:Z,TTTT:A,f:j,ff:q,fff:H,ffff:P,F:z,FF:U,FFF:R,FFFF:W},Ie=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,o=[],i=0;i0&&o.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&o.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&o.push({literal:r,val:n}),o},e.macroTokenToFormatOpts=function(e){return _e[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,o({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,o({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var n=o({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,o="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},u=function(){return o?function(e){return Ce[e.hour<12?0:1]}(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod")},l=function(e,n){return o?function(e,t){return be(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return o?function(e,t){return Se(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},d=function(e){return o?function(e,t){return Ee(t)[e.year<0?0:1]}(t,e):a({era:e},"era")};return De(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"uu":return r.num(Math.floor(t.millisecond/10),2);case"uuu":return r.num(Math.floor(t.millisecond/100));case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return u();case"d":return i?a({day:"numeric"},"day"):r.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):r.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):r.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var o=e.macroTokenToFormatOpts(n);return o?r.formatWithSystemDefault(t,o):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,o=this,i=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),u=t.shiftTo.apply(t,s.map(i).filter((function(e){return e})));return De(a,(r=u,function(e){var t=i(e);return t?o.num(r.get(t),e.length):e}))},e}(),Fe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Le=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},r(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ze=null,Ae=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale)},n.formatOffset=function(e,t){return ve(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},r(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ze&&(Ze=new t),Ze}}]),t}(Le),je={};var ze={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};var qe={},Ue=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}i(t,e),t.create=function(e){return qe[e]||(qe[e]=new t(e)),qe[e]},t.resetCache=function(){qe={},je={}},t.isValidSpecifier=function(e){return this.isValidZone(e)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var n=t.prototype;return n.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return ve(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,je[n]||(je[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),je[n]),o=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],o=0;o=0?h:1e3+h))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Le),Be=null,He=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(fe(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return ve(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ve(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+ve(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Be&&(Be=new t(0)),Be}}]),t}(Le),Re=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}i(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Le);function Pe(e,t){if(J(e)||null===e)return t;if(e instanceof Le)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n||"system"===n?t:"utc"===n||"gmt"===n?He.utcInstance:He.parseSpecifier(n)||Ue.create(e)}return Y(e)?He.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Re(e)}var We,Je=function(){return Date.now()},Ye="system",Ge=null,$e=null,Qe=null,Ke=function(){function e(){}return e.resetCaches=function(){dt.resetCache(),Ue.resetCache()},r(e,null,[{key:"now",get:function(){return Je},set:function(e){Je=e}},{key:"defaultZone",get:function(){return Pe(Ye,Ae.instance)},set:function(e){Ye=e}},{key:"defaultLocale",get:function(){return Ge},set:function(e){Ge=e}},{key:"defaultNumberingSystem",get:function(){return $e},set:function(e){$e=e}},{key:"defaultOutputCalendar",get:function(){return Qe},set:function(e){Qe=e}},{key:"throwOnInvalid",get:function(){return We},set:function(e){We=e}}]),e}(),Xe=["base"],et=["padTo","floor"],tt={};var nt={};function rt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.DateTimeFormat(e,t),nt[n]=r),r}var ot={};var it={};var at=null;function st(e,t,n,r,o){var i=e.listingMode(n);return"error"===i?null:"en"===i?r(t):o(t)}var ut=function(){function e(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1,n.padTo,n.floor;var r=d(n,et);if(!t||Object.keys(r).length>0){var i=o({useGrouping:!1},n);n.padTo>0&&(i.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=ot[n];return r||(r=new Intl.NumberFormat(e,t),ot[n]=r),r}(e,i)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):oe(e,3),this.padTo)},e}(),lt=function(){function e(e,t,n){var r;if(this.opts=n,e.zone.isUniversal){var i=e.offset/60*-1,a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i;0!==e.offset&&Ue.create(a).valid?(r=a,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:fr.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);var s=o({},this.opts);r&&(s.timeZone=r),this.dtf=rt(t,s)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),ct=function(){function e(e,t,n){this.opts=o({style:"long"},n),!t&&$()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=d(n,Xe),o=JSON.stringify([e,r]),i=it[o];return i||(i=new Intl.RelativeTimeFormat(e,t),it[o]=i),i}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&i){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+o[e][0];case-1:return a?"yesterday":"last "+o[e][0];case 0:return a?"today":"this "+o[e][0]}}var s=Object.is(t,-0)||t<0,u=Math.abs(t),l=1===u,c=o[e],d=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return s?u+" "+d+" ago":"in "+u+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),dt=function(){function e(e,t,n,r){var o=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=rt(e).resolvedOptions()}catch(e){n=rt(r).resolvedOptions()}var o=n;return[r,o.numberingSystem,o.calendar]}(e),i=o[0],a=o[1],s=o[2];this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,o){void 0===o&&(o=!1);var i=t||Ke.defaultLocale;return new e(i||(o?"en-US":at||(at=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Ke.defaultNumberingSystem,r||Ke.defaultOutputCalendar,i)},e.resetCache=function(){at=null,nt={},ot={},it={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,o=n.numberingSystem,i=n.outputCalendar;return e.create(r,o,i)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(o({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(o({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,be,(function(){var n=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return r.monthsCache[o][e]||(r.monthsCache[o][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=fr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[o][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),st(this,e,n,Se,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return r.weekdaysCache[o][e]||(r.weekdaysCache[o][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=fr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[o][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return Ce}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[fr.utc(2016,11,13,9),fr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),st(this,e,t,Ee,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[fr.utc(-40,1,1),fr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new lt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ct(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){return void 0===e&&(e={}),function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.ListFormat(e,t),tt[n]=r),r}(this.intl,e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ft(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?Te.indexOf(e)+1:Ne.indexOf(e)+1),s}var It=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ft(e){var t,n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],u=e[7],l=e[8],c=e[9],d=e[10],f=e[11],h=_t(n,i,o,r,a,s,u);return t=l?Dt[l]:c?0:fe(d,f),[h,new He(t)]}var Lt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,At=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function jt(e){var t=e[1],n=e[2],r=e[3];return[_t(t,e[4],r,n,e[5],e[6],e[7]),He.utcInstance]}function zt(e){var t=e[1],n=e[2],r=e[3],o=e[4],i=e[5],a=e[6];return[_t(t,e[7],n,r,o,i,a),He.utcInstance]}var qt=ft(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Ut=ft(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Bt=ft(/(\d{4})-?(\d{3})/,wt),Ht=ft(gt),Rt=ht((function(e,t){return[{year:xt(e,t),month:xt(e,t+1,1),day:xt(e,t+2,1)},null,t+3]}),St,Ct,Mt),Pt=ht(kt,St,Ct,Mt),Wt=ht(bt,St,Ct,Mt),Jt=ht(St,Ct,Mt);var Yt=ht(St);var Gt=ft(/(\d{4})-(\d\d)-(\d\d)/,Nt),$t=ft(Tt),Qt=ht(St,Ct,Mt);var Kt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=o({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Kt),en=365.2425,tn=30.436875,nn=o({years:{quarters:4,months:12,weeks:52.1775,days:en,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:tn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Kt),rn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],on=rn.slice(0).reverse();function an(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:o({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new un(r)}function sn(e,t,n,r,o){var i=e[o][n],a=t[n]/i,s=!(Math.sign(a)===Math.sign(r[o]))&&0!==r[o]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[o]+=s,t[n]-=s*i}var un=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?nn:Xt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new k("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:me(t,e.normalizeUnit),loc:dt.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromDurationLike=function(t){if(Y(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new k("Unknown duration argument "+t+" of type "+typeof t)},e.fromISO=function(t,n){var r=function(e){return mt(e,[Ot,Et])}(t),o=r[0];return o?e.fromObject(o,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return mt(e,[Vt,Yt])}(t),o=r[0];return o?e.fromObject(o,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new k("need to specify a reason the Duration is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(Ke.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new w(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=o({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ie.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toHuman=function(e){var t=this;void 0===e&&(e={});var n=rn.map((function(n){var r=t.values[n];return J(r)?null:t.loc.numberFormatter(o({style:"unit",unitDisplay:"long"},e,{unit:n.slice(0,-1)})).format(r)})).filter((function(e){return e}));return this.loc.listFormatter(o({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)},t.toObject=function(){return this.isValid?o({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=oe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=o({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(t){if(!this.isValid)return this;for(var n,r=e.fromDurationLike(t),o={},i=h(rn);!(n=i()).done;){var a=n.value;(K(r.values,a)||K(this.values,a))&&(o[a]=r.get(a)+this.get(a))}return an(this,{values:o},!0)},t.minus=function(t){if(!this.isValid)return this;var n=e.fromDurationLike(t);return this.plus(n.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){o=c;var d=0;for(var f in s)d+=this.matrix[f][c]*s[f],s[f]=0;Y(u[c])&&(d+=u[c]);var m=Math.trunc(d);for(var v in a[c]=m,s[c]=(1e3*d-1e3*m)/1e3,u)rn.indexOf(v)>rn.indexOf(c)&&sn(this.matrix,u,v,a,c)}else Y(u[c])&&(s[c]=u[c])}for(var y in s)0!==s[y]&&(a[o]+=y===o?s[y]:s[y]/this.matrix[o][y]);return an(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,o=n.end;return this.isValid?e.fromDateTimes(r||this.s,o||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),o=0;o+this.e?this.e:l;a.push(e.fromDateTimes(s,c)),s=c,u+=1}return a},t.splitBy=function(t){var n=un.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,o=this.s,i=1,a=[];o+this.e?this.e:s,a.push(e.fromDateTimes(o,r)),o=r,i+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,o=null,i=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),u=h((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=u()).done;){var l=r.value;1===(i+="s"===l.type?1:-1)?o=l.time:(o&&+o!=+l.time&&a.push(e.fromDateTimes(o,l.time)),o=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o=0){var d;r=l;var f,h=c(e,t);(o=e.plus(((d={})[l]=h,d)))>t?(e=e.plus(((f={})[l]=h-1,f)),h-=1):e=o,i[l]=h}}return[e,i,o,r]}(e,t,n),i=o[0],a=o[1],s=o[2],u=o[3],l=t-i,c=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===c.length){var d;if(s0?(f=un.fromMillis(l,r)).shiftTo.apply(f,c).plus(h):h}var vn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},pn=vn.hanidec.replace(/[\[|\]]/g,"").split("");function gn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+vn[n||"latn"]+t)}function wn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var kn="[ "+String.fromCharCode(160)+"]",bn=new RegExp(kn,"g");function Tn(e){return e.replace(/\./g,"\\.?").replace(bn,kn)}function Nn(e){return e.replace(/\./g,"").replace(bn," ").toLowerCase()}function xn(e,t){return null===e?null:{regex:RegExp(e.map(Tn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return Nn(r)===Nn(e)}))+t}}}function Sn(e,t){return{regex:e,deser:function(e){return fe(e[1],e[2])},groups:t}}function Cn(e){return{regex:e,deser:function(e){return e[0]}}}var Mn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Vn=null;function On(e,t){if(e.literal)return e;var n=Ie.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ie.create(t,n).formatDateTimeParts((Vn||(Vn=fr.fromMillis(1555555555555)),Vn)).map((function(e){return function(e,t,n){var r=e.type,o=e.value;if("literal"===r)return{literal:!0,val:o};var i=n[r],a=Mn[r];return"object"==typeof a&&(a=a[i]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function En(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return On(e,t)})))}(Ie.parseFormat(n),e),o=r.map((function(t){return n=t,o=gn(r=e),i=gn(r,"{2}"),a=gn(r,"{3}"),s=gn(r,"{4}"),u=gn(r,"{6}"),l=gn(r,"{1,2}"),c=gn(r,"{1,3}"),d=gn(r,"{1,6}"),f=gn(r,"{1,9}"),h=gn(r,"{2,4}"),m=gn(r,"{4,6}"),v=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},y=function(e){if(n.literal)return v(e);switch(e.val){case"G":return xn(r.eras("short",!1),0);case"GG":return xn(r.eras("long",!1),0);case"y":return wn(d);case"yy":case"kk":return wn(h,ce);case"yyyy":case"kkkk":return wn(s);case"yyyyy":return wn(m);case"yyyyyy":return wn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return wn(l);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return wn(i);case"MMM":return xn(r.months("short",!0,!1),1);case"MMMM":return xn(r.months("long",!0,!1),1);case"LLL":return xn(r.months("short",!1,!1),1);case"LLLL":return xn(r.months("long",!1,!1),1);case"o":case"S":return wn(c);case"ooo":case"SSS":return wn(a);case"u":return Cn(f);case"uu":return Cn(l);case"uuu":case"E":case"c":return wn(o);case"a":return xn(r.meridiems(),0);case"EEE":return xn(r.weekdays("short",!1,!1),1);case"EEEE":return xn(r.weekdays("long",!1,!1),1);case"ccc":return xn(r.weekdays("short",!0,!1),1);case"cccc":return xn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Sn(new RegExp("([+-]"+l.source+")(?::("+i.source+"))?"),2);case"ZZZ":return Sn(new RegExp("([+-]"+l.source+")("+i.source+")?"),2);case"z":return Cn(/[a-z_+-/]{1,256}?/i);default:return v(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},y.token=n,y;var n,r,o,i,a,s,u,l,c,d,f,h,m,v,y})),i=o.find((function(e){return e.invalidReason}));if(i)return{input:t,tokens:r,invalidReason:i.invalidReason};var a=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(o),s=a[0],u=a[1],l=RegExp(s,"i"),c=function(e,t,n){var r=e.match(t);if(r){var o={},i=1;for(var a in n)if(K(n,a)){var s=n[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+u))),i+=u}return[r,o]}return[r,{}]}(t,l,u),d=c[0],f=c[1],h=f?function(e){var t,n=null;return J(e.z)||(n=Ue.create(e.z)),J(e.Z)||(n||(n=new He(e.Z)),t=e.Z),J(e.q)||(e.M=3*(e.q-1)+1),J(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),J(e.u)||(e.S=re(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),n,t]}(f):[null,null,void 0],m=h[0],v=h[1],y=h[2];if(K(f,"a")&&K(f,"H"))throw new g("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:d,matches:f,result:m,zone:v,specificOffset:y}}var Dn=[0,31,59,90,120,151,181,212,243,273,304,334],_n=[0,31,60,91,121,152,182,213,244,274,305,335];function In(e,t){return new Fe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Fn(e,t,n){var r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);var o=r.getUTCDay();return 0===o?7:o}function Ln(e,t,n){return n+(ie(e)?_n:Dn)[t-1]}function Zn(e,t){var n=ie(e)?_n:Dn,r=n.findIndex((function(e){return ele(n)?(t=n+1,u=1):t=n,o({weekYear:t,weekNumber:u,weekday:s},ye(e))}function jn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,a=Fn(n,1,4),s=ae(n),u=7*r+i-a-3;u<1?u+=ae(t=n-1):u>s?(t=n+1,u-=ae(n)):t=n;var l=Zn(t,u);return o({year:t,month:l.month,day:l.day},ye(e))}function zn(e){var t=e.year;return o({year:t,ordinal:Ln(t,e.month,e.day)},ye(e))}function qn(e){var t=e.year,n=Zn(t,e.ordinal);return o({year:t,month:n.month,day:n.day},ye(e))}function Un(e){var t=G(e.year),n=X(e.month,1,12),r=X(e.day,1,se(e.year,e.month));return t?n?!r&&In("day",e.day):In("month",e.month):In("year",e.year)}function Bn(e){var t=e.hour,n=e.minute,r=e.second,o=e.millisecond,i=X(t,0,23)||24===t&&0===n&&0===r&&0===o,a=X(n,0,59),s=X(r,0,59),u=X(o,0,999);return i?a?s?!u&&In("millisecond",o):In("second",r):In("minute",n):In("hour",t)}var Hn="Invalid DateTime",Rn=864e13;function Pn(e){return new Fe("unsupported zone",'the zone "'+e.name+'" is not supported')}function Wn(e){return null===e.weekData&&(e.weekData=An(e.c)),e.weekData}function Jn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new fr(o({},n,t,{old:n}))}function Yn(e,t,n){var r=e-60*t*1e3,o=n.offset(r);if(t===o)return[r,t];r-=60*(o-t)*1e3;var i=n.offset(r);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}function Gn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function $n(e,t,n){return Yn(ue(e),t,n)}function Qn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a=o({},e.c,{year:r,month:i,day:Math.min(e.c.day,se(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=un.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Yn(ue(a),n,e.zone),l=u[0],c=u[1];return 0!==s&&(l+=s,c=e.zone.offset(l)),{ts:l,o:c}}function Kn(e,t,n,r,i,a){var s=n.setZone,u=n.zone;if(e&&0!==Object.keys(e).length){var l=t||u,c=fr.fromObject(e,o({},n,{zone:l,specificOffset:a}));return s?c:c.setZone(u)}return fr.invalid(new Fe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Xn(e,t,n){return void 0===n&&(n=!0),e.isValid?Ie.create(dt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function er(e,t){var n=e.c.year>9999||e.c.year<0,r="";return n&&e.c.year>=0&&(r+="+"),r+=ee(e.c.year,n?6:4),t?(r+="-",r+=ee(e.c.month),r+="-",r+=ee(e.c.day)):(r+=ee(e.c.month),r+=ee(e.c.day)),r}function tr(e,t,n,r,o,i){var a=ee(e.c.hour);return t?(a+=":",a+=ee(e.c.minute),0===e.c.second&&n||(a+=":")):a+=ee(e.c.minute),0===e.c.second&&n||(a+=ee(e.c.second),0===e.c.millisecond&&r||(a+=".",a+=ee(e.c.millisecond,3))),o&&(e.isOffsetFixed&&0===e.offset&&!i?a+="Z":e.o<0?(a+="-",a+=ee(Math.trunc(-e.o/60)),a+=":",a+=ee(Math.trunc(-e.o%60))):(a+="+",a+=ee(Math.trunc(e.o/60)),a+=":",a+=ee(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}var nr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},or={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ir=["year","month","day","hour","minute","second","millisecond"],ar=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sr=["year","ordinal","hour","minute","second","millisecond"];function ur(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new w(e);return t}function lr(e,t){var n,r,o=Pe(t.zone,Ke.defaultZone),i=dt.fromObject(t),a=Ke.now();if(J(e.year))n=a;else{for(var s,u=h(ir);!(s=u()).done;){var l=s.value;J(e[l])&&(e[l]=nr[l])}var c=Un(e)||Bn(e);if(c)return fr.invalid(c);var d=$n(e,o.offset(a),o);n=d[0],r=d[1]}return new fr({ts:n,zone:o,loc:i,o:r})}function cr(e,t,n){var r=!!J(n.round)||n.round,o=function(e,o){return e=oe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,o)},i=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return o(i(n.unit),n.unit);for(var a,s=h(n.units);!(a=s()).done;){var u=a.value,l=i(u);if(Math.abs(l)>=1)return o(l,u)}return o(e>t?-0:0,n.units[n.units.length-1])}function dr(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var fr=function(){function e(e){var t=e.zone||Ke.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Fe("invalid input"):null)||(t.isValid?null:Pn(t));this.ts=J(e.ts)?Ke.now():e.ts;var r=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var i=[e.old.c,e.old.o];r=i[0],o=i[1]}else{var a=t.offset(this.ts);r=Gn(this.ts,a),r=(n=Number.isNaN(r.year)?new Fe("invalid input"):null)?null:r,o=n?null:a}this._zone=t,this.loc=e.loc||dt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=dr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],l=n[6];return lr({year:r,month:o,day:i,hour:a,minute:s,second:u,millisecond:l},t)},e.utc=function(){var e=dr(arguments),t=e[0],n=e[1],r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],l=n[6];return t.zone=He.utcInstance,lr({year:r,month:o,day:i,hour:a,minute:s,second:u,millisecond:l},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,o=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(o))return e.invalid("invalid input");var i=Pe(n.zone,Ke.defaultZone);return i.isValid?new e({ts:o,zone:i,loc:dt.fromObject(n)}):e.invalid(Pn(i))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),Y(t))return t<-Rn||t>Rn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Pe(n.zone,Ke.defaultZone),loc:dt.fromObject(n)});throw new k("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),Y(t))return new e({ts:1e3*t,zone:Pe(n.zone,Ke.defaultZone),loc:dt.fromObject(n)});throw new k("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=Pe(n.zone,Ke.defaultZone);if(!r.isValid)return e.invalid(Pn(r));var o=Ke.now(),i=J(n.specificOffset)?r.offset(o):n.specificOffset,a=me(t,ur),s=!J(a.ordinal),u=!J(a.year),l=!J(a.month)||!J(a.day),c=u||l,d=a.weekYear||a.weekNumber,f=dt.fromObject(n);if((c||s)&&d)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new g("Can't mix ordinal dates with month/day");var m,v,y=d||a.weekday&&!c,p=Gn(o,i);y?(m=ar,v=rr,p=An(p)):s?(m=sr,v=or,p=zn(p)):(m=ir,v=nr);for(var w,k=!1,b=h(m);!(w=b()).done;){var T=w.value;J(a[T])?a[T]=k?v[T]:p[T]:k=!0}var N=y?function(e){var t=G(e.weekYear),n=X(e.weekNumber,1,le(e.weekYear)),r=X(e.weekday,1,7);return t?n?!r&&In("weekday",e.weekday):In("week",e.week):In("weekYear",e.weekYear)}(a):s?function(e){var t=G(e.year),n=X(e.ordinal,1,ae(e.year));return t?!n&&In("ordinal",e.ordinal):In("year",e.year)}(a):Un(a),x=N||Bn(a);if(x)return e.invalid(x);var S=$n(y?jn(a):s?qn(a):a,i,r),C=new e({ts:S[0],zone:r,o:S[1],loc:f});return a.weekday&&c&&t.weekday!==C.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+C.toISO()):C},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[qt,Rt],[Ut,Pt],[Bt,Wt],[Ht,Jt])}(e);return Kn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return mt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[It,Ft])}(e);return Kn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Lt,jt],[Zt,jt],[At,zt])}(e);return Kn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),J(t)||J(n))throw new k("fromFormat requires an input string and a format");var o=r,i=o.locale,a=void 0===i?null:i,s=o.numberingSystem,u=void 0===s?null:s,l=function(e,t,n){var r=En(e,t,n);return[r.result,r.zone,r.specificOffset,r.invalidReason]}(dt.fromOpts({locale:a,numberingSystem:u,defaultToEN:!0}),t,n),c=l[0],d=l[1],f=l[2],h=l[3];return h?e.invalid(h):Kn(c,d,r,"format "+n,t,f)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Gt,Rt],[$t,Qt])}(e);return Kn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new k("need to specify a reason the DateTime is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(Ke.throwOnInvalid)throw new v(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(He.instance(e),t)},t.toLocal=function(){return this.setZone(Ke.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,o=r.keepLocalTime,i=void 0!==o&&o,a=r.keepCalendarTime,s=void 0!==a&&a;if((t=Pe(t,Ke.defaultZone)).equals(this.zone))return this;if(t.isValid){var u=this.ts;if(i||s){var l=t.offset(this.ts);u=$n(this.toObject(),l,t)[0]}return Jn(this,{ts:u,zone:t})}return e.invalid(Pn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,o=t.outputCalendar;return Jn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:o})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=me(e,ur),r=!J(n.weekYear)||!J(n.weekNumber)||!J(n.weekday),i=!J(n.ordinal),a=!J(n.year),s=!J(n.month)||!J(n.day),u=a||s,l=n.weekYear||n.weekNumber;if((u||i)&&l)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new g("Can't mix ordinal dates with month/day");r?t=jn(o({},An(this.c),n)):J(n.ordinal)?(t=o({},this.toObject(),n),J(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=qn(o({},zn(this.c),n));var c=$n(t,this.o,this.zone);return Jn(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?Jn(this,Qn(this,un.fromDurationLike(e))):this},t.minus=function(e){return this.isValid?Jn(this,Qn(this,un.fromDurationLike(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=un.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ie.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Hn},t.toLocaleString=function(e,t){return void 0===e&&(e=S),void 0===t&&(t={}),this.isValid?Ie.create(this.loc.clone(t),e).formatDateTime(this):Hn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){var t=void 0===e?{}:e,n=t.format,r=void 0===n?"extended":n,o=t.suppressSeconds,i=void 0!==o&&o,a=t.suppressMilliseconds,s=void 0!==a&&a,u=t.includeOffset,l=void 0===u||u,c=t.extendedZone,d=void 0!==c&&c;if(!this.isValid)return null;var f="extended"===r,h=er(this,f);return h+="T",h+=tr(this,f,i,s,l,d)},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n=void 0===t?"extended":t;return this.isValid?er(this,"extended"===n):null},t.toISOWeekDate=function(){return Xn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,o=t.suppressSeconds,i=void 0!==o&&o,a=t.includeOffset,s=void 0===a||a,u=t.includePrefix,l=void 0!==u&&u,c=t.extendedZone,d=void 0!==c&&c,f=t.format,h=void 0===f?"extended":f;return this.isValid?(l?"T":"")+tr(this,"extended"===h,i,r,s,d):null},t.toRFC2822=function(){return Xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return this.isValid?er(this,!0):null},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,o=t.includeZone,i=void 0!==o&&o,a=t.includeOffsetSpace,s="HH:mm:ss.SSS";return(i||r)&&((void 0===a||a)&&(s+=" "),i?s+="z":r&&(s+="ZZ")),Xn(this,s,!0)},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Hn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=o({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return un.invalid("created by diffing an invalid DateTime");var r,i=o({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=t,Array.isArray(r)?r:[r]).map(un.normalizeUnit),s=e.valueOf()>this.valueOf(),u=mn(s?this:e,s?e:this,a,i);return s?u.negate():u},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?dn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?thisthis.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ae(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return S}},{key:"DATE_MED",get:function(){return C}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return M}},{key:"DATE_FULL",get:function(){return V}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return E}},{key:"TIME_WITH_SECONDS",get:function(){return D}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return _}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return I}},{key:"TIME_24_SIMPLE",get:function(){return F}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return Z}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return A}},{key:"DATETIME_SHORT",get:function(){return j}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_MED",get:function(){return q}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return B}},{key:"DATETIME_FULL",get:function(){return H}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return R}},{key:"DATETIME_HUGE",get:function(){return P}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function hr(e){if(fr.isDateTime(e))return e;if(e&&e.valueOf&&Y(e.valueOf()))return fr.fromJSDate(e);if(e&&"object"==typeof e)return fr.fromObject(e);throw new k("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=fr},379:(e,t,n)=>{var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{const e=Vue;var t={class:"relative"},r=(0,e.createElementVNode)("div",{class:"flex flex-col md:flex-row md:items-center py-3 border-b border-gray-200 dark:border-gray-700"},null,-1),o={key:0,class:"overflow-hidden overflow-x-auto relative"},i={class:"table w-full",cellspacing:"0",cellpadding:"0"},a={class:"bg-gray-50 dark:bg-gray-800"},s=(0,e.createElementVNode)("th",{class:"td-fit uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"},[(0,e.createElementVNode)("span",{class:"sr-only"},"spacer")],-1),u={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},l={key:0,class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},c={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},d={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},f={class:"uppercase text-xxs tracking-wide px-2 py-2"},h={class:"sr-only"};const m={props:["resourceName","resourceId","panel"],data:function(){return{tokens:[],showCreateTokenModal:!1,showCreatedTokenModal:!1,createdToken:null}},created:function(){this.fetchTokens()},methods:{createNewToken:function(e,t){var n=this;this.showCreateTokenModal=!1,Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId),{name:e,abilities:null===t?this.panel.fields[0].defaultAbilities:t}).then((function(e){n.createdToken=e.data,n.showCreatedTokenModal=!0}))},handleCreatedTokenConfirmation:function(){this.showCreatedTokenModal=!1,this.fetchTokens(),this.createdToken=null},fetchTokens:function(){var e=this;Nova.request().get("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId)).then((function(t){e.tokens=t.data.tokens}))},revokeToken:function(e){var t=this;Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId,"/revoke"),{token_id:e}).then((function(){t.fetchTokens()}))}}};var v=n(744);const y=(0,v.Z)(m,[["render",function(n,m,v,y,p,g){var w=(0,e.resolveComponent)("DefaultButton"),k=(0,e.resolveComponent)("Heading"),b=(0,e.resolveComponent)("TokenRow"),T=(0,e.resolveComponent)("NoTokens"),N=(0,e.resolveComponent)("Card"),x=(0,e.resolveComponent)("CreateTokenModal"),S=(0,e.resolveComponent)("CreatedTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createVNode)(k,{level:1,class:"mb-3 flex items-center justify-between"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(n.__("Personal Access Tokens")),1),(0,e.createVNode)(w,{onClick:m[0]||(m[0]=function(e){return p.showCreateTokenModal=!0})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.__("Create Token")),1)]})),_:1})]})),_:1}),(0,e.createVNode)(N,null,{default:(0,e.withCtx)((function(){return[r,p.tokens.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",o,[(0,e.createElementVNode)("table",i,[(0,e.createElementVNode)("thead",a,[(0,e.createElementVNode)("tr",null,[s,(0,e.createElementVNode)("th",u,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Name")),1)]),v.panel.fields[0].showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("th",l,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Abilities")),1)])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("th",c,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Last Used")),1)]),(0,e.createElementVNode)("th",d,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Expiration Date")),1)]),(0,e.createElementVNode)("th",f,[(0,e.createElementVNode)("span",h,(0,e.toDisplayString)(n.__("Controls")),1)])])]),(0,e.createElementVNode)("tbody",null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(p.tokens,(function(t){return(0,e.openBlock)(),(0,e.createBlock)(b,{key:t.id,token:t,"default-expiration-duration":v.panel.fields[0].defaultExpirationDuration,"show-abilities":v.panel.fields[0].showAbilities,onRevokeToken:g.revokeToken},null,8,["token","default-expiration-duration","show-abilities","onRevokeToken"])})),128))])])])):((0,e.openBlock)(),(0,e.createBlock)(T,{key:1,onShowCreateTokenModal:m[1]||(m[1]=function(e){return p.showCreateTokenModal=!0})}))]})),_:1}),(0,e.createVNode)(x,{options:v.panel.fields[0],show:p.showCreateTokenModal,onClose:m[2]||(m[2]=function(e){return p.showCreateTokenModal=!1}),onCreate:g.createNewToken},null,8,["options","show","onCreate"]),(0,e.createVNode)(S,{show:p.showCreatedTokenModal,"new-token":p.createdToken,onConfirmed:g.handleCreatedTokenConfirmation},null,8,["show","new-token","onConfirmed"])])}]]);var p={class:"flex flex-col"},g={class:"flex flex-col space-y-2"},w={for:"name",class:"inline-block leading-tight"},k={class:"text-red-500 text-sm"},b={key:0,class:"flex flex-col space-y-2 mt-3"},T={for:"abilities",class:"inline-block leading-tight"},N=["placeholder"],x={class:"ml-auto"};const S={props:{options:{required:!0,type:Object},show:{type:Boolean,default:!1}},emits:["create","close"],data:function(){return{tokenName:null,tokenAbilities:null}},methods:{handleCreate:function(){this.$emit("create",this.tokenName,this.tokenAbilities),this.resetForm()},handleCancelled:function(){this.resetForm(),this.$emit("close")},resetForm:function(){this.tokenName=null,this.tokenAbilities=null}}},C=(0,v.Z)(S,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("ModalContent"),l=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("LoadingButton"),d=(0,e.resolveComponent)("ModalFooter"),f=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(f,{show:r.show,onCloseViaEscape:a.handleCancelled},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("form",{class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden",autocomplete:"off",onSubmit:n[2]||(n[2]=(0,e.withModifiers)((function(){return a.handleCreate&&a.handleCreate.apply(a,arguments)}),["prevent","stop"]))},[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1}),(0,e.createVNode)(u,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",p,[(0,e.createElementVNode)("div",g,[(0,e.createElementVNode)("label",w,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Name"))+" ",1),(0,e.createElementVNode)("span",k,(0,e.toDisplayString)(t.__("*")),1)]),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"name","onUpdate:modelValue":n[0]||(n[0]=function(e){return i.tokenName=e}),list:"name-list",type:"text",placeholder:"Name",class:"w-full form-control form-input form-input-bordered",required:""},null,512),[[e.vModelText,i.tokenName]])]),r.options.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("div",b,[(0,e.createElementVNode)("label",T,(0,e.toDisplayString)(t.__("Abilities")),1),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"abilities","onUpdate:modelValue":n[1]||(n[1]=function(e){return i.tokenAbilities=e}),type:"text",placeholder:r.options.defaultAbilities,class:"w-full form-control form-input form-input-bordered"},null,8,N),[[e.vModelText,i.tokenAbilities]]),(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(t.__("Comma separated list of abilities to apply to token.")),1)])):(0,e.createCommentVNode)("",!0)])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",x,[(0,e.createVNode)(l,{type:"button",class:"mr-3",onClick:(0,e.withModifiers)(a.handleCancelled,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1},8,["onClick"]),(0,e.createVNode)(c,{ref:"confirmButton",processing:!1,disabled:!1,component:"DefaultButton",type:"submit"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create New Token")),1)]})),_:1},512)])]})),_:1})],32)]})),_:3},8,["show","onCloseViaEscape"])}]]);var M={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},V={class:"flex flex-col"},O={class:"flex flex-col space-y-2"},E={class:"text-lg bg-gray-100 rounded p-4"},D={class:"ml-auto"};const _={props:{newToken:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed"],methods:{handleConfirmed:function(){this.$emit("confirmed")},copyValueToClipboard:function(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else if(window.clipboardData)window.clipboardData.setData("Text",e);else{var t=document.createElement("input"),n=[document.documentElement.scrollTop,document.documentElement.scrollLeft],r=n[0],o=n[1];document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.documentElement.scrollTop=r,document.documentElement.scrollLeft=o,document.execCommand("copy"),t.remove()}}}},I=(0,v.Z)(_,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("Icon"),l=(0,e.resolveComponent)("HelpText"),c=(0,e.resolveComponent)("ModalContent"),d=(0,e.resolveComponent)("DefaultButton"),f=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal"),m=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",M,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Created Token")),1)]})),_:1}),(0,e.createVNode)(c,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",V,[(0,e.createElementVNode)("div",O,[(0,e.createElementVNode)("div",E,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{type:"button",class:"flex items-center justify-between w-full hover:bg-gray-50 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-400 hover:text-gray-500 active:text-gray-600 rounded-lg px-1 -mx-1",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return a.copyValueToClipboard(r.newToken)}),["prevent","stop"]))},[(0,e.createElementVNode)("span",{ref:"theFieldValue"},(0,e.toDisplayString)(r.newToken),513),(0,e.createVNode)(u,{class:"text-gray-500 dark:text-gray-400 ml-1",solid:!0,type:"clipboard",width:"14"})])),[[m,t.__("Copy to clipboard")]])]),(0,e.createVNode)(l,{class:"mt-2 help-text-error"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Make sure to copy your new personal access token now. You won't be able to see it again!")),1)]})),_:1})])])]})),_:1})]})),(0,e.createVNode)(f,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",D,[(0,e.createVNode)(d,{type:"button",onClick:(0,e.withModifiers)(a.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Confirm")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var F={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},L={class:"flex flex-col"},Z={class:"flex flex-col space-y-2"},A=(0,e.createTextVNode)(" Are you sure you want to revoke the following token? "),j={class:"p-4 rounded mt-3 text-red-500 text-center text-lg bg-gray-50 bor"},z={class:"ml-auto"};const q={props:{tokenName:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed","cancel"],methods:{handleConfirmed:function(){this.$emit("confirmed")}}},U=(0,v.Z)(q,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("ModalHeader"),u=(0,e.resolveComponent)("ModalContent"),l=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("DangerButton"),d=(0,e.resolveComponent)("ModalFooter"),f=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(f,{show:r.show,onCloseViaEscape:n[1]||(n[1]=function(e){return t.$emit("cancel")})},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",F,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(s,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1}),(0,e.createVNode)(u,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",L,[(0,e.createElementVNode)("div",Z,[A,(0,e.createElementVNode)("pre",j,(0,e.toDisplayString)(r.tokenName),1)])])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",z,[(0,e.createVNode)(l,{type:"button",class:"mr-4",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return t.$emit("cancel")}),["prevent"]))},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1}),(0,e.createVNode)(c,{type:"button",onClick:(0,e.withModifiers)(a.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var B={class:"flex flex-col justify-center items-center px-6 py-8"},H=(0,e.createElementVNode)("svg",{class:"w-10 h-10",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,e.createElementVNode)("path",{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1),R={class:"text-base text-80 font-normal mb-6 mt-3"};const P={emits:["showCreateTokenModal"]},W=(0,v.Z)(P,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("DefaultButton");return(0,e.openBlock)(),(0,e.createElementBlock)("div",B,[H,(0,e.createElementVNode)("h3",R,(0,e.toDisplayString)(t.__("No Tokens For User.")),1),(0,e.createVNode)(s,{onClick:n[0]||(n[0]=function(e){return t.$emit("showCreateTokenModal")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1})])}]]);var J=function(t){return(0,e.pushScopeId)("data-v-167d010e"),t=t(),(0,e.popScopeId)(),t},Y=J((function(){return(0,e.createElementVNode)("td",{class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit pl-5 pr-5 dark:bg-gray-800"},null,-1)})),G={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},$={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},Q={class:"whitespace-no-wrap"},K={key:0,class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},X={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},ee={class:"whitespace-no-wrap"},te={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},ne=["title"],re={class:"whitespace-no-wrap"},oe={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},ie={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},ae={class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit text-right align-middle dark:bg-gray-800"},se={class:"flex items-center justify-end space-x-0 text-gray-400"},ue=[J((function(){return(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",width:"24",height:"24",class:"inline-block",role:"presentation"},[(0,e.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)}))];var le=n(490);const ce={props:{token:{required:!0,type:Object},showAbilities:{required:!0,type:Boolean},defaultExpirationDuration:{required:!0,type:Number}},emits:["revoke-token"],data:function(){return{showDeleteModal:!1}},computed:{lastUsed:function(){return this.token.last_used_at?le.ou.fromISO(this.token.last_used_at).toRelativeCalendar():"—"},lastUsedTooltip:function(){return this.token.last_used_at?le.ou.fromISO(this.token.last_used_at).toFormat("f ZZZZ"):"—"},expirationDate:function(){var e=this.token.expires_at?new Date(this.token.expires_at):null;if(this.defaultExpirationDuration){var t=new Date(this.token.created_at),n=new Date(t.getTime()+6e4*this.defaultExpirationDuration),r=this.token.expires_at?new Date(this.token.expires_at):null;e=r&&r-10&&i<0?"warning-color":i>0?"expired-color":"":null}:{date:"—",cssClass:null}}},methods:{revokeToken:function(){this.showDeleteModal=!1,this.$emit("revoke-token",this.token.id)}}};var de=n(379),fe=n.n(de),he=n(590),me={insert:"head",singleton:!1};fe()(he.Z,me);he.Z.locals;const ve=(0,v.Z)(ce,[["render",function(t,n,r,o,i,a){var s=(0,e.resolveComponent)("DeleteTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("tr",null,[Y,(0,e.createElementVNode)("td",G,[(0,e.createElementVNode)("div",$,[(0,e.createElementVNode)("span",Q,(0,e.toDisplayString)(r.token.name),1)])]),r.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("td",K,[(0,e.createElementVNode)("div",X,[(0,e.createElementVNode)("span",ee,(0,e.toDisplayString)(r.token.abilities),1)])])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("td",te,[(0,e.createElementVNode)("div",{class:"text-left text-left","via-resource":"users","via-resource-id":"1",title:a.lastUsedTooltip},[(0,e.createElementVNode)("span",re,(0,e.toDisplayString)(a.lastUsed),1)],8,ne)]),(0,e.createElementVNode)("td",oe,[(0,e.createElementVNode)("div",ie,[(0,e.createElementVNode)("span",{class:(0,e.normalizeClass)(["whitespace-no-wrap",a.expirationDate.cssClass?a.expirationDate.cssClass:""])},(0,e.toDisplayString)(a.expirationDate.date),3)])]),(0,e.createElementVNode)("td",ae,[(0,e.createElementVNode)("div",se,[(0,e.createElementVNode)("button",{"aria-label":"Delete",class:"toolbar-button hover:text-primary-500 px-2 v-popper--has-tooltip",onClick:n[0]||(n[0]=function(e){return i.showDeleteModal=!0})},ue)])]),(0,e.createVNode)(s,{show:i.showDeleteModal,"token-name":r.token.name,onCancel:n[1]||(n[1]=function(e){return i.showDeleteModal=!1}),onConfirmed:a.revokeToken},null,8,["show","token-name","onConfirmed"])])}],["__scopeId","data-v-167d010e"]]);Nova.booting((function(e,t){e.component("SanctumTokens",y),e.component("CreateTokenModal",C),e.component("CreatedTokenModal",I),e.component("DeleteTokenModal",U),e.component("NoTokens",W),e.component("TokenRow",ve)}))})()})(); \ No newline at end of file diff --git a/resources/js/components/SanctumTokens.vue b/resources/js/components/SanctumTokens.vue index fd6f349..b8c7e69 100644 --- a/resources/js/components/SanctumTokens.vue +++ b/resources/js/components/SanctumTokens.vue @@ -16,43 +16,49 @@ > - - - - - + + + + + + - - - + + + - +
- spacer - - {{ __("Name") }} - - {{ __("Abilities") }} - - {{ __("Last Used") }} -
+ spacer + + {{ __("Name") }} + + {{ __("Abilities") }} + + {{ __("Last Used") }} + + {{ __("Expiration Date") }} + - {{ __("Controls") }} -
+ {{ __("Controls") }} +
diff --git a/resources/js/components/TokenRow.vue b/resources/js/components/TokenRow.vue index 473ad1f..7015add 100644 --- a/resources/js/components/TokenRow.vue +++ b/resources/js/components/TokenRow.vue @@ -30,6 +30,17 @@ {{ lastUsed }} + +
+ {{ expirationDate.date }} +
+ @@ -81,6 +92,10 @@ export default { required: true, type: Boolean, }, + defaultExpirationDuration: { + required: true, + type: Number, + } }, emits: ["revoke-token"], data() { @@ -103,6 +118,32 @@ export default { return "—"; } }, + expirationDate() { + let tokenExpirationDate = this.token.expires_at ? new Date(this.token.expires_at) : null; + const defaultExpirationDate = this.defaultExpirationDuration + + if (defaultExpirationDate) { + const tokenCreationDate = new Date(this.token.created_at); + + // Add default expiration time to created token date + const defaultTokenExpirationDate = new Date(tokenCreationDate.getTime() + this.defaultExpirationDuration * 60000); + const tokenCustomExpirationDate = this.token.expires_at ? new Date(this.token.expires_at) : null; + + tokenExpirationDate = tokenCustomExpirationDate ? (tokenCustomExpirationDate < defaultTokenExpirationDate ? tokenCustomExpirationDate : defaultTokenExpirationDate) : defaultTokenExpirationDate; + } + + const today = new Date(); + const diffInDays = tokenExpirationDate ? ((today - tokenExpirationDate) / (1000 * 3600 * 24)) : null; + return tokenExpirationDate + ? { + date: tokenExpirationDate.toLocaleDateString(), + cssClass: diffInDays ? (diffInDays > -10 && diffInDays < 0 ? 'warning-color' : (diffInDays > 0 ? 'expired-color' : '')) : null, + } + : { + date: '—', + cssClass: null, + }; + }, }, methods: { revokeToken() { @@ -113,4 +154,12 @@ export default { }; - + diff --git a/src/SanctumTokens.php b/src/SanctumTokens.php index 3775691..80a134b 100644 --- a/src/SanctumTokens.php +++ b/src/SanctumTokens.php @@ -9,12 +9,14 @@ class SanctumTokens extends ResourceTool private $defaultOptions = [ "showAbilities" => true, "defaultAbilities" => "*", + "defaultExpirationDuration" => null, ]; public function __construct() { parent::__construct(); + $this->defaultOptions['defaultExpirationDuration'] = config('sanctum.expiration'); return $this->withMeta($this->defaultOptions); }