@dioxide-js/silas
Version:
RPC utility for Silas
1 lines • 304 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(global="undefined"!=typeof globalThis?globalThis:e||self,t(global.DSSWeb3={}))}(this,(function(e){"use strict";var t,r;function n(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{u(n.next(e))}catch(e){s(e)}}function a(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}u((n=n.apply(e,t||[])).next())}))}e.DioFunction=void 0,(t=e.DioFunction||(e.DioFunction={})).SET_METADATA="core.profile.set",t.SET_SCOPE_METADATA="core.profile.address.set",t.FAUCET="core.coin.faucet",t.FAUCET_SCOPE="core.coin.address.faucet",t.MANAGED_TOKEN="Asset.TokenManager.create",t.CREATE_ADDRESS_TOKEN="core.delegation.address.create_token",t.CREATE_TOKEN="core.delegation.create_token",t.TOKEN_FINALIZE="token_finalize@address.delegation.core",t.TOKEN_BID="token_bid@address.delegation.core",t.MINT_TOKEN="core.token_stats.address.supply_change",t.MINT_NFT="nonfungible_init@address.delegation.core",t.MINTED="core.coin.global.minted",t.TRANSFER="core.coin.transfer",t.TRANSFER_NFT="transfer@address.vault.core",t.TRANSFER_TOKENS="core.wallet.transfer",t.RECEIVE_TOKENS="Asset.Wallet.address.deposit",t.INIT_DAPP="core.delegation.create",t.INIT_SCOPE_DAPP="core.delegation.address.create",t.MINT="core.coin.mint",t.COMPOSE_NFT="nft.compose",t.RECEIVE_NFT="deposit@address.vault.core",t.SEND_COMPOSED_TX_DATA="send_composed_tx_data",t.DEPLOY_CONTRACT="core.delegation.address.deploy_contracts",t.SET_TOKEN_MINTER="core.delegation.set_token_minter",t.BRX_CLAIM="rxbridge.BitReXe.claimBRX",t.BRX_BURN="rxbridge.BitReXe.burnRXBTC",t.WALLET_BRX_CLAIM="rxbridge.BitReXe.address.claimBRX",t.WALLET_BRX_BURN="rxbridge.BitReXe.address.burnRXBTC",t.WALLET_CORE_DEPOSIT="core.coin.address.deposit",t.WALLET_DEPOSIT="core.wallet.address.deposit",t.WALLET_BITREXE_DEPOSIT="rxbridge.BitReXe.address._deposit",t.PROOF_NEW="silas.ProofOfExistence.new",t.PROOF_NEW_BY_PROOFKEY="silas.ProofOfExistence.newByProofKey",t.PROOF_CHECK="silas.ProofOfExistence.check",t.PROOF_GET="silas.ProofOfExistence.get",e.NET=void 0,(r=e.NET||(e.NET={})).MAIN="https://<the_production_host>",r.TEST="http://101.33.210.216:7600",r.LOCAL="http://127.0.0.1:7600","function"==typeof SuppressedError&&SuppressedError;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self&&self;function i(e,t){return e(t={exports:{}},t.exports),t.exports}i((function(e,t){e.exports=function(){var t;function r(){return t.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(s(e,t))return;return 1}function a(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){for(var r=[],n=e.length,i=0;i<n;++i)r.push(t(e[i],i));return r}function c(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,r,n){return Rt(e,t,r,n,!0).utc()}function d(e){return null==e._pf&&(e._pf={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}),e._pf}function p(e){if(null==e._isValid){var t=d(e),r=m.call(t.parsedDateParts,(function(e){return null!=e}));if(r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=f(NaN);return null!=e?c(d(t),e):d(t).userInvalidated=!0,t}var m=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},g=r.momentProperties=[],w=!1;function b(e,t){var r,n,i,s=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=d(t)),a(t._locale)||(e._locale=t._locale),0<s)for(r=0;r<s;r++)a(i=t[n=g[r]])||(e[n]=i);return e}function v(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function _(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return c((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,o,a=[],u=arguments.length,l=0;l<u;l++){if(i="","object"==typeof arguments[l]){for(o in i+="\n["+l+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[l];a.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var A={};function S(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),A[e]||(k(t),A[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,t){var r,n=c({},e);for(r in t)s(t,r)&&(i(e[r])&&i(t[r])?(n[r]={},c(n[r],e[r]),c(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&i(e[r])&&(n[r]=c({},n[r]));return n}function O(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;var R=Object.keys||function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};function D(e,t,r){var n=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var B=/(\[[^\[]*\])|(\\)?([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,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},M={};function U(e,t,r,n){var i="string"==typeof n?function(){return this[n]()}:n;e&&(M[e]=i),t&&(M[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),r&&(M[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=C(t,e.localeData()),P[t]=P[t]||function(e){for(var t,r=e.match(B),n=0,i=r.length;n<i;n++)M[r[n]]?r[n]=M[r[n]]:r[n]=(t=r[n]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var n="",s=0;s<i;s++)n+=T(r[s])?r[s].call(t,e):r[s];return n}}(t),P[t](e)):e.localeData().invalidDate()}function C(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;0<=r&&N.test(e);)e=e.replace(N,n),N.lastIndex=0,--r;return e}var I={};function j(e,t){var r=e.toLowerCase();I[r]=I[r+"s"]=I[t]=e}function Y(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function L(e){var t,r,n={};for(r in e)s(e,r)&&(t=Y(r))&&(n[t]=e[r]);return n}var z={};function q(e,t){z[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=0;return 0!=(e=+e)&&isFinite(e)?V(e):t}function K(e,t){return function(n){return null!=n?(Z(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(r=W(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Re(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var J=/\d/,$=/\d\d/,X=/\d{3}/,Q=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,re=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ae=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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;function fe(e,t,r){ye[e]=T(t)?t:function(e,n){return e&&r?r:t}}function de(e,t){return s(ye,e)?ye[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ye={},me={};function ge(e,t){var r,n,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,r){r[t]=W(e)}),n=e.length,r=0;r<n;r++)me[e[r]]=i}function we(e,t){ge(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}var be,ve=0,_e=1,ke=2,xe=3,Ae=4,Se=5,Te=6,Ee=7,Oe=8;function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%(r=12)+r)%r;return e+=(t-r)/12,1==r?H(e)?29:28:31-r%7%2}be=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),j("month","M"),q("month",8),fe("M",te),fe("MM",te,$),fe("MMM",(function(e,t){return t.monthsShortRegex(e)})),fe("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[_e]=W(e)-1})),ge(["MMM","MMMM"],(function(e,t,r,n){null!=(n=r._locale.monthsParse(e,n,r._strict))?t[_e]=n:d(r).invalidMonth=e}));var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe=ce,Me=ce;function Ue(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!u(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Re(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Fe(e){return null!=e?(Ue(this,e),r.updateOffset(this,!0),this):G(this,"Month")}function Ce(){function e(e,t){return t.length-e.length}for(var t,r=[],n=[],i=[],s=0;s<12;s++)t=f([2e3,s]),r.push(this.monthsShort(t,"")),n.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),n.sort(e),i.sort(e),s=0;s<12;s++)r[s]=pe(r[s]),n[s]=pe(n[s]);for(s=0;s<24;s++)i[s]=pe(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ie(e){return H(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),j("year","y"),q("year",1),fe("Y",ue),fe("YY",te,$),fe("YYYY",se,Q),fe("YYYYY",oe,ee),fe("YYYYYY",oe,ee),ge(["YYYYY","YYYYYY"],ve),ge("YYYY",(function(e,t){t[ve]=2===e.length?r.parseTwoDigitYear(e):W(e)})),ge("YY",(function(e,t){t[ve]=r.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[ve]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return W(e)+(68<W(e)?1900:2e3)};var je=K("FullYear",!0);function Ye(e,t,r,n,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,n,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,s,o),a}function Le(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,r){return(r=7+t-r)-(7+Le(e,0,r).getUTCDay()-t)%7-1}function qe(e,t,r,n,i){var s;return r=(t=1+7*(t-1)+(7+r-n)%7+ze(e,n,i))<=0?Ie(s=e-1)+t:t>Ie(e)?(s=e+1,t-Ie(e)):(s=e,t),{year:s,dayOfYear:r}}function He(e,t,r){var n,i,s=ze(e.year(),t,r);return(s=Math.floor((e.dayOfYear()-s-1)/7)+1)<1?n=s+Ve(i=e.year()-1,t,r):s>Ve(e.year(),t,r)?(n=s-Ve(e.year(),t,r),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function Ve(e,t,r){var n=ze(e,t,r);return t=ze(e+1,t,r),(Ie(e)-n+t)/7}function We(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),q("week",5),q("isoWeek",5),fe("w",te),fe("ww",te,$),fe("W",te),fe("WW",te,$),we(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=W(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),fe("d",te),fe("e",te),fe("E",te),fe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),fe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),fe("dddd",(function(e,t){return t.weekdaysRegex(e)})),we(["dd","ddd","dddd"],(function(e,t,r,n){null!=(n=r._locale.weekdaysParse(e,n,r._strict))?t.d=n:d(r).invalidWeekday=e})),we(["d","e","E"],(function(e,t,r,n){t[n]=W(e)}));var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=ce,$e=ce,Xe=ce;function Qe(){function e(e,t){return t.length-e.length}for(var t,r,n,i=[],s=[],o=[],a=[],u=0;u<7;u++)n=f([2e3,1]).day(u),t=pe(this.weekdaysMin(n,"")),r=pe(this.weekdaysShort(n,"")),n=pe(this.weekdays(n,"")),i.push(t),s.push(r),o.push(n),a.push(t),a.push(r),a.push(n);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function rt(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,et),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+et.apply(this)+D(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+et.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),tt("a",!0),tt("A",!1),j("hour","h"),q("hour",13),fe("a",rt),fe("A",rt),fe("H",te),fe("h",te),fe("k",te),fe("HH",te,$),fe("hh",te,$),fe("kk",te,$),fe("hmm",re),fe("hmmss",ne),fe("Hmm",re),fe("Hmmss",ne),ge(["H","HH"],xe),ge(["k","kk"],(function(e,t,r){e=W(e),t[xe]=24===e?0:e})),ge(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),ge(["h","hh"],(function(e,t,r){t[xe]=W(e),d(r).bigHour=!0})),ge("hmm",(function(e,t,r){var n=e.length-2;t[xe]=W(e.substr(0,n)),t[Ae]=W(e.substr(n)),d(r).bigHour=!0})),ge("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[xe]=W(e.substr(0,n)),t[Ae]=W(e.substr(n,2)),t[Se]=W(e.substr(i)),d(r).bigHour=!0})),ge("Hmm",(function(e,t,r){var n=e.length-2;t[xe]=W(e.substr(0,n)),t[Ae]=W(e.substr(n))})),ge("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[xe]=W(e.substr(0,n)),t[Ae]=W(e.substr(n,2)),t[Se]=W(e.substr(i))})),ce=K("Hours",!0);var nt,it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:De,monthsShort:Be,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Ze,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},st={},ot={};function at(e){return e&&e.toLowerCase().replace("_","-")}function ut(e){for(var t,r,n,i,s=0;s<e.length;){for(t=(i=at(e[s]).split("-")).length,r=(r=at(e[s+1]))?r.split("-"):null;0<t;){if(n=lt(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}(i,r)>=t-1)break;t--}s++}return nt}function lt(t){var r;if(void 0===st[t]&&e&&e.exports&&null!=t.match("^[^/\\\\]*$"))try{r=nt._abbr,function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}(),ht(r)}catch(r){st[t]=null}return st[t]}function ht(e,t){return e&&((t=a(t)?ft(e):ct(e,t))?nt=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null===t)return delete st[e],null;var r,n=it;if(t.abbr=e,null!=st[e])S("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."),n=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])n=st[t.parentLocale]._config;else{if(null==(r=lt(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;n=r._config}return st[e]=new O(E(n,t)),ot[e]&&ot[e].forEach((function(e){ct(e.name,e.config)})),ht(e),st[e]}function ft(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return nt;if(!n(e)){if(t=lt(e))return t;e=[e]}return ut(e)}function dt(e){var t=e._a;return t&&-2===d(e).overflow&&(t=t[_e]<0||11<t[_e]?_e:t[ke]<1||t[ke]>Re(t[ve],t[_e])?ke:t[xe]<0||24<t[xe]||24===t[xe]&&(0!==t[Ae]||0!==t[Se]||0!==t[Te])?xe:t[Ae]<0||59<t[Ae]?Ae:t[Se]<0||59<t[Se]?Se:t[Te]<0||999<t[Te]?Te:-1,d(e)._overflowDayOfYear&&(t<ve||ke<t)&&(t=ke),d(e)._overflowWeeks&&-1===t&&(t=Ee),d(e)._overflowWeekday&&-1===t&&(t=Oe),d(e).overflow=t),e}var pt=/^\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)?)?$/,yt=/^\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)?)?$/,mt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["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]],wt=[["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/]],bt=/^\/?Date\((-?\d+)/i,vt=/^(?:(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}))$/,_t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,r,n,i,s,o,a=e._i,u=pt.exec(a)||yt.exec(a),l=(a=gt.length,wt.length);if(u){for(d(e).iso=!0,t=0,r=a;t<r;t++)if(gt[t][1].exec(u[1])){i=gt[t][0],n=!1!==gt[t][2];break}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,r=l;t<r;t++)if(wt[t][1].exec(u[3])){s=(u[2]||" ")+wt[t][0];break}if(null==s)return void(e._isValid=!1)}if(n||null==s){if(u[4]){if(!mt.exec(u[4]))return void(e._isValid=!1);o="Z"}e._f=i+(s||"")+(o||""),Et(e)}else e._isValid=!1}}else e._isValid=!1}function xt(e,t,r,n,i,s){return e=[function(e){return(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e}(e),Be.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)],s&&e.push(parseInt(s,10)),e}function At(e){var t,r,n,i,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(n=t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),i=e,(r=s[1])&&Ge.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()?(d(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=s[8],n=s[9],i=s[10],r?_t[r]:n?0:((r=parseInt(i,10))-(n=r%100))/100*60+n),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),d(e).rfc2822=!0)):e._isValid=!1}function St(e,t,r){return null!=e?e:null!=t?t:r}function Tt(e){var t,n,i,s,o,a,u,l,h,c,f,p=[];if(!e._d){for(i=e,s=new Date(r.now()),n=i._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()],e._w&&null==e._a[ke]&&null==e._a[_e]&&(null!=(s=(i=e)._w).GG||null!=s.W||null!=s.E?(l=1,h=4,o=St(s.GG,i._a[ve],He(Dt(),1,4).year),a=St(s.W,1),((u=St(s.E,1))<1||7<u)&&(c=!0)):(l=i._locale._week.dow,h=i._locale._week.doy,f=He(Dt(),l,h),o=St(s.gg,i._a[ve],f.year),a=St(s.w,f.week),null!=s.d?((u=s.d)<0||6<u)&&(c=!0):null!=s.e?(u=s.e+l,(s.e<0||6<s.e)&&(c=!0)):u=l),a<1||a>Ve(o,l,h)?d(i)._overflowWeeks=!0:null!=c?d(i)._overflowWeekday=!0:(f=qe(o,a,u,l,h),i._a[ve]=f.year,i._dayOfYear=f.dayOfYear)),null!=e._dayOfYear&&(s=St(e._a[ve],n[ve]),(e._dayOfYear>Ie(s)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),c=Le(s,0,e._dayOfYear),e._a[_e]=c.getUTCMonth(),e._a[ke]=c.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=n[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[Ae]&&0===e._a[Se]&&0===e._a[Te]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?Le:Ye).apply(null,p),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(d(e).weekdayMismatch=!0)}}function Et(e){if(e._f===r.ISO_8601)kt(e);else if(e._f===r.RFC_2822)At(e);else{e._a=[],d(e).empty=!0;for(var t,n,i,o,a,u=""+e._i,l=u.length,h=0,c=C(e._f,e._locale).match(B)||[],f=c.length,p=0;p<f;p++)n=c[p],(t=(u.match(de(n,e))||[])[0])&&(0<(i=u.substr(0,u.indexOf(t))).length&&d(e).unusedInput.push(i),u=u.slice(u.indexOf(t)+t.length),h+=t.length),M[n]?(t?d(e).empty=!1:d(e).unusedTokens.push(n),i=n,a=e,null!=(o=t)&&s(me,i)&&me[i](o,a._a,a,i)):e._strict&&!t&&d(e).unusedTokens.push(n);d(e).charsLeftOver=l-h,0<u.length&&d(e).unusedInput.push(u),e._a[xe]<=12&&!0===d(e).bigHour&&0<e._a[xe]&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[xe]=function(e,t,r){return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((e=e.isPM(r))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[xe],e._meridiem),null!==(l=d(e).era)&&(e._a[ve]=e._locale.erasConvertYear(l,e._a[ve])),Tt(e),dt(e)}}function Ot(e){var t,s,o,f=e._i,m=e._f;return e._locale=e._locale||ft(e._l),null===f||void 0===m&&""===f?y({nullInput:!0}):("string"==typeof f&&(e._i=f=e._locale.preparse(f)),_(f)?new v(dt(f)):(l(f)?e._d=f:n(m)?function(e){var t,r,n,i,s,o,a=!1,u=e._f.length;if(0===u)return d(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<u;i++)s=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Et(t),p(t)&&(o=!0),s=(s+=d(t).charsLeftOver)+10*d(t).unusedTokens.length,d(t).score=s,a?s<n&&(n=s,r=t):(null==n||s<n||o)&&(n=s,r=t,o&&(a=!0));c(e,r||t)}(e):m?Et(e):a(m=(f=e)._i)?f._d=new Date(r.now()):l(m)?f._d=new Date(m.valueOf()):"string"==typeof m?(s=f,null!==(t=bt.exec(s._i))?s._d=new Date(+t[1]):(kt(s),!1===s._isValid&&(delete s._isValid,At(s),!1===s._isValid&&(delete s._isValid,s._strict?s._isValid=!1:r.createFromInputFallback(s))))):n(m)?(f._a=h(m.slice(0),(function(e){return parseInt(e,10)})),Tt(f)):i(m)?(t=f)._d||(o=void 0===(s=L(t._i)).day?s.date:s.day,t._a=h([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],(function(e){return e&&parseInt(e,10)})),Tt(t)):u(m)?f._d=new Date(m):r.createFromInputFallback(f),p(e)||(e._d=null),e))}function Rt(e,t,r,s,a){var u={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==r&&!1!==r||(s=r,r=void 0),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=r,u._i=e,u._f=t,u._strict=s,(a=new v(dt(Ot(a=u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Dt(e,t,r,n){return Rt(e,t,r,n,!1)}function Bt(e,t){var r,i;if(!(t=1===t.length&&n(t[0])?t[0]:t).length)return Dt();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}r.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":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){},re=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),ne=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:y()}));var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=(e=L(e)).year||0,r=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Nt.length;for(t in e)if(s(e,t)&&(-1===be.call(Nt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Nt[r]]){if(n)return!1;parseFloat(e[Nt[r]])!==W(e[Nt[r]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*a*60*60,this._days=+o+7*i,this._months=+n+3*r+12*t,this._data={},this._locale=ft(),this._bubble()}function Mt(e){return e instanceof Pt}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){U(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+D(~~(e/60),2)+t+D(~~e%60,2)}))}Ft("Z",":"),Ft("ZZ",""),fe("Z",he),fe("ZZ",he),ge(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=It(he,e)}));var Ct=/([\+\-]|\d\d)/gi;function It(e,t){return null===(t=(t||"").match(e))?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ct)||["-",0,0])[1]+W(e[2]))?0:"+"===e[0]?t:-t}function jt(e,t){var n;return t._isUTC?(t=t.clone(),n=(_(e)||l(e)?e:Dt(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),r.updateOffset(t,!1),t):Dt(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var r,n=e,i=null;return Mt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=zt.exec(e))?(r="-"===i[1]?-1:1,n={y:0,d:W(i[ke])*r,h:W(i[xe])*r,m:W(i[Ae])*r,s:W(i[Se])*r,ms:W(Ut(1e3*i[Te]))*r}):(i=qt.exec(e))?(r="-"===i[1]?-1:1,n={y:Vt(i[2],r),M:Vt(i[3],r),w:Vt(i[4],r),d:Vt(i[5],r),h:Vt(i[6],r),m:Vt(i[7],r),s:Vt(i[8],r)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=function(e,t){var r;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?r=Wt(e,t):((r=Wt(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}(Dt(n.from),Dt(n.to)),(n={}).ms=t.milliseconds,n.M=t.months),i=new Pt(n),Mt(e)&&s(e,"_locale")&&(i._locale=e._locale),Mt(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function Vt(e,t){return e=e&&parseFloat(e.replace(",",".")),(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Kt(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(S(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."),i=r,r=n,n=i),Gt(this,Ht(r,n),e),this}}function Gt(e,t,n,i){var s=t._milliseconds,o=Ut(t._days);t=Ut(t._months),e.isValid()&&(i=null==i||i,t&&Ue(e,G(e,"Month")+t*n),o&&Z(e,"Date",G(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),i&&r.updateOffset(e,o||t))}function Zt(e){return"string"==typeof e||e instanceof String}function Jt(e){return _(e)||l(e)||Zt(e)||u(e)||function(e){var t=n(e),r=!1;return t&&(r=0===e.filter((function(t){return!u(t)&&Zt(e)})).length),t&&r}(e)||function(e){var t,r,n=i(e)&&!o(e),a=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=u.length;for(t=0;t<l;t+=1)r=u[t],a=a||s(e,r);return n&&a}(e)||null==e}function $t(e,t){if(e.date()<t.date())return-$t(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t=t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(1+r,"months")-n)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=ft(e))&&(this._locale=e),this)}function Qt(){return this._locale}Ht.fn=Pt.prototype,Ht.invalid=function(){return Ht(NaN)},De=Kt(1,"add"),Ke=Kt(-1,"subtract"),r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",Ze=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)}));var er,tr=126227808e5;function rr(e,t){return(e%t+t)%t}function nr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-tr:new Date(e,t,r).valueOf()}function ir(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-tr:Date.UTC(e,t,r)}function sr(e,t){return t.erasAbbrRegex(e)}function or(){for(var e=[],t=[],r=[],n=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(pe(i[s].name)),e.push(pe(i[s].abbr)),r.push(pe(i[s].narrow)),n.push(pe(i[s].name)),n.push(pe(i[s].abbr)),n.push(pe(i[s].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ar(e,t){U(0,[e,e.length],0,t)}function ur(e,t,r,n,i){var s;return null==e?He(this,n,i).year:(s=Ve(e,n,i),function(e,t,r,n,i){return t=Le((e=qe(e,t,r,n,i)).year,0,e.dayOfYear),this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=s<t?s:t,r,n,i))}for(U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),fe("N",sr),fe("NN",sr),fe("NNN",sr),fe("NNNN",(function(e,t){return t.erasNameRegex(e)})),fe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){(n=r._locale.erasParse(e,n,r._strict))?d(r).era=n:d(r).invalidEra=e})),fe("y",ae),fe("yy",ae),fe("yyy",ae),fe("yyyy",ae),fe("yo",(function(e,t){return t._eraYearOrdinalRegex||ae})),ge(["y","yy","yyy","yyyy"],ve),ge(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ve]=r._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ar("gggg","weekYear"),ar("ggggg","weekYear"),ar("GGGG","isoWeekYear"),ar("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),fe("G",ue),fe("g",ue),fe("GG",te,$),fe("gg",te,$),fe("GGGG",se,Q),fe("gggg",se,Q),fe("GGGGG",oe,ee),fe("ggggg",oe,ee),we(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=W(e)})),we(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),j("quarter","Q"),q("quarter",7),fe("Q",J),ge("Q",(function(e,t){t[_e]=3*(W(e)-1)})),U("D",["DD",2],"Do","date"),j("date","D"),q("date",9),fe("D",te),fe("DD",te,$),fe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],ke),ge("Do",(function(e,t){t[ke]=W(e.match(te)[0])})),se=K("Date",!0),U("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),q("dayOfYear",4),fe("DDD",ie),fe("DDDD",X),ge(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=W(e)})),U("m",["mm",2],0,"minute"),j("minute","m"),q("minute",14),fe("m",te),fe("mm",te,$),ge(["m","mm"],Ae),Q=K("Minutes",!1),U("s",["ss",2],0,"second"),j("second","s"),q("second",15),fe("s",te),fe("ss",te,$),ge(["s","ss"],Se),oe=K("Seconds",!1),U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),q("millisecond",16),fe("S",ie,J),fe("SS",ie,$),fe("SSS",ie,X),er="SSSS";er.length<=9;er+="S")fe(er,ae);function lr(e,t){t[Te]=W(1e3*("0."+e))}for(er="S";er.length<=9;er+="S")ge(er,lr);function hr(e){return e}function cr(e,t,r,n){var i=ft();return n=f().set(n,t),i[r](n,e)}function fr(e,t,r){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return cr(e,t,r,"month");for(var n=[],i=0;i<12;i++)n[i]=cr(e,i,r,"month");return n}function dr(e,t,r,n){"boolean"==typeof e?u(t)&&(r=t,t=void 0):(t=e,e=!1,u(r=t)&&(r=t,t=void 0)),t=t||"";var i,s=ft(),o=e?s._week.dow:0,a=[];if(null!=r)return cr(t,(r+o)%7,n,"day");for(i=0;i<7;i++)a[i]=cr(t,(i+o)%7,n,"day");return a}ee=K("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName"),(J=v.prototype).add=De,J.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=i(e)&&!o(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a=0;a<n.length;a+=1)r=r||s(e,n[a]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=jt(e=e||Dt(),this).startOf("day");return n=r.calendarFormat(this,n)||"sameElse",t=t&&(T(t[n])?t[n].call(this,e):t[n]),this.format(t||this.localeData().calendar(n,this,Dt(e)))},J.clone=function(){return new v(this)},J.diff=function(e,t,r){var n,i,s;if(!this.isValid())return NaN;if(!(n=jt(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=Y(t)){case"year":s=$t(this,n)/12;break;case"month":s=$t(this,n);break;case"quarter":s=$t(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-i)/864e5;break;case"week":s=(this-n-i)/6048e5;break;default:s=this-n}return r?s:V(s)},J.endOf=function(e){var t,n;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ir:nr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-rr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-rr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-rr(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},J.format=function(e){return e=F(this,e=e||(this.isUtc()?r.defaultFormatUtc:r.defaultFormat)),this.localeData().postformat(e)},J.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Dt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},J.fromNow=function(e){return this.from(Dt(),e)},J.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Dt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},J.toNow=function(e){return this.to(Dt(),e)},J.get=function(e){return T(this[e=Y(e)])?this[e]():this},J.invalidAt=function(){return d(this).overflow},J.isAfter=function(e,t){return e=_(e)?e:Dt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},J.isBefore=function(e,t){return e=_(e)?e:Dt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},J.isBetween=function(e,t,r,n){return e=_(e)?e:Dt(e),t=_(t)?t:Dt(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===n[1]?this.isBefore(t,r):!this.isAfter(t,r))},J.isSame=function(e,t){return e=_(e)?e:Dt(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},J.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},J.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},J.isValid=function(){return p(this)},J.lang=Ze,J.locale=Xt,J.localeData=Qt,J.max=ne,J.min=re,J.parsingFlags=function(){return c({},d(this))},J.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:z[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}(e=L(e)),n=r.length,i=0;i<n;i++)this[r[i].unit](e[r[i].unit]);else if(T(this[e=Y(e)]))return this[e](t);return this},J.startOf=function(e){var t,n;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ir:nr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=rr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=rr(t,6e4);break;case"second":t=this._d.valueOf(),t-=rr(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},J.subtract=Ke,J.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},J.toObject=function(){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()}},J.toDate=function(){return new Date(this.valueOf())},J.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?F(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(t,"Z")):F(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},J.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},J.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},J.eraName=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},J.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},J.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},J.eraYear=function(){for(var e,t,n=this.localeData().eras(),i=0,s=n.length;i<s;++i)if(e=n[i].since<=n[i].until?1:-1,t=this.clone().startOf("day").valueOf(),n[i].since<=t&&t<=n[i].until||n[i].until<=t&&t<=n[i].since)return(this.year()-r(n[i].since).year())*e+n[i].offset;return this.year()},J.year=je,J.isLeapYear=function(){return H(this.year())},J.weekYear=function(e){return ur.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},J.isoWeekYear=function(e){return ur.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},J.quarter=J.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},J.month=Fe,J.daysInMonth=function(){return Re(this.year(),this.month())},J.week=J.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},J.isoWeek=J.isoWeeks=function(e){var t=He(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},J.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},J.weeksInWeekYear=function(){var e=this.localeData()._week;return Ve(this.weekYear(),e.dow,e.doy)},J.isoWeeksInYear=function(){return Ve(this.year(),1,4)},J.isoWeeksInISOWeekYear=function(){return Ve(this.isoWeekYear(),1,4)},J.date=se,J.day=J.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},J.weekday=function(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")},J.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN;var t,r},J.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},J.hour=J.hours=ce,J.minute=J.minutes=Q,J.second=J.seconds=oe,J.millisecond=J.milliseconds=ee,J.utcOffset=function(e,t,n){var i,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?s:Yt(this);if("string"==typeof e){if(null===(e=It(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Yt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?Gt(this,Ht(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this},J.utc=function(e){return this.utcOffset(0,e)},J.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},J.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=It(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},J.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},J.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},J.isLocal=function(){return!!this.isValid()&&!this._isUTC},J.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},J.isUtc=Lt,J.isUTC=Lt,J.zoneAbbr=function(){return this._isUTC?"UTC":""},J.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},J.dates=x("dates accessor is deprecated. Use date instead.",se),J.months=x("months accessor is deprecated. Use month instead",Fe),J.years=x("years accessor is deprecated. Use year instead",je),J.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),J.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Ot(t))._a?(e=(t._isUTC?f:Dt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),i=0,s=0;s<r;s++)W(e[s])!==W(t[s])&&i++;return i+n}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted})),($=O.prototype).calendar=function(e,t,r){return T(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},$.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(B).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},$.invalidDate=function(){return this._invalidDate},$.ordinal=function(e){return this._ordinal.replace("%d",e)},$.preparse=hr,$.postformat=hr,$.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return T(i)?i(e,t,r,n):i.replace(/%d/i,e)},$.pastFuture=function(e,t){return T(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},$.set=function(e){var t,r;for(r in e)s(e,r)&&(T(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$.eras=function(e,t){for(var n,i=this._eras||ft("en")._eras,s=0,o=i.length;s<o;++s)switch("string"==typeof i[s].since&&(n=r(i[s].since).startOf("day"),i[s].since=n.valueOf()),typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":n=r(i[s].until).startOf("day").valueOf(),i[s].until=n.valueOf()}return i},$.erasParse=function(e,t,r){var n,i,s,o,a,u=this.eras();for(e=e.toUpperCase(),n=0,i=u.length;n<i;++n)if(s=u[n].name.toUpperCase(),o=u[n].abbr.toUpperCase(),a=u[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return u[n];break;case"NNNN":if(s===e)return u[n];break;case"NNNNN":if(a===e)return u[n]}else if(0<=[s,o,a].indexOf(e))return u[n]},$.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},$.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||or.call(this),e?this._erasAbbrRegex:this._erasRegex},$.erasNameRegex=function(e){return s(this,"_erasNameRegex")||or.call(this),e?this._erasNameRegex:this._erasRegex},$.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||or.call(this),e?this._erasNarrowRegex:this._erasRegex},$.months=function(e,t){return e?(n(this._months)?this._months:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"])[e.month()]:n(this._months)?this._months:this._months.standalone},$.monthsShort=function(e,t){return e?(n(this._monthsShort)?this._monthsShort:this._monthsShort[Ne.test(t)?"format":"standalone"])[e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$.monthsParse=function(e,t,r){var n,i;if(this._monthsParseExact)return function(e,t,r){var n,i,s;if(e=e.toLocaleLowerCase(),!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,e))?i:null:-1!==(i=be.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,e))||-1!==(i=be.call(this._longMonthsParse,e))?i:null:-1!==(i=be.call(this._longMonthsParse,e))||-1!==(i=be.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=f([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MM