UNPKG

trello-for-wolves

Version:
49 lines 97.9 kB
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({106:[function(require,module,exports) { !function(t){!function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r.iterable&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function d(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():r.arrayBuffer&&r.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=c(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,e,r,o=u(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=f(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=i(t),e=s(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[i(t)]},h.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},h.prototype.set=function(t,e){this.map[i(t)]=s(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),a(t)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},h.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),a(t)},r.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(t,e){var r,o,n=(e=e||{}).body;if(t instanceof l){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",o=r.toUpperCase(),p.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function b(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function m(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}l.prototype.clone=function(){return new l(this,{body:this._bodyInit})},y.call(l.prototype),y.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];m.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,o){return new Promise(function(n,i){var s=new l(t,o);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}}),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new m(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),s.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=h,t.Request=l,t.Response=m),e.Headers=h,e.Request=l,e.Response=m,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this); },{}],4:[function(require,module,exports) { "use strict";var r=this&&this.__extends||function(){var r=function(o,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(r[t]=o[t])})(o,t)};return function(o,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=o}r(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.TrelloForWolvesError=void 0;var o=function(o){function t(r){var t=o.call(this,"Trello for Wolves: ".concat(r))||this;return t.name="TrelloForWolvesError",t}return r(t,o),t}(Error);exports.TrelloForWolvesError=o; },{}],113:[function(require,module,exports) { var global = arguments[3]; var u=arguments[3],e=1/0,t="[object Symbol]",f=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",r="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",i="\\u2700-\\u27bf",x="a-z\\xdf-\\xf6\\xf8-\\xff",a="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",b=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",j=a+d+l+b,p="['’]",A="["+j+"]",O="["+r+c+"]",E="\\d+",y="["+i+"]",v="["+x+"]",I="[^"+o+j+E+i+x+s+"]",U="\\ud83c[\\udffb-\\udfff]",h="(?:"+O+"|"+U+")",m="[^"+o+"]",z="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",Z="["+s+"]",L="\\u200d",R="(?:"+v+"|"+I+")",C="(?:"+Z+"|"+I+")",N="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",T="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",D=h+"?",G="["+g+"]?",Y="(?:"+L+"(?:"+[m,z,S].join("|")+")"+G+D+")*",k=G+D+Y,w="(?:"+[y,z,S].join("|")+")"+k,H=RegExp(p,"g"),J=RegExp(O,"g"),$=RegExp([Z+"?"+v+"+"+N+"(?="+[A,Z,"$"].join("|")+")",C+"+"+T+"(?="+[A,Z+R,"$"].join("|")+")",Z+"?"+R+"+"+N,Z+"+"+T,E,w].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,K={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},M="object"==typeof u&&u&&u.Object===Object&&u,V="object"==typeof self&&self&&self.Object===Object&&self,W=M||V||Function("return this")();function _(u,e,t,f){var n=-1,o=u?u.length:0;for(f&&o&&(t=u[++n]);++n<o;)t=e(t,u[n],n,u);return t}function q(u){return u.match(f)||[]}function B(u){return function(e){return null==u?void 0:u[e]}}var P=B(K);function Q(u){return F.test(u)}function X(u){return u.match($)||[]}var uu=Object.prototype,eu=uu.toString,tu=W.Symbol,fu=tu?tu.prototype:void 0,nu=fu?fu.toString:void 0;function ou(u){if("string"==typeof u)return u;if(iu(u))return nu?nu.call(u):"";var t=u+"";return"0"==t&&1/u==-e?"-0":t}function ru(u){return function(e){return _(lu(au(e).replace(H,"")),u,"")}}function cu(u){return!!u&&"object"==typeof u}function iu(u){return"symbol"==typeof u||cu(u)&&eu.call(u)==t}function xu(u){return null==u?"":ou(u)}function au(u){return(u=xu(u))&&u.replace(n,P).replace(J,"")}var du=ru(function(u,e,t){return u+(t?"_":"")+e.toLowerCase()});function lu(u,e,t){return u=xu(u),void 0===(e=t?void 0:e)?Q(u)?X(u):q(u):u.match(e)||[]}module.exports=du; },{}],112:[function(require,module,exports) { "use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringifyQueryParams=exports.UNCHANGED_PARAM_NAMES=void 0;var t=r(require("lodash.snakecase"));function a(r){for(var t=r,a=[],s=0,i=Object.entries(t);s<i.length;s++){var l=i[s],u=l[0],d=l[1],p=d instanceof Date;if("object"===(void 0===d?"undefined":e(d))&&!p&&!Array.isArray(d)&&null!==d){var m=o(u,t);a.push(m)}else if("separator"!==u){var f=c(u),y=n(d);a.push("".concat(f,"=").concat(y))}}return a.join("&")}function o(e,r){var t=r[e],a=[],o="/";"separator"in r&&(o=r.separator);for(var c=0,s=Object.entries(t);c<s.length;c++){var i=s[c],l=i[0],u=n(i[1]),d="".concat(e).concat(o).concat(l);a.push("".concat(d,"=").concat(u))}return a.join("&")}function c(e){return exports.UNCHANGED_PARAM_NAMES.includes(e)?e:"id"===e.substr(0,2)?e:"cardBoard"===e?"card_board":s(e)}function s(e){for(var r=(0,t.default)(e),a=0,o=Object.entries({member_creator:{search:"_creator",replace:"Creator"},_voted:{search:"_voted",replace:"Voted"},plugin_data:{search:"_data",replace:"Data"},_invited:{search:"_invited",replace:"Invited"},check_item:{search:"check_item",replace:"checkItem"},_state:{search:"_state",replace:"State"},sort_by:{search:"sort_by",replace:"sortBy"},sort_order:{search:"sort_order",replace:"sortOrder"},start_index:{search:"start_index",replace:"startIndex"}});a<o.length;a++){var c=o[a],s=c[0],n=c[1],i=n.search,l=n.replace;r.includes(s)&&(r=r.replace(i,l))}return r}function n(e){return e instanceof Date?e.toISOString():e}exports.UNCHANGED_PARAM_NAMES=["allowBillableGuest","avatarSource","boardBackgrounds","boardStars","callbackURL","cardFront","confirmationAccepted","customBoardBackgrounds","customEmoji","customFieldItems","customFields","customStickers","defaultLabels","defaultLists","descData","displayName","dueComplete","enterpriseOwned","fieldGroup","fileSource","fullName","ixLastUpdate","keepFromSource","labelNames","locationName","mimeType","modelType","modelTypes","myPrefs","onlyOrgMembers","orgMemberType","powerUp","powerUps","reactionsSummary","returnUrl","savedSearches","shortUrl","tosAccepted","urlSource","webhook","webhooks","website","zIndex"],exports.stringifyQueryParams=a; },{"lodash.snakecase":113}],110:[function(require,module,exports) { "use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildApiUrl=void 0;var e=require("./stringifyQueryParams");function t(t){var i=t.endpoint,o=t.trelloConfig,a=t.paramsByName,s=r(r({},a),{key:o.key,token:o.token}),c=(0,e.stringifyQueryParams)(s),p=n("/".concat(i));return"https://api.trello.com/1".concat(p,"?").concat(c)}function n(r){return r.replace(/\/+/g,"/").replace(/\/+$/,"")}exports.buildApiUrl=t; },{"./stringifyQueryParams":112}],109:[function(require,module,exports) { "use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(o){return null==o||(Array.isArray(o)?0===o.length:"object"===(void 0===o?"undefined":t(o))&&0===Object.keys(o).length)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isEmpty=void 0,exports.isEmpty=o; },{}],111:[function(require,module,exports) { var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};module.exports="object"==("undefined"==typeof self?"undefined":o(self))?self.FormData:window.FormData; },{}],44:[function(require,module,exports) { "use strict";var e=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]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(u,a)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchFromApi=void 0;var o=require("../TrelloForWolvesError"),u=require("./buildApiUrl"),a=require("./isEmpty");function l(e){var t,n=e.endpoint,a=e.trelloConfig,l=e.fetchConfig,s=void 0===l?null:l,p=e.paramsByName,d=void 0===p?null:p;return r(this,void 0,Promise,function(){var e,r,l,p,h,m,v;return i(this,function(i){switch(i.label){case 0:if(!a.key)throw new o.TrelloForWolvesError('You must provide a "key" to the Trello instance config object');if(!a.token)throw new o.TrelloForWolvesError('You must provide a "token" to the Trello instance config object');return e=a.backoffTime,r=void 0===e?3e3:e,l=a.maxRetryAttempts,p=void 0===l?5:l,h=null===d?{}:d,v=m=null===s?{method:"GET"}:s,[4,c(a,null!==(t=m.body)&&void 0!==t?t:null,h)];case 1:return v.body=i.sent(),"file"in h&&delete h.file,"fileSource"in h&&delete h.fileSource,[4,f((0,u.buildApiUrl)({endpoint:n,trelloConfig:a,paramsByName:h}),m,r,p)];case 2:return[2,i.sent()]}})})}function c(e,t,o){return r(this,void 0,Promise,function(){var r,u;return i(this,function(i){switch(i.label){case 0:return"string"==typeof t||t instanceof String?[2,t]:(r="file"in o||"fileSource"in o,(0,a.isEmpty)(o)||!r?[3,2]:"undefined"!=typeof window&&void 0!==window.FormData?[2,s(new window.FormData,e,o)]:[4,Promise.resolve().then(function(){return n(require("form-data"))})]);case 1:return u=i.sent().default,[2,s(new u,e,o)];case 2:return(0,a.isEmpty)(t)?[2,null]:[2,JSON.stringify(t)]}})})}function s(e,t,n){var r=e;r.append("key",t.key),r.append("token",t.token);var i="fileSource"in n?"fileSource":"file";return r.append(i,n[i]),"name"in n&&r.append("name",n.name),"mimeType"in n&&r.append("mimeType",n.mimeType),r}function f(e,t,n,o){return r(this,void 0,Promise,function(){var r;return i(this,function(i){switch(i.label){case 0:return[4,fetch(e,t)];case 1:return 429===(r=i.sent()).status&&o>0?[4,p(n)]:[3,4];case 2:return i.sent(),[4,f(e,t,n,o-1)];case 3:return[2,i.sent()];case 4:return[2,r]}})})}function p(e){return new Promise(function(t){return setTimeout(t,e)})}exports.fetchFromApi=l; },{"../TrelloForWolvesError":4,"./buildApiUrl":110,"./isEmpty":109,"form-data":111}],108:[function(require,module,exports) { "use strict";var t=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.BaseResource=void 0;var e=require("../utils/fetchFromApi"),i=function(){function i(e,i,n,r){var o;void 0===r&&(r={}),this.config=e,this.parentElements=i,this.groupName=n,this.identifier="",this.pathElements=t(t([],i,!0),[n],!1),this.identifier=null!==(o=r.identifier)&&void 0!==o?o:"",this.identifier&&this.pathElements.push(this.identifier)}return i.prototype.isChildOf=function(t){var e=this.pathElements[0];if(Array.isArray(t)){var i=t.join("|");return new RegExp(i,"ig").test(e)}return e.includes(t)},i.prototype.apiGet=function(t,e,i){var n=this.pathElements.join("/").concat(t);return this.onApiFetch("GET",n,e,i)},i.prototype.apiPut=function(t,e,i){var n=this.pathElements.join("/").concat(t);return this.onApiFetch("PUT",n,e,i)},i.prototype.apiPost=function(t,e,i){var n=this.pathElements.join("/").concat(t);return this.onApiFetch("POST",n,e,i)},i.prototype.apiDelete=function(t,e,i){var n=this.pathElements.join("/").concat(t);return this.onApiFetch("DELETE",n,e,i)},i.prototype.onApiFetch=function(t,i,n,r){return void 0===r&&(r={}),(0,e.fetchFromApi)({endpoint:i,trelloConfig:this.config,fetchConfig:{body:r,method:t},paramsByName:n})},i}();exports.BaseResource=i; },{"../utils/fetchFromApi":44}],50:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.BoardMyPrefs=void 0;var e=require("./BaseResource"),o=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o.prototype.getMyPrefs=function(){return this.apiGet("/")},o.prototype.updateEmailPosition=function(t){return this.apiPut("/emailPosition",{value:t})},o.prototype.moveToEmailList=function(t){return this.apiPut("/idEmailList",{value:t})},o.prototype.updateShowListGuide=function(t){return this.apiPut("/showListGuide",{value:t})},o.prototype.updateShowSidebar=function(t){return this.apiPut("/showSidebar",{value:t})},o.prototype.updateShowSidebarActivity=function(t){return this.apiPut("/showSidebarActivity",{value:t})},o.prototype.updateShowSidebarBoardActions=function(t){return this.apiPut("/showSidebarBoardActions",{value:t})},o.prototype.updateShowSidebarMembers=function(t){return this.apiPut("/showSidebarMembers",{value:t})},o}(e.BaseResource);exports.BoardMyPrefs=o; },{"./BaseResource":108}],52:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.BoardPref=void 0;var e=require("./BaseResource"),r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.updateBackground=function(t){return this.apiPut("/background",{value:t})},r.prototype.updateCalendarFeedEnabled=function(t){return this.apiPut("/calendarFeedEnabled",{value:t})},r.prototype.updateCardAging=function(t){return this.apiPut("/cardAging",{value:t})},r.prototype.updateCardCovers=function(t){return this.apiPut("/cardCovers",{value:t})},r.prototype.updateComments=function(t){return this.apiPut("/comments",{value:t})},r.prototype.updateInvitations=function(t){return this.apiPut("/invitations",{value:t})},r.prototype.updatePermissionLevel=function(t){return this.apiPut("/permissionLevel",{value:t})},r.prototype.updateSelfJoin=function(t){return this.apiPut("/selfJoin",{value:t})},r.prototype.updateVoting=function(t){return this.apiPut("/voting",{value:t})},r}(e.BaseResource);exports.BoardPref=r; },{"./BaseResource":108}],54:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(r,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])})(r,o)};return function(r,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.BoardStar=void 0;var r=require("./BaseResource"),o=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return t(o,r),o.prototype.getBoardStar=function(){return this.apiGet("/")},o.prototype.getBoardStars=function(t){return this.apiGet("/",t)},o.prototype.addBoardStar=function(t){return this.apiPost("/",t)},o.prototype.updateBoardStar=function(t){return this.apiPut("/",t)},o.prototype.moveToBoard=function(t){return this.apiPut("/idBoard",{value:t})},o.prototype.updatePosition=function(t){return this.apiPut("/pos",{value:t})},o.prototype.deleteBoardStar=function(){return this.apiDelete("/")},o}(r.BaseResource);exports.BoardStar=o; },{"./BaseResource":108}],46:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.Attachment=void 0;var e=require("./BaseResource"),n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getAttachment=function(t){return this.apiGet("/",t)},n.prototype.getAttachments=function(t){return this.apiGet("/",t)},n.prototype.uploadAttachment=function(t){return this.apiPost("/",t)},n.prototype.deleteAttachment=function(){return this.apiDelete("/")},n}(e.BaseResource);exports.Attachment=n; },{"./BaseResource":108}],56:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CheckItem=void 0;var r=require("../TrelloForWolvesError"),o=require("./BaseResource"),n=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return t(n,o),n.prototype.getCheckItem=function(t){return this.apiGet("/",t)},n.prototype.getCheckItems=function(t){return this.apiGet("/",t)},n.prototype.getCheckItemStates=function(t){return this.apiGet("/",t)},n.prototype.addCheckItem=function(t){return this.apiPost("/",t)},n.prototype.convertToCard=function(){return this.apiPost("/convertToCard")},n.prototype.updateCheckItem=function(t){var o,n=e({},t);if("checklist"===(null!==(o=this.parentElements[2])&&void 0!==o?o:"")&&(n.idChecklist=t.idChecklist||this.parentElements[3]),!n.idChecklist)throw new r.TrelloForWolvesError('You must specify the "idChecklist" param when calling updateCheckItem()');return this.apiPut("/",n)},n.prototype.updateName=function(t){return this.apiPut("/name",{value:t})},n.prototype.updatePosition=function(t){return this.apiPut("/pos",{value:t})},n.prototype.updateState=function(t){return this.apiPut("/state",{value:t})},n.prototype.deleteCheckItem=function(){return this.apiDelete("/")},n}(o.BaseResource);exports.CheckItem=n; },{"../TrelloForWolvesError":4,"./BaseResource":108}],16:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Checklist=void 0;var r=require("../TrelloForWolvesError"),o=require("./BaseResource"),n=require("./Board"),i=require("./Card"),s=require("./CheckItem"),c=function(o){function c(){return null!==o&&o.apply(this,arguments)||this}return t(c,o),c.prototype.getChecklist=function(t){return this.apiGet("/",t)},c.prototype.getChecklists=function(t){return this.apiGet("/",t)},c.prototype.getFieldValue=function(t){return this.apiGet("/".concat(t))},c.prototype.addChecklist=function(t){var o=e({},t);if(this.isChildOf("card")&&(o.idCard=this.parentElements[1]),!o.idCard)throw new r.TrelloForWolvesError('You must specify the "idCard" param when calling addLabel()');return this.apiPost("/",o)},c.prototype.updateChecklist=function(t){return this.apiPut("/",t)},c.prototype.updateName=function(t){return this.apiPut("/name",{value:t})},c.prototype.updatePosition=function(t){return this.apiPut("/pos",{value:t})},c.prototype.deleteChecklist=function(){return this.apiDelete("/")},c.prototype.board=function(){return new n.Board(this.config,this.pathElements,"board")},c.prototype.cards=function(){return new i.Card(this.config,this.pathElements,"cards")},c.prototype.checkItem=function(t){return new s.CheckItem(this.config,this.pathElements,"checkItem",{identifier:t})},c.prototype.checkItems=function(t){return void 0===t&&(t=""),new s.CheckItem(this.config,this.pathElements,"checkItems",{identifier:t})},c}(o.BaseResource);exports.Checklist=c; },{"../TrelloForWolvesError":4,"./BaseResource":108,"./Board":12,"./Card":14,"./CheckItem":56}],58:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Comment=void 0;var o=require("./BaseResource"),n=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return t(n,o),n.prototype.getComment=function(t){return this.apiGet("/",t)},n.prototype.getComments=function(t){return this.apiGet("/",e(e({},t),{filter:"commentCard"}))},n.prototype.addComment=function(t){return this.apiPost("/comments",{text:t})},n.prototype.updateComment=function(t){return this.apiPut("/comments",{text:t})},n.prototype.updateText=function(t){return this.apiPut("/text",{value:t})},n.prototype.deleteComment=function(){return this.apiDelete("/comments")},n}(o.BaseResource);exports.Comment=n; },{"./BaseResource":108}],64:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomFieldOption=void 0;var r=require("../TrelloForWolvesError"),o=require("./BaseResource"),n=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return t(n,o),n.prototype.getOption=function(){return this.apiGet("/")},n.prototype.getOptions=function(){return this.apiGet("/")},n.prototype.getCustomFieldItems=function(){return this.apiGet("/")},n.prototype.addOption=function(t){var e=this.stringifyOptionValue(t);return this.isChildOf("card")?this.apiPut("/",{},e):this.apiPost("/",{},e)},n.prototype.updateOption=function(t){if(!this.isChildOf("card"))throw new r.TrelloForWolvesError("You can only call updateOption() from a parent card");var e=this.stringifyOptionValue(t);return this.apiPut("/",{},e)},n.prototype.deleteOption=function(){return this.isChildOf("card")?(this.pathElements.length>5&&this.pathElements.pop(),this.apiPut("/",{},{value:"",key:"",token:""})):this.apiDelete("/")},n.prototype.stringifyOptionValue=function(t){var r=e({},t),o=Object.entries(r.value)[0],n=o[0],i=o[1];return r.value[n]=i.toString(),r},n}(o.BaseResource);exports.CustomFieldOption=n; },{"../TrelloForWolvesError":4,"./BaseResource":108}],18:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(r,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])})(r,o)};return function(r,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var r,o=1,e=arguments.length;o<e;o++)for(var i in r=arguments[o])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomField=void 0;var o=require("../TrelloForWolvesError"),e=require("./BaseResource"),i=require("./CustomFieldOption"),n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.getCustomField=function(t){return this.apiGet("/",t)},n.prototype.getCustomFields=function(t){return this.apiGet("/",t)},n.prototype.addCustomField=function(t){if(!this.isChildOf("board"))throw new o.TrelloForWolvesError("You can only call addCustomField() from a board resource");var e=this.parentElements[1];if(!e)throw new o.TrelloForWolvesError("You must pass an ID into the board resource when calling addCustomField()");var i=r({},t);return void 0!==i.displayCardFront&&(i.display_cardFront=i.displayCardFront,delete i.displayCardFront),i.idModel=e,i.modelType="board",this.apiPost("/",void 0,i)},n.prototype.updateCustomField=function(t){var o=r({},t);return o.displayCardFront&&(o["display/cardFront"]=o.displayCardFront,delete o.displayCardFront),this.apiPut("/",{},o)},n.prototype.deleteCustomField=function(){return this.apiDelete("/")},n.prototype.options=function(t){void 0===t&&(t="");var r=this.isChildOf("card")?"item":"options";return new i.CustomFieldOption(this.config,this.pathElements,r,{identifier:t})},n}(e.BaseResource);exports.CustomField=n; },{"../TrelloForWolvesError":4,"./BaseResource":108,"./CustomFieldOption":64}],22:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var o,i=0,n=e.length;i<n;i++)!o&&i in e||(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Label=void 0;var o=require("../TrelloForWolvesError"),i=require("./BaseResource"),n=require("./Board"),a=function(i){function a(){return null!==i&&i.apply(this,arguments)||this}return t(a,i),a.prototype.getLabel=function(t){return this.apiGet("/",t)},a.prototype.getLabels=function(t){return this.apiGet("/",t)},a.prototype.addLabel=function(t){var r=e({},t);if(this.isChildOf("board")&&(r.idBoard=this.pathElements[1]),!r.idBoard)throw new o.TrelloForWolvesError('You must specify the "idBoard" param when calling addLabel()');return this.apiPost("/",r)},a.prototype.associateLabel=function(){if(!this.isChildOf("card"))throw new o.TrelloForWolvesError("You can only call associateLabel() on a card");if(!this.identifier)throw new o.TrelloForWolvesError("You must pass a label ID into the labels() instance when calling associateLabel()");return this.pathElements=r(r([],this.parentElements,!0),["idLabels"],!1),this.apiPost("/",{value:this.identifier})},a.prototype.updateLabel=function(t){return this.apiPut("/",t)},a.prototype.updateColor=function(t){return this.apiPut("/color",{value:t})},a.prototype.updateName=function(t){return this.apiPut("/name",{value:t})},a.prototype.deleteLabel=function(){return this.apiDelete("/")},a.prototype.dissociateLabel=function(){if(!this.isChildOf("card"))throw new o.TrelloForWolvesError("You can only call dissociateLabel() on a card");if(!this.identifier)throw new o.TrelloForWolvesError("You must pass a label ID into the labels() instance when calling associateLabel()");return this.pathElements=r(r([],this.parentElements,!0),["idLabels",this.identifier],!1),this.apiDelete("/")},a.prototype.board=function(){return new n.Board(this.config,this.pathElements,"board")},a}(i.BaseResource);exports.Label=a; },{"../TrelloForWolvesError":4,"./BaseResource":108,"./Board":12}],26:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var i in r=arguments[e])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.List=void 0;var e=require("../TrelloForWolvesError"),o=require("./Action"),i=require("./BaseResource"),n=require("./Board"),s=require("./Card"),u=function(i){function u(){return null!==i&&i.apply(this,arguments)||this}return t(u,i),u.prototype.getList=function(t){return this.apiGet("/",t)},u.prototype.getLists=function(t){return this.apiGet("/",t)},u.prototype.getListsFilteredBy=function(t){return this.apiGet("/".concat(t))},u.prototype.getFieldValue=function(t){return this.apiGet("/".concat(t))},u.prototype.addList=function(t){var o=r({},t);if(this.isChildOf("board")&&(o.idBoard=this.pathElements[1]),!o.idBoard)throw new e.TrelloForWolvesError('You must specify the "idBoard" param when calling addList()');return this.apiPost("/",o)},u.prototype.updateList=function(t){return this.apiPut("/",t)},u.prototype.updateClosedStatus=function(t){return this.apiPut("/closed",{value:t})},u.prototype.moveToBoard=function(t){return this.apiPut("/idBoard",{value:t})},u.prototype.updateName=function(t){return this.apiPut("/name",{value:t})},u.prototype.updatePosition=function(t){return this.apiPut("/pos",{value:t})},u.prototype.updateSoftLimit=function(t){var r="none"===t?"":t;return this.apiPut("/softLimit",{value:r})},u.prototype.updateSubscribed=function(t){return this.apiPut("/subscribed",{value:t})},u.prototype.archiveAllCards=function(){return this.apiPost("/archiveAllCards")},u.prototype.moveAllCards=function(t){return this.apiPost("/moveAllCards",t)},u.prototype.actions=function(){return new o.Action(this.config,this.pathElements,"actions")},u.prototype.board=function(){return new n.Board(this.config,this.pathElements,"board")},u.prototype.cards=function(){return new s.Card(this.config,this.pathElements,"cards")},u}(i.BaseResource);exports.List=u; },{"../TrelloForWolvesError":4,"./Action":8,"./BaseResource":108,"./Board":12,"./Card":14}],48:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(o,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])})(o,r)};return function(o,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=o}t(o,r),o.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomBoardBackground=exports.BoardBackground=void 0;var o=require("./BaseResource"),r=function(o){function r(){return null!==o&&o.apply(this,arguments)||this}return t(r,o),r.prototype.getBoardBackground=function(t){return this.apiGet("/",t)},r.prototype.getBoardBackgrounds=function(t){return this.apiGet("/",t)},r.prototype.uploadBoardBackground=function(t){return this.apiPost("/",{file:t})},r.prototype.updateBoardBackground=function(t){return this.apiPut("/",t)},r.prototype.deleteBoardBackground=function(){return this.apiDelete("/")},r}(o.BaseResource);exports.BoardBackground=r;var e=function(o){function r(){return null!==o&&o.apply(this,arguments)||this}return t(r,o),r.prototype.getCustomBoardBackground=function(t){return this.apiGet("/",t)},r.prototype.getCustomBoardBackgrounds=function(){return this.apiGet("/")},r.prototype.uploadCustomBoardBackground=function(t){return this.apiPost("/",t)},r.prototype.updateCustomBoardBackground=function(t){return this.apiPut("/",t)},r.prototype.deleteCustomBoardBackground=function(){return this.apiDelete("/")},r}(o.BaseResource);exports.CustomBoardBackground=e; },{"./BaseResource":108}],60:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(o,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(o,e)};return function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=o}t(o,e),o.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomEmoji=void 0;var o=require("./BaseResource"),e=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return t(e,o),e.prototype.getCustomEmoji=function(t){return this.apiGet("/",t)},e.prototype.getCustomEmojis=function(t){return this.apiGet("/",t)},e.prototype.uploadCustomEmoji=function(t){return this.apiPost("/",t)},e}(o.BaseResource);exports.CustomEmoji=e; },{"./BaseResource":108}],62:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Membership=void 0;var r=require("./BaseResource"),n=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return t(n,r),n.prototype.getMembership=function(t){return this.apiGet("/",t)},n.prototype.getMemberships=function(t){return this.apiGet("/",t)},n.prototype.updateMembership=function(t){return this.apiPut("/",e(e({},t),{idMembership:this.identifier}))},n}(r.BaseResource);exports.Membership=n; },{"./BaseResource":108}],66:[function(require,module,exports) { "use strict";var t=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrganizationPref=void 0;var e=require("./BaseResource"),r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t(r,e),r.prototype.updateAssociatedDomain=function(t){return this.apiPut("/associatedDomain",{value:t})},r.prototype.updateBoardVisibilityRestriction=function(t,e){return this.apiPut("/boardVisibilityRestrict/".concat(t),{value:e})},r.prototype.updateExternalMembersDisabled=function