text: (function(){
  var opts={"version":1,"apiEndpoint":"https://api.trello.com","authEndpoint":"https://trello.com","intentEndpoint":"https://trello.com"};
  !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=function(e){return"function"==typeof e},a={};!function(e,t,n){for(var i,c,u=t,s=n.key,l=n.token,f=n.apiEndpoint,d=n.authEndpoint,p=n.intentEndpoint,v=n.version,h="".concat(f,"/").concat(v,"/"),y=e.location,m=function(e){var t={response_type:"token",key:s};return"".concat(d,"/").concat(v,"/authorize?").concat(u.param(u.extend(t,e)))},g=function(){var e=arguments.length<=0?void 0:arguments[0],t=r(e,4),n=t[0],a=t[1],i=t[2],c=t[3];return o(a)&&(c=i,i=a,a={}),[n=n.replace(new RegExp("^/*"),""),a,i,c]},b={version:function(){return v},key:function(){return s},setKey:function(e){s=e},token:function(){return l},setToken:function(e){l=e},rest:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=g(n),i=r(a,4),c=i[0],f=i[1],d=i[2],p=i[3],v={url:"".concat(h).concat(c),type:e,data:{},dataType:"json",success:d,error:p};return s&&(v.data.key=s),l&&(v.data.token=l),null!=f&&u.extend(v.data,f),u.ajax(v)},authorized:function(){return null!=l},deauthorize:function(){c("token",l=null)},authorize:function(t){var n=u.extend(!0,{type:"redirect",persist:!0,interactive:!0,scope:{read:!0,write:!1,account:!1},expiration:"30days"},t),r=/[&#]?token=([0-9a-f]{64})/,s=function(){n.persist&&null!=l&&c("token",l)};if(n.persist&&null==l&&(l=i("token")),null==l){var f=r.exec(y.hash);f&&(l=f[1])}if(this.authorized())return s(),y.hash=y.hash.replace(r,""),void(o(n.success)&&n.success());if(n.interactive){var p=Object.keys(n.scope||{}).reduce(function(e,t){return n.scope[t]&&e.push(t),e},[]).join(",");switch(n.type){case"popup":!function(){var t,r;r=function(e){if(e)return s(),void(o(n.success)&&n.success());o(n.error)&&n.error()},a[t="authorized"]||(a[t]=[]),a[t].push(r);var i=e.screenX+(e.innerWidth-720)/2,c=e.screenY+(e.innerHeight-800)/2,u=new RegExp("^[a-z]+://[^/]*").exec(y),f=u&&u[0],v=e.open(m({return_url:f,callback_method:"postMessage",scope:p,expiration:n.expiration,name:n.name}),"trello","width=".concat(720,",height=").concat(800,",left=").concat(i,",top=").concat(c));o(e.addEventListener)&&e.addEventListener("message",function t(n){n.origin===d&&n.source===v&&(null!=n.source&&n.source.close(),l=null!=n.data&&/[0-9a-f]{64}/.test(n.data)?n.data:null,o(e.removeEventListener)&&e.removeEventListener("message",t,!1),function(e,t){if(a[e]){var n=a[e];delete a[e];var r=!0,o=!1,i=void 0;try{for(var c,u=n[Symbol.iterator]();!(r=(c=u.next()).done);r=!0){(0,c.value)(t)}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}}("authorized",b.authorized()))},!1)}();break;default:e.location=m({redirect_uri:y.href,callback_method:"fragment",scope:p,expiration:n.expiration,name:n.name})}}else o(n.error)&&n.error()},addCard:function(t,n){var r={mode:"popup",source:s||e.location.host},a=function(n){o(e.addEventListener)&&e.addEventListener("message",function t(r){e.removeEventListener("message",t);try{var o=JSON.parse(r.data);if(o.success)return void n(null,o.card);n(new Error(o.error))}catch(e){}},!1);var a=e.screenX+(e.outerWidth-500)/2,i=e.screenY+(e.outerHeight-600)/2;return e.open("".concat(p,"/add-card?").concat(u.param(u.extend(r,t))),"trello","width=".concat(500,",height=").concat(600,",left=").concat(a,",top=").concat(i))};if(null==n)return e.Promise?new Promise(function(e,t){return a(function(n,r){n?t(n):e(r)})}):void a(function(){});a(n)}},x=function(){var e=w[k];b[e.toLowerCase()]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.rest.apply(this,[e].concat(n))}},k=0,w=["GET","PUT","POST","DELETE"];k<w.length;k++)x();b.del=b.delete;for(var E=function(){var e=j[_];b[e]={get:function(t,n,r,o){return b.get("".concat(e,"/").concat(t),n,r,o)}}},_=0,j=["actions","cards","checklists","boards","lists","members","organizations","lists"];_<j.length;_++)E();e.Trello=b;var z=e.localStorage;if(null!=z){i=function(e){return z["trello_"+e]},c=function(e,t){if(null!==t)try{z["trello_"+e]=t}catch(e){}else delete z["trello_"+e]}}else i=function(){},c=function(){}}(window,jQuery,opts)}]);})()