PageSourceSearch

https://static.monarch.com/static/js/forecast.worker.a062d5c1.chunk.js

js monarch.com collected 2026-10-03 21:24:58 UTC 318,738 bytes, 2 lines download raw bytes

vendor: 4,349 bytes, line 1
1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="af7d2939-d3be-4d97-9652-4feb0963b9cd",t._sentryDebugIdIdentifier="sentry-dbid-af7d2939-d3be-4d97-9652-4feb0963b9cd")}catch(t){}}(),(()=>{var t={80168:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",u="week",c="month",l="quarter",f="year",h="date",d="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},p=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+p(r,2,"0")+":"+p(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),a=n-i<0,o=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:u,d:s,D:h,h:o,m:a,s:i,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",E={};E[v]=_;var T="$isDayjsObject",I=function(t){return t instanceof A||!(!t||!t[T])},O=function t(e,n,r){var i;if(!e)return v;if("string"==typeof e){var a=e.toLowerCase();E[a]&&(i=a),n&&(E[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;E[s]=e,i=s}return!r&&i&&(v=i),i||!r&&v},N=function(t,e){if(I(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},S=y;S.l=O,S.i=I,S.w=function(t,e){return N(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function _(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[T]=!0}var p=_.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(g);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return S},p.isValid=function(){return!(this.$d.toString()===d)},p.isSame=function(t,e){var n=N(t);return this.startOf(e)<=n&&n<=this.endOf(e)},p.isAfter=function(t,e){return N(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<N(t)},p.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,e){var n=this,r=!!S.u(e)||e,l=S.p(t),d=function(t,e){var i=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},g=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,_=this.$M,p=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case c:return r?d(1,_):d(0,_+1);case u:var v=this.$locale().weekStart||0,E=(m<v?m+7:m)-v;return d(r?p-E:p+(6-E),_);case s:case h:return g(y+"Hours",0);case o:return g(y+"Minutes",1);case a:return g(y+"Seconds",2);case i:return g(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(t,e){var n,u=S.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[s]=l+"Date",n[h]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[o]=l+"Hours",n[a]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],g=u===s?this.$D+(e-this.$W):e;if(u===c||u===f){var m=this.clone().set(h,1);
vendor: 4,758 bytes, line 1
1m.$d[d](g),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](g);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[S.p(t)]()},p.add=function(r,l){var h,d=this;r=Number(r);var g=S.p(l),m=function(t){var e=N(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(g===c)return this.set(c,this.$M+r);if(g===f)return this.set(f,this.$y+r);if(g===s)return m(1);if(g===u)return m(7);var _=(h={},h[a]=e,h[o]=n,h[i]=t,h)[g]||1,p=this.$d.getTime()+r*_;return S.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,o=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},h=function(t){return S.s(a%12||12,t,"0")},g=l||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(n.weekdaysMin,e.$W,u,2);case"ddd":return f(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return S.s(o,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(r,h,d){var g,m=this,_=S.p(h),p=N(r),y=(p.utcOffset()-this.utcOffset())*e,v=this-p,E=function(){return S.m(m,p)};switch(_){case f:g=E()/12;break;case c:g=E();break;case l:g=E()/3;break;case u:g=(v-y)/6048e5;break;case s:g=(v-y)/864e5;break;case o:g=v/n;break;case a:g=v/e;break;case i:g=v/t;break;default:g=v}return d?g:S.a(g)},p.daysInMonth=function(){return this.endOf(c).$D},p.$locale=function(){return E[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},p.clone=function(){return S.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},_}(),w=A.prototype;return N.prototype=w,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",c],["$y",f],["$D",h]].forEach((function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),N.extend=function(t,e){return t.$i||(t(e,A,N),t.$i=!0),N},N.locale=O,N.isDayjs=I,N.unix=function(t){return N(1e3*t)},N.en=E[v],N.Ls=E,N.p={},N}()},42735:function(t,e,n){var r;t=n.nmd(t),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",u=16,c=32,l=64,f=128,h=256,d=1/0,g=9007199254740991,m=NaN,_=4294967295,p=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",c],["partialRight",l],["rearg",h]],y="[object Arguments]",v="[object Array]",E="[object Boolean]",T="[object Date]",I="[object Error]",O="[object Function]",N="[object GeneratorFunction]",S="[object Map]",A="[object Number]",w="[object Object]",R="[object Promise]",b="[object RegExp]",D="[object Set]",C="[object String]",L="[object Symbol]",M="[object WeakMap]",P="[object ArrayBuffer]",x="[object DataView]",U="[object Float32Array]",k="[object Float64Array]",Y="[object Int8Array]",F="[object Int16Array]",G="[object Int32Array]",V="[object Uint8Array]",H="[object Uint8ClampedArray]",B="[object Uint16Array]",W="[object Uint32Array]",j=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(Z.source),X=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,at=RegExp(it.source),ot=/^\s+/,st=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ct=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,gt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,Et=/^(?:0|[1-9]\d*)$/,Tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,066 bytes, line 1
17f]/g,It=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,Nt="\\ud800-\\udfff",St="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",wt="a-z\\xdf-\\xf6\\xf8-\\xff",Rt="A-Z\\xc0-\\xd6\\xd8-\\xde",bt="\\ufe0e\\ufe0f",Dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ct="['\u2019]",Lt="["+Nt+"]",Mt="["+Dt+"]",Pt="["+St+"]",xt="\\d+",Ut="["+At+"]",kt="["+wt+"]",Yt="[^"+Nt+Dt+xt+At+wt+Rt+"]",Ft="\\ud83c[\\udffb-\\udfff]",Gt="[^"+Nt+"]",Vt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Rt+"]",Wt="\\u200d",jt="(?:"+kt+"|"+Yt+")",$t="(?:"+Bt+"|"+Yt+")",zt="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Zt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Pt+"|"+Ft+")"+"?",Kt="["+bt+"]?",Xt=Kt+qt+("(?:"+Wt+"(?:"+[Gt,Vt,Ht].join("|")+")"+Kt+qt+")*"),Jt="(?:"+[Ut,Vt,Ht].join("|")+")"+Xt,Qt="(?:"+[Gt+Pt+"?",Pt,Vt,Ht,Lt].join("|")+")",te=RegExp(Ct,"g"),ee=RegExp(Pt,"g"),ne=RegExp(Ft+"(?="+Ft+")|"+Qt+Xt,"g"),re=RegExp([Bt+"?"+kt+"+"+zt+"(?="+[Mt,Bt,"$"].join("|")+")",$t+"+"+Zt+"(?="+[Mt,Bt+jt,"$"].join("|")+")",Bt+"?"+jt+"+"+zt,Bt+"+"+Zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xt,Jt].join("|"),"g"),ie=RegExp("["+Wt+Nt+St+bt+"]"),ae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,oe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,ue={};ue[U]=ue[k]=ue[Y]=ue[F]=ue[G]=ue[V]=ue[H]=ue[B]=ue[W]=!0,ue[y]=ue[v]=ue[P]=ue[E]=ue[x]=ue[T]=ue[I]=ue[O]=ue[S]=ue[A]=ue[w]=ue[b]=ue[D]=ue[C]=ue[M]=!1;var ce={};ce[y]=ce[v]=ce[P]=ce[x]=ce[E]=ce[T]=ce[U]=ce[k]=ce[Y]=ce[F]=ce[G]=ce[S]=ce[A]=ce[w]=ce[b]=ce[D]=ce[C]=ce[L]=ce[V]=ce[H]=ce[B]=ce[W]=!0,ce[I]=ce[O]=ce[M]=!1;var le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,he=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ge="object"==typeof self&&self&&self.Object===Object&&self,me=de||ge||Function("return this")(),_e=e&&!e.nodeType&&e,pe=_e&&t&&!t.nodeType&&t,ye=pe&&pe.exports===_e,ve=ye&&de.process,Ee=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(e){}}(),Te=Ee&&Ee.isArrayBuffer,Ie=Ee&&Ee.isDate,Oe=Ee&&Ee.isMap,Ne=Ee&&Ee.isRegExp,Se=Ee&&Ee.isSet,Ae=Ee&&Ee.isTypedArray;function we(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Re(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i<a;){var o=t[i];e(r,o,n(o),t)}return r}function be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function De(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function Me(t,e){return!!(null==t?0:t.length)&&Be(t,e,0)>-1}function Pe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function xe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ue(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function ke(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function Ye(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Fe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ge=ze("length");function Ve(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function He(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}function Be(t,e,n){return e===e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):He(t,je,n)}function We(t,e,n,r){for(var i=n-1,a=t.length;++i<a;)if(r(t[i],e))return i;return-1}function je(t){return t!==t}function $e(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:m}function ze(t){return function(e){return null==e?i:e[t]}}function Ze(t){return function(e){return null==t?i:t[e]}}function qe(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}function Ke(t,e){for(var n,r=-1,a=t.length;++r<a;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Je(t){return t?t.slice(0,_n(t)+1).replace(ot,""):t}function Qe(t){return function(e){return t(e)}}function tn(t,e){return xe(e,(function(e){return t[e]}))}function en(t,e){return t.has(e)}function nn(t,e){for(var n=-1,r=t.length;++n<r&&Be(e,t[n],0)>-1;);return n}function rn(t,e){for(var n=t.length;n--&&Be(e,t[n],0)>-1;);return n}var an=Ze({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
1c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Ze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(t){return"\\"+le[t]}function un(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ln(t,e){return function(n){return t(e(n))}}function fn(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n];o!==e&&o!==s||(t[n]=s,a[i++]=n)}return a}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function dn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function gn(t){return un(t)?function(t){var e=ne.lastIndex=0;for(;ne.test(t);)++e;return e}(t):Ge(t)}function mn(t){return un(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function _n(t){for(var e=t.length;e--&&st.test(t.charAt(e)););return e}var pn=Ze({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function t(e){var n=(e=null==e?me:yn.defaults(me.Object(),e,yn.pick(me,oe))).Array,r=e.Date,st=e.Error,Nt=e.Function,St=e.Math,At=e.Object,wt=e.RegExp,Rt=e.String,bt=e.TypeError,Dt=n.prototype,Ct=Nt.prototype,Lt=At.prototype,Mt=e["__core-js_shared__"],Pt=Ct.toString,xt=Lt.hasOwnProperty,Ut=0,kt=function(){var t=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Yt=Lt.toString,Ft=Pt.call(At),Gt=me._,Vt=wt("^"+Pt.call(xt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=ye?e.Buffer:i,Bt=e.Symbol,Wt=e.Uint8Array,jt=Ht?Ht.allocUnsafe:i,$t=ln(At.getPrototypeOf,At),zt=At.create,Zt=Lt.propertyIsEnumerable,qt=Dt.splice,Kt=Bt?Bt.isConcatSpreadable:i,Xt=Bt?Bt.iterator:i,Jt=Bt?Bt.toStringTag:i,Qt=function(){try{var t=fa(At,"defineProperty");return t({},"",{}),t}catch(e){}}(),ne=e.clearTimeout!==me.clearTimeout&&e.clearTimeout,ie=r&&r.now!==me.Date.now&&r.now,le=e.setTimeout!==me.setTimeout&&e.setTimeout,de=St.ceil,ge=St.floor,_e=At.getOwnPropertySymbols,pe=Ht?Ht.isBuffer:i,ve=e.isFinite,Ee=Dt.join,Ge=ln(At.keys,At),Ze=St.max,vn=St.min,En=r.now,Tn=e.parseInt,In=St.random,On=Dt.reverse,Nn=fa(e,"DataView"),Sn=fa(e,"Map"),An=fa(e,"Promise"),wn=fa(e,"Set"),Rn=fa(e,"WeakMap"),bn=fa(At,"create"),Dn=Rn&&new Rn,Cn={},Ln=ka(Nn),Mn=ka(Sn),Pn=ka(An),xn=ka(wn),Un=ka(Rn),kn=Bt?Bt.prototype:i,Yn=kn?kn.valueOf:i,Fn=kn?kn.toString:i;function Gn(t){if(es(t)&&!Wo(t)&&!(t instanceof Wn)){if(t instanceof Bn)return t;if(xt.call(t,"__wrapped__"))return Ya(t)}return new Bn(t)}var Vn=function(){function t(){}return function(e){if(!ts(e))return{};if(zt)return zt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Hn(){}function Bn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $n(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Zn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new zn;++e<n;)this.add(t[e])}function qn(t){var e=this.__data__=new $n(t);this.size=e.size}function Kn(t,e){var n=Wo(t),r=!n&&Bo(t),i=!n&&!r&&Zo(t),a=!n&&!r&&!i&&cs(t),o=n||r||i||a,s=o?Xe(t.length,Rt):[],u=s.length;for(var c in t)!e&&!xt.call(t,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ya(c,u))||s.push(c);return s}function Xn(t){var e=t.length;return e?t[Zr(0,e-1)]:i}function Jn(t,e){return Pa(bi(t),sr(e,0,t.length))}function Qn(t){return Pa(bi(t))}function tr(t,e,n){(n!==i&&!Go(t[e],n)||n===i&&!(e in t))&&ar(t,e,n)}function er(t,e,n){var r=t[e];xt.call(t,e)&&Go(r,n)&&(n!==i||e in t)||ar(t,e,n)}function nr(t,e){for(var n=t.length;n--;)if(Go(t[n][0],e))return n;return-1}function rr(t,e,n,r){return hr(t,(function(t,i,a){e(r,t,n(t),a)})),r}function ir(t,e){return t&&Di(e,Cs(e),t)}function ar(t,e,n){"__proto__"==e&&Qt?Qt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function or(t,e){for(var r=-1,a=e.length,o=n(a),s=null==t;++r<a;)o[r]=s?i:As(t,e[r]);return o}function sr(t,e,n){return t===t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function ur(t,e,n,r,a,o){var s,u=1&e,c=2&e,l=4&e;if(n&&(s=a?n(t,r,a,o):n(t)),s!==i)return s;if(!ts(t))return t;var f=Wo(t);
vendor: 6,614 bytes, line 1
1if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&xt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return bi(t,s)}else{var h=ga(t),d=h==O||h==N;if(Zo(t))return Oi(t,u);if(h==w||h==y||d&&!a){if(s=c||d?{}:_a(t),!u)return c?function(t,e){return Di(t,da(t),e)}(t,function(t,e){return t&&Di(e,Ls(e),t)}(s,t)):function(t,e){return Di(t,ha(t),e)}(t,ir(s,t))}else{if(!ce[h])return a?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case P:return Ni(t);case E:case T:return new r(+t);case x:return function(t,e){var n=e?Ni(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case U:case k:case Y:case F:case G:case V:case H:case B:case W:return Si(t,n);case S:return new r;case A:case C:return new r(t);case b:return function(t){var e=new t.constructor(t.source,mt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case D:return new r;case L:return i=t,Yn?At(Yn.call(i)):{}}var i}(t,h,u)}}o||(o=new qn);var g=o.get(t);if(g)return g;o.set(t,s),os(t)?t.forEach((function(r){s.add(ur(r,e,n,r,t,o))})):ns(t)&&t.forEach((function(r,i){s.set(i,ur(r,e,n,i,t,o))}));var m=f?i:(l?c?ia:ra:c?Ls:Cs)(t);return be(m||t,(function(r,i){m&&(r=t[i=r]),er(s,i,ur(r,e,n,i,t,o))})),s}function cr(t,e,n){var r=n.length;if(null==t)return!r;for(t=At(t);r--;){var a=n[r],o=e[a],s=t[a];if(s===i&&!(a in t)||!o(s))return!1}return!0}function lr(t,e,n){if("function"!=typeof t)throw new bt(a);return Da((function(){t.apply(i,n)}),e)}function fr(t,e,n,r){var i=-1,a=Me,o=!0,s=t.length,u=[],c=e.length;if(!s)return u;n&&(e=xe(e,Qe(n))),r?(a=Pe,o=!1):e.length>=200&&(a=en,o=!1,e=new Zn(e));t:for(;++i<s;){var l=t[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,o&&f===f){for(var h=c;h--;)if(e[h]===f)continue t;u.push(l)}else a(e,f,r)||u.push(l)}return u}Gn.templateSettings={escape:J,evaluate:Q,interpolate:tt,variable:"",imports:{_:Gn}},Gn.prototype=Hn.prototype,Gn.prototype.constructor=Gn,Bn.prototype=Vn(Hn.prototype),Bn.prototype.constructor=Bn,Wn.prototype=Vn(Hn.prototype),Wn.prototype.constructor=Wn,jn.prototype.clear=function(){this.__data__=bn?bn(null):{},this.size=0},jn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jn.prototype.get=function(t){var e=this.__data__;if(bn){var n=e[t];return n===o?i:n}return xt.call(e,t)?e[t]:i},jn.prototype.has=function(t){var e=this.__data__;return bn?e[t]!==i:xt.call(e,t)},jn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bn&&e===i?o:e,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0)&&(n==e.length-1?e.pop():qt.call(e,n,1),--this.size,!0)},$n.prototype.get=function(t){var e=this.__data__,n=nr(e,t);return n<0?i:e[n][1]},$n.prototype.has=function(t){return nr(this.__data__,t)>-1},$n.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(Sn||$n),string:new jn}},zn.prototype.delete=function(t){var e=ca(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return ca(this,t).get(t)},zn.prototype.has=function(t){return ca(this,t).has(t)},zn.prototype.set=function(t,e){var n=ca(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(t){return this.__data__.set(t,o),this},Zn.prototype.has=function(t){return this.__data__.has(t)},qn.prototype.clear=function(){this.__data__=new $n,this.size=0},qn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},qn.prototype.get=function(t){return this.__data__.get(t)},qn.prototype.has=function(t){return this.__data__.has(t)},qn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Sn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var hr=Mi(Er),dr=Mi(Tr,!0);function gr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(t,e,n){for(var r=-1,a=t.length;++r<a;){var o=t[r],s=e(o);if(null!=s&&(u===i?s===s&&!us(s):n(s,u)))var u=s,c=o}return c}function _r(t,e){var n=[];return hr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function pr(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=pa),i||(i=[]);++a<o;){var s=t[a];e>0&&n(s)?e>1?pr(s,e-1,n,r,i):Ue(i,s):r||(i[i.length]=s)}return i}var yr=Pi(),vr=Pi(!0);function Er(t,e){return t&&yr(t,e,Cs)}function Tr(t,e){return t&&vr(t,e,Cs)}function Ir(t,e){return Le(e,(function(e){return Xo(t[e])}))}function Or(t,e){for(var n=0,r=(e=vi(e,t)).length;null!=t&&n<r;)t=t[Ua(e[n++])];return n&&n==r?t:i}function Nr(t,e,n){var r=e(t);return Wo(t)?r:Ue(r,n(t))}function Sr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in At(t)?function(t){var e=xt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(o){}var a=Yt.call(t);r&&(e?t[Jt]=n:delete t[Jt]);return a}(t):function(t){return Yt.call(t)}(t)}function Ar(t,e){return t>e}function wr(t,e){return null!=t&&xt.call(t,e)}function Rr(t,e){return null!=t&&e in At(t)}function br(t,e,r){for(var a=r?Pe:Me,o=t[0].length,s=t.length,u=s,c=n(s),l=1/0,f=[];u--;){var h=t[u];u&&e&&(h=xe(h,Qe(e))),l=vn(h.length,l),c[u]=!r&&(e||o>=120&&h.length>=120)?new Zn(u&&h):i}h=t[0];var d=-1,g=c[0];t:for(;++d<o&&f.length<l;){var m=h[d],_=e?e(m):m;if(m=r||0!==m?m:0,!(g?en(g,_):a(f,_,r))){for(u=s;--u;){var p=c[u];if(!(p?en(p,_):a(t[u],_,r)))continue t}g&&g.push(_),f.push(m)}}return f}function Dr(t,e,n){var r=null==(t=wa(t,e=vi(e,t)))?t:t[Ua(qa(e))];return null==r?i:we(r,t,n)}function Cr(t){return es(t)&&Sr(t)==y}function Lr(t,e,n,r,a){return t===e||(null==t||null==e||!es(t)&&!es(e)?t!==t&&e!==e:function(t,e,n,r,a,o){var s=Wo(t),u=Wo(e),c=s?v:ga(t),l=u?v:ga(e),f=(c=c==y?w:c)==w,h=(l=l==y?w:l)==w,d=c==l;if(d&&Zo(t)){if(!Zo(e))return!1;s=!0,f=!1}if(d&&!f)return o||(o=new qn),s||cs(t)?ea(t,e,n,r,a,o):function(t,e,n,r,i,a,o){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!a(new Wt(t),new Wt(e)));case E:case T:case A:return Go(+t,+e);case I:return t.name==e.name&&t.message==e.message;case b:case C:return t==e+"";case S:var s=cn;case D:var u=1&r;if(s||(s=hn),t.size!=e.size&&!u)return!1;var c=o.get(t);if(c)return c==e;r|=2,o.set(t,e);var l=ea(s(t),s(e),r,i,a,o);return o.delete(t),l;case L:if(Yn)return Yn.call(t)==Yn.call(e)}return!1}(t,e,c,n,r,a,o);if(!(1&n)){var g=f&&xt.call(t,"__wrapped__"),m=h&&xt.call(e,"__wrapped__");
vendor: 29,307 bytes, line 1
1if(g||m){var _=g?t.value():t,p=m?e.value():e;return o||(o=new qn),a(_,p,n,r,o)}}if(!d)return!1;return o||(o=new qn),function(t,e,n,r,a,o){var s=1&n,u=ra(t),c=u.length,l=ra(e),f=l.length;if(c!=f&&!s)return!1;var h=c;for(;h--;){var d=u[h];if(!(s?d in e:xt.call(e,d)))return!1}var g=o.get(t),m=o.get(e);if(g&&m)return g==e&&m==t;var _=!0;o.set(t,e),o.set(e,t);var p=s;for(;++h<c;){var y=t[d=u[h]],v=e[d];if(r)var E=s?r(v,y,d,e,t,o):r(y,v,d,t,e,o);if(!(E===i?y===v||a(y,v,n,r,o):E)){_=!1;break}p||(p="constructor"==d)}if(_&&!p){var T=t.constructor,I=e.constructor;T==I||!("constructor"in t)||!("constructor"in e)||"function"==typeof T&&T instanceof T&&"function"==typeof I&&I instanceof I||(_=!1)}return o.delete(t),o.delete(e),_}(t,e,n,r,a,o)}(t,e,n,r,Lr,a))}function Mr(t,e,n,r){var a=n.length,o=a,s=!r;if(null==t)return!o;for(t=At(t);a--;){var u=n[a];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<o;){var c=(u=n[a])[0],l=t[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in t))return!1}else{var h=new qn;if(r)var d=r(l,f,c,t,e,h);if(!(d===i?Lr(f,l,3,r,h):d))return!1}}return!0}function Pr(t){return!(!ts(t)||(e=t,kt&&kt in e))&&(Xo(t)?Vt:yt).test(ka(t));var e}function xr(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?Wo(t)?Vr(t[0],t[1]):Gr(t):hu(t)}function Ur(t){if(!Oa(t))return Ge(t);var e=[];for(var n in At(t))xt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function kr(t){if(!ts(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=Oa(t),n=[];for(var r in t)("constructor"!=r||!e&&xt.call(t,r))&&n.push(r);return n}function Yr(t,e){return t<e}function Fr(t,e){var r=-1,i=$o(t)?n(t.length):[];return hr(t,(function(t,n,a){i[++r]=e(t,n,a)})),i}function Gr(t){var e=la(t);return 1==e.length&&e[0][2]?Sa(e[0][0],e[0][1]):function(n){return n===t||Mr(n,t,e)}}function Vr(t,e){return Ea(t)&&Na(e)?Sa(Ua(t),e):function(n){var r=As(n,t);return r===i&&r===e?ws(n,t):Lr(e,r,3)}}function Hr(t,e,n,r,a){t!==e&&yr(e,(function(o,s){if(a||(a=new qn),ts(o))!function(t,e,n,r,a,o,s){var u=Ra(t,n),c=Ra(e,n),l=s.get(c);if(l)return void tr(t,n,l);var f=o?o(u,c,n+"",t,e,s):i,h=f===i;if(h){var d=Wo(c),g=!d&&Zo(c),m=!d&&!g&&cs(c);f=c,d||g||m?Wo(u)?f=u:zo(u)?f=bi(u):g?(h=!1,f=Oi(c,!0)):m?(h=!1,f=Si(c,!0)):f=[]:is(c)||Bo(c)?(f=u,Bo(u)?f=ps(u):ts(u)&&!Xo(u)||(f=_a(c))):h=!1}h&&(s.set(c,f),a(f,c,r,o,s),s.delete(c));tr(t,n,f)}(t,e,s,n,Hr,r,a);else{var u=r?r(Ra(t,s),o,s+"",t,e,a):i;u===i&&(u=o),tr(t,s,u)}}),Ls)}function Br(t,e){var n=t.length;if(n)return ya(e+=e<0?n:0,n)?t[e]:i}function Wr(t,e,n){e=e.length?xe(e,(function(t){return Wo(t)?function(e){return Or(e,1===t.length?t[0]:t)}:t})):[ru];var r=-1;e=xe(e,Qe(ua()));var i=Fr(t,(function(t,n,i){var a=xe(e,(function(e){return e(t)}));return{criteria:a,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,a=e.criteria,o=i.length,s=n.length;for(;++r<o;){var u=Ai(i[r],a[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function jr(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=Or(t,o);n(s,o)&&Qr(a,vi(o,t),s)}return a}function $r(t,e,n,r){var i=r?We:Be,a=-1,o=e.length,s=t;for(t===e&&(e=bi(e)),n&&(s=xe(t,Qe(n)));++a<o;)for(var u=0,c=e[a],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==t&&qt.call(s,u,1),qt.call(t,u,1);return t}function zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;ya(i)?qt.call(t,i,1):fi(t,i)}}return t}function Zr(t,e){return t+ge(In()*(e-t+1))}function qr(t,e){var n="";if(!t||e<1||e>g)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Kr(t,e){return Ca(Aa(t,e,ru),t+"")}function Xr(t){return Xn(Gs(t))}function Jr(t,e){var n=Gs(t);return Pa(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!ts(t))return t;for(var a=-1,o=(e=vi(e,t)).length,s=o-1,u=t;null!=u&&++a<o;){var c=Ua(e[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(a!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=ts(f)?f:ya(e[a+1])?[]:{})}er(u,c,l),u=u[c]}return t}var ti=Dn?function(t,e){return Dn.set(t,e),t}:ru,ei=Qt?function(t,e){return Qt(t,"toString",{configurable:!0,enumerable:!1,value:tu(e),writable:!0})}:ru;function ni(t){return Pa(Gs(t))}function ri(t,e,r){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),(r=r>a?a:r)<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var o=n(a);++i<a;)o[i]=t[i+e];return o}function ii(t,e){var n;return hr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=t[a];null!==o&&!us(o)&&(n?o<=e:o<e)?r=a+1:i=a}return i}return oi(t,e,ru,n)}function oi(t,e,n,r){var a=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!==e,u=null===e,c=us(e),l=e===i;a<o;){var f=ge((a+o)/2),h=n(t[f]),d=h!==i,g=null===h,m=h===h,_=us(h);if(s)var p=r||m;else p=l?m&&(r||d):u?m&&d&&(r||!g):c?m&&d&&!g&&(r||!_):!g&&!_&&(r?h<=e:h<e);p?a=f+1:o=f}return vn(o,4294967294)}function si(t,e){for(var n=-1,r=t.length,i=0,a=[];++n<r;){var o=t[n],s=e?e(o):o;if(!n||!Go(s,u)){var u=s;a[i++]=0===o?0:o}}return a}function ui(t){return"number"==typeof t?t:us(t)?m:+t}function ci(t){if("string"==typeof t)return t;if(Wo(t))return xe(t,ci)+"";if(us(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function li(t,e,n){var r=-1,i=Me,a=t.length,o=!0,s=[],u=s;if(n)o=!1,i=Pe;else if(a>=200){var c=e?null:qi(t);if(c)return hn(c);o=!1,i=en,u=new Zn}else u=e?[]:s;t:for(;++r<a;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,o&&f===f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function fi(t,e){return null==(t=wa(t,e=vi(e,t)))||delete t[Ua(qa(e))]}function hi(t,e,n,r){return Qr(t,e,n(Or(t,e)),r)}function di(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?ri(t,r?0:a,r?a+1:i):ri(t,r?a+1:0,r?i:a)}function gi(t,e){var n=t;return n instanceof Wn&&(n=n.value()),ke(e,(function(t,e){return e.func.apply(e.thisArg,Ue([t],e.args))}),n)}function mi(t,e,r){var i=t.length;if(i<2)return i?li(t[0]):[];for(var a=-1,o=n(i);++a<i;)for(var s=t[a],u=-1;++u<i;)u!=a&&(o[a]=fr(o[a]||s,t[u],e,r));return li(pr(o,1),e,r)}function _i(t,e,n){for(var r=-1,a=t.length,o=e.length,s={};++r<a;){var u=r<o?e[r]:i;n(s,t[r],u)}return s}function pi(t){return zo(t)?t:[]}function yi(t){return"function"==typeof t?t:ru}function vi(t,e){return Wo(t)?t:Ea(t,e)?[t]:xa(ys(t))}var Ei=Kr;function Ti(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ri(t,e,n)}var Ii=ne||function(t){return me.clearTimeout(t)};function Oi(t,e){if(e)return t.slice();var n=t.length,r=jt?jt(n):new t.constructor(n);return t.copy(r),r}function Ni(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Si(t,e){var n=e?Ni(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ai(t,e){if(t!==e){var n=t!==i,r=null===t,a=t===t,o=us(t),s=e!==i,u=null===e,c=e===e,l=us(e);if(!u&&!l&&!o&&t>e||o&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!l&&t<e||l&&n&&a&&!r&&!o||u&&n&&a||!s&&a||!c)return-1}return 0}function wi(t,e,r,i){for(var a=-1,o=t.length,s=r.length,u=-1,c=e.length,l=Ze(o-s,0),f=n(c+l),h=!i;++u<c;)f[u]=e[u];for(;++a<s;)(h||a<o)&&(f[r[a]]=t[a]);for(;l--;)f[u++]=t[a++];return f}function Ri(t,e,r,i){for(var a=-1,o=t.length,s=-1,u=r.length,c=-1,l=e.length,f=Ze(o-u,0),h=n(f+l),d=!i;++a<f;)h[a]=t[a];for(var g=a;++c<l;)h[g+c]=e[c];for(;++s<u;)(d||a<o)&&(h[g+r[s]]=t[a++]);return h}function bi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Di(t,e,n,r){var a=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var u=e[o],c=r?r(n[u],t[u],u,n,t):i;c===i&&(c=t[u]),a?ar(n,u,c):er(n,u,c)}return n}function Ci(t,e){return function(n,r){var i=Wo(n)?Re:rr,a=e?e():{};return i(n,t,ua(r,2),a)}}function Li(t){return Kr((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(a--,o):i,s&&va(n[0],n[1],s)&&(o=a<3?i:o,a=1),e=At(e);++r<a;){var u=n[r];u&&t(e,u,r,o)}return e}))}function Mi(t,e){return function(n,r){if(null==n)return n;if(!$o(n))return t(n,r);for(var i=n.length,a=e?i:-1,o=At(n);(e?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Pi(t){return function(e,n,r){for(var i=-1,a=At(e),o=r(e),s=o.length;s--;){var u=o[t?s:++i];if(!1===n(a[u],u,a))break}return e}}function xi(t){return function(e){var n=un(e=ys(e))?mn(e):i,r=n?n[0]:e.charAt(0),a=n?Ti(n,1).join(""):e.slice(1);return r[t]()+a}}function Ui(t){return function(e){return ke(Xs(Bs(e).replace(te,"")),t,"")}}function ki(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Vn(t.prototype),r=t.apply(n,e);return ts(r)?r:n}}function Yi(t){return function(e,n,r){var a=At(e);if(!$o(e)){var o=ua(n,3);e=Cs(e),n=function(t){return o(a[t],t,a)}}var s=t(e,n,r);return s>-1?a[o?e[s]:s]:i}}function Fi(t){return na((function(e){var n=e.length,r=n,o=Bn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new bt(a);if(o&&!u&&"wrapper"==oa(s))var u=new Bn([],!0)}for(r=u?r:n;++r<n;){var c=oa(s=e[r]),l="wrapper"==c?aa(s):i;u=l&&Ta(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oa(l[0])].apply(u,l[3]):1==s.length&&Ta(s)?u[c]():u.thru(s)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Wo(r))return u.plant(r).value();for(var i=0,a=n?e[i].apply(this,t):r;++i<n;)a=e[i].call(this,a);return a}}))}function Gi(t,e,r,a,o,s,u,c,l,h){var d=e&f,g=1&e,m=2&e,_=24&e,p=512&e,y=m?i:ki(t);return function f(){for(var v=arguments.length,E=n(v),T=v;T--;)E[T]=arguments[T];if(_)var I=sa(f),O=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(E,I);if(a&&(E=wi(E,a,o,_)),s&&(E=Ri(E,s,u,_)),v-=O,_&&v<h){var N=fn(E,I);return zi(t,e,Gi,f.placeholder,r,E,N,c,l,h-v)}var S=g?r:this,A=m?S[t]:t;return v=E.length,c?E=function(t,e){var n=t.length,r=vn(e.length,n),a=bi(t);for(;r--;){var o=e[r];t[r]=ya(o,n)?a[o]:i}return t}(E,c):p&&v>1&&E.reverse(),d&&l<v&&(E.length=l),this&&this!==me&&this instanceof f&&(A=y||ki(A)),A.apply(S,E)}}function Vi(t,e){return function(n,r){return function(t,e,n,r){return Er(t,(function(t,i,a){e(r,n(t),i,a)})),r}(n,t,e(r),{})}}function Hi(t,e){return function(n,r){var a;if(n===i&&r===i)return e;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=ui(n),r=ui(r)),a=t(n,r)}return a}}function Bi(t){return na((function(e){return e=xe(e,Qe(ua())),Kr((function(n){var r=this;return t(e,(function(t){return we(t,r,n)}))}))}))}function Wi(t,e){var n=(e=e===i?" ":ci(e)).length;if(n<2)return n?qr(e,t):e;var r=qr(e,de(t/gn(e)));return un(e)?Ti(mn(r),0,t).join(""):r.slice(0,t)}function ji(t){return function(e,r,a){return a&&"number"!=typeof a&&va(e,r,a)&&(r=a=i),e=ds(e),r===i?(r=e,e=0):r=ds(r),function(t,e,r,i){for(var a=-1,o=Ze(de((e-t)/(r||1)),0),s=n(o);o--;)s[i?o:++a]=t,t+=r;return s}(e,r,a=a===i?e<r?1:-1:ds(a),t)}}function $i(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=_s(e),n=_s(n)),t(e,n)}}function zi(t,e,n,r,a,o,s,u,f,h){var d=8&e;e|=d?c:l,4&(e&=~(d?l:c))||(e&=-4);var g=[t,e,a,d?o:i,d?s:i,d?i:o,d?i:s,u,f,h],m=n.apply(i,g);return Ta(t)&&ba(m,g),m.placeholder=r,La(m,t,e)}function Zi(t){var e=St[t];return function(t,n){if(t=_s(t),(n=null==n?0:vn(gs(n),292))&&ve(t)){var r=(ys(t)+"e").split("e");return+((r=(ys(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var qi=wn&&1/hn(new wn([,-0]))[1]==d?function(t){return new wn(t)}:uu;function Ki(t){return function(e){var n=ga(e);return n==S?cn(e):n==D?dn(e):function(t,e){return xe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xi(t,e,r,o,d,g,m,_){var p=2&e;if(!p&&"function"!=typeof t)throw new bt(a);var y=o?o.length:0;if(y||(e&=-97,o=d=i),m=m===i?m:Ze(gs(m),0),_=_===i?_:gs(_),y-=d?d.length:0,e&l){var v=o,E=d;o=d=i}var T=p?i:aa(t),I=[t,e,r,o,d,v,E,g,m,_];if(T&&function(t,e){var n=t[1],r=e[1],i=n|r,a=i<131,o=r==f&&8==n||r==f&&n==h&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!a&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var c=t[3];t[3]=c?wi(c,u,e[4]):u,t[4]=c?fn(t[3],s):e[4]}(u=e[5])&&(c=t[5],t[5]=c?Ri(c,u,e[6]):u,t[6]=c?fn(t[5],s):e[6]);(u=e[7])&&(t[7]=u);r&f&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(I,T),t=I[0],e=I[1],r=I[2],o=I[3],d=I[4],!(_=I[9]=I[9]===i?p?0:t.length:Ze(I[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)O=8==e||e==u?function(t,e,r){var a=ki(t);return function o(){for(var s=arguments.length,u=n(s),c=s,l=sa(o);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fn(u,l);return(s-=f.length)<r?zi(t,e,Gi,o.placeholder,i,u,f,i,i,r-s):we(this&&this!==me&&this instanceof o?a:t,this,u)}}(t,e,_):e!=c&&33!=e||d.length?Gi.apply(i,I):function(t,e,r,i){var a=1&e,o=ki(t);return function e(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=n(l+u),h=this&&this!==me&&this instanceof e?o:t;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return we(h,a?r:this,f)}}(t,e,r,o);else var O=function(t,e,n){var r=1&e,i=ki(t);return function e(){return(this&&this!==me&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return La((T?ti:ba)(O,I),t,e)}function Ji(t,e,n,r){return t===i||Go(t,Lt[n])&&!xt.call(r,n)?e:t}function Qi(t,e,n,r,a,o){return ts(t)&&ts(e)&&(o.set(e,t),Hr(t,e,i,Qi,o),o.delete(e)),t}function ta(t){return is(t)?i:t}function ea(t,e,n,r,a,o){var s=1&n,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var l=o.get(t),f=o.get(e);if(l&&f)return l==e&&f==t;var h=-1,d=!0,g=2&n?new Zn:i;for(o.set(t,e),o.set(e,t);++h<u;){var m=t[h],_=e[h];if(r)var p=s?r(_,m,h,e,t,o):r(m,_,h,t,e,o);if(p!==i){if(p)continue;d=!1;break}if(g){if(!Fe(e,(function(t,e){if(!en(g,e)&&(m===t||a(m,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(m!==_&&!a(m,_,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function na(t){return Ca(Aa(t,i,Wa),t+"")}function ra(t){return Nr(t,Cs,ha)}function ia(t){return Nr(t,Ls,da)}var aa=Dn?function(t){return Dn.get(t)}:uu;function oa(t){for(var e=t.name+"",n=Cn[e],r=xt.call(Cn,e)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function sa(t){return(xt.call(Gn,"placeholder")?Gn:t).placeholder}function ua(){var t=Gn.iteratee||iu;return t=t===iu?xr:t,arguments.length?t(arguments[0],arguments[1]):t}function ca(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function la(t){for(var e=Cs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Na(i)]}return e}function fa(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Pr(n)?n:i}var ha=_e?function(t){return null==t?[]:(t=At(t),Le(_e(t),(function(e){return Zt.call(t,e)})))}:mu,da=_e?function(t){for(var e=[];t;)Ue(e,ha(t)),t=$t(t);return e}:mu,ga=Sr;function ma(t,e,n){for(var r=-1,i=(e=vi(e,t)).length,a=!1;++r<i;){var o=Ua(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&Qo(i)&&ya(o,i)&&(Wo(t)||Bo(t))}function _a(t){return"function"!=typeof t.constructor||Oa(t)?{}:Vn($t(t))}function pa(t){return Wo(t)||Bo(t)||!!(Kt&&t&&t[Kt])}function ya(t,e){var n=typeof t;return!!(e=null==e?g:e)&&("number"==n||"symbol"!=n&&Et.test(t))&&t>-1&&t%1==0&&t<e}function va(t,e,n){if(!ts(n))return!1;var r=typeof e;return!!("number"==r?$o(n)&&ya(e,n.length):"string"==r&&e in n)&&Go(n[e],t)}function Ea(t,e){if(Wo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!us(t))||(nt.test(t)||!et.test(t)||null!=e&&t in At(e))}function Ta(t){var e=oa(t),n=Gn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var r=aa(n);return!!r&&t===r[0]}(Nn&&ga(new Nn(new ArrayBuffer(1)))!=x||Sn&&ga(new Sn)!=S||An&&ga(An.resolve())!=R||wn&&ga(new wn)!=D||Rn&&ga(new Rn)!=M)&&(ga=function(t){var e=Sr(t),n=e==w?t.constructor:i,r=n?ka(n):"";if(r)switch(r){case Ln:return x;case Mn:return S;case Pn:return R;case xn:return D;case Un:return M}return e});var Ia=Mt?Xo:_u;function Oa(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Lt)}function Na(t){return t===t&&!ts(t)}function Sa(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in At(n)))}}function Aa(t,e,r){return e=Ze(e===i?t.length-1:e,0),function(){for(var i=arguments,a=-1,o=Ze(i.length-e,0),s=n(o);++a<o;)s[a]=i[e+a];a=-1;for(var u=n(e+1);++a<e;)u[a]=i[a];return u[e]=r(s),we(t,this,u)}}function wa(t,e){return e.length<2?t:Or(t,ri(e,0,-1))}function Ra(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ba=Ma(ti),Da=le||function(t,e){return me.setTimeout(t,e)},Ca=Ma(ei);function La(t,e,n){var r=e+"";return Ca(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return be(p,(function(n){var r="_."+n[0];e&n[1]&&!Me(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ct);return e?e[1].split(lt):[]}(r),n)))}function Ma(t){var e=0,n=0;return function(){var r=En(),a=16-(r-n);if(n=r,a>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Pa(t,e){var n=-1,r=t.length,a=r-1;for(e=e===i?r:e;++n<e;){var o=Zr(n,a),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}var xa=function(t){var e=Po(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,(function(t,n,r,i){e.push(r?i.replace(dt,"$1"):n||t)})),e}));function Ua(t){if("string"==typeof t||us(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ka(t){if(null!=t){try{return Pt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ya(t){if(t instanceof Wn)return t.clone();var e=new Bn(t.__wrapped__,t.__chain__);return e.__actions__=bi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Fa=Kr((function(t,e){return zo(t)?fr(t,pr(e,1,zo,!0)):[]})),Ga=Kr((function(t,e){var n=qa(e);return zo(n)&&(n=i),zo(t)?fr(t,pr(e,1,zo,!0),ua(n,2)):[]})),Va=Kr((function(t,e){var n=qa(e);return zo(n)&&(n=i),zo(t)?fr(t,pr(e,1,zo,!0),i,n):[]}));function Ha(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=Ze(r+i,0)),He(t,ua(e,3),i)}function Ba(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var a=r-1;return n!==i&&(a=gs(n),a=n<0?Ze(r+a,0):vn(a,r-1)),He(t,ua(e,3),a,!0)}function Wa(t){return(null==t?0:t.length)?pr(t,1):[]}function ja(t){return t&&t.length?t[0]:i}var $a=Kr((function(t){var e=xe(t,pi);return e.length&&e[0]===t[0]?br(e):[]})),za=Kr((function(t){var e=qa(t),n=xe(t,pi);return e===qa(n)?e=i:n.pop(),n.length&&n[0]===t[0]?br(n,ua(e,2)):[]})),Za=Kr((function(t){var e=qa(t),n=xe(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?br(n,i,e):[]}));function qa(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Ka=Kr(Xa);function Xa(t,e){return t&&t.length&&e&&e.length?$r(t,e):t}var Ja=na((function(t,e){var n=null==t?0:t.length,r=or(t,e);return zr(t,xe(e,(function(t){return ya(t,n)?+t:t})).sort(Ai)),r}));function Qa(t){return null==t?t:On.call(t)}var to=Kr((function(t){return li(pr(t,1,zo,!0))})),eo=Kr((function(t){var e=qa(t);return zo(e)&&(e=i),li(pr(t,1,zo,!0),ua(e,2))})),no=Kr((function(t){var e=qa(t);return e="function"==typeof e?e:i,li(pr(t,1,zo,!0),i,e)}));function ro(t){if(!t||!t.length)return[];var e=0;return t=Le(t,(function(t){if(zo(t))return e=Ze(t.length,e),!0})),Xe(e,(function(e){return xe(t,ze(e))}))}function io(t,e){if(!t||!t.length)return[];var n=ro(t);return null==e?n:xe(n,(function(t){return we(e,i,t)}))}var ao=Kr((function(t,e){return zo(t)?fr(t,e):[]})),oo=Kr((function(t){return mi(Le(t,zo))})),so=Kr((function(t){var e=qa(t);return zo(e)&&(e=i),mi(Le(t,zo),ua(e,2))})),uo=Kr((function(t){var e=qa(t);return e="function"==typeof e?e:i,mi(Le(t,zo),i,e)})),co=Kr(ro);var lo=Kr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,io(t,n)}));function fo(t){var e=Gn(t);return e.__chain__=!0,e}function ho(t,e){return e(t)}var go=na((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Wn&&ya(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[a],thisArg:i}),new Bn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(a)}));var mo=Ci((function(t,e,n){xt.call(t,n)?++t[n]:ar(t,n,1)}));var _o=Yi(Ha),po=Yi(Ba);function yo(t,e){return(Wo(t)?be:hr)(t,ua(e,3))}function vo(t,e){return(Wo(t)?De:dr)(t,ua(e,3))}var Eo=Ci((function(t,e,n){xt.call(t,n)?t[n].push(e):ar(t,n,[e])}));var To=Kr((function(t,e,r){var i=-1,a="function"==typeof e,o=$o(t)?n(t.length):[];return hr(t,(function(t){o[++i]=a?we(e,t,r):Dr(t,e,r)})),o})),Io=Ci((function(t,e,n){ar(t,n,e)}));function Oo(t,e){return(Wo(t)?xe:Fr)(t,ua(e,3))}var No=Ci((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var So=Kr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&va(t,e[0],e[1])?e=[]:n>2&&va(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,pr(e,1),[])})),Ao=ie||function(){return me.Date.now()};function wo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Xi(t,f,i,i,i,i,e)}function Ro(t,e){var n;if("function"!=typeof e)throw new bt(a);return t=gs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var bo=Kr((function(t,e,n){var r=1;if(n.length){var i=fn(n,sa(bo));r|=c}return Xi(t,r,e,n,i)})),Do=Kr((function(t,e,n){var r=3;if(n.length){var i=fn(n,sa(Do));r|=c}return Xi(e,r,t,n,i)}));function Co(t,e,n){var r,o,s,u,c,l,f=0,h=!1,d=!1,g=!0;if("function"!=typeof t)throw new bt(a);function m(e){var n=r,a=o;return r=o=i,f=e,u=t.apply(a,n)}function _(t){var n=t-l;return l===i||n>=e||n<0||d&&t-f>=s}function p(){var t=Ao();if(_(t))return y(t);c=Da(p,function(t){var n=e-(t-l);return d?vn(n,s-(t-f)):n}(t))}function y(t){return c=i,g&&r?m(t):(r=o=i,u)}function v(){var t=Ao(),n=_(t);if(r=arguments,o=this,l=t,n){if(c===i)return function(t){return f=t,c=Da(p,e),h?m(t):u}(l);if(d)return Ii(c),c=Da(p,e),m(l)}return c===i&&(c=Da(p,e)),u}return e=_s(e)||0,ts(n)&&(h=!!n.leading,s=(d="maxWait"in n)?Ze(_s(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),v.cancel=function(){c!==i&&Ii(c),f=0,r=l=o=c=i},v.flush=function(){return c===i?u:y(Ao())},v}var Lo=Kr((function(t,e){return lr(t,1,e)})),Mo=Kr((function(t,e,n){return lr(t,_s(e)||0,n)}));function Po(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new bt(a);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Po.Cache||zn),n}function xo(t){if("function"!=typeof t)throw new bt(a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Po.Cache=zn;var Uo=Ei((function(t,e){var n=(e=1==e.length&&Wo(e[0])?xe(e[0],Qe(ua())):xe(pr(e,1),Qe(ua()))).length;return Kr((function(r){for(var i=-1,a=vn(r.length,n);++i<a;)r[i]=e[i].call(this,r[i]);return we(t,this,r)}))})),ko=Kr((function(t,e){var n=fn(e,sa(ko));return Xi(t,c,i,e,n)})),Yo=Kr((function(t,e){var n=fn(e,sa(Yo));return Xi(t,l,i,e,n)})),Fo=na((function(t,e){return Xi(t,h,i,i,i,e)}));function Go(t,e){return t===e||t!==t&&e!==e}var Vo=$i(Ar),Ho=$i((function(t,e){return t>=e})),Bo=Cr(function(){return arguments}())?Cr:function(t){return es(t)&&xt.call(t,"callee")&&!Zt.call(t,"callee")},Wo=n.isArray,jo=Te?Qe(Te):function(t){return es(t)&&Sr(t)==P};function $o(t){return null!=t&&Qo(t.length)&&!Xo(t)}function zo(t){return es(t)&&$o(t)}var Zo=pe||_u,qo=Ie?Qe(Ie):function(t){return es(t)&&Sr(t)==T};function Ko(t){if(!es(t))return!1;var e=Sr(t);return e==I||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!is(t)}function Xo(t){if(!ts(t))return!1;var e=Sr(t);return e==O||e==N||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Jo(t){return"number"==typeof t&&t==gs(t)}function Qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=g}function ts(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function es(t){return null!=t&&"object"==typeof t}var ns=Oe?Qe(Oe):function(t){return es(t)&&ga(t)==S};function rs(t){return"number"==typeof t||es(t)&&Sr(t)==A}function is(t){if(!es(t)||Sr(t)!=w)return!1;var e=$t(t);if(null===e)return!0;var n=xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==Ft}var as=Ne?Qe(Ne):function(t){return es(t)&&Sr(t)==b};var os=Se?Qe(Se):function(t){return es(t)&&ga(t)==D};function ss(t){return"string"==typeof t||!Wo(t)&&es(t)&&Sr(t)==C}function us(t){return"symbol"==typeof t||es(t)&&Sr(t)==L}var cs=Ae?Qe(Ae):function(t){return es(t)&&Qo(t.length)&&!!ue[Sr(t)]};var ls=$i(Yr),fs=$i((function(t,e){return t<=e}));function hs(t){if(!t)return[];if($o(t))return ss(t)?mn(t):bi(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=ga(t);return(e==S?cn:e==D?hn:Gs)(t)}function ds(t){return t?(t=_s(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}function gs(t){var e=ds(t),n=e%1;return e===e?n?e-n:e:0}function ms(t){return t?sr(gs(t),0,_):0}function _s(t){if("number"==typeof t)return t;if(us(t))return m;if(ts(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ts(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Je(t);var n=pt.test(t);return n||vt.test(t)?he(t.slice(2),n?2:8):_t.test(t)?m:+t}function ps(t){return Di(t,Ls(t))}function ys(t){return null==t?"":ci(t)}var vs=Li((function(t,e){if(Oa(e)||$o(e))Di(e,Cs(e),t);else for(var n in e)xt.call(e,n)&&er(t,n,e[n])})),Es=Li((function(t,e){Di(e,Ls(e),t)})),Ts=Li((function(t,e,n,r){Di(e,Ls(e),t,r)})),Is=Li((function(t,e,n,r){Di(e,Cs(e),t,r)})),Os=na(or);var Ns=Kr((function(t,e){t=At(t);var n=-1,r=e.length,a=r>2?e[2]:i;for(a&&va(e[0],e[1],a)&&(r=1);++n<r;)for(var o=e[n],s=Ls(o),u=-1,c=s.length;++u<c;){var l=s[u],f=t[l];(f===i||Go(f,Lt[l])&&!xt.call(t,l))&&(t[l]=o[l])}return t})),Ss=Kr((function(t){return t.push(i,Qi),we(Ps,i,t)}));function As(t,e,n){var r=null==t?i:Or(t,e);return r===i?n:r}function ws(t,e){return null!=t&&ma(t,e,Rr)}var Rs=Vi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),t[e]=n}),tu(ru)),bs=Vi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Yt.call(e)),xt.call(t,e)?t[e].push(n):t[e]=[n]}),ua),Ds=Kr(Dr);function Cs(t){return $o(t)?Kn(t):Ur(t)}function Ls(t){return $o(t)?Kn(t,!0):kr(t)}var Ms=Li((function(t,e,n){Hr(t,e,n)})),Ps=Li((function(t,e,n,r){Hr(t,e,n,r)})),xs=na((function(t,e){var n={};if(null==t)return n;var r=!1;e=xe(e,(function(e){return e=vi(e,t),r||(r=e.length>1),e})),Di(t,ia(t),n),r&&(n=ur(n,7,ta));for(var i=e.length;i--;)fi(n,e[i]);return n}));var Us=na((function(t,e){return null==t?{}:function(t,e){return jr(t,e,(function(e,n){return ws(t,n)}))}(t,e)}));function ks(t,e){if(null==t)return{};var n=xe(ia(t),(function(t){return[t]}));return e=ua(e),jr(t,n,(function(t,n){return e(t,n[0])}))}var Ys=Ki(Cs),Fs=Ki(Ls);function Gs(t){return null==t?[]:tn(t,Cs(t))}var Vs=Ui((function(t,e,n){return e=e.toLowerCase(),t+(n?Hs(e):e)}));function Hs(t){return Ks(ys(t).toLowerCase())}function Bs(t){return(t=ys(t))&&t.replace(Tt,an).replace(ee,"")}var Ws=Ui((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),js=Ui((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),$s=xi("toLowerCase");var zs=Ui((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Zs=Ui((function(t,e,n){return t+(n?" ":"")+Ks(e)}));var qs=Ui((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ks=xi("toUpperCase");function Xs(t,e,n){return t=ys(t),(e=n?i:e)===i?function(t){return ae.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ft)||[]}(t):t.match(e)||[]}var Js=Kr((function(t,e){try{return we(t,i,e)}catch(n){return Ko(n)?n:new st(n)}})),Qs=na((function(t,e){return be(e,(function(e){e=Ua(e),ar(t,e,bo(t[e],t))})),t}));function tu(t){return function(){return t}}var eu=Fi(),nu=Fi(!0);function ru(t){return t}function iu(t){return xr("function"==typeof t?t:ur(t,1))}var au=Kr((function(t,e){return function(n){return Dr(n,t,e)}})),ou=Kr((function(t,e){return function(n){return Dr(t,n,e)}}));function su(t,e,n){var r=Cs(e),i=Ir(e,r);null!=n||ts(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Ir(e,Cs(e)));var a=!(ts(n)&&"chain"in n)||!!n.chain,o=Xo(t);return be(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=bi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ue([this.value()],arguments))})})),t}function uu(){}var cu=Bi(xe),lu=Bi(Ce),fu=Bi(Fe);function hu(t){return Ea(t)?ze(Ua(t)):function(t){return function(e){return Or(e,t)}}(t)}var du=ji(),gu=ji(!0);function mu(){return[]}function _u(){return!1}var pu=Hi((function(t,e){return t+e}),0),yu=Zi("ceil"),vu=Hi((function(t,e){return t/e}),1),Eu=Zi("floor");var Tu=Hi((function(t,e){return t*e}
vendor: 4,231 bytes, line 1
1),1),Iu=Zi("round"),Ou=Hi((function(t,e){return t-e}),0);return Gn.after=function(t,e){if("function"!=typeof e)throw new bt(a);return t=gs(t),function(){if(--t<1)return e.apply(this,arguments)}},Gn.ary=wo,Gn.assign=vs,Gn.assignIn=Es,Gn.assignInWith=Ts,Gn.assignWith=Is,Gn.at=Os,Gn.before=Ro,Gn.bind=bo,Gn.bindAll=Qs,Gn.bindKey=Do,Gn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wo(t)?t:[t]},Gn.chain=fo,Gn.chunk=function(t,e,r){e=(r?va(t,e,r):e===i)?1:Ze(gs(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var o=0,s=0,u=n(de(a/e));o<a;)u[s++]=ri(t,o,o+=e);return u},Gn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var a=t[e];a&&(i[r++]=a)}return i},Gn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ue(Wo(r)?bi(r):[r],pr(e,1))},Gn.cond=function(t){var e=null==t?0:t.length,n=ua();return t=e?xe(t,(function(t){if("function"!=typeof t[1])throw new bt(a);return[n(t[0]),t[1]]})):[],Kr((function(n){for(var r=-1;++r<e;){var i=t[r];if(we(i[0],this,n))return we(i[1],this,n)}}))},Gn.conforms=function(t){return function(t){var e=Cs(t);return function(n){return cr(n,t,e)}}(ur(t,1))},Gn.constant=tu,Gn.countBy=mo,Gn.create=function(t,e){var n=Vn(t);return null==e?n:ir(n,e)},Gn.curry=function t(e,n,r){var a=Xi(e,8,i,i,i,i,i,n=r?i:n);return a.placeholder=t.placeholder,a},Gn.curryRight=function t(e,n,r){var a=Xi(e,u,i,i,i,i,i,n=r?i:n);return a.placeholder=t.placeholder,a},Gn.debounce=Co,Gn.defaults=Ns,Gn.defaultsDeep=Ss,Gn.defer=Lo,Gn.delay=Mo,Gn.difference=Fa,Gn.differenceBy=Ga,Gn.differenceWith=Va,Gn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=n||e===i?1:gs(e))<0?0:e,r):[]},Gn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,0,(e=r-(e=n||e===i?1:gs(e)))<0?0:e):[]},Gn.dropRightWhile=function(t,e){return t&&t.length?di(t,ua(e,3),!0,!0):[]},Gn.dropWhile=function(t,e){return t&&t.length?di(t,ua(e,3),!0):[]},Gn.fill=function(t,e,n,r){var a=null==t?0:t.length;return a?(n&&"number"!=typeof n&&va(t,e,n)&&(n=0,r=a),function(t,e,n,r){var a=t.length;for((n=gs(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:gs(r))<0&&(r+=a),r=n>r?0:ms(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Gn.filter=function(t,e){return(Wo(t)?Le:_r)(t,ua(e,3))},Gn.flatMap=function(t,e){return pr(Oo(t,e),1)},Gn.flatMapDeep=function(t,e){return pr(Oo(t,e),d)},Gn.flatMapDepth=function(t,e,n){return n=n===i?1:gs(n),pr(Oo(t,e),n)},Gn.flatten=Wa,Gn.flattenDeep=function(t){return(null==t?0:t.length)?pr(t,d):[]},Gn.flattenDepth=function(t,e){return(null==t?0:t.length)?pr(t,e=e===i?1:gs(e)):[]},Gn.flip=function(t){return Xi(t,512)},Gn.flow=eu,Gn.flowRight=nu,Gn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Gn.functions=function(t){return null==t?[]:Ir(t,Cs(t))},Gn.functionsIn=function(t){return null==t?[]:Ir(t,Ls(t))},Gn.groupBy=Eo,Gn.initial=function(t){return(null==t?0:t.length)?ri(t,0,-1):[]},Gn.intersection=$a,Gn.intersectionBy=za,Gn.intersectionWith=Za,Gn.invert=Rs,Gn.invertBy=bs,Gn.invokeMap=To,Gn.iteratee=iu,Gn.keyBy=Io,Gn.keys=Cs,Gn.keysIn=Ls,Gn.map=Oo,Gn.mapKeys=function(t,e){var n={};return e=ua(e,3),Er(t,(function(t,r,i){ar(n,e(t,r,i),t)})),n},Gn.mapValues=function(t,e){var n={};return e=ua(e,3),Er(t,(function(t,r,i){ar(n,r,e(t,r,i))})),n},Gn.matches=function(t){return Gr(ur(t,1))},Gn.matchesProperty=function(t,e){return Vr(t,ur(e,1))},Gn.memoize=Po,Gn.merge=Ms,Gn.mergeWith=Ps,Gn.method=au,Gn.methodOf=ou,Gn.mixin=su,Gn.negate=xo,Gn.nthArg=function(t){return t=gs(t),Kr((function(e){return Br(e,t)}))},Gn.omit=xs,Gn.omitBy=function(t,e){return ks(t,xo(ua(e)))},Gn.once=function(t){return Ro(2,t)},Gn.orderBy=function(t,e,n,r){return null==t?[]:(Wo(e)||(e=null==e?[]:[e]),Wo(n=r?i:n)||(n=null==n?[]:[n]),Wr(t,e,n))},Gn.over=cu,Gn.overArgs=Uo,Gn.overEvery=lu,Gn.overSome=fu,Gn.partial=ko,Gn.partialRight=Yo,Gn.partition=No,Gn.pick=Us,Gn.pickBy=ks,Gn.property=hu,Gn.propertyOf=function(t){return function(e){return null==t?i:Or(t,e)}},Gn.pull=Ka,Gn.pullAll=Xa,Gn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?$r(t,e,ua(n,2)):t},Gn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?$r(t,e,i,n):t}
vendor: 4,254 bytes, line 1
1,Gn.pullAt=Ja,Gn.range=du,Gn.rangeRight=gu,Gn.rearg=Fo,Gn.reject=function(t,e){return(Wo(t)?Le:_r)(t,xo(ua(e,3)))},Gn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],a=t.length;for(e=ua(e,3);++r<a;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return zr(t,i),n},Gn.rest=function(t,e){if("function"!=typeof t)throw new bt(a);return Kr(t,e=e===i?e:gs(e))},Gn.reverse=Qa,Gn.sampleSize=function(t,e,n){return e=(n?va(t,e,n):e===i)?1:gs(e),(Wo(t)?Jn:Jr)(t,e)},Gn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Gn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Gn.shuffle=function(t){return(Wo(t)?Qn:ni)(t)},Gn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&va(t,e,n)?(e=0,n=r):(e=null==e?0:gs(e),n=n===i?r:gs(n)),ri(t,e,n)):[]},Gn.sortBy=So,Gn.sortedUniq=function(t){return t&&t.length?si(t):[]},Gn.sortedUniqBy=function(t,e){return t&&t.length?si(t,ua(e,2)):[]},Gn.split=function(t,e,n){return n&&"number"!=typeof n&&va(t,e,n)&&(e=n=i),(n=n===i?_:n>>>0)?(t=ys(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ci(e))&&un(t)?Ti(mn(t),0,n):t.split(e,n):[]},Gn.spread=function(t,e){if("function"!=typeof t)throw new bt(a);return e=null==e?0:Ze(gs(e),0),Kr((function(n){var r=n[e],i=Ti(n,0,e);return r&&Ue(i,r),we(t,this,i)}))},Gn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Gn.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:gs(e))<0?0:e):[]},Gn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=r-(e=n||e===i?1:gs(e)))<0?0:e,r):[]},Gn.takeRightWhile=function(t,e){return t&&t.length?di(t,ua(e,3),!1,!0):[]},Gn.takeWhile=function(t,e){return t&&t.length?di(t,ua(e,3)):[]},Gn.tap=function(t,e){return e(t),t},Gn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new bt(a);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Co(t,e,{leading:r,maxWait:e,trailing:i})},Gn.thru=ho,Gn.toArray=hs,Gn.toPairs=Ys,Gn.toPairsIn=Fs,Gn.toPath=function(t){return Wo(t)?xe(t,Ua):us(t)?[t]:bi(xa(ys(t)))},Gn.toPlainObject=ps,Gn.transform=function(t,e,n){var r=Wo(t),i=r||Zo(t)||cs(t);if(e=ua(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:ts(t)&&Xo(a)?Vn($t(t)):{}}return(i?be:Er)(t,(function(t,r,i){return e(n,t,r,i)})),n},Gn.unary=function(t){return wo(t,1)},Gn.union=to,Gn.unionBy=eo,Gn.unionWith=no,Gn.uniq=function(t){return t&&t.length?li(t):[]},Gn.uniqBy=function(t,e){return t&&t.length?li(t,ua(e,2)):[]},Gn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?li(t,i,e):[]},Gn.unset=function(t,e){return null==t||fi(t,e)},Gn.unzip=ro,Gn.unzipWith=io,Gn.update=function(t,e,n){return null==t?t:hi(t,e,yi(n))},Gn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,yi(n),r)},Gn.values=Gs,Gn.valuesIn=function(t){return null==t?[]:tn(t,Ls(t))},Gn.without=ao,Gn.words=Xs,Gn.wrap=function(t,e){return ko(yi(e),t)},Gn.xor=oo,Gn.xorBy=so,Gn.xorWith=uo,Gn.zip=co,Gn.zipObject=function(t,e){return _i(t||[],e||[],er)},Gn.zipObjectDeep=function(t,e){return _i(t||[],e||[],Qr)},Gn.zipWith=lo,Gn.entries=Ys,Gn.entriesIn=Fs,Gn.extend=Es,Gn.extendWith=Ts,su(Gn,Gn),Gn.add=pu,Gn.attempt=Js,Gn.camelCase=Vs,Gn.capitalize=Hs,Gn.ceil=yu,Gn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=_s(n))===n?n:0),e!==i&&(e=(e=_s(e))===e?e:0),sr(_s(t),e,n)},Gn.clone=function(t){return ur(t,4)},Gn.cloneDeep=function(t){return ur(t,5)},Gn.cloneDeepWith=function(t,e){return ur(t,5,e="function"==typeof e?e:i)},Gn.cloneWith=function(t,e){return ur(t,4,e="function"==typeof e?e:i)},Gn.conformsTo=function(t,e){return null==e||cr(t,e,Cs(e))},Gn.deburr=Bs,Gn.defaultTo=function(t,e){return null==t||t!==t?e:t},Gn.divide=vu,Gn.endsWith=function(t,e,n){t=ys(t),e=ci(e);var r=t.length,a=n=n===i?r:sr(gs(n),0,r);return(n-=e.length)>=0&&t.slice(n,a)==e},Gn.eq=Go,Gn.escape=function(t){return(t=ys(t))&&X.test(t)?t.replace(q,on):t},Gn.escapeRegExp=function(t){return(t=ys(t))&&at.test(t)?t.replace(it,"\\$&"):t},Gn.every=function(t,e,n){var r=Wo(t)?Ce:gr;return n&&va(t,e,n)&&(e=i),r(t,ua(e,3))},Gn.find=_o,Gn.findIndex=Ha,Gn.findKey=function(t,e){return Ve(t,ua(e,3),Er)},Gn.findLast=po,Gn.findLastIndex=Ba,Gn.findLastKey=function(t,e){return Ve(t,ua(e,3),Tr)}
vendor: 6,596 bytes, line 1
1,Gn.floor=Eu,Gn.forEach=yo,Gn.forEachRight=vo,Gn.forIn=function(t,e){return null==t?t:yr(t,ua(e,3),Ls)},Gn.forInRight=function(t,e){return null==t?t:vr(t,ua(e,3),Ls)},Gn.forOwn=function(t,e){return t&&Er(t,ua(e,3))},Gn.forOwnRight=function(t,e){return t&&Tr(t,ua(e,3))},Gn.get=As,Gn.gt=Vo,Gn.gte=Ho,Gn.has=function(t,e){return null!=t&&ma(t,e,wr)},Gn.hasIn=ws,Gn.head=ja,Gn.identity=ru,Gn.includes=function(t,e,n,r){t=$o(t)?t:Gs(t),n=n&&!r?gs(n):0;var i=t.length;return n<0&&(n=Ze(i+n,0)),ss(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Be(t,e,n)>-1},Gn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=Ze(r+i,0)),Be(t,e,i)},Gn.inRange=function(t,e,n){return e=ds(e),n===i?(n=e,e=0):n=ds(n),function(t,e,n){return t>=vn(e,n)&&t<Ze(e,n)}(t=_s(t),e,n)},Gn.invoke=Ds,Gn.isArguments=Bo,Gn.isArray=Wo,Gn.isArrayBuffer=jo,Gn.isArrayLike=$o,Gn.isArrayLikeObject=zo,Gn.isBoolean=function(t){return!0===t||!1===t||es(t)&&Sr(t)==E},Gn.isBuffer=Zo,Gn.isDate=qo,Gn.isElement=function(t){return es(t)&&1===t.nodeType&&!is(t)},Gn.isEmpty=function(t){if(null==t)return!0;if($o(t)&&(Wo(t)||"string"==typeof t||"function"==typeof t.splice||Zo(t)||cs(t)||Bo(t)))return!t.length;var e=ga(t);if(e==S||e==D)return!t.size;if(Oa(t))return!Ur(t).length;for(var n in t)if(xt.call(t,n))return!1;return!0},Gn.isEqual=function(t,e){return Lr(t,e)},Gn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Lr(t,e,i,n):!!r},Gn.isError=Ko,Gn.isFinite=function(t){return"number"==typeof t&&ve(t)},Gn.isFunction=Xo,Gn.isInteger=Jo,Gn.isLength=Qo,Gn.isMap=ns,Gn.isMatch=function(t,e){return t===e||Mr(t,e,la(e))},Gn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Mr(t,e,la(e),n)},Gn.isNaN=function(t){return rs(t)&&t!=+t},Gn.isNative=function(t){if(Ia(t))throw new st("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},Gn.isNil=function(t){return null==t},Gn.isNull=function(t){return null===t},Gn.isNumber=rs,Gn.isObject=ts,Gn.isObjectLike=es,Gn.isPlainObject=is,Gn.isRegExp=as,Gn.isSafeInteger=function(t){return Jo(t)&&t>=-9007199254740991&&t<=g},Gn.isSet=os,Gn.isString=ss,Gn.isSymbol=us,Gn.isTypedArray=cs,Gn.isUndefined=function(t){return t===i},Gn.isWeakMap=function(t){return es(t)&&ga(t)==M},Gn.isWeakSet=function(t){return es(t)&&"[object WeakSet]"==Sr(t)},Gn.join=function(t,e){return null==t?"":Ee.call(t,e)},Gn.kebabCase=Ws,Gn.last=qa,Gn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=gs(n))<0?Ze(r+a,0):vn(a,r-1)),e===e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,a):He(t,je,a,!0)},Gn.lowerCase=js,Gn.lowerFirst=$s,Gn.lt=ls,Gn.lte=fs,Gn.max=function(t){return t&&t.length?mr(t,ru,Ar):i},Gn.maxBy=function(t,e){return t&&t.length?mr(t,ua(e,2),Ar):i},Gn.mean=function(t){return $e(t,ru)},Gn.meanBy=function(t,e){return $e(t,ua(e,2))},Gn.min=function(t){return t&&t.length?mr(t,ru,Yr):i},Gn.minBy=function(t,e){return t&&t.length?mr(t,ua(e,2),Yr):i},Gn.stubArray=mu,Gn.stubFalse=_u,Gn.stubObject=function(){return{}},Gn.stubString=function(){return""},Gn.stubTrue=function(){return!0},Gn.multiply=Tu,Gn.nth=function(t,e){return t&&t.length?Br(t,gs(e)):i},Gn.noConflict=function(){return me._===this&&(me._=Gt),this},Gn.noop=uu,Gn.now=Ao,Gn.pad=function(t,e,n){t=ys(t);var r=(e=gs(e))?gn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Wi(ge(i),n)+t+Wi(de(i),n)},Gn.padEnd=function(t,e,n){t=ys(t);var r=(e=gs(e))?gn(t):0;return e&&r<e?t+Wi(e-r,n):t},Gn.padStart=function(t,e,n){t=ys(t);var r=(e=gs(e))?gn(t):0;return e&&r<e?Wi(e-r,n)+t:t},Gn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Tn(ys(t).replace(ot,""),e||0)},Gn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&va(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ds(t),e===i?(e=t,t=0):e=ds(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var a=In();return vn(t+a*(e-t+fe("1e-"+((a+"").length-1))),e)}return Zr(t,e)},Gn.reduce=function(t,e,n){var r=Wo(t)?ke:qe,i=arguments.length<3;return r(t,ua(e,4),n,i,hr)},Gn.reduceRight=function(t,e,n){var r=Wo(t)?Ye:qe,i=arguments.length<3;return r(t,ua(e,4),n,i,dr)},Gn.repeat=function(t,e,n){return e=(n?va(t,e,n):e===i)?1:gs(e),qr(ys(t),e)},Gn.replace=function(){var t=arguments,e=ys(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Gn.result=function(t,e,n){var r=-1,a=(e=vi(e,t)).length;for(a||(a=1,t=i);++r<a;){var o=null==t?i:t[Ua(e[r])];o===i&&(r=a,o=n),t=Xo(o)?o.call(t):o}return t},Gn.round=Iu,Gn.runInContext=t,Gn.sample=function(t){return(Wo(t)?Xn:Xr)(t)},Gn.size=function(t){if(null==t)return 0;if($o(t))return ss(t)?gn(t):t.length;var e=ga(t);return e==S||e==D?t.size:Ur(t).length},Gn.snakeCase=zs,Gn.some=function(t,e,n){var r=Wo(t)?Fe:ii;return n&&va(t,e,n)&&(e=i),r(t,ua(e,3))},Gn.sortedIndex=function(t,e){return ai(t,e)},Gn.sortedIndexBy=function(t,e,n){return oi(t,e,ua(n,2))},Gn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&Go(t[r],e))return r}return-1},Gn.sortedLastIndex=function(t,e){return ai(t,e,!0)},Gn.sortedLastIndexBy=function(t,e,n){return oi(t,e,ua(n,2),!0)},Gn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(Go(t[n],e))return n}return-1},Gn.startCase=Zs,Gn.startsWith=function(t,e,n){return t=ys(t),n=null==n?0:sr(gs(n),0,t.length),e=ci(e),t.slice(n,n+e.length)==e},Gn.subtract=Ou,Gn.sum=function(t){return t&&t.length?Ke(t,ru):0},Gn.sumBy=function(t,e){return t&&t.length?Ke(t,ua(e,2)):0},Gn.template=function(t,e,n){var r=Gn.templateSettings;n&&va(t,e,n)&&(e=i),t=ys(t),e=Ts({},e,r,Ji);var a,o,s=Ts({},e.imports,r.imports,Ji),u=Cs(s),c=tn(s,u),l=0,f=e.interpolate||It,h="__p += '",d=wt((e.escape||It).source+"|"+f.source+"|"+(f===tt?gt:It).source+"|"+(e.evaluate||It).source+"|$","g"),g="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(d,(function(e,n,r,i,s,u){return r||(r=i),h+=t.slice(l,u).replace(Ot,sn),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var m=xt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new st("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(j,""):h).replace($,"$1").replace(z,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+h+"return __p\n}";var _=Js((function(){return Nt(u,g+"return "+h).apply(i,c)}));if(_.source=h,Ko(_))throw _;return _},Gn.times=function(t,e){if((t=gs(t))<1||t>g)return[];var n=_,r=vn(t,_);e=ua(e),t-=_;for(var i=Xe(r,e);++n<t;)e(n);return i},Gn.toFinite=ds,Gn.toInteger=gs,Gn.toLength=ms,Gn.toLower=function(t){return ys(t).toLowerCase()},Gn.toNumber=_s,Gn.toSafeInteger=function(t){return t?sr(gs(t),-9007199254740991,g):0===t?t:0},Gn.toString=ys,Gn.toUpper=function(t){return ys(t).toUpperCase()},Gn.trim=function(t,e,n){if((t=ys(t))&&(n||e===i))return Je(t);if(!t||!(e=ci(e)))return t;var r=mn(t),a=mn(e);return Ti(r,nn(r,a),rn(r,a)+1).join("")},Gn.trimEnd=function(t,e,n){if((t=ys(t))&&(n||e===i))return t.slice(0,_n(t)+1);if(!t||!(e=ci(e)))return t;var r=mn(t);return Ti(r,0,rn(r,mn(e))+1).join("")},Gn.trimStart=function(t,e,n){if((t=ys(t))&&(n||e===i))return t.replace(ot,"");if(!t||!(e=ci(e)))return t;var r=mn(t);return Ti(r,nn(r,mn(e))).join("")},Gn.truncate=function(t,e){var n=30,r="...";if(ts(e)){var a="separator"in e?e.separator:a;n="length"in e?gs(e.length):n,r="omission"in e?ci(e.omission):r}var o=(t=ys(t)).length;if(un(t)){var s=mn(t);o=s.length}if(n>=o)return t;var u=n-gn(r);if(u<1)return r;var c=s?Ti(s,0,u).join(""):t.slice(0,u);if(a===i)return c+r;if(s&&(u+=c.length-u),as(a)){if(t.slice(u).search(a)){var l,f=c;for(a.global||(a=wt(a.source,ys(mt.exec(a))+"g")),a.lastIndex=0;l=a.exec(f);)var h=l.index;c=c.slice(0,h===i?u:h)}}else if(t.indexOf(ci(a),u)!=u){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},Gn.unescape=function(t){return(t=ys(t))&&K.test(t)?t.replace(Z,pn):t},Gn.uniqueId=function(t){var e=++Ut;return ys(t)+e},Gn.upperCase=qs,Gn.upperFirst=Ks,Gn.each=yo,Gn.eachRight=vo,Gn.first=ja,su(Gn,function(){var t={};return Er(Gn,(function(e,n){xt.call(Gn.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),Gn.VERSION="4.17.21",be(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Gn[t].placeholder=Gn})),be(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===i?1:Ze(gs(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,_),type:t+(r.__dir__<0?"Right":"")}),r},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),be(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ua(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),be(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),be(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ru)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=Kr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Dr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(xo(ua(t)))},Wn.prototype.slice=function(t,e){t=gs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=gs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(_)},Er(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),a=Gn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);a&&(Gn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,u=e instanceof Wn,c=s[0],l=u||Wo(e),f=function(t){var e=a.apply(Gn,Ue([t],s));return r&&h?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,d=!!this.__actions__.length,g=o&&!h,m=u&&!d;if(!o&&l){e=m?e:new Wn(this);var _=t.apply(e,s);return _.__actions__.push({func:ho,args:[f],thisArg:i}),new Bn(_,h)}return g&&m?t.apply(this,s):(_=this.thru(f),g?r?_.value()[0]:_.value():_)})})),be(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Dt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Gn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Wo(i)?i:[],t)}return this[n]((function(n){return e.apply(Wo(n)?n:[],t)}))}})),Er(Wn.prototype,(function(t,e){var n=Gn[e];if(n){var r=n.name+"";xt.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}})),Cn[Gi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=bi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=bi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=bi(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Wo(t),r=e<0,i=n?t.length:0,a=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=vn(e,t+o);break;case"takeRight":t=Ze(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=r?s:o-1,l=this.__iteratees__,f=l.length,h=0,d=vn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return gi(t,this.__actions__);var g=[];t:for(;u--&&h<d;){for(var m=-1,_=t[c+=e];++m<f;){var p=l[m],y=p.iteratee,v=p.type,E=y(_);
1if(2==v)_=E;else if(!E){if(1==v)continue t;break t}}g[h++]=_}return g},Gn.prototype.at=go,Gn.prototype.chain=function(){return fo(this)},Gn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Gn.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Gn.prototype.plant=function(t){for(var e,n=this;n instanceof Hn;){var r=Ya(n);r.__index__=0,r.__values__=i,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e},Gn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:ho,args:[Qa],thisArg:i}),new Bn(e,this.__chain__)}return this.thru(Qa)},Gn.prototype.toJSON=Gn.prototype.valueOf=Gn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Gn.prototype.first=Gn.prototype.head,Xt&&(Gn.prototype[Xt]=function(){return this}),Gn}();me._=yn,(r=function(){return yn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},37111:t=>{t.exports=function t(e,n,r){function i(o,s){if(!n[o]){if(!e[o]){if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};e[o][0].call(c.exports,(function(t){return i(e[o][1][t]||t)}),c,c.exports,t,e,n,r)}return n[o].exports}for(var a=void 0,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){!function(t){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Math.ceil,o=Math.floor,s="[BigNumber Error] ",u=s+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,f=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,g=1e9;function m(t){var e=0|t;return 0<t||t===e?e:e-1}function _(t){for(var e,n,r=1,i=t.length,a=t[0]+"";r<i;){for(e=t[r++]+"",n=l-e.length;n--;e="0"+e);a+=e}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function p(t,e){var n,r,i=t.c,a=e.c,o=t.s,s=e.s,u=t.e,c=e.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=u==c,!i||!a)return r?0:!i^n?1:-1;if(!r)return c<u^n?1:-1;for(s=(u=i.length)<(c=a.length)?u:c,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return u==c?0:c<u^n?1:-1}function y(t,e,n,r){if(t<e||n<t||t!==o(t))throw Error(s+(r||"Argument")+("number"==typeof t?t<e||n<t?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function v(t){var e=t.c.length-1;return m(t.e/l)==e&&t.c[e]%2!=0}function E(t,e){return(1<t.length?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function T(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}(n=function t(e){var n,I,O,N,S,A,w,R,b,D,C,L=j.prototype={constructor:j,toString:null,valueOf:null},M=new j(1),P=20,x=4,U=-7,k=21,Y=-1e7,F=1e7,G=!1,V=1,H=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},W="0123456789abcdefghijklmnopqrstuvwxyz";function j(t,e){var n,i,a,s,c,h,d,g,m=this;if(!(m instanceof j))return new j(t,e);if(null==e){if(t&&!0===t._isBigNumber)return m.s=t.s,void(!t.c||t.e>F?m.c=m.e=null:t.e<Y?m.c=[m.e=0]:(m.e=t.e,m.c=t.c.slice()));if((h="number"==typeof t)&&0*t==0){if(m.s=1/t<0?(t=-t,-1):1,t===~~t){for(s=0,c=t;10<=c;c/=10,s++);return void(F<s?m.c=m.e=null:(m.e=s,m.c=[t]))}g=String(t)}else{if(!r.test(g=String(t)))return O(m,g,h);m.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}-1<(s=g.indexOf("."))&&(g=g.replace(".","")),0<(c=g.search(/e/i))?(s<0&&(s=c),s+=+g.slice(c+1),g=g.substring(0,c)):s<0&&(s=g.length)}else{if(y(e,2,W.length,"Base"),10==e)return Q(m=new j(t),P+m.e+1,x);if(g=String(t),h="number"==typeof t){if(0*t!=0)return O(m,g,h,e);if(m.s=1/t<0?(g=g.slice(1),-1):1,j.DEBUG&&15<g.replace(/^0\.0*|\./,"").length)throw Error(u+t)}else m.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=W.slice(0,e),s=c=0,d=g.length;c<d;c++)if(n.indexOf(i=g.charAt(c))<0){if("."==i){if(s<c){s=d;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,c=-1,s=0;continue}return O(m,String(t),h,e)}h=!1,-1<(s=(g=I(g,e,10,m.s)).indexOf("."))?g=g.replace(".",""):s=g.length}for(c=0;48===g.charCodeAt(c);c++);for(d=g.length;48===g.charCodeAt(--d););if(g=g.slice(c,++d)){if(d-=c,h&&j.DEBUG&&15<d&&(f<t||t!==o(t)))throw Error(u+m.s*t);if((s=s-c-1)>F)m.c=m.e=null;else if(s<Y)m.c=[m.e=0];else{if(m.e=s,m.c=[],c=(s+1)%l,s<0&&(c+=l),c<d){for(c&&m.c.push(+g.slice(0,c)),d-=l;c<d;)m.c.push(+g.slice(c,c+=l));c=l-(g=g.slice(c)).length}else c-=d;for(;c--;g+="0");m.c.push(+g)}}else m.c=[m.e=0]}function $(t,e,n,r){for(var i,a,o=[0],s=0,u=t.length;s<u;){for(a=o.length;a--;o[a]*=e);for(o[0]+=r.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}function z(t,e,n){var r,i,a,o,s=0,u=t.length,c=e%d,l=e/d|0;for(t=t.slice();u--;)s=((i=c*(a=t[u]%d)+(r=l*a+(o=t[u]/d|0)*c)%d*d+s)/n|0)+(r/d|0)+l*o,t[u]=i%n;return s&&(t=[s].concat(t)),t}function Z(t,e,n,r){var i,a;if(n!=r)a=r<n?1:-1;else for(i=a=0;i<n;i++)if(t[i]!=e[i]){a=t[i]>e[i]?1:-1;break}return a}function q(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&1<t.length;t.splice(0,1));}function K(t,e,n,r){var i,a,o,s,u;if(null==n?n=x:y(n,0,8),!t.c)return t.toString();if(i=t.c[0],o=t.e,null==e)u=_(t.c),u=1==r||2==r&&(o<=U||k<=o)?E(u,o):T(u,o,"0");else if(a=(t=Q(new j(t),e,n)).e,s=(u=_(t.c)).length,1==r||2==r&&(e<=a||a<=U)){for(;s<e;u+="0",s++);u=E(u,a)}else if(e-=o,u=T(u,a,"0"),s<a+1){if(0<--e)for(u+=".";e--;u+="0");}else if(0<(e+=a-s))for(a+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function X(t,e){for(var n,r=1,i=new j(t[0]);r<t.length;r++){if(!(n=new j(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function J(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];10<=i;i/=10,r++);return(n=r+n*l-1)>F?t.c=t.e=null:n<Y?t.c=[t.e=0]:(t.e=n,t.c=e),t}function Q(t,e,n,r){var i,s,u,f,d,g,m,_=t.c,p=h;if(_){t:{for(i=1,f=_[0];10<=f;f/=10,i++);if((s=e-i)<0)s+=l,u=e,m=(d=_[g=0])/p[i-u-1]%10|0;else if((g=a((s+1)/l))>=_.length){if(!r)break t;for(;_.length<=g;_.push(0));d=m=0,u=(s%=l)-l+(i=1)}else{for(d=f=_[g],i=1;10<=f;f/=10,i++);m=(u=(s%=l)-l+i)<0?0:d/p[i-u-1]%10|0}if(r=r||e<0||null!=_[g+1]||(u<0?d:d%p[i-u-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):5<m||5==m&&(4==n||r||6==n&&(0<s?0<u?d/p[i-u]:0:_[g-1])%10&1||n==(t.s<0?8:7)),e<1||!_[0])return _.length=0,r?(e-=t.e+1,_[0]=p[(l-e%l)%l],t.e=-e||0):_[0]=t.e=0,t;if(0==s?(_.length=g,f=1,g--):(_.length=g+1,f=p[l-s],_[g]=0<u?o(d/p[i-u]%p[u])*f:0),r)for(;;){if(0==g){for(s=1,u=_[0];10<=u;u/=10,s++);for(u=_[0]+=f,f=1;10<=u;u/=10,f++);s!=f&&(t.e++,_[0]==c&&(_[0]=1));break}if(_[g]+=f,_[g]!=c)break;_[g--]=0,f=1}for(s=_.length;0===_[--s];_.pop());}t.e>F?t.c=t.e=null:t.e<Y&&(t.c=[t.e=0])}return t}function tt(t){var e,n=t.e;return null===n?t.toString():(e=_(t.c),e=n<=U||k<=n?E(e,n):T(e,n,"0"),t.s<0?"-"+e:e)}return j.clone=t,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(s+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(y(n=t[e],0,g,e),P=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(y(n=t[e],0,8,e),x=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(y(n[0],-g,0,e),y(n[1],0,g,e),U=n[0],k=n[1]):(y(n,-g,g,e),U=-(k=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)y(n[0],-g,-1,e),y(n[1],1,g,e),Y=n[0],F=n[1];else{if(y(n,-g,g,e),!n)throw Error(s+e+" cannot be zero: "+n);
vendor: 5,349 bytes, line 1
1Y=-(F=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(s+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw G=!n,Error(s+"crypto unavailable");G=n}else G=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(y(n=t[e],0,9,e),V=n),t.hasOwnProperty(e="POW_PRECISION")&&(y(n=t[e],0,g,e),H=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(s+e+" not an object: "+n);B=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(s+e+" invalid: "+n);W=n}}return{DECIMAL_PLACES:P,ROUNDING_MODE:x,EXPONENTIAL_AT:[U,k],RANGE:[Y,F],CRYPTO:G,MODULO_MODE:V,POW_PRECISION:H,FORMAT:B,ALPHABET:W}},j.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!j.DEBUG)return!0;var e,n,r=t.c,i=t.e,a=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===a||-1===a)&&-g<=i&&i<=g&&i===o(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%l)<1&&(e+=l),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||c<=n||n!==o(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+t)},j.maximum=j.max=function(){return X(arguments,L.lt)},j.minimum=j.min=function(){return X(arguments,L.gt)},j.random=(N=9007199254740992,S=Math.random()*N&2097151?function(){return o(Math.random()*N)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,u,c=0,f=[],d=new j(M);if(null==t?t=P:y(t,0,g),i=a(t/l),G)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));c<i;)9e15<=(u=131072*e[c]+(e[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),e[c]=n[0],e[c+1]=n[1]):(f.push(u%1e14),c+=2);c=i/2}else{if(!crypto.randomBytes)throw G=!1,Error(s+"crypto unavailable");for(e=crypto.randomBytes(i*=7);c<i;)9e15<=(u=281474976710656*(31&e[c])+1099511627776*e[c+1]+4294967296*e[c+2]+16777216*e[c+3]+(e[c+4]<<16)+(e[c+5]<<8)+e[c+6])?crypto.randomBytes(7).copy(e,c):(f.push(u%1e14),c+=7);c=i/7}if(!G)for(;c<i;)(u=S())<9e15&&(f[c++]=u%1e14);for(i=f[--c],t%=l,i&&t&&(u=h[l-t],f[c]=o(i/u)*u);0===f[c];f.pop(),c--);if(c<0)f=[r=0];else{for(r=-1;0===f[0];f.splice(0,1),r-=l);for(c=1,u=f[0];10<=u;u/=10,c++);c<l&&(r-=l-c)}return d.e=r,d.c=f,d}),j.sum=function(){for(var t=1,e=arguments,n=new j(e[0]);t<e.length;)n=n.plus(e[t++]);return n},A="0123456789",I=function(t,e,r,i,a){var o,s,u,c,l,f,h,d,g=t.indexOf("."),m=P,p=x;for(0<=g&&(c=H,H=0,t=t.replace(".",""),f=(d=new j(e)).pow(t.length-g),H=c,d.c=$(T(_(f.c),f.e,"0"),10,r,A),d.e=d.c.length),u=c=(h=$(t,e,r,a?(o=W,A):(o=A,W))).length;0==h[--c];h.pop());if(!h[0])return o.charAt(0);if(g<0?--u:(f.c=h,f.e=u,f.s=i,h=(f=n(f,d,m,p,r)).c,l=f.r,u=f.e),g=h[s=u+m+1],c=r/2,l=l||s<0||null!=h[s+1],l=p<4?(null!=g||l)&&(0==p||p==(f.s<0?3:2)):c<g||g==c&&(4==p||l||6==p&&1&h[s-1]||p==(f.s<0?8:7)),s<1||!h[0])t=l?T(o.charAt(1),-m,o.charAt(0)):o.charAt(0);else{if(h.length=s,l)for(--r;++h[--s]>r;)h[s]=0,s||(++u,h=[1].concat(h));for(c=h.length;!h[--c];);for(g=0,t="";g<=c;t+=o.charAt(h[g++]));t=T(t,u,o.charAt(0))}return t},n=function(t,e,n,r,i){var a,s,u,f,h,d,g,_,p,y,v,E,T,I,O,N,S,A=t.s==e.s?1:-1,w=t.c,R=e.c;if(!(w&&w[0]&&R&&R[0]))return new j(t.s&&e.s&&(w?!R||w[0]!=R[0]:R)?w&&0==w[0]||!R?0*A:A/0:NaN);for(p=(_=new j(A)).c=[],A=n+(s=t.e-e.e)+1,i||(i=c,s=m(t.e/l)-m(e.e/l),A=A/l|0),u=0;R[u]==(w[u]||0);u++);if(R[u]>(w[u]||0)&&s--,A<0)p.push(1),f=!0;else{for(I=w.length,N=R.length,A+=2,1<(h=o(i/(R[u=0]+1)))&&(R=z(R,h,i),w=z(w,h,i),N=R.length,I=w.length),T=N,v=(y=w.slice(0,N)).length;v<N;y[v++]=0);S=R.slice(),S=[0].concat(S),O=R[0],R[1]>=i/2&&O++;do{if(h=0,(a=Z(R,y,N,v))<0){if(E=y[0],N!=v&&(E=E*i+(y[1]||0)),1<(h=o(E/O)))for(i<=h&&(h=i-1),g=(d=z(R,h,i)).length,v=y.length;1==Z(d,y,g,v);)h--,q(d,N<g?S:R,g,i),g=d.length,a=1;else 0==h&&(a=h=1),g=(d=R.slice()).length;if(g<v&&(d=[0].concat(d)),q(y,d,v,i),v=y.length,-1==a)for(;Z(R,y,N,v)<1;)h++,q(y,N<v?S:R,v,i),v=y.length}else 0===a&&(h++,y=[0]);p[u++]=h,y[0]?y[v++]=w[T]||0:(y=[w[T]],v=1)}while((T++<I||null!=y[0])&&A--);f=null!=y[0],p[0]||p.splice(0,1)}if(i==c){for(u=1,A=p[0];10<=A;A/=10,u++);Q(_,n+(_.e=u+s*l-1)+1,r,f)}else _.e=s,_.r=+f;return _},w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,R=/^([^.]+)\.$/,b=/^\.([^.]+)$/,D=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g,O=function(t,e,n,r){var i,a=n?e:e.replace(C,"");if(D.test(a))t.s=isNaN(a)?null:a<0?-1:1;else{if(!n&&(a=a.replace(w,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,a=a.replace(R,"$1").replace(b,"0.$1")),e!=a))return new j(a,i);if(j.DEBUG)throw Error(s+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},L.absoluteValue=L.abs=function(){var t=new j(this);return t.s<0&&(t.s=1),t},L.comparedTo=function(t,e){return p(this,new j(t,e))},L.decimalPlaces=L.dp=function(t,e){var n,r,i;if(null!=t)return y(t,0,g),null==e?e=x:y(e,0,8),Q(new j(this),t+this.e+1,e);if(!(n=this.c))return null;if(r=((i=n.length-1)-m(this.e/l))*l,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},L.dividedBy=L.div=function(t,e){return n(this,new j(t,e),P,x)},L.dividedToIntegerBy=L.idiv=function(t,e){return n(this,new j(t,e),0,1)},L.exponentiatedBy=L.pow=function(t,e){var n,r,i,u,c,f,h,d,g=this;if((t=new j(t)).c&&!t.isInteger())throw Error(s+"Exponent not an integer: "+tt(t));
1if(null!=e&&(e=new j(e)),c=14<t.e,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!t.c||!t.c[0])return d=new j(Math.pow(+tt(g),c?2-v(t):+tt(t))),e?d.mod(e):d;if(f=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new j(NaN);(r=!f&&g.isInteger()&&e.isInteger())&&(g=g.mod(e))}else{if(9<t.e&&(0<g.e||g.e<-1||(0==g.e?1<g.c[0]||c&&24e7<=g.c[1]:g.c[0]<8e13||c&&g.c[0]<=9999975e7)))return u=g.s<0&&v(t)?-0:0,-1<g.e&&(u=1/u),new j(f?1/u:u);H&&(u=a(H/l+2))}for(h=c?(n=new j(.5),f&&(t.s=1),v(t)):(i=Math.abs(+tt(t)))%2,d=new j(M);;){if(h){if(!(d=d.times(g)).c)break;u?d.c.length>u&&(d.c.length=u):r&&(d=d.mod(e))}if(i){if(0===(i=o(i/2)))break;h=i%2}else if(Q(t=t.times(n),t.e+1,1),14<t.e)h=v(t);else{if(0==(i=+tt(t)))break;h=i%2}g=g.times(g),u?g.c&&g.c.length>u&&(g.c.length=u):r&&(g=g.mod(e))}return r?d:(f&&(d=M.div(d)),e?d.mod(e):u?Q(d,H,x,void 0):d)},L.integerValue=function(t){var e=new j(this);return null==t?t=x:y(t,0,8),Q(e,e.e+1,t)},L.isEqualTo=L.eq=function(t,e){return 0===p(this,new j(t,e))},L.isFinite=function(){return!!this.c},L.isGreaterThan=L.gt=function(t,e){return 0<p(this,new j(t,e))},L.isGreaterThanOrEqualTo=L.gte=function(t,e){return 1===(e=p(this,new j(t,e)))||0===e},L.isInteger=function(){return!!this.c&&m(this.e/l)>this.c.length-2},L.isLessThan=L.lt=function(t,e){return p(this,new j(t,e))<0},L.isLessThanOrEqualTo=L.lte=function(t,e){return-1===(e=p(this,new j(t,e)))||0===e},L.isNaN=function(){return!this.s},L.isNegative=function(){return this.s<0},L.isPositive=function(){return 0<this.s},L.isZero=function(){return!!this.c&&0==this.c[0]},L.minus=function(t,e){var n,r,i,a,o=this,s=o.s;if(e=(t=new j(t,e)).s,!s||!e)return new j(NaN);if(s!=e)return t.s=-e,o.plus(t);var u=o.e/l,f=t.e/l,h=o.c,d=t.c;if(!u||!f){if(!h||!d)return h?(t.s=-e,t):new j(d?o:NaN);if(!h[0]||!d[0])return d[0]?(t.s=-e,t):new j(h[0]?o:3==x?-0:0)}if(u=m(u),f=m(f),h=h.slice(),s=u-f){for((i=(a=s<0)?(s=-s,h):(f=u,d)).reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(a=(s=h.length)<(e=d.length))?s:e,s=e=0;e<r;e++)if(h[e]!=d[e]){a=h[e]<d[e];break}if(a&&(i=h,h=d,d=i,t.s=-t.s),0<(e=(r=d.length)-(n=h.length)))for(;e--;h[n++]=0);for(e=c-1;s<r;){if(h[--r]<d[r]){for(n=r;n&&!h[--n];h[n]=e);--h[n],h[r]+=c}h[r]-=d[r]}for(;0==h[0];h.splice(0,1),--f);return h[0]?J(t,h,f):(t.s=3==x?-1:1,t.c=[t.e=0],t)},L.modulo=L.mod=function(t,e){var r,i,a=this;return t=new j(t,e),!a.c||!t.s||t.c&&!t.c[0]?new j(NaN):!t.c||a.c&&!a.c[0]?new j(a):(9==V?(i=t.s,t.s=1,r=n(a,t,0,3),t.s=i,r.s*=i):r=n(a,t,0,V),(t=a.minus(r.times(t))).c[0]||1!=V||(t.s=a.s),t)},L.multipliedBy=L.times=function(t,e){var n,r,i,a,o,s,u,f,h,g,_,p,y,v,E,T=this,I=T.c,O=(t=new j(t,e)).c;if(!(I&&O&&I[0]&&O[0]))return!T.s||!t.s||I&&!I[0]&&!O||O&&!O[0]&&!I?t.c=t.e=t.s=null:(t.s*=T.s,I&&O?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=m(T.e/l)+m(t.e/l),t.s*=T.s,(u=I.length)<(g=O.length)&&(y=I,I=O,O=y,i=u,u=g,g=i),i=u+g,y=[];i--;y.push(0));for(v=c,E=d,i=g;0<=--i;){for(n=0,_=O[i]%E,p=O[i]/E|0,a=i+(o=u);i<a;)n=((f=_*(f=I[--o]%E)+(s=p*f+(h=I[o]/E|0)*_)%E*E+y[a]+n)/v|0)+(s/E|0)+p*h,y[a--]=f%v;y[a]=n}return n?++r:y.splice(0,1),J(t,y,r)},L.negated=function(){var t=new j(this);return t.s=-t.s||null,t},L.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new j(t,e)).s,!i||!e)return new j(NaN);if(i!=e)return t.s=-e,r.minus(t);var a=r.e/l,o=t.e/l,s=r.c,u=t.c;if(!a||!o){if(!s||!u)return new j(i/0);if(!s[0]||!u[0])return u[0]?t:new j(s[0]?r:0*i)}if(a=m(a),o=m(o),s=s.slice(),i=a-o){for((n=0<i?(o=a,u):(i=-i,s)).reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(e=u.length)<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/c|0,s[e]=c===s[e]?0:s[e]%c;return i&&(s=[i].concat(s),++o),J(t,s,o)},L.precision=L.sd=function(t,e){var n,r,i;if(null!=t&&t!==!!t)return y(t,1,g),null==e?e=x:y(e,0,8),Q(new j(this),t,e);if(!(n=this.c))return null;if(r=(i=n.length-1)*l+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];10<=i;i/=10,r++);}return t&&this.e+1>r&&(r=this.e+1),r},L.shiftedBy=function(t){return y(t,-f,f),this.times("1e"+t)},L.squareRoot=L.sqrt=function(){var t,e,r,i,a,o=this,s=o.c,u=o.s,c=o.e,l=P+4,f=new j("0.5");if(1!==u||!s||!s[0])return new j(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if((r=0==(u=Math.sqrt(+tt(o)))||u==1/0?(((e=_(s)).length+c)%2==0&&(e+="0"),u=Math.sqrt(+e),c=m((c+1)/2)-(c<0||c%2),new j(e=u==1/0?"1e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):new j(u+"")).c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(a=r,r=f.times(a.plus(n(o,a,l,1))),_(a.c).slice(0,u)===(e=_(r.c)
1).slice(0,u)){if(r.e<c&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(Q(r,r.e+P+2,1),t=!r.times(r).eq(o));break}if(!i&&(Q(a,a.e+P+2,0),a.times(a).eq(o))){r=a;break}l+=4,u+=4,i=1}return Q(r,r.e+P+1,x,t)},L.toExponential=function(t,e){return null!=t&&(y(t,0,g),t++),K(this,t,e,1)},L.toFixed=function(t,e){return null!=t&&(y(t,0,g),t=t+this.e+1),K(this,t,e)},L.toFormat=function(t,e,n){var r;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=B;else if("object"!=typeof n)throw Error(s+"Argument not an object: "+n);if(r=this.toFixed(t,e),this.c){var i,a=r.split("."),o=+n.groupSize,u=+n.secondaryGroupSize,c=n.groupSeparator||"",l=a[0],f=a[1],h=this.s<0,d=h?l.slice(1):l,g=d.length;if(u&&(i=o,o=u,g-=u=i),0<o&&0<g){for(i=g%o||o,l=d.substr(0,i);i<g;i+=o)l+=c+d.substr(i,o);0<u&&(l+=c+d.slice(i)),h&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},L.toFraction=function(t){var e,r,i,a,o,u,c,f,d,g,m,p,y=this,v=y.c;if(null!=t&&(!(c=new j(t)).isInteger()&&(c.c||1!==c.s)||c.lt(M)))throw Error(s+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+tt(c));if(!v)return new j(y);for(e=new j(M),d=r=new j(M),i=f=new j(M),p=_(v),o=e.e=p.length-y.e-1,e.c[0]=h[(u=o%l)<0?l+u:u],t=!t||0<c.comparedTo(e)?0<o?e:d:c,u=F,F=1/0,c=new j(p),f.c[0]=0;g=n(c,e,0,1),1!=(a=r.plus(g.times(i))).comparedTo(t);)r=i,i=a,d=f.plus(g.times(a=d)),f=a,e=c.minus(g.times(a=e)),c=a;return a=n(t.minus(r),i,0,1),f=f.plus(a.times(d)),r=r.plus(a.times(i)),f.s=d.s=y.s,m=n(d,i,o*=2,x).minus(y).abs().comparedTo(n(f,r,o,x).minus(y).abs())<1?[d,i]:[f,r],F=u,m},L.toNumber=function(){return+tt(this)},L.toPrecision=function(t,e){return null!=t&&y(t,1,g),K(this,t,e,2)},L.toString=function(t){var e,n=this,r=n.s,i=n.e;return null===i?r?(e="Infinity",r<0&&(e="-"+e)):e="NaN":(e=null==t?i<=U||k<=i?E(_(n.c),i):T(_(n.c),i,"0"):10===t?T(_((n=Q(new j(n),P+i+1,x)).c),n.e,"0"):(y(t,2,W.length,"Base"),I(T(_(n.c),i,"0"),10,t,r,!0)),r<0&&n.c[0]&&(e="-"+e)),e},L.valueOf=L.toJSON=function(){return tt(this)},L._isBigNumber=!0,i&&(L[Symbol.toStringTag]="BigNumber",L[Symbol.for("nodejs.util.inspect.custom")]=L.valueOf),null!=e&&j.set(e),j}()).default=n.BigNumber=n,void 0!==e&&e.exports?e.exports=n:(t=t||("undefined"!=typeof self&&self?self:window)).BigNumber=n}(this)},{}],2:[function(t,e,n){"use strict";e.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(t){var e=t%10;return 1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=t("./globalState"),a=t("./validating"),o=t("./parsing"),s={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},u={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},c=i.currentBytes(),l=c.binarySuffixes,f=c.decimalSuffixes,h={general:{scale:1024,suffixes:f,marker:"bd"},binary:{scale:1024,suffixes:l,marker:"b"}
1,decimal:{scale:1e3,suffixes:f,marker:"d"}};function d(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if("string"==typeof e&&(e=o.parseFormat(e)),!a.validateFormat(e))return"ERROR: invalid format";var r=e.prefix||"",s=e.postfix||"",c=function(t,e,n){switch(e.output){case"currency":return function(t,e,n){var r=n.currentCurrency(),i=Object.assign({},e),a=Object.assign({},u,i),o=void 0,s="",c=!!a.totalLength||!!a.forceAverage||a.average,l=i.currencyPosition||r.position,f=i.currencySymbol||r.symbol,h=void 0!==a.spaceSeparatedCurrency?a.spaceSeparatedCurrency:a.spaceSeparated;void 0===i.lowPrecision&&(i.lowPrecision=!1),h&&(s=" "),"infix"===l&&(o=s+f+s);var d=y({instance:t,providedFormat:i,state:n,decimalSeparator:o});return"prefix"===l&&(d=t._value<0&&"sign"===a.negative?"-".concat(s).concat(f).concat(d.slice(1)):0<t._value&&a.forceSign?"+".concat(s).concat(f).concat(d.slice(1)):f+s+d),l&&"postfix"!==l||(d=d+(s=!a.spaceSeparatedAbbreviation&&c?"":s)+f),d}(t,e=v(e,i.currentCurrencyDefaultFormat()),i);case"percent":return function(t,e,n,r){var i=e.prefixSymbol,a=y({instance:r(100*t._value),providedFormat:e,state:n}),o=Object.assign({},u,e);return i?"%".concat(o.spaceSeparated?" ":"").concat(a):"".concat(a).concat(o.spaceSeparated?" ":"","%")}(t,e=v(e,i.currentPercentageDefaultFormat()),i,n);case"byte":return function(t,e,n,r){var i=e.base||"binary",a=Object.assign({},u,e),o=n.currentBytes(),s=o.binarySuffixes,c=o.decimalSuffixes,h={general:{scale:1024,suffixes:c||f,marker:"bd"},binary:{scale:1024,suffixes:s||l,marker:"b"},decimal:{scale:1e3,suffixes:c||f,marker:"d"}}[i],d=g(t._value,h.suffixes,h.scale),m=d.value,_=d.suffix,p=y({instance:r(m),providedFormat:e,state:n,defaults:n.currentByteDefaultFormat()});return"".concat(p).concat(a.spaceSeparated?" ":"").concat(_)}(t,e=v(e,i.currentByteDefaultFormat()),i,n);case"time":return e=v(e,i.currentTimeDefaultFormat()),function(t){var e=Math.floor(t._value/60/60),n=Math.floor((t._value-60*e*60)/60),r=Math.round(t._value-60*e*60-60*n);return"".concat(e,":").concat(n<10?"0":"").concat(n,":").concat(r<10?"0":"").concat(r)}(t);case"ordinal":return function(t,e,n){var r=n.currentOrdinal(),i=Object.assign({},u,e),a=y({instance:t,providedFormat:e,state:n}),o=r(t._value);return"".concat(a).concat(i.spaceSeparated?" ":"").concat(o)}(t,e=v(e,i.currentOrdinalDefaultFormat()),i);default:return y({instance:t,providedFormat:e,numbro:n})}}(t,e,n);return(c=r+c)+s}function g(t,e,n){var r=e[0],i=Math.abs(t);if(n<=i){for(var a=1;a<e.length;++a){var o=Math.pow(n,a),s=Math.pow(n,a+1);if(o<=i&&i<s){r=e[a],t/=o;break}}r===e[0]&&(t/=Math.pow(n,e.length-1),r=e[e.length-1])}return{value:t,suffix:r}}function m(t){for(var e="",n=0;n<t;n++)e+="0";return e}function _(t,e,n){var i=2<arguments.length&&void 0!==n?n:Math.round;return-1!==t.toString().indexOf("e")?function(t,e){var n=t.toString(),i=r(n.split("e"),2),a=i[0],o=i[1],s=r(a.split("."),2),u=s[0],c=s[1],l=void 0===c?"":c;if(0<+o)n=u+l+m(o-l.length);else{var f=".";f=+u<0?"-0".concat(f):"0".concat(f);var h=(m(-o-1)+Math.abs(u)+l).substr(0,e);h.length<e&&(h+=m(e-h.length)),n=f+h}return 0<+o&&0<e&&(n+=".".concat(m(e))),n}(t,e):(i(+"".concat(t,"e+").concat(e))/Math.pow(10,e)).toFixed(e)}function p(t,e,n,r,i){var a=r.currentDelimiters(),o=a.thousands;i=i||a.decimal;var s=a.thousandsSize||3,u=t.toString(),c=u.split(".")[0],l=u.split(".")[1],f=e<0&&0===c.indexOf("-");return n&&(f&&(c=c.slice(1)),function(t,e){for(var n=[],r=0,i=t;0<i;i--)r===e&&(n.unshift(i),r=0),r++;return n}(c.length,s).forEach((function(t,e){c=c.slice(0,t+e)+o+c.slice(t+e)})),f&&(c="-".concat(c))),l?c+i+l:c}function y(t){var e=t.instance,n=t.providedFormat,a=t.state,o=void 0===a?i:a,c=t.decimalSeparator,l=t.defaults,f=void 0===l?o.currentDefaults():l,h=e._value;if(0===h&&o.hasZeroFormat())return o.getZeroFormat();if(!isFinite(h))return h.toString();var d,g,m,y,v,E,T,I,O=Object.assign({},u,f,n),N=O.totalLength,S=N?0:O.characteristic,A=O.optionalCharacteristic,w=O.forceAverage,R=O.lowPrecision,b=!!N||!!w||O.average,D=N?-1:b&&void 0===n.mantissa?0:O.mantissa,C=!N&&(void 0===n.optionalMantissa?-1===D:O.optionalMantissa),L=O.trimMantissa,M=O.thousandSeparated,P=O.spaceSeparated,x=O.negative,U=O.forceSign,k=O.exponential,Y=O.roundingFunction,F="";if(b){var G=function(t){var e=t.value,n=t.forceAverage,r=t.lowPrecision,i=void 0===r||r,a=t.abbreviations,o=t.spaceSeparated,u=void 0!==o&&o,c=t.totalLength,l=void 0===c?0:c,f=t.roundingFunction,h=void 0===f?Math.round:f,d="",g=Math.abs(e),m=-1;if(n&&a[n]&&s[n]?(d=a[n],e/=s[n]):g>=s.trillion||i&&1===h(g/s.trillion)?(d=a.trillion,e/=s.trillion):g<s.trillion&&g>=s.billion||i&&1===h(g/s.billion)?(d=a.billion,e/=s.billion):g<s.billion&&g>=s.million||i&&1===h(g/s.million)?(d=a.million,e/=s.million):(g<s.million&&g>=s.thousand||i&&1===h(g/s.thousand))&&(d=a.thousand,e/=s.thousand),d=d&&(u?" ":"")+d,l){var _=e<0,p=e.toString().split(".")[0],y=_?p.length-1:p.length;m=Math.max(l-y,0)}return{value:e,abbreviation:d,mantissaPrecision:m}}({value:h,forceAverage:w,lowPrecision:R,abbreviations:o.currentAbbreviations(),spaceSeparated:P,roundingFunction:Y,totalLength:N});h=G.value,F+=G.abbreviation,N&&(D=G.mantissaPrecision)}if(k){var V=(g=(d={value:h,characteristicPrecision:S}).value,y=void 0===(m=d.characteristicPrecision)?0:m,E=(v=r(g.toExponential().split("e"),2))[0],T=v[1],I=+E,y&&1<y&&(I*=Math.pow(10,y-1),T=0<=(T-=y-1)?"+".concat(T):T),{value:
1I,abbreviation:"e".concat(T)});h=V.value,F=V.abbreviation+F}var H,B,W,j=function(t,e,n,i,a,o){if(-1===i)return t;var s=_(e,i,o),u=r(s.toString().split("."),2),c=u[0],l=u[1],f=void 0===l?"":l;if(f.match(/^0+$/)&&(n||a))return c;var h=f.match(/0+$/);return a&&h?"".concat(c,".").concat(f.toString().slice(0,h.index)):s.toString()}(h.toString(),h,C,D,L,Y);return j=p(j=function(t,e,n,i){var a=t,o=r(a.toString().split("."),2),s=o[0],u=o[1];if(s.match(/^-?0$/)&&n)return u?"".concat(s.replace("0",""),".").concat(u):s.replace("0","");var c=e<0&&0===s.indexOf("-");if(c&&(s=s.slice(1),a=a.slice(1)),s.length<i)for(var l=i-s.length,f=0;f<l;f++)a="0".concat(a);return c&&(a="-".concat(a)),a.toString()}(j,h,A,S),h,M,o,c),(b||k)&&(j+=F),(U||h<0)&&(H=j,W=x,j=0===(B=h)?H:0==+H?H.replace("-",""):0<B?"+".concat(H):"sign"===W?H:"(".concat(H.replace("-",""),")")),j}function v(t,e){if(!t)return e;var n=Object.keys(t);return 1===n.length&&"output"===n[0]?e:t}e.exports=function(t){return{format:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return d.apply(void 0,n.concat([t]))},getByteUnit:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=h.general;return g(t._value,e.suffixes,e.scale).suffix}.apply(void 0,n.concat([t]))},getBinaryByteUnit:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=h.binary;return g(t._value,e.suffixes,e.scale).suffix}.apply(void 0,n.concat([t]))},getDecimalByteUnit:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(t){var e=h.decimal;return g(t._value,e.suffixes,e.scale).suffix}.apply(void 0,n.concat([t]))},formatOrDefault:v}}},{"./globalState":4,"./parsing":8,"./validating":10}],4:[function(t,e,n){"use strict";var r=t("./en-US"),i=t("./validating"),a=t("./parsing"),o={},s=void 0,u={},c=null,l={};function f(t){s=t}function h(){return u[s]}o.languages=function(){return Object.assign({},u)},o.currentLanguage=function(){return s},o.currentBytes=function(){return h().bytes||{}},o.currentCurrency=function(){return h().currency},o.currentAbbreviations=function(){return h().abbreviations},o.currentDelimiters=function(){return h().delimiters},o.currentOrdinal=function(){return h().ordinal},o.currentDefaults=function(){return Object.assign({},h().defaults,l)},o.currentOrdinalDefaultFormat=function(){return Object.assign({},o.currentDefaults(),h().ordinalFormat)},o.currentByteDefaultFormat=function(){return Object.assign({},o.currentDefaults(),h().byteFormat)},o.currentPercentageDefaultFormat=function(){return Object.assign({},o.currentDefaults(),h().percentageFormat)},o.currentCurrencyDefaultFormat=function(){return Object.assign({},o.currentDefaults(),h().currencyFormat)},o.currentTimeDefaultFormat=function(){return Object.assign({},o.currentDefaults(),h().timeFormat)},o.setDefaults=function(t){t=a.parseFormat(t),i.validateFormat(t)&&(l=t)},o.getZeroFormat=function(){return c},o.setZeroFormat=function(t){return c="string"==typeof t?t:null},o.hasZeroFormat=function(){return null!==c},o.languageData=function(t){if(t){if(u[t])return u[t];throw new Error('Unknown tag "'.concat(t,'"'))}return h()},o.registerLanguage=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!i.validateLanguage(t))throw new Error("Invalid language data");u[t.languageTag]=t,e&&f(t.languageTag)},o.setLanguage=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!u[t]){var n=t.split("-")[0],i=Object.keys(u).find((function(t){return t.split("-")[0]===n}));return u[i]?void f(i):void f(e)}f(t)},o.registerLanguage(r),s=r.languageTag,e.exports=o},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(t,e,n){"use strict";e.exports=function(e){return{loadLanguagesInNode:function(n){return r=e,void n.forEach((function(e){var n=void 0;try{n=t("../languages/".concat(e))}catch(n){console.error('Unable to load "'.concat(e,'". No matching language file found.'))}n&&r.registerLanguage(n)}));var r}}}},{}],6:[function(t,e,n){"use strict";var r=t("bignumber.js");function i(t,e,n){var i=new r(t._value),a=e;return n.isNumbro(e)&&(a=e._value),a=new r(a),t._value=i.minus(a).toNumber(),t}e.exports=function(t){return{add:function(e,n){return a=n,o=t,s=new r((i=e)._value),u=a,o.isNumbro(a)&&(u=a._value),u=new r(u),i._value=s.plus(u).toNumber(),i;var i,a,o,s,u},subtract:function(e,n){return i(e,n,t)},multiply:function(e,n){return a=n,o=t,s=new r((i=e)._value),u=a,o.isNumbro(a)&&(u=a._value),u=new r(u),i._value=s.times(u).toNumber(),i;var i,a,o,s,u},divide:function(e,n){return a=n,o=t,s=new r((i=e)._value),u=a,o.isNumbro(a)&&(u=a._value),u=new r(u),i._value=s.dividedBy(u).toNumber(),i;var i,a,o,s,u},set:function(e,n){return r=e,a=i=n,t.isNumbro(i)&&(a=i._value),r._value=a,r;var r,i,a},difference:function(e,n){return r=n,i(o=(a=t)(e._value),r,a),Math.abs(o._value);var r,a,o},BigNumber:r}}},{"bignumber.js":1}],7:[function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=t("./globalState"),a=t("./validating"),o=t("./loading")(d),s=t("./unformatting"),u=t("./formatting")(d),c=t("./manipulating")(d),l=t("./parsing"),f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._value=e}var e,n,a;return e=t,(n=[{key:"clone",value:function(){return d(this._value)}},{key:"format",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return u.format(this,e)}},{key:"formatCurrency",value:function(t){return"string"==typeof t&&(t=l.parseFormat(t)),(t=u.formatOrDefault(t,i.currentCurrencyDefaultFormat())).output="currency",u.format(this,t)}},{key:"formatTime",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return e.output="time",u.format(this,e)}},{key:"binaryByteUnits",value:function(){return u.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return u.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return u.getByteUnit(this)}},{key:"difference",value:function(t){return c.difference(this,t)}},{key:"add",value:function(t){return c.add(this,t)}},{key:"subtract",value:function(t){return c.subtract(this,t)}},{key:"multiply",value:function(t){return c.multiply(this,t)}},{key:"divide",value:function(t){return c.divide(this,t)}},{key:"set",value:function(t){return c.set(this,h(t))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(e.prototype,n),a&&r(e,a),t}();function h(t){var e=t;return d.isNumbro(t)?e=t._value:"string"==typeof t?e=d.unformat(t):isNaN(t)&&(e=NaN),e}function d(t){return new f(h(t))}d.version="2.3.5",d.isNumbro=function(t){return t instanceof f},d.language=i.currentLanguage,d.registerLanguage=i.registerLanguage,d.setLanguage=i.setLanguage,d.languages=i.languages,d.languageData=i.languageData,d.zeroFormat=i.setZeroFormat,d.defaultFormat=i.currentDefaults,d.setDefaults=i.setDefaults,d.defaultCurrencyFormat=i.currentCurrencyDefaultFormat,d.validate=a.validate,d.loadLanguagesInNode=o.loadLanguagesInNode,d.unformat=s.unformat,d.BigNumber=c.BigNumber,e.exports=d},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(t,e,n){"use strict";e.exports={parseFormat:function(t){var e,n,r,i,a,o,s,u,c,l,f,h,d,g,m,_,p,y,v,E,T,I,O=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof t?t:(n=O,a=O,function(t,e){if(-1===t.indexOf("$")){if(-1===t.indexOf("%"))return-1!==t.indexOf("bd")?(e.output="byte",e.base="general"):-1!==t.indexOf("b")?(e.output="byte",e.base="binary"):-1!==t.indexOf("d")?(e.output="byte",e.base="decimal"):-1===t.indexOf(":")?-1!==t.indexOf("o")&&(e.output="ordinal"):e.output="time";e.output="percent"}else e.output="currency"}(t=(o=(i=t=(r=(e=t).match(/^{([^}]*)}/))?(n.prefix=r[1],e.slice(r[0].length)):e).match(/{([^}]*)}$/))?(a.postfix=o[1],i.slice(0,-o[0].length)):i,O),s=O,(u=t.match(/[1-9]+[0-9]*/))&&(s.totalLength=+u[0]),c=O,(l=t.split(".")[0].match(/0+/))&&(c.characteristic=l[0].length),function(t,e){if(-1!==t.indexOf(".")){var n=t.split(".")[0];e.optionalCharacteristic=-1===n.indexOf("0")}}(t,O),f=O,-1!==t.indexOf("a")&&(f.average=!0),d=O,-1!==(h=t).indexOf("K")?d.forceAverage="thousand":-1!==h.indexOf("M")?d.forceAverage="million":-1!==h.indexOf("B")?d.forceAverage="billion":-1!==h.indexOf("T")&&(d.forceAverage="trillion"),function(t,e){var n=t.split(".")[1];if(n){var r=n.match(/0+/);r&&(e.mantissa=r[0].length)}}(t,O),m=O,(g=t).match(/\[\.]/)?m.optionalMantissa=!0:g.match(/\./)&&(m.optionalMantissa=!1),_=O,(p=t.split(".")[1])&&(_.trimMantissa=-1!==p.indexOf("[")),y=O,-1!==t.indexOf(",")&&(y.thousandSeparated=!0),v=O,-1!==t.indexOf(" ")&&(v.spaceSeparated=!0,v.spaceSeparatedCurrency=!0,(v.average||v.forceAverage)&&(v.spaceSeparatedAbbreviation=!0)),T=O,(E=t).match(/^\+?\([^)]*\)$/)&&(T.negative="parenthesis"),E.match(/^\+?-/)&&(T.negative="sign"),I=O,t.match(/^\+/)&&(I.forceSign=!0),O)}}},{}],9:[function(t,e,n){"use strict";var r=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function i(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(t,e,n,a,o,s,u){var c=2<arguments.length&&void 0!==n?n:"",l=3<arguments.length?a:void 0,f=4<arguments.length?o:void 0,h=5<arguments.length?s:void 0,d=6<arguments.length?u:void 0;if(""!==t)return t===f?0:function t(e,n,a,o,s,u,c){var l=2<arguments.length&&void 0!==a?a:"",f=3<arguments.length?o:void 0,h=4<arguments.length?s:void 0,d=5<arguments.length?u:void 0,g=6<arguments.length?c:void 0;if(!isNaN(+e))return+e;var m="",_=e.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");
1if(_!==e)return-1*t(_,n,l,f,h,d,g);for(var p=0;p<r.length;p++){var y=r[p];if((m=e.replace(RegExp("([0-9 ])(".concat(y.key,")$")),"$1"))!==e)return t(m,n,l,f,h,d,g)*y.factor}if((m=e.replace("%",""))!==e)return t(m,n,l,f,h,d,g)/100;var v=parseFloat(e);if(!isNaN(v)){var E=f(v);if(E&&"."!==E&&(m=e.replace(new RegExp("".concat(i(E),"$")),""))!==e)return t(m,n,l,f,h,d,g);var T={};Object.keys(d).forEach((function(t){T[d[t]]=t}));for(var I=Object.keys(T).sort().reverse(),O=I.length,N=0;N<O;N++){var S=I[N],A=T[S];if((m=e.replace(S,""))!==e){var w=void 0;switch(A){case"thousand":w=Math.pow(10,3);break;case"million":w=Math.pow(10,6);break;case"billion":w=Math.pow(10,9);break;case"trillion":w=Math.pow(10,12)}return t(m,n,l,f,h,d,g)*w}}}}(function(t,e,n){var r=2<arguments.length&&void 0!==n?n:"",a=t.replace(r,"");return(a=a.replace(new RegExp("([0-9])".concat(i(e.thousands),"([0-9])"),"g"),"$1$2")).replace(e.decimal,".")}(t,e,c),e,c,l,f,h,d)}e.exports={unformat:function(e,n){var r,i,o,s=t("./globalState"),u=s.currentDelimiters(),c=s.currentCurrency().symbol,l=s.currentOrdinal(),f=s.getZeroFormat(),h=s.currentAbbreviations(),d=void 0;if("string"==typeof e)d=function(t,e){if(t.indexOf(":")&&":"!==e.thousands){var n=t.split(":");if(3===n.length){var r=+n[0],i=+n[1],a=+n[2];return!isNaN(r)&&!isNaN(i)&&!isNaN(a)}}}(e,u)?(i=+(r=e.split(":"))[0],o=+r[1],+r[2]+60*o+3600*i):a(e,u,c,l,f,h,n);else{if("number"!=typeof e)return;d=e}if(void 0!==d)return d}}},{"./globalState":4}],10:[function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=t("./unformatting"),o=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,s={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(t,e){return"byte"===e.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(t){return"byte"===t.output}},characteristic:{type:"number",restriction:function(t){return 0<=t},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:function(t,e){return!0===e.average},message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(t){return 0<=t},message:"value must be positive"},{restriction:function(t,e){return!e.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(t){return 0<=t},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(t,e){return"percent"===e.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},u={languageTag:{type:"string",mandatory:!0,restriction:function(t){return t.match(o)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}}
1,currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function c(t){return void 0!==a.unformat(t)}function l(t,e,n,a){var o=3<arguments.length&&void 0!==a&&a,u=Object.keys(t).map((function(r){if(!e[r])return console.error("".concat(n," Invalid key: ").concat(r)),!1;var a=t[r],o=e[r];if("string"==typeof o&&(o={type:o}),"format"===o.type){if(!l(a,s,"[Validate ".concat(r,"]"),!0))return!1}else if(i(a)!==o.type)return console.error("".concat(n," ").concat(r,' type mismatched: "').concat(o.type,'" expected, "').concat(i(a),'" provided')),!1;if(o.restrictions&&o.restrictions.length)for(var u=o.restrictions.length,c=0;c<u;c++){var f=o.restrictions[c],h=f.restriction,d=f.message;if(!h(a,t))return console.error("".concat(n," ").concat(r," invalid value: ").concat(d)),!1}return o.restriction&&!o.restriction(a,t)?(console.error("".concat(n," ").concat(r," invalid value: ").concat(o.message)),!1):o.validValues&&-1===o.validValues.indexOf(a)?(console.error("".concat(n," ").concat(r," invalid value: must be among ").concat(JSON.stringify(o.validValues),', "').concat(a,'" provided')),!1):!(o.children&&!l(a,o.children,"[Validate ".concat(r,"]")))}));return o||u.push.apply(u,r(Object.keys(e).map((function(r){var i=e[r];if("string"==typeof i&&(i={type:i}),i.mandatory){var a=i.mandatory;if("function"==typeof a&&(a=a(t)),a&&void 0===t[r])return console.error("".concat(n,' Missing mandatory key "').concat(r,'"')),!1}return!0})))),u.reduce((function(t,e){return t&&e}),!0)}function f(t){return l(t,s,"[Validate format]")}e.exports={validate:function(t,e){var n=c(t),r=f(e);return n&&r},validateFormat:f,validateInput:c,validateLanguage:function(t){return l(t,u,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)},48872:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getGoodFriday=e.getLastDay=e.getNthDay=e.getDate=void 0;const i=r(n(80168));e.getDate=t=>{const e=t.year,n=t.month,r=t.day;return i.default("".concat(e,"-").concat(n,"-").concat(null!==r&&void 0!==r?r:1),"YYYY-MM-DD")};e.getNthDay=t=>{const n=t.n,r=t.year,i=t.month,a=t.day;let o=e.getDate({month:i,year:r}).day(a);return o.month()!==i-1&&(o=o.add(1,"week")),o=o.add(n-1,"week"),o};e.getLastDay=t=>{const n=t.year,r=t.month,a=t.day,o=i.default(e.getDate({month:r,year:n})).daysInMonth();let s=i.default("".concat(n,"-").concat(r,"-").concat(o),"YYYY-MM-DD").day(a);return s.month()!==r-1&&(s=s.subtract(1,"week")),s};e.getGoodFriday=t=>(t=>{const n=t.year,r=Math.floor,i=n%19,a=r(n/100),o=(a-r(a/4)-r((8*a+13)/25)+19*i+15)%30,s=o-r(o/28)*(1-r(29/(o+1))*r((21-i)/11)),u=s-(n+r(n/4)+s+2-a+r(a/4))%7,c=3+r((u+40)/44),l=u+28-31*r(c/4);return e.getDate({year:n,month:c,day:l})})({year:t.year}).subtract(2,"days")},39170:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isHoliday=e.getHolidays=void 0;const i=r(n(80168)),a=n(48872);e.getHolidays=t=>{if(t<1885)return[];const e=[],n=o(t);n&&e.push(n);const r=s(t);r&&e.push(r);const i=u(t);i&&e.push(i);const v=c(t);v&&e.push(v);const E=l(t);E&&e.push(E);const T=f(t);T&&e.push(T);const I=h(t);I&&e.push(I);const O=d(t);O&&e.push(O);const N=g(t);N&&e.push(N);const S=m(t);S&&e.push(S);const A=_(t);A&&e.push(A);const w=p(t);w&&e.push(w);const R=y(t);R&&e.push(R);return e.map((t=>{if(0===t.date.day())return Object.assign(Object.assign({},t),{date:t.date.add(1,"day")});if(6===t.date.day()){const e=t.date.subtract(1,"day");if(t.date.isBefore(a.getDate({year:1959,month:7,day:3})))return Object.assign(Object.assign({},t),{date:e});if(e.month()===t.date.month())return Object.assign(Object.assign({},t),{date:e})}return t})).filter((t=>6!==t.date.day())).map((t=>Object.assign(Object.assign({},t),{date:t.date.toDate(),dateString:t.date.format("YYYY-MM-DD")})))};e.isHoliday=t=>{const n=i.default(t).year();return e.getHolidays(n).some((e=>e.date.toDateString()===t.toDateString()))||e.getHolidays(n+1).some((e=>e.date.toDateString()===t.toDateString()))};const o=t=>({name:"New Years Day",date:a.getDate({year:t,month:1,day:1})}),s=t=>{if(t>=1998)return{name:"Martin Luther King, Jr. Day",date:a.getNthDay({n:3,year:t,month:1,day:1})}},u=t=>{if(t>=1896&&t<=1953)return{name:"Lincoln's Birthday",date:a.getDate({year:t,month:2,day:12})}},c=t=>{const e="Washington's Birthday";return t>1971?{name:e,date:a.getNthDay({n:3,year:t,month:2,day:1})}:{name:e,date:a.getDate({year:t,month:2,day:22})}},l=t=>{if(1898!==t&&1906!==t&&1907!==t)return{name:"Good Friday",date:a.getGoodFriday({year:t})}},f=t=>{const e="Memorial Day";return t>=1971?{name:e,date:a.getLastDay({year:t,month:5,day:1})}:t>=1873?{name:e,date:a.getDate({year:t,month:5,day:30})}:void 0},h=t=>({name:"Independence Day",date:a.getDate({year:t,month:7,day:4})}),d=t=>{if(t>=1887)return{name:"Labor Day",date:a.getNthDay({n:1,year:t,month:9,day:1})}},g=t=>{if(t>=1909&&t<=1953)return{name:"Columbus Day",date:a.getDate({year:t,month:10,day:12})}},m=t=>{if(t<=1968||1972===t||1976===t||1980===t){return{name:"Election Day",date:a.getNthDay({n:1,year:t,month:11,day:1}).add(1,"day")}}},_=t=>{if(1918===t||1921===t||t>=1934&&t<=1953)return{name:"Veterans Day",date:a.getDate({year:t,month:11,day:11})}},p=t=>({name:"Thanksgiving Day",date:a.getNthDay({n:4,year:t,month:11,day:4})}),y=t=>({name:"Christmas Day",date:a.getDate({year:t,month:12,day:25})})},3569:function(t){t.exports=function(){var t=[],e=[],n={},r={},i={};function a(t){return"string"===typeof t?new RegExp("^"+t+"$","i"):t}function o(t,e){return t===e?e:t===t.toLowerCase()?e.toLowerCase():t===t.toUpperCase()?e.toUpperCase():t[0]===t[0].toUpperCase()?e.charAt(0).toUpperCase()+e.substr(1).toLowerCase():e.toLowerCase()}function s(t,e){return t.replace(/\$(\d{1,2})/g,(function(t,n){return e[n]||""}))}function u(t,e){return t.replace(e[0],(function(n,r){var i=s(e[1],arguments);return o(""===n?t[r-1]:n,i)}))}function c(t,e,r){if(!t.length||n.hasOwnProperty(t))return e;for(var i=r.length;i--;){var a=r[i];if(a[0].test(e))return u(e,a)}return e}function l(t,e,n){return function(r){var i=r.toLowerCase();return e.hasOwnProperty(i)?o(r,i):t.hasOwnProperty(i)?o(r,t[i]):c(i,r,n)}}function f(t,e,n,r){return function(r){var i=r.toLowerCase();return!!e.hasOwnProperty(i)||!t.hasOwnProperty(i)&&c(i,i,n)===i}}function h(t,e,n){return(n?e+" ":"")+(1===e?h.singular(t):h.plural(t))}return h.plural=l(i,r,t),h.isPlural=f(i,r,t),h.singular=l(r,i,e),h.isSingular=f(r,i,e),h.addPluralRule=function(e,n){t.push([a(e),n])},h.addSingularRule=function(t,n){e.push([a(t),n])},h.addUncountableRule=function(t){"string"!==typeof t?(h.addPluralRule(t,"$0"),h.addSingularRule(t,"$0")):n[t.toLowerCase()]=!0},h.addIrregularRule=function(t,e){e=e.toLowerCase(),t=t.toLowerCase(),i[t]=e,r[e]=t},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEac
1h((function(t){return h.addIrregularRule(t[0],t[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(t){return h.addPluralRule(t[0],t[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(t){return h.addSingularRule(t[0],t[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\xe9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(h.addUncountableRule),h}()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";const t=Symbol("Comlink.proxy"),e=Symbol("Comlink.endpoint"),r=Symbol("Comlink.releaseProxy"),i=Symbol("Comlink.finalizer"),a=Symbol("Comlink.thrown"),o=t=>"object"===typeof t&&null!==t||"function"===typeof t,s={canHandle:e=>o(e)&&e[t],serialize(t){const{port1:e,port2:n}=new MessageChannel;return c(t,e),[n,[n]]},deserialize:t=>(t.start(),function(t,e){const n=new Map;return t.addEventListener("message",(function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}})),m(t,n,[],e)}(t))}
vendor: 4,457 bytes, line 1
1,u=new Map([["proxy",s],["throw",{canHandle:t=>o(t)&&a in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function c(e,n=globalThis,r=["*"]){n.addEventListener("message",(function o(s){if(!s||!s.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(r,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`);const{id:u,type:f,path:h}=Object.assign({path:[]},s.data),d=(s.data.argumentList||[]).map(v);let g;try{const n=h.slice(0,-1).reduce(((t,e)=>t[e]),e),r=h.reduce(((t,e)=>t[e]),e);switch(f){case"GET":g=r;break;case"SET":n[h.slice(-1)[0]]=v(s.data.value),g=!0;break;case"APPLY":g=r.apply(n,d);break;case"CONSTRUCT":g=function(e){return Object.assign(e,{[t]:!0})}(new r(...d));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;c(e,n),g=function(t,e){return p.set(t,e),t}(t,[t])}break;case"RELEASE":g=void 0;break;default:return}}catch(m){g={value:m,[a]:0}}Promise.resolve(g).catch((t=>({value:t,[a]:0}))).then((t=>{const[r,a]=y(t);n.postMessage(Object.assign(Object.assign({},r),{id:u}),a),"RELEASE"===f&&(n.removeEventListener("message",o),l(n),i in e&&"function"===typeof e[i]&&e[i]())})).catch((t=>{const[e,r]=y({value:new TypeError("Unserializable return value"),[a]:0});n.postMessage(Object.assign(Object.assign({},e),{id:u}),r)}))})),n.start&&n.start()}function l(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function f(t){if(t)throw new Error("Proxy has been released and is not useable")}function h(t){return E(t,new Map,{type:"RELEASE"}).then((()=>{l(t)}))}const d=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const e=(d.get(t)||0)-1;d.set(t,e),0===e&&h(t)}));function m(t,n,i=[],a=function(){}){let o=!1;const s=new Proxy(a,{get(e,a){if(f(o),a===r)return()=>{!function(t){g&&g.unregister(t)}(s),h(t),n.clear(),o=!0};if("then"===a){if(0===i.length)return{then:()=>s};const e=E(t,n,{type:"GET",path:i.map((t=>t.toString()))}).then(v);return e.then.bind(e)}return m(t,n,[...i,a])},set(e,r,a){f(o);const[s,u]=y(a);return E(t,n,{type:"SET",path:[...i,r].map((t=>t.toString())),value:s},u).then(v)},apply(r,a,s){f(o);const u=i[i.length-1];if(u===e)return E(t,n,{type:"ENDPOINT"}).then(v);if("bind"===u)return m(t,n,i.slice(0,-1));const[c,l]=_(s);return E(t,n,{type:"APPLY",path:i.map((t=>t.toString())),argumentList:c},l).then(v)},construct(e,r){f(o);const[a,s]=_(r);return E(t,n,{type:"CONSTRUCT",path:i.map((t=>t.toString())),argumentList:a},s).then(v)}});return function(t,e){const n=(d.get(e)||0)+1;d.set(e,n),g&&g.register(t,e,t)}(s,t),s}function _(t){const e=t.map(y);return[e.map((t=>t[0])),(n=e.map((t=>t[1])),Array.prototype.concat.apply([],n))];var n}const p=new WeakMap;function y(t){for(const[e,n]of u)if(n.canHandle(t)){const[r,i]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},i]}return[{type:"RAW",value:t},p.get(t)||[]]}function v(t){switch(t.type){case"HANDLER":return u.get(t.name).deserialize(t.value);case"RAW":return t.value}}function E(t,e,n,r){return new Promise((i=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.set(a,i),t.start&&t.start(),t.postMessage(Object.assign({id:a},n),r)}))}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function I(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}function O(t,e,n){return(e=I(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?N(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const A=(t,e)=>{const n=new Map([[e,1]]),r=i=>{if(!Number.isFinite(i)||i<=e)return 1;const a=n.get(i);if(void 0!==a)return a;const o=r(i-1)*(1+t.getInflationRate(i-1)/100);return n.set(i,o),o};return r},w=t=>({getGrowthRate:(t,e)=>t.getGrowthRate(e),getInflationRate:()=>t.inflationRate}),R=t=>Number.isFinite(t)?Math.min(Math.max(t,0),100):0;function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const C=(t,e)=>{const n=(t=>{const e=new Map;for(const n of t){const t=n.year,r=n.rate;e.set(t,r)}return[...e.entries()].map((t=>{let e=D(t,2);return{year:e[0],rate:e[1]}})).sort(((t,e)=>t.year-e.year))})(t),r=n.at(0);if(void 0===r)throw new Error("interpolateRate requires at least one anchor");if(e<=r.year)return r.rate;let i=r;for(const a of n){if(a.year===e)return a.rate;if(a.year>e){const t=(e-i.year)/(a.year-i.year);return i.rate+t*(a.rate-i.rate)}i=a}return i.rate},L=t=>({forecastAccountId:t,serialized:t}),M=(t,e)=>({forecastAccountId:t,mixedComponentKind:e,serialized:"".concat(t,":").concat(e)}),P=(t,e)=>t.find((t=>{var n,r;return t.forecastAccountId===e.forecastAccountId&&(null!==(n=t.mixedComponentKind)&&void 0!==n?n:void 0)===(null!==(r=e.mixedComponentKind)&&void 0!==r?r:void 0)}));class x{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w(e);this.config=void 0,this.settings=void 0,this.rateProvider=void 0,this.balance=void 0,this.yearStartBalance=0,this.yearGrowth=0,this.yearInterest=0,this.yearDeposits=0,this.yearWithdrawals=0,this.yearWithdrawalTax=0,this.yearWithdrawalPenalty=0,this.yearPayments=0,this.yearExpenses=0,this.yearContributions=0,this.currentYear=void 0,this.activeStartYear=void 0,this.isBeforeActiveYear=!1,this.mixedComponentKind=void 0,this.config=t,this.settings=e,this.rateProvider=n,this.balance=t.balance,this.yearStartBalance=Math.abs(t.balance),this.currentYear=e.startYear}get rowKey(){return this.mixedComponentKind?M(this.forecastAccountId,this.mixedComponentKind):L(this.forecastAccountId)}get forecastAccountId(){return this.config.id}get name(){return this.config.name}get systemAccountType(){return this.config.systemAccountType}get ownerId(){return this.config.ownerId}get owner(){const t=this.ownerId;if(t)return this.settings.participants.find((e=>e.userId===t))}getCategory(){return this.constructor.CATEGORY}getGrowthRate(t){var e;const n=this.config,r=n.growthRateMethod,i=n.growthRateSchedule;return"noChange"===r?0:"schedule"===r&&i&&i.length>0?C(i,t):null!==(e=this.config.growthRate)&&void 0!==e?e:this.constructor.DEFAULT_GROWTH_RATE}getVolatility(){var t;return R(null!==(t=this.config.volatility)&&void 0!==t?t:this.constructor.DEFAULT_VOLATILITY)}get isGrowthPinnedFlat(){return"noChange"===this.config.growthRateMethod}toSnapshot(){return{forecastAccountId:this.forecastAccountId,mixedComponentKind:this.mixedComponentKind,name:this.name,accountType:this.config.accountType,systemAccountType:this.config.systemAccountType,balance:this.balance,breakdown:this.isBeforeActiveYear?null:this.getBreakdown()}}isIncluded(){return this.config.isIncluded}resetYearTracking(t){void 0!==this.activeStartYear&&t<this.activeStartYear?this.balance=0:void 0!==this.activeStartYear&&t===this.activeStartYear&&(this.balance=this.config.balance),this.isBeforeActiveYear=void 0!==this.activeStartYear&&t<this.activeStartYear,this.currentYear=t,this.yearStartBalance=Math.abs(this.balance),this.yearGrowth=0,this.yearInterest=0,this.yearContributions=0,this.yearDeposits=0,this.yearWithdrawals=0,this.yearWithdrawalTax=0,this.yearWithdrawalPenalty=0,this.yearPayments=0,this.yearExpenses=0}recordDeposit(t){this.yearDeposits=this.yearDeposits+Math.abs(t)}recordContribution(t){this.yearContributions=this.yearContributions+Math.abs(t)}recordWithdrawal(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.yearWithdrawals=this.yearWithdrawals-Math.abs(t),this.yearWithdrawalTax=this.yearWithdrawalTax-Math.abs(e),this.yearWithdrawalPenalty=this.yearWithdrawalPenalty-Math.abs(n)}recordPayment(t){this.yearPayments=this.yearPayments+Math.abs(t)}recordExpenses(t){this.yearExpenses=this.yearExpenses-Math.abs(t)}recordGrowthOrInterest(t,e){e?this.yearInterest=this.yearInterest-Math.abs(t):this.yearGrowth=this.yearGrowth+t}getBreakdown(){return{startingBalance:this.yearStartBalance,growth:this.yearGrowth,interest:this.yearInterest,contributions:this.yearContributions,deposits:this.yearDeposits,withdrawals:this.yearWithdrawals,withdrawalTax:this.yearWithdrawalTax,withdrawalPenalty:this.yearWithdrawalPenalty,payments:this.yearPayments,expenses:this.yearExpenses,endingBalance:Math.abs(this.balance)}}}x.DEFAULT_GROWTH_RATE=0,x.DEFAULT_VOLATILITY=0,x.CATEGORY="other";class U extends x{processYear(){if(this.isBeforeActiveYear)return 0;const t=this.rateProvider.getGrowthRate(this,this.currentYear)/100,e=Math.max(0,Math.min(this.yearStartBalance,this.balance))*t;return this.balance=this.balance+e,this.recordGrowthOrInterest(e,!1),0}}class k extends U{}k.DEFAULT_GROWTH_RATE=2,k.DEFAULT_VOLATILITY=0,k.CATEGORY="cash";
1const Y=t=>{let e=t.plannedPayment,n=t.minimumPayment;return void 0!==e&&null!==e&&e>0?e:null!==n&&void 0!==n?n:0};class F extends x{getInterestRate(){var t;return null!==(t=this.config.interestRate)&&void 0!==t?t:this.constructor.DEFAULT_INTEREST_RATE}getMonthlyPayment(){return Y({plannedPayment:this.config.plannedPayment,minimumPayment:this.config.minimumPayment})}isPaidOff(){return this.balance>=0}recordInterest(t){this.recordGrowthOrInterest(t,!0)}processYear(){if(this.isBeforeActiveYear)return 0;let t=0;for(let e=0;e<12&&!this.isPaidOff();e+=1){const e=this.getInterestRate()/100,n=Math.abs(this.balance)*e/12;this.balance=this.balance-n,this.recordInterest(n);const r=this.getMonthlyPayment();if(r>0){const e=Math.abs(this.balance),n=r<e?r:e;this.balance=this.balance+n,this.recordPayment(n),t+=n}}return this.config.isSynthetic?0:-t}}F.DEFAULT_INTEREST_RATE=0,F.CATEGORY="other";class G extends F{}G.DEFAULT_INTEREST_RATE=5,G.DEFAULT_VOLATILITY=0,G.CATEGORY="other";class V extends U{}V.DEFAULT_GROWTH_RATE=0,V.DEFAULT_VOLATILITY=0,V.CATEGORY="other";class H extends U{}H.DEFAULT_GROWTH_RATE=3,H.DEFAULT_VOLATILITY=10,H.CATEGORY="real-estate";class B extends U{}B.DEFAULT_GROWTH_RATE=7,B.DEFAULT_VOLATILITY=16,B.CATEGORY="tax-deferred";class W extends U{}W.DEFAULT_GROWTH_RATE=7,W.DEFAULT_VOLATILITY=16,W.CATEGORY="tax-free-investments";class j extends U{}j.DEFAULT_GROWTH_RATE=7,j.DEFAULT_VOLATILITY=16,j.CATEGORY="taxable-investments";class $ extends U{}$.DEFAULT_GROWTH_RATE=-15,$.DEFAULT_VOLATILITY=0,$.CATEGORY="other";new Set(["st_401k","st_403b","st_457b"]);const z=new Set(["roth","roth_401k","tfsa","fhsa","health_savings_account","health_reimbursement_arrangement","st_529","education_savings_account","resp","rdsp","isa","cash_isa","non_taxable_brokerage_account","qualifying_share_account"]),Z=t=>"health_savings_account"===t.toLowerCase(),q=new Set(["ira","sep_ira","simple_ira","st_401a","st_401k","st_403b","st_457b","thrift_savings_plan","sarsep_pension","keogh_plan","profit_sharing_plan","fixed_annuity","variable_annuity","retirement","pension","sipp","rrsp","rrif","prif","lif","lrif","lira","lrsp","rlif"]),K=["sep_ira","simple_ira","pension","sarsep_pension","health_reimbursement_arrangement","profit_sharing_plan"],X=t=>Z(t)||"rrsp"===t.toLowerCase(),J=t=>(t=>{const e=t.toLowerCase();return e.includes("401")||e.includes("403b")||e.includes("457")||"thrift_savings_plan"===e||Z(t)})(t)||K.includes(t.toLowerCase())||X(t),Q=["rrif","lif","lrif","rlif","prif"],tt=t=>{return"depository"===t.type||"brokerage"===t.type&&(e=t.subtype,!Q.includes(e.toLowerCase())&&!(t=>J(t)&&!X(t))(t.subtype));var e},et=t=>{if("depository"===t.type)return"cash";if("brokerage"===t.type){const e=t.subtype.toLowerCase();return z.has(e)?"tax-free-investments":q.has(e)?"tax-deferred":"taxable-investments"}return"real_estate"===t.type?"real-estate":"vehicle"===t.type?"other":"credit"===t.type?"credit-cards":"loan"===t.type?"loans":"other_liability"===t.type?"other-liability":"other"},nt={pretax:"Traditional",roth:"Roth"},rt={cash:k,"tax-free-investments":W,"tax-deferred":B,"taxable-investments":j,"real-estate":H,other:V,"credit-cards":G,loans:G,"other-liability":G};class it{static classFor(t){const e=t.accountType;return"liability"===e.group?G:"vehicle"===e.type?$:rt[et(e)]}static create(t,e,n){return new(it.classFor(t))(t,e,n)}static defaultGrowthRate(t){return it.classFor(t).DEFAULT_GROWTH_RATE}static defaultVolatility(t){return it.classFor(t).DEFAULT_VOLATILITY}static createAll(t,e,n){const r=(t=>{var e,n;return!1===(null===(e=t.taxTreatmentConfig)||void 0===e?void 0:e.enabled)?void 0:null!==(n=t.taxTreatmentConfig)&&void 0!==n?n:void 0})(t);return r&&0!==r.components.length?r.components.map((r=>it.createMixedComponent(t,e,r,n))):[it.create(t,e,n)]}static createMixedComponent(t,e,n,r){const i="roth"===n.kind,a=S(S({},t),{},{name:(o=t.name,s=n.kind,"".concat(o," (").concat(nt[s],")")),balance:n.balance,yearlyPaycheckContribution:n.annualContribution,taxTreatmentConfig:null,penaltyRate:t.penaltyRate,penaltyFreeAge:t.penaltyFreeAge,withdrawalTiming:t.withdrawalTiming,withdrawalStartingYear:t.withdrawalStartingYear,ownerId:t.ownerId},i?{withdrawalTaxRate:0,taxableWithdrawalPercent:0}:{});var o,s;const u=new(i?W:B)(a,e,r);return u.mixedComponentKind=n.kind,u}}class at{constructor(t,e){this.config=void 0,this.settings=void 0,this.config=t,this.settings=e}get ownerId(){}get owner(){const t=this.ownerId;if(t)return this.settings.participants.find((e=>e.userId===t))}get hasMultipleActiveParticipants(){return this.settings.participants.filter((t=>!t.hiddenFromForecast)).length>1}get displayName(){var t;return this.hasMultipleActiveParticipants&&null!==(t=this.owner)&&void 0!==t&&t.dis
1playName?"".concat(this.name," (").concat(this.owner.displayName,")"):this.name}get id(){return this.config.id}get name(){return this.config.name}get startYear(){var t;return null!==(t=this.config.startYear)&&void 0!==t?t:void 0}get isExcludedByOwner(){var t,e;return null!==(t=null===(e=this.owner)||void 0===e?void 0:e.hiddenFromForecast)&&void 0!==t&&t}get isIncluded(){return!this.isExcludedByOwner&&this.config.isIncluded}get icon(){return this.config.icon}get color(){return this.config.color}get foregroundColor(){var t;return null!==(t=this.config.foregroundColor)&&void 0!==t?t:this.config.color}get isHidden(){var t;return null!==(t=this.config.isHidden)&&void 0!==t&&t}get isVisibleInForecast(){return!this.isHidden&&!this.isExcludedByOwner}get isPrecomputable(){return!0}getEffectDefinitions(){return[]}isActiveInYear(t){return!0}getEffects(t){const e=this.getActiveYearRange(t.projectionEndYear,t.eventModels);return!e||t.year<e.start||t.year>=e.end?[]:this.isActiveInYear(t)?this.getEffectDefinitions().map((e=>{var n;return{id:e.id,name:null!==(n=e.name)&&void 0!==n?n:e.label,amount:e.computeAmount(t),target:e.target,targetEventId:e.targetEventId}})).filter((t=>0!==t.amount)):[]}getDirectIncomeEffectsTotal(t){return this.getEffects(t).reduce(((t,e)=>t+e.amount),0)}getActiveYearRange(t,e){if(void 0!==this.startYear)return{start:this.startYear,end:this.startYear+1}}getYearChangeAction(t){return this.startYear===t?null:{type:"updateEvent",eventId:this.id,startYear:t}}}const ot=(t,e,n)=>{const r=n.cumulativeInflationFactor;return r?ut(t)*r(e):ct(t,e,n.startYear,n.inflationRate)},st=(t,e)=>n=>Math.pow(1+e/100,Math.max(0,n-t)),ut=t=>Number.isFinite(t)?t:0,ct=(t,e,n,r)=>{const i=ut(t),a=ut(e),o=ut(n),s=ut(r);return i*st(o,s)(a)},lt=(t,e,n,r,i,a)=>{let o=0;const s=i?ot(t,i,r):t;if(i===e)return s;if("inflation"===n){if(r.cumulativeInflationFactor)return ot(t,Math.max(e,null!==i&&void 0!==i?i:r.startYear),r);o=r.inflationRate}else"increase"===n?o=Math.abs(null!==a&&void 0!==a?a:2):"decrease"===n&&(o=-Math.abs(null!==a&&void 0!==a?a:2));return ct(s,e,null!==i&&void 0!==i?i:r.startYear,o)};function ft(t){return null!=t&&"object"===typeof t&&!0===t["@@functional/placeholder"]}function ht(t){return function e(n){return 0===arguments.length||ft(n)?e:t.apply(this,arguments)}}function dt(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return ft(n)?e:ht((function(e){return t(n,e)}));default:return ft(n)&&ft(r)?e:ft(n)?ht((function(e){return t(e,r)})):ft(r)?ht((function(e){return t(n,e)})):t(n,r)}}}const gt=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};var mt=ht((function(t){return!!gt(t)||!!t&&("object"===typeof t&&(!function(t){return"[object String]"===Object.prototype.toString.call(t)}(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));const _t=mt;var pt=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function yt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,a){return e.apply(this,arguments)};case 6:return function(t,n,r,i,a,o){return e.apply(this,arguments)};case 7:return function(t,n,r,i,a,o,s){return e.apply(this,arguments)};case 8:return function(t,n,r,i,a,o,s,u){return e.apply(this,arguments)};case 9:return function(t,n,r,i,a,o,s,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,a,o,s,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}const vt=dt((function(t,e){return yt(t.length,(function(){return t.apply(e,arguments)}))}));function Et(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function Tt(t,e,n,r){return t["@@transducer/result"](n[r](vt(t["@@transducer/step"],t),e))}var It="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function Ot(t,e,n){if("function"===typeof t&&(t=function(t){return new pt(t)}(t)),_t(n))return function(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"===typeof n["fantasy-land/reduce"])return Tt(t,e,n,"fantasy-land/reduce");if(null!=n[It])return Et(t,e,n[It]());if("function"===typeof n.next)return Et(t,e,n);if("function"===typeof n.reduce)return Tt(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}function Nt(t,e,n){return function(){if(0===arguments.length)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!gt(i)){for(var a=0;a<t.length;){if("function"===typeof i[t[a]])return i[t[a]].apply(i,r);a+=1}if(function(t){return null!=t&&"function"===typeof t["@@transducer/step"]}(i))return e.apply(null,r)(i)}return n.apply(this,arguments)}}const St=function(){return this.xf["@@transducer/init"]()},At=function(t){return this.xf["@@transducer/result"](t)};var wt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=St,t.prototype["@@transducer/result"]=At,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),Rt=dt((function(t,e){return new wt(t,e)}));const bt=Rt;function Dt(t,e,n){return function(){for(var r=[],i=0,a=t,o=0;o<e.length||i<arguments.length;){var s;o<e.length&&(!ft(e[o])||i>=arguments.length)?s=e[o]:(s=arguments[i],i+=1),r[o]=s,ft(s)||(a-=1),o+=1}return a<=0?n.apply(this,r):yt(a,Dt(t,r,n))}}const Ct=dt((function(t,e){return 1===t?ht(e):yt(t,Dt(t,[],e))}));function Lt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var Mt=Object.prototype.toString,Pt=function(){return"[object Arguments]"===Mt.call(arguments)?function(t){return"[object Arguments]"===Mt.call(t)}:function(t){return Lt("callee",t)}}();const xt=Pt;var Ut=!{toString:null}.propertyIsEnumerable("toString"),kt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
1ing"],Yt=function(){return arguments.propertyIsEnumerable("length")}(),Ft=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};const Gt="function"!==typeof Object.keys||Yt?ht((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=Yt&&xt(t);for(e in t)!Lt(e,t)||i&&"length"===e||(r[r.length]=e);if(Ut)for(n=kt.length-1;n>=0;)Lt(e=kt[n],t)&&!Ft(r,e)&&(r[r.length]=e),n-=1;return r})):ht((function(t){return Object(t)!==t?[]:Object.keys(t)}));const Vt=dt(Nt(["fantasy-land/map","map"],bt,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Ct(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return Ot((function(n,r){return n[r]=t(e[r]),n}),{},Gt(e));default:return function(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}(t,e)}})));var Ht=dt((function(t,e){return"function"===typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"===typeof t.ap?t.ap(e):"function"===typeof t?function(n){return t(n)(e(n))}:Ot((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,a=[];for(n=0;n<r;)a[a.length]=t[n],n+=1;for(n=0;n<i;)a[a.length]=e[n],n+=1;return a}(t,Vt(n,e))}),[],t)}));const Bt=Ht;const Wt=dt((function(t,e){var n=Ct(t,e);return Ct(t,(function(){return Ot(Bt,Vt(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const jt=ht((function(t){return Wt(t.length,t)}));var $t=ht((function(t){return!t}));const zt=jt($t);var Zt=ht((function(t){return null==t}));const qt=Zt,Kt=t=>"uncategorizedSavings"===t.systemAccountType,Xt=t=>"unfundedExpenses"===t.systemAccountType,Jt=t=>{return e=t.systemAccountType,zt(qt)(e);var e},Qt=t=>(t=>{if(Jt(t))return[];if("liability"!==t.accountType.group)return[];const e=[];return void 0===t.interestRate&&e.push("interestRate"),void 0===t.minimumPayment&&void 0===t.plannedPayment&&e.push("payment"),e})(t).length>0;class te extends at{get startYear(){var t;return null!==(t=this.config.startYear)&&void 0!==t?t:this.settings.startYear}getEffectDefinitions(){return[{id:"expense",label:this.name,target:"expense",computeAmount:t=>{let e=t.year;return lt(this.config.amount,e,this.growthType,this.settings,this.startYear,this.growthRate)}}]}getEffects(t){const e=this.getActiveYearRange(t.projectionEndYear);return!e||t.year<e.start||t.year>=e.end?[]:[...super.getEffects(t),...this.calculateDebtPaydownOffsets(t)]}getActiveYearRange(t){if(void 0!==this.startYear)return{start:this.startYear,end:t}}calculateDebtPaydownOffsets(t){return t.accountModels.filter((t=>t instanceof F&&t.isIncluded()&&!1!==t.config.reduceExpensesForPaidOffDebt&&!Qt(t.config))).map((e=>{const n=e.getMonthlyPayment(),r=lt(12*n,t.year,this.growthType,this.settings,this.startYear,this.growthRate);return{id:"debt-offset-".concat(e.forecastAccountId),name:"".concat(e.config.name," payment offset"),amount:-r,target:"expense"}})).filter((t=>0!==t.amount))}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}const ee=(t,e,n)=>{const r=e/100/12,i=12*n;return r>0?t*(r*Math.pow(1+r,i))/(Math.pow(1+r,i)-1):t/i},ne=(t,e)=>t*e/100/12;class re extends at{getEffectDefinitions(){const t=[],e=this.startYear,n=ot(this.homeValue,null!==e&&void 0!==e?e:this.settings.startYear,this.settings),r="cash"===this.purchaseMethod;return t.push({id:"down-payment",label:r?"Home purchase":"Down payment",target:"expense",computeAmount:t=>t.year!==e||void 0===e?0:r?n:n*(this.downPaymentPercent/100)}),"finance"===this.purchaseMethod&&(t.push({id:"principal-and-interest",label:"Principal and interest",target:"expense",isFixedPayment:!0,computeAmount:t=>{if(void 0===e||t.year>=e+this.mortgageTerm)return 0;const r=n*(1-this.downPaymentPercent/100);return 12*ee(r,this.mortgageRate,this.mortgageTerm)}}),this.downPaymentPercent<20&&this.pmiRate>0&&t.push({id:"private-mortgage-insurance",label:"Private mortgage insurance",target:"expense",isFixedPayment:!0,computeAmount:t=>{if(void 0===e||t.year>=e+this.mortgageTerm)return 0;const r=n*(1-this.downPaymentPercent/100),i=ne(r,this.pmiRate),a=((t,e,n,r)=>{const i=.8*e;if(t<=i||0===t)return 0;const a=n/100/12,o=12*r;if(a<=0)return Math.ceil(o*(1-i/t));const s=Math.pow(1+a,o),u=s-i*(s-1)/t;return Math.ceil(Math.log(u)/Math.log(1+a))})(r,n,this.mortgageRate,this.mortgageTerm),o=12*(t.year-e);return i*Math.max(0,Math.min(12,a-o))}})),t.push({id:"property-tax",label:"Property tax",target:"expense",computeAmount:t=>{if(void 0===e)return 0;return n*this.getLinkedHomeAppreciationFactor(t,e)*(this.propertyTaxRate/100)}}),t.push({id:"home-insurance",label:"Home insurance",target:"expense",computeAmount:t=>{if(void 0===e)return 0;const r=t.year-e;return n*(this.homeInsuranceRate/100)*Math.pow(1.03,r)}}),t.push({id:"ownership-costs",label:"Home ownership costs",target:"expense",computeAmount:t=>void 0===e?0:lt(this.homeValue*(this.yearlyOwnershipCostRate/100),t.year,this.growthType,this.settings,this.startYear,this.growthRate)}),this.replaceExistingHousing&&this.currentMonthlyHousingPayment>0&&t.push({id:"housing-offset",label:"Housing cost offset",target:"expense",computeAmount:t=>void 0===e?0:-ot(12*this.currentMonthlyHousingPayment,t.year,this.settings)}),t}getLinkedHomeAppreciationFactor(t,e){const n=t.accountModels.find((t=>t.config.sourceEventExternalId===this.config.id&&"asset"===t.config.accountType.group));let r=1;for(let i=e;i<t.year;i+=1){r*=1+(n?n.rateProvider.getGrowthRate(n,i):H.DEFAULT_GROWTH_RATE)/100}return r}getActiveYearRange(t){if(void 0!==this.startYear)return{start:this.startYear,end:t}}get homeValue(){return this.config.homeValue}get purchaseMethod(){return this.config.purchaseMethod}get downPaymentPercent(){return Math.min(Math.max(this.config.downPaymentPercent,0),100)}get mortgageTerm(){return this.config.mortgageTerm}get mortgageRate(){return this.config.mortgageRate}get propertyTaxRate(){return this.config.propertyTaxRate}get homeInsuranceRate(){return this.config.homeInsuranceRate}get yearlyOwnershipCostRate(){return this.config.yearlyOwnershipCostRate}get replaceExistingHousing(){return this.config.replaceExistingHousing}get currentMonthlyHousingPayment(){return this.config.currentMonthlyHousingPayment}get pmiRate(){var t;return null!==(t=this.config.pmiRate)&&void 0!==t?t:1}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}const ie=t=>"income"===t||"newJob"===t,ae=t=>t.find((t=>(t=>"annualExpense"===t.config.eventKind&&t.isHidden)(t)));class oe extends at{getEffectDefinitions(){var t;const e=[],n=null!==(t=this.config.incomeReductionTargets)&&void 0!==t?t:[];for(const r of n)r.reductionPercent<=0||e.push({id:"reduction-".concat(r.targetEventId),label:"Income reduction",target:"income",targetEventId:r.targetEventId,computeAmount:t=>{const e=this.findIncomeSourceModel(t.eventModels,r.targetEventId);if(!e)return 0;return-e.getDirectIncomeEffectsTotal(t)*Math.min(Math.max(r.reductionPercent,0),100)/100}});return 1!==this.expenseMultiplier&&e.push({id:"expense-adjustment",label:"Expense adjustment",target:"expense",computeAmount:t=>{const e=ae(t.eventModels);if(!e)return 0;const n=e.getEffects(t).reduce(((t,e)=>t+e.amount),0);return n<=0?0:n*(this.expenseMultiplier-1)}}),e}findIncomeSourceModel(t,e){return t.find((t=>ie(t.config.eventKind)&&t.id===e&&t.isIncluded))}getActiveYearRange(){if(void 0!==this.startYear&&void 0!==this.endYear)return{start:this.startYear,end:this.endYear}}get ownerId(){return this.config.ownerId}get expenseMultiplier(){return this.config.expenseMultiplier}get endYear(){return this.config.endYear}}n(42735);
1class se extends Error{}class ue extends se{constructor(t){super("Invalid DateTime: ".concat(t.toMessage()))}}class ce extends se{constructor(t){super("Invalid Interval: ".concat(t.toMessage()))}}class le extends se{constructor(t){super("Invalid Duration: ".concat(t.toMessage()))}}class fe extends se{}class he extends se{constructor(t){super("Invalid unit ".concat(t))}}class de extends se{}class ge extends se{constructor(){super("Zone is an abstract class")}}const me="numeric",_e="short",pe="long",ye={year:me,month:me,day:me},ve={year:me,month:_e,day:me},Ee={year:me,month:_e,day:me,weekday:_e},Te={year:me,month:pe,day:me},Ie={year:me,month:pe,day:me,weekday:pe},Oe={hour:me,minute:me},Ne={hour:me,minute:me,second:me},Se={hour:me,minute:me,second:me,timeZoneName:_e},Ae={hour:me,minute:me,second:me,timeZoneName:pe},we={hour:me,minute:me,hourCycle:"h23"},Re={hour:me,minute:me,second:me,hourCycle:"h23"},be={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:_e},De={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:pe},Ce={year:me,month:me,day:me,hour:me,minute:me},Le={year:me,month:me,day:me,hour:me,minute:me,second:me},Me={year:me,month:_e,day:me,hour:me,minute:me},Pe={year:me,month:_e,day:me,hour:me,minute:me,second:me},xe={year:me,month:_e,day:me,weekday:_e,hour:me,minute:me},Ue={year:me,month:pe,day:me,hour:me,minute:me,timeZoneName:_e},ke={year:me,month:pe,day:me,hour:me,minute:me,second:me,timeZoneName:_e},Ye={year:me,month:pe,day:me,weekday:pe,hour:me,minute:me,timeZoneName:pe},Fe={year:me,month:pe,day:me,weekday:pe,hour:me,minute:me,second:me,timeZoneName:pe};class Ge{get type(){throw new ge}get name(){throw new ge}get ianaName(){return this.name}get isUniversal(){throw new ge}offsetName(t,e){throw new ge}formatOffset(t,e){throw new ge}offset(t){throw new ge}equals(t){throw new ge}get isValid(){throw new ge}}let Ve=null;class He extends Ge{static get instance(){return null===Ve&&(Ve=new He),Ve}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,e){return ar(t,e.format,e.locale)}formatOffset(t,e){return cr(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let Be={};const We={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let je={};class $e extends Ge{static create(t){return je[t]||(je[t]=new $e(t)),je[t]}static resetCache(){je={},Be={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(Yu){return!1}}constructor(t){super(),this.zoneName=t,this.valid=$e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,e){return ar(t,e.format,e.locale,this.name)}formatOffset(t,e){return cr(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(r=this.name,Be[r]||(Be[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Be[r]);var r;let i=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let i=0;i<n.length;i++){const t=n[i],e=t.type,a=t.value,o=We[e];"era"===e?r[o]=a:Yn(o)||(r[o]=parseInt(a,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=D(/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),8),i=r[1],a=r[2];return[r[3],i,a,r[4],r[5],r[6],r[7]]}(n,e),a=D(i,7),o=a[0],s=a[1],u=a[2],c=a[3],l=a[4],f=a[5],h=a[6];"BC"===c&&(o=1-Math.abs(o));let d=+e;const g=d%1e3;return d-=g>=0?g:1e3+g,(er({year:o,month:s,day:u,hour:24===l?0:l,minute:f,second:h,millisecond:0})-d)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}function ze(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}const Ze=["base"],qe=["padTo","floor"];let Ke={};let Xe={};function Je(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=Xe[n];return r||(r=new Intl.DateTimeFormat(t,e),Xe[n]=r),r}let Qe={};let tn={};let en=null;let nn={};function rn(t,e,n,r){const i=t.listingMode();return"error"===i?null:"en"===i?n(e):r(e)}class an{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;n.padTo,n.floor;const r=ze(n,qe);if(!e||Object.keys(r).length>0){const e=S({useGrouping:!1},n);n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=Qe[n];return r||(r=new Intl.NumberFormat(t,e),Qe[n]=r),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return zn(this.floor?Math.floor(t):Xn(t,3),this.padTo)}}class on{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?"Etc/GMT+".concat(e):"Etc/GMT".concat(e);0!==t.offset&&$e.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i=S({},this.opts);i.timeZone=i.timeZone||r,this.dtf=Je(e,i)}format(){return this.originalZone?this.formatToParts().map((t=>t.value)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return S(S({},t),{},{value:e})}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class sn{constructor(t,e,n){this.opts=S({style:"long"},n),!e&&Vn()&&(this.rtf=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.base;const n=ze(e,Ze),r=JSON.stringify([t,n]);let i=tn[r];
1return i||(i=new Intl.RelativeTimeFormat(t,e),tn[r]=i),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"always",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&a){const n="days"===t;switch(e){case 1:return n?"tomorrow":"next ".concat(i[t][0]);case-1:return n?"yesterday":"last ".concat(i[t][0]);case 0:return n?"today":"this ".concat(i[t][0])}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),u=1===s,c=i[t],l=r?u?c[1]:c[2]||c[1]:u?i[t][0]:t;return o?"".concat(s," ").concat(l," ago"):"in ".concat(s," ").concat(l)}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const un={firstDay:1,minimalDays:4,weekend:[6,7]};class cn{static fromOpts(t){return cn.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=t||In.defaultLocale,o=a||(i?"en-US":en||(en=(new Intl.DateTimeFormat).resolvedOptions().locale,en)),s=e||In.defaultNumberingSystem,u=n||In.defaultOutputCalendar,c=jn(r)||In.defaultWeekSettings;return new cn(o,s,u,c,a)}static resetCache(){en=null,Xe={},Qe={},tn={}}static fromObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=t.numberingSystem,r=t.outputCalendar,i=t.weekSettings;return cn.create(e,n,r,i)}constructor(t,e,n,r,i){const a=D(function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=Je(t).resolvedOptions(),r=t}catch(Yu){const a=t.substring(0,n);e=Je(a).resolvedOptions(),r=a}const i=e;return[r,i.numberingSystem,i.calendar]}}(t),3),o=a[0],s=a[1],u=a[2];this.locale=o,this.numberingSystem=e||s||null,this.outputCalendar=n||u||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+="-ca-".concat(n)),e&&(t+="-nu-".concat(e)),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?cn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,jn(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone(S(S({},t),{},{defaultToEN:!0}))}redefaultToSystem(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clone(S(S({},t),{},{defaultToEN:!1}))}months(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rn(this,t,gr,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=Ea.utc(2009,n,1);e.push(t(r))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[r][t]}))}weekdays(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rn(this,t,yr,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=Ea.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return rn(this,void 0,(()=>
1vr),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ea.utc(2016,11,13,9),Ea.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return rn(this,t,Or,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ea.utc(-40,1,1),Ea.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new an(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new on(t,this.intl,e)}relFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new sn(this.intl,this.isEnglish(),t)}listFormatter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=JSON.stringify([t,e]);let r=Ke[n];return r||(r=new Intl.ListFormat(t,e),Ke[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Hn()?function(t){let e=nn[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,nn[t]=e}return e}(this.locale):un}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let ln=null;class fn extends Ge{static get utcInstance(){return null===ln&&(ln=new fn(0)),ln}static instance(t){return 0===t?fn.utcInstance:new fn(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new fn(or(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":"UTC".concat(cr(this.fixed,"narrow"))}get ianaName(){return 0===this.fixed?"Etc/UTC":"Etc/GMT".concat(cr(-this.fixed,"narrow"))}offsetName(){return this.name}formatOffset(t,e){return cr(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class hn extends Ge{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function dn(t,e){if(Yn(t)||null===t)return e;if(t instanceof Ge)return t;if(function(t){return"string"===typeof t}(t)){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?He.instance:"utc"===n||"gmt"===n?fn.utcInstance:fn.parseSpecifier(n)||$e.create(t)}return Fn(t)?fn.instance(t):"object"===typeof t&&"offset"in t&&"function"===typeof t.offset?t:new hn(t)}let gn,mn=()=>Date.now(),_n="system",pn=null,yn=null,vn=null,En=60,Tn=null;class In{static get now(){return mn}static set now(t){mn=t}static set defaultZone(t){_n=t}static get defaultZone(){return dn(_n,He.instance)}static get defaultLocale(){return pn}static set defaultLocale(t){pn=t}static get defaultNumberingSystem(){return yn}static set defaultNumberingSystem(t){yn=t}
1static get defaultOutputCalendar(){return vn}static set defaultOutputCalendar(t){vn=t}static get defaultWeekSettings(){return Tn}static set defaultWeekSettings(t){Tn=jn(t)}static get twoDigitCutoffYear(){return En}static set twoDigitCutoffYear(t){En=t%100}static get throwOnInvalid(){return gn}static set throwOnInvalid(t){gn=t}static resetCaches(){cn.resetCache(),$e.resetCache()}}class On{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?"".concat(this.reason,": ").concat(this.explanation):this.reason}}const Nn=[0,31,59,90,120,151,181,212,243,273,304,334],Sn=[0,31,60,91,121,152,182,213,244,274,305,335];function An(t,e){return new On("unit out of range","you specified ".concat(e," (of type ").concat(typeof e,") as a ").concat(t,", which is invalid"))}function wn(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function Rn(t,e,n){return n+(Jn(t)?Sn:Nn)[e-1]}function bn(t,e){const n=Jn(t)?Sn:Nn,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function Dn(t,e){return(t-e+7)%7+1}function Cn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=t.year,i=t.month,a=t.day,o=Rn(r,i,a),s=Dn(wn(r,i,a),n);let u,c=Math.floor((o-s+14-e)/7);return c<1?(u=r-1,c=rr(u,e,n)):c>rr(r,e,n)?(u=r+1,c=1):u=r,S({weekYear:u,weekNumber:c,weekday:s},lr(t))}function Ln(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=t.weekYear,i=t.weekNumber,a=t.weekday,o=Dn(wn(r,1,e),n),s=Qn(r);let u,c=7*i+a-o-7+e;c<1?(u=r-1,c+=Qn(u)):c>s?(u=r+1,c-=Qn(r)):u=r;const l=bn(u,c);return S({year:u,month:l.month,day:l.day},lr(t))}function Mn(t){const e=t.year;return S({year:e,ordinal:Rn(e,t.month,t.day)},lr(t))}function Pn(t){const e=t.year,n=bn(e,t.ordinal);return S({year:e,month:n.month,day:n.day},lr(t))}function xn(t,e){if(!Yn(t.localWeekday)||!Yn(t.localWeekNumber)||!Yn(t.localWeekYear)){if(!Yn(t.weekday)||!Yn(t.weekNumber)||!Yn(t.weekYear))throw new fe("Cannot mix locale-based week fields with ISO-based week fields");return Yn(t.localWeekday)||(t.weekday=t.localWeekday),Yn(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Yn(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Un(t){const e=Gn(t.year),n=$n(t.month,1,12),r=$n(t.day,1,tr(t.year,t.month));return e?n?!r&&An("day",t.day):An("month",t.month):An("year",t.year)}function kn(t){const e=t.hour,n=t.minute,r=t.second,i=t.millisecond,a=$n(e,0,23)||24===e&&0===n&&0===r&&0===i,o=$n(n,0,59),s=$n(r,0,59),u=$n(i,0,999);return a?o?s?!u&&An("millisecond",i):An("second",r):An("minute",n):An("hour",e)}function Yn(t){return"undefined"===typeof t}function Fn(t){return"number"===typeof t}function Gn(t){return"number"===typeof t&&t%1===0}function Vn(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(Yu){return!1}}function Hn(){try{return"undefined"!==typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(Yu){return!1}}function Bn(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const i=[e(r),r];return t&&n(t[0],i[0])===t[0]?t:i}),null)[1]}function Wn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function jn(t){if(null==t)return null;if("object"!==typeof t)throw new de("Week settings must be an object");if(!$n(t.firstDay,1,7)||!$n(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!$n(t,1,7))))throw new de("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function $n(t,e,n){return Gn(t)&&t>=e&&t<=n}function zn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Zn(t){return Yn(t)||null===t||""===t?void 0:parseInt(t,10)}function qn(t){return Yn(t)||null===t||""===t?void 0:parseFloat(t)}function Kn(t){if(!Yn(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Xn(t,e){const n=10**e;return(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Math.trunc:Math.round)(t*n)/n}function Jn(t){return t%4===0&&(t%100!==0||t%400===0)}function Qn(t){return Jn(t)?366:365}function tr(t,e){const n=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===n?Jn(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function er(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function nr(t,e,n){return-Dn(wn(t,1,e),n)+e-1}function rr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=nr(t,e,n),i=nr(t+1,e,n);return(Qn(t)-r+i)/7}function ir(t){return t>99?t:t>In.twoDigitCutoffYear?1900+t:2e3+t}function ar(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const i=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o=S({timeZoneName:e},a),s=new Intl.DateTimeFormat(n,o).formatToParts(i).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function or(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function sr(t){const e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new de("Invalid unit value ".concat(t));return e}function ur(t,e){const n={};for(const r in t)if(Wn(t,r)){const i=t[r];
1if(void 0===i||null===i)continue;n[e(r)]=sr(i)}return n}function cr(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return"".concat(i).concat(zn(n,2),":").concat(zn(r,2));case"narrow":return"".concat(i).concat(n).concat(r>0?":".concat(r):"");case"techie":return"".concat(i).concat(zn(n,2)).concat(zn(r,2));default:throw new RangeError("Value format ".concat(e," is out of range for property format"))}}function lr(t){return function(t,e){return e.reduce(((e,n)=>(e[n]=t[n],e)),{})}(t,["hour","minute","second","millisecond"])}const fr=["January","February","March","April","May","June","July","August","September","October","November","December"],hr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dr=["J","F","M","A","M","J","J","A","S","O","N","D"];function gr(t){switch(t){case"narrow":return[...dr];case"short":return[...hr];case"long":return[...fr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const mr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_r=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],pr=["M","T","W","T","F","S","S"];function yr(t){switch(t){case"narrow":return[...pr];case"short":return[..._r];case"long":return[...mr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const vr=["AM","PM"],Er=["Before Christ","Anno Domini"],Tr=["BC","AD"],Ir=["B","A"];function Or(t){switch(t){case"narrow":return[...Ir];case"short":return[...Tr];case"long":return[...Er];default:return null}}function Nr(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Sr={D:ye,DD:ve,DDD:Te,DDDD:Ie,t:Oe,tt:Ne,ttt:Se,tttt:Ae,T:we,TT:Re,TTT:be,TTTT:De,f:Ce,ff:Me,fff:Ue,ffff:Ye,F:Le,FF:Pe,FFF:ke,FFFF:Fe};class Ar{static create(t){return new Ar(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}static parseFormat(t){let e=null,n="",r=!1;const i=[];for(let a=0;a<t.length;a++){const o=t.charAt(a);"'"===o?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r||o===e?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,e=o)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(t){return Sr[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,S(S({},this.opts),e)).format()}dtFormatter(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.loc.dtFormatter(t,S(S({},this.opts),e))}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.opts.forceSimple)return zn(t,e);const n=S({},this.opts);return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",o=()=>n?function(t){return vr[t.hour<12?0:1]}(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(e,r)=>n?function(t,e){return gr(e)[t.month-1]}(t,e):i(r?{month:e}:{month:e,day:"numeric"},"month"),u=(e,r)=>n?function(t,e){return yr(e)[t.weekday-1]}(t,e):i(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=e=>{const n=Ar.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},l=e=>n?function(t,e){return Or(e)[t.year<0?0:1]}(t,e):i({era:e},"era");return Nr(Ar.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);
1case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Ar.parseFormat(e),i=r.reduce(((t,e)=>{let n=e.literal,r=e.val;return n?t:t.concat(r)}),[]),a=t.shiftTo(...i.map(n).filter((t=>t)));return Nr(r,(t=>e=>{const r=n(e);return r?this.num(t.get(r),e.length):e})(a))}}const wr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Rr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e.reduce(((t,e)=>t+e.source),"");return RegExp("^".concat(r,"$"))}function br(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return t=>e.reduce(((e,n)=>{let r=D(e,3),i=r[0],a=r[1],o=r[2];const s=D(n(t,o),3),u=s[0],c=s[1],l=s[2];return[S(S({},i),u),c||a,l]}),[{},null,1]).slice(0,2)}function Dr(t){if(null==t)return[null,null];for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(const a of n){var i=D(a,2);const e=i[0],n=i[1],r=e.exec(t);if(r)return n(r)}return[null,null]}function Cr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Zn(t[n+i]);return[r,null,n+i]}}const Lr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Mr="(?:".concat(Lr.source,"?(?:\\[(").concat(wr.source,")\\])?)?"),Pr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,xr=RegExp("".concat(Pr.source).concat(Mr)),Ur=RegExp("(?:T".concat(xr.source,")?")),kr=Cr("weekYear","weekNumber","weekDay"),Yr=Cr("year","ordinal"),Fr=RegExp("".concat(Pr.source," ?(?:").concat(Lr.source,"|(").concat(wr.source,"))?")),Gr=RegExp("(?: ".concat(Fr.source,")?"));function Vr(t,e,n){const r=t[e];return Yn(r)?n:Zn(r)}function Hr(t,e){return[{hours:Vr(t,e,0),minutes:Vr(t,e+1,0),seconds:Vr(t,e+2,0),milliseconds:Kn(t[e+3])},null,e+4]}function Br(t,e){const n=!t[e]&&!t[e+1],r=or(t[e+1],t[e+2]);return[{},n?null:fn.instance(r),e+3]}function Wr(t,e){return[{},t[e]?$e.create(t[e]):null,e+1]}const jr=RegExp("^T?".concat(Pr.source,"$")),$r=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function zr(t){const e=D(t,9),n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f="-"===n[0],h=c&&"-"===c[0],d=function(t){return void 0!==t&&(arguments.length>1&&void 0!==arguments[1]&&arguments[1]||t&&f)?-t:t};return[{years:d(qn(r)),months:d(qn(i)),weeks:d(qn(a)),days:d(qn(o)),hours:d(qn(s)),minutes:d(qn(u)),seconds:d(qn(c),"-0"===c),milliseconds:d(Kn(l),h)}]}const Zr={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qr(t,e,n,r,i,a,o){const s={year:2===e.length?ir(Zn(e)):Zn(e),month:hr.indexOf(n)+1,day:Zn(r),hour:Zn(i),minute:Zn(a)};return o&&(s.second=Zn(o)),t&&(s.weekday=t.length>3?mr.indexOf(t)+1:_r.indexOf(t)+1),s}const Kr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Xr(t){const e=D(t,12),n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],h=e[11],d=qr(n,a,i,r,o,s,u);let g;return g=c?Zr[c]:l?0:or(f,h),[d,new fn(g)]}const Jr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Qr=/^(Monday|Tuesday|Wednesday|Thursday|Frid
1ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ti=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ei(t){const e=D(t,8),n=e[1],r=e[2],i=e[3];return[qr(n,e[4],i,r,e[5],e[6],e[7]),fn.utcInstance]}function ni(t){const e=D(t,8),n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6];return[qr(n,e[7],r,i,a,o,s),fn.utcInstance]}const ri=Rr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ur),ii=Rr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ur),ai=Rr(/(\d{4})-?(\d{3})/,Ur),oi=Rr(xr),si=br((function(t,e){return[{year:Vr(t,e),month:Vr(t,e+1,1),day:Vr(t,e+2,1)},null,e+3]}),Hr,Br,Wr),ui=br(kr,Hr,Br,Wr),ci=br(Yr,Hr,Br,Wr),li=br(Hr,Br,Wr);const fi=br(Hr);const hi=Rr(/(\d{4})-(\d\d)-(\d\d)/,Gr),di=Rr(Fr),gi=br(Hr,Br,Wr);const mi="Invalid Duration",_i={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},pi=S({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},_i),yi=365.2425,vi=30.436875,Ei=S({years:{quarters:4,months:12,weeks:52.1775,days:yi,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:vi,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},_i),Ti=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ii=Ti.slice(0).reverse();function Oi(t,e){const n={values:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?e.values:S(S({},t.values),e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ai(n)}function Ni(t,e){var n;let r=null!==(n=e.milliseconds)&&void 0!==n?n:0;for(const i of Ii.slice(1))e[i]&&(r+=e[i]*t[i].milliseconds);return r}function Si(t,e){const n=Ni(t,e)<0?-1:1;Ti.reduceRight(((r,i)=>{if(Yn(e[i]))return r;if(r){const a=e[r]*n,o=t[i][r],s=Math.floor(a/o);e[i]+=s*n,e[r]-=s*o*n}return i}),null),Ti.reduce(((n,r)=>{if(Yn(e[r]))return n;if(n){const i=e[n]%1;e[n]-=i,e[r]+=i*t[n][r]}return r}),null)}class Ai{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?Ei:pi;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||cn.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Ai.fromObject({milliseconds:t},e)}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"!==typeof t)throw new de("Duration.fromObject: argument expected to be an object, got ".concat(null===t?"null":typeof t));return new Ai({values:ur(t,Ai.normalizeUnit),loc:cn.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Fn(t))return Ai.fromMillis(t);if(Ai.isDuration(t))return t;if("object"===typeof t)return Ai.fromObject(t);throw new de("Unknown duration argument ".concat(t," of type ").concat(typeof t))}static fromISO(t,e){const n=function(t){return Dr(t,[$r,zr])}(t),r=D(n,1)[0];return r?Ai.fromObject(r,e):Ai.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static fromISOTime(t,e){const n=function(t){return Dr(t,[jr,fi])}(t),r=D(n,1)[0];return r?Ai.fromObject(r,e):Ai.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new de("need to specify a reason the Duration is invalid");const n=t instanceof On?t:new On(t,e);
1if(In.throwOnInvalid)throw new le(n);return new Ai({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new he(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=S(S({},e),{},{floor:!1!==e.round&&!1!==e.floor});return this.isValid?Ar.create(this.loc,n).formatDurationFromString(this,t):mi}toHuman(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return mi;const e=Ti.map((e=>{const n=this.values[e];return Yn(n)?null:this.loc.numberFormatter(S(S({style:"unit",unitDisplay:"long"},t),{},{unit:e.slice(0,-1)})).format(n)})).filter((t=>t));return this.loc.listFormatter(S({type:"conjunction",style:t.listStyle||"narrow"},t)).format(e)}toObject(){return this.isValid?S({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Xn(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t=S(S({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t),{},{includeOffset:!1});return Ea.fromMillis(e,{zone:"UTC"}).toISOTime(t)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Duration { values: ".concat(JSON.stringify(this.values)," }"):"Duration { Invalid, reason: ".concat(this.invalidReason," }")}toMillis(){return this.isValid?Ni(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Ai.fromDurationLike(t),n={};for(const r of Ti)(Wn(e.values,r)||Wn(this.values,r))&&(n[r]=e.get(r)+this.get(r));return Oi(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Ai.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=sr(t(this.values[n],n));return Oi(this,{values:e},!0)}get(t){return this[Ai.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return Oi(this,{values:S(S({},this.values),ur(t,Ai.normalizeUnit))})}reconfigure(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=t.numberingSystem,r=t.conversionAccuracy,i=t.matrix;return Oi(this,{loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:i,conversionAccuracy:r})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Si(this.matrix,t),Oi(this,{values:t},!0)}rescale(){if(!this.isValid)return this;return Oi(this,{values:function(t){const e={};for(const r of Object.entries(t)){var n=D(r,2);const t=n[0],i=n[1];0!==i&&(e[t]=i)}return e}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!this.isValid)return this;if(0===e.length)return this;e=e.map((t=>Ai.normalizeUnit(t)));const r={},i={},a=this.toObject();let o;for(const s of Ti)if(e.indexOf(s)>=0){o=s;let t=0;for(const n in i)t+=this.matrix[n][s]*i[n],i[n]=0;Fn(a[s])&&(t+=a[s]);const e=Math.trunc(t);r[s]=e,i[s]=(1e3*t-1e3*e)/1e3}else Fn(a[s])&&(i[s]=a[s]);for(const s in i)0!==i[s]&&(r[o]+=s===o?i[s]:i[s]/this.matrix[o][s]);return Si(this.matrix,r),Oi(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Oi(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of Ti)if(e=this.values[r],n=t.values[r],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const wi="Invalid Interval";class Ri{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invali
1d||null,this.isLuxonInterval=!0}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new de("need to specify a reason the Interval is invalid");const n=t instanceof On?t:new On(t,e);if(In.throwOnInvalid)throw new ce(n);return new Ri({invalid:n})}static fromDateTimes(t,e){const n=Ta(t),r=Ta(e),i=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?Ri.invalid("end before start","The end of an interval must be after its start, but you had start=".concat(t.toISO()," and end=").concat(e.toISO())):null:Ri.invalid("missing or invalid end"):Ri.invalid("missing or invalid start")}(n,r);return null==i?new Ri({start:n,end:r}):i}static after(t,e){const n=Ai.fromDurationLike(e),r=Ta(t);return Ri.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Ai.fromDurationLike(e),r=Ta(t);return Ri.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const n=D((t||"").split("/",2),2),r=n[0],i=n[1];if(r&&i){let t,n,a,o;try{t=Ea.fromISO(r,e),n=t.isValid}catch(i){n=!1}try{a=Ea.fromISO(i,e),o=a.isValid}catch(i){o=!1}if(n&&o)return Ri.fromDateTimes(t,a);if(n){const n=Ai.fromISO(i,e);if(n.isValid)return Ri.after(t,n)}else if(o){const t=Ai.fromISO(r,e);if(t.isValid)return Ri.before(a,t)}}return Ri.invalid("unparsable",'the input "'.concat(t,"\" can't be parsed as ISO 8601"))}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds";return this.isValid?this.toDuration(t).get(t):NaN}count(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1?arguments[1]:void 0;if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=null!==e&&void 0!==e&&e.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.start,n=t.end;return this.isValid?Ri.fromDateTimes(e||this.s,n||this.e):this}splitAt(){if(!this.isValid)return[];for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e.map(Ta).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),i=[];let a=this.s,o=0;for(;a<this.e;){const t=r[o]||this.e,e=+t>+this.e?this.e:t;i.push(Ri.fromDateTimes(a,e)),a=e,o+=1}return i}splitBy(t){const e=Ai.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,r=this.s,i=1;const a=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*i)));n=+t>+this.e?this.e:t,a.push(Ri.fromDateTimes(r,n)),r=n,i+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e===+t.s}abutsEnd(t){return!!this.isValid&&+t.e===+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:Ri.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return Ri.fromDateTimes(e,n)}static merge(t){const e=t.sort(((t,e)=>t.s-e.s)).reduce(((t,e)=>{let n=D(t,2),r=n[0],i=n[1];return i?i.overlaps(e)||i.abutsStart(e)?[r,i.union(e)]:[r.concat([i]),e]:[r,e]}),[[],null]),n=D(e,2),r=n[0],i=n[1];return i&&r.push(i),r}static xor(t){let e=null,n=0;const r=[],i=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),a=Array.prototype.concat(...i).sort(((t,e)=>t.time-e.time));for(const o of a)n+="s"===o.type?1:-1,1===n?e=o.time:(e&&+e!==+o.time&&r.push(Ri.fromDateTimes(e,o.time)),e=null);
1return Ri.merge(r)}difference(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ri.xor([this].concat(e)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?"[".concat(this.s.toISO()," \u2013 ").concat(this.e.toISO(),")"):wi}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"Interval { start: ".concat(this.s.toISO(),", end: ").concat(this.e.toISO()," }"):"Interval { Invalid, reason: ".concat(this.invalidReason," }")}toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?Ar.create(this.s.loc.clone(e),t).formatInterval(this):wi}toISO(t){return this.isValid?"".concat(this.s.toISO(t),"/").concat(this.e.toISO(t)):wi}toISODate(){return this.isValid?"".concat(this.s.toISODate(),"/").concat(this.e.toISODate()):wi}toISOTime(t){return this.isValid?"".concat(this.s.toISOTime(t),"/").concat(this.e.toISOTime(t)):wi}toFormat(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).separator,n=void 0===e?" \u2013 ":e;return this.isValid?"".concat(this.s.toFormat(t)).concat(n).concat(this.e.toFormat(t)):wi}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Ai.invalid(this.invalidReason)}mapEndpoints(t){return Ri.fromDateTimes(t(this.s),t(this.e))}}class bi{static hasDST(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:In.defaultZone;const e=Ea.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return $e.isValidZone(t)}static normalizeZone(t){return dn(t,In.defaultZone)}static getStartOfWeek(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=void 0===e?null:e,r=t.locObj;return((void 0===r?null:r)||cn.create(n)).getStartOfWeek()}static getMinimumDaysInFirstWeek(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=void 0===e?null:e,r=t.locObj;return((void 0===r?null:r)||cn.create(n)).getMinDaysInFirstWeek()}static getWeekendWeekdays(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=void 0===e?null:e,r=t.locObj;return((void 0===r?null:r)||cn.create(n)).getWeekendDays().slice()}static months(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?null:n,i=e.numberingSystem,a=void 0===i?null:i,o=e.locObj,s=void 0===o?null:o,u=e.outputCalendar,c=void 0===u?"gregory":u;return(s||cn.create(r,a,c)).months(t)}static monthsFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?null:n,i=e.numberingSystem,a=void 0===i?null:i,o=e.locObj,s=void 0===o?null:o,u=e.outputCalendar,c=void 0===u?"gregory":u;return(s||cn.create(r,a,c)).months(t,!0)}static weekdays(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?null:n,i=e.numberingSystem,a=void 0===i?null:i,o=e.locObj;return((void 0===o?null:o)||cn.create(r,a,null)).weekdays(t)}static weekdaysFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"long",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?null:n,i=e.numberingSystem,a=void 0===i?null:i,o=e.locObj;return((void 0===o?null:o)||cn.create(r,a,null)).weekdays(t,!0)}static meridiems(){let t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).locale,e=void 0===t?null:t;return cn.create(e).meridiems()}static eras(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"short",e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).locale,n=void 0===e?null:e;return cn.create(n,null,"gregory").eras(t)}static features(){return{relative:Vn(),localeWeek:Hn()}}}function Di(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Ai.fromMillis(r).as("days"))}function Ci(t,e,n,r){let i=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=Di(t,e);
1return(n-n%7)/7}],["days",Di]],i={},a=t;let o,s;for(const c of r){var u=D(c,2);const r=u[0],l=u[1];n.indexOf(r)>=0&&(o=r,i[r]=l(t,e),s=a.plus(i),s>e?(i[r]--,(t=a.plus(i))>e&&(s=t,i[r]--,t=a.plus(i))):t=s)}return[t,i,s,o]}(t,e,n),a=D(i,4),o=a[0],s=a[1],u=a[2],c=a[3];const l=e-o,f=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===f.length&&(u<e&&(u=o.plus({[c]:1})),u!==o&&(s[c]=(s[c]||0)+l/(u-o)));const h=Ai.fromObject(s,r);return f.length>0?Ai.fromMillis(l,r).shiftTo(...f).plus(h):h}const Li={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Mi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pi=Li.hanidec.replace(/[\[|\]]/g,"").split("");function xi(t){let e=t.numberingSystem,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new RegExp("".concat(Li[e||"latn"]).concat(n))}function Ui(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return{regex:t,deser:t=>{let n=D(t,1)[0];return e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(Li.hanidec))e+=Pi.indexOf(t[n]);else for(const t in Mi){const n=D(Mi[t],2),i=n[0],a=n[1];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}return e}(n))}}}const ki=String.fromCharCode(160),Yi="[ ".concat(ki,"]"),Fi=new RegExp(Yi,"g");function Gi(t){return t.replace(/\./g,"\\.?").replace(Fi,Yi)}function Vi(t){return t.replace(/\./g,"").replace(Fi," ").toLowerCase()}function Hi(t,e){return null===t?null:{regex:RegExp(t.map(Gi).join("|")),deser:n=>{let r=D(n,1)[0];return t.findIndex((t=>Vi(r)===Vi(t)))+e}}}function Bi(t,e){return{regex:t,deser:t=>{let e=D(t,3);return or(e[1],e[2])},groups:e}}function Wi(t){return{regex:t,deser:t=>D(t,1)[0]}}const ji={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let $i=null;function zi(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=qi(Ar.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function Zi(t,e,n){const r=zi(Ar.parseFormat(n),t),i=r.map((e=>function(t,e){const n=xi(e),r=xi(e,"{2}"),i=xi(e,"{3}"),a=xi(e,"{4}"),o=xi(e,"{6}"),s=xi(e,"{1,2}"),u=xi(e,"{1,3}"),c=xi(e,"{1,6}"),l=xi(e,"{1,9}"),f=xi(e,"{2,4}"),h=xi(e,"{4,6}"),d=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:t=>D(t,1)[0],literal:!0};var e},g=(g=>{if(t.literal)return d(g);switch(g.val){case"G":return Hi(e.eras("short"),0);case"GG":return Hi(e.eras("long"),0);case"y":return Ui(c);case"yy":case"kk":return Ui(f,ir);case"yyyy":case"kkkk":return Ui(a);case"yyyyy":return Ui(h);case"yyyyyy":return Ui(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Ui(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Ui(r);case"MMM":return Hi(e.months("short",!0),1);case"MMMM":return Hi(e.months("long",!0),1);case"LLL":return Hi(e.months("short",!1),1);case"LLLL":return Hi(e.months("long",!1),1);case"o":case"S":return Ui(u);case"ooo":case"SSS":return Ui(i);case"u":return Wi(l);case"uu":return Wi(s);case"uuu":case"E":case"c":return Ui(n);case"a":return Hi(e.meridiems(),0);case"EEE":return Hi(e.weekdays("short",!1),1);case"EEEE":return Hi(e.weekdays("long",!1),1);case"ccc":return Hi(e.weekdays("short",!0),1);case"cccc":return Hi(e.weekdays("long",!0),1);case"Z":case"ZZ":return Bi(new RegExp("([+-]".concat(s.source,")(?::(").concat(r.source,"))?")),2);case"ZZZ":return Bi(new RegExp("([+-]".concat(s.source,")(").concat(r.source,")?")),2);case"z":return Wi(/[a-z_+-/]{1,256}?/i);case" ":return Wi(/[^\S\n\r]/);default:return d(g)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return g.token=t,g}(e,t))),a=i.find((t=>
1t.invalidReason));if(a)return{input:e,tokens:r,invalidReason:a.invalidReason};{const t=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>"".concat(t,"(").concat(e.source,")")),"");return["^".concat(e,"$"),t]}(i),n=D(t,2),a=n[0],o=n[1],s=RegExp(a,"i"),u=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const i in n)if(Wn(n,i)){const a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(t[a.token.val[0]]=a.deser(r.slice(e,e+o))),e+=o}return[r,t]}return[r,{}]}(e,s,o),c=D(u,2),l=c[0],f=c[1],h=f?function(t){let e,n=null;Yn(t.z)||(n=$e.create(t.z)),Yn(t.Z)||(n||(n=new fn(t.Z)),e=t.Z),Yn(t.q)||(t.M=3*(t.q-1)+1),Yn(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Yn(t.u)||(t.S=Kn(t.u));const r=Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{});return[r,n,e]}(f):[null,null,void 0],d=D(h,3),g=d[0],m=d[1],_=d[2];if(Wn(f,"a")&&Wn(f,"H"))throw new fe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:s,rawMatches:l,matches:f,result:g,zone:m,specificOffset:_}}}function qi(t,e){if(!t)return null;const n=Ar.create(e,t).dtFormatter(($i||($i=Ea.fromMillis(1555555555555)),$i)),r=n.formatToParts(),i=n.resolvedOptions();return r.map((e=>function(t,e,n){const r=t.type,i=t.value;if("literal"===r){const t=/^\s+$/.test(i);return{literal:!t,val:t?" ":i}}const a=e[r];let o=r;"hour"===r&&(o=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=ji[o];if("object"===typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(e,t,i)))}const Ki="Invalid DateTime",Xi=864e13;function Ji(t){return new On("unsupported zone",'the zone "'.concat(t.name,'" is not supported'))}function Qi(t){return null===t.weekData&&(t.weekData=Cn(t.c)),t.weekData}function ta(t){return null===t.localWeekData&&(t.localWeekData=Cn(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ea(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ea(S(S(S({},n),e),{},{old:n}))}function na(t,e,n){let r=t-60*e*1e3;const i=n.offset(r);if(e===i)return[r,e];r-=60*(i-e)*1e3;const a=n.offset(r);return i===a?[r,i]:[t-60*Math.min(i,a)*1e3,Math.max(i,a)]}function ra(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ia(t,e,n){return na(er(t),e,n)}function aa(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),a=S(S({},t.c),{},{year:r,month:i,day:Math.min(t.c.day,tr(r,i))+Math.trunc(e.days)+7*Math.trunc(e.weeks)}),o=Ai.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds");let s=D(na(er(a),n,t.zone),2),u=s[0],c=s[1];return 0!==o&&(u+=o,c=t.zone.offset(u)),{ts:u,o:c}}function oa(t,e,n,r,i,a){const o=n.setZone,s=n.zone;if(t&&0!==Object.keys(t).length||e){const r=e||s,i=Ea.fromObject(t,S(S({},n),{},{zone:r,specificOffset:a}));return o?i:i.setZone(s)}return Ea.invalid(new On("unparsable",'the input "'.concat(i,"\" can't be parsed as ").concat(r)))}function sa(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.isValid?Ar.create(cn.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ua(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=zn(t.c.year,n?6:4),e?(r+="-",r+=zn(t.c.month),r+="-",r+=zn(t.c.day)):(r+=zn(t.c.month),r+=zn(t.c.day)),r}function ca(t,e,n,r,i,a){let o=zn(t.c.hour);return e?(o+=":",o+=zn(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(o+=":")):o+=zn(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(o+=zn(t.c.second),0===t.c.millisecond&&r||(o+=".",o+=zn(t.c.millisecond,3))),i&&(t.isOffsetFixed&&0===t.offset&&!a?o+="Z":t.o<0?(o+="-",o+=zn(Math.trunc(-t.o/60)),o+=":",o+=zn(Math.trunc(-t.o%60))):(o+="+",o+=zn(Math.trunc(t.o/60)),o+=":",o+=zn(Math.trunc(t.o%60)))),a&&(o+="["+t.zone.ianaName+"]"),o}
1const la={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},fa={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ha={ordinal:1,hour:0,minute:0,second:0,millisecond:0},da=["year","month","day","hour","minute","second","millisecond"],ga=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ma=["year","ordinal","hour","minute","second","millisecond"];function _a(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new he(t);return e}(t)}}function pa(t,e){const n=dn(e.zone,In.defaultZone),r=cn.fromObject(e),i=In.now();let a,o;if(Yn(t.year))a=i;else{for(const n of da)Yn(t[n])&&(t[n]=la[n]);const e=Un(t)||kn(t);if(e)return Ea.invalid(e);var s=D(ia(t,n.offset(i),n),2);a=s[0],o=s[1]}return new Ea({ts:a,zone:n,loc:r,o:o})}function ya(t,e,n){const r=!!Yn(n.round)||n.round,i=(t,i)=>{t=Xn(t,r||n.calendary?0:2,!0);return e.loc.clone(n).relFormatter(n).format(t,i)},a=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const t=a(o);if(Math.abs(t)>=1)return i(t,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function va(t){let e,n={};return t.length>0&&"object"===typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class Ea{constructor(t){const e=t.zone||In.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new On("invalid input"):null)||(e.isValid?null:Ji(e));this.ts=Yn(t.ts)?In.now():t.ts;let r=null,i=null;if(!n){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e)){var a=[t.old.c,t.old.o];r=a[0],i=a[1]}else{const t=e.offset(this.ts);r=ra(this.ts,t),n=Number.isNaN(r.year)?new On("invalid input"):null,r=n?null:r,i=n?null:t}}this._zone=e,this.loc=t.loc||cn.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new Ea({})}static local(){const t=D(va(arguments),2),e=t[0],n=D(t[1],7);return pa({year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]},e)}static utc(){const t=D(va(arguments),2),e=t[0],n=D(t[1],7),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6];return e.zone=fn.utcInstance,pa({year:r,month:i,day:a,hour:o,minute:s,second:u,millisecond:c},e)}static fromJSDate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(n))return Ea.invalid("invalid input");const r=dn(e.zone,In.defaultZone);return r.isValid?new Ea({ts:n,zone:r,loc:cn.fromObject(e)}):Ea.invalid(Ji(r))}static fromMillis(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Fn(t))return t<-Xi||t>Xi?Ea.invalid("Timestamp out of range"):new Ea({ts:t,zone:dn(e.zone,In.defaultZone),loc:cn.fromObject(e)});throw new de("fromMillis requires a numerical input, but received a ".concat(typeof t," with value ").concat(t))}static fromSeconds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Fn(t))return new Ea({ts:1e3*t,zone:dn(e.zone,In.defaultZone),loc:cn.fromObject(e)});throw new de("fromSeconds requires a numerical input")}static fromObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=t||{};const n=dn(e.zone,In.defaultZone);if(!n.isValid)return Ea.invalid(Ji(n));const r=cn.fromObject(e),i=ur(t,_a),a=xn(i,r),o=a.minDaysInFirstWeek,s=a.startOfWeek,u=In.now(),c=Yn(e.specificOffset)?n.offset(u):e.specificOffset,l=!Yn(i.ordinal),f=!Yn(i.year),h=!Yn(i.month)||!Yn(i.day),d=f||h,g=i.weekYear||i.weekNumber;if((d||l)&&g)throw new fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&l)throw new fe("Can't mix ordinal dates with month/day");const m=g||i.weekday&&!d;let _,p,y=ra(u,c);m?(_=ga,p=fa,y=Cn(y,o,s)):l?(_=ma,p=ha,y=Mn(y)):(_=da,p=la);let v=!1;for(const A of _){Yn(i[A])?i[A]=v?p[A]:y[A]:v=!0}const E=m?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=Gn(t.weekYear),i=$n(t.weekNumber,1,rr(t.weekYear,e,n)),a=$n(t.weekday,1,7);return r?i?!a&&An("weekday",t.weekday):An("week",t.weekNumber):An("weekYear",t.weekYear)}(i,o,s):l?function(t){const e=Gn(t.year),n=$n(t.ordinal,1,Qn(t.year));return e?!n&&An("ordinal",t.ordinal):An("year",t.year)}(i):Un(i),T=E||kn(i);if(T)return Ea.invalid(T);const I=D(ia(m?Ln(i,o,s):l?Pn(i):i,c,n),2),O=I[0],N=I[1],S=new Ea({ts:O,zone
1:n,o:N,loc:r});return i.weekday&&d&&t.weekday!==S.weekday?Ea.invalid("mismatched weekday","you can't specify both a weekday of ".concat(i.weekday," and a date of ").concat(S.toISO())):S}static fromISO(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){return Dr(t,[ri,si],[ii,ui],[ai,ci],[oi,li])}(t),r=D(n,2);return oa(r[0],r[1],e,"ISO 8601",t)}static fromRFC2822(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){return Dr(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Kr,Xr])}(t),r=D(n,2);return oa(r[0],r[1],e,"RFC 2822",t)}static fromHTTP(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){return Dr(t,[Jr,ei],[Qr,ei],[ti,ni])}(t),r=D(n,2);return oa(r[0],r[1],e,"HTTP",e)}static fromFormat(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Yn(t)||Yn(e))throw new de("fromFormat requires an input string and a format");const r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a,s=function(t,e,n){const r=Zi(t,e,n);return[r.result,r.zone,r.specificOffset,r.invalidReason]}(cn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),t,e),u=D(s,4),c=u[0],l=u[1],f=u[2],h=u[3];return h?Ea.invalid(h):oa(c,l,n,"format ".concat(e),t,f)}static fromString(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ea.fromFormat(t,e,n)}static fromSQL(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){return Dr(t,[hi,si],[di,gi])}(t),r=D(n,2);return oa(r[0],r[1],e,"SQL",t)}static invalid(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)throw new de("need to specify a reason the DateTime is invalid");const n=t instanceof On?t:new On(t,e);if(In.throwOnInvalid)throw new ue(n);return new Ea({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=qi(t,cn.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zi(Ar.parseFormat(t),cn.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Qi(this).weekYear:NaN}get weekNumber(){return this.isValid?Qi(this).weekNumber:NaN}get weekday(){return this.isValid?Qi(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ta(this).weekday:NaN}get localWeekNumber(){return this.isValid?ta(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ta(this).weekYear:NaN}get ordinal(){return this.isValid?Mn(this.c).ordinal:NaN}get monthShort(){return this.isValid?bi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=er(this.c),r=this.zone.offset(n-t),i=this.zone.offset(n+t),a=this.zone.offset(n-r*e),o=this.zone.offset(n-i*e);if(a===o)return[this];const s=n-a*e,u=n-o*e,c=ra(s,a),l=ra(u,o);return c.hour===l.hour&&c.minute===l.minute&&c.second===l.second&&c.millisecond===l.millisecond?[ea(this,{ts:s}),ea(this,{ts:u})]:[this]}get isInLeapYear(){return Jn(this.year)}get daysInMonth(){return tr(this.year,this.month)}get daysInYear(){return this.isValid?Qn(this.year):NaN}get weeksInWeekYear(){return this.isValid?rr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?rr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=Ar.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e.locale,numberingSystem:e.numberingSystem,outputCalendar:e.calendar}}toUTC(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setZone(fn.instance(t),e)}toLocal(){return this.setZone(In.defaultZone)}setZone(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.keepLocalTime,r=void 0!==n&&n,i=e.keepCalendarTime,a=void 0!==i&&i;if((t=dn(t,In.defaultZone)).equals(this.zone))return this;if(t.isValid){let e=this.ts;if(r||a){const n=t.offset(this.ts);e=D(ia(this.toObject(),n,t),1)[0]}return ea(this,{ts:e,zone:t})}return Ea.invalid(Ji(t))}reconfigure(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.locale,n=t.numberingSystem,r=t.outputCalendar;return ea(this,{loc:this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=ur(t,_a),n=xn(e,this.loc),r=n.minDaysInFirstWeek,i=n.startOfWeek,a=!Yn(e.weekYear)||!Yn(e.weekNumber)||!Yn(e.weekday),o=!Yn(e.ordinal),s=!Yn(e.year),u=!Yn(e.month)||!Yn(e.day),c=s||u,l=e.weekYear||e.weekNumber;if((c||o)&&l)throw new fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new fe("Can't mix ordinal dates with month/day");let f;a?f=Ln(S(S({},Cn(this.c,r,i)),e),r,i):Yn(e.ordinal)?(f=S(S({},this.toObject()),e),Yn(e.day)&&(f.day=Math.min(tr(f.year,f.month),f.day))):f=Pn(S(S({},Mn(this.c)),e));const h=D(ia(f,this.o,this.zone),2);return ea(this,{ts:h[0],o:h[1]})}plus(t){if(!this.isValid)return this;return ea(this,aa(this,Ai.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return ea(this,aa(this,Ai.fromDurationLike(t).negate()))}startOf(t){let e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).useLocaleWeeks,n=void 0!==e&&e;if(!this.isValid)return this;const r={},i=Ai.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===i)if(n){const t=this.loc.getStartOfWeek();this.weekday<t&&(r.weekNumber=this.weekNumber-1),r.weekday=t}else r.weekday=1;if("quarters"===i){const t=Math.ceil(this.month/3);r.month=3*(t-1)+1}return this.set(r)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?Ar.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Ki}
1toLocaleString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isValid?Ar.create(this.loc.clone(e),t).formatDateTime(this):Ki}toLocaleParts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?Ar.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.format,n=void 0===e?"extended":e,r=t.suppressSeconds,i=void 0!==r&&r,a=t.suppressMilliseconds,o=void 0!==a&&a,s=t.includeOffset,u=void 0===s||s,c=t.extendedZone,l=void 0!==c&&c;if(!this.isValid)return null;const f="extended"===n;let h=ua(this,f);return h+="T",h+=ca(this,f,i,o,u,l),h}toISODate(){let t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).format,e=void 0===t?"extended":t;return this.isValid?ua(this,"extended"===e):null}toISOWeekDate(){return sa(this,"kkkk-'W'WW-c")}toISOTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.suppressMilliseconds,n=void 0!==e&&e,r=t.suppressSeconds,i=void 0!==r&&r,a=t.includeOffset,o=void 0===a||a,s=t.includePrefix,u=void 0!==s&&s,c=t.extendedZone,l=void 0!==c&&c,f=t.format,h=void 0===f?"extended":f;return this.isValid?(u?"T":"")+ca(this,"extended"===h,i,n,o,l):null}toRFC2822(){return sa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ua(this,!0):null}toSQLTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.includeOffset,n=void 0===e||e,r=t.includeZone,i=void 0!==r&&r,a=t.includeOffsetSpace,o="HH:mm:ss.SSS";return(i||n)&&((void 0===a||a)&&(o+=" "),i?o+="z":n&&(o+="ZZ")),sa(this,o,!0)}toSQL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?"".concat(this.toSQLDate()," ").concat(this.toSQLTime(t)):null}toString(){return this.isValid?this.toISO():Ki}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?"DateTime { ts: ".concat(this.toISO(),", zone: ").concat(this.zone.name,", locale: ").concat(this.locale," }"):"DateTime { Invalid, reason: ".concat(this.invalidReason," }")}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return{};const e=S({},this.c);return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"milliseconds",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isValid||!t.isValid)return Ai.invalid("created by diffing an invalid DateTime");const r=S({locale:this.locale,numberingSystem:this.numberingSystem},n),i=(s=e,Array.isArray(s)?s:[s]).map(Ai.normalizeUnit),a=t.valueOf()>this.valueOf(),o=Ci(a?this:t,a?t:this,i,r);var s;return a?o.negate():o}diffNow(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"milliseconds",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.diff(Ea.now(),t,e)}until(t){return this.isValid?Ri.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(e,n)<=r&&r<=i.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isValid)return null;const e=t.base||Ea.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),ya(e,this.plus(n),S(S({},t),{},{numeric:"always",units:r,unit:i}))}toRelativeCalendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isValid?ya(t.base||Ea.fromObject({},{zone:this.zone}),this,S(S({},t),{},{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.every(Ea.isDateTime))throw new de("min requires all arguments be DateTimes");return Bn(e,(t=>t.valueOf()),Math.min)}static max(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.every(Ea.isDateTime))throw new de("max requires all arguments be DateTimes");return Bn(e,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.locale,i=void 0===r?null:r,a=n.numberingSystem,o=void 0===a?null:a;return Zi(cn.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ea.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return ye}static get DATE_MED(){return ve}static get DATE_MED_WITH_WEEKDAY(){return Ee}static get DATE_FULL(){return Te}static get DATE_HUGE(){return Ie}static get TIME_SIMPLE(){return Oe}static get TIME_WITH_SECONDS(){return Ne}static get TIME_WITH_SHORT_OFFSET(){return Se}static get TIME_WITH_LONG_OFFSET(){return Ae}static get TIME_24_SIMPLE(){return we}static get TIME_24_WITH_SECONDS(){return Re}static get TIME_24_WITH_SHORT_OFFSET(){return be}static get TIME_24_WITH_LONG_OFFSET(){return De}static get DATETIME_SHORT(){return Ce}static get DATETIME_SHORT_WITH_SECONDS(){return Le}static get DATETIME_MED(){return Me}static get DATETIME_MED_WITH_SECONDS(){return Pe}static get DATETIME_MED_WITH_WEEKDAY(){return xe}static get DATETIME_FULL(){return Ue}static get DATETIME_FULL_WITH_SECONDS(){return ke}static get DATETIME_HUGE(){return Ye}static get DATETIME_HUGE_WITH_SECONDS(){return Fe}}function Ta(t){if(Ea.isDateTime(t))return t;if(t&&t.valueOf&&Fn(t.valueOf()))return Ea.fromJSDate(t);if(t&&"object"===typeof t)return Ea.fromObject(t);throw new de("Unknown datetime argument: ".concat(t,", of type ").concat(typeof t))}n(39170),n(37111),n(3569);const Ia=t=>{return e=t.reduce(((t,e)=>t+e),0),Math.round(100*e)/100;var e},Oa=t=>Ea.fromISO(t).year;class Na extends at{get startYear(){var t,e;if(null===(t=this.owner)||void 0===t||!t.birthday)return this.settings.startYear;return Oa(this.owner.birthday)+(null!==(e=this.owner.lifeExpectancy)&&void 0!==e?e:90)}get ownerId(){return this.config.ownerId}getYearChangeAction(t){var e;const n=this.settings.participants.find((t=>t.userId===this.config.ownerId));if(null===n||void 0===n||!n.birthday)return null;const r=t-Oa(n.birthday),i=Math.max(50,Math.min(110,r));return(null!==(e=n.lifeExpectancy)&&void 0!==e?e:90)===i?null:{type:"updateParticipant",userId:this.config.ownerId,lifeExpectancy:i}}}class Sa extends at{getEffectDefinitions(){const t=[];return this.config.upfrontChildCosts>0&&t.push({id:"upfront-cost",label:"Upfront costs",name:this.name,target:"expense",computeAmount:t=>{let e=t.year;return this.calculateUpfrontCost(e)}}),this.config.yearlyChildExpenses>0&&t.push({id:"child-expenses",label:"Child expenses",name:this.name,target:"expense",computeAmount:t=>{let e=t.year;return this.calculateChildExpenses(e)}}),t}calculateUpfrontCost(t){return t!==this.startYear?0:ot(this.config.upfrontChildCosts,t,this.settings)}calculateChildExpenses(t){if(void 0===this.startYear)return 0;const e=this.startYear+this.config.yearsOfChildcare;return t<this.startYear||t>=e?0:lt(this.config.yearlyChildExpenses,t,this.growthType,this.settings,this.startYear,this.growthRate)}getActiveYearRange(t){if(void 0===this.startYear)return;const e=this.startYear+this.config.yearsOfChildcare;return{start:this.startYear,end:Math.min(e,t)}}get yearlyChildExpenses(){return this.config.yearlyChildExpenses}get yearsOfChildcare(){return this.config.yearsOfChildcare}get upfrontChildCosts(){return this.config.upfrontChildCosts}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}const Aa=t=>{if(void 0===t||null===t)return 1;const e=Math.floor(Number(t));return!Number.isFinite(e)||e<1?1:e},wa=(t,e,n,r)=>"yearly"!==e||void 0!==n&&((t,e,n)=>(t-e)%n===0)(t,n,r);var Ra;!function(t){t.PLAN="plan",t.CASH_FLOW="cash_flow",t.NET_WORTH="net_worth",t.TRANSACTIONS="transactions",t.GOALS="goals",t.GETTING_STARTED="getting_started",t.REVIEW="review",t.INVESTMENTS="investments",t.RECURRING="recurring",t.ADVICE="advice",t.CREDIT_SCORE="credit_score",t.SAVINGS_GOALS="savings_goals",t.RECAP="recap",t.BUSINESS_ENTITIES="business_entities",t.FOUND_MONEY="found_money"}(Ra||(Ra={}));
1const ba="https://help.monarch.com/hc/en-us/articles/16116906962452";var Da,Ca,La,Ma,Pa,xa,Ua,ka,Ya,Fa,Ga,Va,Ha,Ba,Wa,ja,$a,za,Za,qa,Ka,Xa,Ja,Qa,to,eo,no,ro,io,ao,oo,so,uo,co,lo,fo,ho,go,mo,_o,po,yo,vo,Eo,To,Io,Oo,No,So,Ao,wo,Ro,bo,Do,Co,Lo,Mo,Po,xo,Uo,ko,Yo,Fo,Go,Vo,Ho,Bo,Wo,jo,$o,zo,Zo,qo,Ko,Xo,Jo,Qo,ts,es,ns,rs,is,as,os,ss,us,cs,ls,fs,hs,ds,gs,ms,_s,ps,ys,vs,Es,Ts,Is,Os,Ns,Ss,As,ws,Rs,bs,Ds,Cs,Ls,Ms,Ps,xs,Us,ks,Ys,Fs,Gs,Vs,Hs,Bs,Ws,js,$s,zs,Zs,qs,Ks,Xs,Js,Qs,tu,eu,nu,ru,iu,au,ou,su,uu,cu,lu,fu,hu,du,gu,mu,_u,pu,yu,vu,Eu,Tu,Iu,Ou,Nu,Su,Au;!function(t){t.BALANCE_ASC="balance_asc",t.BALANCE_DESC="balance_desc",t.CUSTOM="custom"}(Da||(Da={})),function(t){t.FIRST_SYNC_PENDING="first_sync_pending",t.NO_ACTIVE_ACCOUNTS="no_active_accounts",t.SYNC_IN_PROGRESS="sync_in_progress"}(Ca||(Ca={})),function(t){t.ASSET="asset",t.LIABILITY="liability",t.OTHER="other"}(La||(La={})),function(t){t.PRIVATE_TO_USER="private_to_user",t.PUBLIC_TO_HOUSEHOLD="public_to_household"}(Ma||(Ma={})),function(t){t.ACCOUNT_ERROR="account_error",t.BUDGET_EXCEEDED="budget_exceeded",t.CREDIT_SCORE_CHANGED="credit_score_changed",t.FLEX_BUDGET_EXCEEDED="flex_budget_exceeded",t.GOAL_BALANCES_CHECKIN="goal_balances_checkin",t.GOAL_CONTRIBUTION="goal_contribution",t.GOAL_MILESTONE="goal_milestone",t.LARGE_TRANSACTION="large_transaction",t.NET_WORTH_MILESTONE="net_worth_milestone",t.NEW_RECURRING_ACCOUNTS_DETECTED="new_recurring_accounts_detected",t.NEW_RECURRING_MERCHANTS_DETECTED="new_recurring_merchants_detected",t.NEW_STATEMENT_BALANCE_RECEIVED="new_statement_balance_received",t.RECEIPT_IMPORT_ERROR="receipt_import_error",t.RECEIPT_IMPORTED="receipt_imported",t.RECEIPT_MATCHED="receipt_matched",t.RECURRING_ACCOUNT_DUE_DATE_APPROACHING="recurring_account_due_date_approaching",t.RECURRING_TRANSACTION_EXPECTED="recurring_transaction_expected",t.REFERRAL_SUBSCRIPTION="referral_subscription",t.REFERRAL_V2_REWARD="referral_v2_reward",t.STATEMENT_DUE_DATE_PASSED="statement_due_date_passed",t.TRANSACTIONS_NEED_REVIEW="transactions_need_review",t.UNCATEGORIZED_TRANSACTIONS="uncategorized_transactions",t.VENMO_TRANSACTION_DETECTED_ON_NON_VENMO_ACCOUNT="venmo_transaction_detected_on_non_venmo_account"}(Pa||(Pa={})),function(t){t.DERIVED="DERIVED",t.HOLDING_OVERRIDE="HOLDING_OVERRIDE",t.MORNINGSTAR="MORNINGSTAR",t.SECURITY_OVERRIDE="SECURITY_OVERRIDE"}(xa||(xa={})),function(t){t.BILL_NEGOTIATOR="bill_negotiator",t.SUBSCRIPTION_OPTIMIZER="subscription_optimizer",t.SUBSCRIPTION_SAVER="subscription_saver"}(Ua||(Ua={})),function(t){t.GREEN="green",t.INDIGO="indigo",t.ORANGE="orange",t.PINK="pink",t.PURPLE="purple",t.RED="red",t.TEAL="teal",t.YELLOW="yellow"}(ka||(ka={})),function(t){t.REACT="react",t.SUPERVISOR="supervisor"}(Ya||(Ya={})),function(t){t.CANCELLED="cancelled",t.ERROR="error",t.LOADING="loading",t.SUCCESS="success"}(Fa||(Fa={})),function(t){t.EVERY_2_MONTHS="every_2_months",t.EVERY_3_MONTHS="every_3_months",t.EVERY_4_MONTHS="every_4_months",t.EVERY_5_MONTHS="every_5_months",t.EVERY_6_MONTHS="every_6_months",t.EVERY_7_MONTHS="every_7_months",t.EVERY_8_MONTHS="every_8_months",t.EVERY_9_MONTHS="every_9_months",t.EVERY_10_MONTHS="every_10_months",t.EVERY_11_MONTHS="every_11_months",t.EVERY_12_MONTHS="every_12_months",t.MONTHLY="monthly",t.VARIABLE="variable"}(Ga||(Ga={})),function(t){t.FIXED_AND_FLEX="fixed_and_flex",t.GROUPS_AND_CATEGORIES="groups_and_categories"}(Va||(Va={})),function(t){t.FLEX_EXPENSE="flex_expense"}(Ha||(Ha={})),function(t){t.MONTH="month"}(Ba||(Ba={})),function(t){t.FIXED="fixed",t.FLEXIBLE="flexible",t.NON_MONTHLY="non_monthly"}(Wa||(Wa={})),function(t){t.FIXED="fixed",t.FLEXIBLE="flexible",t.NON_MONTHLY="non_monthly"}(ja||(ja={})),function(t){t.BREAK_EVEN="break_even",t.LOSS="loss",t.PRE_REVENUE="pre_revenue",t.PROFITABLE="profitable"}($a||($a={})),function(t){t.C_CORP="c_corp",t.ESTATE="estate",t.LLC="llc",t.LLP="llp",t.LP="lp",t.NONPROFIT="nonprofit",t.OTHER="other",t.PARTNERSHIP="partnership",t.S_CORP="s_corp",t.SOLE_PROPRIETORSHIP="sole_proprietorship",t.TRUST="trust"}(za||(za={})),function(t){t.CONNECTION_ISSUES="connection_issues",t.DONT_NEED_IT_ANYMORE="dont_need_it_anymore",t.FEATURES_NOT_GOOD_ENOUGH="features_not_good_enough",t.FOUND_BETTER_ALTERNATIVE="found_better_alternative",t.MISSING_FEATURES="missing_features",t.NOT_ENOUGH_VALUE="not_enough_value",t.OTHER="other",t.TRIAL_DATA_ACCURACY_ISSUES="trial_data_accuracy_issues",t.TRIAL_DIDNT_DO_WHAT_EXPECTED="trial_didnt_do_what_expected",t.TRIAL_DIDNT_HAVE_TIME="trial_didnt_have_time",t.TRIAL_DIDNT_SEE_VALUE="trial_didnt_see_value",t.TRIAL_GOING_TO_USE_SOMETHING_ELSE="trial_going_to_use_something_else",t.TRIAL_SIGNED_UP_BY_ACCIDENT="trial_signed_up_by_accident",t.TRIAL_TROUBLE_CONNECTING="trial_trouble_connecting",t.WILL_TURN_ON_LATER="will_turn_on_later"}
1(Za||(Za={})),function(t){t.FREE_TEXT="free_text",t.OPTION="option"}(qa||(qa={})),function(t){t.ACCOUNTS_KEPT_DISCONNECTING="accounts_kept_disconnecting",t.AI_TOOL="ai_tool",t.BUDGET_OR_SITUATION_CHANGED="budget_or_situation_changed",t.COPILOT="copilot",t.DATA_DELAYED_OR_OUT_OF_DATE="data_delayed_or_out_of_date",t.DONT_USE_ENOUGH_TO_JUSTIFY_COST="dont_use_enough_to_justify_cost",t.EMPOWER="empower",t.FEATURES_DONT_JUSTIFY_COST="features_dont_justify_cost",t.FINANCES_FIGURED_OUT="finances_figured_out",t.FINANCIAL_SITUATION_CHANGED="financial_situation_changed",t.FREE_TEXT="free_text",t.INSTITUTION_NOT_AVAILABLE="institution_not_available",t.KUBERA="kubera",t.M5_7="m5_7",t.M7_10="m7_10",t.MY_FINANCIAL_INSTITUTION="my_financial_institution",t.NONE="none",t.NOT_COMFORTABLE_LINKING_BANK="not_comfortable_linking_bank",t.NOT_USING_IT_ENOUGH="not_using_it_enough",t.ORIGIN="origin",t.OTHER="other",t.Q20_25="q20_25",t.QUICKEN_SIMPLIFI="quicken_simplifi",t.ROCKET_MONEY="rocket_money",t.SOMETHING_ELSE="something_else",t.SPREADSHEET="spreadsheet",t.TILLER="tiller",t.TRANSACTIONS_MISCATEGORIZED="transactions_miscategorized",t.TRANSACTIONS_MISSING_OR_DUPLICATED="transactions_missing_or_duplicated",t.TRYING_IT_OUT="trying_it_out",t.Y60_70="y60_70",t.Y70_80="y70_80",t.YNAB="ynab"}(Ka||(Ka={})),function(t){t.E="E",t.I="I",t.T="T",t.EXPENSE="expense",t.INCOME="income",t.TRANSFER="transfer"}(Xa||(Xa={})),function(t){t.EXPENSE="expense",t.INCOME="income",t.TRANSFER="transfer"}(Ja||(Ja={})),function(t){t.AUTO_DETECTED="auto_detected",t.USER_REPORTED="user_reported"}(Qa||(Qa={})),function(t){t.HIGH="high",t.LOW="low",t.MEDIUM="medium"}(to||(to={})),function(t){t.PRIMARY="primary",t.REFUND_REQUEST="refund_request"}(eo||(eo={})),function(t){t.NO_USE="no_use",t.PARTS_UNUSABLE="parts_unusable",t.QUESTION_OR_FEEDBACK="question_or_feedback",t.SLOWING_ME_DOWN="slowing_me_down"}(no||(no={})),function(t){t.BALANCE_INVERTED="balance_inverted",t.BILLING_ERRORS="billing_errors",t.BILLING_SOMETHING_ELSE="billing_something_else",t.BUG_REPORT="bug_report",t.CANCELLATION_AND_REFUNDS="cancellation_and_refunds",t.CANT_AFFORD_THE_SUBSCRIPTION_PRICE_REFUND_REASON="cant_afford_the_subscription_price_refund_reason",t.CONNECTION_SOMETHING_ELSE="connection_something_else",t.DELETE_ACCOUNT="delete_account",t.DONT_NEED_A_PRODUCT_LIKE_MONARCH_ANYMORE_REFUND_REASON="dont_need_a_product_like_monarch_anymore_refund_reason",t.DONT_USE_IT_ENOUGH_REFUND_REASON="dont_use_it_enough_refund_reason",t.DUPLICATE_ACCOUNTS="duplicate_accounts",t.DUPLICATE_TRANSACTIONS="duplicate_transactions",t.EXTENDED_AND_NEW_TRIALS="extended_and_new_trials",t.FEEDBACK_ABOUT_TRANSACTIONS_VIEW="feedback_about_transactions_view",t.FORGOT_TO_CANCEL_REFUND_REASON="forgot_to_cancel_refund_reason",t.GENERAL_SOMETHING_ELSE="general_something_else",t.HOLDINGS_NOT_SHOWING="holdings_not_showing",t.HOW_IT_WORKS="how_it_works",t.HOW_IT_WORKS_GOALS="how_it_works_goals",t.HOW_IT_WORKS_PLAN_BUDGET="how_it_works_plan_budget",t.INCONSISTENT_BUDGETING_DATA="inconsistent_budgeting_data",t.INCORRECT_BALANCE="incorrect_balance",t.INCORRECT_INVESTMENT_BALANCE="incorrect_investment_balance",t.INITIAL_CONNECTION_FAILURE="initial_connection_failure",t.INSTITUTION_KEEPS_DISCONNECTING="institution_keeps_disconnecting",t.LINKING_ACCOUNTS_TO_GOALS="linking_accounts_to_goals",t.LINKING_TRANSACTIONS_TO_GOALS="linking_transactions_to_goals",t.MISSING_ACCOUNTS="missing_accounts",t.MISSING_DELAYED_TRANS="missing_delayed_trans",t.MISSING_OR_DUPE_ACCOUNTS="missing_or_dupe_accounts",t.MISSING_PRODUCT_FUNCTIONALITY_REFUND_REASON="missing_product_functionality_refund_reason",t.MISSING_STOCK_SYMBOL="missing_stock_symbol",t.MISSING_TRANSACTIONS="missing_transactions",t.MOBILE_SUBSCRIPTIONS="mobile_subscriptions",t.MONARCH_ASSISTANT="monarch_assistant",t.NEW_INSTITUTION_REQUEST="new_institution_request",t.NOTIFICATIONS="notifications",t.PAYMENT_ISSUE="payment_issue",t.PLAN_TO_SWITCH_TO_A_DIFFERENT_TOOL_REFUND_REASON="plan_to_switch_to_a_different_tool_refund_reason",t.PRODUCT_FEATURE_DOESNT_WORK_AS_EXPECTED_REFUND_REASON="product_feature_doesnt_work_as_expected_refund_reason",t.PRODUCT_FEATURES_NOT_WORKING_REFUND_REASON="product_features_not_working_refund_reason",t.PRODUCT_FEEDBACK="product_feedback",t.PRODUCT_QUESTION_GOALS_SOMETHING_ELSE="product_question_goals_something_else",t.PRODUCT_QUESTION_INVESTMENTS_SOMETHING_ELSE="product_question_investments_something_else",t.PRODUCT_QUESTION_PLAN_BUDGET_SOMETHING_ELSE="product_question_plan_budget_something_else",t.PRODUCT_QUESTION_RECURRING_AND_BILLS="product_question_recurring_and_bills",t.PRODUCT_QUESTION_RETAIL_SYNC="product_question_retail_sync",t.PRODUCT_QUESTION_TRANSACTIONS_SOMETHING_ELSE="product_question_transactions_something_else",t.REASON_NOT_PROVIDED="reason_not_provided",t.REFERRALS_AND_PROMOTION_CODES="referrals_and_promotion_codes",t.SETTINGS_SOMETHING_ELSE="settings_something_else",t.SUBSCRIPTION_CHANGES="subscription_changes",t.SWITCH_BILLING_PLATFORMS="switch_billing_platforms",t.TOO_EXPENSIVE_REFUND_REASON="too_expensive_refund_reason",t.TOO_MANY_ACCOUNT_CONNECTION_ISSUES_REFUND_REASON="too_many_account_connection_issues_refund_reason",t.TOO_MANY_ISSUES_WITH_INCORRECT_DATA_REFUND_REASON="too_many_issues_with_incorrect_data_refund_reason",t.TOO_MUCH_MANUAL_WORK_TO_CONNECT_AND_TRACK_ACCOUNTS_REFUND_REASON="too_much_manual_work_to_connect_and_track_accounts_refund_reason",t.TRANSACTION_RULES="transaction_rules",t.WRONG_ACCOUNT_TYPE="wrong_account_type"}(ro||(ro={})),function(t){t.BILLING="billing",t.CONNECTION_ISSUE="connection_issue",t.GENERAL="general",t.PRODUCT_QUESTION_GOALS="product_question_goals",t.PRODUCT_QUESTION_INVESTMENTS="product_question_investments",t.PRODUCT_QUESTION_PLAN_BUDGET="product_question_plan_budget",t.PRODUCT_QUESTION_RECURRING="product_question_recurring",t.PRODUCT_QUESTION_RETAIL_SYNC="product_question_retail_sync",t.PRODUCT_QUESTION_TRANSACTIONS="product_question_transactions",t.REFUND="refund",t.SETTINGS="settings"}(io||(io={})),function(t){t.EXCELLENT="excellent",t.FAIR="fair",t.GOOD="good",t.GREAT="great",t.POOR="poor"}(ao||(ao={})),function(t){t.DASHBOARD_WIDGET="dashboard_widget",t.SPINWHEEL_ONBOARDING_FLOW="spinwheel_onboarding_flow"}(oo||(oo={})),function(t){t.DISABLED="disabled",t.ENABLED="enabled",t.PAUSED="paused"}(so||(so={})),function(t){t.ACTIVE_SUBSCRIPTION_ON_ANOTHER_SOURCE="active_subscription_on_another_source",t.BILLING_RETRY_ON_ANOTHER_SOURCE="billing_retry_on_another_source",t.UNKNOWN="unknown"}(uo||(uo={})),function(t){t.APPLE_CARD="APPLE_CARD",t.APPLE_FINANCE_KIT="APP
1LE_FINANCE_KIT",t.COINBASE="COINBASE",t.FINICITY="FINICITY",t.MX="MX",t.PLAID="PLAID",t.VIN_AUDIT="VIN_AUDIT",t.ZILLOW="ZILLOW"}(co||(co={})),function(t){t.INSTITUTION_MISMATCH="institution_mismatch"}(lo||(lo={})),function(t){t.ALLOWED="allowed",t.BLOCKED="blocked",t.PENDING="pending"}(fo||(fo={})),function(t){t.AMBIGUOUS="ambiguous",t.MATCHED_MASK="matched_mask",t.MATCHED_NAME="matched_name",t.MATCHED_SINGLETON="matched_singleton",t.UNMATCHED="unmatched"}(ho||(ho={})),function(t){t.KEEP="keep",t.MOVE="move"}(go||(go={})),function(t){t.ADD="add",t.DISCARD="discard"}(mo||(mo={})),function(t){t.ACCOUNTS_READY="accounts_ready",t.CANCELED="canceled",t.COMPLETED="completed",t.CONNECTED="connected",t.EXECUTING="executing",t.FAILED="failed",t.MAPPINGS_CONFIRMED="mappings_confirmed",t.STARTED="started"}(_o||(_o={})),function(t){t.AVALANCHE="avalanche",t.PLANNED="planned",t.SNOWBALL="snowball"}(po||(po={})),function(t){t.NEW_AND_EDITS="new_and_edits",t.NEW_ONLY="new_only"}(yo||(yo={})),function(t){t.ALL_INCLUDING_DELETED="all_including_deleted",t.DELETED_ONLY="deleted_only"}(vo||(vo={})),function(t){t.GPC="gpc",t.OSANO="osano",t.USER="user"}(Eo||(Eo={})),function(t){t.HIGH="high",t.LOW="low",t.MEDIUM="medium"}(To||(To={})),function(t){t.BUSINESS_OWNER="business_owner",t.EMPLOYED_FULL_TIME="employed_full_time",t.EMPLOYED_PART_TIME="employed_part_time",t.RETIRED="retired",t.SELF_EMPLOYED="self_employed",t.STUDENT="student",t.UNEMPLOYED="unemployed"}(Io||(Io={})),function(t){t.AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",t.CREDENTIAL_REFRESH_UNAVAILABLE="CREDENTIAL_REFRESH_UNAVAILABLE",t.DELETED_HOUSEHOLD="DELETED_HOUSEHOLD",t.DELETE_SNAPSHOTS_HISTORY_UNAVAILABLE="DELETE_SNAPSHOTS_HISTORY_UNAVAILABLE",t.DELETE_TRANSACTIONS_HISTORY_UNAVAILABLE="DELETE_TRANSACTIONS_HISTORY_UNAVAILABLE",t.DEMO_HOUSEHOLD_ACTION_BLOCKED="DEMO_HOUSEHOLD_ACTION_BLOCKED",t.DOWNGRADE_ACTIONS_REQUIRED="DOWNGRADE_ACTIONS_REQUIRED",t.EMAIL_OTP_FAILED="EMAIL_OTP_FAILED",t.EMAIL_UNVERIFIED_ON_PROVIDER="EMAIL_UNVERIFIED_ON_PROVIDER",t.HOUSEHOLD_INVITE_USER_ALREADY_EXISTS="HOUSEHOLD_INVITE_USER_ALREADY_EXISTS",t.HOUSEHOLD_SCHEDULED_FOR_DELETION="HOUSEHOLD_SCHEDULED_FOR_DELETION",t.INVALID_CREDENTIALS="INVALID_CREDENTIALS",t.MFA_RECOVERY_FAILED="MFA_RECOVERY_FAILED",t.MFA_TOTP_FAILED="MFA_TOTP_FAILED",t.OAUTH_ERROR="OAUTH_ERROR",t.OAUTH_INVALID_PROVIDER="OAUTH_INVALID_PROVIDER",t.OAUTH_INVALID_TOKEN="OAUTH_INVALID_TOKEN",t.PLUS_TIER_REQUIRED="PLUS_TIER_REQUIRED",t.RECONCILIATION_EXCEEDS_AVAILABLE="RECONCILIATION_EXCEEDS_AVAILABLE",t.RECORD_OF_REQUEST_REQUIRED="RECORD_OF_REQUEST_REQUIRED",t.SPONSOR_NOT_FOUND="SPONSOR_NOT_FOUND",t.SUBSCRIPTION_CHANGE_IN_PROGRESS="SUBSCRIPTION_CHANGE_IN_PROGRESS",t.SUBSCRIPTION_ENDED="SUBSCRIPTION_ENDED",t.SUSPICIOUS_HOUSEHOLD_BLOCKED="SUSPICIOUS_HOUSEHOLD_BLOCKED",t.THROTTLED="THROTTLED",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.UNAUTHORIZED="UNAUTHORIZED",t.USER_ALREADY_SIGNED_UP="USER_ALREADY_SIGNED_UP",t.USER_IS_ONBOARDING="USER_IS_ONBOARDING",t.USER_NOT_FOUND="USER_NOT_FOUND"}(Oo||(Oo={})),function(t){t.ERROR="ERROR",t.INFORMATIONAL="INFORMATIONAL",t.SUCCESS="SUCCESS",t.WARNING="WARNING"}(No||(No={})),function(t){t.COPILOT="copilot",t.SELF_GUIDED="self_guided"}(So||(So={})),function(t){t.BUSINESS_INCOME="business_income",t.CHECKING="checking",t.CREDIT_CARDS="credit_cards",t.CRYPTO="crypto",t.EQUITY="equity",t.INVESTMENTS="investments",t.LOANS="loans",t.OTHER="other",t.REAL_ESTATE="real_estate"}(Ao||(Ao={})),function(t){t.COMPLETED="COMPLETED",t.CONNECTING="CONNECTING",t.DOWNLOADING="DOWNLOADING",t.ERRORED="ERRORED",t.REQUESTING_DATA="REQUESTING_DATA",t.SKIPPED="SKIPPED",t.WAITING="WAITING"}(wo||(wo={})),function(t){t.COMPLETED="COMPLETED",t.IN_PROGRESS="IN_PROGRESS"}(Ro||(Ro={})),function(t){t.FUTUREDOLLARS="futureDollars",t.TODAYSDOLLARS="todaysDollars"}(bo||(bo={})),function(t){t.ANNUALEXPENSE="annualExpense",t.BUYAHOME="buyAHome",t.CAREERBREAK="careerBreak",t.ENDOFPLAN="endOfPlan",t.HAVEAKID="haveAKid",t.INCOME="income",t.NEWJOB="newJob",t.OTHEREXPENSE="otherExpense",t.RETIREMENT="retirement",t.SOCIALSECURITY="socialSecurity",t.WINDFALL="windfall"}(Do||(Do={})),function(t){t.FIXED="fixed",t.NOCHANGE="noChange",t.SCHEDULE="schedule"}(Co||(Co={})),function(t){t.ALLOCATION="allocation",t.WITHDRAWAL="withdrawal"}(Lo||(Lo={})),function(t){t.ALWAYS="always",t.NEVER="never",t.STARTING_YEAR="starting_year"}(Mo||(Mo={})),function(t){t.PENDING_PROMO_CODE="pending_promo_code",t.READY_TO_REDEEM="ready_to_redeem",t.REDEEMED="redeemed",t.REFUNDED="refunded",t.REVOKED="revoked"}(Po||(Po={})),function(t){t.ANNUAL="annual",t.BIANNUAL="biannual",t.BIMONTHLY="bimonthly",t.DAY="day",t.MONTHLY="monthly"}(xo||(xo={})),function(t){t.CONTRIBUTION="contribution",t.MIGRATION="migration",t.PRICE_CHANGE="price_change",t.REBALANCE="rebalance",t.SPENDING="spending",t.TRANSACTION_ADJUSTMENT="transaction_adjustment",t.WITHDRAWAL="withdrawal"}(Uo||(Uo={})),function(t){t.AHEAD="ahead",t.ARCHIVED="archived",t.AT_RISK="at_risk",t.COMPLETED="completed",t.ON_TRACK="on_track"}(ko||(ko={})),function(t){t.ACT_NEGLIGIBLE_RISK="act_negligible_risk",t.GUIDE="guide",t.INFORM="inform",t.RECOMMEND="recommend"}(Yo||(Yo={})),function(t){t.DATA_CLEANING="data_cleaning",t.DOLLAR_OPPORTUNITY="dollar_opportunity",t.PERSONAL_RELATIONSHIP="personal_relationship",t.RECOMMEND_ACTION="recommend_action",t.WATCH_CLOSELY="watch_closely"}(Fo||(Fo={})),function(t){t.DISLIKE="dislike",t.LIKE="like"}(Go||(Go={})),function(t){t.ACCEPTED="accepted",t.ARCHIVED="archived",t.COMPLETED="completed",t.DENIED="denied",t.IN_PROGRESS="in_progress",t.NEW="new",t.NO_LONGER_APPLICABLE="no_longer_applicable",t.REOPENED="reopened"}(Vo||(Vo={})),function(t){t.ACCEPTED="accepted",t.ARCHIVED="archived",t.COMPLETED="completed",t.DENIED="denied",t.FAILED="failed",t.IN_PROGRESS="in_progress",t.NEW="new",t.REOPENED="reopened"}(Ho||(Ho={})),function(t){t.ACCOUNT="account",t.CATEGORY="category",t.CREDENTIAL="credential",t.GOAL="goal",t.INSTITUTION="institution",t.MERCHANT="merchant",t.SECURITY="security",t.TAX_LOT="tax_lot",t.TRANSACTION="transaction"}(Bo||(Bo={})),function(t){t.COMPLETED="completed",t.FAILED="failed",t.PENDING="pending",t.RUNNING="running"}(Wo||(Wo={})),function(t){t.ACCOUNT_AND_ACTIVITY_ALERTS="account_and_activity_alerts",t.COMPARISONS="comparisons",t.CREDIT_AND_DEBT="credit_and_debt",t.FINANCIAL_HAIKUS="financial_haikus",t.MARKETS_AND_INVESTMENTS="markets_and_investments",t.PLAN_AND_SUBSCRIPTION_CHANGES="plan_and_subscription_changes",t.PROVIDER_RECOMMENDATIONS="provider_recommendations",t.TRENDS_AND_RECAPS="trends_and_recaps",t.WAYS_TO_SAVE="ways_to_save"}(jo||(jo={})),function(t){t.ANNUAL="annual",t.MONTHLY="monthly",t.ONE_OFF="one_off"}($o||($o={})),function(t){t.DEGRADED="DEGRADED",t.DOWN="DOWN",t.HEALTHY="HEALTHY"}(zo||(zo={})),function(t){t.FIXED="fixed",t.NOT_SURE="not_sure",t.VARIABLE="variable"}(Zo||(Zo={})),function(t){t.PAID="paid",t.PARTIALLY_PAID="partially_paid",t.UNPAID="unpaid"}(qo||(qo={})),function(t){t.BALANCES="balances",t.HOLDINGS="holdings"}(Ko||(Ko={})),function(t){t.NAME="NAME",t.TRANSACTION_COUNT="TRANSACTION_COUNT"}(Xo||(Xo={})),function(t){t.DIFFERENT_MERCHANT="different_merchant",t.NO_FITTING_FREQUENCY="no_fitting_frequency",t.NO_TRANSACTIONS="no_transactions",t.NOT_ENOUGH_GROUPS="not_enough_groups",t.OPPOSITE_SIGNS="opposite_signs"}(Jo||(Jo={})),function(t){t.ERROR="error",t.INFO="info",t.PLAIN="plain",t.SUCCESS="success",t.WARNING="warning"}(Qo||(Qo={})),function(t){t.ANDROID="android",t.IOS="ios"}(ts||(ts={})),function(t){t.EMERGENCY="emergency",t.EVERYDAY_SPENDING="everyday_spending",t.LONG_TERM_SAVINGS="long_term_savings",t.NEAR_TERM_GOALS="near_term_goals"}(es||(es={})),function(t){t.BLENDED="blended",t.DORMANT="dormant",t.MEASURED="measured",t.NEUTRAL="neutral"}(ns||(ns={})),function(t){t.BANKING="banking",t.CASH_FLOW="cash_flow",t.DEBT_CREDIT="debt_credit",t.HOUSING="housing",t.INCOME="income",t.INVESTING="investing",t.PROTECTION="protection",t.RETIREMENT="retirement",t.TAXES="taxes"}(rs||(rs={})),function(t){t.MEASURED="measured",t.NOT_YET_APPLICABLE="not_yet_applicable",t.PROVISIONAL="provisional"}(is||(is={})),function(t){t.COMPLETE="complete",t.PROVISIONAL="provisional"}(as||(as={})),function(t){t.EMAIL="EMAIL",t.IN_APP="IN_APP",t.PUSH="PUSH"}(os||(os={}
1)),function(t){t.DEBT_AND_CREDIT="DEBT_AND_CREDIT",t.INVESTING="INVESTING",t.OTHER="OTHER",t.PLANNING="PLANNING",t.SAVINGS="SAVINGS"}(ss||(ss={})),function(t){t.ACTIVE="active",t.DISCONNECTED="disconnected",t.INACTIVE_ERROR="inactive_error",t.INACTIVE_ORDERED="inactive_ordered",t.INACTIVE_UNVERIFIED="inactive_unverified",t.INACTIVE_VERIFIED="inactive_verified"}(us||(us={})),function(t){t.ANNUAL_BILLING="annual_billing",t.BUNDLE="bundle",t.COMPETITOR_SWITCH="competitor_switch",t.DUPLICATE="duplicate",t.EXPIRED_PROMO="expired_promo",t.MARKETPLACE_REVIEW="marketplace_review",t.NEW_SUBSCRIPTION="new_subscription",t.OTHER="other",t.PLAN_OPTIMIZATION="plan_optimization",t.PRODUCT_REVIEW="product_review",t.RETENTION_DEAL="retention_deal",t.TIER_DOWNGRADE="tier_downgrade",t.TRANSFER_REVIEW="transfer_review",t.VENDOR_SWITCH="vendor_switch",t.YEARLY_SUBSCRIPTION="yearly_subscription"}(cs||(cs={})),function(t){t.CHARITABLE_CONTRIBUTIONS="charitable_contributions",t.CHILD_SUPPORT="child_support",t.CITY_INCOME_TAX="city_income_tax",t.COMPANY_REIMBURSEMENT="company_reimbursement",t.CREDITOR_GARNISHMENT="creditor_garnishment",t.CUSTOM="custom",t.DENTAL_INSURANCE="dental_insurance",t.DEPENDENT_CARE_FSA="dependent_care_fsa",t.DISABILITY_INSURANCE="disability_insurance",t.ESPP="espp",t.FEDERAL_INCOME_TAX="federal_income_tax",t.GROUP_TERM_LIFE="group_term_life",t.HEALTHCARE_FSA="healthcare_fsa",t.HSA_PAYROLL="hsa_payroll",t.LIFE_INSURANCE="life_insurance",t.LOAN_REPAYMENT_401K="loan_repayment_401k",t.MANDATORY_PUBLIC_RETIREMENT="mandatory_public_retirement",t.MEDICAL_INSURANCE="medical_insurance",t.MEDICARE_TAX="medicare_tax",t.PLAN_403B="plan_403b",t.PLAN_457B="plan_457b",t.ROTH_401K="roth_401k",t.SALARY_ADVANCE_REPAYMENT="salary_advance_repayment",t.SOCIAL_SECURITY_TAX="social_security_tax",t.STATE_DISABILITY_INSURANCE="state_disability_insurance",t.STATE_INCOME_TAX="state_income_tax",t.STUDENT_LOAN_GARNISHMENT="student_loan_garnishment",t.TAX_LEVY="tax_levy",t.TRADITIONAL_401K="traditional_401k",t.TRANSIT_PASS="transit_pass",t.UNION_DUES="union_dues",t.VISION_INSURANCE="vision_insurance"}(ls||(ls={})),function(t){t.CARD="card",t.LINK="link"}(fs||(fs={})),function(t){t.LIFETIME="LIFETIME",t.MONTHLY="MONTHLY",t.OTHER="OTHER",t.YEARLY="YEARLY"}(hs||(hs={})),function(t){t.ADP="adp",t.BAMBOOHR="bamboohr",t.CLOUDPAY="cloudpay",t.DEEL="deel",t.GUSTO="gusto",t.HOMEBASE="homebase",t.INSPERITY="insperity",t.JUSTWORKS="justworks",t.ONPAY="onpay",t.OTHER="other",t.PAPAYA_GLOBAL="papaya_global",t.PATRIOT="patriot",t.PAYCHEX="paychex",t.PAYCOM="paycom",t.PAYCOR="paycor",t.PAYLOCITY="paylocity",t.QUICKBOOKS="quickbooks",t.REMOTE="remote",t.RIPPLING="rippling",t.SQUARE="square",t.SUREPAYROLL="surepayroll",t.TRINET="trinet",t.UKG="ukg",t.VELOCITY_GLOBAL="velocity_global",t.WAVE="wave",t.ZENEFITS="zenef
1its"}(ds||(ds={})),function(t){t.ANDROID="android",t.IOS="ios",t.WEB="web"}(gs||(gs={})),function(t){t.APPROVED="approved",t.PENDING_REVIEW="pending_review",t.REJECTED="rejected"}(ms||(ms={})),function(t){t.AGGREGATED_CATEGORY="AGGREGATED_CATEGORY",t.BROAD_ASSET_CLASS="BROAD_ASSET_CLASS",t.CATEGORY_GROUP="CATEGORY_GROUP",t.EXCHANGE_CODE="EXCHANGE_CODE",t.GLOBAL_CATEGORY="GLOBAL_CATEGORY",t.INDEX_STRATEGY="INDEX_STRATEGY",t.LEGAL_STRUCTURE="LEGAL_STRUCTURE",t.MORNINGSTAR_CATEGORY="MORNINGSTAR_CATEGORY",t.PROSPECTUS_OBJECTIVE="PROSPECTUS_OBJECTIVE",t.SECURITY_TYPE="SECURITY_TYPE"}(_s||(_s={})),function(t){t.CREATED_NEW="created_new",t.JOINED_EXISTING="joined_existing",t.NO_IMPACT="no_impact"}(ps||(ps={})),function(t){t.EXPENSE="expense",t.INCOME="income",t.TRANSFER="transfer"}(ys||(ys={})),function(t){t.BATCH="batch",t.INCREMENTAL="incremental"}(vs||(vs={})),function(t){t.DETECTED="detected",t.ERROR="error",t.MERCHANT_NOT_FOUND="merchant_not_found",t.NO_GROUPS="no_groups",t.TIMED_OUT="timed_out"}(Es||(Es={})),function(t){t.CUSTOM="CUSTOM",t.FMV_409A="FMV_409A",t.PREFERRED_PRICE="PREFERRED_PRICE",t.PUBLIC="PUBLIC"}(Ts||(Ts={})),function(t){t.APPLE_CARD="apple_card",t.ATTACHMENTS="attachments",t.COINBASE="coinbase",t.CUSTOM_CATEGORIES="custom_categories",t.CUSTOMER_SUPPORT="customer_support",t.DOWNLOAD_CSV="download_csv",t.INVESTMENTS="investments",t.ROLLOVERS="rollovers",t.TAGS="tags",t.WEEKLY_REVIEW="weekly_review",t.ZILLOW="zillow"}(Is||(Is={})),function(t){t.ACCOUNT_PURPOSE="account_purpose",t.CURRENCY="currency",t.DEFAULT="default",t.EMPLOYER_MATCH="employer_match",t.HOUSEHOLD_ROSTER="household_roster",t.MORTGAGE_RATE="mortgage_rate",t.PERCENTAGE="percentage",t.ZIP_CODE="zip_code"}(Os||(Os={})),function(t){t.HOUSEHOLD="household",t.USER="user"}(Ns||(Ns={})),function(t){t.LIST="list",t.MULTI_SELECT="multi_select",t.NUMBER="number",t.PER_USER="per_user",t.SINGLE_SELECT="single_select",t.STRUCTURED="structured",t.TEXT="text"}(Ss||(Ss={})),function(t){t.MONARCH_METHOD="monarch_method",t.TODAY_ONBOARDING="today_onboarding"}(As||(As={})),function(t){t.INTRO="INTRO",t.NET_WORTH="NET_WORTH",t.OUTRO="OUTRO",t.RECURRING="RECURRING",t.SPENDING="SPENDING"}(ws||(ws={})),function(t){t.SLIGHTLY_NEGATIVE="SLIGHTLY_NEGATIVE",t.SLIGHTLY_POSITIVE="SLIGHTLY_POSITIVE",t.VERY_NEGATIVE="VERY_NEGATIVE",t.VERY_POSITIVE="VERY_POSITIVE"}(Rs||(Rs={})),function(t){t.ACTIVE="ACTIVE",t.REMOVABLE="REMOVABLE",t.STALE="STALE",t.STOPPED="STOPPED"}(bs||(bs={})),function(t){t.ACCOUNT_HIDDEN="account_hidden",t.ALREADY_GROUPED="already_grouped",t.HIDDEN="hidden",t.OUTSIDE_LOOKBACK="outside_lookback",t.PENDING="pending",t.SPLIT_PARENT="split_parent"}(Ds||(Ds={})),function(t){t.ENDED="ended",t.OVERDUE="overdue",t.PAID="paid",t.POSSIBLY_INACTIVE="possibly_inactive",t.UPCOMING="upcoming"}(Cs||(Cs={})),function(t){t.GA_LAUNCH="ga_launch",t.OPEN_BETA="open_beta",t.SUNSET_NOTICE="sunset_notice"}(Ls||(Ls={})),function(t){t.V1="v1",t.V2="v2"}(Ms||(Ms={})),function(t){t.V2_DETECTED_USER_IGNORED="v2_detected_user_ignored",t.V2_DETECTED_V1_APPROVED_MERCHANT="v2_detected_v1_approved_merchant",t.V2_DETECTED_V1_DISMISSED_MERCHANT="v2_detected_v1_dismissed_merchant",t.V2_DETECTED_V1_DISMISSED_STREAM="v2_detected_v1_dismissed_stream",t.V2_DETECTED_V1_NO_STREAMS="v2_detected_v1_no_streams",t.V2_DETECTED_V1_PENDING_MERCHANT="v2_detected_v1_pending_merchant",t.V2_NOT_DETECTED_V1_APPROVED_MERCHANT="v2_not_detected_v1_approved_merchant",t.V2_NOT_DETECTED_V1_DISMISSED_MERCHANT="v2_not_detected_v1_dismissed_merchant",t.V2_NOT_DETECTED_V1_DISMISSED_STREAM="v2_not_detected_v1_dismissed_stream",t.V2_NOT_DETECTED_V1_PENDING_MERCHANT="v2_not_detected_v1_pending_merchant",t.V2_NOT_DETECTED_V1_STREAM_NO_TRANSACTIONS="v2_not_detected_v1_stream_no_transactions"}(Ps||(Ps={})),function(t){t.APPROVED="approved",t.AUTOMATIC_APPROVED="automatic_approved",t.IGNORED="ignored",t.PENDING="pending"}(xs||(xs={})),function(t){t.CREDIT_CARD="credit_card",t.EXPENSE="expense",t.INCOME="income",t.TRANSFER="transfer"}(Us||(Us={})),function(t){t.JUNE_2024_DISCOUNT="june_2024_discount",t.REFERRAL_PAYOUT_EXPERIMENT_15="referral_payout_experiment_15",t.REFERRAL_PAYOUT_EXPERIMENT_50="referral_payout_experiment_50",t.REFERRALS_GIFT_CARD_DEFAULT="referrals_gift_card_default",t.REFERRALS_V2_DEFAULT="referrals_v2_default"}(ks||(ks={})),function(t){t.V1_SUBSCRIPTION_CREDIT="v1_subscription_credit",t.V2_GIFT_CARD="v2_gift_card"}
1(Ys||(Ys={})),function(t){t.FAMILY_MEMBER="family_member",t.OTHER="other",t.PARTNER="partner"}(Fs||(Fs={})),function(t){t.CASH_FLOW="cash_flow",t.INCOME="income",t.SPENDING="spending"}(Gs||(Gs={})),function(t){t.BUDGET_VARIABILITY="budget_variability",t.BUSINESS_ENTITY="business_entity",t.CATEGORY="category",t.CATEGORY_GROUP="category_group",t.MERCHANT="merchant",t.OWNER="owner"}(Vs||(Vs={})),function(t){t.DAY="day",t.MONTH="month",t.QUARTER="quarter",t.WEEK="week",t.YEAR="year"}(Hs||(Hs={})),function(t){t.AVG="avg",t.AVG_EXPENSE="avg_expense",t.AVG_INCOME="avg_income",t.COUNT="count",t.FIRST="first",t.LAST="last",t.MAX="max",t.MAX_EXPENSE="max_expense",t.MAX_INCOME="max_income",t.MIN="min",t.SUM="sum",t.SUM_EXPENSE="sum_expense",t.SUM_INCOME="sum_income",t.SUM_TRANSFER="sum_transfer"}(Bs||(Bs={})),function(t){t.RECEIPT_DATE="receipt_date",t.UPLOAD_DATE="upload_date"}(Ws||(Ws={})),function(t){t.ASSOCIATE_ITEMS_TO_TRANSACTIONS="associate_items_to_transactions",t.CATEGORIZE_LINE_ITEMS="categorize_line_items",t.PARSE_PAYLOADS="parse_payloads",t.RECONCILE_TRANSACTIONS="reconcile_transactions",t.UPDATE_MONARCH_TRANSACTIONS="update_monarch_transactions",t.UPLOAD_PAYLOADS="upload_payloads"}(js||(js={})),function(t){t.COMPLETED="completed",t.FAILED="failed",t.IN_PROGRESS="in_progress",t.PENDING="pending",t.SKIPPED="skipped"}($s||($s={})),function(t){t.COMPLETED="completed",t.FAILED="failed",t.IN_PROGRESS="in_progress",t.PENDING="pending",t.PENDING_MATCHES="pending_matches"}(zs||(zs={})),function(t){t.AMAZON="amazon",t.EMAIL_IMPORT="email_import",t.TARGET="target",t.USER_IMPORT="user_import"}(Zs||(Zs={})),function(t){t.PAYMENT="payment",t.REFUND="refund",t.TIP="tip"}(qs||(qs={})),function(t){t.COMPLETED="completed",t.FAILED="failed",t.PENDING="pending",t.RUNNING="running"}(Ks||(Ks={})),function(t){t.MANUAL="manual",t.NEW_ACCOUNTS="new_accounts",t.NEW_MEMBER="new_member",t.NEW_SUBSCRIPTION="new_subscription",t.SCHEDULED="scheduled"}(Xs||(Xs={})),function(t){t.COMPLETED="completed",t.FAILED="failed",t.IN_PROGRESS="in_progress",t.PENDING="pending"}(Js||(Js={})),function(t){t.EXISTING_GOAL="existing_goal",t.NEW_GOAL="new_goal"}(Qs||(Qs={})),function(t){t.LINE_1_GROSS_RECEIPTS="line_1_gross_receipts",t.LINE_2_RETURNS_ALLOWANCES="line_2_returns_allowances",t.LINE_3_NET_PART_I="line_3_net_part_i",t.LINE_4_COST_OF_GOODS="line_4_cost_of_goods",t.LINE_5_GROSS_PROFIT="line_5_gross_profit",t.LINE_6_OTHER_INCOME="line_6_other_income",t.LINE_8_ADVERTISING="line_8_advertising",t.LINE_9_CAR_TRUCK="line_9_car_truck",t.LINE_10_COMMISSIONS_FEES="line_10_commissions_fees",t.LINE_11_CONTRACT_LABOR="line_11_contract_labor",t.LINE_12_DEPLETION="line_12_depletion",t.LINE_13_DEPRECIATION="line_13_depreciation",t.LINE_14_EMPLOYEE_BENEFITS="line_14_employee_benefits",t.LINE_15_INSURANCE="line_15_insurance",t.LINE_16A_MORTGAGE_INTEREST="line_16a_mortgage_interest",t.LINE_16B_OTHER_INTEREST="line_16b_other_interest",t.LINE_17_LEGAL_PROFESSIONAL="line_17_legal_professional",t.LINE_18_OFFICE_EXPENSE="line_18_office_expense",t.LINE_19_PENSION_PROFIT_SHARING="line_19_pension_profit_sharing",t.LINE_20A_RENT_VEHICLES_EQUIPMENT="line_20a_rent_vehicles_equipment",t.LINE_20B_RENT_OTHER_PROPERTY="line_20b_rent_other_property",t.LINE_21_REPAIRS_MAINTENANCE="line_21_repairs_maintenance",t.LINE_22_SUPPLIES="line_22_supplies",t.LINE_23_TAXES_LICENSES="line_23_taxes_licenses",t.LINE_24A_TRAVEL="line_24a_travel",t.LINE_24B_MEALS="line_24b_meals",t.LINE_25_UTILITIES="line_25_utilities",t.LINE_26_WAGES="line_26_wages",t.LINE_27A_ENERGY_EFFICIENT="line_27a_energy_efficient",t.LINE_27B_OTHER_EXPENSES="line_27b_other_expenses"}(tu||(tu={})),function(t){t.ACCOUNT="account",t.CATEGORY="category",t.GOAL="goal",t.MERCHANT="merchant",t.REPORT_CONFIGURATION="report_configuration",t.SAVINGS_GOAL="savings_goal"}(eu||(eu={})),function(t){t.BILL_SYNC="bill_sync",t.CREDIT_SCORES="credit_scores"}(nu||(nu={})),function(t){t.ABSOLUTE="ABSOLUTE",t.PERCENTAGE="PERCENTAGE"}(ru||(ru={})),function(t){t.COMPLETED="completed",t.IN_PROGRESS="in_progress",t.NOT_STARTED="not_started"}(iu||(iu={})),function(t){t.ACTIVE="active",t.EXPIRED="expired",t.IN_ACCOUNT_HOLD="in_account_hold",t.IN_GRACE_PERIOD="in_grace_peri
1od"}(au||(au={})),function(t){t.FOREVER="forever",t.ONCE="once",t.REPEATING="repeating"}(ou||(ou={})),function(t){t.APP_STORE="APP_STORE",t.PLAY_STORE="PLAY_STORE",t.PROMOTIONAL="PROMOTIONAL",t.STRIPE="STRIPE",t.TEST_STORE="TEST_STORE"}(su||(su={})),function(t){t.LITE="lite",t.PREMIUM="premium",t.PREMIUM_PLUS="premium_plus",t.PREMIUM_PLUS_TRIAL="premium_plus_trial"}(uu||(uu={})),function(t){t.PENDING="pending",t.REDEEMED="redeemed",t.REVOKED="revoked"}(cu||(cu={})),function(t){t.CANCEL="cancel",t.CONTACT_PROVIDER="contact_provider",t.DOWNGRADE="downgrade",t.MIGRATE_DATA="migrate_data",t.SUBSCRIBE="subscribe",t.SWITCH_BILLING="switch_billing",t.UPGRADE_PLAN="upgrade_plan"}(lu||(lu={})),function(t){t.ADVERTISING_PROMOTION="ADVERTISING_PROMOTION",t.BUSINESS_AUTO_EXPENSES="BUSINESS_AUTO_EXPENSES",t.BUSINESS_INCOME="BUSINESS_INCOME",t.BUSINESS_INSURANCE="BUSINESS_INSURANCE",t.BUSINESS_TRAVEL_MEALS="BUSINESS_TRAVEL_MEALS",t.BUSINESS_UTILITIES_COMMUNICATION="BUSINESS_UTILITIES_COMMUNICATION",t.EMPLOYEE_WAGES_CONTRACT_LABOR="EMPLOYEE_WAGES_CONTRACT_LABOR",t.OFFICE_RENT="OFFICE_RENT",t.OFFICE_SUPPLIES_EXPENSES="OFFICE_SUPPLIES_EXPENSES",t.POSTAGE_SHIPPING="POSTAGE_SHIPPING"}(fu||(fu={})),function(t){t.BUSINESS="BUSINESS"}(hu||(hu={})),function(t){t.HEAD_OF_HOUSEHOLD="head_of_household",t.MARRIED_FILING_JOINTLY="married_filing_jointly",t.MARRIED_FILING_SEPARATELY="married_filing_separately",t.QUALIFYING_SURVIVING_SPOUSE="qualifying_surviving_spouse",t.SINGLE="single"}(du||(du={})),function(t){t.SCHEDULE_C="schedule_c"}(gu||(gu={})),function(t){t.PRETAX="pretax",t.ROTH="roth"}(mu||(mu={})),function(t){t.DAY="day",t.MONTH="month",t.QUARTER="quarter",t.WEEK="week",t.YEAR="year"}(_u||(_u={})),function(t){t.ASSETS="assets",t.BANKS_CREDIT_CARDS="banks_credit_cards",t.INVESTMENTS_LOANS="investments_loans"}(pu||(pu={})),function(t){t.MOBILE="mobile",t.WEB="web"}(yu||(yu={})),function(t){t.AMOUNT="amount",t.DATE="date",t.INVERSE_AMOUNT="inverse_amount",t.INVERSE_DATE="inverse_date"}(vu||(vu={})),function(t){t.ALL_TRANSACTIONS="all_transactions",t.HIDDEN_TRANSACTIONS_ONLY="hidden_transactions_only",t.NON_HIDDEN_TRANSACTIONS_ONLY="non_hidden_transactions_only"}(Eu||(Eu={})),function(t){t.FREE_TRIAL="free_trial",t.GUEST_PASS="guest_pass",t.PREMIUM="premium",t.REFERRALS="referrals"}(Tu||(Tu={})),function(t){t.ASSISTANT="assistant",t.ASSISTANT_GENERIC="assistant_generic",t.ASSISTANT_SMART="assistant_smart",t.INSIGHT_DETAIL="insight_detail",t.INSIGHTS_ACCOUNTS="insights_accounts",t.INSIGHTS_BUDGET="insights_budget",t.INSIGHTS_GOALS="insights_goals",t.INSIGHTS_NET_WORTH="insights_net_worth",t.INSIGHTS_RECAP="insights_recap",t.INSIGHTS_RECURRING="insights_recurring",t.INSIGHTS_SPENDING="insights_spending",t.INSIGHTS_TRANSACTIONS="insights_transactions"}(Iu||(Iu={})),function(t){t.DARK="dark",t.LIGHT="light"}(Ou||(Ou={})),function(t){t.DARK="dark",t.LIGHT="light",t.SYSTEM="system"}(Nu||(Nu={})),function(t){t.INVESTMENT_NON_INVESTMENT="investment_non_investment",t.LIABILITY_TO_ASSET="liability_to_asset",t.MANUAL="manual"}(Su||(Su={})),function(t){t.MEMBER="MEMBER",t.OWNER="OWNER"}(Au||(Au={}));const wu="https://monarch-static-assets-us-east-2.s3.amazonaws.com/onboarding/quotes-experiment/v3",Ru={YEARLY_TAKE_HOME_INCOME_LABEL:"Yearly take-home income",YEARLY_TAKE_HOME_INCOME_HELPER_TEXT:"In today\u2019s dollars, the amount you earn after taxes and deductions like insurance and retirement contributions.",YEARLY_PAYCHECK_CONTRIBUTION_DESCRIPTION:"Your total annual contribution to this account from payroll deductions and/or employer matching in today\u2019s dollars. This amount will grow with inflation automatically.",DOLLAR_MODE_LABEL:"Show future values in",DOLLAR_MODE_OPTION_TODAYS:"Today\u2019s dollars",DOLLAR_MODE_OPTION_TODAYS_RECOMMENDED_SUFFIX:"(recommended)",DOLLAR_MODE_OPTION_FUTURE:"Future dollars",DOLLAR_MODE_HELPER_LEAD:"You always enter amounts in today\u2019s dollars\u2014this setting controls how Forecasting displays them.",DOLLAR_MODE_BULLET_TODAYS:'factors in inflation but displays numbers in current terms ("inflation-adjusted"), making amounts comparable over time.',DOLLAR_MODE_BULLET_FUTURE:"shows actual future dollar amounts. More realistic, but harder to compare values across time periods."};"".concat(wu,"/sankey-chart.png"),"".concat(wu,"/accounts.png"),"".concat(wu,"/pie-chart.png"),"".concat(wu,"/bar-chart.png"),"".concat(wu,"/dashboard.png"),Ra.CASH_FLOW,Ra.TRANSACTIONS,Ra.NET_WORTH,Ra.PLAN,Ra.GOALS,Ra.GETTING_STARTED,Ra.REVIEW,Ra.INVESTMENTS,Ra.ADVICE,Ra.RECURRING,Ra.CREDIT_SCORE,Ra.SAVINGS_GOALS,Ra.RECAP,Ra.BUSINESS_ENTITIES,Ra.FOUND_MONEY,"Give 50% off. Get $".concat(30,"."),"Sharing Monarch is a win-win. Gift them 50% off their first year and you'll receive a $".concat(30," gift card."),"Invite a friend, get $".concat(30),"Give 50%, Get $".concat(30),"You earn a $".concat(30," gift card"),"Answers from the Assistant may occasionally contain incorrect or inaccurate information. The Assistant is intended for informational purposes only and is not intended to provide personal financial advice. [Learn more](".concat(ba,")"),"[AI Assistant](".concat(ba,") can make mistakes and isn't for financial advice."),"Use of the Assistant may result in incorrect or inaccurate information. Please rate the responses and flag anything that is inaccurate or helpful. We'll use this anonymized feedback to improve. [Learn more](".concat(ba,")"),"Our AI Assistant respects your privacy and only accesses your financial data when you ask it questions. We use GPT-4 by OpenAI to generate responses by sending the relevant financial data to OpenAI when you ask questions. Your data is never used by OpenAI to train the language model. [Learn more](".concat(ba,")"),ws.INTRO,ws.NET_WORTH,ws.SPENDING,ws.RECURRING,ws.OUTRO,ws.INTRO,ws.OUTRO,ws.INTRO,ws.OUTRO,ws.INTRO,ws.NET_WORTH,ws.SPENDING,ws.RECURRING,ws.OUTRO,Wa.FIXED,Wa.NON_MONTHLY,Wa.FLEXIBLE;class bu extends at{getEffectiveIntervalYears(){return this.config.isHidden?1:Aa(this.config.intervalYears)}get startYear(){var t;return null!==(t=this.config.startYear)&&void 0!==t?t:this.settings.startYear}get frequency(){return this.config.frequency}get amount(){return this.config.amount}get endYear(){return this.config.endYear}get ownerId(){return this.config.ownerId}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}get incomeEffectLabel(){return this.config.isHidden?Ru.YEARLY_TAKE_HOME_INCOME_LABEL:"once"===this.config.frequency?"Income amount":"Yearly income amount"}getEffectDefinitions(){return[{id:"income",label:this.incomeEffectLabel,name:this.name,target:"income",computeAmount:t=>{let e=t.year;return this.resolveIncomeForYear(e)}}]}resolveIncomeForYear(t){return lt(this.config.amount,t,this.growthType,this.settings,this.startYear,this.growthRate)}isActiveInYear(t){return wa(t.year,this.config.frequency,this.startYear,this.getEffectiveIntervalYears())}getActiveYearRange(t){var e;if(void 0!==this.startYear)return"yearly"!==this.config.frequency?{start:this.startYear,end:this.startYear+1}:{start:this.startYear,end:null!==(e=this.config.endYear)&&void 0!==e?e:t}}}const Du=t=>{const e=t.filter((t=>"endOfPlan"===t.config.eventKind&&t.isIncluded)).map((t=>t.startYear)).filter((t=>void 0!==t));return e.length>0?Math.max(...e):null};class Cu extends at{takeHomeAmountForYear(t){return void 0===this.startYear||this.config.yearlyTakeHomeIncome<=0?0:lt(this.config.yearlyTakeHomeIncome,t,this.growthType,this.settings,this.startYear,this.growthRate)}signingBonusAmountForYear(t){const e=this.startYear;return void 0===e||this.config.signingBonus<=0?0:t===e?ot(this.config.signingBonus,e,this.settings):0}getEffectDefinitions(){var t;const e=[],n=null!==(t=this.config.incomeReductionTargets)&&void 0!==t?t:[];for(const i of n)i.reductionPercent<=0||e.push({id:"reduction-".concat(i.targetEventId),label:"Income reduction",target:"income",targetEventId:i.targetEventId,computeAmount:t=>{const e=this.findIncomeSourceModel(t.eventModels,i.targetEventId);if(!e)return 0;return-e.getDirectIncomeEffectsTotal(t)*Math.min(Math.max(i.reductionPercent,0),100)/100}});const r=this.startYear;return void 0!==r&&this.config.yearlyTakeHomeIncome>0&&e.push({id:"new-job-take-home",label:Ru.YEARLY_TAKE_HOME_INCOME_LABEL,target:"income",computeAmount:t=>{let e=t.year;return this.takeHomeAmountForYear(e)}}),void 0!==r&&this.config.signingBonus>0&&e.push({id:"signing-bonus",label:"Signing bonus",target:"income",computeAmount:t=>{let e=t.year;return this.signingBonusAmountForYear(e)}}),e}getDirectIncomeEffectsTotal(t){const e=this.getActiveYearRange(t.projectionEndYear,t.eventModels);return!e||t.year<e.start||t.year>=e.end?0:this.takeHomeAmountForYear(t.year)+this.signingBonusAmountForYear(t.year)}findIncomeSourceModel(t,e){return t.find((t=>ie(t.config.eventKind)&&t.id===e&&t.config.isIncluded))}getActiveYearRange(t,e){if(void 0===this.startYear)return;const n=e?Du(e):null;return{start:this.startYear,end:n?n+1:t}}get ownerId(){return this.config.ownerId}get yearlyTakeHomeIncome(){return this.config.yearlyTakeHomeIncome}get signingBonus(){return this.config.signingBonus}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}class Lu extends at{getEffectiveIntervalYears(){return Aa(this.config.intervalYears)}getEffectDefinitions(){return[{id:"expense",label:"once"===this.config.frequency?"Expense amount":"Yearly expense amount",name:this.name,target:"expense",computeAmount:t=>{let e=t.year;
1return this.calculateAmount(e)}}]}calculateAmount(t){return lt(this.config.amount,t,this.growthType,this.settings,this.startYear,this.growthRate)}isActiveInYear(t){return wa(t.year,this.config.frequency,this.startYear,this.getEffectiveIntervalYears())}getActiveYearRange(t){var e;if(void 0!==this.startYear)return"yearly"!==this.config.frequency?{start:this.startYear,end:this.startYear+1}:{start:this.startYear,end:null!==(e=this.config.endYear)&&void 0!==e?e:t}}get frequency(){return this.config.frequency}get amount(){return this.config.amount}get endYear(){return this.config.endYear}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}class Mu extends at{getEffectDefinitions(){var t;const e=[],n=null!==(t=this.config.incomeReductionTargets)&&void 0!==t?t:[];for(const r of n)r.reductionPercent<=0||e.push({id:"reduction-".concat(r.targetEventId),label:"Income reduction",target:"income",targetEventId:r.targetEventId,computeAmount:t=>{const e=this.findIncomeSourceModel(t.eventModels,r.targetEventId);if(!e)return 0;return-e.getDirectIncomeEffectsTotal(t)*Math.min(Math.max(r.reductionPercent,0),100)/100}});return 1!==this.expenseMultiplier&&e.push({id:"expense-adjustment",label:"Expense adjustment",target:"expense",computeAmount:t=>{const e=ae(t.eventModels);if(!e)return 0;const n=e.getEffects(t).reduce(((t,e)=>t+e.amount),0);return n<=0?0:n*(this.expenseMultiplier-1)}}),this.additionalYearlyExpenses>0&&e.push({id:"additional-expenses",label:"Additional yearly expenses",target:"expense",computeAmount:t=>{let e=t.year;return lt(this.additionalYearlyExpenses,e,this.growthType,this.settings,this.startYear,this.growthRate)}}),e}findIncomeSourceModel(t,e){return t.find((t=>ie(t.config.eventKind)&&t.id===e&&t.isIncluded))}getActiveYearRange(t,e){if(void 0===this.startYear)return;const n=e?Du(e):null;return{start:this.startYear,end:n?n+1:t}}get ownerId(){return this.config.ownerId}get expenseMultiplier(){return this.config.expenseMultiplier}get additionalYearlyExpenses(){return this.config.additionalYearlyExpenses}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}class Pu extends at{getEffectDefinitions(){return[{id:"social-security",label:"Yearly benefit",name:this.name,target:"income",computeAmount:t=>lt(12*this.monthlyBenefitAmount,t.year,this.growthType,this.settings,this.startYear,this.growthRate)}]}getActiveYearRange(t,e){var n;if(void 0===this.startYear)return;const r=this.ownerId&&e?null===(n=((t,e,n)=>t.find((t=>!!((t,e)=>{const n=t.config;return"endOfPlan"===t.config.eventKind&&n.ownerId===e})(t,e)&&(!0!==(null===n||void 0===n?void 0:n.includedOnly)||t.isIncluded))))(e,this.ownerId))||void 0===n?void 0:n.startYear:void 0,i=r?r+1:t;return{start:this.startYear,end:i}}get ownerId(){return this.config.ownerId}get monthlyBenefitAmount(){var t;return null!==(t=this.config.monthlyBenefitAmount)&&void 0!==t?t:0}get growthType(){var t;return null!==(t=this.config.growthType)&&void 0!==t?t:"inflation"}get growthRate(){var t;return null!==(t=this.config.growthRate)&&void 0!==t?t:void 0}}class xu extends at{getEffectDefinitions(){return[{id:"windfall",label:"Income amount",name:this.name,target:"income",computeAmount:t=>ot(this.config.amount,t.year,this.settings)}]}get amount(){return this.config.amount}}new Set(["orange","yellow","green","red","gray","blue","sky","lime","purple","pink","indigo","teal","brown"]);const Uu=(t,e)=>{var n,r;const i=null!==(n=t.startYear)&&void 0!==n?n:1/0,a=null!==(r=e.startYear)&&void 0!==r?r:1/0;return i===a?0:i-a},ku=Symbol.for("@ts-pattern/matcher"),Yu=Symbol.for("@ts-pattern/isVariadic"),Fu="@ts-pattern/anonymous-select-key",Gu=t=>Boolean(t&&"object"==typeof t),Vu=t=>t&&!!t[ku],Hu=(t,e,n)=>{if(Vu(t)){const r=t[ku]().match(e),i=r.matched,a=r.selections;return i&&a&&Object.keys(a).forEach((t=>n(t,a[t]))),i}if(Gu(t)){if(!Gu(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let r=[],i=[],a=[];for(const e of t.keys()){const n=t[e];Vu(n)&&n[Yu]?a.push(n):a.length?i.push(n):r.push(n)}
1if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<r.length+i.length)return!1;const t=e.slice(0,r.length),o=0===i.length?[]:e.slice(-i.length),s=e.slice(r.length,0===i.length?1/0:-i.length);return r.every(((e,r)=>Hu(e,t[r],n)))&&i.every(((t,e)=>Hu(t,o[e],n)))&&(0===a.length||Hu(a[0],s,n))}return t.length===e.length&&t.every(((t,r)=>Hu(t,e[r],n)))}return Reflect.ownKeys(t).every((r=>{const i=t[r];return(r in e||Vu(a=i)&&"optional"===a[ku]().matcherType)&&Hu(i,e[r],n);var a}))}return Object.is(e,t)},Bu=t=>{var e,n,r;return Gu(t)?Vu(t)?null!=(e=null==(n=(r=t[ku]()).getSelectionKeys)?void 0:n.call(r))?e:[]:Array.isArray(t)?Wu(t,Bu):Wu(Object.values(t),Bu):[]},Wu=(t,e)=>t.reduce(((t,n)=>t.concat(e(n))),[]);function ju(t){return Object.assign(t,{optional:()=>zu(t),and:e=>Xu(t,e),or:e=>Ju(t,e),select:e=>void 0===e?tc(t):tc(e,t)})}function $u(t){return Object.assign((t=>Object.assign(t,{[Symbol.iterator](){let e=0;const n=[{value:Object.assign(t,{[Yu]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var t;return null!=(t=n[e++])?t:n.at(-1)}}}}))(t),{optional:()=>$u(zu(t)),select:e=>$u(void 0===e?tc(t):tc(e,t))})}function zu(t){return ju({[ku]:()=>({match:e=>{let n={};const r=(t,e)=>{n[t]=e};return void 0===e?(Bu(t).forEach((t=>r(t,void 0))),{matched:!0,selections:n}):{matched:Hu(t,e,r),selections:n}},getSelectionKeys:()=>Bu(t),matcherType:"optional"})})}const Zu=(t,e)=>{for(const n of t)if(!e(n))return!1;return!0},qu=(t,e)=>{for(const r of t.entries()){var n=D(r,2);const t=n[0];if(!e(n[1],t))return!1}return!0},Ku=(t,e)=>{const n=Reflect.ownKeys(t);for(const r of n)if(!e(r,t[r]))return!1;return!0};function Xu(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ju({[ku]:()=>({match:t=>{let n={};const r=(t,e)=>{n[t]=e};return{matched:e.every((e=>Hu(e,t,r))),selections:n}},getSelectionKeys:()=>Wu(e,Bu),matcherType:"and"})})}function Ju(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ju({[ku]:()=>({match:t=>{let n={};const r=(t,e)=>{n[t]=e};return Wu(e,Bu).forEach((t=>r(t,void 0))),{matched:e.some((e=>Hu(e,t,r))),selections:n}},getSelectionKeys:()=>Wu(e,Bu),matcherType:"or"})})}function Qu(t){return{[ku]:()=>({match:e=>({matched:Boolean(t(e))})})}}function tc(){const t="string"==typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,e=2===arguments.length?arguments.length<=1?void 0:arguments[1]:"string"==typeof(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0];return ju({[ku]:()=>({match:n=>{let r={[null!=t?t:Fu]:n};return{matched:void 0===e||Hu(e,n,((t,e)=>{r[t]=e})),selections:r}},getSelectionKeys:()=>[null!=t?t:Fu].concat(void 0===e?[]:Bu(e))})})}function ec(t){return!0}function nc(t){return"number"==typeof t}function rc(t){return"string"==typeof t}function ic(t){return"bigint"==typeof t}const ac=ju(Qu(ec)),oc=ju(Qu(ec)),sc=ac,uc=t=>Object.assign(ju(t),{startsWith:e=>{return uc(Xu(t,(n=e,Qu((t=>rc(t)&&t.startsWith(n))))));var n},endsWith:e=>{return uc(Xu(t,(n=e,Qu((t=>rc(t)&&t.endsWith(n))))));var n},minLength:e=>uc(Xu(t,(t=>Qu((e=>rc(e)&&e.length>=t)))(e))),length:e=>uc(Xu(t,(t=>Qu((e=>rc(e)&&e.length===t)))(e))),maxLength:e=>uc(Xu(t,(t=>Qu((e=>rc(e)&&e.length<=t)))(e))),includes:e=>{return uc(Xu(t,(n=e,Qu((t=>rc(t)&&t.includes(n))))));var n},regex:e=>{return uc(Xu(t,(n=e,Qu((t=>rc(t)&&Boolean(t.match(n)))))));var n}}),cc=uc(Qu(rc)),lc=t=>Object.assign(ju(t),{between:(e,n)=>lc(Xu(t,((t,e)=>Qu((n=>nc(n)&&t<=n&&e>=n)))(e,n))),lt:e=>lc(Xu(t,(t=>Qu((e=>nc(e)&&e<t)))(e))),gt:e=>lc(Xu(t,(t=>Qu((e=>nc(e)&&e>t)))(e))),lte:e=>lc(Xu(t,(t=>Qu((e=>nc(e)&&e<=t)))(e))),gte:e=>lc(Xu(t,(t=>Qu((e=>nc(e)&&e>=t)))(e))),int:()=>lc(Xu(t,Qu((t=>nc(t)&&Number.isInteger(t))))),finite:()=>lc(Xu(t,Qu((t=>nc(t)&&Number.isFinite(t))))),positive:()=>lc(Xu(t,Qu((t=>nc(t)&&t>0)))),negative:()=>lc(Xu(t,Qu((t=>nc(t)&&t<0))))}),fc=lc(Qu(nc)),hc=t=>Object.assign(ju(t),{between:(e,n)=>hc(Xu(t,((t,e)=>Qu((n=>ic(n)&&t<=n&&e>=n)))(e,n))),lt:e=>hc(Xu(t,(t=>Qu((e=>ic(e)&&e<t)))(e))),gt:e=>hc(Xu(t,(t=>Qu((e=>ic(e)&&e>t)))(e))),lte:e=>hc(Xu(t,(t=>Qu((e=>ic(e)&&e<=t)))(e))),gte:e=>hc(Xu(t,(t=>Qu((e=>ic(e)&&e>=t)))(e))),positive:()=>hc(Xu(t,Qu((t=>ic(t)&&t>0)))),negative:()=>hc(Xu(t,Qu((t=>ic(t)&&t<0))))}),dc=hc(Qu(ic)),gc=ju(Qu((function(t){return"boolean"==typeof t}))),mc=ju(Qu((function(t){return"symbol"==typeof t}))),_c=ju(Qu((function(t){return null==t}))),pc=ju(Qu((function(t){return null!=t})));var yc={__proto__:null,matcher:ku,optional:zu,array:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return $u({[ku]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(0===e.length)return{matched:!0};const n=e[0];let r={};
1if(0===t.length)return Bu(n).forEach((t=>{r[t]=[]})),{matched:!0,selections:r};const i=(t,e)=>{r[t]=(r[t]||[]).concat([e])};return{matched:t.every((t=>Hu(n,t,i))),selections:r}},getSelectionKeys:()=>0===e.length?[]:Bu(e[0])})})},set:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ju({[ku]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(0===t.size)return{matched:!0,selections:n};if(0===e.length)return{matched:!0};const r=(t,e)=>{n[t]=(n[t]||[]).concat([e])},i=e[0];return{matched:Zu(t,(t=>Hu(i,t,r))),selections:n}},getSelectionKeys:()=>0===e.length?[]:Bu(e[0])})})},map:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ju({[ku]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(0===t.size)return{matched:!0,selections:n};const r=(t,e)=>{n[t]=(n[t]||[]).concat([e])};if(0===e.length)return{matched:!0};var i;if(1===e.length)throw new Error("`P.map` wasn't given enough arguments. Expected (key, value), received ".concat(null==(i=e[0])?void 0:i.toString()));const a=e[0],o=e[1];return{matched:qu(t,((t,e)=>{const n=Hu(a,e,r),i=Hu(o,t,r);return n&&i})),selections:n}},getSelectionKeys:()=>0===e.length?[]:[...Bu(e[0]),...Bu(e[1])]})})},record:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ju({[ku]:()=>({match:t=>{if(null===t||"object"!=typeof t||Array.isArray(t))return{matched:!1};var n;if(0===e.length)throw new Error("`P.record` wasn't given enough arguments. Expected (value) or (key, value), received ".concat(null==(n=e[0])?void 0:n.toString()));let r={};const i=(t,e)=>{r[t]=(r[t]||[]).concat([e])},a=D(1===e.length?[cc,e[0]]:e,2),o=a[0],s=a[1];return{matched:Ku(t,((t,e)=>{const n="string"!=typeof t||Number.isNaN(Number(t))?null:Number(t),r=null!==n&&Hu(o,n,i),a=Hu(o,t,i),u=Hu(s,e,i);return(a||r)&&u})),selections:r}},getSelectionKeys:()=>0===e.length?[]:[...Bu(e[0]),...Bu(e[1])]})})},intersection:Xu,union:Ju,not:function(t){return ju({[ku]:()=>({match:e=>({matched:!Hu(t,e,(()=>{}))}),getSelectionKeys:()=>[],matcherType:"not"})})},when:Qu,select:tc,any:ac,unknown:oc,_:sc,string:cc,number:fc,bigint:dc,boolean:gc,symbol:mc,nullish:_c,nonNullable:pc,instanceOf:function(t){return ju(Qu(function(t){return e=>e instanceof t}(t)))},shape:function(t){return ju(Qu(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){const t=e[0];return e=>Hu(t,e,(()=>{}))}if(2===e.length){const t=e[0],n=e[1];return Hu(t,n,(()=>{}))}throw new Error("isMatching wasn't given the right number of arguments: expected 1 or 2, received ".concat(e.length,"."))}(t)))}};class vc extends Error{constructor(t){let e;try{e=JSON.stringify(t)}catch(me){e=t}super("Pattern matching error: no pattern matches value ".concat(e)),this.input=void 0,this.input=t}}const Ec={matched:!1,value:void 0};function Tc(t){return new Ic(t,Ec)}class Ic{constructor(t,e){this.input=void 0,this.state=void 0,this.input=t,this.state=e}with(){if(this.state.matched)return this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e[e.length-1],i=[e[0]];let a;3===e.length&&"function"==typeof e[1]?a=e[1]:e.length>2&&i.push(...e.slice(1,e.length-1));let o=!1,s={};const u=(t,e)=>{o=!0,s[t]=e},c=!i.some((t=>Hu(t,this.input,u)))||a&&!Boolean(a(this.input))?Ec:{matched:!0,value:r(o?Fu in s?s[Fu]:s:this.input,this.input)};return new Ic(this.input,c)}when(t,e){if(this.state.matched)return this;const n=Boolean(t(this.input));return new Ic(this.input,n?{matched:!0,value:e(this.input,this.input)}:Ec)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oc;return this.state.matched?this.state.value:t(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function Oc(t){throw new vc(t)}const Nc={st_401k:{penaltyRate:10,penaltyFreeAge:59.5},st_403b:{penaltyRate:10,penaltyFreeAge:59.5},st_457b:{penaltyRate:10,penaltyFreeAge:59.5},roth_401k:{penaltyRate:10,penaltyFreeAge:59.5},ira:{penaltyRate:10,penaltyFreeAge:59.5},roth:{penaltyRate:10,penaltyFreeAge:59.5},sep_ira:{penaltyRate:10,penaltyFreeAge:59.5},simple_ira:{penaltyRate:10,penaltyFreeAge:59.5},health_savings_account:{penaltyRate:20,penaltyFreeAge:65}},Sc=t=>{if(t)return Nc[t]},Ac=(t,e)=>{const n=Ea.fromISO(t,{zone:"utc"});if(!n.isValid)return;const r=Math.floor(e),i=Math.round(12*(e-r));return n.plus({years:r,months:i})},wc=(t,e)=>t.ownerId?t.ownerId:1===e.length?e[0]:void 0,Rc=(t,e,n)=>{var r;const i=wc(t,e);if(void 0!==i)return null===(r=n.find((t=>t.userId===i)))||void 0===r?void 0:r.birthday},bc=t=>void 0!==Sc(t),Dc=Array.from({length:16},((t,e)=>55+e)).flatMap((t=>59===t?[59,59.5]:[t])),Cc=(t,e,n)=>Math.max(e,Math.min(n,t)),Lc=t=>{const e=Math.floor(t),n=t-e;return Math.abs(n-.5)<1e-9?"".concat(e,"\xbd"):String(t)},Mc=(Dc.map((t=>({value:String(t),label:Lc(t)}))),t=>{let e=t.birthday,n=t.penaltyFreeAge,r=t.fallbackYear,i=t.maxYear;if(void 0!==e&&void 0!==n){const t=((t,e)=>{var n;return null===(n=Ac(t,e))||void 0===n?void 0:n.year}
1)(e,n);if(void 0!==t)return Cc(t,r,i)}return r}),Pc=t=>{let e=t.account,n=t.settings,r=t.householdUserIds;const i=Rc(e,r,n.participants),a=(t=>{var e,n;return null!==(e=t.penaltyFreeAge)&&void 0!==e?e:null===(n=Sc(t.accountType.subtype))||void 0===n?void 0:n.penaltyFreeAge})(e);if(void 0!==i&&void 0!==a)return Mc({birthday:i,penaltyFreeAge:a,fallbackYear:n.startYear,maxYear:n.startYear+n.projectionYears})},xc=t=>{const e=t.account;var n;return void 0!==e.withdrawalTiming?{timing:e.withdrawalTiming,startingYear:e.withdrawalTiming===Mo.STARTING_YEAR?null!==(n=e.withdrawalStartingYear)&&void 0!==n?n:Pc(t):void 0}:bc(e.accountType.subtype)?{timing:Mo.STARTING_YEAR,startingYear:Pc(t)}:{timing:Mo.ALWAYS}},Uc=t=>{let e=t.account,n=t.settings,r=t.householdUserIds;const i=bc(e.accountType.subtype);if(!i)return{canCalculate:!0,alertKind:void 0};const a=xc({account:e,settings:n,householdUserIds:r}).timing;if(a===Mo.NEVER)return{canCalculate:!0,alertKind:void 0};const o=Rc(e,r,n.participants),s=(t=>{let e=t.isPenaltyEligible,n=t.timing,r=t.ownerId,i=t.householdUserIds,a=t.ownerBirthday;if(!e||n===Mo.NEVER)return;return wc({ownerId:r},i)?a?void 0:"missing-birthday":i.length>1?"shared-ownership":void 0})({isPenaltyEligible:i,timing:a,ownerId:e.ownerId,householdUserIds:r,ownerBirthday:o});return{canCalculate:void 0!==o,alertKind:s}},kc=t=>Uc(t).canCalculate,Yc=((new Date).getFullYear(),["cash","taxable-investments","tax-deferred","tax-free-investments"]),Fc=(t,e,n)=>(t=>{let e=t.accountType,n=t.componentKind;return"pretax"===n?"tax-deferred":"roth"===n?"tax-free-investments":et(e)})({accountType:e(t),componentKind:null===n||void 0===n?void 0:n(t)}),Gc=(t,e,n)=>!Jt(t)&&Yc.includes(Fc(t,e,n)),Vc=(t,e,n,r,i,a)=>{const o=t.filter((t=>Gc(t,e,i))).sort(((t,n)=>((t,e,n,r)=>Yc.indexOf(Fc(t,n,r))-Yc.indexOf(Fc(e,n,r)))(t,n,e,i)));return((t,e,n)=>{if(null===e||void 0===e||!e.length)return t;const r=new Map(e.map(((t,e)=>[t,e]))),i=new Map(t.map(((t,e)=>[t.rowKey.serialized,e]))),a=t=>{var e,i;return null!==(e=null!==(i=r.get(t.rowKey.serialized))&&void 0!==i?i:n?r.get(n(t)):void 0)&&void 0!==e?e:1/0};return[...t].sort(((t,e)=>{var n,r;const o=a(t),s=a(e);return o!==s?o-s:(null!==(n=i.get(t.rowKey.serialized))&&void 0!==n?n:0)-(null!==(r=i.get(e.rowKey.serialized))&&void 0!==r?r:0)}))})(n?[n,...o]:o,r,a)},Hc=t=>{let e=t.account,n=t.year,r=t.settings,i=t.householdUserIds;return e.isIncluded()&&e.balance>0&&!Qt(e.config)&&kc({account:e.config,settings:r,householdUserIds:i})&&(t=>{let e=t.account,n=t.year,r=t.settings,i=t.householdUserIds;const a=xc({account:e.config,settings:r,householdUserIds:i}),o=a.timing,s=a.startingYear;return Tc(o).with(Mo.NEVER,(()=>!1)).with(Mo.STARTING_YEAR,(()=>void 0!==s&&n>=s)).with(Mo.ALWAYS,yc.nullish,(()=>!0)).exhaustive()})({account:e,year:n,settings:r,householdUserIds:i})},Bc=(t,e,n,r)=>{var i;const a=(t=>{var e,n;if(!t)return;const r=Sc(t.accountType.subtype);if(!r)return;const i=null!==(e=t.penaltyRate)&&void 0!==e?e:r.penaltyRate;return i<=0?void 0:{penaltyRate:i,penaltyFreeAge:null!==(n=t.penaltyFreeAge)&&void 0!==n?n:r.penaltyFreeAge}})(t.config);if(!a)return null;const o=wc({ownerId:t.ownerId},r);if(!o)return null;const s=null===(i=n.participants.find((t=>t.userId===o)))||void 0===i?void 0:i.birthday;if(!s)return null;const u=((t,e,n)=>{const r=Ac(e,n);if(!r)return 1;const i=Ea.utc(t,1,1),a=Ea.utc(t+1,1,1),o=r.startOf("day");if(o<=i)return 0;if(o>=a)return 1;const s=a.diff(i,"days").days;return o.diff(i,"days").days/s})(e,s,a.penaltyFreeAge);return u<=0?null:{fraction:u,penaltyRate:a.penaltyRate}},Wc=(t,e,n,r)=>{const i=t.balance,a=Bc(t,e,n,r);if(!a)return[{account:t,maxWithdrawalAmount:i,penaltyRate:0}];if(a.fraction>=1)return[{account:t,maxWithdrawalAmount:i,penaltyRate:a.penaltyRate}];const o=xc({account:t.config,settings:n,householdUserIds:r});if(o.timing===Mo.STARTING_YEAR&&o.startingYear===e)return[{account:t,maxWithdrawalAmount:i,penaltyRate:0}];return[{account:t,maxWithdrawalAmount:i*(1-a.fraction),penaltyRate:0},{account:t,maxWithdrawalAmount:i*a.fraction,penaltyRate:a.penaltyRate}]},jc=(t,e)=>{const n=t.config,r=n.yearlyPaycheckContribution,i=n.accountType,a=n.ownerId;if(!r||r<=0)return;const o="brokerage"===i.type?i.subtype:"";if(!J(o))return;const s=((t,e)=>{const n=e.filter((t=>t instanceof Mu&&t.isIncluded&&"number"===typeof t.startYear));if(0!==n.length){if(t){const e=n.find((e=>e.config.ownerId===t));if(e)return e.startYear}return Math.min(...n.map((t=>t.startYear)))}})(a,e);if(void 0!==s&&t.currentYear>=s)return;if(((t,e,n)=>{const r=n.filter((t=>t instanceof oe&&t.isIncluded&&"number"===typeof t.startYear)),i=e=>{const n=e.getActiveYearRange();return!!n&&t>=n.start&&t<n.end};return e?r.some((t=>t.config.ownerId===e&&i(t))):r.some(i)})(t.currentYear,a,e))return;const u=ot(r,t.currentYear,t.settings);t.balance=t.balance+u,t.recordContribution(u)},$c=t=>Math.abs(t)<.005,zc=(t,e)=>t/e,Zc={householdUserIds:[]};class qc{constructor(t,e,n){var r,i;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.settings=void 0,this.uncategorizedSavingsSettings=void 0,this.cumulativeCashFlow=void 0,this.accounts=void 0,this.accountsByForecastId=void 0,this.events=void 0,this.includedLiabilities=void 0,this.includedAssets=void 0,this.allIncludedAccounts=void 0,this.activeAccounts=void 0,this.uncategorizedSavingsAccount=null,this.unfundedExpensesAccount=null,this.customWithdrawalOrderIds=void 0,this.options=void 0,this.rateProvider=void 0;const o=a.customWithdrawalOrderIds,s=a.uncategorizedSavingsSettings,u=a.options,c=void 0===u?Zc:u,l=a.asOfDate,f=a.rateProvider;this.rateProvider=null!==f&&void 0!==f?f:w(t),this.options=c,this.settings=S(S({},t),{},{inflationRate:this.rateProvider.getInflationRate(t.startYear),cumulativeInflationFactor:this.rateProvider.variesInflationByYear?A(this.rateProvider,t.startYear):void 0}),this.uncategorizedSavingsSettings=s,this.cumulativeCashFlow=0,this.customWithdrawalOrderIds=o,this.accounts=e.flatMap((t=>it.createAll(t,this.settings,this.rateProvider))),this.accountsByForecastId=new Map(this.accounts.map((t=>[t.forecastAccountId,t]))),this.events=n.map((t=>((t,e)=>{switch(t.eventKind){case"income":return new bu(t,e);case"annualExpense":return new te(t,e);case"buyAHome":return new re(t,e);case"retirement":return new Mu(t,e);case"socialSecurity":return new Pu(t,e);case"careerBreak":return new oe(t,e);case"otherExpense":return new Lu(t,e);case"windfall":return new xu(t,e);case"haveAKid":return new Sa(t,e);case"endOfPlan":return new Na(t,e);case"newJob":return new Cu(t,e);default:throw new Error("Unknown eventKind: ".concat(t.eventKind))}})(t,this.settings)));const h=(null!==l&&void 0!==l?l:new Date).getMonth(),d=new Map;
1this.accounts.forEach((t=>{if(t.mixedComponentKind){var e;const n=null!==(e=d.get(t.forecastAccountId))&&void 0!==e?e:[];n.push(t),d.set(t.forecastAccountId,n)}})),this.accounts.forEach((t=>{if(t.config.isSynthetic&&t.config.sourceEventExternalId){const n=this.events.find((e=>e.config.id===t.config.sourceEventExternalId));var e;if(n)t.activeStartYear=null!==(e=n.config.startYear)&&void 0!==e?e:void 0}t.config.isSynthetic||t.config.isSystemAccount||!this.canProject(t.config)||(t.balance=t.mixedComponentKind?this.computeMixedStartingBalance(t,d.get(t.forecastAccountId),h):this.computeStartingBalance(t,h))})),this.includedLiabilities=this.accounts.filter((t=>t.isIncluded()&&t instanceof F&&this.canProject(t.config))),this.includedAssets=this.accounts.filter((t=>t.isIncluded()&&!(t instanceof F)&&this.canProject(t.config))),this.allIncludedAccounts=this.accounts.filter((t=>t.isIncluded())),this.activeAccounts=this.accounts.filter((t=>t.isIncluded()&&this.canProject(t.config))),this.uncategorizedSavingsAccount=null!==(r=this.accounts.find((t=>Kt(t.config))))&&void 0!==r?r:null,this.unfundedExpensesAccount=null!==(i=this.accounts.find((t=>Xt(t.config))))&&void 0!==i?i:null}canProject(t){var e;return(t=>{let e=t.account,n=t.settings,r=t.householdUserIds;return!Qt(e)&&kc({account:e,settings:n,householdUserIds:r})})({account:t,settings:this.settings,householdUserIds:null!==(e=this.options.householdUserIds)&&void 0!==e?e:[]})}computeStartingBalance(t,e){const n=t.config,r=t.getGrowthRate(this.settings.startYear),i=n.balance;if("liability"===n.accountType.group&&t instanceof F){if($c(i))return 0;const r=t.getInterestRate(),a=Y({plannedPayment:n.plannedPayment,minimumPayment:n.minimumPayment}),o=r/100/12;let s=i;for(let t=0;t<e;t+=1)s-=a,o>0&&(s/=1+o);return Math.min(0,s)}if("asset"===n.accountType.group){if(t.mixedComponentKind)throw new Error("Mixed Account legs must use computeMixedStartingBalance");return qc.backCalcAssetStartingBalance(i,this.assetYearlyContribution(t),r,e)}return i}assetYearlyContribution(t){var e,n,r,i,a,o,s;const u=t.config,c="brokerage"===u.accountType.type?u.accountType.subtype:"",l=null!==(e=null===(n=this.uncategorizedSavingsSettings)||void 0===n?void 0:n.splitUncategorizedSavings)&&void 0!==e&&e&&tt(u.accountType)&&!t.mixedComponentKind&&null!==(r=null===(i=(null!==(a=null===(o=this.uncategorizedSavingsSettings)||void 0===o?void 0:o.uncategorizedSavingsAllocation)&&void 0!==a?a:[]).find((t=>t.accountId===u.id&&"dollarAmount"===t.type)))||void 0===i?void 0:i.amount)&&void 0!==r?r:0;return(J(c)&&null!==(s=u.yearlyPaycheckContribution)&&void 0!==s?s:0)+l}static backCalcAssetStartingBalance(t,e,n,r){let i=t-e/12*r;const a=n/100;if(a){const t=1+a*(r/12);t&&(i/=t)}return Math.max(0,i)}computeMixedStartingBalance(t,e,n){const r=Ia(e.map((t=>t.config.balance))),i=Ia(e.map((t=>this.assetYearlyContribution(t)))),a=qc.backCalcAssetStartingBalance(r,i,t.getGrowthRate(this.settings.startYear),n);return $c(r)?a/e.length:a*(t.config.balance/r)}run(){var t;const e=[],n=this.buildEffectTable(),r=null!==(t=this.settings.cumulativeInflationFactor)&&void 0!==t?t:st(this.settings.startYear,this.settings.inflationRate);for(let i=0;i<=this.settings.projectionYears;i+=1){const t=this.settings.startYear+i,a=n.get(t),o=[];a&&a.forEach((t=>{o.push(...t)}));const s=this.sumEffects(o),u=s.totalIncome,c=s.totalExpenses,l=u-c;let f=l;this.includedLiabilities.forEach((e=>{e.resetYearTracking(t),f+=e.processYear()})),this.includedAssets.forEach((e=>{e.resetYearTracking(t),jc(e,this.events)})),f>0?this.handleSurplus(f,t):f<0&&this.handleDeficit(Math.abs(f),t),this.includedAssets.forEach((t=>{t.processYear()}));const h=c+(l-f),d=this.allIncludedAccounts.map((t=>t.toSnapshot())),g=Ia(d.map((t=>t.breakdown?Math.abs(t.breakdown.withdrawals):0))),m=u-h+g;this.cumulativeCashFlow=this.cumulativeCashFlow+m;let _=0;this.activeAccounts.forEach((t=>{_+=t.balance})),e.push({year:t,accounts:d,netWorth:_,totalIncome:u,totalExpenses:h,netWithdrawals:g,netCashFlow:m,cumulativeCashFlow:this.cumulativeCashFlow,cumulativeInflationFactor:r(t)})}return{snapshots:e,effectTable:n,annotations:this.buildAnnotations(e)}}buildAnnotations(t){const e=[];return this.accounts.filter((t=>t instanceof F&&t.isIncluded()&&!Jt(t)&&this.canProject(t.config))).forEac
1h((n=>{const r=L(n.forecastAccountId),i=t.findIndex((t=>{if(void 0!==n.activeStartYear&&t.year<n.activeStartYear)return!1;const e=P(t.accounts,r);return void 0!==e&&e.balance>=0}));if(-1===i)return;const a=t[i],o=t.slice(0,i+1).reduce(((t,e)=>{var n,i;const a=P(e.accounts,r),o=null!==(n=null===a||void 0===a||null===(i=a.breakdown)||void 0===i?void 0:i.payments)&&void 0!==n?n:0;return{totalPayments:t.totalPayments+o,totalPaymentsTodaysDollars:t.totalPaymentsTodaysDollars+zc(o,e.cumulativeInflationFactor)}}),{totalPayments:0,totalPaymentsTodaysDollars:0}),s=o.totalPayments,u=o.totalPaymentsTodaysDollars,c=n.getMonthlyPayment(),l=!1!==n.config.reduceExpensesForPaidOffDebt?12*c:0;e.push({id:"payoff-".concat(n.forecastAccountId),year:a.year,kind:"payoff",accountId:n.forecastAccountId,accountName:n.config.name,totalPayments:s,totalPaymentsTodaysDollars:u,yearlyExpenseReduction:l,yearlyExpenseReductionTodaysDollars:zc(l,a.cumulativeInflationFactor),metadata:n.config.metadata})})),e}buildEffectTable(){const t=new Map,e=this.events.filter((t=>t.isIncluded&&t.isPrecomputable)),n=this.settings.startYear+this.settings.projectionYears+1;for(let r=0;r<=this.settings.projectionYears;r+=1){const i=this.settings.startYear+r,a={year:i,projectionEndYear:n,accountModels:this.accounts,eventModels:this.events},o=new Map;e.forEach((t=>{const e=t.getEffects(a);e.length>0&&o.set(t.id,e)})),o.size>0&&(this.capReductionsPerSource(o),this.capExpenseReductions(o),t.set(i,o))}return t}capReductionsPerSource(t){const e=new Map;t.forEach(((t,n)=>{let r=0;t.forEach((t=>{"income"===t.target&&void 0===t.targetEventId&&(r+=t.amount)})),r>0&&e.set(n,r)}));const n=[...this.events].sort(Uu),r=new Map;n.forEach((e=>{const n=t.get(e.id);n&&n.forEach((t=>{if("income"===t.target&&void 0!==t.targetEventId&&t.amount<0){var e;const n=null!==(e=r.get(t.targetEventId))&&void 0!==e?e:[];n.push(t),r.set(t.targetEventId,n)}}))})),r.forEach(((t,n)=>{var r;let i=null!==(r=e.get(n))&&void 0!==r?r:0;t.forEach((t=>{const e=-t.amount,n=e<i?e:i;t.amount=0===n?0:-n,i-=n}))}))}capExpenseReductions(t){let e=0;t.forEach((t=>{t.forEach((t=>{"expense"===t.target&&t.amount>0&&(e+=t.amount)}))}));[...this.events].sort(Uu).forEach((n=>{const r=t.get(n.id);r&&r.forEach((t=>{if("expense"===t.target&&t.amount<0){const n=-t.amount,r=n<e?n:e;t.amount=0===r?0:-r,e-=r}}))}))}sumEffects(t){let e=0,n=0;return t.forEach((t=>{"income"===t.target?e+=t.amount:n+=t.amount})),{totalIncome:e,totalExpenses:n}}handleSurplus(t,e){var n,r,i,a;let o=t;if(this.unfundedExpensesAccount&&this.unfundedExpensesAccount.balance<0){const t=Math.abs(this.unfundedExpensesAccount.balance),e=t<o?t:o;this.unfundedExpensesAccount.balance=this.unfundedExpensesAccount.balance+e,this.unfundedExpensesAccount.recordPayment(e),o-=e}const s=null!==(n=null===(r=this.uncategorizedSavingsSettings)||void 0===r?void 0:r.splitUncategorizedSavings)&&void 0!==n&&n,u=null!==(i=null===(a=this.uncategorizedSavingsSettings)||void 0===a?void 0:a.uncategorizedSavingsAllocation)&&void 0!==i?i:[];if(o>0&&s&&u.length>0){const t=u.filter((t=>{const e=this.accountsByForecastId.get(t.accountId);return e&&!Kt(e.config)&&e.isIncluded()&&this.canProject(e.config)&&tt(e.config.accountType)})),n=(c=t,l=o,f={inflateDollarAmountsToYear:{year:e,settings:this.settings}},c.reduce(((t,e)=>{var n,r;if(t.remaining<=0)return S(S({},t),{},{allocations:S(S({},t.allocations),{},{[e.accountId]:null!==(r=t.allocations[e.accountId])&&void 0!==r?r:0})});const i=Tc(e).with({type:"percent"},(e=>t.remaining*(e.amount/100))).with({type:"dollarAmount"},(e=>{const n=null===f||void 0===f?void 0:f.inflateDollarAmountsToYear;if(void 0===n)return Math.min(e.amount,t.remaining);const r=ot(e.amount,n.year,n.settings);return Math.min(r,t.remaining)})).exhaustive();return{allocations:S(S({},t.allocations),{},{[e.accountId]:(null!==(n=t.allocations[e.accountId])&&void 0!==n?n:0)+i}),remaining:t.remaining-i}}),{allocations:{},remaining:Math.max(0,l)})),r=n.allocations,i=n.remaining;t.forEach((t=>{var e;const n=this.accountsByForecastId.get(t.accountId),i=null!==(e=r[t.accountId])&&void 0!==e?e:0;n&&i>0&&(n.balance=n.balance+i,n.recordDeposit(i))})),o=i}var c,l,f;o>0&&this.uncategorizedSavingsAccount&&(this.uncategorizedSavingsAccount.balance=this.uncategorizedSavingsAccount.balance+o,this.uncategorizedSavingsAccount.re
1cordDeposit(o))}handleDeficit(t,e){var n,r;let i=t;const a=((t,e,n,r)=>Vc(t,(t=>t.config.accountType),r.uncategorizedSavings,r.customWithdrawalOrderIds,(t=>t.mixedComponentKind),(t=>t.forecastAccountId)).filter((t=>Hc({account:t,year:e,settings:n,householdUserIds:r.householdUserIds}))).flatMap((t=>Wc(t,e,n,r.householdUserIds))))(this.accounts,e,this.settings,{householdUserIds:null!==(n=this.options.householdUserIds)&&void 0!==n?n:[],uncategorizedSavings:null!==(r=this.uncategorizedSavingsAccount)&&void 0!==r?r:void 0,customWithdrawalOrderIds:this.customWithdrawalOrderIds});a.forEach((t=>{var e,n;if(i<=0)return;const r=t.account,a=t.maxWithdrawalAmount,o=t.penaltyRate;if(r.balance<=0||a<=0)return;const s=(null!==(e=r.config.withdrawalTaxRate)&&void 0!==e?e:0)/100*((null!==(n=r.config.taxableWithdrawalPercent)&&void 0!==n?n:100)/100),u=o/100,c=((t,e,n)=>{const r=e+n;return r<1?t/(1-r):t})(i,s,u),l=Math.min(a,r.balance),f=Math.min(c,l);if(f<=0)return;const h=((t,e,n)=>{const r=t*e,i=t*n;return{net:t-r-i,tax:r,penalty:i}})(f,s,u),d=h.net,g=h.tax,m=h.penalty;r.balance=r.balance-f,r.recordWithdrawal(d,g,m),i-=d})),this.recordUnfundedExpenses(i)}recordUnfundedExpenses(t){t>0&&this.unfundedExpensesAccount&&(this.unfundedExpensesAccount.balance=this.unfundedExpensesAccount.balance-t,this.unfundedExpensesAccount.recordExpenses(t))}}const Kc=(t,e)=>{if(t.some((t=>!Number.isFinite(t))))throw new Error("".concat(e," contains a non-finite value"))},Xc=(1n<<64n)-1n,Jc=(t,e)=>(t=>{let e=t&Xc;return e=0xbf58476d1ce4e5b9n*(e^e>>30n)&Xc,e=0x94d049bb133111ebn*(e^e>>27n)&Xc,(e^e>>31n)&Xc})(t+11400714819323198485n+BigInt(Math.trunc(e))),Qc=(t,e)=>{let n=t;for(const r of e)n=Jc(n,r);return n},tl=t=>Number(t>>11n)/2**53,el=t=>{const e=Math.max(tl(Jc(t,0)),Number.MIN_VALUE),n=tl(Jc(t,1));return Math.sqrt(-2*Math.log(e))*Math.cos(2*Math.PI*n)},nl=1,rl=2,il=3,al=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=Qc(0n,e);return{unitInterval:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return tl(Qc(r,e))},standardNormal:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return el(Qc(r,e))}}},ol={market:1,realEstate:2,ownAccount:3},sl=(t,e)=>{const n=e/100/(1+t/100);return Math.sqrt(Math.log((1+Math.sqrt(1+4*n*n))/2))},ul=(t,e,n)=>{if(t<=-100)return t;const r=sl(t,e);return 100*(Math.exp(Math.log(1+t/100)+r*n)-1)},cl=(t,e)=>{let n=e.seed,r=e.inflationVolatility,i=void 0===r?2:r,a=e.marketInflationCorrelation,o=void 0===a?-.2:a,s=e.inflationPersistence,u=void 0===s?.5:s;const c=R(i),l=(f=u,Number.isFinite(f)?Math.min(Math.max(f,0),.95):0);var f;const h=al(nl,n),d=al(rl,n),g=new Map,m=(t,e)=>{const n="".concat(t,":").concat(e),r=g.get(n);if(void 0!==r)return r;const i=h.standardNormal(ol[t],e);return g.set(n,i),i},_=o/Math.sqrt(1-l**2),p=t=>{return e=m("market",t),n=d.standardNormal(t),(r=_)*e+Math.sqrt(1-r*r)*n;var e,n,r},y=p(t.startYear),v=new Map([[t.startYear,y]]),E=e=>{if(!Number.isFinite(e)||e<=t.startYear)return y;const n=v.get(e);if(void 0!==n)return n;const r=l*E(e-1)+Math.sqrt(1-l**2)*p(e);return v.set(e,r),r},T=new Map,I=(t,e)=>{const n="".concat(t,":").concat(e),r=T.get(n);if(void 0!==r)return r;const i=h.standardNormal(ol.ownAccount,(t=>{let e=2166136261;for(let n=0;n<t.length;n+=1)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return e>>>0})(t),e);return T.set(n,i),i},O=(t,e)=>{const n=Tc(t.getCategory()).with("taxable-investments","tax-deferred","tax-free-investments",(()=>"market")).with("real-estate",(()=>"realEstate")).otherwise((()=>"ownAccount"));return"ownAccount"===n?I(t.forecastAccountId,e):m(n,e)};return{getGrowthRate:(t,e)=>{const n=t.getGrowthRate(e);if(t.isGrowthPinnedFlat)return n;const r=t.getVolatility();return 0===r?n:ul(n,r,O(t,e))},getInflationRate:e=>0===c?t.inflationRate:ul(t.inflationRate,c,E(e)),variesInflationByYear:c>0}},ll=(t,e)=>{var n,r;return function(t,e){return new qc(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).run()}(t.settings,t.accounts,null!==(n=t.events)&&void 0!==n?n:[],{customWithdrawalOrderIds:t.customWithdrawalOrderIds,uncategorizedSavingsSettings:t.uncategorizedSavingsSettings,options:t.options,asOfDate:t.asOfDate,rateProvider:cl(t.settings,{seed:e,inflationVolatility:null===(r=t.monteCarlo)||void 0===r?void 0:r.inflationVolatility})})},fl=t=>$c(t)||t<0,hl=(t,e)=>{const n=e.flatMap((e=>{let n=e.participantId,r=e.year;const i=t.find((t=>t.year===r));
1return i?[{participantId:n,year:r,netWorth:i.netWorth,cumulativeInflationFactor:i.cumulativeInflationFactor}]:[]}));return Kc(n.flatMap((t=>{let e=t.netWorth,n=t.cumulativeInflationFactor;return[e,zc(e,n)]})),"summarizePath: net worth at retirement"),n},dl=(t,e,n,r)=>{var i;const a=t.map((t=>t.netWorth)),o=null!==(i=a[a.length-1])&&void 0!==i?i:0,s=(t=>{var e,n;const r=t.findIndex((t=>{let e=t.netWorth;return!fl(e)}));return-1===r?null:null!==(e=null===(n=t.slice(r).find((t=>{let e=t.netWorth;return fl(e)})))||void 0===n?void 0:n.year)&&void 0!==e?e:null})(t);return{seed:e,pathNumber:n,endingNetWorth:o,netWorthByYear:a,cumulativeInflationFactorByYear:t.map((t=>t.cumulativeInflationFactor)),outOfMoneyYear:s,netWorthAtRetirement:hl(t,r)}},gl=2**53,ml=(t,e)=>Math.floor(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return tl(Qc(0n,e))}(il,t,e)*gl),_l=self,pl={runBatch(t,e,n){const r=e.firstPathIndex,i=e.count,a=[];for(let o=0;o<i;o+=1){const e=r+o,i=ml(n,e),s=ll(t,i).snapshots;a.push(dl(s,i,e+1,t.retirementYears)),a.length%50===0&&_l.postMessage({forecastBatchProgress:a.length})}return{summaries:a}}};c(pl)})()})();
2//# sourceMappingURL=forecast.worker.a062d5c1.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.