Comparing version 1.0.1 to 1.1.0
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DillonTaskMonkey=e():t.DillonTaskMonkey=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e,n){(function(e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e){var o=r(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(t)).toString("base64")+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}}).call(e,n(9).Buffer)},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=d[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(l(r.parts[o],e));d[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],s=i[2],u=i[3],f={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(f):e.push(n[o]={id:o,parts:[f]})}return e}function o(t,e){var n=y(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=b[b.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),b.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=b.indexOf(t);e>=0&&b.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",f(e,t.attrs),o(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",f(e,t.attrs),o(t,e),e}function f(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,i;if(e.singleton){var o=m++;n=v||(v=s(e)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n,e),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=c.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function h(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=E(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function c(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=w(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var d={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,m=0,b=[],w=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=g()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=d[s.id];u.refs--,o.push(u)}if(t){r(i(t),e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete d[u.id]}}}};var E=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(16);var o=function(){function t(e){var n=this;r(this,t),this.filter=function(){var t=n.$el.val();n.params.$filterElements.each(function(e,n){var r=$(n);t&&t.length?r.text().trim().indexOf(t)>0?r.removeClass("tagify-hide"):r.addClass("tagify-hide"):r.removeClass("tagify-hide")}),n.params.filterCallback()},this.params=e,this.$el=this.createElement(),e.$inputContainer.append($('<div class="filterInput" />').append(this.$el)),this.$el.on("keyup",this.filter)}return i(t,[{key:"createTagName",value:function(){return"filters-"+this.params.name}},{key:"createElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $('\n\t\t\t\t\t\t<input \n\t\t\t\t\t\t\tname="'+this.createTagName()+'" \n\t\t\t\t\t\t\ttype="input" \n\t\t\t\t\t\t\tplaceholder="filter..." \n\t\t\t\t\t\t\tvalue=\''+t+"'\n\t\t\t\t\t\t/>\n\t\t\t\t")}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(5),u=r(s),f=n(6),l=r(f),h=function(){function t(e){var n=this;o(this,t),this.filter=function(t){var e=n.tagifiedEl.value;n.params.$autocompleteElements.each(function(t,n){var r=$(n);e&&e.length?e.includes(r.text().trim())?r.removeClass("tagify-hide"):r.addClass("tagify-hide"):r.removeClass("tagify-hide")}),n.params.filterCallback()},this.params=e,this.$el=this.createElement(),e.$inputContainer.append(this.$el),this.tagifiedEl=new u.default(document.querySelector('[name="'+this.createTagName()+'"]'),i({whitelist:this.makeOptionsList(e.$autocompleteElements),enforeWhitelist:!0,suggestionsMinChars:1},"enforeWhitelist",!0)),this.tagifiedEl.on("add",this.filter),this.tagifiedEl.on("remove",this.filter)}return a(t,[{key:"createTagName",value:function(){return"tags-"+this.params.name}},{key:"createElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $('\n\t\t\t\t\t\t<input \n\t\t\t\t\t\t\tname="'+this.createTagName()+'" \n\t\t\t\t\t\t\ttype="input" \n\t\t\t\t\t\t\tplaceholder="tags..." \n\t\t\t\t\t\t\tvalue=\''+t+"'\n\t\t\t\t\t\t/>\n\t\t\t\t")}},{key:"makeOptionsList",value:function(t){if(!t)return console.warn("makeOptionsList $elements is undefined");var e=t.map(function(t,e){return $(e).text().trim()}).toArray();return e=e.filter(function(t){return t&&t.length}),e=l.default.uniq(e)}}]),t}();e.default=h},function(t,e,n){var r=n(12);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){"use strict";function r(t,e){if(!t)return console.warn("Tagify: ","invalid input element ",t),this;e="object"==(void 0===e?"undefined":i(e))?e:{},this.settings={callbacks:e.callbacks||{},duplicates:e.duplicates||!1,enforeWhitelist:e.enforeWhitelist||!1,autocomplete:e.autocomplete||!0,whitelist:e.whitelist||[],blacklist:e.blacklist||[],maxTags:e.maxTags||1/0,suggestionsMinChars:e.suggestionsMinChars||2},this.id=Math.random().toString(36).substr(2,9),this.value=[],this.DOM={},this.extend(this,new this.EventDispatcher),this.build(t),this.events()}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(17),r.prototype={build:function(t){var e=t.value;this.DOM.originalInput=t,this.DOM.scope=document.createElement("tags"),this.DOM.scope.innerHTML='<div><input list="tagifySuggestions'+this.id+'" class="placeholder"/><span>'+t.placeholder+"</span></div>",this.DOM.input=this.DOM.scope.querySelector("input"),t.parentNode.insertBefore(this.DOM.scope,t),this.DOM.scope.appendChild(t),this.settings.autocomplete&&this.settings.whitelist.length&&(this.DOM.datalist=this.buildDataList()),e&&this.addTag(e).forEach(function(t){t&&t.classList.add("tagify--noAnim")})},destroy:function(){this.DOM.scope.parentNode.appendChild(this.DOM.originalInput),this.DOM.scope.parentNode.removeChild(this.DOM.scope)},extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},EventDispatcher:function(){var t=document.createTextNode("");this.off=t.removeEventListener.bind(t),this.on=t.addEventListener.bind(t),this.trigger=function(e,n){if(e){var r=new CustomEvent(e,{detail:n});t.dispatchEvent(r)}}},events:function(){var t=this,e={paste:["onPaste","input"],focus:["onFocusBlur","input"],blur:["onFocusBlur","input"],input:["onInput","input"],keydown:["onKeydown","input"],click:["onClickScope","scope"]},n=["add","remove","duplicate","maxTagsExceed","blacklisted","notWhitelisted"];for(var r in e)this.DOM[e[r][1]].addEventListener(r,this.callbacks[e[r][0]].bind(this));n.forEach(function(e){t.on(e,t.settings.callbacks[e])})},callbacks:{onFocusBlur:function(t){var e=t.target.value.trim();"focus"==t.type?t.target.className="input":"blur"==t.type&&""==e&&(t.target.className="input placeholder",this.DOM.input.removeAttribute("style"))},onKeydown:function(t){var e=t.target.value,n=this;if("Backspace"!=t.key||""!=e&&8203!=e.charCodeAt(0)||this.removeTag(this.DOM.scope.querySelectorAll("tag:not(.tagify--hide)").length-1),"Escape"==t.key&&(t.target.value="",t.target.blur()),"Enter"==t.key)return t.preventDefault(),this.addTag(e)&&(t.target.value=""),!1;this.noneDatalistInput&&clearTimeout(this.noneDatalistInput),this.noneDatalistInput=setTimeout(function(){n.noneDatalistInput=null},50)},onInput:function(t){var e,n=t.target.value,r=(n[n.length-1],!this.noneDatalistInput&&n.length>1),i=n.length>=this.settings.suggestionsMinChars;t.target.style.width=7*(t.target.value.length+1)+"px",-1!=n.indexOf(",")||r?(this.addTag(n),t.target.value=""):this.settings.autocomplete&&this.settings.whitelist.length&&(e=this.DOM.input.parentNode.contains(this.DOM.datalist),!i&&e?this.DOM.input.parentNode.removeChild(this.DOM.datalist):i&&!e&&this.DOM.input.parentNode.appendChild(this.DOM.datalist))},onPaste:function(t){var e=this;this.noneDatalistInput&&clearTimeout(this.noneDatalistInput),this.noneDatalistInput=setTimeout(function(){e.noneDatalistInput=null},50)},onClickScope:function(t){"TAGS"==t.target.tagName&&this.DOM.input.focus(),"X"==t.target.tagName&&this.removeTag(this.getNodeIndex(t.target.parentNode))}},buildDataList:function(){var t,e="",n=document.createElement("datalist");for(n.id="tagifySuggestions"+this.id,n.innerHTML="<label> select from the list: <select> <option value=''></option> [OPTIONS] </select> </label>",t=this.settings.whitelist.length;t--;)e+="<option>"+this.settings.whitelist[t]+"</option>";return n.innerHTML=n.innerHTML.replace("[OPTIONS]",e),n},getNodeIndex:function(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},markTagByValue:function(t){var e=this.value.findIndex(function(e){return t.toLowerCase()===e.toLowerCase()}),n=this.DOM.scope.querySelectorAll("tag")[e];return!!n&&(n.classList.add("tagify--mark"),setTimeout(function(){n.classList.remove("tagify--mark")},2e3),!0)},isTagBlacklisted:function(t){return t=t.split(" "),this.settings.blacklist.filter(function(e){return-1!=t.indexOf(e)}).length},isTagWhitelisted:function(t){return-1!=this.settings.whitelist.indexOf(t)},addTag:function(t){var e=this;if(this.DOM.input.removeAttribute("style"),t=t.trim())return t.split(",").filter(function(t){return!!t}).map(function(n){n=n.trim();var r,i,o=document.createElement("tag"),a=e.markTagByValue(n),s=e.value.length>=e.settings.maxTags;return!(a&&(e.trigger("duplicate",n),!e.settings.duplicates))&&(r=!e.isTagBlacklisted(n)&&(!e.settings.enforeWhitelist||e.isTagWhitelisted(n))&&!s,r||(o.classList.add("tagify--notAllowed"),setTimeout(function(){e.removeTag(e.getNodeIndex(o),!0)},1e3),s?i="maxTagsExceed":e.isTagBlacklisted(n)?i="blacklisted":e.settings.enforeWhitelist&&!e.isTagWhitelisted(n)&&(i="notWhitelisted"),e.trigger(i,{value:n,index:e.value.length})),o.innerHTML="<x></x><div><span title='"+n+"'>"+n+" </span></div>",e.DOM.scope.insertBefore(o,e.DOM.input.parentNode),r&&(e.value.push(n),e.update(),e.trigger("add",{value:t,index:e.value.length})),o)})},removeTag:function(t,e){var n=this.DOM.scope.children[t];n&&(n.style.width=parseFloat(window.getComputedStyle(n).width)+"px",document.body.clientTop,n.classList.add("tagify--hide"),setTimeout(function(){n.parentNode.removeChild(n)},400),e||(this.value.splice(t,1),this.update(),this.trigger("remove",{value:n.textContent.trim(),index:t})))},update:function(){this.DOM.originalInput.value=this.value.join(", ")}},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={uniq:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e={};return t.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(2),o=r(i),a=n(3),s=r(a);n(4),function(){var t={summary:$("tbody td.summary"),project:$("tbody td.project"),category:$("tbody td.category"),priority:$("tbody td.priority"),status:$("tbody td.status"),release:$("tbody td.release"),assignedTo:$("tbody td.assignedTo")},e=function(){$("tbody tr").each(function(t,e){$(e).find("td.tagify-hide").length?$(e).addClass("hidden"):$(e).removeClass("hidden")})};new o.default({name:"summary",$inputContainer:$("th.summary"),$filterElements:t.summary,filterCallback:e}),new s.default({name:"project",$inputContainer:$("th.project"),$autocompleteElements:t.project,ignorePattern:"",filterCallback:e}),new s.default({name:"category",$inputContainer:$("th.category"),$autocompleteElements:t.category,ignorePattern:"",filterCallback:e}),new s.default({name:"priority",$inputContainer:$("th.priority"),$autocompleteElements:t.priority,ignorePattern:"",filterCallback:e}),new s.default({name:"status",$inputContainer:$("th.status"),$autocompleteElements:t.status,ignorePattern:"",filterCallback:e}),new s.default({name:"release",$inputContainer:$("th.release"),$autocompleteElements:t.release,ignorePattern:"",filterCallback:e}),new s.default({name:"assignedTo",$inputContainer:$("th.assignedTo"),$autocompleteElements:t.assignedTo,ignorePattern:"",filterCallback:e})}()},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s,u=t.length;a=r(t),s=new h(3*u/4-a),i=a>0?u-4:u;var f=0;for(e=0,n=0;e<i;e+=4,n+=3)o=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[f++]=o>>16&255,s[f++]=o>>8&255,s[f++]=255&o;return 2===a?(o=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[f++]=255&o):1===a&&(o=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[f++]=o>>8&255,s[f++]=255&o),s}function a(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function s(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(a(r));return i.join("")}function u(t){for(var e,n=t.length,r=n%3,i="",o=[],a=0,u=n-r;a<u;a+=16383)o.push(s(t,a,a+16383>u?u:a+16383));return 1===r?(e=t[n-1],i+=f[e>>2],i+=f[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=f[e>>10],i+=f[e>>4&63],i+=f[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var f=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=c.length;p<d;++p)f[p]=c[p],l[c.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?c(t,e,n,r):"string"==typeof e?l(t,e,n):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function f(t,e){if(s(e),t=i(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function c(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||G(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&Z(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return _(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var f;if(i){var l=-1;for(f=n;f<s;f++)if(o(t,f)===o(e,-1===l?0:f-l)){if(-1===l&&(l=f),f-l+1===u)return l*a}else-1!==l&&(f-=f-l),l=-1}else for(n+u>s&&(n=s-u),f=n;f>=0;f--){for(var h=!0,c=0;c<u;c++)if(o(t,f+c)!==o(e,c)){h=!1;break}if(h)return f}return-1}function E(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return V(W(e,t.length-n),t,n,r)}function T(t,e,n,r){return V(q(e),t,n,r)}function A(t,e,n,r){return T(t,e,n,r)}function k(t,e,n,r){return V(J(e),t,n,r)}function R(t,e,n,r){return V(H(e,t.length-n),t,n,r)}function _(t,e,n){return 0===e&&n===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,f,l,h;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(h=(31&o)<<6|63&u)>127&&(a=h);break;case 3:u=t[i+1],f=t[i+2],128==(192&u)&&128==(192&f)&&(h=(15&o)<<12|(63&u)<<6|63&f)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:u=t[i+1],f=t[i+2],l=t[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(h=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return C(r)}function C(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function B(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function S(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function $(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(t,e,n,r,i){return i||$(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,i){return i||$(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function j(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function H(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function J(t){return X.toByteArray(j(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function G(t){return t!==t}/*! | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DillonTaskMonkey=e():t.DillonTaskMonkey=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=11)}([function(t,e,n){(function(e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e){var o=r(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new e(JSON.stringify(t)).toString("base64")+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}}).call(e,n(13).Buffer)},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=d[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(f(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(f(r.parts[o],e));d[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],s=i[2],u=i[3],l={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}return e}function o(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=b[b.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),b.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=b.indexOf(t);e>=0&&b.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),o(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),o(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function f(t,e){var n,r,i;if(e.singleton){var o=m++;n=y||(y=s(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n,e),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=h.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=E(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=w(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var d={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),v=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),y=null,m=0,b=[],w=n(21);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},void 0===e.singleton&&(e.singleton=g()),void 0===e.insertInto&&(e.insertInto="head"),void 0===e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=d[s.id];u.refs--,o.push(u)}if(t){r(i(t),e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete d[u.id]}}}};var E=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return t&&t.__esModule?t.default:t}function e(t,e){return e={exports:{}},t(e,e.exports),e.exports}var n=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},r=function(t){return Object(n(t))},i={}.hasOwnProperty,o=function(t,e){return i.call(t,e)},a={}.toString,s=function(t){return a.call(t).slice(8,-1)},u=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==s(t)?t.split(""):Object(t)},l=function(t){return u(n(t))},f=Math.ceil,c=Math.floor,h=function(t){return isNaN(t=+t)?0:(t>0?c:f)(t)},p=Math.min,d=function(t){return t>0?p(h(t),9007199254740991):0},g=Math.max,v=Math.min,y=function(t,e){return t=h(t),t<0?g(t+e,0):v(t,e)},m=e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),b=m["__core-js_shared__"]||(m["__core-js_shared__"]={}),w=0,E=Math.random(),x=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++w+E).toString(36))},_=function(t){return b[t]||(b[t]={})}("keys"),T=function(t){return function(t,e,n){for(var r=l(t),i=d(r.length),o=y(n,i);i>o;o++)if(o in r&&r[o]===e)return o||0;return-1}}(),A=function(t){return _[t]||(_[t]=x(t))}("IE_PROTO"),k=function(t,e){var n,r=l(t),i=0,a=[];for(n in r)n!=A&&o(r,n)&&a.push(n);for(;e.length>i;)o(r,n=e[i++])&&(~T(a,n)||a.push(n));return a},S="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),O=Object.keys||function(t){return k(t,S)},C=e(function(t){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)}),M=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},P=function(t,e,n){if(M(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},R=function(t){return"object"==typeof t?null!==t:"function"==typeof t},B=function(t){if(!R(t))throw TypeError(t+" is not an object!");return t},L=function(t){try{return!!t()}catch(t){return!0}},D=!L(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),$=m.document,I=R($)&&R($.createElement),U=function(t){return I?$.createElement(t):{}},j=!D&&!L(function(){return 7!=Object.defineProperty(U("div"),"a",{get:function(){return 7}}).a}),N=function(t,e){if(!R(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!R(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!R(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!R(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},Y=Object.defineProperty,F=D?Object.defineProperty:function(t,e,n){if(B(t),e=N(e,!0),B(n),j)try{return Y(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t},W={f:F},z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},H=D?function(t,e,n){return W.f(t,e,z(1,n))}:function(t,e,n){return t[e]=n,t},q=function(t,e,n){var r,i,o,a=t&q.F,s=t&q.G,u=t&q.S,l=t&q.P,f=t&q.B,c=t&q.W,h=s?C:C[e]||(C[e]={}),p=h.prototype,d=s?m:u?m[e]:(m[e]||{}).prototype;s&&(n=e);for(r in n)(i=!a&&d&&void 0!==d[r])&&r in h||(o=i?d[r]:n[r],h[r]=s&&"function"!=typeof d[r]?n[r]:f&&i?P(o,m):c&&d[r]==o?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(o):l&&"function"==typeof o?P(Function.call,o):o,l&&((h.virtual||(h.virtual={}))[r]=o,t&q.R&&p&&!p[r]&&H(p,r,o)))};q.F=1,q.G=2,q.S=4,q.P=8,q.B=16,q.W=32,q.U=64,q.R=128;var J=q;!function(t,e){var n=(C.Object||{})[t]||Object[t],r={};r[t]=function(){return function(t){return O(r(t))}}(),J(J.S+J.F*L(function(){n(1)}),"Object",r)}("keys");var G=C.Object.keys,X=e(function(t){t.exports={default:G,__esModule:!0}}),V=t(X),K=e(function(t,e){e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}}),Z=t(K);J(J.S+J.F*!D,"Object",{defineProperty:W.f});var Q=C.Object,tt=function(t,e,n){return Q.defineProperty(t,e,n)},et=e(function(t){t.exports={default:tt,__esModule:!0}}),nt=e(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(et);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,n.default)(t,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()}),rt=t(nt),it={createNewEventMap:function(){return{handlers:0,_handlers:0,on:{},once:{},beforeAll:{},afterAll:{}}},curryWhenHandler:function(t){var e=this;return function(n,r){if("string"!=typeof n||n.length<1||"function"!=typeof r)return console.warn('EventSky warning: "'+n+'" event must be a string and handler must be a function - not set with .'+t+" handler"),e;if(e.config.restrictToExpected&&!V(e.events).includes(n))return e._firehose('"'+n+'" handler cannot be set because it is not an expected event "restrictToExpected = true"'),e;e.events[n]||(e.events[n]=e._utils.createNewEventMap()),e.events[n].handlers++;var i=e.events[n]._handlers++,o="id_"+n+"."+t+"."+i;return e.events[n][t][o]=r,o}}},ot={setExpectedEvents:function(t){return this.config.restrictToExpected=!0,this}};return new(function(){function t(){var e=this;Z(this,t),this.config={restrictToExpected:!1,firehose:!1},this._config=ot,this._utils=it,this.events={},this._firehose=function(t){return e.config.firehose?console.log("EventSky Firehose >> "+t):null},this.on=this._utils.curryWhenHandler.bind(this)("on"),this.once=this._utils.curryWhenHandler.bind(this)("once"),this.beforeAll=this._utils.curryWhenHandler.bind(this)("beforeAll"),this.afterAll=this._utils.curryWhenHandler.bind(this)("afterAll"),this.off.all=this.allOff.bind(this)}return rt(t,[{key:"off",value:function(t,e){var n=this;return V(this.events).forEach(function(r){V(n.events[r]).forEach(function(i){["beforeAll","on","once","afterAll"].includes(i)&&V(n.events[r][i]).forEach(function(o){var a=n.events[r][i][o]===e&&r===t,s=!e&&o===t;(a||s)&&(delete n.events[r][i][o],n.events[r].handlers--)})})}),this}},{key:"allOff",value:function(t){return delete this.events[t],this._firehose('.off.all("'+t+'") removed all event handlers'),this.events[t]=this._utils.createNewEventMap(),this}},{key:"trigger",value:function(t,e){var n=this;if(this.config.restrictToExpected){if(!V(this.events).includes(t))return this._firehose('"'+t+'" triggered and is not an expected event "restrictToExpected = true"'),this}else if(!this.events[t])return this._firehose('"'+t+'" triggered with no handlers setup'),this;this._firehose('"'+t+'" triggered');var r=this.events[t].beforeAll;try{V(r).forEach(function(t){return r[t](e)})}catch(n){console.error("EventSky error: "+t+" beforeAll handler errored",{error:n,data:e})}var i=this.events[t].on;try{V(i).forEach(function(t){return i[t](e)})}catch(n){console.error("EventSky error: "+t+" on handler errored",{error:n,data:e})}var o=this.events[t].once;try{V(o).forEach(function(r){o[r](e),n.off(t,o[r](e))})}catch(n){console.error("EventSky error: "+t+" once handler errored",{error:n,data:e})}var a=this.events[t].afterAll;try{V(a).forEach(function(t){return a[t](e)})}catch(n){console.error("EventSky error: "+t+" afterAll handler errored",{error:n,data:e})}return this}}]),t}())})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={uniq:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e={};return t.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)})},setLocalStorage:function(t,e){var n=r.getLocalStorage();t?n[t]=e:n=e,localStorage.setItem("dst-59937",JSON.stringify(n))},getLocalStorage:function(t){var e=localStorage.getItem("dst-59937");e||(e=JSON.stringify({}));try{e=JSON.parse(e)}catch(t){}return t?e[t]:e}};e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t={summary:$("tbody td.summary"),project:$("tbody td.project"),category:$("tbody td.category"),priority:$("tbody td.priority"),status:$("tbody td.status"),release:$("tbody td.release"),assignedTo:$("tbody td.assignedTo")},e=function(){$("tbody tr").each(function(t,e){$(e).find("td.tagify-hide").length?$(e).addClass("hidden"):$(e).removeClass("hidden")})};new o.default({name:"summary",$inputContainer:$("th.summary"),$filterElements:t.summary,filterCallback:e}),new s.default({name:"project",$inputContainer:$("th.project"),$autocompleteElements:t.project,ignorePattern:"",filterCallback:e}),new s.default({name:"category",$inputContainer:$("th.category"),$autocompleteElements:t.category,ignorePattern:"",filterCallback:e}),new s.default({name:"priority",$inputContainer:$("th.priority"),$autocompleteElements:t.priority,ignorePattern:"",filterCallback:e}),new s.default({name:"status",$inputContainer:$("th.status"),$autocompleteElements:t.status,ignorePattern:"",filterCallback:e}),new s.default({name:"release",$inputContainer:$("th.release"),$autocompleteElements:t.release,ignorePattern:"",filterCallback:e}),new s.default({name:"assignedTo",$inputContainer:$("th.assignedTo"),$autocompleteElements:t.assignedTo,ignorePattern:"",filterCallback:e})};var i=n(8),o=r(i),a=n(9),s=r(a)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=l();e.attr("value","Save Filters"),t.append(e),e.click(function(t){t.stopPropagation(),t.preventDefault();var e=u.default.getLocalStorage("tags"),n=u.default.getLocalStorage("saved");n||(n=[],u.default.setLocalStorage("saved",n));var r=$('<div style="display:flex;align-items: center;justify-content: center;flex-direction:column;"/>'),i=$('<input placeholder="Name..."/>'),o=$('<input type="submit" maxlength="140"/>').attr("value","Save");r.append("<h3>Filter Name</h3>").append(i).append("<br/>").append(o).append("<br/>"),o.click(function(t){t.stopPropagation(),t.preventDefault(),i.val()&&i.val().length&&(n.push({name:i.val(),tags:e}),u.default.setLocalStorage("saved",n),a.default.trigger("modal::close"),a.default.trigger("controls::reload"))}),a.default.trigger("modal::show",{$content:r,styleOverride:{width:"300px"}})}),(u.default.getLocalStorage("saved")||[]).forEach(function(e){var n=$("<button />").addClass("delete").text("X").css("color","red").addClass("hidden");n.click(function(){var t=u.default.getLocalStorage("saved").filter(function(t){return t.name!==e.name});u.default.setLocalStorage("saved",t),a.default.trigger("controls::reload")}),t.append($("<div />").css({display:"inline-block"}).append(l().css("color","grey").attr("value",e.name).attr("data-tags",JSON.stringify(e.tags))).append(n).mouseover(function(){console.log("hover"),$(this).find("button").removeClass("hidden")}).mouseleave(function(){$(this).find("button").addClass("hidden")}))}),$("input[data-tags]").click(function(t){t.stopPropagation(),t.preventDefault();var e=JSON.parse($(this).attr("data-tags"));u.default.setLocalStorage("tags",e),a.default.trigger("taginput::reload")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=$('<div class="controlsContainer" />');t.insertBefore("table"),i(t),a.default.on("controls::reload",function(){t.empty(),i(t)})};var o=n(2),a=r(o),s=n(3),u=r(s);n(22);var l=function(){return $("<input />").attr("type","submit")}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(t){return t&&t.__esModule?t:{default:t}}(i);n(24);var a=function t(){var e=this;r(this,t),this.showModal=function(t){var n=t.$content,r=t.styleOverride,i=void 0===r?{}:r;e.$modal=$("<div />").addClass("modal"),e.$modalContent=$("<div />").addClass("modal-content").css(i).append(n),e.$modalCloseBtn=$("<div />").addClass("close").text("X").click(e.closeModal),e.$modal.append(e.$modalContent.append(e.$modalCloseBtn)),$("body").append(e.$modal)},this.closeModal=function(){e.$modal.remove(),e.$modalContent.remove(),e.$modalCloseBtn.remove()},o.default.on("modal::show",this.showModal),o.default.on("modal::close",this.closeModal)};e.default=a},function(t,e,n){var r=n(18);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(23);var o=function(){function t(e){var n=this;r(this,t),this.filter=function(){var t=n.$el.val().toLowerCase();n.params.$filterElements.each(function(e,n){var r=$(n);t&&t.length?r.text().trim().toLowerCase().indexOf(t)>=0?r.removeClass("tagify-hide"):r.addClass("tagify-hide"):r.removeClass("tagify-hide")}),n.params.filterCallback()},this.params=e,this.$el=this.createElement(),e.$inputContainer.append($('<div class="filterInput" />').append(this.$el)),this.$el.on("keyup",this.filter)}return i(t,[{key:"createTagName",value:function(){return"filters-"+this.params.name}},{key:"createElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $('\n\t\t\t\t\t\t<input \n\t\t\t\t\t\t\tname="'+this.createTagName()+'" \n\t\t\t\t\t\t\ttype="input" \n\t\t\t\t\t\t\tplaceholder="filter..." \n\t\t\t\t\t\t\tvalue=\''+t+"'\n\t\t\t\t\t\t/>\n\t\t\t\t")}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(10),u=r(s),l=n(3),f=r(l),c=n(2),h=r(c),p=function(){function t(e){var n=this;o(this,t),this.tagify=function(){var t=n.getLocalStorage().join(", ");n.$el=n.createElement(t),n.params.$inputContainer.append(n.$el),n.tagifiedEl=new u.default(document.querySelector('[name="'+n.createTagName()+'"]'),i({whitelist:n.makeOptionsList(n.params.$autocompleteElements),enforeWhitelist:!0,suggestionsMinChars:1},"enforeWhitelist",!0)),n.tagifiedEl.on("add",n.inputAdd),n.tagifiedEl.on("remove",n.inputRemove),n.filter()},this.reload=function(){n.tagifiedEl.destroy(),n.$el.remove(),n.tagify()},this.inputAdd=function(t){n.updateInput({action:"add",value:t.detail.value})},this.inputRemove=function(t){n.updateInput({action:"remove",value:t.detail.value})},this.updateInput=function(t){var e=t.action,r=t.value,i=n.getLocalStorage();"add"===e?i.includes(r)||i.push(r):i=i.filter(function(t,e){return t!==r}),n.setLocalStorage(i),n.filter()},this.setLocalStorage=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=f.default.getLocalStorage("tags");t=t.filter(function(t){return t&&t.length}),e[n.createTagName()]=t,f.default.setLocalStorage("tags",e)},this.getLocalStorage=function(){var t=f.default.getLocalStorage("tags");return t||(t={}),t[n.createTagName()]||(t[n.createTagName()]=[]),t[n.createTagName()]},this.filter=function(){var t=n.tagifiedEl.value;n.params.$autocompleteElements.each(function(e,n){var r=$(n);t&&t.length?t.includes(r.text().trim())?r.removeClass("tagify-hide"):r.addClass("tagify-hide"):r.removeClass("tagify-hide")}),n.params.filterCallback()},this.params=e,this.tagify(),h.default.on("taginput::reload",this.reload)}return a(t,[{key:"createTagName",value:function(){return"tags-"+this.params.name}},{key:"createElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $('\n\t\t\t\t\t\t<input \n\t\t\t\t\t\t\tname="'+this.createTagName()+'" \n\t\t\t\t\t\t\ttype="input" \n\t\t\t\t\t\t\tplaceholder="tags..." \n\t\t\t\t\t\t\tvalue=\''+t+"'\n\t\t\t\t\t\t/>\n\t\t\t\t")}},{key:"makeOptionsList",value:function(t){if(!t)return console.warn("makeOptionsList $elements is undefined");var e=t.map(function(t,e){return $(e).text().trim()}).toArray();return e=e.filter(function(t){return t&&t.length}),e=f.default.uniq(e)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t,e){if(!t)return console.warn("Tagify: ","invalid input element ",t),this;e="object"==(void 0===e?"undefined":i(e))?e:{},this.settings={callbacks:e.callbacks||{},duplicates:e.duplicates||!1,enforeWhitelist:e.enforeWhitelist||!1,autocomplete:e.autocomplete||!0,whitelist:e.whitelist||[],blacklist:e.blacklist||[],maxTags:e.maxTags||1/0,suggestionsMinChars:e.suggestionsMinChars||2},this.id=Math.random().toString(36).substr(2,9),this.value=[],this.DOM={},this.extend(this,new this.EventDispatcher),this.build(t),this.events()}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(25),r.prototype={build:function(t){var e=t.value;this.DOM.originalInput=t,this.DOM.scope=document.createElement("tags"),this.DOM.scope.innerHTML='<div><input list="tagifySuggestions'+this.id+'" class="placeholder"/><span>'+t.placeholder+"</span></div>",this.DOM.input=this.DOM.scope.querySelector("input"),t.parentNode.insertBefore(this.DOM.scope,t),this.DOM.scope.appendChild(t),this.settings.autocomplete&&this.settings.whitelist.length&&(this.DOM.datalist=this.buildDataList()),e&&this.addTag(e).forEach(function(t){t&&t.classList.add("tagify--noAnim")})},destroy:function(){this.DOM.scope.parentNode.appendChild(this.DOM.originalInput),this.DOM.scope.parentNode.removeChild(this.DOM.scope)},extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},EventDispatcher:function(){var t=document.createTextNode("");this.off=t.removeEventListener.bind(t),this.on=t.addEventListener.bind(t),this.trigger=function(e,n){if(e){var r=new CustomEvent(e,{detail:n});t.dispatchEvent(r)}}},events:function(){var t=this,e={paste:["onPaste","input"],focus:["onFocusBlur","input"],blur:["onFocusBlur","input"],input:["onInput","input"],keydown:["onKeydown","input"],click:["onClickScope","scope"]},n=["add","remove","duplicate","maxTagsExceed","blacklisted","notWhitelisted"];for(var r in e)this.DOM[e[r][1]].addEventListener(r,this.callbacks[e[r][0]].bind(this));n.forEach(function(e){t.on(e,t.settings.callbacks[e])})},callbacks:{onFocusBlur:function(t){var e=t.target.value.trim();"focus"==t.type?t.target.className="input":"blur"==t.type&&""==e&&(t.target.className="input placeholder",this.DOM.input.removeAttribute("style"))},onKeydown:function(t){var e=t.target.value,n=this;if("Backspace"!=t.key||""!=e&&8203!=e.charCodeAt(0)||this.removeTag(this.DOM.scope.querySelectorAll("tag:not(.tagify--hide)").length-1),"Escape"==t.key&&(t.target.value="",t.target.blur()),"Enter"==t.key)return t.preventDefault(),this.addTag(e)&&(t.target.value=""),!1;this.noneDatalistInput&&clearTimeout(this.noneDatalistInput),this.noneDatalistInput=setTimeout(function(){n.noneDatalistInput=null},50)},onInput:function(t){var e,n=t.target.value,r=(n[n.length-1],!this.noneDatalistInput&&n.length>1),i=n.length>=this.settings.suggestionsMinChars;t.target.style.width=7*(t.target.value.length+1)+"px",-1!=n.indexOf(",")||r?(this.addTag(n),t.target.value=""):this.settings.autocomplete&&this.settings.whitelist.length&&(e=this.DOM.input.parentNode.contains(this.DOM.datalist),!i&&e?this.DOM.input.parentNode.removeChild(this.DOM.datalist):i&&!e&&this.DOM.input.parentNode.appendChild(this.DOM.datalist))},onPaste:function(t){var e=this;this.noneDatalistInput&&clearTimeout(this.noneDatalistInput),this.noneDatalistInput=setTimeout(function(){e.noneDatalistInput=null},50)},onClickScope:function(t){"TAGS"==t.target.tagName&&this.DOM.input.focus(),"X"==t.target.tagName&&this.removeTag(this.getNodeIndex(t.target.parentNode))}},buildDataList:function(){var t,e="",n=document.createElement("datalist");for(n.id="tagifySuggestions"+this.id,n.innerHTML="<label> select from the list: <select> <option value=''></option> [OPTIONS] </select> </label>",t=this.settings.whitelist.length;t--;)e+="<option>"+this.settings.whitelist[t]+"</option>";return n.innerHTML=n.innerHTML.replace("[OPTIONS]",e),n},getNodeIndex:function(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},markTagByValue:function(t){var e=this.value.findIndex(function(e){return t.toLowerCase()===e.toLowerCase()}),n=this.DOM.scope.querySelectorAll("tag")[e];return!!n&&(n.classList.add("tagify--mark"),setTimeout(function(){n.classList.remove("tagify--mark")},2e3),!0)},isTagBlacklisted:function(t){return t=t.split(" "),this.settings.blacklist.filter(function(e){return-1!=t.indexOf(e)}).length},isTagWhitelisted:function(t){return-1!=this.settings.whitelist.indexOf(t)},addTag:function(t){var e=this;if(this.DOM.input.removeAttribute("style"),t=t.trim())return t.split(",").filter(function(t){return!!t}).map(function(n){n=n.trim();var r,i,o=document.createElement("tag"),a=e.markTagByValue(n),s=e.value.length>=e.settings.maxTags;return!(a&&(e.trigger("duplicate",n),!e.settings.duplicates))&&(r=!e.isTagBlacklisted(n)&&(!e.settings.enforeWhitelist||e.isTagWhitelisted(n))&&!s,r||(o.classList.add("tagify--notAllowed"),setTimeout(function(){e.removeTag(e.getNodeIndex(o),!0)},1e3),s?i="maxTagsExceed":e.isTagBlacklisted(n)?i="blacklisted":e.settings.enforeWhitelist&&!e.isTagWhitelisted(n)&&(i="notWhitelisted"),e.trigger(i,{value:n,index:e.value.length})),o.innerHTML="<x></x><div><span title='"+n+"'>"+n+" </span></div>",e.DOM.scope.insertBefore(o,e.DOM.input.parentNode),r&&(e.value.push(n),e.update(),e.trigger("add",{value:t,index:e.value.length})),o)})},removeTag:function(t,e){var n=this.DOM.scope.children[t];n&&(n.style.width=parseFloat(window.getComputedStyle(n).width)+"px",document.body.clientTop,n.classList.add("tagify--hide"),setTimeout(function(){n.parentNode.removeChild(n)},400),e||(this.value.splice(t,1),this.update(),this.trigger("remove",{value:n.textContent.trim(),index:t})))},update:function(){this.DOM.originalInput.value=this.value.join(", ")}},e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(6),o=r(i),a=n(4),s=r(a),u=n(5),l=r(u);n(7);var f=n(2),c=r(f);!function(){if(!/chrome/gi.test(navigator.userAgent))return console.info("\n\t\t\t***********************************************************************\n\t\t\t* Life is better when you use Chrome as your primary browser.... :-/ *\n\t\t\t*\t *\n\t\t\t* Switch to Chrome to use awesome features on the task board! *\n\t\t\t***********************************************************************\n\t\t");new o.default,window.EventSky=c.default,(0,s.default)(),(0,l.default)()}()},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s,u=t.length;a=r(t),s=new c(3*u/4-a),i=a>0?u-4:u;var l=0;for(e=0,n=0;e<i;e+=4,n+=3)o=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],s[l++]=o>>16&255,s[l++]=o>>8&255,s[l++]=255&o;return 2===a?(o=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,s[l++]=255&o):1===a&&(o=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,s[l++]=o>>8&255,s[l++]=255&o),s}function a(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function s(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(a(r));return i.join("")}function u(t){for(var e,n=t.length,r=n%3,i="",o=[],a=0,u=n-r;a<u;a+=16383)o.push(s(t,a,a+16383>u?u:a+16383));return 1===r?(e=t[n-1],i+=l[e>>2],i+=l[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=l[e>>10],i+=l[e>>4&63],i+=l[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var l=[],f=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p<d;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?f(t,e,n):p(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function l(t,e){if(s(e),t=i(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function c(t,e){var n=e.length<0?0:0|d(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=c(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||X(e.length)?i(t,0):c(t,e);if("Buffer"===e.type&&Z(e.data))return c(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return M(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var f=-1;for(l=n;l<s;l++)if(o(t,l)===o(e,-1===f?0:l-f)){if(-1===f&&(f=l),l-f+1===u)return f*a}else-1!==f&&(l-=l-f),f=-1}else for(n+u>s&&(n=s-u),l=n;l>=0;l--){for(var c=!0,h=0;h<u;h++)if(o(t,l+h)!==o(e,h)){c=!1;break}if(c)return l}return-1}function E(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,r){return G(z(e,t.length-n),t,n,r)}function _(t,e,n,r){return G(H(e),t,n,r)}function T(t,e,n,r){return _(t,e,n,r)}function A(t,e,n,r){return G(J(e),t,n,r)}function k(t,e,n,r){return G(q(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?V.fromByteArray(t):V.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,f,c;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=t[i+1],l=t[i+2],128==(192&u)&&128==(192&l)&&(c=(15&o)<<12|(63&u)<<6|63&l)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=t[i+1],l=t[i+2],f=t[i+3],128==(192&u)&&128==(192&l)&&128==(192&f)&&(c=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&f)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return C(r)}function C(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=W(t[o]);return i}function B(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function $(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function U(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,r,i){return i||U(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function N(t,e,n,r,i){return i||U(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function Y(t){if(t=F(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function q(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function J(t){return V.toByteArray(Y(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t){return t!==t}/*! | ||
* The buffer module from node.js, for the browser. | ||
@@ -7,2 +7,2 @@ * | ||
*/ | ||
var X=n(8),K=n(13),Z=n(14);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return f(null,t)},o.allocUnsafeSlow=function(t){return f(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),f=this.slice(r,i),l=t.slice(e,n),h=0;h<u;++h)if(f[h]!==l[h]){a=f[h],s=l[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){U(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){U(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return Y(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return Y(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(18))},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"div.filterInput {\n padding: 7px;\n border: 1px solid #DDD;\n}\n\ndiv.filterInput input {\n border: none;\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"tags {\n display: block;\n border: 1px solid #DDD;\n padding-right: 0.3em 0.5em;\n cursor: text;\n overflow: hidden;\n}\n\ntags:hover {\n border-color: #CCC;\n}\n\ntags tag {\n display: inline-block;\n margin: 5px 0 5px 5px;\n vertical-align: top;\n position: relative;\n cursor: default;\n -webkit-transition: .13s ease-out;\n transition: .13s ease-out;\n -webkit-animation: .3s tags--bump 1 ease-out;\n animation: .3s tags--bump 1 ease-out;\n}\n\ntags tag > div {\n vertical-align: top;\n position: relative;\n box-sizing: border-box;\n max-width: 100%;\n padding: 0.3em 0.5em;\n color: black;\n -webkit-transition: .13s ease-out;\n transition: .13s ease-out;\n padding-right: 1.5em;\n}\n\ntags tag > div > span {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n -webkit-transition: .1s;\n transition: .1s;\n}\n\ntags tag > div::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: #E5E5E5;\n border-radius: 3px;\n z-index: -1;\n pointer-events: none;\n -webkit-transition: 80ms ease;\n transition: 80ms ease;\n}\n\ntags tag:hover div::before {\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n background: #D3E2E2;\n box-shadow: 0 0 0 0 #D39494 inset;\n}\n\ntags tag.tagify--noAnim {\n -webkit-animation: none;\n animation: none;\n}\n\ntags tag.tagify--hide {\n width: 0 !important;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n opacity: 0;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-transition: .3s;\n transition: .3s;\n pointer-events: none;\n}\n\ntags tag.tagify--mark div::before {\n -webkit-animation: .3s tagify--pulse 2 ease-out;\n animation: .3s tagify--pulse 2 ease-out;\n}\n\ntags tag.tagify--notAllowed div > span {\n opacity: .5;\n}\n\ntags tag.tagify--notAllowed div::before {\n background: rgba(211, 148, 148, 0.44);\n -webkit-transition: .2s;\n transition: .2s;\n}\n\ntags tag x {\n font: 14px/14px Serif;\n width: 14px;\n height: 14px;\n text-align: center;\n border-radius: 50px;\n position: absolute;\n z-index: 1;\n right: -webkit-calc(0.5em - 2px);\n right: calc(0.5em - 2px);\n top: 50%;\n cursor: pointer;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n -webkit-transition: .2s ease-out;\n transition: .2s ease-out;\n}\n\ntags tag x::after {\n content: \"\\D7\";\n}\n\ntags tag x:hover {\n color: white;\n background: #c77777;\n}\n\ntags tag x:hover + div > span {\n opacity: .5;\n}\n\ntags tag x:hover + div::before {\n background: rgba(211, 148, 148, 0.44);\n -webkit-transition: .2s;\n transition: .2s;\n}\n\ntags input,tags textarea {\n border: 0;\n display: none;\n}\n\ntags input::-webkit-calendar-picker-indicator {\n display: none;\n}\n\ntags > div {\n display: inline-block;\n min-width: 10px;\n margin: 5px;\n padding: 0.3em 0.5em;\n position: relative;\n vertical-align: top;\n}\n\ntags > div > input {\n display: block;\n min-width: 130px;\n}\n\ntags > div > input:focus {\n outline: none;\n}\n\ntags > div > input.placeholder ~ span {\n opacity: .5;\n -webkit-transform: none;\n -ms-transform: none;\n transform: none;\n}\n\ntags > div > span {\n opacity: 0;\n line-height: 1.8;\n position: absolute;\n top: 0;\n z-index: 1;\n white-space: nowrap;\n pointer-events: none;\n -webkit-transform: translatex(6px);\n -ms-transform: translatex(6px);\n transform: translatex(6px);\n -webkit-transition: .15s ease-out;\n transition: .15s ease-out;\n}\n\n@-webkit-keyframes tags--bump {\n 30% {\n box-shadow: 0 0 0 4px #E5E5E5;\n }\n}\n\n@keyframes tags--bump {\n 30% {\n box-shadow: 0 0 0 4px #E5E5E5;\n }\n}\n\n@-webkit-keyframes tagify--pulse {\n 25% {\n background: rgba(211, 148, 148, 0.6);\n }\n}\n\n@keyframes tagify--pulse {\n 25% {\n background: rgba(211, 148, 148, 0.6);\n }\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"/* this allows the tagify input not to stretch out the row width */\n.category, .priority, .status, .due, .release, .assignedTo, .clientTicket {\n white-space: normal;\n}",""])},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,f=u>>1,l=-7,h=n?i-1:0,c=n?-1:1,p=t[e+h];for(h+=c,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=c,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=c,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=f}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,f=8*o-i-1,l=(1<<f)-1,h=l>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?c/u:c*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[n+p]=255&a,p+=d,a/=256,f-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(t,e,n){var r=n(10);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(11);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])}); | ||
var V=n(12),K=n(19),Z=n(20);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):y.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),l=this.slice(r,i),f=t.slice(e,n),c=0;c<u;++c)if(l[c]!==f[c]){a=l[c],s=f[c];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:z(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(26))},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,".controlsContainer {\n padding: 5px;\n border: 1px solid #DDD;\n margin: 5px;\n}\n\nbutton.delete {\n color: red;\n background-color: white;\n border: none;\n border: solid 1px grey;\n padding: 3px;\n border-radius: 20px;\n line-height: 12px;\n vertical-align: middle;\n text-align: center;\n width: 20px;\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"div.filterInput {\n padding: 7px;\n border: 1px solid #DDD;\n}\n\ndiv.filterInput input {\n border: none;\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"/* The Modal (background) */\n.modal {\n /*display: none; !* Hidden by default *!*/\n position: fixed; /* Stay in place */\n z-index: 1; /* Sit on top */\n padding-top: 100px; /* Location of the box */\n left: 0;\n top: 0;\n width: 100%; /* Full width */\n height: 100%; /* Full height */\n overflow: auto; /* Enable scroll if needed */\n background-color: rgb(0,0,0); /* Fallback color */\n background-color: rgba(0,0,0,0.4); /* Black w/ opacity */\n}\n\n/* Modal Content */\n.modal-content {\n background-color: #fefefe;\n margin: auto;\n padding: 20px;\n border: 1px solid #888;\n width: 80%;\n position: relative;\n}\n\n/* The Close Button */\n.close {\n color: #aaaaaa;\n position: absolute;\n text-align: right;\n font-size: 24px;\n font-weight: bold;\n top: -10px;\n right: -10px;\n border-radius: 24px;\n background: grey;\n padding: 5px;\n width: 24px;\n height: 24px;\n text-align: center;\n vertical-align: middle;\n line-height: 24px;\n}\n\n.close:hover,\n.close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"tags {\n display: block;\n border: 1px solid #DDD;\n padding-right: 0.3em 0.5em;\n cursor: text;\n overflow: hidden;\n}\n\ntags:hover {\n border-color: #CCC;\n}\n\ntags tag {\n display: inline-block;\n margin: 5px 0 5px 5px;\n vertical-align: top;\n position: relative;\n cursor: default;\n -webkit-transition: .13s ease-out;\n transition: .13s ease-out;\n -webkit-animation: .3s tags--bump 1 ease-out;\n animation: .3s tags--bump 1 ease-out;\n}\n\ntags tag > div {\n vertical-align: top;\n position: relative;\n box-sizing: border-box;\n max-width: 100%;\n padding: 0.3em 0.5em;\n color: black;\n -webkit-transition: .13s ease-out;\n transition: .13s ease-out;\n padding-right: 1.5em;\n}\n\ntags tag > div > span {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n -webkit-transition: .1s;\n transition: .1s;\n}\n\ntags tag > div::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: #E5E5E5;\n border-radius: 3px;\n z-index: -1;\n pointer-events: none;\n -webkit-transition: 80ms ease;\n transition: 80ms ease;\n}\n\ntags tag:hover div::before {\n top: -2px;\n right: -2px;\n bottom: -2px;\n left: -2px;\n background: #D3E2E2;\n box-shadow: 0 0 0 0 #D39494 inset;\n}\n\ntags tag.tagify--noAnim {\n -webkit-animation: none;\n animation: none;\n}\n\ntags tag.tagify--hide {\n width: 0 !important;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n opacity: 0;\n -webkit-transform: scale(0);\n -ms-transform: scale(0);\n transform: scale(0);\n -webkit-transition: .3s;\n transition: .3s;\n pointer-events: none;\n}\n\ntags tag.tagify--mark div::before {\n -webkit-animation: .3s tagify--pulse 2 ease-out;\n animation: .3s tagify--pulse 2 ease-out;\n}\n\ntags tag.tagify--notAllowed div > span {\n opacity: .5;\n}\n\ntags tag.tagify--notAllowed div::before {\n background: rgba(211, 148, 148, 0.44);\n -webkit-transition: .2s;\n transition: .2s;\n}\n\ntags tag x {\n font: 14px/14px Serif;\n width: 14px;\n height: 14px;\n text-align: center;\n border-radius: 50px;\n position: absolute;\n z-index: 1;\n right: -webkit-calc(0.5em - 2px);\n right: calc(0.5em - 2px);\n top: 50%;\n cursor: pointer;\n -webkit-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n -webkit-transition: .2s ease-out;\n transition: .2s ease-out;\n}\n\ntags tag x::after {\n content: \"\\D7\";\n}\n\ntags tag x:hover {\n color: white;\n background: #c77777;\n}\n\ntags tag x:hover + div > span {\n opacity: .5;\n}\n\ntags tag x:hover + div::before {\n background: rgba(211, 148, 148, 0.44);\n -webkit-transition: .2s;\n transition: .2s;\n}\n\ntags input,tags textarea {\n border: 0;\n display: none;\n}\n\ntags input::-webkit-calendar-picker-indicator {\n display: none;\n}\n\ntags > div {\n display: inline-block;\n min-width: 10px;\n margin: 5px;\n padding: 0.3em 0.5em;\n position: relative;\n vertical-align: top;\n}\n\ntags > div > input {\n display: block;\n min-width: 130px;\n}\n\ntags > div > input:focus {\n outline: none;\n}\n\ntags > div > input.placeholder ~ span {\n opacity: .5;\n -webkit-transform: none;\n -ms-transform: none;\n transform: none;\n}\n\ntags > div > span {\n opacity: 0;\n line-height: 1.8;\n position: absolute;\n top: 0;\n z-index: 1;\n white-space: nowrap;\n pointer-events: none;\n -webkit-transform: translatex(6px);\n -ms-transform: translatex(6px);\n transform: translatex(6px);\n -webkit-transition: .15s ease-out;\n transition: .15s ease-out;\n}\n\n@-webkit-keyframes tags--bump {\n 30% {\n box-shadow: 0 0 0 4px #E5E5E5;\n }\n}\n\n@keyframes tags--bump {\n 30% {\n box-shadow: 0 0 0 4px #E5E5E5;\n }\n}\n\n@-webkit-keyframes tagify--pulse {\n 25% {\n background: rgba(211, 148, 148, 0.6);\n }\n}\n\n@keyframes tagify--pulse {\n 25% {\n background: rgba(211, 148, 148, 0.6);\n }\n}",""])},function(t,e,n){e=t.exports=n(0)(void 0),e.push([t.i,"/* this allows the tagify input not to stretch out the row width */\n.category, .priority, .status, .due, .release, .assignedTo, .clientTicket {\n white-space: normal;\n}",""])},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,f=-7,c=n?i-1:0,h=n?-1:1,p=t[e+c];for(c+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+t[e+c],c+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+c],c+=h,f-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,f=(1<<l)-1,c=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+c>=1?h/u:h*Math.pow(2,1-c),e*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(e*u-1)*Math.pow(2,i),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+p]=255&a,p+=d,a/=256,l-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(t,e,n){var r=n(14);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(15);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(16);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(17);"string"==typeof r&&(r=[[t.i,r,""]]);n(1)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])}); |
{ | ||
"name": "dst-59937", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -27,4 +27,6 @@ "main": "index.js", | ||
"css-loader": "^0.28.0", | ||
"event-sky": "next", | ||
"exports-loader": "^0.6.4", | ||
"node-static": "^0.7.9", | ||
"semantic-release": "^6.3.2", | ||
"style-loader": "^0.16.1", | ||
@@ -34,5 +36,4 @@ "tagify": "^0.1.1", | ||
"uglifyjs-webpack-plugin": "^0.4.3", | ||
"webpack": "^2.4.1", | ||
"semantic-release": "^6.3.2" | ||
"webpack": "^2.4.1" | ||
} | ||
} |
@@ -19,6 +19,4 @@ import './FilterInput.css' | ||
filter = () => { | ||
const values = this.$el.val() | ||
const values = this.$el.val().toLowerCase() | ||
const matches = (val1, val2) => val1 | ||
this.params.$filterElements.each((i, el) => { | ||
@@ -31,3 +29,3 @@ const $el = $(el) | ||
} | ||
else if ($el.text().trim().indexOf(values) > 0) { | ||
else if ($el.text().trim().toLowerCase().indexOf(values) >= 0) { | ||
$el.removeClass('tagify-hide') | ||
@@ -34,0 +32,0 @@ } else { |
@@ -10,85 +10,30 @@ /* features | ||
import FilterInput from './FilterInput' | ||
import TagInput from './TagInput' | ||
import Modal from './Modal' | ||
import FeatureColumnInputs from './FeatureColumnInputs' | ||
import FeatureContainerControls from './FeatureContainerControls' | ||
import './styleOverRide.css' | ||
import EventSky from 'event-sky' | ||
(function iife () { | ||
// column filter inputs | ||
const $elements = { | ||
summary: $(`tbody td.summary`), | ||
project: $(`tbody td.project`), | ||
category: $(`tbody td.category`), | ||
priority: $(`tbody td.priority`), | ||
status: $(`tbody td.status`), | ||
release: $(`tbody td.release`), | ||
assignedTo: $(`tbody td.assignedTo`), | ||
if (!/chrome/gi.test(navigator.userAgent)) { | ||
return console.info(` | ||
*********************************************************************** | ||
* Life is better when you use Chrome as your primary browser.... :-/ * | ||
* * | ||
* Switch to Chrome to use awesome features on the task board! * | ||
*********************************************************************** | ||
`) | ||
} | ||
// listen for input filter events finishing | ||
const filterCallback = () => { | ||
$('tbody tr').each((i, tr) => { | ||
// if there is a .tagify-hide, then hide row | ||
if ($(tr).find('td.tagify-hide').length) { | ||
$(tr).addClass('hidden') | ||
} | ||
else { | ||
$(tr).removeClass('hidden') | ||
} | ||
}) | ||
} | ||
// instantiate modal | ||
new Modal() | ||
new FilterInput({ | ||
name: `summary`, | ||
$inputContainer: $(`th.summary`), | ||
$filterElements: $elements.summary, | ||
filterCallback, | ||
}) | ||
// make EventSky available globally | ||
window.EventSky = EventSky | ||
new TagInput({ | ||
name: `project`, | ||
$inputContainer: $(`th.project`), | ||
$autocompleteElements: $elements.project, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
// column filter inputs | ||
FeatureColumnInputs() | ||
new TagInput({ | ||
name: `category`, | ||
$inputContainer: $(`th.category`), | ||
$autocompleteElements: $elements.category, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
new TagInput({ | ||
name: `priority`, | ||
$inputContainer: $(`th.priority`), | ||
$autocompleteElements: $elements.priority, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
new TagInput({ | ||
name: `status`, | ||
$inputContainer: $(`th.status`), | ||
$autocompleteElements: $elements.status, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
new TagInput({ | ||
name: `release`, | ||
$inputContainer: $(`th.release`), | ||
$autocompleteElements: $elements.release, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
new TagInput({ | ||
name: `assignedTo`, | ||
$inputContainer: $(`th.assignedTo`), | ||
$autocompleteElements: $elements.assignedTo, | ||
ignorePattern: '', | ||
filterCallback, | ||
}) | ||
// container controls | ||
FeatureContainerControls() | ||
})() |
import Tagify from './Tagify' | ||
import Util from './Util' | ||
import EventSky from 'event-sky' | ||
@@ -9,7 +10,15 @@ export default class TagInput { | ||
this.tagify() | ||
EventSky.on('taginput::reload', this.reload) | ||
} | ||
tagify = () => { | ||
const savedValues = this.getLocalStorage().join(', ') | ||
// create an element | ||
this.$el = this.createElement() | ||
this.$el = this.createElement(savedValues) | ||
// append element | ||
params.$inputContainer.append(this.$el) | ||
this.params.$inputContainer.append(this.$el) | ||
@@ -20,3 +29,3 @@ // instantiate Tagify on input element | ||
{ | ||
whitelist: this.makeOptionsList(params.$autocompleteElements), | ||
whitelist: this.makeOptionsList(this.params.$autocompleteElements), | ||
enforeWhitelist: true, | ||
@@ -28,7 +37,63 @@ suggestionsMinChars: 1, | ||
// turn on filter for input | ||
this.tagifiedEl .on('add', this.filter) | ||
this.tagifiedEl.on('remove', this.filter) | ||
this.tagifiedEl.on('add', this.inputAdd) | ||
this.tagifiedEl.on('remove', this.inputRemove) | ||
// invoke filter to apply any saved values | ||
this.filter() | ||
} | ||
filter = e => { | ||
reload = () => { | ||
this.tagifiedEl.destroy() | ||
this.$el.remove() // remove old $el | ||
this.tagify() // re-init tagify | ||
} | ||
inputAdd = (e) => { | ||
this.updateInput({ action: 'add', value: e.detail.value }) | ||
} | ||
inputRemove = (e) => { | ||
this.updateInput({ action: 'remove', value: e.detail.value }) | ||
} | ||
updateInput = ({ action, value }) => { | ||
// update localStorage | ||
let inputStorage = this.getLocalStorage() | ||
if (action === 'add') { | ||
if (!inputStorage.includes(value)) { | ||
inputStorage.push(value) | ||
} | ||
} else { | ||
inputStorage = inputStorage.filter((val, i) => val !== value) | ||
} | ||
this.setLocalStorage(inputStorage) | ||
this.filter() | ||
} | ||
setLocalStorage = (val = []) => { | ||
const lsTags = Util.getLocalStorage('tags') | ||
val = val.filter(s => s && s.length) | ||
lsTags[this.createTagName()] = val | ||
Util.setLocalStorage('tags', lsTags) | ||
} | ||
getLocalStorage = () => { | ||
let lsTags = Util.getLocalStorage('tags') | ||
if (!lsTags) { | ||
lsTags = {} | ||
} | ||
if (!lsTags[this.createTagName()]) { | ||
lsTags[this.createTagName()] = [] | ||
} | ||
return lsTags[this.createTagName()] | ||
} | ||
filter = () => { | ||
const values = this.tagifiedEl.value | ||
@@ -35,0 +100,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default { | ||
const Util = { | ||
// create a unique valued array | ||
@@ -8,3 +8,31 @@ uniq: (a = []) => { | ||
}); | ||
}, | ||
setLocalStorage: (key, storageVal) => { | ||
let ls = Util.getLocalStorage() | ||
if (key) { | ||
ls[key] = storageVal | ||
} else { | ||
ls = storageVal | ||
} | ||
localStorage.setItem('dst-59937', JSON.stringify(ls)) | ||
}, | ||
getLocalStorage: (key) => { | ||
let ls = localStorage.getItem('dst-59937') | ||
if (!ls) { | ||
ls = JSON.stringify({}) | ||
} | ||
try { | ||
ls = JSON.parse(ls) | ||
} catch (e) {} | ||
return key ? ls[key] : ls | ||
} | ||
} | ||
export default Util |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
366721
22
1241
1
15