UNPKG

vue-quick-chat-slotted

Version:

This vue component is a simple chat that can be easily imported and used in your project.

1 lines 162 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vue-quick-chat"]=e(require("vue")):t["vue-quick-chat"]=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",m="values",p=function(){return this};t.exports=function(t,e,n,y,g,v,b){u(n,e,y);var w,O,k,x=function(t){if(!d&&t in C)return C[t];switch(t){case h:case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T=g==m,E=!1,C=t.prototype,M=C[f]||C["@@iterator"]||g&&C[g],N=M||x(g),_=g?T?x("entries"):N:void 0,j="Array"==e&&C.entries||M;if(j&&((k=l(j.call(new t)))!==Object.prototype&&k.next&&(c(k,S,!0),r||"function"==typeof k[f]||a(k,f,p))),T&&M&&M.name!==m&&(E=!0,N=function(){return M.call(this)}),r&&!b||!d&&!E&&C[f]||a(C,f,N),s[e]=N,s[S]=p,g)if(w={values:T?N:x(m),keys:v?N:x(h),entries:_},b)for(O in w)O in C||o(C,O,w[O]);else i(i.P+i.F*(d||E),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0526":function(t,e,n){},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"113d":function(t,e,n){"use strict";(function(t){e.__esModule=!0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("2d78"));var i=r.tokenize,o=r.options,a=o.Options,s=r.parser.TOKENS.TEXT;function u(t,e,n){var r=n[n.length-1];t.replaceChild(r,e);for(var i=n.length-2;i>=0;i--)t.insertBefore(n[i],r),r=n[i]}function c(t,e,n){var r=[],i=t,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var u=s;if("nl"===u.type&&e.nl2br)r.push(n.createElement("br"));else if(u.isLink&&e.check(u)){var c=e.resolve(u),l=c.formatted,f=c.formattedHref,d=c.tagName,h=c.className,m=c.target,p=c.events,y=c.attributes,g=n.createElement(d);if(g.setAttribute("href",f),h&&g.setAttribute("class",h),m&&g.setAttribute("target",m),y)for(var v in y)g.setAttribute(v,y[v]);if(p)for(var b in p)g.addEventListener?g.addEventListener(b,p[b]):g.attachEvent&&g.attachEvent("on"+b,p[b]);g.appendChild(n.createTextNode(l)),r.push(g)}else r.push(n.createTextNode(u.toString()))}return r}function l(t,e,n){if(!t||1!==t.nodeType)throw new Error("Cannot linkify "+t+" - Invalid DOM Node type");var r=e.ignoreTags;if("A"===t.tagName||o.contains(r,t.tagName))return t;for(var a=t.firstChild;a;){var f=void 0,d=void 0,h=void 0;switch(a.nodeType){case 1:l(a,e,n);break;case 3:if(f=a.nodeValue,0===(d=i(f)).length||1===d.length&&d[0]instanceof s)break;u(t,a,h=c(d,e,n)),a=h[h.length-1]}a=a.nextSibling}return t}function f(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{r=r||document||window&&window.document||t&&t.document}catch(t){}if(!r)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");return l(e,n=new a(n),r)}f.helper=l,f.normalize=function(t){return new a(t)},e.default=f}).call(this,n("c8ba"))},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1315:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return(c=u()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,a(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(e=t[Symbol.iterator]()).next.bind(e)}Object.defineProperty(e,"__esModule",{value:!0});var h=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(l(Error)),m=function(t){function e(e){return t.call(this,"Invalid DateTime: "+e.toMessage())||this}return o(e,t),e}(h),p=function(t){function e(e){return t.call(this,"Invalid Interval: "+e.toMessage())||this}return o(e,t),e}(h),y=function(t){function e(e){return t.call(this,"Invalid Duration: "+e.toMessage())||this}return o(e,t),e}(h),g=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(h),v=function(t){function e(e){return t.call(this,"Invalid unit "+e)||this}return o(e,t),e}(h),b=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(h),w=function(t){function e(){return t.call(this,"Zone is an abstract class")||this}return o(e,t),e}(h),O="numeric",k="short",x="long",S={year:O,month:O,day:O},T={year:O,month:k,day:O},E={year:O,month:k,day:O,weekday:k},C={year:O,month:x,day:O},M={year:O,month:x,day:O,weekday:x},N={hour:O,minute:O},_={hour:O,minute:O,second:O},j={hour:O,minute:O,second:O,timeZoneName:k},L={hour:O,minute:O,second:O,timeZoneName:x},I={hour:O,minute:O,hour12:!1},A={hour:O,minute:O,second:O,hour12:!1},D={hour:O,minute:O,second:O,hour12:!1,timeZoneName:k},P={hour:O,minute:O,second:O,hour12:!1,timeZoneName:x},R={year:O,month:O,day:O,hour:O,minute:O},z={year:O,month:O,day:O,hour:O,minute:O,second:O},q={year:O,month:k,day:O,hour:O,minute:O},V={year:O,month:k,day:O,hour:O,minute:O,second:O},F={year:O,month:k,day:O,weekday:k,hour:O,minute:O},U={year:O,month:x,day:O,hour:O,minute:O,timeZoneName:k},H={year:O,month:x,day:O,hour:O,minute:O,second:O,timeZoneName:k},Z={year:O,month:x,day:O,weekday:x,hour:O,minute:O,timeZoneName:x},B={year:O,month:x,day:O,weekday:x,hour:O,minute:O,second:O,timeZoneName:x};function $(t){return void 0===t}function G(t){return"number"==typeof t}function Y(t){return"number"==typeof t&&t%1==0}function W(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(t){return!1}}function K(){return!$(Intl.DateTimeFormat.prototype.formatToParts)}function J(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Q(t,e,n){if(0!==t.length)return t.reduce((function(t,r){var i=[e(r),r];return t&&n(t[0],i[0])===t[0]?t:i}),null)[1]}function X(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})}function tt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function et(t,e,n){return Y(t)&&t>=e&&t<=n}function nt(t,e){void 0===e&&(e=2);var n=t<0?"-":"",r=n?-1*t:t;return""+n+(r.toString().length<e?("0".repeat(e)+r).slice(-e):r.toString())}function rt(t){return $(t)||null===t||""===t?void 0:parseInt(t,10)}function it(t){if(!$(t)&&null!==t&&""!==t){var e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ot(t,e,n){void 0===n&&(n=!1);var r=Math.pow(10,e);return(n?Math.trunc:Math.round)(t*r)/r}function at(t){return t%4==0&&(t%100!=0||t%400==0)}function st(t){return at(t)?366:365}function ut(t,e){var n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?at(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function ct(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(e.getUTCFullYear()-1900),+e}function lt(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===r?53:52}function ft(t){return t>99?t:t>60?1900+t:2e3+t}function dt(t,e,n,r){void 0===r&&(r=null);var i=new Date(t),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:e},o),s=W();if(s&&K()){var u=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(t){return"timezonename"===t.type.toLowerCase()}));return u?u.value:null}if(s){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function ht(t,e){var n=parseInt(t,10);Number.isNaN(n)&&(n=0);var r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function mt(t){var e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new b("Invalid unit value "+t);return e}function pt(t,e,n){var r={};for(var i in t)if(tt(t,i)){if(n.indexOf(i)>=0)continue;var o=t[i];if(null==o)continue;r[e(i)]=mt(o)}return r}function yt(t,e){var n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return""+i+nt(n,2)+":"+nt(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+nt(n,2)+nt(r,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function gt(t){return X(t,["hour","minute","second","millisecond"])}var vt=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function bt(t){return JSON.stringify(t,Object.keys(t).sort())}var wt=["January","February","March","April","May","June","July","August","September","October","November","December"],Ot=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kt=["J","F","M","A","M","J","J","A","S","O","N","D"];function xt(t){switch(t){case"narrow":return[].concat(kt);case"short":return[].concat(Ot);case"long":return[].concat(wt);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 St=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Et=["M","T","W","T","F","S","S"];function Ct(t){switch(t){case"narrow":return[].concat(Et);case"short":return[].concat(Tt);case"long":return[].concat(St);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Mt=["AM","PM"],Nt=["Before Christ","Anno Domini"],_t=["BC","AD"],jt=["B","A"];function Lt(t){switch(t){case"narrow":return[].concat(jt);case"short":return[].concat(_t);case"long":return[].concat(Nt);default:return null}}function It(t,e){for(var n,r="",i=d(t);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=e(o.val)}return r}var At={D:S,DD:T,DDD:C,DDDD:M,t:N,tt:_,ttt:j,tttt:L,T:I,TT:A,TTT:D,TTTT:P,f:R,ff:q,fff:U,ffff:Z,F:z,FF:V,FFF:H,FFFF:B},Dt=function(){function t(t,e){this.opts=e,this.loc=t,this.systemLoc=null}t.create=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.parseFormat=function(t){for(var e=null,n="",r=!1,i=[],o=0;o<t.length;o++){var a=t.charAt(o);"'"===a?(n.length>0&&i.push({literal:r,val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,e=a)}return n.length>0&&i.push({literal:r,val:n}),i},t.macroTokenToFormatOpts=function(t){return At[t]};var e=t.prototype;return e.formatWithSystemDefault=function(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTime=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).format()},e.formatDateTimeParts=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).formatToParts()},e.resolvedOptions=function(t,e){return void 0===e&&(e={}),this.loc.dtFormatter(t,Object.assign({},this.opts,e)).resolvedOptions()},e.num=function(t,e){if(void 0===e&&(e=0),this.opts.forceSimple)return nt(t,e);var n=Object.assign({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)},e.formatDateTimeFromString=function(e,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&K(),a=function(t,n){return r.loc.extract(e,t,n)},s=function(t){return e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):""},u=function(){return i?function(t){return Mt[t.hour<12?0:1]}(e):a({hour:"numeric",hour12:!0},"dayperiod")},c=function(t,n){return i?function(t,e){return xt(e)[t.month-1]}(e,t):a(n?{month:t}:{month:t,day:"numeric"},"month")},l=function(t,n){return i?function(t,e){return Ct(e)[t.weekday-1]}(e,t):a(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday")},f=function(n){var i=t.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(e,i):n},d=function(t){return i?function(t,e){return Lt(e)[t.year<0?0:1]}(e,t):a({era:t},"era")};return It(t.parseFormat(n),(function(t){switch(t){case"S":return r.num(e.millisecond);case"u":case"SSS":return r.num(e.millisecond,3);case"s":return r.num(e.second);case"ss":return r.num(e.second,2);case"m":return r.num(e.minute);case"mm":return r.num(e.minute,2);case"h":return r.num(e.hour%12==0?12:e.hour%12);case"hh":return r.num(e.hour%12==0?12:e.hour%12,2);case"H":return r.num(e.hour);case"HH":return r.num(e.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 e.zone.offsetName(e.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:r.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return o?a({day:"numeric"},"day"):r.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(e.day,2);case"c":return r.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return r.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(e.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(e.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(e.weekYear.toString().slice(-2),2);case"kkkk":return r.num(e.weekYear,4);case"W":return r.num(e.weekNumber);case"WW":return r.num(e.weekNumber,2);case"o":return r.num(e.ordinal);case"ooo":return r.num(e.ordinal,3);case"q":return r.num(e.quarter);case"qq":return r.num(e.quarter,2);case"X":return r.num(Math.floor(e.ts/1e3));case"x":return r.num(e.ts);default:return f(t)}}))},e.formatDurationFromString=function(e,n){var r=this,i=function(t){switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=t.parseFormat(n),a=o.reduce((function(t,e){var n=e.literal,r=e.val;return n?t:t.concat(r)}),[]);return It(o,function(t){return function(e){var n=i(e);return n?r.num(t.get(n),e.length):e}}(e.shiftTo.apply(e,a.map(i).filter((function(t){return t})))))},t}(),Pt=function(){function t(t,e){this.reason=t,this.explanation=e}return t.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),Rt=function(){function t(){}var e=t.prototype;return e.offsetName=function(t,e){throw new w},e.formatOffset=function(t,e){throw new w},e.offset=function(t){throw new w},e.equals=function(t){throw new w},i(t,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"universal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),t}(),zt=null,qt=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale)},n.formatOffset=function(t,e){return yt(this.offset(t),e)},n.offset=function(t){return-new Date(t).getTimezoneOffset()},n.equals=function(t){return"local"===t.type},i(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return W()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===zt&&(zt=new e),zt}}]),e}(Rt),Vt=RegExp("^"+vt.source+"$"),Ft={};var Ut={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ht={},Zt=function(t){function e(n){var r;return(r=t.call(this)||this).zoneName=n,r.valid=e.isValidZone(n),r}o(e,t),e.create=function(t){return Ht[t]||(Ht[t]=new e(t)),Ht[t]},e.resetCache=function(){Ht={},Ft={}},e.isValidSpecifier=function(t){return!(!t||!t.match(Vt))},e.isValidZone=function(t){try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}},e.parseGMTOffset=function(t){if(t){var e=t.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(e)return-60*parseInt(e[1])}return null};var n=e.prototype;return n.offsetName=function(t,e){return dt(t,e.format,e.locale,this.name)},n.formatOffset=function(t,e){return yt(this.offset(t),e)},n.offset=function(t){var e=new Date(t);if(isNaN(e))return NaN;var n=function(t){return Ft[t]||(Ft[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Ft[t]}(this.name),r=n.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=[],i=0;i<n.length;i++){var o=n[i],a=o.type,s=o.value,u=Ut[a];$(u)||(r[u]=parseInt(s,10))}return r}(n,e):function(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}(n,e),i=r[0],o=r[1],a=r[2],s=r[3],u=+e,c=u%1e3;return(ct({year:i,month:o,day:a,hour:24===s?0:s,minute:r[4],second:r[5],millisecond:0})-(u-=c>=0?c:1e3+c))/6e4},n.equals=function(t){return"iana"===t.type&&t.name===this.name},i(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(Rt),Bt=null,$t=function(t){function e(e){var n;return(n=t.call(this)||this).fixed=e,n}o(e,t),e.instance=function(t){return 0===t?e.utcInstance:new e(t)},e.parseSpecifier=function(t){if(t){var n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(ht(n[1],n[2]))}return null},i(e,null,[{key:"utcInstance",get:function(){return null===Bt&&(Bt=new e(0)),Bt}}]);var n=e.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(t,e){return yt(this.fixed,e)},n.offset=function(){return this.fixed},n.equals=function(t){return"fixed"===t.type&&t.fixed===this.fixed},i(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+yt(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(Rt),Gt=function(t){function e(e){var n;return(n=t.call(this)||this).zoneName=e,n}o(e,t);var n=e.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(Rt);function Yt(t,e){var n;if($(t)||null===t)return e;if(t instanceof Rt)return t;if(function(t){return"string"==typeof t}(t)){var r=t.toLowerCase();return"local"===r?e:"utc"===r||"gmt"===r?$t.utcInstance:null!=(n=Zt.parseGMTOffset(t))?$t.instance(n):Zt.isValidSpecifier(r)?Zt.create(t):$t.parseSpecifier(r)||new Gt(t)}return G(t)?$t.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Gt(t)}var Wt=function(){return Date.now()},Kt=null,Jt=null,Qt=null,Xt=null,te=!1,ee=function(){function t(){}return t.resetCaches=function(){de.resetCache(),Zt.resetCache()},i(t,null,[{key:"now",get:function(){return Wt},set:function(t){Wt=t}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(t){Kt=t?Yt(t):null}},{key:"defaultZone",get:function(){return Kt||qt.instance}},{key:"defaultLocale",get:function(){return Jt},set:function(t){Jt=t}},{key:"defaultNumberingSystem",get:function(){return Qt},set:function(t){Qt=t}},{key:"defaultOutputCalendar",get:function(){return Xt},set:function(t){Xt=t}},{key:"throwOnInvalid",get:function(){return te},set:function(t){te=t}}]),t}(),ne={};function re(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ne[n];return r||(r=new Intl.DateTimeFormat(t,e),ne[n]=r),r}var ie={};var oe={};function ae(t,e){void 0===e&&(e={});var n=e,r=(n.base,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(n,["base"])),i=JSON.stringify([t,r]),o=oe[i];return o||(o=new Intl.RelativeTimeFormat(t,e),oe[i]=o),o}var se=null;function ue(t,e,n,r,i){var o=t.listingMode(n);return"error"===o?null:"en"===o?r(e):i(e)}var ce=function(){function t(t,e,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!e&&W()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(t,e){void 0===e&&(e={});var n=JSON.stringify([t,e]),r=ie[n];return r||(r=new Intl.NumberFormat(t,e),ie[n]=r),r}(t,r)}}return t.prototype.format=function(t){if(this.inf){var e=this.floor?Math.floor(t):t;return this.inf.format(e)}return nt(this.floor?Math.floor(t):ot(t,3),this.padTo)},t}(),le=function(){function t(t,e,n){var r;if(this.opts=n,this.hasIntl=W(),t.zone.universal&&this.hasIntl){var i=t.offset/60*-1,o=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,a=Zt.isValidZone(o);0!==t.offset&&a?(r=o,this.dt=t):(r="UTC",n.timeZoneName?this.dt=t:this.dt=0===t.offset?t:mr.fromMillis(t.ts+60*t.offset*1e3))}else"local"===t.zone.type?this.dt=t:(this.dt=t,r=t.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);r&&(s.timeZone=r),this.dtf=re(e,s)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var t=function(t){var e="EEEE, LLLL d, yyyy, h:mm a";switch(bt(X(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case bt(S):return"M/d/yyyy";case bt(T):return"LLL d, yyyy";case bt(E):return"EEE, LLL d, yyyy";case bt(C):return"LLLL d, yyyy";case bt(M):return"EEEE, LLLL d, yyyy";case bt(N):return"h:mm a";case bt(_):return"h:mm:ss a";case bt(j):case bt(L):return"h:mm a";case bt(I):return"HH:mm";case bt(A):return"HH:mm:ss";case bt(D):case bt(P):return"HH:mm";case bt(R):return"M/d/yyyy, h:mm a";case bt(q):return"LLL d, yyyy, h:mm a";case bt(U):return"LLLL d, yyyy, h:mm a";case bt(Z):return e;case bt(z):return"M/d/yyyy, h:mm:ss a";case bt(V):return"LLL d, yyyy, h:mm:ss a";case bt(F):return"EEE, d LLL yyyy, h:mm a";case bt(H):return"LLLL d, yyyy, h:mm:ss a";case bt(B):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return e}}(this.opts),e=de.create("en-US");return Dt.create(e).formatDateTimeFromString(this.dt,t)},e.formatToParts=function(){return this.hasIntl&&K()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),fe=function(){function t(t,e,n){this.opts=Object.assign({style:"long"},n),!e&&J()&&(this.rtf=ae(t,n))}var e=t.prototype;return e.format=function(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={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."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&o){var a="days"===t;switch(e){case 1:return a?"tomorrow":"next "+i[t][0];case-1:return a?"yesterday":"last "+i[t][0];case 0:return a?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),c=1===u,l=i[t],f=r?c?l[1]:l[2]||l[1]:c?i[t][0]:t;return s?u+" "+f+" ago":"in "+u+" "+f}(e,t,this.opts.numeric,"long"!==this.opts.style)},e.formatToParts=function(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]},t}(),de=function(){function t(t,e,n,r){var i=function(t){var e=t.indexOf("-u-");if(-1===e)return[t];var n,r=t.substring(0,e);try{n=re(t).resolvedOptions()}catch(t){n=re(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(t),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=n||s||null,this.intl=function(t,e,n){return W()?n||e?(t+="-u",n&&(t+="-ca-"+n),e&&(t+="-nu-"+e),t):t:[]}(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}t.fromOpts=function(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)},t.create=function(e,n,r,i){void 0===i&&(i=!1);var o=e||ee.defaultLocale;return new t(o||(i?"en-US":function(){if(se)return se;if(W()){var t=(new Intl.DateTimeFormat).resolvedOptions().locale;return se=t&&"und"!==t?t:"en-US"}return se="en-US"}()),n||ee.defaultNumberingSystem,r||ee.defaultOutputCalendar,o)},t.resetCache=function(){se=null,ne={},ie={},oe={}},t.fromObject=function(e){var n=void 0===e?{}:e,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return t.create(r,i,o)};var e=t.prototype;return e.listingMode=function(t){void 0===t&&(t=!0);var e=W()&&K(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e||n&&r||t?!e||n&&r?"en":"intl":"error"},e.clone=function(e){return e&&0!==Object.getOwnPropertyNames(e).length?t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this},e.redefaultToEN=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!0}))},e.redefaultToSystem=function(t){return void 0===t&&(t={}),this.clone(Object.assign({},t,{defaultToEN:!1}))},e.months=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ue(this,t,n,xt,(function(){var n=e?{month:t,day:"numeric"}:{month:t},i=e?"format":"standalone";return r.monthsCache[i][t]||(r.monthsCache[i][t]=function(t){for(var e=[],n=1;n<=12;n++){var r=mr.utc(2016,n,1);e.push(t(r))}return e}((function(t){return r.extract(t,n,"month")}))),r.monthsCache[i][t]}))},e.weekdays=function(t,e,n){var r=this;return void 0===e&&(e=!1),void 0===n&&(n=!0),ue(this,t,n,Ct,(function(){var n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=e?"format":"standalone";return r.weekdaysCache[i][t]||(r.weekdaysCache[i][t]=function(t){for(var e=[],n=1;n<=7;n++){var r=mr.utc(2016,11,13+n);e.push(t(r))}return e}((function(t){return r.extract(t,n,"weekday")}))),r.weekdaysCache[i][t]}))},e.meridiems=function(t){var e=this;return void 0===t&&(t=!0),ue(this,void 0,t,(function(){return Mt}),(function(){if(!e.meridiemCache){var t={hour:"numeric",hour12:!0};e.meridiemCache=[mr.utc(2016,11,13,9),mr.utc(2016,11,13,19)].map((function(n){return e.extract(n,t,"dayperiod")}))}return e.meridiemCache}))},e.eras=function(t,e){var n=this;return void 0===e&&(e=!0),ue(this,t,e,Lt,(function(){var e={era:t};return n.eraCache[t]||(n.eraCache[t]=[mr.utc(-40,1,1),mr.utc(2017,1,1)].map((function(t){return n.extract(t,e,"era")}))),n.eraCache[t]}))},e.extract=function(t,e,n){var r=this.dtFormatter(t,e).formatToParts().find((function(t){return t.type.toLowerCase()===n}));return r?r.value:null},e.numberFormatter=function(t){return void 0===t&&(t={}),new ce(this.intl,t.forceSimple||this.fastNumbers,t)},e.dtFormatter=function(t,e){return void 0===e&&(e={}),new le(t,this.intl,e)},e.relFormatter=function(t){return void 0===t&&(t={}),new fe(this.intl,this.isEnglish(),t)},e.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||W()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar},i(t,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function(t){return(!t.numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||W()&&"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}}]),t}();function he(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.reduce((function(t,e){return t+e.source}),"");return RegExp("^"+r+"$")}function me(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(e,n){var r=e[0],i=e[1],o=e[2],a=n(t,o),s=a[0],u=a[1],c=a[2];return[Object.assign(r,s),i||u,c]}),[{},null,1]).slice(0,2)}}function pe(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],u=a[1],c=s.exec(t);if(c)return u(c)}return[null,null]}function ye(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t,n){var r,i={};for(r=0;r<e.length;r++)i[e[r]]=rt(t[n+r]);return[i,null,n+r]}}var ge=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ve=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,be=RegExp(""+ve.source+ge.source+"?"),we=RegExp("(?:T"+be.source+")?"),Oe=ye("weekYear","weekNumber","weekDay"),ke=ye("year","ordinal"),xe=RegExp(ve.source+" ?(?:"+ge.source+"|("+vt.source+"))?"),Se=RegExp("(?: "+xe.source+")?");function Te(t,e,n){var r=t[e];return $(r)?n:rt(r)}function Ee(t,e){return[{year:Te(t,e),month:Te(t,e+1,1),day:Te(t,e+2,1)},null,e+3]}function Ce(t,e){return[{hours:Te(t,e,0),minutes:Te(t,e+1,0),seconds:Te(t,e+2,0),milliseconds:it(t[e+3])},null,e+4]}function Me(t,e){var n=!t[e]&&!t[e+1],r=ht(t[e+1],t[e+2]);return[{},n?null:$t.instance(r),e+3]}function Ne(t,e){return[{},t[e]?Zt.create(t[e]):null,e+1]}var _e=RegExp("^T?"+ve.source+"$"),je=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Le(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l="-"===e[0],f=u&&"-"===u[0],d=function(t,e){return void 0===e&&(e=!1),void 0!==t&&(e||t&&l)?-t:t};return[{years:d(rt(n)),months:d(rt(r)),weeks:d(rt(i)),days:d(rt(o)),hours:d(rt(a)),minutes:d(rt(s)),seconds:d(rt(u),"-0"===u),milliseconds:d(it(c),f)}]}var Ie={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ae(t,e,n,r,i,o,a){var s={year:2===e.length?ft(rt(e)):rt(e),month:Ot.indexOf(n)+1,day:rt(r),hour:rt(i),minute:rt(o)};return a&&(s.second=rt(a)),t&&(s.weekday=t.length>3?St.indexOf(t)+1:Tt.indexOf(t)+1),s}var De=/^(?:(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 Pe(t){var e,n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],d=t[11],h=Ae(n,o,i,r,a,s,u);return e=c?Ie[c]:l?0:ht(f,d),[h,new $t(e)]}var Re=/^(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$/,ze=/^(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$/,qe=/^(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 Ve(t){var e=t[1],n=t[2],r=t[3];return[Ae(e,t[4],r,n,t[5],t[6],t[7]),$t.utcInstance]}function Fe(t){var e=t[1],n=t[2],r=t[3],i=t[4],o=t[5],a=t[6];return[Ae(e,t[7],n,r,i,o,a),$t.utcInstance]}var Ue=he(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,we),He=he(/(\d{4})-?W(\d\d)(?:-?(\d))?/,we),Ze=he(/(\d{4})-?(\d{3})/,we),Be=he(be),$e=me(Ee,Ce,Me),Ge=me(Oe,Ce,Me),Ye=me(ke,Ce,Me),We=me(Ce,Me);var Ke=me(Ce);var Je=he(/(\d{4})-(\d\d)-(\d\d)/,Se),Qe=he(xe),Xe=me(Ee,Ce,Me,Ne),tn=me(Ce,Me,Ne);var en={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}},nn=Object.assign({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}},en),rn=365.2425,on=30.436875,an=Object.assign({years:{quarters:4,months:12,weeks:rn/7,days:rn,hours:24*rn,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:rn/28,days:rn/4,hours:24*rn/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:on/7,days:on,hours:24*on,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},en),sn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],un=sn.slice(0).reverse();function cn(t,e,n){void 0===n&&(n=!1);var r={values:n?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new fn(r)}function ln(t,e,n,r,i){var o=t[i][n],a=e[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(a):Math.trunc(a);r[i]+=s,e[n]-=s*o}var fn=function(){function t(t){var e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||de.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?an:nn,this.isLuxonDuration=!0}t.fromMillis=function(e,n){return t.fromObject(Object.assign({milliseconds:e},n))},t.fromObject=function(e){if(null==e||"object"!=typeof e)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:pt(e,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:de.fromObject(e),conversionAccuracy:e.conversionAccuracy})},t.fromISO=function(e,n){var r=function(t){return pe(t,[je,Le])}(e)[0];if(r){var i=Object.assign(r,n);return t.fromObject(i)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,n){var r=function(t){return pe(t,[_e,Ke])}(e)[0];if(r){var i=Object.assign(r,n);return t.fromObject(i)}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new b("need to specify a reason the Duration is invalid");var r=e instanceof Pt?e:new Pt(e,n);if(ee.throwOnInvalid)throw new y(r);return new t({invalid:r})},t.normalizeUnit=function(t){var e={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"}[t?t.toLowerCase():t];if(!e)throw new v(t);return e},t.isDuration=function(t){return t&&t.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(t,e){void 0===e&&(e={});var n=Object.assign({},e,{floor:!1!==e.round&&!1!==e.floor});return this.isValid?Dt.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"},e.toObject=function(t){if(void 0===t&&(t={}),!this.isValid)return{};var e=Object.assign({},this.values);return t.includeConfig&&(e.conversionAccuracy=this.conversionAccuracy,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e},e.toISO=function(){if(!this.isValid)return null;var t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ot(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t},e.toISOTime=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var e=this.toMillis();if(e<0||e>=864e5)return null;t=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return t.includePrefix&&(i="T"+i),i},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(t){if(!this.isValid)return this;for(var e,n=dn(t),r={},i=d(sn);!(e=i()).done;){var o=e.value;(tt(n.values,o)||tt(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return cn(this,{values:r},!0)},e.minus=function(t){if(!this.isValid)return this;var e=dn(t);return this.plus(e.negate())},e.mapUnits=function(t){if(!this.isValid)return this;for(var e={},n=0,r=Object.keys(this.values);n<r.length;n++){var i=r[n];e[i]=mt(t(this.values[i],i))}return cn(this,{values:e},!0)},e.get=function(e){return this[t.normalizeUnit(e)]},e.set=function(e){return this.isValid?cn(this,{values:Object.assign(this.values,pt(e,t.normalizeUnit,[]))}):this},e.reconfigure=function(t){var e=void 0===t?{}:t,n=e.locale,r=e.numberingSystem,i=e.conversionAccuracy,o={loc:this.loc.clone({locale:n,numberingSystem:r})};return i&&(o.conversionAccuracy=i),cn(this,o)},e.as=function(t){return this.isValid?this.shiftTo(t).get(t):NaN},e.normalize=function(){if(!this.isValid)return this;var t=this.toObject();return function(t,e){un.reduce((function(n,r){return $(e[r])?n:(n&&ln(t,e,n,e,r),r)}),null)}(this.matrix,t),cn(this,{values:t},!0)},e.shiftTo=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!this.isValid)return this;if(0===n.length)return this;n=n.map((function(e){return t.normalizeUnit(e)}));for(var i,o,a={},s={},u=this.toObject(),c=d(sn);!(o=c()).done;){var l=o.value;if(n.indexOf(l)>=0){i=l;var f=0;for(var h in s)f+=this.matrix[h][l]*s[h],s[h]=0;G(u[l])&&(f+=u[l]);var m=Math.trunc(f);for(var p in a[l]=m,s[l]=f-m,u)sn.indexOf(p)>sn.indexOf(l)&&ln(this.matrix,u,p,a,l)}else G(u[l])&&(s[l]=u[l])}for(var y in s)0!==s[y]&&(a[i]+=y===i?s[y]:s[y]/this.matrix[i][y]);return cn(this,{values:a},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var t={},e=0,n=Object.keys(this.values);e<n.length;e++){var r=n[e];t[r]=-this.values[r]}return cn(this,{values:t},!0)},e.equals=function(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;function e(t,e){return void 0===t||0===t?void 0===e||0===e:t===e}for(var n,r=d(sn);!(n=r()).done;){var i=n.value;if(!e(this.values[i],t.values[i]))return!1}return!0},i(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}();function dn(t){if(G(t))return fn.fromMillis(t);if(fn.isDuration(t))return t;if("object"==typeof t)return fn.fromObject(t);throw new b("Unknown duration argument "+t+" of type "+typeof t)}var hn="Invalid Interval";var mn=function(){function t(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,n){if(void 0===n&&(n=null),!e)throw new b("need to specify a reason the Interval is invalid");var r=e instanceof Pt?e:new Pt(e,n);if(ee.throwOnInvalid)throw new p(r);return new t({invalid:r})},t.fromDateTimes=function(e,n){var r=pr(e),i=pr(n),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?mn.invalid("end before start","The end of an interval must be after its start, but you had start="+t.toISO()+" and end="+e.toISO()):null:mn.invalid("missing or invalid end"):mn.invalid("missing or invalid start")}(r,i);return null==o?new t({start:r,end:i}):o},t.after=function(e,n){var r=dn(n),i=pr(e);return t.fromDateTimes(i,i.plus(r))},t.before=function(e,n){var r=dn(n),i=pr(e);return t.fromDateTimes(i.minus(r),i)},t.fromISO=function(e,n){var r=(e||"").split("/",2),i=r[0],o=r[1];if(i&&o){var a,s,u,c;try{s=(a=mr.fromISO(i,n)).isValid}catch(o){s=!1}try{c=(u=mr.fromISO(o,n)).isValid}catch(o){c=!1}if(s&&c)return t.fromDateTimes(a,u);if(s){var l=fn.fromISO(o,n);if(l.isValid)return t.after(a,l)}else if(c){var f=fn.fromISO(i,n);if(f.isValid)return t.before(u,f)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(t){return t&&t.isLuxonInterval||!1};var e=t.prototype;return e.length=function(t){return void 0===t&&(t="milliseconds"),this.isValid?this.toDuration.apply(this,[t]).get(t):NaN},e.count=function(t){if(void 0===t&&(t="milliseconds"),!this.isValid)return NaN;var e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+1},e.hasSame=function(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(t){return!!this.isValid&&this.s>t},e.isBefore=function(t){return!!this.isValid&&this.e<=t},e.contains=function(t){return!!this.isValid&&this.s<=t&&this.e>t},e.set=function(e){var n=void 0===e?{}:e,r=n.start,i=n.end;return this.isValid?t.fromDateTimes(r||this.s,i||this.e):this},e.splitAt=function(){var e=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.map(pr).filter((function(t){return e.contains(t)})).sort(),a=[],s=this.s,u=0;s<this.e;){var c=o[u]||this.e,l=+c>+this.e?this.e:c;a.push(t.fromDateTimes(s,l)),s=l,u+=1}return a},e.splitBy=function(e){var n=dn(e);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i<this.e;){var s=this.start.plus(n.mapUnits((function(t){return t*o})));r=+s>+this.e?this.e:s,a.push(t.fromDateTimes(i,r)),i=r,o+=1}return a},e.divideEqually=function(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]},e.overlaps=function(t){return this.e>t.s&&this.s<t.e},e.abutsStart=function(t){return!!this.isValid&&+this.e==+t.s},e.abutsEnd=function(t){return!!this.isValid&&+t.e==+this.s},e.engulfs=function(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e},e.equals=function(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)},e.intersection=function(e){if(!this.isValid)return this;var n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:t.fromDateTimes(n,r)},e.union=function(e){if(!this.isValid)return this;var n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return t.fromDateTimes(n,r)},t.merge=function(t){var e=t.sort((function(t,e){return t.s-e.s})).reduce((function(t,e){var n=t[0],r=t[1];return r?r.overlaps(e)||r.abutsStart(e)?[n,r.union(e)]:[n.concat([r]),e]:[n,e]}),[[],null]),n=e[0],r=e[1];return r&&n.push(r),n},t.xor=function(e){for(var n,r,i=null,o=0,a=[],s=e.map((function(t){return[{time:t.s,type:"s"},{time:t.e,type:"e"}]})),u=d((n=Array.prototype).concat.apply(n,s).sort((function(t,e){return t.time-e.time})));!(r=u()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&a.push(t.fromDateTimes(i,c.time)),i=null)}return t.merge(a)},e.difference=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.xor([this].concat(r)).map((function(t){return e.intersection(t)})).filter((function(t){return t&&!t.isEmpty()}))},e.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":hn},e.toISO=function(t){return this.isValid?this.s.toISO(t)+"/"+this.e.toISO(t):hn},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():hn},e.toISOTime=function(t){return this.isValid?this.s.toISOTime(t)+"/"+this.e.toISOTime(t):hn},e.toFormat=function(t,e){var n=(void 0===e?{}:e).separator,r=void 0===n?" – ":n;return this.isValid?""+this.s.toFormat(t)+r+this.e.toFormat(t):hn},e.toDuration=function(t,e){return this.isValid?this.e.diff(this.s,t,e):fn.invalid(this.invalidReason)},e.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},i(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(),pn=function(){function t(){}return t.hasDST=function(t){void 0===t&&(t=ee.defaultZone);var e=mr.now().setZone(t).set({month:12});return!t.universal&&e.offset!==e.set({month:6}).offset},t.isValidIANAZone=function(t){return Zt.isValidSpecifier(t)&&Zt.isValidZone(t)},t.normalizeZone=function(t){return Yt(t,ee.defaultZone)},t.months=function(t,e){void 0===t&&(t="long");var n=void 0===e?{}:e,r=n.locale,i=void 0===r?null:r,o=n.numberingSystem,a=void 0===o?null:o,s=n.locObj,u=void 0===s?null:s,c=n.outputCalendar,l=void 0===