ynab 1.32.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -800,6 +800,12 @@ export interface HybridTransactionsResponseData {
800
800
  * @memberof HybridTransactionsResponseData
801
801
  */
802
802
  transactions: Array<HybridTransaction>;
803
+ /**
804
+ * The knowledge of the server
805
+ * @type {number}
806
+ * @memberof HybridTransactionsResponseData
807
+ */
808
+ server_knowledge?: number | null;
803
809
  }
804
810
  /**
805
811
  *
package/dist/api.js CHANGED
@@ -31,7 +31,7 @@ if (!globalThis.fetch) {
31
31
  globalThis.Request = fetchPonyfill.Request;
32
32
  }
33
33
  const url = require("url");
34
- const USER_AGENT = "api_client/js/1.29.0";
34
+ const USER_AGENT = "api_client/js/1.32.0";
35
35
  function convertDateToFullDateStringFormat(date) {
36
36
  // Convert to RFC 3339 "full-date" format, like "2017-11-27"
37
37
  if (date instanceof Date) {
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see ynab.js.LICENSE.txt */
2
- var ynab;(()=>{var e={559:function(e,t,n){var r;!function(a){"use strict";function o(e){var n=e&&e.Promise||a.Promise,r=e&&e.XMLHttpRequest||a.XMLHttpRequest;return function(){var e=Object.create(a,{fetch:{value:void 0,writable:!0}});return function(t){var a=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==a&&a,o="URLSearchParams"in a,i="Symbol"in a&&"iterator"in Symbol,s="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),c="FormData"in a,u="ArrayBuffer"in a;if(u)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function g(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function y(e){this.map={},e instanceof y?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function A(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:c&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=A(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=A(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,r,a=f(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=m(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},c&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(e,t){e=l(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},y.prototype.delete=function(e){delete this.map[l(e)]},y.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},y.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},y.prototype.set=function(e,t){this.map[l(e)]=p(t)},y.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},y.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),g(e)},y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),g(e)},y.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),g(e)},i&&(y.prototype[Symbol.iterator]=y.prototype.entries);var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,a=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new y(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),T.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function j(e,t){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new y(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},j.error=function(){var e=new j(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];j.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new j(null,{status:t,headers:{location:e}})},t.DOMException=a.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function P(e,o){return new n((function(n,i){var c=new _(e,o);if(c.signal&&c.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var d=new r;function h(){d.abort()}d.onload=function(){var e,t,r={status:d.status,statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new y,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};r.url="responseURL"in d?d.responseURL:r.headers.get("X-Request-URL");var a="response"in d?d.response:d.responseText;setTimeout((function(){n(new j(a,r))}),0)},d.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},d.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},d.onabort=function(){setTimeout((function(){i(new t.DOMException("Aborted","AbortError"))}),0)},d.open(c.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?d.withCredentials=!0:"omit"===c.credentials&&(d.withCredentials=!1),"responseType"in d&&(s?d.responseType="blob":u&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(d.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof y?c.headers.forEach((function(e,t){d.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){d.setRequestHeader(e,p(o.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",h),d.onreadystatechange=function(){4===d.readyState&&c.signal.removeEventListener("abort",h)}),d.send(void 0===c._bodyInit?null:c._bodyInit)}))}P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=y,a.Request=_,a.Response=j),t.Headers=y,t.Request=_,t.Response=j,t.fetch=P,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,a){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(n);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var d,h,l,p,g=e[u].replace(i,"%20"),y=g.indexOf(r);y>=0?(d=g.substr(0,y),h=g.substr(y+1)):(d=g,h=""),l=decodeURIComponent(d),p=decodeURIComponent(h),t(o,l)?Array.isArray(o[l])?o[l].push(p):o[l]=[o[l],p]:o[l]=p}return o}},361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,a){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+r;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+r+encodeURIComponent(t(e)):""}},673:(e,t,n)=>{"use strict";t.decode=t.parse=n(587),t.encode=t.stringify=n(361)},665:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UserApi=t.UserApiFactory=t.UserApiFp=t.UserApiFetchParamCreator=t.TransactionsApi=t.TransactionsApiFactory=t.TransactionsApiFp=t.TransactionsApiFetchParamCreator=t.ScheduledTransactionsApi=t.ScheduledTransactionsApiFactory=t.ScheduledTransactionsApiFp=t.ScheduledTransactionsApiFetchParamCreator=t.PayeesApi=t.PayeesApiFactory=t.PayeesApiFp=t.PayeesApiFetchParamCreator=t.PayeeLocationsApi=t.PayeeLocationsApiFactory=t.PayeeLocationsApiFp=t.PayeeLocationsApiFetchParamCreator=t.MonthsApi=t.MonthsApiFactory=t.MonthsApiFp=t.MonthsApiFetchParamCreator=t.DeprecatedApi=t.DeprecatedApiFactory=t.DeprecatedApiFp=t.DeprecatedApiFetchParamCreator=t.CategoriesApi=t.CategoriesApiFactory=t.CategoriesApiFp=t.CategoriesApiFetchParamCreator=t.BudgetsApi=t.BudgetsApiFactory=t.BudgetsApiFp=t.BudgetsApiFetchParamCreator=t.AccountsApi=t.AccountsApiFactory=t.AccountsApiFp=t.AccountsApiFetchParamCreator=t.UpdateTransaction=t.TransactionDetail=t.ScheduledTransactionDetail=t.HybridTransaction=t.TransactionSummary=t.ScheduledTransactionSummary=t.SaveTransaction=t.Category=t.AccountType=t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=void 0;const a=n(559)();globalThis.fetch||(globalThis.fetch=a.fetch,globalThis.Response=a.Response,globalThis.Headers=a.Headers,globalThis.Request=a.Request);const o=n(575),i="api_client/js/1.29.0";function s(e){return e instanceof Date?e.toISOString().substring(0,10):e}t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};class c{constructor(e){e&&(this.configuration=e)}}t.BaseAPI=c;class u extends Error{constructor(e,t){super(t),this.field=e}}var d;t.RequiredError=u,(d=t.AccountType||(t.AccountType={}))[d.Checking="checking"]="Checking",d[d.Savings="savings"]="Savings",d[d.Cash="cash"]="Cash",d[d.CreditCard="creditCard"]="CreditCard",d[d.LineOfCredit="lineOfCredit"]="LineOfCredit",d[d.OtherAsset="otherAsset"]="OtherAsset",d[d.OtherLiability="otherLiability"]="OtherLiability",d[d.Mortgage="mortgage"]="Mortgage",d[d.AutoLoan="autoLoan"]="AutoLoan",d[d.StudentLoan="studentLoan"]="StudentLoan",d[d.PersonalLoan="personalLoan"]="PersonalLoan",d[d.MedicalDebt="medicalDebt"]="MedicalDebt",d[d.OtherDebt="otherDebt"]="OtherDebt",function(e){let t;!function(e){e[e.TB="TB"]="TB",e[e.TBD="TBD"]="TBD",e[e.MF="MF"]="MF",e[e.NEED="NEED"]="NEED",e[e.DEBT="DEBT"]="DEBT"}(t=e.GoalTypeEnum||(e.GoalTypeEnum={}))}(t.Category||(t.Category={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.SaveTransaction||(t.SaveTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionSummary||(t.ScheduledTransactionSummary={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionSummary||(t.TransactionSummary={})),function(e){let t,n,r;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={})),function(e){e[e.Transaction="transaction"]="Transaction",e[e.Subtransaction="subtransaction"]="Subtransaction"}(r=e.TypeEnum||(e.TypeEnum={}))}(t.HybridTransaction||(t.HybridTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionDetail||(t.ScheduledTransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionDetail||(t.TransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.UpdateTransaction||(t.UpdateTransaction={})),t.AccountsApiFetchParamCreator=function(e){return{createAccount(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling createAccount.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling createAccount.");const a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}},getAccountById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getAccountById.");if(null==n)throw new u("account_id","Required parameter account_id was null or undefined when calling getAccountById.");const a="/budgets/{budget_id}/accounts/{account_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getAccounts(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getAccounts.");const a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.AccountsApiFp=function(e){return{createAccount(n,a,o){const i=t.AccountsApiFetchParamCreator(e).createAccount(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getAccountById(n,a,o){const i=t.AccountsApiFetchParamCreator(e).getAccountById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getAccounts(n,a,o){const i=t.AccountsApiFetchParamCreator(e).getAccounts(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.AccountsApiFactory=function(e){return{createAccount:(n,r,a)=>t.AccountsApiFp(e).createAccount(n,r,a)(),getAccountById:(n,r,a)=>t.AccountsApiFp(e).getAccountById(n,r,a)(),getAccounts:(n,r,a)=>t.AccountsApiFp(e).getAccounts(n,r,a)()}},t.AccountsApi=class extends c{createAccount(e,n,r){return t.AccountsApiFp(this.configuration).createAccount(e,n,r)()}getAccountById(e,n,r){return t.AccountsApiFp(this.configuration).getAccountById(e,n,r)()}getAccounts(e,n,r){return t.AccountsApiFp(this.configuration).getAccounts(e,n,r)()}},t.BudgetsApiFetchParamCreator=function(e){return{getBudgetById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");const a="/budgets/{budget_id}".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getBudgetSettingsById(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");const r="/budgets/{budget_id}/settings".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"GET"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},getBudgets(t,n={}){const r=o.parse("/budgets",!0),a=Object.assign({method:"GET"},n),s={},c={};if(s["User-Agent"]=i,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return void 0!==t&&(c.include_accounts=t),r.query=Object.assign({},r.query,c,n.query),delete r.search,a.headers=Object.assign({},s,n.headers),{url:o.format(r),options:a}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,a,o){const i=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgetSettingsById(n,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgetSettingsById(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgets(n,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgets(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.BudgetsApiFactory=function(e){return{getBudgetById:(n,r,a)=>t.BudgetsApiFp(e).getBudgetById(n,r,a)(),getBudgetSettingsById:(n,r)=>t.BudgetsApiFp(e).getBudgetSettingsById(n,r)(),getBudgets:(n,r)=>t.BudgetsApiFp(e).getBudgets(n,r)()}},t.BudgetsApi=class extends c{getBudgetById(e,n,r){return t.BudgetsApiFp(this.configuration).getBudgetById(e,n,r)()}getBudgetSettingsById(e,n){return t.BudgetsApiFp(this.configuration).getBudgetSettingsById(e,n)()}getBudgets(e,n){return t.BudgetsApiFp(this.configuration).getBudgets(e,n)()}},t.CategoriesApiFetchParamCreator=function(e){return{getCategories(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");const a="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getCategoryById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null==n)throw new u("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");const a="/budgets/{budget_id}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getMonthCategoryById(t,n,r,a={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getMonthCategoryById.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null==r)throw new u("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");const c="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))).replace("{category_id}",encodeURIComponent(String(r))),d=o.parse(c,!0),h=Object.assign({method:"GET"},a),l={};if(l["User-Agent"]=i,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return d.query=Object.assign({},d.query,{},a.query),delete d.search,h.headers=Object.assign({},l,a.headers),{url:o.format(d),options:h}},updateMonthCategory(t,n,r,a,c={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null==r)throw new u("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null==a)throw new u("data","Required parameter data was null or undefined when calling updateMonthCategory.");const d="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))).replace("{category_id}",encodeURIComponent(String(r))),h=o.parse(d,!0),l=Object.assign({method:"PATCH"},c),p={};if(p["User-Agent"]=i,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return p["Content-Type"]="application/json",h.query=Object.assign({},h.query,{},c.query),delete h.search,l.headers=Object.assign({},p,c.headers),l.body=JSON.stringify(a||{}),{url:o.format(h),options:l}}}},t.CategoriesApiFp=function(e){return{getCategories(n,a,o){const i=t.CategoriesApiFetchParamCreator(e).getCategories(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getCategoryById(n,a,o){const i=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getMonthCategoryById(n,a,o,i){const s=t.CategoriesApiFetchParamCreator(e).getMonthCategoryById(n,a,o,i);return(t=fetch)=>t(e.basePath+s.url,s.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateMonthCategory(n,a,o,i,s){const c=t.CategoriesApiFetchParamCreator(e).updateMonthCategory(n,a,o,i,s);return(t=fetch)=>t(e.basePath+c.url,c.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.CategoriesApiFactory=function(e){return{getCategories:(n,r,a)=>t.CategoriesApiFp(e).getCategories(n,r,a)(),getCategoryById:(n,r,a)=>t.CategoriesApiFp(e).getCategoryById(n,r,a)(),getMonthCategoryById:(n,r,a,o)=>t.CategoriesApiFp(e).getMonthCategoryById(n,r,a,o)(),updateMonthCategory:(n,r,a,o,i)=>t.CategoriesApiFp(e).updateMonthCategory(n,r,a,o,i)()}},t.CategoriesApi=class extends c{getCategories(e,n,r){return t.CategoriesApiFp(this.configuration).getCategories(e,n,r)()}getCategoryById(e,n,r){return t.CategoriesApiFp(this.configuration).getCategoryById(e,n,r)()}getMonthCategoryById(e,n,r,a){return t.CategoriesApiFp(this.configuration).getMonthCategoryById(e,n,r,a)()}updateMonthCategory(e,n,r,a,o){return t.CategoriesApiFp(this.configuration).updateMonthCategory(e,n,r,a,o)()}},t.DeprecatedApiFetchParamCreator=function(e){return{bulkCreateTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null==n)throw new u("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");const a="/budgets/{budget_id}/transactions/bulk".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}}}},t.DeprecatedApiFp=function(e){return{bulkCreateTransactions(n,a,o){const i=t.DeprecatedApiFetchParamCreator(e).bulkCreateTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.DeprecatedApiFactory=function(e){return{bulkCreateTransactions:(n,r,a)=>t.DeprecatedApiFp(e).bulkCreateTransactions(n,r,a)()}},t.DeprecatedApi=class extends c{bulkCreateTransactions(e,n,r){return t.DeprecatedApiFp(this.configuration).bulkCreateTransactions(e,n,r)()}},t.MonthsApiFetchParamCreator=function(e){return{getBudgetMonth(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling getBudgetMonth.");const a="/budgets/{budget_id}/months/{month}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))),c=o.parse(a,!0),d=Object.assign({method:"GET"},r),h={};if(h["User-Agent"]=i,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},r.query),delete c.search,d.headers=Object.assign({},h,r.headers),{url:o.format(c),options:d}},getBudgetMonths(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");const a="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.MonthsApiFp=function(e){return{getBudgetMonth(n,a,o){const i=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgetMonths(n,a,o){const i=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonth(n,r,a)(),getBudgetMonths:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonths(n,r,a)()}},t.MonthsApi=class extends c{getBudgetMonth(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonth(e,n,r)()}getBudgetMonths(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonths(e,n,r)()}},t.PayeeLocationsApiFetchParamCreator=function(e){return{getPayeeLocationById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null==n)throw new u("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");const a="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_location_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getPayeeLocations(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");const r="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"GET"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},getPayeeLocationsByPayee(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");const a="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,a,o){const i=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayeeLocations(n,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayeeLocationsByPayee(n,a,o){const i=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,a)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,a)()}},t.PayeeLocationsApi=class extends c{getPayeeLocationById(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationById(e,n,r)()}getPayeeLocations(e,n){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocations(e,n)()}getPayeeLocationsByPayee(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationsByPayee(e,n,r)()}},t.PayeesApiFetchParamCreator=function(e){return{getPayeeById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");const a="/budgets/{budget_id}/payees/{payee_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getPayees(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");const a="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.PayeesApiFp=function(e){return{getPayeeById(n,a,o){const i=t.PayeesApiFetchParamCreator(e).getPayeeById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayees(n,a,o){const i=t.PayeesApiFetchParamCreator(e).getPayees(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.PayeesApiFactory=function(e){return{getPayeeById:(n,r,a)=>t.PayeesApiFp(e).getPayeeById(n,r,a)(),getPayees:(n,r,a)=>t.PayeesApiFp(e).getPayees(n,r,a)()}},t.PayeesApi=class extends c{getPayeeById(e,n,r){return t.PayeesApiFp(this.configuration).getPayeeById(e,n,r)()}getPayees(e,n,r){return t.PayeesApiFp(this.configuration).getPayees(e,n,r)()}},t.ScheduledTransactionsApiFetchParamCreator=function(e){return{getScheduledTransactionById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null==n)throw new u("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");const a="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{scheduled_transaction_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getScheduledTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");const a="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.ScheduledTransactionsApiFp=function(e){return{getScheduledTransactionById(n,a,o){const i=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getScheduledTransactions(n,a,o){const i=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,a)(),getScheduledTransactions:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactions(n,r,a)()}},t.ScheduledTransactionsApi=class extends c{getScheduledTransactionById(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactionById(e,n,r)()}getScheduledTransactions(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactions(e,n,r)()}},t.TransactionsApiFetchParamCreator=function(e){return{createTransaction(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling createTransaction.");const a="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}},getTransactionById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null==n)throw new u("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");const a="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getTransactions(t,n,r,a,c={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");const d="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),h=o.parse(d,!0),l=Object.assign({method:"GET"},c),p={},g={};if(p["User-Agent"]=i,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==n&&(g.since_date=s(n)),void 0!==r&&(g.type=r),void 0!==a&&(g.last_knowledge_of_server=a),h.query=Object.assign({},h.query,g,c.query),delete h.search,l.headers=Object.assign({},p,c.headers),{url:o.format(h),options:l}},getTransactionsByAccount(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null==n)throw new u("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");const h="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},getTransactionsByCategory(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null==n)throw new u("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");const h="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},getTransactionsByPayee(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");const h="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},importTransactions(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling importTransactions.");const r="/budgets/{budget_id}/transactions/import".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"POST"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},updateTransaction(t,n,r,a={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null==n)throw new u("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null==r)throw new u("data","Required parameter data was null or undefined when calling updateTransaction.");const s="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),c=o.parse(s,!0),d=Object.assign({method:"PUT"},a),h={};if(h["User-Agent"]=i,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,d.headers=Object.assign({},h,a.headers),d.body=JSON.stringify(r||{}),{url:o.format(c),options:d}},updateTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateTransactions.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling updateTransactions.");const a="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"PATCH"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}}}},t.TransactionsApiFp=function(e){return{createTransaction(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).createTransaction(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionById(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).getTransactionById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactions(n,a,o,i,s){const c=t.TransactionsApiFetchParamCreator(e).getTransactions(n,a,o,i,s);return(t=fetch)=>t(e.basePath+c.url,c.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByAccount(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByCategory(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByPayee(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},importTransactions(n,a){const o=t.TransactionsApiFetchParamCreator(e).importTransactions(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateTransaction(n,a,o,i){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,a,o,i);return(t=fetch)=>t(e.basePath+s.url,s.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateTransactions(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).updateTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.TransactionsApiFactory=function(e){return{createTransaction:(n,r,a)=>t.TransactionsApiFp(e).createTransaction(n,r,a)(),getTransactionById:(n,r,a)=>t.TransactionsApiFp(e).getTransactionById(n,r,a)(),getTransactions:(n,r,a,o,i)=>t.TransactionsApiFp(e).getTransactions(n,r,a,o,i)(),getTransactionsByAccount:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,a,o,i,s)(),getTransactionsByCategory:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,a,o,i,s)(),getTransactionsByPayee:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,a,o,i,s)(),importTransactions:(n,r)=>t.TransactionsApiFp(e).importTransactions(n,r)(),updateTransaction:(n,r,a,o)=>t.TransactionsApiFp(e).updateTransaction(n,r,a,o)(),updateTransactions:(n,r,a)=>t.TransactionsApiFp(e).updateTransactions(n,r,a)()}},t.TransactionsApi=class extends c{createTransaction(e,n,r){return t.TransactionsApiFp(this.configuration).createTransaction(e,n,r)()}getTransactionById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionById(e,n,r)()}getTransactions(e,n,r,a,o){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,a,o)()}getTransactionsByAccount(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,a,o,i)()}getTransactionsByCategory(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,a,o,i)()}getTransactionsByPayee(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,a,o,i)()}importTransactions(e,n){return t.TransactionsApiFp(this.configuration).importTransactions(e,n)()}updateTransaction(e,n,r,a){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,a)()}updateTransactions(e,n,r){return t.TransactionsApiFp(this.configuration).updateTransactions(e,n,r)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=o.parse("/user",!0),r=Object.assign({method:"GET"},t),a={};if(a["User-Agent"]=i,a.Accept="application/json",e&&e.apiKey){const t=e.apiKey;a.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,r.headers=Object.assign({},a,t.headers),{url:o.format(n),options:r}}}},t.UserApiFp=function(e){return{getUser(n){const a=t.UserApiFetchParamCreator(e).getUser(n);return(t=fetch)=>t(e.basePath+a.url,a.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.UserApiFactory=function(e){return{getUser:n=>t.UserApiFp(e).getUser(n)()}},t.UserApi=class extends c{getUser(e){return t.UserApiFp(this.configuration).getUser(e)()}}},610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e,t){this.apiKey=`Bearer ${e}`,this.basePath=t}}},465:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.api=t.utils=t.API=void 0;const o=n(610),i=n(665),s=n(802),c=n(679);t.utils=c.default,a(n(665),t);class u{constructor(e,t="https://api.youneedabudget.com/v1"){this._configuration=new o.Configuration(e,t)}get user(){return this._user||(this._user=new i.UserApi(this._configuration)),this._user}get budgets(){return this._budgets||(this._budgets=new i.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new i.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new i.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new i.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new i.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new i.PayeeLocationsApi(this._configuration)),this._payeeLocations}get transactions(){return this._transactions||(this._transactions=new s.TransactionsApi(this._configuration)),this._transactions}get scheduledTransactions(){return this._scheduledTransactions||(this._scheduledTransactions=new i.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=u,t.API=u},802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsApi=void 0;const r=n(665);class a extends r.TransactionsApi{getTransactionsByType(e,t,n,a){return r.TransactionsApiFp(this.configuration).getTransactions(e,void 0,t,n,a)()}createTransactions(e,t,n){return r.TransactionsApiFp(this.configuration).createTransaction(e,t,n)()}bulkCreateTransactions(e,t,n){return r.DeprecatedApiFp(this.configuration).bulkCreateTransactions(e,t,n)()}}t.TransactionsApi=a},679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getCurrentMonthInISOFormat(){return`${this.getCurrentDateInISOFormat().substr(0,7)}-01`},getCurrentDateInISOFormat(){let e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:e=>new Date(new Date(e)),convertMilliUnitsToCurrencyAmount(e,t=2){let n=Math.pow(10,3-Math.min(3,t));n=1/n;let r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}}},511:function(e,t,n){var r;e=n.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,c=36,u=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,g=String.fromCharCode;function y(e){throw RangeError(l[e])}function f(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+f((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(n=e.charCodeAt(a++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--):r.push(t);return r}function A(e){return f(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+g(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=c)e=p(e/35);return p(r+36*e/(e+38))}function _(e){var t,n,r,a,o,i,u,d,h,l,g,f=[],m=e.length,b=0,w=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&y("not-basic"),f.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<m;){for(o=b,i=1,u=c;a>=m&&y("invalid-input"),((d=(g=e.charCodeAt(a++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||d>p((s-b)/i))&&y("overflow"),b+=d*i,!(d<(h=u<=_?1:u>=_+26?26:u-_));u+=c)i>p(s/(l=c-h))&&y("overflow"),i*=l;_=T(b-o,t=f.length+1,0==o),p(b/t)>s-w&&y("overflow"),w+=p(b/t),b%=t,f.splice(b++,0,w)}return A(f)}function v(e){var t,n,r,a,o,i,u,d,h,l,f,m,A,_,v,j=[];for(m=(e=b(e)).length,t=128,n=0,o=72,i=0;i<m;++i)(f=e[i])<128&&j.push(g(f));for(r=a=j.length,a&&j.push("-");r<m;){for(u=s,i=0;i<m;++i)(f=e[i])>=t&&f<u&&(u=f);for(u-t>p((s-n)/(A=r+1))&&y("overflow"),n+=(u-t)*A,t=u,i=0;i<m;++i)if((f=e[i])<t&&++n>s&&y("overflow"),f==t){for(d=n,h=c;!(d<(l=h<=o?1:h>=o+26?26:h-o));h+=c)v=d-l,_=c-l,j.push(g(w(l+v%_,0))),d=p(v/_);j.push(g(w(d,0))),o=T(n,A,r==a),n=0,++r}++n,++t}return j.join("")}i={version:"1.3.2",ucs2:{decode:b,encode:A},decode:_,encode:v,toASCII:function(e){return m(e,(function(e){return d.test(e)?"xn--"+v(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},575:(e,t,n)=>{"use strict";var r=n(511),a=n(502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=function(e,t){return A(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?A(e,!1,!0).resolveObject(t):t},t.format=function(e){return a.isString(e)&&(e=A(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(u),h=["%","/","?",";","#"].concat(d),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(673);function A(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var A=e=u.join(s);if(A=A.trim(),!n&&1===e.split("#").length){var w=c.exec(A);if(w)return this.path=A,this.href=A,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var T=i.exec(A);if(T){var _=(T=T[0]).toLowerCase();this.protocol=_,A=A.substr(T.length)}if(n||T||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===A.substr(0,2);!v||T&&f[T]||(A=A.substr(2),this.slashes=!0)}if(!f[T]&&(v||T&&!m[T])){for(var j,C,P=-1,B=0;B<l.length;B++)-1!==(O=A.indexOf(l[B]))&&(-1===P||O<P)&&(P=O);for(-1!==(C=-1===P?A.lastIndexOf("@"):A.lastIndexOf("@",P))&&(j=A.slice(0,C),A=A.slice(C+1),this.auth=decodeURIComponent(j)),P=-1,B=0;B<h.length;B++){var O;-1!==(O=A.indexOf(h[B]))&&(-1===P||O<P)&&(P=O)}-1===P&&(P=A.length),this.host=A.slice(0,P),A=A.slice(P),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var R=this.hostname.split(/\./),q=(B=0,R.length);B<q;B++){var I=R[B];if(I&&!I.match(p)){for(var E="",S=0,U=I.length;S<U;S++)I.charCodeAt(S)>127?E+="x":E+=I[S];if(!E.match(p)){var L=R.slice(0,B),M=R.slice(B+1),x=I.match(g);x&&(L.push(x[1]),M.unshift(x[2])),M.length&&(A="/"+M.join(".")+A),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+D,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!y[_])for(B=0,q=d.length;B<q;B++){var k=d[B];if(-1!==A.indexOf(k)){var G=encodeURIComponent(k);G===k&&(G=escape(k)),A=A.split(k).join(G)}}var z=A.indexOf("#");-1!==z&&(this.hash=A.substr(z),A=A.slice(0,z));var X=A.indexOf("?");if(-1!==X?(this.search=A.substr(X),this.query=A.substr(X+1),t&&(this.query=b.parse(this.query)),A=A.slice(0,X)):t&&(this.search="",this.query={}),A&&(this.pathname=A),m[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var Y=this.search||"";this.path=D+Y}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=b.stringify(this.query));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(A(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(a.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];"protocol"!==d&&(n[d]=e[d])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var p=h[l];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==g[0]&&g.unshift(""),g.length<2&&g.unshift(""),n.pathname=g.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",b=n.search||"";n.path=y+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var A=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),T=w||A||n.host&&e.pathname,_=T,v=n.pathname&&n.pathname.split("/")||[],j=(g=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===g[0]?g[0]=e.host:g.unshift(e.host)),e.host=null),T=T&&(""===g[0]||""===v[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=g;else if(g.length)v||(v=[]),v.pop(),v=v.concat(g),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search))return j&&(n.hostname=n.host=v.shift(),(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift())),n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=v.slice(-1)[0],P=(n.host||e.host||v.length>1)&&("."===C||".."===C)||""===C,B=0,O=v.length;O>=0;O--)"."===(C=v[O])?v.splice(O,1):".."===C?(v.splice(O,1),B++):B&&(v.splice(O,1),B--);if(!T&&!_)for(;B--;B)v.unshift("..");!T||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),P&&"/"!==v.join("/").substr(-1)&&v.push("");var F,R=""===v[0]||v[0]&&"/"===v[0].charAt(0);return j&&(n.hostname=n.host=R?"":v.length?v.shift():"",(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift())),(T=T||n.host&&v.length)&&!R&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(465);ynab=r})();
2
+ var ynab;(()=>{var e={559:function(e,t,n){var r;!function(a){"use strict";function o(e){var n=e&&e.Promise||a.Promise,r=e&&e.XMLHttpRequest||a.XMLHttpRequest;return function(){var e=Object.create(a,{fetch:{value:void 0,writable:!0}});return function(t){var a=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==a&&a,o="URLSearchParams"in a,i="Symbol"in a&&"iterator"in Symbol,s="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),c="FormData"in a,u="ArrayBuffer"in a;if(u)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function g(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function y(e){this.map={},e instanceof y?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function A(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:c&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=A(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=A(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,r,a=f(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=m(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},c&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(e,t){e=l(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},y.prototype.delete=function(e){delete this.map[l(e)]},y.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},y.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},y.prototype.set=function(e,t){this.map[l(e)]=p(t)},y.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},y.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),g(e)},y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),g(e)},y.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),g(e)},i&&(y.prototype[Symbol.iterator]=y.prototype.entries);var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,a=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new y(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new y(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),T.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function j(e,t){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new y(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},j.error=function(){var e=new j(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];j.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new j(null,{status:t,headers:{location:e}})},t.DOMException=a.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function P(e,o){return new n((function(n,i){var c=new _(e,o);if(c.signal&&c.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var d=new r;function h(){d.abort()}d.onload=function(){var e,t,r={status:d.status,statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new y,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};r.url="responseURL"in d?d.responseURL:r.headers.get("X-Request-URL");var a="response"in d?d.response:d.responseText;setTimeout((function(){n(new j(a,r))}),0)},d.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},d.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},d.onabort=function(){setTimeout((function(){i(new t.DOMException("Aborted","AbortError"))}),0)},d.open(c.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?d.withCredentials=!0:"omit"===c.credentials&&(d.withCredentials=!1),"responseType"in d&&(s?d.responseType="blob":u&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(d.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof y?c.headers.forEach((function(e,t){d.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){d.setRequestHeader(e,p(o.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",h),d.onreadystatechange=function(){4===d.readyState&&c.signal.removeEventListener("abort",h)}),d.send(void 0===c._bodyInit?null:c._bodyInit)}))}P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=y,a.Request=_,a.Response=j),t.Headers=y,t.Request=_,t.Response=j,t.fetch=P,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,a){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(n);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var d,h,l,p,g=e[u].replace(i,"%20"),y=g.indexOf(r);y>=0?(d=g.substr(0,y),h=g.substr(y+1)):(d=g,h=""),l=decodeURIComponent(d),p=decodeURIComponent(h),t(o,l)?Array.isArray(o[l])?o[l].push(p):o[l]=[o[l],p]:o[l]=p}return o}},361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,a){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var o=encodeURIComponent(t(a))+r;return Array.isArray(e[a])?e[a].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+r+encodeURIComponent(t(e)):""}},673:(e,t,n)=>{"use strict";t.decode=t.parse=n(587),t.encode=t.stringify=n(361)},665:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UserApi=t.UserApiFactory=t.UserApiFp=t.UserApiFetchParamCreator=t.TransactionsApi=t.TransactionsApiFactory=t.TransactionsApiFp=t.TransactionsApiFetchParamCreator=t.ScheduledTransactionsApi=t.ScheduledTransactionsApiFactory=t.ScheduledTransactionsApiFp=t.ScheduledTransactionsApiFetchParamCreator=t.PayeesApi=t.PayeesApiFactory=t.PayeesApiFp=t.PayeesApiFetchParamCreator=t.PayeeLocationsApi=t.PayeeLocationsApiFactory=t.PayeeLocationsApiFp=t.PayeeLocationsApiFetchParamCreator=t.MonthsApi=t.MonthsApiFactory=t.MonthsApiFp=t.MonthsApiFetchParamCreator=t.DeprecatedApi=t.DeprecatedApiFactory=t.DeprecatedApiFp=t.DeprecatedApiFetchParamCreator=t.CategoriesApi=t.CategoriesApiFactory=t.CategoriesApiFp=t.CategoriesApiFetchParamCreator=t.BudgetsApi=t.BudgetsApiFactory=t.BudgetsApiFp=t.BudgetsApiFetchParamCreator=t.AccountsApi=t.AccountsApiFactory=t.AccountsApiFp=t.AccountsApiFetchParamCreator=t.UpdateTransaction=t.TransactionDetail=t.ScheduledTransactionDetail=t.HybridTransaction=t.TransactionSummary=t.ScheduledTransactionSummary=t.SaveTransaction=t.Category=t.AccountType=t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=void 0;const a=n(559)();globalThis.fetch||(globalThis.fetch=a.fetch,globalThis.Response=a.Response,globalThis.Headers=a.Headers,globalThis.Request=a.Request);const o=n(575),i="api_client/js/1.32.0";function s(e){return e instanceof Date?e.toISOString().substring(0,10):e}t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};class c{constructor(e){e&&(this.configuration=e)}}t.BaseAPI=c;class u extends Error{constructor(e,t){super(t),this.field=e}}var d;t.RequiredError=u,(d=t.AccountType||(t.AccountType={}))[d.Checking="checking"]="Checking",d[d.Savings="savings"]="Savings",d[d.Cash="cash"]="Cash",d[d.CreditCard="creditCard"]="CreditCard",d[d.LineOfCredit="lineOfCredit"]="LineOfCredit",d[d.OtherAsset="otherAsset"]="OtherAsset",d[d.OtherLiability="otherLiability"]="OtherLiability",d[d.Mortgage="mortgage"]="Mortgage",d[d.AutoLoan="autoLoan"]="AutoLoan",d[d.StudentLoan="studentLoan"]="StudentLoan",d[d.PersonalLoan="personalLoan"]="PersonalLoan",d[d.MedicalDebt="medicalDebt"]="MedicalDebt",d[d.OtherDebt="otherDebt"]="OtherDebt",function(e){let t;!function(e){e[e.TB="TB"]="TB",e[e.TBD="TBD"]="TBD",e[e.MF="MF"]="MF",e[e.NEED="NEED"]="NEED",e[e.DEBT="DEBT"]="DEBT"}(t=e.GoalTypeEnum||(e.GoalTypeEnum={}))}(t.Category||(t.Category={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.SaveTransaction||(t.SaveTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionSummary||(t.ScheduledTransactionSummary={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionSummary||(t.TransactionSummary={})),function(e){let t,n,r;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={})),function(e){e[e.Transaction="transaction"]="Transaction",e[e.Subtransaction="subtransaction"]="Subtransaction"}(r=e.TypeEnum||(e.TypeEnum={}))}(t.HybridTransaction||(t.HybridTransaction={})),function(e){let t,n;!function(e){e[e.Never="never"]="Never",e[e.Daily="daily"]="Daily",e[e.Weekly="weekly"]="Weekly",e[e.EveryOtherWeek="everyOtherWeek"]="EveryOtherWeek",e[e.TwiceAMonth="twiceAMonth"]="TwiceAMonth",e[e.Every4Weeks="every4Weeks"]="Every4Weeks",e[e.Monthly="monthly"]="Monthly",e[e.EveryOtherMonth="everyOtherMonth"]="EveryOtherMonth",e[e.Every3Months="every3Months"]="Every3Months",e[e.Every4Months="every4Months"]="Every4Months",e[e.TwiceAYear="twiceAYear"]="TwiceAYear",e[e.Yearly="yearly"]="Yearly",e[e.EveryOtherYear="everyOtherYear"]="EveryOtherYear"}(t=e.FrequencyEnum||(e.FrequencyEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.ScheduledTransactionDetail||(t.ScheduledTransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.TransactionDetail||(t.TransactionDetail={})),function(e){let t,n;!function(e){e[e.Cleared="cleared"]="Cleared",e[e.Uncleared="uncleared"]="Uncleared",e[e.Reconciled="reconciled"]="Reconciled"}(t=e.ClearedEnum||(e.ClearedEnum={})),function(e){e[e.Red="red"]="Red",e[e.Orange="orange"]="Orange",e[e.Yellow="yellow"]="Yellow",e[e.Green="green"]="Green",e[e.Blue="blue"]="Blue",e[e.Purple="purple"]="Purple"}(n=e.FlagColorEnum||(e.FlagColorEnum={}))}(t.UpdateTransaction||(t.UpdateTransaction={})),t.AccountsApiFetchParamCreator=function(e){return{createAccount(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling createAccount.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling createAccount.");const a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}},getAccountById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getAccountById.");if(null==n)throw new u("account_id","Required parameter account_id was null or undefined when calling getAccountById.");const a="/budgets/{budget_id}/accounts/{account_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getAccounts(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getAccounts.");const a="/budgets/{budget_id}/accounts".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.AccountsApiFp=function(e){return{createAccount(n,a,o){const i=t.AccountsApiFetchParamCreator(e).createAccount(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getAccountById(n,a,o){const i=t.AccountsApiFetchParamCreator(e).getAccountById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getAccounts(n,a,o){const i=t.AccountsApiFetchParamCreator(e).getAccounts(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.AccountsApiFactory=function(e){return{createAccount:(n,r,a)=>t.AccountsApiFp(e).createAccount(n,r,a)(),getAccountById:(n,r,a)=>t.AccountsApiFp(e).getAccountById(n,r,a)(),getAccounts:(n,r,a)=>t.AccountsApiFp(e).getAccounts(n,r,a)()}},t.AccountsApi=class extends c{createAccount(e,n,r){return t.AccountsApiFp(this.configuration).createAccount(e,n,r)()}getAccountById(e,n,r){return t.AccountsApiFp(this.configuration).getAccountById(e,n,r)()}getAccounts(e,n,r){return t.AccountsApiFp(this.configuration).getAccounts(e,n,r)()}},t.BudgetsApiFetchParamCreator=function(e){return{getBudgetById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetById.");const a="/budgets/{budget_id}".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getBudgetSettingsById(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetSettingsById.");const r="/budgets/{budget_id}/settings".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"GET"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},getBudgets(t,n={}){const r=o.parse("/budgets",!0),a=Object.assign({method:"GET"},n),s={},c={};if(s["User-Agent"]=i,s.Accept="application/json",e&&e.apiKey){const t=e.apiKey;s.Authorization=t}return void 0!==t&&(c.include_accounts=t),r.query=Object.assign({},r.query,c,n.query),delete r.search,a.headers=Object.assign({},s,n.headers),{url:o.format(r),options:a}}}},t.BudgetsApiFp=function(e){return{getBudgetById(n,a,o){const i=t.BudgetsApiFetchParamCreator(e).getBudgetById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgetSettingsById(n,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgetSettingsById(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgets(n,a){const o=t.BudgetsApiFetchParamCreator(e).getBudgets(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.BudgetsApiFactory=function(e){return{getBudgetById:(n,r,a)=>t.BudgetsApiFp(e).getBudgetById(n,r,a)(),getBudgetSettingsById:(n,r)=>t.BudgetsApiFp(e).getBudgetSettingsById(n,r)(),getBudgets:(n,r)=>t.BudgetsApiFp(e).getBudgets(n,r)()}},t.BudgetsApi=class extends c{getBudgetById(e,n,r){return t.BudgetsApiFp(this.configuration).getBudgetById(e,n,r)()}getBudgetSettingsById(e,n){return t.BudgetsApiFp(this.configuration).getBudgetSettingsById(e,n)()}getBudgets(e,n){return t.BudgetsApiFp(this.configuration).getBudgets(e,n)()}},t.CategoriesApiFetchParamCreator=function(e){return{getCategories(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getCategories.");const a="/budgets/{budget_id}/categories".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getCategoryById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getCategoryById.");if(null==n)throw new u("category_id","Required parameter category_id was null or undefined when calling getCategoryById.");const a="/budgets/{budget_id}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getMonthCategoryById(t,n,r,a={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getMonthCategoryById.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling getMonthCategoryById.");if(null==r)throw new u("category_id","Required parameter category_id was null or undefined when calling getMonthCategoryById.");const c="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))).replace("{category_id}",encodeURIComponent(String(r))),d=o.parse(c,!0),h=Object.assign({method:"GET"},a),l={};if(l["User-Agent"]=i,l.Accept="application/json",e&&e.apiKey){const t=e.apiKey;l.Authorization=t}return d.query=Object.assign({},d.query,{},a.query),delete d.search,h.headers=Object.assign({},l,a.headers),{url:o.format(d),options:h}},updateMonthCategory(t,n,r,a,c={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateMonthCategory.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling updateMonthCategory.");if(null==r)throw new u("category_id","Required parameter category_id was null or undefined when calling updateMonthCategory.");if(null==a)throw new u("data","Required parameter data was null or undefined when calling updateMonthCategory.");const d="/budgets/{budget_id}/months/{month}/categories/{category_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))).replace("{category_id}",encodeURIComponent(String(r))),h=o.parse(d,!0),l=Object.assign({method:"PATCH"},c),p={};if(p["User-Agent"]=i,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return p["Content-Type"]="application/json",h.query=Object.assign({},h.query,{},c.query),delete h.search,l.headers=Object.assign({},p,c.headers),l.body=JSON.stringify(a||{}),{url:o.format(h),options:l}}}},t.CategoriesApiFp=function(e){return{getCategories(n,a,o){const i=t.CategoriesApiFetchParamCreator(e).getCategories(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getCategoryById(n,a,o){const i=t.CategoriesApiFetchParamCreator(e).getCategoryById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getMonthCategoryById(n,a,o,i){const s=t.CategoriesApiFetchParamCreator(e).getMonthCategoryById(n,a,o,i);return(t=fetch)=>t(e.basePath+s.url,s.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateMonthCategory(n,a,o,i,s){const c=t.CategoriesApiFetchParamCreator(e).updateMonthCategory(n,a,o,i,s);return(t=fetch)=>t(e.basePath+c.url,c.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.CategoriesApiFactory=function(e){return{getCategories:(n,r,a)=>t.CategoriesApiFp(e).getCategories(n,r,a)(),getCategoryById:(n,r,a)=>t.CategoriesApiFp(e).getCategoryById(n,r,a)(),getMonthCategoryById:(n,r,a,o)=>t.CategoriesApiFp(e).getMonthCategoryById(n,r,a,o)(),updateMonthCategory:(n,r,a,o,i)=>t.CategoriesApiFp(e).updateMonthCategory(n,r,a,o,i)()}},t.CategoriesApi=class extends c{getCategories(e,n,r){return t.CategoriesApiFp(this.configuration).getCategories(e,n,r)()}getCategoryById(e,n,r){return t.CategoriesApiFp(this.configuration).getCategoryById(e,n,r)()}getMonthCategoryById(e,n,r,a){return t.CategoriesApiFp(this.configuration).getMonthCategoryById(e,n,r,a)()}updateMonthCategory(e,n,r,a,o){return t.CategoriesApiFp(this.configuration).updateMonthCategory(e,n,r,a,o)()}},t.DeprecatedApiFetchParamCreator=function(e){return{bulkCreateTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling bulkCreateTransactions.");if(null==n)throw new u("transactions","Required parameter transactions was null or undefined when calling bulkCreateTransactions.");const a="/budgets/{budget_id}/transactions/bulk".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}}}},t.DeprecatedApiFp=function(e){return{bulkCreateTransactions(n,a,o){const i=t.DeprecatedApiFetchParamCreator(e).bulkCreateTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.DeprecatedApiFactory=function(e){return{bulkCreateTransactions:(n,r,a)=>t.DeprecatedApiFp(e).bulkCreateTransactions(n,r,a)()}},t.DeprecatedApi=class extends c{bulkCreateTransactions(e,n,r){return t.DeprecatedApiFp(this.configuration).bulkCreateTransactions(e,n,r)()}},t.MonthsApiFetchParamCreator=function(e){return{getBudgetMonth(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonth.");if(null==n)throw new u("month","Required parameter month was null or undefined when calling getBudgetMonth.");const a="/budgets/{budget_id}/months/{month}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{month}",encodeURIComponent(s(n))),c=o.parse(a,!0),d=Object.assign({method:"GET"},r),h={};if(h["User-Agent"]=i,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return c.query=Object.assign({},c.query,{},r.query),delete c.search,d.headers=Object.assign({},h,r.headers),{url:o.format(c),options:d}},getBudgetMonths(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getBudgetMonths.");const a="/budgets/{budget_id}/months".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.MonthsApiFp=function(e){return{getBudgetMonth(n,a,o){const i=t.MonthsApiFetchParamCreator(e).getBudgetMonth(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getBudgetMonths(n,a,o){const i=t.MonthsApiFetchParamCreator(e).getBudgetMonths(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.MonthsApiFactory=function(e){return{getBudgetMonth:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonth(n,r,a)(),getBudgetMonths:(n,r,a)=>t.MonthsApiFp(e).getBudgetMonths(n,r,a)()}},t.MonthsApi=class extends c{getBudgetMonth(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonth(e,n,r)()}getBudgetMonths(e,n,r){return t.MonthsApiFp(this.configuration).getBudgetMonths(e,n,r)()}},t.PayeeLocationsApiFetchParamCreator=function(e){return{getPayeeLocationById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationById.");if(null==n)throw new u("payee_location_id","Required parameter payee_location_id was null or undefined when calling getPayeeLocationById.");const a="/budgets/{budget_id}/payee_locations/{payee_location_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_location_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getPayeeLocations(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocations.");const r="/budgets/{budget_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"GET"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},getPayeeLocationsByPayee(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeLocationsByPayee.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getPayeeLocationsByPayee.");const a="/budgets/{budget_id}/payees/{payee_id}/payee_locations".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.PayeeLocationsApiFp=function(e){return{getPayeeLocationById(n,a,o){const i=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayeeLocations(n,a){const o=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocations(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayeeLocationsByPayee(n,a,o){const i=t.PayeeLocationsApiFetchParamCreator(e).getPayeeLocationsByPayee(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.PayeeLocationsApiFactory=function(e){return{getPayeeLocationById:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationById(n,r,a)(),getPayeeLocations:(n,r)=>t.PayeeLocationsApiFp(e).getPayeeLocations(n,r)(),getPayeeLocationsByPayee:(n,r,a)=>t.PayeeLocationsApiFp(e).getPayeeLocationsByPayee(n,r,a)()}},t.PayeeLocationsApi=class extends c{getPayeeLocationById(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationById(e,n,r)()}getPayeeLocations(e,n){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocations(e,n)()}getPayeeLocationsByPayee(e,n,r){return t.PayeeLocationsApiFp(this.configuration).getPayeeLocationsByPayee(e,n,r)()}},t.PayeesApiFetchParamCreator=function(e){return{getPayeeById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayeeById.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getPayeeById.");const a="/budgets/{budget_id}/payees/{payee_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getPayees(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getPayees.");const a="/budgets/{budget_id}/payees".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.PayeesApiFp=function(e){return{getPayeeById(n,a,o){const i=t.PayeesApiFetchParamCreator(e).getPayeeById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getPayees(n,a,o){const i=t.PayeesApiFetchParamCreator(e).getPayees(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.PayeesApiFactory=function(e){return{getPayeeById:(n,r,a)=>t.PayeesApiFp(e).getPayeeById(n,r,a)(),getPayees:(n,r,a)=>t.PayeesApiFp(e).getPayees(n,r,a)()}},t.PayeesApi=class extends c{getPayeeById(e,n,r){return t.PayeesApiFp(this.configuration).getPayeeById(e,n,r)()}getPayees(e,n,r){return t.PayeesApiFp(this.configuration).getPayees(e,n,r)()}},t.ScheduledTransactionsApiFetchParamCreator=function(e){return{getScheduledTransactionById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactionById.");if(null==n)throw new u("scheduled_transaction_id","Required parameter scheduled_transaction_id was null or undefined when calling getScheduledTransactionById.");const a="/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{scheduled_transaction_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getScheduledTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getScheduledTransactions.");const a="/budgets/{budget_id}/scheduled_transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={},h={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return void 0!==n&&(h.last_knowledge_of_server=n),s.query=Object.assign({},s.query,h,r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}}}},t.ScheduledTransactionsApiFp=function(e){return{getScheduledTransactionById(n,a,o){const i=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactionById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getScheduledTransactions(n,a,o){const i=t.ScheduledTransactionsApiFetchParamCreator(e).getScheduledTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.ScheduledTransactionsApiFactory=function(e){return{getScheduledTransactionById:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactionById(n,r,a)(),getScheduledTransactions:(n,r,a)=>t.ScheduledTransactionsApiFp(e).getScheduledTransactions(n,r,a)()}},t.ScheduledTransactionsApi=class extends c{getScheduledTransactionById(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactionById(e,n,r)()}getScheduledTransactions(e,n,r){return t.ScheduledTransactionsApiFp(this.configuration).getScheduledTransactions(e,n,r)()}},t.TransactionsApiFetchParamCreator=function(e){return{createTransaction(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling createTransaction.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling createTransaction.");const a="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"POST"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}},getTransactionById(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionById.");if(null==n)throw new u("transaction_id","Required parameter transaction_id was null or undefined when calling getTransactionById.");const a="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),s=o.parse(a,!0),c=Object.assign({method:"GET"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),{url:o.format(s),options:c}},getTransactions(t,n,r,a,c={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactions.");const d="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),h=o.parse(d,!0),l=Object.assign({method:"GET"},c),p={},g={};if(p["User-Agent"]=i,p.Accept="application/json",e&&e.apiKey){const t=e.apiKey;p.Authorization=t}return void 0!==n&&(g.since_date=s(n)),void 0!==r&&(g.type=r),void 0!==a&&(g.last_knowledge_of_server=a),h.query=Object.assign({},h.query,g,c.query),delete h.search,l.headers=Object.assign({},p,c.headers),{url:o.format(h),options:l}},getTransactionsByAccount(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByAccount.");if(null==n)throw new u("account_id","Required parameter account_id was null or undefined when calling getTransactionsByAccount.");const h="/budgets/{budget_id}/accounts/{account_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{account_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},getTransactionsByCategory(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByCategory.");if(null==n)throw new u("category_id","Required parameter category_id was null or undefined when calling getTransactionsByCategory.");const h="/budgets/{budget_id}/categories/{category_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{category_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},getTransactionsByPayee(t,n,r,a,c,d={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling getTransactionsByPayee.");if(null==n)throw new u("payee_id","Required parameter payee_id was null or undefined when calling getTransactionsByPayee.");const h="/budgets/{budget_id}/payees/{payee_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))).replace("{payee_id}",encodeURIComponent(String(n))),l=o.parse(h,!0),p=Object.assign({method:"GET"},d),g={},y={};if(g["User-Agent"]=i,g.Accept="application/json",e&&e.apiKey){const t=e.apiKey;g.Authorization=t}return void 0!==r&&(y.since_date=s(r)),void 0!==a&&(y.type=a),void 0!==c&&(y.last_knowledge_of_server=c),l.query=Object.assign({},l.query,y,d.query),delete l.search,p.headers=Object.assign({},g,d.headers),{url:o.format(l),options:p}},importTransactions(t,n={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling importTransactions.");const r="/budgets/{budget_id}/transactions/import".replace("{budget_id}",encodeURIComponent(String(t))),a=o.parse(r,!0),s=Object.assign({method:"POST"},n),c={};if(c["User-Agent"]=i,c.Accept="application/json",e&&e.apiKey){const t=e.apiKey;c.Authorization=t}return a.query=Object.assign({},a.query,{},n.query),delete a.search,s.headers=Object.assign({},c,n.headers),{url:o.format(a),options:s}},updateTransaction(t,n,r,a={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateTransaction.");if(null==n)throw new u("transaction_id","Required parameter transaction_id was null or undefined when calling updateTransaction.");if(null==r)throw new u("data","Required parameter data was null or undefined when calling updateTransaction.");const s="/budgets/{budget_id}/transactions/{transaction_id}".replace("{budget_id}",encodeURIComponent(String(t))).replace("{transaction_id}",encodeURIComponent(String(n))),c=o.parse(s,!0),d=Object.assign({method:"PUT"},a),h={};if(h["User-Agent"]=i,h.Accept="application/json",e&&e.apiKey){const t=e.apiKey;h.Authorization=t}return h["Content-Type"]="application/json",c.query=Object.assign({},c.query,{},a.query),delete c.search,d.headers=Object.assign({},h,a.headers),d.body=JSON.stringify(r||{}),{url:o.format(c),options:d}},updateTransactions(t,n,r={}){if(null==t)throw new u("budget_id","Required parameter budget_id was null or undefined when calling updateTransactions.");if(null==n)throw new u("data","Required parameter data was null or undefined when calling updateTransactions.");const a="/budgets/{budget_id}/transactions".replace("{budget_id}",encodeURIComponent(String(t))),s=o.parse(a,!0),c=Object.assign({method:"PATCH"},r),d={};if(d["User-Agent"]=i,d.Accept="application/json",e&&e.apiKey){const t=e.apiKey;d.Authorization=t}return d["Content-Type"]="application/json",s.query=Object.assign({},s.query,{},r.query),delete s.search,c.headers=Object.assign({},d,r.headers),c.body=JSON.stringify(n||{}),{url:o.format(s),options:c}}}},t.TransactionsApiFp=function(e){return{createTransaction(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).createTransaction(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionById(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).getTransactionById(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactions(n,a,o,i,s){const c=t.TransactionsApiFetchParamCreator(e).getTransactions(n,a,o,i,s);return(t=fetch)=>t(e.basePath+c.url,c.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByAccount(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByAccount(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByCategory(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByCategory(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},getTransactionsByPayee(n,a,o,i,s,c){const u=t.TransactionsApiFetchParamCreator(e).getTransactionsByPayee(n,a,o,i,s,c);return(t=fetch)=>t(e.basePath+u.url,u.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},importTransactions(n,a){const o=t.TransactionsApiFetchParamCreator(e).importTransactions(n,a);return(t=fetch)=>t(e.basePath+o.url,o.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateTransaction(n,a,o,i){const s=t.TransactionsApiFetchParamCreator(e).updateTransaction(n,a,o,i);return(t=fetch)=>t(e.basePath+s.url,s.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))},updateTransactions(n,a,o){const i=t.TransactionsApiFetchParamCreator(e).updateTransactions(n,a,o);return(t=fetch)=>t(e.basePath+i.url,i.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.TransactionsApiFactory=function(e){return{createTransaction:(n,r,a)=>t.TransactionsApiFp(e).createTransaction(n,r,a)(),getTransactionById:(n,r,a)=>t.TransactionsApiFp(e).getTransactionById(n,r,a)(),getTransactions:(n,r,a,o,i)=>t.TransactionsApiFp(e).getTransactions(n,r,a,o,i)(),getTransactionsByAccount:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByAccount(n,r,a,o,i,s)(),getTransactionsByCategory:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByCategory(n,r,a,o,i,s)(),getTransactionsByPayee:(n,r,a,o,i,s)=>t.TransactionsApiFp(e).getTransactionsByPayee(n,r,a,o,i,s)(),importTransactions:(n,r)=>t.TransactionsApiFp(e).importTransactions(n,r)(),updateTransaction:(n,r,a,o)=>t.TransactionsApiFp(e).updateTransaction(n,r,a,o)(),updateTransactions:(n,r,a)=>t.TransactionsApiFp(e).updateTransactions(n,r,a)()}},t.TransactionsApi=class extends c{createTransaction(e,n,r){return t.TransactionsApiFp(this.configuration).createTransaction(e,n,r)()}getTransactionById(e,n,r){return t.TransactionsApiFp(this.configuration).getTransactionById(e,n,r)()}getTransactions(e,n,r,a,o){return t.TransactionsApiFp(this.configuration).getTransactions(e,n,r,a,o)()}getTransactionsByAccount(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByAccount(e,n,r,a,o,i)()}getTransactionsByCategory(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByCategory(e,n,r,a,o,i)()}getTransactionsByPayee(e,n,r,a,o,i){return t.TransactionsApiFp(this.configuration).getTransactionsByPayee(e,n,r,a,o,i)()}importTransactions(e,n){return t.TransactionsApiFp(this.configuration).importTransactions(e,n)()}updateTransaction(e,n,r,a){return t.TransactionsApiFp(this.configuration).updateTransaction(e,n,r,a)()}updateTransactions(e,n,r){return t.TransactionsApiFp(this.configuration).updateTransactions(e,n,r)()}},t.UserApiFetchParamCreator=function(e){return{getUser(t={}){const n=o.parse("/user",!0),r=Object.assign({method:"GET"},t),a={};if(a["User-Agent"]=i,a.Accept="application/json",e&&e.apiKey){const t=e.apiKey;a.Authorization=t}return n.query=Object.assign({},n.query,{},t.query),delete n.search,r.headers=Object.assign({},a,t.headers),{url:o.format(n),options:r}}}},t.UserApiFp=function(e){return{getUser(n){const a=t.UserApiFetchParamCreator(e).getUser(n);return(t=fetch)=>t(e.basePath+a.url,a.options).then((e=>r(this,void 0,void 0,(function*(){if(e.status>=200&&e.status<300){const t=yield e.json();return t.rateLimit=e.headers.get("X-Rate-Limit"),t}return e.json().then((e=>Promise.reject(e)))}))))}}},t.UserApiFactory=function(e){return{getUser:n=>t.UserApiFp(e).getUser(n)()}},t.UserApi=class extends c{getUser(e){return t.UserApiFp(this.configuration).getUser(e)()}}},610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e,t){this.apiKey=`Bearer ${e}`,this.basePath=t}}},465:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.api=t.utils=t.API=void 0;const o=n(610),i=n(665),s=n(802),c=n(679);t.utils=c.default,a(n(665),t);class u{constructor(e,t="https://api.youneedabudget.com/v1"){this._configuration=new o.Configuration(e,t)}get user(){return this._user||(this._user=new i.UserApi(this._configuration)),this._user}get budgets(){return this._budgets||(this._budgets=new i.BudgetsApi(this._configuration)),this._budgets}get accounts(){return this._accounts||(this._accounts=new i.AccountsApi(this._configuration)),this._accounts}get categories(){return this._categories||(this._categories=new i.CategoriesApi(this._configuration)),this._categories}get months(){return this._months||(this._months=new i.MonthsApi(this._configuration)),this._months}get payees(){return this._payees||(this._payees=new i.PayeesApi(this._configuration)),this._payees}get payeeLocations(){return this._payeeLocations||(this._payeeLocations=new i.PayeeLocationsApi(this._configuration)),this._payeeLocations}get transactions(){return this._transactions||(this._transactions=new s.TransactionsApi(this._configuration)),this._transactions}get scheduledTransactions(){return this._scheduledTransactions||(this._scheduledTransactions=new i.ScheduledTransactionsApi(this._configuration)),this._scheduledTransactions}}t.api=u,t.API=u},802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsApi=void 0;const r=n(665);class a extends r.TransactionsApi{getTransactionsByType(e,t,n,a){return r.TransactionsApiFp(this.configuration).getTransactions(e,void 0,t,n,a)()}createTransactions(e,t,n){return r.TransactionsApiFp(this.configuration).createTransaction(e,t,n)()}bulkCreateTransactions(e,t,n){return r.DeprecatedApiFp(this.configuration).bulkCreateTransactions(e,t,n)()}}t.TransactionsApi=a},679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getCurrentMonthInISOFormat(){return`${this.getCurrentDateInISOFormat().substr(0,7)}-01`},getCurrentDateInISOFormat(){let e=new Date;return new Date(e.getTime()-6e4*e.getTimezoneOffset()).toISOString()},convertFromISODateString:e=>new Date(new Date(e)),convertMilliUnitsToCurrencyAmount(e,t=2){let n=Math.pow(10,3-Math.min(3,t));n=1/n;let r=Math.round(e*n)/n*(.1/Math.pow(10,2));return Number(r.toFixed(t))}}},511:function(e,t,n){var r;e=n.nmd(e),function(a){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,c=36,u=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,g=String.fromCharCode;function y(e){throw RangeError(l[e])}function f(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+f((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(n=e.charCodeAt(a++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--):r.push(t);return r}function A(e){return f(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+g(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=c)e=p(e/35);return p(r+36*e/(e+38))}function _(e){var t,n,r,a,o,i,u,d,h,l,g,f=[],m=e.length,b=0,w=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&y("not-basic"),f.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<m;){for(o=b,i=1,u=c;a>=m&&y("invalid-input"),((d=(g=e.charCodeAt(a++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||d>p((s-b)/i))&&y("overflow"),b+=d*i,!(d<(h=u<=_?1:u>=_+26?26:u-_));u+=c)i>p(s/(l=c-h))&&y("overflow"),i*=l;_=T(b-o,t=f.length+1,0==o),p(b/t)>s-w&&y("overflow"),w+=p(b/t),b%=t,f.splice(b++,0,w)}return A(f)}function v(e){var t,n,r,a,o,i,u,d,h,l,f,m,A,_,v,j=[];for(m=(e=b(e)).length,t=128,n=0,o=72,i=0;i<m;++i)(f=e[i])<128&&j.push(g(f));for(r=a=j.length,a&&j.push("-");r<m;){for(u=s,i=0;i<m;++i)(f=e[i])>=t&&f<u&&(u=f);for(u-t>p((s-n)/(A=r+1))&&y("overflow"),n+=(u-t)*A,t=u,i=0;i<m;++i)if((f=e[i])<t&&++n>s&&y("overflow"),f==t){for(d=n,h=c;!(d<(l=h<=o?1:h>=o+26?26:h-o));h+=c)v=d-l,_=c-l,j.push(g(w(l+v%_,0))),d=p(v/_);j.push(g(w(d,0))),o=T(n,A,r==a),n=0,++r}++n,++t}return j.join("")}i={version:"1.3.2",ucs2:{decode:b,encode:A},decode:_,encode:v,toASCII:function(e){return m(e,(function(e){return d.test(e)?"xn--"+v(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},575:(e,t,n)=>{"use strict";var r=n(511),a=n(502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=function(e,t){return A(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?A(e,!1,!0).resolveObject(t):t},t.format=function(e){return a.isString(e)&&(e=A(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(u),h=["%","/","?",";","#"].concat(d),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(673);function A(e,t,n){if(e&&a.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var A=e=u.join(s);if(A=A.trim(),!n&&1===e.split("#").length){var w=c.exec(A);if(w)return this.path=A,this.href=A,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var T=i.exec(A);if(T){var _=(T=T[0]).toLowerCase();this.protocol=_,A=A.substr(T.length)}if(n||T||A.match(/^\/\/[^@\/]+@[^@\/]+/)){var v="//"===A.substr(0,2);!v||T&&f[T]||(A=A.substr(2),this.slashes=!0)}if(!f[T]&&(v||T&&!m[T])){for(var j,C,P=-1,B=0;B<l.length;B++)-1!==(O=A.indexOf(l[B]))&&(-1===P||O<P)&&(P=O);for(-1!==(C=-1===P?A.lastIndexOf("@"):A.lastIndexOf("@",P))&&(j=A.slice(0,C),A=A.slice(C+1),this.auth=decodeURIComponent(j)),P=-1,B=0;B<h.length;B++){var O;-1!==(O=A.indexOf(h[B]))&&(-1===P||O<P)&&(P=O)}-1===P&&(P=A.length),this.host=A.slice(0,P),A=A.slice(P),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var R=this.hostname.split(/\./),q=(B=0,R.length);B<q;B++){var I=R[B];if(I&&!I.match(p)){for(var E="",S=0,U=I.length;S<U;S++)I.charCodeAt(S)>127?E+="x":E+=I[S];if(!E.match(p)){var L=R.slice(0,B),M=R.slice(B+1),x=I.match(g);x&&(L.push(x[1]),M.unshift(x[2])),M.length&&(A="/"+M.join(".")+A),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",K=this.hostname||"";this.host=K+D,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==A[0]&&(A="/"+A))}if(!y[_])for(B=0,q=d.length;B<q;B++){var k=d[B];if(-1!==A.indexOf(k)){var G=encodeURIComponent(k);G===k&&(G=escape(k)),A=A.split(k).join(G)}}var z=A.indexOf("#");-1!==z&&(this.hash=A.substr(z),A=A.slice(0,z));var X=A.indexOf("?");if(-1!==X?(this.search=A.substr(X),this.query=A.substr(X+1),t&&(this.query=b.parse(this.query)),A=A.slice(0,X)):t&&(this.search="",this.query={}),A&&(this.pathname=A),m[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var Y=this.search||"";this.path=D+Y}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=b.stringify(this.query));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(A(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(a.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];"protocol"!==d&&(n[d]=e[d])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var p=h[l];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var g=(e.pathname||"").split("/");g.length&&!(e.host=g.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==g[0]&&g.unshift(""),g.length<2&&g.unshift(""),n.pathname=g.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",b=n.search||"";n.path=y+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var A=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),T=w||A||n.host&&e.pathname,_=T,v=n.pathname&&n.pathname.split("/")||[],j=(g=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===v[0]?v[0]=n.host:v.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===g[0]?g[0]=e.host:g.unshift(e.host)),e.host=null),T=T&&(""===g[0]||""===v[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,v=g;else if(g.length)v||(v=[]),v.pop(),v=v.concat(g),n.search=e.search,n.query=e.query;else if(!a.isNullOrUndefined(e.search))return j&&(n.hostname=n.host=v.shift(),(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift())),n.search=e.search,n.query=e.query,a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!v.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=v.slice(-1)[0],P=(n.host||e.host||v.length>1)&&("."===C||".."===C)||""===C,B=0,O=v.length;O>=0;O--)"."===(C=v[O])?v.splice(O,1):".."===C?(v.splice(O,1),B++):B&&(v.splice(O,1),B--);if(!T&&!_)for(;B--;B)v.unshift("..");!T||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),P&&"/"!==v.join("/").substr(-1)&&v.push("");var F,R=""===v[0]||v[0]&&"/"===v[0].charAt(0);return j&&(n.hostname=n.host=R?"":v.length?v.shift():"",(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift())),(T=T||n.host&&v.length)&&!R&&v.unshift(""),v.length?n.pathname=v.join("/"):(n.pathname=null,n.path=null),a.isNull(n.pathname)&&a.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=n(465);ynab=r})();
package/dist/esm/api.d.ts CHANGED
@@ -800,6 +800,12 @@ export interface HybridTransactionsResponseData {
800
800
  * @memberof HybridTransactionsResponseData
801
801
  */
802
802
  transactions: Array<HybridTransaction>;
803
+ /**
804
+ * The knowledge of the server
805
+ * @type {number}
806
+ * @memberof HybridTransactionsResponseData
807
+ */
808
+ server_knowledge?: number | null;
803
809
  }
804
810
  /**
805
811
  *
package/dist/esm/api.js CHANGED
@@ -68,7 +68,7 @@ if (!globalThis.fetch) {
68
68
  globalThis.Request = fetchPonyfill.Request;
69
69
  }
70
70
  import * as url from "url";
71
- var USER_AGENT = "api_client/js/1.29.0";
71
+ var USER_AGENT = "api_client/js/1.32.0";
72
72
  function convertDateToFullDateStringFormat(date) {
73
73
  // Convert to RFC 3339 "full-date" format, like "2017-11-27"
74
74
  if (date instanceof Date) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ynab",
3
- "version": "1.32.0",
3
+ "version": "1.42.0",
4
4
  "description": "YNAB API Javascript (Node) Library",
5
5
  "author": "You Need a Budget, LLC",
6
6
  "keywords": [
@@ -40,7 +40,7 @@
40
40
  "chai": "^4.2.0",
41
41
  "fetch-mock": "^9.10.6",
42
42
  "jsh": "0.34.0",
43
- "mocha": "^8.1.1",
43
+ "mocha": "^10.2.0",
44
44
  "npm-github-release": "^0.13.0",
45
45
  "swagger-model-validator": "^3.0.19",
46
46
  "ts-loader": "^8.0.2",
@@ -48,7 +48,7 @@
48
48
  "typescript": "^3.9.7",
49
49
  "url": "^0.11.0",
50
50
  "webpack": "^5.74.0",
51
- "webpack-cli": "^3.3.12"
51
+ "webpack-cli": "^5.0.1"
52
52
  },
53
53
  "dependencies": {
54
54
  "fetch-ponyfill": "^7.1.0"