UNPKG

kod-temp

Version:

Workano Communications SDK

1 lines 904 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["workano-js-sdk"]=t()}(this,(function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(s){if("default"!==s&&!(s in e)){var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}}))})),Object.freeze(e)}"undefined"==typeof window?global.window={navigator:{},removeEventListener:{},addEventListener:{}}:window.global=window.global||window;const t="function"==typeof Buffer,s=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),i=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),n=(e=>{let t={};return e.forEach(((e,s)=>t[e]=s)),t})(i),r=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,a=String.fromCharCode.bind(String),o=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),c=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),h=e=>{let t,s,n,r,a="";const o=e.length%3;for(let o=0;o<e.length;){if((s=e.charCodeAt(o++))>255||(n=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=s<<16|n<<8|r,a+=i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},l="function"==typeof btoa?e=>btoa(e):t?e=>Buffer.from(e,"binary").toString("base64"):h,u=t?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let s=0,i=e.length;s<i;s+=4096)t.push(a.apply(null,e.subarray(s,s+4096)));return l(t.join(""))},d=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?a(192|t>>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=e=>e.replace(p,d),f=t?e=>Buffer.from(e,"utf8").toString("base64"):s?e=>u(s.encode(e)):e=>l(g(e)),m=(e,t=!1)=>t?o(f(e)):f(e),v=e=>{if(e=e.replace(/\s+/g,""),!r.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,s,i,o="";for(let r=0;r<e.length;)t=n[e.charAt(r++)]<<18|n[e.charAt(r++)]<<12|(s=n[e.charAt(r++)])<<6|(i=n[e.charAt(r++)]),o+=64===s?a(t>>16&255):64===i?a(t>>16&255,t>>8&255):a(t>>16&255,t>>8&255,255&t);return o},y=m;class S extends Error{static fromResponse(e,t){return new S(e.message||JSON.stringify(e),t,e.timestamp,e.error_id,e.details,e)}static fromText(e,t){return new S(e,t)}status;timestamp;errorId;details;error;constructor(e,t,s=null,i=null,n=null,r=null){super(e),this.timestamp=s,this.status=t,this.errorId=i,this.details=n,this.error=r}}class b extends S{static fromResponse(e,t){return new b(e.message||JSON.stringify(e),t,e.timestamp,e.error_id,e.details)}static fromText(e,t){return new b(e,t)}}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var T={exports:{}};!function(e){e.exports=function(){var t,s;function i(){return t.apply(null,arguments)}function n(e){t=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function h(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var s,i=[],n=e.length;for(s=0;s<n;++s)i.push(t(e[s],s));return i}function p(e,t){for(var s in t)o(t,s)&&(e[s]=t[s]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,s,i){return Ys(e,t,s,i,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=f()),e._pf}function v(e){var t=null,i=!1,n=e._d&&!isNaN(e._d.getTime());return n&&(t=m(e),i=s.call(t.parsedDateParts,(function(e){return null!=e})),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?n:(e._isValid=n,e._isValid)}function y(e){var t=g(NaN);return null!=e?p(m(t),e):m(t).userInvalidated=!0,t}s=Array.prototype.some?Array.prototype.some:function(e){var t,s=Object(this),i=s.length>>>0;for(t=0;t<i;t++)if(t in s&&e.call(this,s[t],t,s))return!0;return!1};var S=i.momentProperties=[],b=!1;function w(e,t){var s,i,n,r=S.length;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=m(t)),h(t._locale)||(e._locale=t._locale),r>0)for(s=0;s<r;s++)h(n=t[i=S[s]])||(e[i]=n);return e}function E(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function T(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function _(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var s=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),s){var n,r,a,c=[],h=arguments.length;for(r=0;r<h;r++){if(n="","object"==typeof arguments[r]){for(a in n+="\n["+r+"] ",arguments[0])o(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[r];c.push(n)}_(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),s=!1}return t.apply(this,arguments)}),t)}var I,R={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),R[e]||(_(t),R[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,s;for(s in e)o(e,s)&&(D(t=e[s])?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function k(e,t){var s,i=p({},e);for(s in t)o(t,s)&&(a(e[s])&&a(t[s])?(i[s]={},p(i[s],e[s]),p(i[s],t[s])):null!=t[s]?i[s]=t[s]:delete i[s]);for(s in e)o(e,s)&&!o(t,s)&&a(e[s])&&(i[s]=p({},i[s]));return i}function N(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,I=Object.keys?Object.keys:function(e){var t,s=[];for(t in e)o(e,t)&&s.push(t);return s};var O={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(e,t,s){var i=this._calendar[e]||this._calendar.sameElse;return D(i)?i.call(t,s):i}function H(e,t,s){var i=""+Math.abs(e),n=t-i.length;return(e>=0?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},j={};function B(e,t,s,i){var n=i;"string"==typeof i&&(n=function(){return this[i]()}),e&&(j[e]=n),t&&(j[t[0]]=function(){return H(n.apply(this,arguments),t[1],t[2])}),s&&(j[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,s,i=e.match(M);for(t=0,s=i.length;t<s;t++)j[i[t]]?i[t]=j[i[t]]:i[t]=U(i[t]);return function(t){var n,r="";for(n=0;n<s;n++)r+=D(i[n])?i[n].call(t,e):i[n];return r}}function q(e,t){return e.isValid()?(t=G(t,e.localeData()),L[t]=L[t]||V(t),L[t](e)):e.localeData().invalidDate()}function G(e,t){var s=5;function i(e){return t.longDateFormat(e)||e}for($.lastIndex=0;s>=0&&$.test(e);)e=e.replace($,i),$.lastIndex=0,s-=1;return e}var K={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Y="Invalid date";function z(){return this._invalidDate}var J="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,s,i){var n=this._relativeTime[s];return D(n)?n(e,t,s,i):n.replace(/%d/i,e)}function te(e,t){var s=this._relativeTime[e>0?"future":"past"];return D(s)?s(t):s.replace(/%s/i,t)}var se={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return"string"==typeof e?se[e]||se[e.toLowerCase()]:void 0}function ne(e){var t,s,i={};for(s in e)o(e,s)&&(t=ie(s))&&(i[t]=e[s]);return i}var re={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,s=[];for(t in e)o(e,t)&&s.push({unit:t,priority:re[t]});return s.sort((function(e,t){return e.priority-t.priority})),s}var oe,ce=/\d/,he=/\d\d/,le=/\d{3}/,ue=/\d{4}/,de=/[+-]?\d{6}/,pe=/\d\d?/,ge=/\d\d\d\d?/,fe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ve=/\d{1,4}/,ye=/[+-]?\d{1,6}/,Se=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Te=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e=/^[1-9]\d?/,xe=/^([1-9]\d|\d)/;function Ie(e,t,s){oe[e]=D(t)?t:function(e,i){return e&&s?s:t}}function Re(e,t){return o(oe,e)?oe[e](t._strict,t._locale):new RegExp(Ae(e))}function Ae(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,s,i,n){return t||s||i||n})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ke(e){var t=+e,s=0;return 0!==t&&isFinite(t)&&(s=Pe(t)),s}oe={};var Ne={};function Oe(e,t){var s,i,n=t;for("string"==typeof e&&(e=[e]),l(t)&&(n=function(e,s){s[t]=ke(e)}),i=e.length,s=0;s<i;s++)Ne[e[s]]=n}function Fe(e,t){Oe(e,(function(e,s,i,n){i._w=i._w||{},t(e,i._w,i,n)}))}function He(e,t,s){null!=t&&o(Ne,e)&&Ne[e](t,s._a,s,e)}function Me(e){return e%4==0&&e%100!=0||e%400==0}var $e=0,Le=1,je=2,Be=3,Ue=4,Ve=5,qe=6,Ge=7,Ke=8;function We(e){return Me(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?H(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Ie("Y",be),Ie("YY",pe,he),Ie("YYYY",ve,ue),Ie("YYYYY",ye,de),Ie("YYYYYY",ye,de),Oe(["YYYYY","YYYYYY"],$e),Oe("YYYY",(function(e,t){t[$e]=2===e.length?i.parseTwoDigitYear(e):ke(e)})),Oe("YY",(function(e,t){t[$e]=i.parseTwoDigitYear(e)})),Oe("Y",(function(e,t){t[$e]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return ke(e)+(ke(e)>68?1900:2e3)};var Ye,ze=Ze("FullYear",!0);function Je(){return Me(this.year())}function Ze(e,t){return function(s){return null!=s?(Qe(this,e,s),i.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var s=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return i?s.getUTCSeconds():s.getSeconds();case"Minutes":return i?s.getUTCMinutes():s.getMinutes();case"Hours":return i?s.getUTCHours():s.getHours();case"Date":return i?s.getUTCDate():s.getDate();case"Day":return i?s.getUTCDay():s.getDay();case"Month":return i?s.getUTCMonth():s.getMonth();case"FullYear":return i?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Qe(e,t,s){var i,n,r,a,o;if(e.isValid()&&!isNaN(s)){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(s):i.setMilliseconds(s));case"Seconds":return void(n?i.setUTCSeconds(s):i.setSeconds(s));case"Minutes":return void(n?i.setUTCMinutes(s):i.setMinutes(s));case"Hours":return void(n?i.setUTCHours(s):i.setHours(s));case"Date":return void(n?i.setUTCDate(s):i.setDate(s));case"FullYear":break;default:return}r=s,a=e.month(),o=29!==(o=e.date())||1!==a||Me(r)?o:28,n?i.setUTCFullYear(r,a,o):i.setFullYear(r,a,o)}}function et(e){return D(this[e=ie(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var s,i=ae(e=ne(e)),n=i.length;for(s=0;s<n;s++)this[i[s].unit](e[i[s].unit])}else if(D(this[e=ie(e)]))return this[e](t);return this}function st(e,t){return(e%t+t)%t}function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=st(t,12);return e+=(t-s)/12,1===s?Me(e)?29:28:31-s%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ie("M",pe,_e),Ie("MM",pe,he),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),Oe(["M","MM"],(function(e,t){t[Le]=ke(e)-1})),Oe(["MMM","MMMM"],(function(e,t,s,i){var n=s._locale.monthsParse(e,i,s._strict);null!=n?t[Le]=n:m(s).invalidMonth=e}));var nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Te,ct=Te;function ht(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function lt(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,s){var i,n,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=g([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return s?"MMM"===t?-1!==(n=Ye.call(this._shortMonthsParse,a))?n:null:-1!==(n=Ye.call(this._longMonthsParse,a))?n:null:"MMM"===t?-1!==(n=Ye.call(this._shortMonthsParse,a))||-1!==(n=Ye.call(this._longMonthsParse,a))?n:null:-1!==(n=Ye.call(this._longMonthsParse,a))||-1!==(n=Ye.call(this._shortMonthsParse,a))?n:null}function dt(e,t,s){var i,n,r;if(this._monthsParseExact)return ut.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=g([2e3,i]),s&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),s||this._monthsParse[i]||(r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),s&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(s&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!s&&this._monthsParse[i].test(e))return i}}function pt(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ke(t);else if(!l(t=e.localeData().monthsParse(t)))return e;var s=t,i=e.date();return i=i<29?i:Math.min(i,it(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,i):e._d.setMonth(s,i),e}function gt(e){return null!=e?(pt(this,e),i.updateOffset(this,!0),this):Xe(this,"Month")}function ft(){return it(this.year(),this.month())}function mt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ct),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,s,i,n,r=[],a=[],o=[];for(t=0;t<12;t++)s=g([2e3,t]),i=De(this.monthsShort(s,"")),n=De(this.months(s,"")),r.push(i),a.push(n),o.push(n),o.push(i);r.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function St(e,t,s,i,n,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,s,i,n,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,s,i,n,r,a),o}function bt(e){var t,s;return e<100&&e>=0?((s=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,s){var i=7+t-s;return-(7+bt(e,0,i).getUTCDay()-t)%7+i-1}function Et(e,t,s,i,n){var r,a,o=1+7*(t-1)+(7+s-i)%7+wt(e,i,n);return o<=0?a=We(r=e-1)+o:o>We(e)?(r=e+1,a=o-We(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ct(e,t,s){var i,n,r=wt(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+Tt(n=e.year()-1,t,s):a>Tt(e.year(),t,s)?(i=a-Tt(e.year(),t,s),n=e.year()+1):(n=e.year(),i=a),{week:i,year:n}}function Tt(e,t,s){var i=wt(e,t,s),n=wt(e+1,t,s);return(We(e)-i+n)/7}function _t(e){return Ct(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Ie("w",pe,_e),Ie("ww",pe,he),Ie("W",pe,_e),Ie("WW",pe,he),Fe(["w","ww","W","WW"],(function(e,t,s,i){t[i.substr(0,1)]=ke(e)}));var xt={dow:0,doy:6};function It(){return this._week.dow}function Rt(){return this._week.doy}function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function kt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Ie("d",pe),Ie("e",pe),Ie("E",pe),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),Fe(["dd","ddd","dddd"],(function(e,t,s,i){var n=s._locale.weekdaysParse(e,i,s._strict);null!=n?t.d=n:m(s).invalidWeekday=e})),Fe(["d","e","E"],(function(e,t,s,i){t[i]=ke(e)}));var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mt=Te,$t=Te,Lt=Te;function jt(e,t){var s=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(s,this._week.dow):e?s[e.day()]:s}function Bt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,s){var i,n,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=g([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return s?"dddd"===t?-1!==(n=Ye.call(this._weekdaysParse,a))?n:null:"ddd"===t?-1!==(n=Ye.call(this._shortWeekdaysParse,a))?n:null:-1!==(n=Ye.call(this._minWeekdaysParse,a))?n:null:"dddd"===t?-1!==(n=Ye.call(this._weekdaysParse,a))||-1!==(n=Ye.call(this._shortWeekdaysParse,a))||-1!==(n=Ye.call(this._minWeekdaysParse,a))?n:null:"ddd"===t?-1!==(n=Ye.call(this._shortWeekdaysParse,a))||-1!==(n=Ye.call(this._weekdaysParse,a))||-1!==(n=Ye.call(this._minWeekdaysParse,a))?n:null:-1!==(n=Ye.call(this._minWeekdaysParse,a))||-1!==(n=Ye.call(this._weekdaysParse,a))||-1!==(n=Ye.call(this._shortWeekdaysParse,a))?n:null}function qt(e,t,s){var i,n,r;if(this._weekdaysParseExact)return Vt.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=g([2e3,1]).day(i),s&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),s&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(s&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(s&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!s&&this._weekdaysParse[i].test(e))return i}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Kt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=kt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Mt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,s,i,n,r,a=[],o=[],c=[],h=[];for(t=0;t<7;t++)s=g([2e3,1]).day(t),i=De(this.weekdaysMin(s,"")),n=De(this.weekdaysShort(s,"")),r=De(this.weekdays(s,"")),a.push(i),o.push(n),c.push(r),h.push(i),h.push(n),h.push(r);a.sort(e),o.sort(e),c.sort(e),h.sort(e),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function es(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ts(e,t){return t._meridiemParse}function ss(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,Qt),B("hmm",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),es("a",!0),es("A",!1),Ie("a",ts),Ie("A",ts),Ie("H",pe,xe),Ie("h",pe,_e),Ie("k",pe,_e),Ie("HH",pe,he),Ie("hh",pe,he),Ie("kk",pe,he),Ie("hmm",ge),Ie("hmmss",fe),Ie("Hmm",ge),Ie("Hmmss",fe),Oe(["H","HH"],Be),Oe(["k","kk"],(function(e,t,s){var i=ke(e);t[Be]=24===i?0:i})),Oe(["a","A"],(function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e})),Oe(["h","hh"],(function(e,t,s){t[Be]=ke(e),m(s).bigHour=!0})),Oe("hmm",(function(e,t,s){var i=e.length-2;t[Be]=ke(e.substr(0,i)),t[Ue]=ke(e.substr(i)),m(s).bigHour=!0})),Oe("hmmss",(function(e,t,s){var i=e.length-4,n=e.length-2;t[Be]=ke(e.substr(0,i)),t[Ue]=ke(e.substr(i,2)),t[Ve]=ke(e.substr(n)),m(s).bigHour=!0})),Oe("Hmm",(function(e,t,s){var i=e.length-2;t[Be]=ke(e.substr(0,i)),t[Ue]=ke(e.substr(i))})),Oe("Hmmss",(function(e,t,s){var i=e.length-4,n=e.length-2;t[Be]=ke(e.substr(0,i)),t[Ue]=ke(e.substr(i,2)),t[Ve]=ke(e.substr(n))}));var is=/[ap]\.?m?\.?/i,ns=Ze("Hours",!0);function rs(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var as,os={calendar:O,longDateFormat:K,invalidDate:Y,ordinal:J,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:nt,monthsShort:rt,week:xt,weekdays:Ot,weekdaysMin:Ht,weekdaysShort:Ft,meridiemParse:is},cs={},hs={};function ls(e,t){var s,i=Math.min(e.length,t.length);for(s=0;s<i;s+=1)if(e[s]!==t[s])return s;return i}function us(e){return e?e.toLowerCase().replace("_","-"):e}function ds(e){for(var t,s,i,n,r=0;r<e.length;){for(t=(n=us(e[r]).split("-")).length,s=(s=us(e[r+1]))?s.split("-"):null;t>0;){if(i=gs(n.slice(0,t).join("-")))return i;if(s&&s.length>=t&&ls(n,s)>=t-1)break;t--}r++}return as}function ps(e){return!(!e||!e.match("^[^/\\\\]*$"))}function gs(t){var s=null;if(void 0===cs[t]&&e&&e.exports&&ps(t))try{s=as._abbr,C("./locale/"+t),fs(s)}catch(e){cs[t]=null}return cs[t]}function fs(e,t){var s;return e&&((s=h(t)?ys(e):ms(e,t))?as=s:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),as._abbr}function ms(e,t){if(null!==t){var s,i=os;if(t.abbr=e,null!=cs[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cs[e]._config;else if(null!=t.parentLocale)if(null!=cs[t.parentLocale])i=cs[t.parentLocale]._config;else{if(null==(s=gs(t.parentLocale)))return hs[t.parentLocale]||(hs[t.parentLocale]=[]),hs[t.parentLocale].push({name:e,config:t}),null;i=s._config}return cs[e]=new N(k(i,t)),hs[e]&&hs[e].forEach((function(e){ms(e.name,e.config)})),fs(e),cs[e]}return delete cs[e],null}function vs(e,t){if(null!=t){var s,i,n=os;null!=cs[e]&&null!=cs[e].parentLocale?cs[e].set(k(cs[e]._config,t)):(null!=(i=gs(e))&&(n=i._config),t=k(n,t),null==i&&(t.abbr=e),(s=new N(t)).parentLocale=cs[e],cs[e]=s),fs(e)}else null!=cs[e]&&(null!=cs[e].parentLocale?(cs[e]=cs[e].parentLocale,e===fs()&&fs(e)):null!=cs[e]&&delete cs[e]);return cs[e]}function ys(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return as;if(!r(e)){if(t=gs(e))return t;e=[e]}return ds(e)}function Ss(){return I(cs)}function bs(e){var t,s=e._a;return s&&-2===m(e).overflow&&(t=s[Le]<0||s[Le]>11?Le:s[je]<1||s[je]>it(s[$e],s[Le])?je:s[Be]<0||s[Be]>24||24===s[Be]&&(0!==s[Ue]||0!==s[Ve]||0!==s[qe])?Be:s[Ue]<0||s[Ue]>59?Ue:s[Ve]<0||s[Ve]>59?Ve:s[qe]<0||s[qe]>999?qe:-1,m(e)._overflowDayOfYear&&(t<$e||t>je)&&(t=je),m(e)._overflowWeeks&&-1===t&&(t=Ge),m(e)._overflowWeekday&&-1===t&&(t=Ke),m(e).overflow=t),e}var ws=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Es=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cs=/Z|[+-]\d\d(?::?\d\d)?/,Ts=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_s=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xs=/^\/?Date\((-?\d+)/i,Is=/^(?:(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{4}))$/,Rs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function As(e){var t,s,i,n,r,a,o=e._i,c=ws.exec(o)||Es.exec(o),h=Ts.length,l=_s.length;if(c){for(m(e).iso=!0,t=0,s=h;t<s;t++)if(Ts[t][1].exec(c[1])){n=Ts[t][0],i=!1!==Ts[t][2];break}if(null==n)return void(e._isValid=!1);if(c[3]){for(t=0,s=l;t<s;t++)if(_s[t][1].exec(c[3])){r=(c[2]||" ")+_s[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(c[4]){if(!Cs.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=n+(r||"")+(a||""),Bs(e)}else e._isValid=!1}function Ds(e,t,s,i,n,r){var a=[Ps(e),rt.indexOf(t),parseInt(s,10),parseInt(i,10),parseInt(n,10)];return r&&a.push(parseInt(r,10)),a}function Ps(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ks(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ns(e,t,s){return!e||Ft.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(s).weekdayMismatch=!0,s._isValid=!1,!1)}function Os(e,t,s){if(e)return Rs[e];if(t)return 0;var i=parseInt(s,10),n=i%100;return(i-n)/100*60+n}function Fs(e){var t,s=Is.exec(ks(e._i));if(s){if(t=Ds(s[4],s[3],s[2],s[5],s[6],s[7]),!Ns(s[1],t,e))return;e._a=t,e._tzm=Os(s[8],s[9],s[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Hs(e){var t=xs.exec(e._i);null===t?(As(e),!1===e._isValid&&(delete e._isValid,Fs(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ms(e,t,s){return null!=e?e:null!=t?t:s}function $s(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ls(e){var t,s,i,n,r,a=[];if(!e._d){for(i=$s(e),e._w&&null==e._a[je]&&null==e._a[Le]&&js(e),null!=e._dayOfYear&&(r=Ms(e._a[$e],i[$e]),(e._dayOfYear>We(r)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),s=bt(r,0,e._dayOfYear),e._a[Le]=s.getUTCMonth(),e._a[je]=s.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[Ue]&&0===e._a[Ve]&&0===e._a[qe]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?bt:St).apply(null,a),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(m(e).weekdayMismatch=!0)}}function js(e){var t,s,i,n,r,a,o,c,h;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,s=Ms(t.GG,e._a[$e],Ct(zs(),1,4).year),i=Ms(t.W,1),((n=Ms(t.E,1))<1||n>7)&&(c=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,h=Ct(zs(),r,a),s=Ms(t.gg,e._a[$e],h.year),i=Ms(t.w,h.week),null!=t.d?((n=t.d)<0||n>6)&&(c=!0):null!=t.e?(n=t.e+r,(t.e<0||t.e>6)&&(c=!0)):n=r),i<1||i>Tt(s,r,a)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(o=Et(s,i,n,r,a),e._a[$e]=o.year,e._dayOfYear=o.dayOfYear)}function Bs(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,s,n,r,a,o,c,h=""+e._i,l=h.length,u=0;for(c=(n=G(e._f,e._locale).match(M)||[]).length,t=0;t<c;t++)r=n[t],(s=(h.match(Re(r,e))||[])[0])&&((a=h.substr(0,h.indexOf(s))).length>0&&m(e).unusedInput.push(a),h=h.slice(h.indexOf(s)+s.length),u+=s.length),j[r]?(s?m(e).empty=!1:m(e).unusedTokens.push(r),He(r,s,e)):e._strict&&!s&&m(e).unusedTokens.push(r);m(e).charsLeftOver=l-u,h.length>0&&m(e).unusedInput.push(h),e._a[Be]<=12&&!0===m(e).bigHour&&e._a[Be]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Be]=Us(e._locale,e._a[Be],e._meridiem),null!==(o=m(e).era)&&(e._a[$e]=e._locale.erasConvertYear(o,e._a[$e])),Ls(e),bs(e)}else Fs(e);else As(e)}function Us(e,t,s){var i;return null==s?t:null!=e.meridiemHour?e.meridiemHour(t,s):null!=e.isPM?((i=e.isPM(s))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Vs(e){var t,s,i,n,r,a,o=!1,c=e._f.length;if(0===c)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;n<c;n++)r=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Bs(t),v(t)&&(a=!0),r+=m(t).charsLeftOver,r+=10*m(t).unusedTokens.length,m(t).score=r,o?r<i&&(i=r,s=t):(null==i||r<i||a)&&(i=r,s=t,a&&(o=!0));p(e,s||t)}function qs(e){if(!e._d){var t=ne(e._i),s=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ls(e)}}function Gs(e){var t=new E(bs(Ks(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ks(e){var t=e._i,s=e._f;return e._locale=e._locale||ys(e._l),null===t||void 0===s&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new E(bs(t)):(u(t)?e._d=t:r(s)?Vs(e):s?Bs(e):Ws(e),v(e)||(e._d=null),e))}function Ws(e){var t=e._i;h(t)?e._d=new Date(i.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Hs(e):r(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Ls(e)):a(t)?qs(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Ys(e,t,s,i,n){var o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==s&&!1!==s||(i=s,s=void 0),(a(e)&&c(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=s,o._i=e,o._f=t,o._strict=i,Gs(o)}function zs(e,t,s,i){return Ys(e,t,s,i,!1)}i.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Js=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=zs.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Zs=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=zs.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Xs(e,t){var s,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return zs();for(s=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](s)||(s=t[i]);return s}function Qs(){return Xs("isBefore",[].slice.call(arguments,0))}function ei(){return Xs("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},si=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ii(e){var t,s,i=!1,n=si.length;for(t in e)if(o(e,t)&&(-1===Ye.call(si,t)||null!=e[t]&&isNaN(e[t])))return!1;for(s=0;s<n;++s)if(e[si[s]]){if(i)return!1;parseFloat(e[si[s]])!==ke(e[si[s]])&&(i=!0)}return!0}function ni(){return this._isValid}function ri(){return Ri(NaN)}function ai(e){var t=ne(e),s=t.year||0,i=t.quarter||0,n=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,c=t.minute||0,h=t.second||0,l=t.millisecond||0;this._isValid=ii(t),this._milliseconds=+l+1e3*h+6e4*c+1e3*o*60*60,this._days=+a+7*r,this._months=+n+3*i+12*s,this._data={},this._locale=ys(),this._bubble()}function oi(e){return e instanceof ai}function ci(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function hi(e,t,s){var i,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(i=0;i<n;i++)(s&&e[i]!==t[i]||!s&&ke(e[i])!==ke(t[i]))&&a++;return a+r}function li(e,t){B(e,0,0,(function(){var e=this.utcOffset(),s="+";return e<0&&(e=-e,s="-"),s+H(~~(e/60),2)+t+H(~~e%60,2)}))}li("Z",":"),li("ZZ",""),Ie("Z",Ee),Ie("ZZ",Ee),Oe(["Z","ZZ"],(function(e,t,s){s._useUTC=!0,s._tzm=di(Ee,e)}));var ui=/([\+\-]|\d\d)/gi;function di(e,t){var s,i,n=(t||"").match(e);return null===n?null:0===(i=60*(s=((n[n.length-1]||[])+"").match(ui)||["-",0,0])[1]+ke(s[2]))?0:"+"===s[0]?i:-i}function pi(e,t){var s,n;return t._isUTC?(s=t.clone(),n=(T(e)||u(e)?e.valueOf():zs(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),i.updateOffset(s,!1),s):zs(e).local()}function gi(e){return-Math.round(e._d.getTimezoneOffset())}function fi(e,t,s){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=di(Ee,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&t&&(n=gi(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Ni(this,Ri(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:gi(this)}function mi(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(gi(this),"m")),this}function Si(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=di(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bi(e){return!!this.isValid()&&(e=e?zs(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ei(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Ks(t))._a?(e=t._isUTC?g(t._a):zs(t._a),this._isDSTShifted=this.isValid()&&hi(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ci(){return!!this.isValid()&&!this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC}function _i(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var xi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ii=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ri(e,t){var s,i,n,r=e,a=null;return oi(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=xi.exec(e))?(s="-"===a[1]?-1:1,r={y:0,d:ke(a[je])*s,h:ke(a[Be])*s,m:ke(a[Ue])*s,s:ke(a[Ve])*s,ms:ke(ci(1e3*a[qe]))*s}):(a=Ii.exec(e))?(s="-"===a[1]?-1:1,r={y:Ai(a[2],s),M:Ai(a[3],s),w:Ai(a[4],s),d:Ai(a[5],s),h:Ai(a[6],s),m:Ai(a[7],s),s:Ai(a[8],s)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(n=Pi(zs(r.from),zs(r.to)),(r={}).ms=n.milliseconds,r.M=n.months),i=new ai(r),oi(e)&&o(e,"_locale")&&(i._locale=e._locale),oi(e)&&o(e,"_isValid")&&(i._isValid=e._isValid),i}function Ai(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Di(e,t){var s={};return s.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Pi(e,t){var s;return e.isValid()&&t.isValid()?(t=pi(t,e),e.isBefore(t)?s=Di(e,t):((s=Di(t,e)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ki(e,t){return function(s,i){var n;return null===i||isNaN(+i)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=i,i=n),Ni(this,Ri(s,i),e),this}}function Ni(e,t,s,n){var r=t._milliseconds,a=ci(t._days),o=ci(t._months);e.isValid()&&(n=null==n||n,o&&pt(e,Xe(e,"Month")+o*s),a&&Qe(e,"Date",Xe(e,"Date")+a*s),r&&e._d.setTime(e._d.valueOf()+r*s),n&&i.updateOffset(e,a||o))}Ri.fn=ai.prototype,Ri.invalid=ri;var Oi=ki(1,"add"),Fi=ki(-1,"subtract");function Hi(e){return"string"==typeof e||e instanceof String}function Mi(e){return T(e)||u(e)||Hi(e)||l(e)||Li(e)||$i(e)||null==e}function $i(e){var t,s,i=a(e)&&!c(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=r.length;for(t=0;t<h;t+=1)s=r[t],n=n||o(e,s);return i&&n}function Li(e){var t=r(e),s=!1;return t&&(s=0===e.filter((function(t){return!l(t)&&Hi(e)})).length),t&&s}function ji(e){var t,s,i=a(e)&&!c(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)s=r[t],n=n||o(e,s);return i&&n}function Bi(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ui(e,t){1===arguments.length&&(arguments[0]?Mi(arguments[0])?(e=arguments[0],t=void 0):ji(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||zs(),n=pi(s,this).startOf("day"),r=i.calendarFormat(this,n)||"sameElse",a=t&&(D(t[r])?t[r].call(this,s):t[r]);return this.format(a||this.localeData().calendar(r,this,zs(s)))}function Vi(){return new E(this)}function qi(e,t){var s=T(e)?e:zs(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf())}function Gi(e,t){var s=T(e)?e:zs(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf())}function Ki(e,t,s,i){var n=T(e)?e:zs(e),r=T(t)?t:zs(t);return!!(this.isValid()&&n.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(n,s):!this.isBefore(n,s))&&(")"===i[1]?this.isBefore(r,s):!this.isAfter(r,s))}function Wi(e,t){var s,i=T(e)?e:zs(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===i.valueOf():(s=i.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf()))}function Yi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function zi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ji(e,t,s){var i,n,r;if(!this.isValid())return NaN;if(!(i=pi(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=ie(t)){case"year":r=Zi(this,i)/12;break;case"month":r=Zi(this,i);break;case"quarter":r=Zi(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-n)/864e5;break;case"week":r=(this-i-n)/6048e5;break;default:r=this-i}return s?r:Pe(r)}function Zi(e,t){if(e.date()<t.date())return-Zi(t,e);var s=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(s,"months");return-(s+(t-i<0?(t-i)/(i-e.clone().add(s-1,"months")):(t-i)/(e.clone().add(s+1,"months")-i)))||0}function Xi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qi(e){if(!this.isValid())return null;var t=!0!==e,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?q(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(s,"Z")):q(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function en(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,s,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=r+'[")]',this.format(e+t+s+i)}function tn(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function sn(e,t){return this.isValid()&&(T(e)&&e.isValid()||zs(e).isValid())?Ri({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nn(e){return this.from(zs(),e)}function rn(e,t){return this.isValid()&&(T(e)&&e.isValid()||zs(e).isValid())?Ri({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function an(e){return this.to(zs(),e)}function on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ys(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function hn(){return this._locale}var ln=1e3,un=60*ln,dn=60*un,pn=3506328*dn;function gn(e,t){return(e%t+t)%t}function fn(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-pn:new Date(e,t,s).valueOf()}function mn(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-pn:Date.UTC(e,t,s)}function vn(e){var t,s;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?mn:fn,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=gn(t+(this._isUTC?0:this.utcOffset()*un),dn);break;case"minute":t=this._d.valueOf(),t-=gn(t,un);break;case"second":t=this._d.valueOf(),t-=gn(t,ln)}return this._d.setTime(t),i.updateOffset(this,!0),this}function yn(e){var t,s;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?mn:fn,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dn-gn(t+(this._isUTC?0:this.utcOffset()*un),dn)-1;break;case"minute":t=this._d.valueOf(),t+=un-gn(t,un)-1;break;case"second":t=this._d.valueOf(),t+=ln-gn(t,ln)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function Sn(){return this._d.valueOf()-6e4*(this._offset||0)}function bn(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function En(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tn(){return this.isValid()?this.toISOString():null}function _n(){return v(this)}function xn(){return p({},m(this))}function In(){return m(this).overflow}function Rn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function An(e,t){var s,n,r,a=this._eras||ys("en")._eras;for(s=0,n=a.length;s<n;++s)switch("string"==typeof a[s].since&&(r=i(a[s].since).startOf("day"),a[s].since=r.valueOf()),typeof a[s].until){case"undefined":a[s].until=1/0;break;case"string":r=i(a[s].until).startOf("day").valueOf(),a[s].until=r.valueOf()}return a}function Dn(e,t,s){var i,n,r,a,o,c=this.eras();for(e=e.toUpperCase(),i=0,n=c.length;i<n;++i)if(r=c[i].name.toUpperCase(),a=c[i].abbr.toUpperCase(),o=c[i].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(a===e)return c[i];bre