var sortable=function(){"use strict";function c(e,t,n){if(void 0===n)return e&&e.h5s&&e.h5s.data&&e.h5s.data[t];e.h5s=e.h5s||{},e.h5s.data=e.h5s.data||{},e.h5s.data[t]=n}var d=function(e,t){if(!(e instanceof NodeList||e instanceof HTMLCollection||e instanceof Array))throw new Error("You must provide a nodeList/HTMLCollection/Array of elements to be filtered.");return"string"!=typeof t?Array.from(e):Array.from(e).filter(function(e){return 1===e.nodeType&&e.matches(t)})},u=new Map,t=function(){function e(){this._config=new Map,this._placeholder=void 0,this._data=new Map}return Object.defineProperty(e.prototype,"config",{get:function(){var n={};return this._config.forEach(function(e,t){n[t]=e}),n},set:function(e){if("object"!=typeof e)throw new Error("You must provide a valid configuration object to the config setter.");var t=Object.assign({},e);this._config=new Map(Object.entries(t))},enumerable:!0,configurable:!0}),e.prototype.setConfig=function(e,t){if(!this._config.has(e))throw new Error("Trying to set invalid configuration item: "+e);this._config.set(e,t)},e.prototype.getConfig=function(e){if(!this._config.has(e))throw new Error("Invalid configuration item requested: "+e);return this._config.get(e)},Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(!(e instanceof HTMLElement)&&null!==e)throw new Error("A placeholder must be an html element or null.");this._placeholder=e},enumerable:!0,configurable:!0}),e.prototype.setData=function(e,t){if("string"!=typeof e)throw new Error("The key must be a string.");this._data.set(e,t)},e.prototype.getData=function(e){if("string"!=typeof e)throw new Error("The key must be a string.");return this._data.get(e)},e.prototype.deleteData=function(e){if("string"!=typeof e)throw new Error("The key must be a string.");return this._data.delete(e)},e}(),p=function(e){if(!(e instanceof HTMLElement))throw new Error("Please provide a sortable to the store function.");return u.has(e)||u.set(e,new t),u.get(e)};function a(e,t,n){if(e instanceof Array)for(var r=0;r':t=document.createElement("div")),"string"==typeof n&&(r=t.classList).add.apply(r,n.split(" ")),t},b=function(e){if(!(e instanceof HTMLElement))throw new Error("You must provide a valid dom element");var n=window.getComputedStyle(e);return["height","padding-top","padding-bottom"].map(function(e){var t=parseInt(n.getPropertyValue(e),10);return isNaN(t)?0:t}).reduce(function(e,t){return e+t})},s=function(e,t){if(!(e instanceof Array))throw new Error("You must provide a Array of HTMLElements to be filtered.");return"string"!=typeof t?e:e.filter(function(e){return e.querySelector(t)instanceof HTMLElement||e.shadowRoot&&e.shadowRoot.querySelector(t)instanceof HTMLElement}).map(function(e){return e.querySelector(t)||e.shadowRoot&&e.shadowRoot.querySelector(t)})},T=function(e){return e.composedPath&&e.composedPath()[0]||e.target},f=function(e,t,n){return{element:e,posX:n.pageX-t.left,posY:n.pageY-t.top}},L=function(e,t,n){if(!(e instanceof Event))throw new Error("setDragImage requires a DragEvent as the first argument.");if(!(t instanceof HTMLElement))throw new Error("setDragImage requires the dragged element as the second argument.");if(n||(n=f),e.dataTransfer&&e.dataTransfer.setDragImage){var r=n(t,m(t),e);if(!(r.element instanceof HTMLElement)||"number"!=typeof r.posX||"number"!=typeof r.posY)throw new Error("The customDragImage function you provided must return and object with the properties element[string], posX[integer], posY[integer].");e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setData("text/plain",T(e).id),e.dataTransfer.setDragImage(r.element,r.posX,r.posY)}},C=function(e,t){if(!0===e.isSortable){var n=p(e).getConfig("acceptFrom");if(null!==n&&!1!==n&&"string"!=typeof n)throw new Error('HTML5Sortable: Wrong argument, "acceptFrom" must be "null", "false", or a valid selector string.');if(null!==n)return!1!==n&&0=parseInt(r.maxItems)&&D.parentElement!==n||(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect=!0===p(n).getConfig("copy")?"copy":"move",o(n,t,e.pageY))}};a(t.concat(s),"dragover",r),a(t.concat(s),"dragenter",r)}),e)}return X.destroy=function(e){var t,n,r,o;n=c(t=e,"opts")||{},r=d(t.children,n.items),o=s(r,n.handle),i(t,"dragover"),i(t,"dragenter"),i(t,"drop"),F(t),i(o,"mousedown"),P(r),N(r)},X.enable=function(e){z(e)},X.disable=function(e){var t,n,r,o;n=c(t=e,"opts"),r=d(t.children,n.items),o=s(r,n.handle),l(t,"aria-dropeffect","none"),c(t,"_disabled","true"),l(o,"draggable","false"),i(o,"mousedown")},X.__testing={_data:c,_removeItemEvents:P,_removeItemData:N,_removeSortableData:F},X}(); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",B),ue("ww",B,z),ue("W",B),ue("WW",B,z),fe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",B),ue("e",B),ue("E",B),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,s){t[s]=D(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var $e="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Xe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),C("hour","h"),F("hour",13),ue("a",et),ue("A",et),ue("H",B),ue("h",B),ue("k",B),ue("HH",B,z),ue("hh",B,z),ue("kk",B,z),ue("hmm",Q),ue("hmmss",X),ue("Hmm",Q),ue("Hmmss",X),ce(["H","HH"],ge),ce(["k","kk"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce(["h","hh"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce("hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce("Hmm",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=n("dates accessor is deprecated. Use date instead.",un),mn.months=n("months accessor is deprecated. Use month instead",Ue),mn.years=n("years accessor is deprecated. Use year instead",Oe),mn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,d){e=setTimeout(d,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null);b.g(b.a)},function(){b.j(b.a)})};function Q(a,b,c,d,e,f,g){this.v=a;this.B=b;this.c=c;this.a=d;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.m=this.j=this.h=this.g=null;this.g=new M(this.c,this.s);this.h=new M(this.c,this.s);this.j=new M(this.c,this.s);this.m=new M(this.c,this.s);a=new G(this.a.c+",serif",J(this.a));a=O(a);this.g.a.style.cssText=a;a=new G(this.a.c+",sans-serif",J(this.a));a=O(a);this.h.a.style.cssText=a;a=new G("serif",J(this.a));a=O(a);this.j.a.style.cssText=a;a=new G("sans-serif",J(this.a));a= O(a);this.m.a.style.cssText=a;N(this.g);N(this.h);N(this.j);N(this.m)}var R={D:"serif",C:"sans-serif"},S=null;function T(){if(null===S){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);S=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return S}Q.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.m.a.offsetWidth;this.A=q();U(this)}; function la(a,b,c){for(var d in R)if(R.hasOwnProperty(d)&&b===a.f[R[d]]&&c===a.f[R[d]])return!0;return!1}function U(a){var b=a.g.a.offsetWidth,c=a.h.a.offsetWidth,d;(d=b===a.f.serif&&c===a.f["sans-serif"])||(d=T()&&la(a,b,c));d?q()-a.A>=a.w?T()&&la(a,b,c)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):ma(a):V(a,a.v)}function ma(a){setTimeout(p(function(){U(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.m.a);b(this.a)},a),0)};function W(a,b,c){this.c=a;this.a=b;this.f=0;this.m=this.j=!1;this.s=c}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,J(a).toString(),"active")],[b.a.c("wf",a.c,J(a).toString(),"loading"),b.a.c("wf",a.c,J(a).toString(),"inactive")]);K(b,"fontactive",a);this.m=!0;na(this)}; W.prototype.h=function(a){var b=this.a;if(b.g){var c=y(b.f,b.a.c("wf",a.c,J(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,J(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,J(a).toString(),"inactive"));w(b.f,d,e)}K(b,"fontinactive",a);na(this)};function na(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),K(a,"active")):L(a.a))};function oa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}oa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;pa(this,new ha(this.c,a),a)}; function qa(a,b,c,d,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,m=d||null||{};if(0===c.length&&f)L(b.a);else{b.f+=c.length;f&&(b.j=f);var h,l=[];for(h=0;h>16&255,g:i>>8&255,b:255&i}},{e:function(e){return document.querySelector(e)},eA:function(e){return document.querySelectorAll(e)},toggleClass:function(e,a){e.classList.toggle(a)},addClass:function(e,a){e.classList.add(a)},removeClass:function(e,a){e.classList.remove(a)},randomString:function(e){var a={mix:null,letter:null};e&&(a=o(a,e));var t,i,n="abcdefghijklmnopqrstuvwxyz",r={a:["Aback","Abaft","Abandoned","Abashed","Aberrant","Abhorrent","Abiding","Abject","Ablaze","Able","Abnormal","Aboriginal","Abortive","Abounding","Abrasive","Abrupt","Absent","Absorbed","Absorbing","Abstracted","Absurd","Abundant","Abusive","Acceptable","Accessible","Accidental","Accurate","Acid","Acidic","Acoustic","Acrid","Adamant","Adaptable","Addicted","Adhesive","Adjoining","Adorable","Adventurous","Afraid","Aggressive","Agonizing","Agreeable","Ahead","Ajar","Alert","Alike","Alive","Alleged","Alluring","Aloof","Amazing","Ambiguous","Ambitious","Amuck","Amused","Amusing","Ancient","Angry","Animated","Annoyed","Annoying","Anxious","Apathetic","Aquatic","Aromatic","Arrogant","Ashamed","Aspiring","Assorted","Astonishing","Attractive","Auspicious","Automatic","Available","Average","Aware","Awesome","Axiomatic"],b:["Bad","Barbarous","Bashful","Bawdy","Beautiful","Befitting","Belligerent","Beneficial","Bent","Berserk","Bewildered","Big","Billowy","Bitter","Bizarre","Black","Bloody","Blue","Blushing","Boiling","Boorish","Bored","Boring","Bouncy","Boundless","Brainy","Brash","Brave","Brawny","Breakable","Breezy","Brief","Bright","Broad","Broken","Brown","Bumpy","Burly","Bustling","Busy"],c:["Cagey","Calculating","Callous","Calm","Capable","Capricious","Careful","Careless","Caring","Cautious","Ceaseless","Certain","Changeable","Charming","Cheap","Cheerful","Chemical","Chief","Childlike","Chilly","Chivalrous","Chubby","Chunky","Clammy","Classy","Clean","Clear","Clever","Cloistered","Cloudy","Closed","Clumsy","Cluttered","Coherent","Cold","Colorful","Colossal","Combative","Comfortable","Common","Complete","Complex","Concerned","Condemned","Confused","Conscious","Cooing","Cool","Cooperative","Coordinated","Courageous","Cowardly","Crabby","Craven","Crazy","Creepy","Crooked","Crowded","Cruel","Cuddly","Cultured","Cumbersome","Curious","Curly","Curved","Curvy","Cut","Cute","Cynical"],d:["Daffy","Daily","Damaged","Damaging","Damp","Dangerous","Dapper","Dark","Dashing","Dazzling","Dead","Deadpan","Deafening","Dear","Debonair","Decisive","Decorous","Deep","Deeply","Defeated","Defective","Defiant","Delicate","Delicious","Delightful","Demonic","Delirious","Dependent","Depressed","Deranged","Descriptive","Deserted","Detailed","Determined","Devilish","Didactic","Different","Difficult","Diligent","Direful","Dirty","Disagreeable","Disastrous","Discreet","Disgusted","Disgusting","Disillusioned","Dispensable","Distinct","Disturbed","Divergent","Dizzy","Domineering","Doubtful","Drab","Draconian","Dramatic","Dreary","Drunk","Dry","Dull","Dusty","Dynamic","Dysfunctional"],e:["Eager","Early","Earsplitting","Earthy","Easy","Eatable","Economic","Educated","Efficacious","Efficient","Elastic","Elated","Elderly","Electric","Elegant","Elfin","Elite","Embarrassed","Eminent","Empty","Enchanted","Enchanting","Encouraging","Endurable","Energetic","Enormous","Entertaining","Enthusiastic","Envious","Equable","Equal","Erect","Erratic","Ethereal","Evanescent","Evasive","Even","Excellent","Excited","Exciting","Exclusive","Exotic","Expensive","Exuberant","Exultant"],f:["Fabulous","Faded","Faint","Fair","Faithful","Fallacious","False","Familiar","Famous","Fanatical","Fancy","Fantastic","Far","Fascinated","Fast","Fat","Faulty","Fearful","Fearless","Feeble","Feigned","Female","Fertile","Festive","Few","Fierce","Filthy","Fine","Finicky","First","Fixed","Flagrant","Flaky","Flashy","Flat","Flawless","Flimsy","Flippant","Flowery","Fluffy","Fluttering","Foamy","Foolish","Foregoing","Forgetful","Fortunate","Frail","Fragile","Frantic","Free","Freezing","Frequent","Fresh","Fretful","Friendly","Frightened","Frightening","Full","Fumbling","Functional","Funny","Furry","Furtive","Future","Futuristic","Fuzzy"],g:["Gabby","Gainful","Gamy","Gaping","Garrulous","Gaudy","General","Gentle","Giant","Giddy","Gifted","Gigantic","Glamorous","Gleaming","Glib","Glistening","Glorious","Glossy","Godly","Good","Goofy","Gorgeous","Graceful","Grandiose","Grateful","Gratis","Gray","Greasy","Great","Greedy","Green","Grey","Grieving","Groovy","Grotesque","Grouchy","Grubby","Gruesome","Grumpy","Guarded","Guiltless","Gullible","Gusty","Guttural"],h:["Habitual","Half","Hallowed","Halting","Handsome","Handy","Hanging","Hapless","Happy","Hard","Harmonious","Harsh","Hateful","Heady","Healthy","Heartbreaking","Heavenly","Heavy","Hellish","Helpful","Helpless","Hesitant","Hideous","High","Highfalutin","Hilarious","Hissing","Historical","Holistic","Hollow","Homeless","Homely","Honorable","Horrible","Hospitable","Hot","Huge","Hulking","Humdrum","Humorous","Hungry","Hurried","Hurt","Hushed","Husky","Hypnotic","Hysterical"],i:["Icky","Icy","Idiotic","Ignorant","Ill","Illegal","Illustrious","Imaginary","Immense","Imminent","Impartial","Imperfect","Impolite","Important","Imported","Impossible","Incandescent","Incompetent","Inconclusive","Industrious","Incredible","Inexpensive","Infamous","Innate","Innocent","Inquisitive","Insidious","Instinctive","Intelligent","Interesting","Internal","Invincible","Irate","Irritating","Itchy"],j:["Jaded","Jagged","Jazzy","Jealous","Jittery","Jobless","Jolly","Joyous","Judicious","Juicy","Jumbled","Jumpy","Juvenile"],k:["Keen","Kind","Kindhearted","Kindly","Knotty","Knowing","Knowledgeable","Known"],l:["Labored","Lackadaisical","Lacking","Lame","Lamentable","Languid","Large","Last","Late","Laughable","Lavish","Lazy","Lean","Learned","Left","Legal","Lethal","Level","Lewd","Light","Like","Likeable","Limping","Literate","Little","Lively","Living","Lonely","Long","Longing","Loose","Lopsided","Loud","Loutish","Lovely","Loving","Low","Lowly","Lucky","Ludicrous","Lumpy","Lush","Luxuriant","Lying","Lyrical"],m:["Macabre","Macho","Maddening","Madly","Magenta","Magical","Magnificent","Majestic","Makeshift","Male","Malicious","Mammoth","Maniacal","Many","Marked","Massive","Married","Marvelous","Material","Materialistic","Mature","Mean","Measly","Meaty","Medical","Meek","Mellow","Melodic","Melted","Merciful","Mere","Messy","Mighty","Military","Milky","Mindless","Miniature","Minor","Miscreant","Misty","Mixed","Moaning","Modern","Moldy","Momentous","Motionless","Mountainous","Muddled","Mundane","Murky","Mushy","Mute","Mysterious"],n:["Naive","Nappy","Narrow","Nasty","Natural","Naughty","Nauseating","Near","Neat","Nebulous","Necessary","Needless","Needy","Neighborly","Nervous","New","Next","Nice","Nifty","Nimble","Nippy","Noiseless","Noisy","Nonchalant","Nondescript","Nonstop","Normal","Nostalgic","Nosy","Noxious","Numberless","Numerous","Nutritious","Nutty"],o:["Oafish","Obedient","Obeisant","Obese","Obnoxious","Obscene","Obsequious","Observant","Obsolete","Obtainable","Oceanic","Odd","Offbeat","Old","Omniscient","Onerous","Open","Opposite","Optimal","Orange","Ordinary","Organic","Ossified","Outgoing","Outrageous","Outstanding","Oval","Overconfident","Overjoyed","Overrated","Overt","Overwrought"],p:["Painful","Painstaking","Pale","Paltry","Panicky","Panoramic","Parallel","Parched","Parsimonious","Past","Pastoral","Pathetic","Peaceful","Penitent","Perfect","Periodic","Permissible","Perpetual","Petite","Phobic","Physical","Picayune","Pink","Piquant","Placid","Plain","Plant","Plastic","Plausible","Pleasant","Plucky","Pointless","Poised","Polite","Political","Poor","Possessive","Possible","Powerful","Precious","Premium","Present","Pretty","Previous","Pricey","Prickly","Private","Probable","Productive","Profuse","Protective","Proud","Psychedelic","Psychotic","Public","Puffy","Pumped","Puny","Purple","Purring","Pushy","Puzzled","Puzzling"],q:["Quaint","Quarrelsome","Questionable","Quick","Quiet","Quirky","Quixotic","Quizzical"],r:["Rabid","Racial","Ragged","Rainy","Rambunctious","Rampant","Rapid","Rare","Raspy","Ratty","Ready","Real","Rebel","Receptive","Recondite","Red","Redundant","Reflective","Regular","Relieved","Remarkable","Reminiscent","Repulsive","Resolute","Resonant","Responsible","Rhetorical","Rich","Right","Righteous","Rightful","Rigid","Ripe","Ritzy","Roasted","Robust","Romantic","Roomy","Rotten","Rough","Round","Royal","Ruddy","Rude","Rural","Rustic","Ruthless"],s:["Sable","Sad","Safe","Salty","Same","Sassy","Satisfying","Savory","Scandalous","Scarce","Scared","Scary","Scattered","Scientific","Scintillating","Scrawny","Screeching","Second","Secret","Secretive","Sedate","Seemly","Selective","Selfish","Separate","Serious","Shaggy","Shaky","Shallow","Sharp","Shiny","Shivering","Shocking","Short","Shrill","Shut","Shy","Sick","Silent","Silky","Silly","Simple","Simplistic","Sincere","Skillful","Skinny","Sleepy","Slim","Slimy","Slippery","Sloppy","Slow","Small","Smart","Smelly","Smiling","Smoggy","Smooth","Sneaky","Snobbish","Snotty","Soft","Soggy","Solid","Somber","Sophisticated","Sordid","Sore","Sour","Sparkling","Special","Spectacular","Spicy","Spiffy","Spiky","Spiritual","Spiteful","Splendid","Spooky","Spotless","Spotted","Spotty","Spurious","Squalid","Square","Squealing","Squeamish","Staking","Stale","Standing","Statuesque","Steadfast","Steady","Steep","Stereotyped","Sticky","Stiff","Stimulating","Stingy","Stormy","Straight","Strange","Striped","Strong","Stupendous","Sturdy","Subdued","Subsequent","Substantial","Successful","Succinct","Sudden","Sulky","Super","Superb","Superficial","Supreme","Swanky","Sweet","Sweltering","Swift","Symptomatic","Synonymous"],t:["Taboo","Tacit","Tacky","Talented","Tall","Tame","Tan","Tangible","Tangy","Tart","Tasteful","Tasteless","Tasty","Tawdry","Tearful","Tedious","Teeny","Telling","Temporary","Ten","Tender","Tense","Tenuous","Terrific","Tested","Testy","Thankful","Therapeutic","Thick","Thin","Thinkable","Third","Thirsty","Thoughtful","Thoughtless","Threatening","Thundering","Tidy","Tight","Tightfisted","Tiny","Tired","Tiresome","Toothsome","Torpid","Tough","Towering","Tranquil","Trashy","Tremendous","Tricky","Trite","Troubled","Truculent","True","Truthful","Typical"],u:["Ubiquitous","Ultra","Unable","Unaccountable","Unadvised","Unarmed","Unbecoming","Unbiased","Uncovered","Understood","Undesirable","Unequal","Unequaled","Uneven","Unhealthy","Uninterested","Unique","Unkempt","Unknown","Unnatural","Unruly","Unsightly","Unsuitable","Untidy","Unused","Unusual","Unwieldy","Unwritten","Upbeat","Uppity","Upset","Uptight","Used","Useful","Useless","Utopian"],v:["Vacuous","Vagabond","Vague","Valuable","Various","Vast","Vengeful","Venomous","Verdant","Versed","Victorious","Vigorous","Violent","Violet","Vivacious","Voiceless","Volatile","Voracious","Vulgar"],w:["Wacky","Waggish","Waiting","Wakeful","Wandering","Wanting","Warlike","Warm","Wary","Wasteful","Watery","Weak","Wealthy","Weary","Wet","Whimsical","Whispering","White","Whole","Wholesale","Wicked","Wide","Wiggly","Wild","Willing","Windy","Wiry","Wise","Wistful","Witty","Woebegone","Womanly","Wonderful","Wooden","Woozy","Workable","Worried","Worthless","Wrathful","Wretched","Wrong","Wry"],x:["Xenial","Xenodochial","Xenophobic"],y:["Yellow","Yielding","Young","Youthful","Yummy"],z:["Zany","Zealous","Zesty","Zippy","Zombiesque","Zonked"]},l={a:["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape","Armadillo"],b:["Baboon","Badger","Barracuda","Bat","Bear","Beaver","Bee","Bison","Boar","Buffalo","Butterfly"],c:["Camel","Capybara","Caribou","Cassowary","Cat","Caterpillar","Cattle","Chamois","Cheetah","Chicken","Chimpanzee","Chinchilla","Chough","Clam","Cobra","Cockroach","Cod","Cormorant","Coyote","Crab","Crane","Crocodile","Crow","Curlew"],d:["Deer","Dinosaur","Dog","Dogfish","Dolphin","Donkey","Dotterel","Dove","Dragonfly","Duck","Dugong","Dunlin"],e:["Eagle","Echidna","Eel","Eland","Elephant","Elephant Seal","Elk","Emu"],f:["Falcon","Ferret","Finch","Fish","Flamingo","Fly","Fox","Frog"],g:["Gaur","Gazelle","Gerbil","Giant Panda","Giraffe","Gnat","Gnu","Goat","Goose","Goldfinch","Goldfish","Gorilla","Goshawk","Grasshopper","Grouse","Guanaco","Guinea Fowl","Guinea Pig","Gull"],h:["Hamster","Hare","Hawk","Hedgehog","Heron","Herring","Hippopotamus","Hornet","Horse","Human","Hummingbird","Hyena"],i:["Ibex","Ibis","Iguana","Impala","Isopod"],j:["Jackal","Jaguar","Jay","Jellyfish"],k:["Kangaroo","Kingfisher","Koala","Komodo Dragon","Kookabura","Kouprey","Kudu"],l:["Lapwing","Lark","Lemur","Leopard","Lima","Lion","Llama","Lobster","Locust","Loris","Louse","Lyrebird"],m:["Magpie","Mallard","Manatee","Mandrill","Mantis","Marten","Meerkat","Mink","Mole","Mongoose","Monkey","Moose","Mouse","Mosquito","Mule"],n:["Narwhal","Newt","Nightingale","Nyala"],o:["Octopus","Okapi","Opossum","Oryx","Ostrich","Otter","Owl","Ox","Oyster"],p:["Panther","Parrot","Partridge","Peafowl","Pelican","Penguin","Pheasant","Pig","Pigeon","Polar Bear","Pony","Porcupine","Porpoise"],q:["Quail","Quelea","Quetzal"],r:["Rabbit","Raccoon","Rail","Ram","Rat","Raven","Red Deer","Red Panda","Reindeer","Rhinoceros","Rook"],s:["Salamander","Salmon","Sand Dollar","Sandpiper","Sardine","Scorpion","Sea Lion","Sea Urchin","Seahorse","Seal","Shark","Sheep","Shrew","Skunk","Snail","Snake","Sparrow","Spider","Spoonbill","Squid","Squirrel","Starling","Stingray","Stinkbug","Stork","Swallow","Swan"],t:["Tapir","Tarsier","Termite","Tiger","Toad","Trout","Turkey","Turtle"],u:["Uakari","Unau","Urial","Urchin","Umbrellabird","Unicornfish","Uromastyx","Uguisu"],v:["Vampire Bat","Viper","Vole","Vulture"],w:["Wallaby","Walrus","Wasp","Weasel","Whale","Wolf","Wolverine","Wombat","Woodcock","Woodpecker","Worm","Wren"],x:["Xaviers Greenbul","Xeme","Xingu Corydoras","Xolo"],y:["Yabby","Yak","Yellowhammer","Yellowjacket"],z:["Zebra","Zebu","Zokor","Zorilla"]};return a.mix?(t=n[Math.floor(Math.random()*n.length)],i=n[Math.floor(Math.random()*n.length)],r[t][Math.floor(Math.random()*r[t].length)]+" "+l[i][Math.floor(Math.random()*l[i].length)]):function(){if(null!=a.letter)return r[a.letter.toLowerCase()][Math.floor(Math.random()*r[a.letter.toLowerCase()].length)]+" "+l[a.letter.toLowerCase()][Math.floor(Math.random()*l[a.letter.toLowerCase()].length)];var e=n[Math.floor(Math.random()*n.length)];return r[e][Math.floor(Math.random()*r[e].length)]+" "+l[e][Math.floor(Math.random()*l[e].length)]}()},getClosest:function(e,a){for(var t=a.charAt(0);e&&e!==document;e=e.parentNode){if("."===t&&e.classList.contains(a.substr(1)))return e;if("#"===t&&e.id===a.substr(1))return e;if("["===t&&e.hasAttribute(a.substr(1,a.length-2)))return e;if(e.tagName.toLowerCase()===a)return e}return!1},allEqual:function(a){return a.every(function(e){return e===a[0]})},getDateTime:function(){var e=new Date;return{date:e.getDate(),day:e.getDay(),year:e.getFullYear(),hours:e.getHours(),milliseconds:e.getMilliseconds(),minutes:e.getMinutes(),month:e.getMonth(),seconds:e.getSeconds()}},sortObject:function(e,n){return e.sort(function(e,a){var t=r({object:e,path:n});"string"==typeof t&&(t=t.toLowerCase());var i=r({object:a,path:n});return"string"==typeof i&&(i=i.toLowerCase()),t=e.length)for(var i=t-e.length+1;i--;)e.push(void 0);return e.splice(t,0,e.splice(a,1)[0]),e},randomNumber:function(e,a){return Math.floor(Math.random()*(a-e+1)+e)},toWords:function(e){var n=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],r=["Zero","Ten","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],l=function(e){var a,t,i=arguments[1];return 0===e?i?i.join(" ").replace(/,$/,""):"Zero":(i||(i=[]),e<0&&(i.push("minus"),e=Math.abs(e)),e<20?(a=0,t=n[e]):e<100?(a=e%10,t=r[Math.floor(e/10)],a&&(t+="-"+n[a],a=0)):e<1e3?(a=e%100,t=l(Math.floor(e/100))+" Hundred"):e<1e6?(a=e%1e3,t=l(Math.floor(e/1e3))+" Thousand,"):e<1e9?(a=e%1e6,t=l(Math.floor(e/1e6))+" Million,"):e<1e12?(a=e%1e9,t=l(Math.floor(e/1e9))+" Billion,"):e<1e15?(a=e%1e12,t=l(Math.floor(e/1e12))+" Trillion,"):e<=9007199254740992&&(a=e%1e15,t=l(Math.floor(e/1e15))+" Quadrillion,"),i.push(t),l(a,i))},a=parseInt(e,10);return l(a)},ordinalWords:function(e){var a=/y$/,t=/(Zero|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|Eleven|Twelve)$/,i={Zero:"Zeroth",One:"First",Two:"Second",Three:"Third",Four:"Fourth",Five:"Fifth",Six:"Sixth",Seven:"Seventh",Eight:"Eighth",Nine:"Ninth",Ten:"Tenth",Eleven:"Eleventh",Twelve:"Twelfth"};return/(hundred|thousand|(m|b|tr|quadr)illion)$/.test(e)||/teen$/.test(e)?e+"th":a.test(e)?e.replace(a,"ieth"):t.test(e)?e.replace(t,function(e,a){return i[a]}):e},ordinalNumber:function(e){var a=e%10,t=e%100;return 1==a&&11!=t?e+"st":2==a&&12!=t?e+"nd":3==a&&13!=t?e+"rd":e+"th"},isJsonString:function(e){try{JSON.parse(e)}catch(e){return!1}return!0},isHexNumber:function(e){return!(!/[0-9A-Fa-f]{6}/g.test(e)||7!=e.length||"#"!=e.substring(0,1))},convertColor:e}}(); var data=function(){var r="nightTab",a={import:function(){var e=helper.e(".control-data-import").files;0 running update",t),(e=a.all[t](e)).version=t);return-1==version.compare(e.version,version.get().number)&&(console.log("\t > no state data to update, version bump to",version.get().number),e.version=version.get().number),e}};return{mod:a,run:function(e){return a.run(e)}}}(); var state=function(){var t={current:{header:{area:{width:100,justify:"center",align:"center"},item:{justify:"left"},greeting:{show:!1,type:"good",name:"",size:1,newLine:!1},clock:{hours:{show:!0,display:"number"},minutes:{show:!0,display:"number"},seconds:{show:!1,display:"number"},separator:{show:!0,text:":"},meridiem:{show:!0},hour24:{show:!0},size:1,newLine:!1},transitional:{show:!1,type:"timeanddate",size:1,newLine:!1},date:{day:{show:!0,display:"word",weekStart:"monday",length:"long"},date:{show:!0,display:"number",ordinal:!0},month:{show:!0,display:"word",length:"long",ordinal:!0},year:{show:!1,display:"number"},separator:{show:!0,text:"/"},format:"datemonth",size:1,newLine:!1},search:{show:!0,style:"box",width:{by:"auto",size:30},focus:!1,engine:{selected:"google",google:{url:"https://www.google.com/search",name:"Google"},duckduckgo:{url:"https://duckduckgo.com/",name:"DuckDuckGo"},youtube:{url:"https://www.youtube.com/results?search_query=",name:"YouTube"},giphy:{url:"https://giphy.com/search/",name:"Giphy"},bing:{url:"https://www.bing.com/search?q=",name:"Bing"},custom:{url:"",name:""}},text:{justify:"center"},size:1,newLine:!1,newTab:!1},editAdd:{show:!0,size:1,style:"box",newLine:!1},colorAccent:{dot:{show:!0},show:!0,size:1,style:"box",newLine:!1},menu:{show:!0,size:1,style:"box",newLine:!1},order:["greeting","transitional","clock","date","search","editAdd","colorAccent","menu"],border:{top:0,bottom:0},color:{by:"theme",rgb:{r:0,g:0,b:0},style:"scroll",opacity:.95,show:!0,newLine:!1},position:"sticky",radius:!1},link:{area:{width:100,direction:"ltr",justify:"center"},item:{color:{by:"theme",rgb:{r:0,g:0,b:0}},display:{letcon:{show:!0,letter:{size:3},icon:{size:3}},name:{show:!0,size:.9},gutter:2,direction:"vertical",order:"letconname",alignment:"centercenter",rotate:0,translate:{x:0,y:0}},url:{show:!0},line:{show:!0},shadow:{show:!0},hoverScale:{show:!0},newTab:!1,size:1,border:0},show:!0,add:!1,edit:!1,style:"block",orientation:"bottom"},group:{area:{justify:"left"},name:{show:!0,size:1},openAll:{show:!0,size:1,style:"box"},border:0,order:"headerbody",add:!1,edit:!1},layout:{alignment:"centercenter",order:"headerlink",direction:"vertical",padding:4,gutter:2,size:1,width:80,scrollPastEnd:!1,scrollbars:"auto",title:"New Tab"},theme:{accent:{rgb:{r:0,g:80,b:255},random:{active:!1,style:"any"},cycle:{active:!1,speed:300,step:10}},color:{hsl:{h:222,s:14,l:56},rgb:{r:129,g:138,b:160},contrast:{light:4,dark:4},generated:{}},font:{display:{name:"",weight:400,style:"normal"},ui:{name:"",weight:400,style:"normal"}},style:"dark",radius:.25,shadow:.75,shade:{opacity:.4},custom:{all:[],edit:!1}},background:{color:{by:"theme",rgb:{r:0,g:0,b:0}},image:{show:!1,from:"file",file:{name:"",data:""},url:"",blur:0,scale:1,opacity:1,grayscale:0,accent:0}},edit:!1,pagelock:!1,shade:!1,edge:!1,search:!1,menu:!1,modal:!1,dropdown:!1,autoSuggest:!1},default:{header:{area:{width:100},clock:{separator:{text:":"},size:1},date:{separator:{text:"/"},size:1},search:{width:{size:30},size:1},editAdd:{size:1},colorAccent:{size:1},menu:{size:1},color:{opacity:.95},border:{top:0,bottom:0},greeting:{size:1},transitional:{size:1}},link:{area:{width:100},item:{display:{letcon:{letter:{size:3},icon:{size:3}},name:{size:.9},gutter:2,rotate:0,translate:{x:0,y:0}},size:1,border:0}},group:{name:{size:1},openAll:{size:1},border:0},layout:{padding:4,gutter:2,size:1,width:80},theme:{accent:{rgb:{r:0,g:80,b:255},cycle:{speed:300,step:10}},color:{hsl:{h:222,s:14,l:56},rgb:{r:129,g:138,b:160},contrast:{light:4,dark:4}},font:{display:{name:"",weight:400,style:"normal"},ui:{name:"",weight:400,style:"normal"}},style:"dark",radius:.25,shadow:.75,shade:{opacity:.4}},background:{image:{blur:0,scale:1,opacity:1,grayscale:0,accent:0}}}};t.get={current:function(){return t.current},default:function(){return JSON.parse(JSON.stringify(t.default))}},t.restore=function(e){"state"in e&&(t.current=e.state)};var e={current:function(){return t.get.current()},default:function(){return t.get.default()}};return{init:function(){data.load()&&t.restore(data.load())},mod:t,get:e}}(); var bookmarks=function(){var n={all:[{name:{text:"Cool stuff",show:!0},openAll:{show:!0},items:[{display:"icon",letter:"AS",icon:{name:"dice-d20",prefix:"fas",label:"Dice D20"},name:"awesomeSheet",url:"https://zombiefox.github.io/awesomeSheet/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453104010},{display:"letter",letter:"AZ",icon:{name:"amazon",prefix:"fab",label:"Amazon"},name:"Amazon",url:"https://www.amazon.co.uk/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453107633},{display:"letter",letter:"GM",icon:{name:"envelope",prefix:"fas",label:"Envelope"},name:"Gmail",url:"https://mail.google.com/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453110265},{display:"icon",letter:"R",icon:{name:"reddit-alien",prefix:"fab",label:"reddit Alien"},name:"Reddit",url:"https://www.reddit.com/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453111491},{display:"icon",letter:"N",icon:{name:"film",prefix:"fas",label:"Film"},name:"Netflix",url:"https://www.netflix.com/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453104460},{display:"letter",letter:"DR",icon:{name:null,prefix:null,label:null},name:"Drive",url:"https://drive.google.com/drive/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453111953}]},{name:{text:"Dev sites",show:!0},openAll:{show:!0},items:[{display:"icon",letter:"DEV",icon:{name:"code",prefix:"fas",label:"Code"},name:"Devdocs",url:"http://devdocs.io/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453101749},{display:"icon",letter:"GIT",icon:{name:"github",prefix:"fab",label:"GitHub"},name:"Github",url:"https://github.com/",accent:{override:!1,color:{r:null,g:null,b:null}},searchMatch:!1,timeStamp:1546453108926}]}],get:function(t){var e;return t&&"number"==typeof t.timeStamp?(e=!1,0t.valueModify.max&&(e=t.valueModify.max),e},step:function(e,t){return e=Math.round(e/t.valueModify.step)*t.valueModify.step}}},eventType:{a:"click",button:"click",checkbox:"change",radio:"change",text:"input",textarea:"input",number:"input",range:"input",color:"change",file:"change"},action:function(n){n.element&&helper.e(n.element).addEventListener(o.control.eventType[n.type],function(e){o.control.supportedElement.includes(n.type)&&o.control.value.set(n),n.func&&n.func(),data.save()},!1),n.additionalEvents&&n.additionalEvents.forEach(function(t,e){helper.e(n.element).addEventListener(t.event,function(e){t.func(e),data.save()},!1)}),n.mirrorElement&&n.mirrorElement.forEach(function(t,e){helper.e(n.element).addEventListener(o.control.eventType[n.type],function(e){a.update.control.menu(t)},!1)}),n.valueModify&&n.mirrorElement.forEach(function(e,t){helper.e(n.element).addEventListener(o.control.eventType[n.type],function(e){clearTimeout(o.control.timer.inputUpdate),o.control.timer.inputUpdate=setTimeout(function(){a.update.control.menu(n)},1e3)},!1)})},header:function(e){e?helper.e(e.element)&&o.control.action(e):t.header.forEach(function(e,t){helper.e(e.element)&&o.control.action(e)})},menu:function(e){e?helper.e(e.element)&&o.control.action(e):t.menu.all().forEach(function(e,t){helper.e(e.element)&&o.control.action(e)})}};var a={class:function(){var n=helper.e("html"),e={edit:[{remove:["is-edit"],condition:function(){return state.get.current().edit},name:"is-edit"}],layout:[{remove:["is-layout-scrollpastend"],condition:function(){return state.get.current().layout.scrollPastEnd},name:"is-layout-scrollpastend"},{remove:["is-layout-alignment-topleft","is-layout-alignment-topcenter","is-layout-alignment-topright","is-layout-alignment-centerleft","is-layout-alignment-centercenter","is-layout-alignment-centerright","is-layout-alignment-bottomleft","is-layout-alignment-bottomcenter","is-layout-alignment-bottomright"],name:"is-layout-alignment-"+state.get.current().layout.alignment},{remove:["is-layout-direction-vertical","is-layout-direction-horizontal"],name:"is-layout-direction-"+state.get.current().layout.direction},{remove:["is-layout-order-headerlink","is-layout-order-linkheader"],name:"is-layout-order-"+state.get.current().layout.order},{remove:["is-layout-scrollbars-auto","is-layout-scrollbars-thin","is-layout-scrollbars-none"],name:"is-layout-scrollbars-"+state.get.current().layout.scrollbars}],header:{area:[{remove:["is-header-area-justify-left","is-header-area-justify-center","is-header-area-justify-right"],name:"is-header-area-justify-"+state.get.current().header.area.justify},{remove:["is-header-area-align-center","is-header-area-align-baseline"],name:"is-header-area-align-"+state.get.current().header.area.align}],item:[{remove:["is-header-item-justify-left","is-header-item-justify-center","is-header-item-justify-right"],name:"is-header-item-justify-"+state.get.current().header.item.justify}],greeting:[{remove:["is-header-item-newline-greeting"],condition:function(){return state.get.current().header.greeting.newLine},name:"is-header-item-newline-greeting"}],clock:[{remove:["is-header-item-newline-clock"],condition:function(){return state.get.current().header.clock.newLine},name:"is-header-item-newline-clock"}],transitional:[{remove:["is-header-item-newline-transitional"],condition:function(){return state.get.current().header.transitional.newLine},name:"is-header-item-newline-transitional"}],date:[{remove:["is-header-item-newline-date"],condition:function(){return state.get.current().header.date.newLine},name:"is-header-item-newline-date"}],search:[{remove:["is-header-search-text-justify-left","is-header-search-text-justify-center","is-header-search-text-justify-right"],condition:function(){return state.get.current().header.search.show},name:"is-header-search-text-justify-"+state.get.current().header.search.text.justify},{remove:["is-header-search-width-by-custom","is-header-search-width-by-auto"],condition:function(){return state.get.current().header.search.show},name:"is-header-search-width-by-"+state.get.current().header.search.width.by},{condition:function(){return state.get.current().header.search.show},name:"is-header-search-text-justify-"+state.get.current().header.search.text.justify},{remove:["is-header-item-newline-search"],condition:function(){return state.get.current().header.search.newLine},name:"is-header-item-newline-search"}],editadd:[{remove:["is-header-item-newline-editadd"],condition:function(){return state.get.current().header.editAdd.newLine},name:"is-header-item-newline-editadd"}],coloraccent:[{remove:["is-header-item-newline-coloraccent"],condition:function(){return state.get.current().header.colorAccent.newLine},name:"is-header-item-newline-coloraccent"}],menu:[{remove:["is-header-item-newline-menu"],condition:function(){return state.get.current().header.menu.newLine},name:"is-header-item-newline-menu"}],color:[{remove:["is-header-color-show"],condition:function(){return state.get.current().header.color.show},name:"is-header-color-show"},{remove:["is-header-color-style-scroll","is-header-color-style-always"],condition:function(){return state.get.current().header.color.show},name:"is-header-color-style-"+state.get.current().header.color.style},{remove:["is-header-color-by-theme","is-header-color-by-custom"],condition:function(){return state.get.current().header.color.show},name:"is-header-color-by-"+state.get.current().header.color.by}],radius:[{remove:["is-header-radius"],condition:function(){return 0=r.length&&(t=r.length-1),r[t].querySelector(".header-order-control-item-down").focus()}},tabindex:function(){var e=helper.eA(".header-item-control");state.get.current().edit?e.forEach(function(e,r){e.tabIndex=1}):e.forEach(function(e,r){e.tabIndex=-1})}},f.item={all:function(){var e=helper.e(".header"),r=helper.node("div|class:header-area"),n=helper.node("div|class:header-item-grid");state.get.current().header.order.forEach(function(e,r){if("clock"==e&&(state.get.current().header.clock.seconds.show||state.get.current().header.clock.minutes.show||state.get.current().header.clock.hours.show)||"date"==e&&(state.get.current().header.date.day.show||state.get.current().header.date.date.show||state.get.current().header.date.month.show||state.get.current().header.date.year.show)||state.get.current().header[e].show){var t=e.toLowerCase();n.appendChild(f.item.wrapper(t,f.item[e](t),r))}}),r.appendChild(n),e.appendChild(r)},clear:function(){for(var e=helper.e(".header");e.lastChild;)e.removeChild(e.lastChild)},wrapper:function(e,r){var t=helper.node("div|class:header-item header-item-"+e),n=helper.node("div|class:header-item-body header-item-body-"+e);return n.appendChild(r),t.appendChild(n),t},greeting:function(e){return helper.node("p|class:"+e)},clock:function(e){return helper.node("p|class:"+e)},transitional:function(e){return helper.node("p|class:"+e)},date:function(e){return helper.node("p|class:"+e)},search:function(){var e=helper.node("div|class:search-wrapper"),r=helper.node("form|class:search,action,method:get"),t=helper.node("input|class:search-input,type:text,placeholder:Find or Search,name:q,autocomplete:off,autocorrect:off,autocapitalize:off,spellcheck:false,tabindex:1"),n=helper.node("input|type:submit,value:Search,class:is-hidden"),o=helper.node("button|class:search-clear search-clear button button-link,tabindex:1,disabled"),a=helper.node("span|class:icon-close");return o.appendChild(a),r.appendChild(t),r.appendChild(n),e.appendChild(r),e.appendChild(o),"clear"==state.get.current().header.search.style&&helper.addClass(t,"input-clear"),state.get.current().header.search.newTab&&r.setAttribute("target","_blank"),e},editAdd:function(){var e=helper.node("div|class:header-editadd form-group form-group-nested-button"),r=helper.node("div|class:form-input-button form-input-hide"),t=helper.node("input|id:control-edit,class:control-edit,type:checkbox,tabindex:1"),n=helper.node("label|for:control-edit"),o=helper.node("span:Edit"),a=helper.node("span|class:label-icon");n.appendChild(o),n.appendChild(a),r.appendChild(t),r.appendChild(n);var d=helper.node("div|class:form-dropdown"),l=helper.node("button|class:control-add-toggle form-dropdown-toggle button,tabindex:1"),i=helper.node("span:Add");l.appendChild(i);var c=helper.node("ul|class:list-unstyled form-dropdown-menu"),s=helper.node("li"),h=helper.node("button|class:button button-block text-left form-dropdown-menu-item control-group-add,tabindex:1"),p=helper.node("span:New Group|class:button-text");h.appendChild(p),s.appendChild(h);var u=helper.node("li"),m=helper.node("button|class:button button-block text-left form-dropdown-menu-item control-link-add,tabindex:1"),g=helper.node("span:New Bookmark|class:button-text");return m.appendChild(g),u.appendChild(m),c.appendChild(s),c.appendChild(u),d.appendChild(l),d.appendChild(c),"clear"==state.get.current().header.editAdd.style&&(helper.addClass(r,"form-input-button-link"),helper.addClass(l,"button-link")),e.appendChild(r),e.appendChild(d),e},colorAccent:function(){var e=helper.node("div|class:header-coloraccent form-group form-group-nested-button"),r=helper.node("div|class:form-input-button"),t=helper.node("input|id:control-theme-color-rgb-color-quick,class:control-theme-color-rgb-color-quick,type:color,value:#000000,tabindex:1,autocomplete:off"),n=helper.node("label|for:control-theme-color-rgb-color-quick"),o=helper.node("span:Colour");n.appendChild(o),r.appendChild(t),r.appendChild(n);var a=helper.node("div|class:form-input-button"),d=helper.node("input|id:control-theme-accent-rgb-color-quick,class:control-theme-accent-rgb-color-quick,type:color,value:#000000,tabindex:1,autocomplete:off"),l=helper.node("label|for:control-theme-accent-rgb-color-quick"),i=helper.node("span:Accent");return l.appendChild(i),a.appendChild(d),a.appendChild(l),state.get.current().header.colorAccent.dot.show?(helper.addClass(r,"input-color-dot"),helper.addClass(r,"input-color-dot-shade"),helper.addClass(a,"input-color-dot"),helper.addClass(a,"input-color-dot-accent")):(helper.addClass(r,"form-input-hide"),helper.addClass(a,"form-input-hide")),"clear"==state.get.current().header.colorAccent.style&&(helper.addClass(r,"form-input-button-link"),helper.addClass(a,"form-input-button-link")),e.appendChild(r),e.appendChild(a),e},menu:function(){var e=helper.node("button|class:control-menu-open button,tabindex:1"),r=helper.node("span:-|class:baseline-alignment-icon-character,aria-hidden:true"),t=helper.node("span|class:icon-settings");return"clear"==state.get.current().header.menu.style&&helper.addClass(e,"button-link"),e.appendChild(r),e.appendChild(t),e}},f.greeting={size:function(){helper.e("html").style.setProperty("--header-greeting-size",state.get.current().header.greeting.size+"em")}},f.search={width:{size:function(){helper.e("html").style.setProperty("--header-search-width-size",state.get.current().header.search.width.size+"%")}},size:function(){helper.e("html").style.setProperty("--header-search-size",state.get.current().header.search.size+"em")}},f.transitional={size:function(){helper.e("html").style.setProperty("--header-transitional-size",state.get.current().header.transitional.size+"em")}},f.clock={size:function(){helper.e("html").style.setProperty("--header-clock-size",state.get.current().header.clock.size+"em")}},f.date={size:function(){helper.e("html").style.setProperty("--header-date-size",state.get.current().header.date.size+"em")}},f.editadd={size:function(){helper.e("html").style.setProperty("--header-editadd-size",state.get.current().header.editAdd.size+"em")}},f.coloraccent={size:function(){helper.e("html").style.setProperty("--header-coloraccent-size",state.get.current().header.colorAccent.size+"em")}},f.menu={size:function(){helper.e("html").style.setProperty("--header-menu-size",state.get.current().header.menu.size+"em")}};return{mod:m,render:f,init:function(){g.resize(),g.scroll(),g.fonts(),f.item.all(),f.area.width(),f.color.scrolling(),f.color.custom(),f.opacity(),f.border(),f.greeting.size(),f.transitional.size(),f.clock.size(),f.date.size(),f.search.width.size(),f.search.size(),f.editadd.size(),f.coloraccent.size(),f.menu.size(),f.control.all(),g.sort.item()}}}(); var modal=function(){var p=null,u={open:function(){helper.setObject({object:state.get.current(),path:"modal",newValue:!0})},close:function(){helper.setObject({object:state.get.current(),path:"modal",newValue:!1})}},h={};h.focus={loop:function(e){var n=helper.e(".modal").querySelectorAll("[tabindex]"),t=n[0],o=n[n.length-1];9==e.keyCode&&e.shiftKey?document.activeElement===t&&(o.focus(),e.preventDefault()):9==e.keyCode&&document.activeElement===o&&(t.focus(),e.preventDefault())},add:function(){window.addEventListener("keydown",h.focus.loop,!1)},remove:function(){window.removeEventListener("keydown",h.focus.loop,!1)}};var n={toggle:function(e){state.get.current().modal?n.open(e):n.close()},close:function(){var e=helper.eA(".modal");if(e[0])for(var n=0;ndocument.documentElement.clientWidth-parseInt(getComputedStyle(i).marginLeft,10)&&(i.setAttribute("style","width: "+d+"; top: "+l+"; left: initial; right: 0px;"),a.setAttribute("style","left: "+(-parseInt(i.getBoundingClientRect().left,10)+parseInt(t.getBoundingClientRect().left,10)+parseInt(t.getBoundingClientRect().width,10)/2)+"px;")),getComputedStyle(i).opacity,helper.removeClass(i,"is-transparent"),helper.addClass(i,"is-opaque"),helper.addClass(i,"tip-intro")};return{destroy:a,init:function(){!function(){for(var t=helper.eA("[data-tip-options]"),e=0;en.length-1&&(t=n.length-1),0n.length-1&&(t=n.length-1),0window.innerWidth?helper.addClass(e,"form-dropdown-menu-left"):helper.addClass(e,"form-dropdown-menu-right"),o.bottom>window.innerHeight?helper.addClass(e,"form-dropdown-menu-top"):helper.addClass(e,"form-dropdown-menu-bottom")}else helper.removeClass(e,"form-dropdown-menu-left"),helper.removeClass(e,"form-dropdown-menu-right"),helper.removeClass(e,"form-dropdown-menu-top"),helper.removeClass(e,"form-dropdown-menu-bottom")},toggle:function(){state.get.current().dropdown?d.open():d.close()},close:function(){helper.removeClass(t,"form-dropdown-open"),d.offset(),e.documentEvent.remove(),t=null},open:function(){helper.addClass(t,"form-dropdown-open"),d.offset(),e.documentEvent.add()}},o=function(){r.close(),d.close(),helper.eA(".form-dropdown").forEach(function(e,o){helper.removeClass(e,"form-dropdown-open")})};return{init:function(){r.close(),e.formDropdown()},bind:e,render:d,close:o}}(); console.log("nightTab version",version.get().number,version.get().name),ready.init(),data.init(),state.init(),header.init(),bookmarks.init(),theme.init(),menu.init(),search.init(),link.init(),control.init(),greeting.init(),transitional.init(),date.init(),clock.init(),keyboard.init(),layout.init(),background.init(),modal.init(),shade.init(),dropdown.init(),version.init(); //# sourceMappingURL=nighttab.min.js.map