if(function(){function ni(n){return function(){return n}}function di(n){var t="Array"===n&&r.isArray||function(t,i){return(i||vt.call(t))==="[object "+n+"]"};return gr[n]=t}function nu(n,t){function i(i){return k(i)?vt.call(i)==="[object "+t+"]":typeof i===n}return gr[t]=i}function tu(t){t.SugarMethods||(hi(t,"SugarMethods",{}),n(t,!1,!0,{extend:function(i,r,u){n(t,!1!==u,r,i)},sugarRestore:function(){return ff(this,t,arguments,function(n,t,i){hi(n,t,i.method)})},sugarRevert:function(){return ff(this,t,arguments,function(n,t,i){i.existed?hi(n,t,i.original):delete n[t]})}}))}function n(n,t,i,r){var u=t?n.prototype:n;tu(n);d(r,function(r,f){var e=u[r],o=ot(u,r);v(i)&&e&&(f=so(e,f,i));!1===i&&e||hi(u,r,f);n.SugarMethods[r]={method:f,existed:o,original:e,instance:t}})}function et(t,i,r,u,f){var e={};u=s(u)?u.split(","):u;u.forEach(function(n,t){f(e,n,t)});n(t,i,r,e)}function ff(n,t,i,r){var f=0===i.length,e=l(i),u=!1;return d(t.SugarMethods,function(t,i){(f||-1!==e.indexOf(t))&&(u=!0,r(i.instance?n.prototype:n,t,i))}),u}function so(n,t,i){return function(){return i.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}}function hi(n,t,i){uf?f.defineProperty(n,t,{value:i,configurable:!0,enumerable:!1,writable:!0}):n[t]=i}function l(n,t,i){var r=[],u;for(i=i||0,u=n.length;i<u;i++)r.push(n[i]),t&&t.call(n,n[i],i);return r}function gi(n,t,i){var r=n[i||0];tt(r)&&(n=r,i=0);l(n,t,i)}function ci(n){if(!n||!n.call)throw new TypeError("Callback is not callable");}function rt(n){return void 0!==n}function u(n){return void 0===n}function ot(n,t){return!!n&&ro.call(n,t)}function k(n){return!!n&&("object"==typeof n||uo&&b(n))}function nr(n){var t=typeof n;return null==n||"string"===t||"number"===t||"boolean"===t}function ti(n,t){t=t||vt.call(n);try{if(n&&n.constructor&&!ot(n,"constructor")&&!ot(n.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}return!!n&&"[object Object]"===t&&"hasOwnProperty"in n}function d(n,t){for(var i in n)if(ot(n,i)&&!1===t.call(n,i,n[i],n))break}function iu(n,t){for(var i=0;i<n;i++)t(i)}function li(n,t){return d(t,function(i){n[i]=t[i]}),n}function tr(n){if(nr(n)&&(n=f(n)),fo&&s(n))for(var t=n,i=0,r;r=t.charAt(i);)t[i++]=r;return n}function st(n){li(this,tr(n))}function rr(n,t,i){var r=ir(10,ht(t||0));return i=i||yt,0>t&&(r=1/r),i(n*r)/r}function ur(){return"\t\n\x0b\f\r   ᠎             \u2028\u2029　﻿"}function fr(n,t){var i="";for(n=n.toString();0<t;)(t&1&&(i+=n),t>>=1)&&(n+=n);return i}function ou(n,t){var i,r;return i=n.replace(sf,function(n){return n=ii[n],n===ai&&(r=!0),n}),r?parseFloat(i):parseInt(i,t||10)}function y(n,t,i,r){return r=ht(n).toString(r||10),r=fr("0",t-r.replace(/\.\d+/,"").length)+r,(i||0>n)&&(r=(0>n?"-":"+")+r),r}function hf(n){if(11<=n&&13>=n)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function vi(n,t){function i(n,i){(n||-1<t.indexOf(i))&&(r+=i)}var r="";return t=t||"",i(n.multiline,"m"),i(n.ignoreCase,"i"),i(n.global,"g"),i(n.u,"y"),r}function kt(n){return s(n)||(n=o(n)),n.replace(/([\\/\'*+?|()\[\]{}.^$])/g,"\\$1")}function i(n,t){return n["get"+(n._utc?"UTC":"")+t]()}function ri(n,t,i){return n["set"+(n._utc&&"ISOWeek"!=t?"UTC":"")+t](i)}function yi(n,t){var c=typeof n,r,u,e,s,h,i,l;if("string"===c)return n;if(e=vt.call(n),r=ti(n,e),u=tt(n,e),null!=n&&r||u){if(t||(t=[]),1<t.length)for(i=t.length;i--;)if(t[i]===n)return"CYC";for(t.push(n),r=n.valueOf()+o(n.constructor),s=u?n:f.keys(n).sort(),i=0,l=s.length;i<l;i++)h=u?i:s[i],r+=h+yi(n[h],t);t.pop()}else r=-Infinity==1/n?"-0":o(n&&n.valueOf?n.valueOf():n);return c+e+r}function cf(n,t){return n===t?0!==n||1/n==1/t:er(n)&&er(t)?yi(n)===yi(t):!1}function er(n){var t=vt.call(n);return eo.test(t)||ti(n,t)}function lf(n,t,i){var r,f=n.length,e=t.length,u=!1!==t[e-1];return(e>(u?1:2))?(r=[],l(t,function(t){if(oo(t))return!1;r.push(af(n,f,t,u,i))}),r):af(n,f,t[0],u,i)}function af(n,t,i,r,u){return r&&(i%=t,0>i&&(i=t+i)),u?n.charAt(i):n[i]}function or(n,t){et(t,!0,!1,n,function(n,t){n[t+("equal"===t?"s":"")]=function(){return f[t].apply(null,[this].concat(l(arguments)))}})}function vf(n,t,i,r){var f=n.length,u=-1==r,e=u?f-1:0;for(i=isNaN(i)?e:parseInt(i>>0),0>i&&(i=f+i),(!u&&0>i||u&&i>=f)&&(i=e);u&&0<=i||!u&&i<f;){if(n[i]===t)return i;i+=r}return-1}function yf(n,t,i,r){var e=n.length,u=0,f=rt(i);if(ci(t),0!=e||f)f||(i=n[r?e-1:u],u++);else throw new TypeError("Reduce called on empty array with no initial value");for(;u<e;)f=r?e-u-1:u,f in n&&(i=t(i,n[f],f,n)),u++;return i}function sr(n){if(0===n.length)throw new TypeError("First argument must be defined");}function ho(n){return n=h(n),function(t){return n.test(t)}}function co(n){var t=n.getTime();return function(n){return!(!n||!n.getTime)&&n.getTime()===t}}function lo(n){return function(t,i,r){return t===n||n.call(this,t,i,r)}}function ao(n){return function(t,i,r){return t===n||n.call(r,i,t,r)}}function vo(n,t){var i={};return function(r,u,f){var e;if(!k(r))return!1;for(e in n)if(i[e]=i[e]||ui(n[e],t),!1===i[e].call(f,r[e],u,f))return!1;return!0}}function yo(n){return function(t){return t===n||cf(t,n)}}function ui(n,t){if(!nr(n)){if(b(n))return ho(n);if(it(n))return co(n);if(v(n))return t?ao(n):lo(n);if(ti(n))return vo(n,t)}return yo(n)}function pt(n,t,i,r){return t?t.apply?t.apply(i,r||[]):v(n[t])?n[t].call(n):n[t]:n}function lt(n,t,i,r){var u=+n.length;for(0>i&&(i=n.length+i),i=isNaN(i)?0:i,!0===r&&(u+=i);i<u;){if(r=i%n.length,!(r in n)){po(n,t,i);break}if(!1===t.call(n,n[r],r,n))break;i++}}function po(n,t,i){var u=[];for(var r in n)r in n&&r>>>0==r&&4294967295!=r&&r>=i&&u.push(parseInt(r));u.sort().each(function(i){return t.call(n,n[i],i,n)})}function hr(n,t,i,r,u,f){var e,o,s;return 0<n.length&&(s=ui(t),lt(n,function(t,i){if(s.call(f,t,i,n))return e=t,o=i,!1},i,r)),u?o:e}function pf(n,t){var i=[],u={},r;return lt(n,function(f,e){r=t?pt(f,t,n,[f,e,n]):f;kf(u,r)||i.push(f)}),i}function wf(n,t,i){var u=[],r={};return t.each(function(n){kf(r,n)}),n.each(function(n){var t=yi(n),e=!er(n),f;if(bf(r,t,n,e)!==i){if(f=0,e)for(t=r[t];f<t.length;)t[f]===n?t.splice(f,1):f+=1;else delete r[t];u.push(n)}}),u}function hu(n,t,i){t=t||Infinity;i=i||0;var r=[];return lt(n,function(n){tt(n)&&i<t?r=r.concat(hu(n,t,i+1)):r.push(n)}),r}function cu(n){var t=[];return l(n,function(n){t=t.concat(n)}),t}function bf(n,t,i,r){var u=t in n;return r&&(n[t]||(n[t]=[]),u=-1!==n[t].indexOf(i)),u}function kf(n,t){var i=yi(t),r=!er(t),u=bf(n,i,t,r);return r?n[i].push(t):n[i]=t,u}function cr(n,t,i,f){var h,s,e,o=[],l="max"===i,a="min"===i,c=r.isArray(n);for(h in n)if(n.hasOwnProperty(h)){if(i=n[h],e=pt(i,t,n,c?[i,parseInt(h),n]:[]),u(e))throw new TypeError("Cannot compare with undefined");e===s?o.push(i):(u(s)||l&&e>s||a&&e<s)&&(o=[i],s=e)}return c||(o=hu(o,1)),f?o:o[0]}function df(n,t){var i,u,e,o,f=0,s=0;i=r[wo];u=r[te];var h=r[ie],c=r[ne],l=r[re];n=gf(n,i,u);t=gf(t,i,u);do i=n.charAt(f),e=h[i]||i,i=t.charAt(f),o=h[i]||i,i=e?c.indexOf(e):null,u=o?c.indexOf(o):null,-1===i||-1===u?(i=n.charCodeAt(f)||null,u=t.charCodeAt(f)||null,l&&(i>=uu&&i<=ef||i>=fu&&i<=of)&&(u>=uu&&u<=ef||u>=fu&&u<=of)&&(i=ou(n.slice(f)),u=ou(t.slice(f)))):(e=e!==n.charAt(f),o=o!==t.charAt(f),e!==o&&0===s&&(s=e-o)),f+=1;while(null!=i&&null!=u&&i===u);return i===u?s:i-u}function gf(n,t,i){return s(n)||(n=o(n)),i&&(n=n.toLowerCase()),t&&(n=n.replace(t,"")),n}function ue(n,t){et(f,!1,!0,n,function(n,i){n[i]=function(n,u,e){var s=f.keys(tr(n)),o;return t||(o=ui(u,!0)),e=r.prototype[i].call(s,function(i){var r=n[i];return t?pt(r,u,n,[i,r,n]):o(r,i,n)},e),tt(e)&&(e=e.reduce(function(t,i){return t[i]=n[i],t},{})),e}});or(n,st)}function ce(n){li(this,n);this.g=vu.concat()}function le(n,t,i){var e,r,u=t[0],f=t[1],o=t[2];return(t=n[i]||n.relative,v(t))?t.call(n,u,f,o,i):(r=n.units[8*(n.plural&&1<u?1:0)+f]||n.units[f],n.capitalizeUnit&&(r=ei(r)),e=n.modifiers.filter(function(n){return"sign"==n.name&&n.value==(0<o?1:-1)})[0],t.replace(/\{(.*?)\}/g,function(n,t){switch(t){case"num":return u;case"unit":return r;case"sign":return e.src}}))}function ko(n,t){return t=t||n.code,"en"===t||"en-US"===t?!0:n.variant}function go(n,t){return t.replace(h(n.num,"g"),function(t){return ae(n,t)||""})}function ae(n,t){var i;return c(t)?t:t&&-1!==(i=n.numbers.indexOf(t))?(i+1)%10:1}function nt(n,t){var i;if(s(n)||(n=""),i=pu[n]||pu[n.slice(0,2)],!1===t&&!i)throw new TypeError("Invalid locale.");return i||lr}function ns(n,t){function o(n){var t=i[n];s(t)?i[n]=t.split(","):t||(i[n]=[])}function h(n,t){n=n.split("+").map(function(n){return n.replace(/(.+):(.+)$/,function(n,t,i){return i.split("|").map(function(n){return t+n}).join("|")})}).join("|");n.split("|").forEach(t)}function r(n,t,r){var u=[];i[n].forEach(function(n,i){t&&(n+="+"+n.slice(0,3));h(n,function(n,t){u[t*r+i]=n.toLowerCase()})});i[n]=u}function u(n,t,r){return n="\\d{"+n+","+t+"}",r&&(n+="|(?:"+wi(i.numbers)+")+"),n}function f(n,t){i[n]=i[n]||t}var i,e;return i=new ce(t),o("modifiers"),"months weekdays units numbers articles tokens timeMarker ampm timeSuffixes dateParse timeParse".split(" ").forEach(o),e=!i.monthSuffix,r("months",e,12),r("weekdays",e,7),r("units",!1,8),r("numbers",!1,10),f("code",n),f("date",u(1,2,i.digitDate)),f("year","'\\d{2}|"+u(4,4)),f("num",function(){var n=["-?\\d+"].concat(i.articles);return i.numbers&&(n=n.concat(i.numbers)),wi(n)}()),function(){var n=[];i.i={};i.modifiers.push({name:"day",src:"yesterday",value:-1});i.modifiers.push({name:"day",src:"today",value:0});i.modifiers.push({name:"day",src:"tomorrow",value:1});i.modifiers.forEach(function(t){var r=t.name;h(t.src,function(u){var f=i[r];i.i[u]=t;n.push({name:r,src:u,value:t.value});i[r]=f?f+"|"+u:u})});i.day+="|"+wi(i.weekdays);i.modifiers=n}(),i.monthSuffix&&(i.month=u(1,2),i.months="1 2 3 4 5 6 7 8 9 10 11 12".split(" ").map(function(n){return n+i.monthSuffix})),i.full_month=u(1,2)+"|"+wi(i.months),0<i.timeSuffixes.length&&i.addFormat(bu(i),!1,ar),i.addFormat("{day}",!0),i.addFormat("{month}"+(i.monthSuffix||"")),i.addFormat("{year}"+(i.yearSuffix||"")),i.timeParse.forEach(function(n){i.addFormat(n,!0)}),i.dateParse.forEach(function(n){i.addFormat(n)}),pu[n]=i}function yr(n,t,i,r){n.g.unshift({r:r,locale:n,q:h("^"+t+"$","i"),to:i})}function ei(n){return n.slice(0,1).toUpperCase()+n.slice(1)}function wi(n){return n.filter(function(n){return!!n}).join("|")}function dt(){var n=t.SugarNewDate;return n?n():new t}function pr(n,t){var i;return k(n[0])?n:c(n[0])&&!c(n[1])?[n[0]]:s(n[0])&&t?[ts(n[0]),n[1]]:(i={},au.forEach(function(t,r){i[t.name]=n[r]}),[i])}function ts(n){var t,i={};return(n=n.match(/^(\d+)?\s?(\w+?)s?$/i))&&(u(t)&&(t=parseInt(n[1])||1),i[n[2].toLowerCase()]=t),i}function oi(n,t,i){var r;for(u(i)&&(i=vr.length),t=t||0;t<i&&(r=vr[t],!1!==n(r.name,r,t));t++);}function is(n,t){var r={},i,f;return t.forEach(function(t,e){i=n[e+1];u(i)||""===i||("year"===t&&(r.t=i.replace(/'/,"")),f=parseFloat(i.replace(/'/,"").replace(/,/,".")),r[t]=isNaN(f)?i.toLowerCase():f)}),r}function rs(n){return n=n.trim().replace(/^just (?=now)|\.+$/i,""),us(n)}function us(n){return n.replace(he,function(n,t,i){var u=0,r=1,f,e;return t?n:(i.split("").reverse().forEach(function(n){n=lu[n];var t=9<n;t?(f&&(u+=r),r*=n/(e||1),e=n):(!1===f&&(r*=10),u+=r*n);f=t}),f&&(u+=r),u)})}function ve(n,r,u,f){function b(n){ut.push(n)}function et(){ut.forEach(function(n){n.call()})}function ot(){var n=o.getWeekday();o.setWeekday(7*(e.num-1)+(n>p?p+7:p))}function st(){var n=h.i[e.edge];oi(function(n){if(rt(e[n]))return l=n,!1},4);"year"===l?e.e="month":("month"===l||"week"===l)&&(e.e="day");o[(0>n.value?"endOf":"beginningOf")+ei(l)]();-2===n.value&&o.reset()}function ht(){var n;oi(function(t,i,r){if("day"===t&&(t="date"),rt(e[t])){if(r>=ft)return o.setTime(NaN),!1;n=n||{};n[t]=e[t];delete e[t]}});n&&b(function(){o.set(n,!0)})}var o,tt,y,ut,h,e,l,ft,p,w,v;return o=dt(),ut=[],o.utc(f),it(n)?o.utc(n.isUTC()).setTime(n.getTime()):c(n)?o.setTime(n):k(n)?(o.set(n,!0),e=n):s(n)&&(y=nt(r),n=rs(n),y&&d(y.o?[y.o].concat(y.g):y.g,function(t,u){var f=n.match(u.q);if(f)return(h=u.locale,e=is(f,u.to),h.o=u,e.utc&&o.utc(),e.timestamp)?(e=e.timestamp,!1):(u.r&&!s(e.month)&&(s(e.date)||ko(y,r))&&(v=e.month,e.month=e.date,e.date=v),e.year&&2===e.t.length&&(e.year=100*yt(i(dt(),"FullYear")/100)-100*yt(e.year/100)+e.year),e.month&&(e.month=h.getMonth(e.month),e.shift&&!e.unit&&(e.unit=h.units[7])),e.weekday&&e.date?delete e.weekday:e.weekday&&(e.weekday=h.getWeekday(e.weekday),e.shift&&!e.unit&&(e.unit=h.units[5])),e.day&&(v=h.i[e.day])?(e.day=v.value,o.reset(),tt=!0):e.day&&-1<(p=h.getWeekday(e.day))&&(delete e.day,e.num&&e.month?(b(ot),e.day=1):e.weekday=p),e.date&&!c(e.date)&&(e.date=go(h,e.date)),e.ampm&&e.ampm===h.ampm[1]&&12>e.hour?e.hour+=12:e.ampm===h.ampm[0]&&12===e.hour&&(e.hour=0),("offset_hours"in e||"offset_minutes"in e)&&(o.utc(),e.offset_minutes=e.offset_minutes||0,e.offset_minutes+=60*e.offset_hours,"-"===e.offset_sign&&(e.offset_minutes*=-1),e.minute-=e.offset_minutes),e.unit&&(tt=!0,w=ae(h,e.num),ft=h.units.indexOf(e.unit)%8,l=a.units[ft],ht(),e.shift&&(w*=(v=h.i[e.shift])?v.value:0),e.sign&&(v=h.i[e.sign])&&(w*=v.value),rt(e.weekday)&&(o.set({weekday:e.weekday},!0),delete e.weekday),e[l]=(e[l]||0)+w),e.edge&&b(st),"-"===e.year_sign&&(e.year*=-1),oi(function(n,t,i){t=e[n];var r=t%1;r&&(e[vr[i-1].name]=yt(r*("second"===n?1e3:60)),e[n]=g(t))},1,4),!1)}),e?tt?o.advance(e):(o._utc&&o.reset(),br(o,e,!0,!1,u)):("now"!==n&&(o=new t(n)),f&&o.addMinutes(-o.getTimezoneOffset())),et(),o.utc(!1)),{c:o,set:e}}function ye(n){var t,i=ht(n),r=i,u=0;return oi(function(n,f,e){t=g(rr(i/f.b(),1));1<=t&&(r=t,u=e)},1),[r,u,n]}function pe(n){var t=ye(n.millisecondsFromNow());return(6===t[1]||5===t[1]&&4===t[0]&&n.daysFromNow()>=dt().daysInMonth())&&(t[0]=ht(n.monthsFromNow()),t[1]=6),t}function wr(n,t,r){function u(n,r){var u=i(n,"Month");return nt(r).months[u+12*t]}ut(n,u,r);ut(ei(n),u,r,1)}function ut(n,t,i,r){e[n]=function(n,u){var f=t(n,u);return i&&(f=f.slice(0,i)),r&&(f=f.slice(0,r).toUpperCase()+f.slice(r)),f}}function gt(n,t,i){e[n]=t;e[n+n]=function(n,i){return y(t(n,i),2)};i&&(e[n+n+n]=function(n,i){return y(t(n,i),3)},e[n+n+n+n]=function(n,i){return y(t(n,i),4)})}function fs(n){var t=n.match(/(\{\w+\})|[^{}]+/g);yu[n]=t.map(function(n){return n.replace(/\{(\w+)\}/,function(t,i){return n=e[i]||i,i}),n})}function wu(n,t,i,r){var u,f,e;if(!n.isValid())return"Invalid Date";if(Date[t]?t=Date[t]:v(t)&&(u=pe(n),t=t.apply(n,u.concat(nt(r)))),!t&&i)return u=u||pe(n),0===u[1]&&(u[1]=1,u[0]=1),n=nt(r),le(n,u,0<u[2]?"future":"past");for(t=t||"long",("short"===t||"long"===t||"full"===t)&&(t=nt(r)[t]),yu[t]||fs(t),u="",t=yu[t],f=0,i=t.length;f<i;f++)e=t[f],u+=v(e)?e(n,r):e;return u}function we(n,t,i,r,u){var f,e,o,c=0,s=0,h=0;return(f=ve(t,i,null,u),0<r&&(s=h=r,e=!0),!f.c.isValid())?!1:(f.set&&f.set.e&&(fi.forEach(function(t){t.name===f.set.e&&(c=t.b(f.c,n-f.c)-1)}),t=ei(f.set.e),(f.set.edge||f.set.shift)&&f.c["beginningOf"+t](),"month"===f.set.e&&(o=f.c.clone()["endOf"+t]().getTime()),!e&&f.set.sign&&"millisecond"!=f.set.e&&(s=50,h=-50)),e=n.getTime(),t=f.c.getTime(),o=es(n,t,o||t+c),e>=t-s&&e<=o+h)}function es(n,r,u){return r=new t(r),n=new t(u).utc(n.isUTC()),23!==i(n,"Hours")&&(r=r.getTimezoneOffset(),n=n.getTimezoneOffset(),r!==n&&(u+=(n-r).minutes())),u}function br(n,t,r,f,e){function h(n){return rt(t[n])?t[n]:t[n+"s"]}function o(n){return rt(h(n))}var l,s;if(c(t)&&f)t={milliseconds:t};else if(c(t))return n.setTime(t),n;rt(t.date)&&(t.day=t.date);oi(function(i,u,f){var e="day"===i;if(o(i)||e&&o("weekday"))return t.e=i,l=+f,!1;!r||"week"===i||e&&o("week")||ri(n,u.method,e?1:0)});fi.forEach(function(r){var e=r.name,s;r=r.method;s=h(e);u(s)||(f?("week"===e&&(s=(t.day||0)+7*s,r="Date"),s=s*f+i(n,r)):"month"===e&&o("day")&&ri(n,"Date",15),ri(n,r,s),f&&"month"===e&&(e=s,0>e&&(e=e%12+12),e%12!=i(n,"Month")&&ri(n,"Date",0)))});f||o("day")||!o("weekday")||n.setWeekday(h("weekday"));n:{switch(e){case-1:s=n>dt();break n;case 1:s=n<dt();break n}s=void 0}return s&&oi(function(t,i){if((i.k||"week"===t&&o("weekday"))&&!(o(t)||"day"===t&&o("weekday")))return n[i.j](e),!1},l+1),n}function bu(n,t){var r=bo,u={h:0,m:1,s:2},i;return n=n||a,r.replace(/{([a-z])}/g,function(r,f){var e=[],o="h"===f,s=o&&!t;return"t"===f?n.ampm.join("|"):(o&&e.push(":"),(i=n.timeSuffixes[u[f]])&&e.push(i+"\\s*"),0===e.length?"":"(?:"+e.join("|")+")"+(s?"":"?"))})}function wt(n,t,i){var r,u;return c(n[1])?r=pr(n)[0]:(r=n[0],u=n[1]),ve(r,u,t,i).c}function os(n,t){function e(){return yt(this*t)}function u(){return wt(arguments)[n.j](this)}function f(){return wt(arguments)[n.j](-this)}var r=n.name,i={};i[r]=e;i[r+"s"]=e;i[r+"Before"]=f;i[r+"sBefore"]=f;i[r+"Ago"]=f;i[r+"sAgo"]=f;i[r+"After"]=u;i[r+"sAfter"]=u;i[r+"FromNow"]=u;i[r+"sFromNow"]=u;p.extend(i)}function at(n,t){this.start=ku(n);this.end=ku(t)}function ku(n){return it(n)?new t(n.getTime()):null==n?n:it(n)?n.getTime():n.valueOf()}function be(n){return n=null==n?n:it(n)?n.getTime():n.valueOf(),!!n||0===n}function ss(n,r){var e,u,o,f;return c(r)?new t(n.getTime()+r):(e=r[0],u=r[1],o=i(n,u),f=new t(n.getTime()),ri(f,u,o+e),f)}function hs(n,t){return o.fromCharCode(n.charCodeAt(0)+t)}function cs(n,t){return n+t}function si(n,t,i,r,u){Infinity!==t&&(n.timers||(n.timers=[]),c(t)||(t=1),n.n=!1,n.timers.push(setTimeout(function(){n.n||i.apply(r,u||[])},t)))}function du(n,t,i,r,u,f){var o=n.toFixed(20),e=o.search(/\./),o=o.search(/[1-9]/),e=e-o;return 0<e&&(e-=1),u=ct(ru(g(e/3),!1===u?i.length:u),-r),r=i.charAt(u+r-1),-9>e&&(u=-3,t=ht(e)-9,r=i.slice(0,1)),i=f?ir(2,10*u):ir(10,3*u),rr(n/i,t||0).format()+r.trim()}function ke(n,t,i,r){var f,e,u;(e=t.match(/^(.+?)(\[.*\])$/))?(u=e[1],t=e[2].replace(/^\[|\]$/g,"").split("]["),t.forEach(function(t){f=!t||t.match(/^\d+$/);!u&&tt(n)&&(u=n.length);ot(n,u)||(n[u]=f?[]:{});n=n[u];u=t}),!u&&f&&(u=n.length.toString()),ke(n,u,i,r)):n[t]=r&&"true"===i?!0:r&&"false"===i?!1:i}function de(n,t){var i;return tt(t)||k(t)&&t.toString===vt?(i=[],d(t,function(t,r){n&&(t=n+"["+t+"]");i.push(de(t,r))}),i.join("&")):n?ge(n)+"="+(it(t)?t.getTime():ge(t)):""}function ge(n){return n||!1===n||0===n?encodeURIComponent(n).replace(/%20/g,"+"):""}function no(n,t,i){var r,u=n instanceof st?new st:{};return d(n,function(n,f){r=!1;gi(t,function(t){(b(t)?t.test(n):k(t)?t[n]===f:n===o(t))&&(r=!0)},1);r===i&&(u[n]=f)}),u}function kr(n){if(n=+n,0>n||Infinity===n)throw new RangeError("Invalid number");return n}function dr(n,t){return fr(rt(t)?t:" ",n)}function to(n,t,i,r,f){var e;if(n.length<=t)return n.toString();r=u(r)?"...":r;switch(i){case"left":return n=f?bi(n,t,!0):n.slice(n.length-t),r+n;case"middle":return i=bt(t/2),e=g(t/2),t=f?bi(n,i):n.slice(0,i),n=f?bi(n,e,!0):n.slice(n.length-e),t+r+n;default:return t=f?bi(n,t):n.slice(0,t),t+r}}function bi(n,t,i){if(i)return bi(n.reverse(),t).reverse();i=h("(?=["+ur()+"])");var r=0;return n.split(i).filter(function(n){return r+=n.length,r<=t}).join("")}function io(n,t,i){return s(t)&&(t=n.indexOf(t),-1===t&&(t=i?n.length:0)),t}var f=Object,r=Array,h=RegExp,t=Date,o=String,p=Number,w=Math,ki="undefined"!=typeof global?global:this,vt=f.prototype.toString,ro=f.prototype.hasOwnProperty,uf=f.defineProperty&&f.defineProperties,uo="function"==typeof h(),fo=!("0"in new o("a")),gr={},eo=/^\[object Date|Array|String|Number|RegExp|Boolean|Arguments\]$/,ft="Boolean Number String Array Date RegExp Function".split(" "),oo=nu("boolean",ft[0]),c=nu("number",ft[1]),s=nu("string",ft[2]),tt=di(ft[3]),it=di(ft[4]),b=di(ft[5]),v=di(ft[6]),su,pi,gu,nf,tf,rf;st.prototype.constructor=f;var ht=w.abs,ir=w.pow,bt=w.ceil,g=w.floor,yt=w.round,ru=w.min,ct=w.max;var uu=48,ef=57,fu=65296,of=65305,ai=".",eu="",ii={},sf;for(tu(f),d(ft,function(n,t){tu(ki[t])}),pi=0;9>=pi;pi++)su=o.fromCharCode(pi+fu),eu+=su,ii[su]=o.fromCharCode(pi+uu);ii[","]="";ii["．"]=ai;ii[ai]=ai;sf=h("["+eu+"．,"+ai+"]","g");n(f,!1,!1,{keys:function(n){var t=[];if(!k(n)&&!b(n)&&!v(n))throw new TypeError("Object required");return d(n,function(n){t.push(n)}),t}});n(r,!1,!1,{isArray:function(n){return tt(n)}});n(r,!0,!1,{every:function(n,t){var r=this.length,i=0;for(sr(arguments);i<r;){if(i in this&&!n.call(t,this[i],i,this))return!1;i++}return!0},some:function(n,t){var r=this.length,i=0;for(sr(arguments);i<r;){if(i in this&&n.call(t,this[i],i,this))return!0;i++}return!1},map:function(n,t){t=arguments[1];var r=this.length,i=0,u=Array(r);for(sr(arguments);i<r;)i in this&&(u[i]=n.call(t,this[i],i,this)),i++;return u},filter:function(n){var r=arguments[1],u=this.length,t=0,i=[];for(sr(arguments);t<u;)t in this&&n.call(r,this[t],t,this)&&i.push(this[t]),t++;return i},indexOf:function(n,t){return s(this)?this.indexOf(n,t):vf(this,n,t,1)},lastIndexOf:function(n,t){return s(this)?this.lastIndexOf(n,t):vf(this,n,t,-1)},forEach:function(n,t){var r=this.length,i=0;for(ci(n);i<r;)i in this&&n.call(t,this[i],i,this),i++},reduce:function(n,t){return yf(this,n,t)},reduceRight:function(n,t){return yf(this,n,t,!0)}});n(Function,!0,!1,{bind:function(n){var t=this,r=l(arguments,null,1),i;if(!v(this))throw new TypeError("Function.prototype.bind called on a non-function");return i=function(){return t.apply(t.prototype&&this instanceof t?this:n,r.concat(l(arguments)))},i.prototype=this.prototype,i}});n(t,!1,!1,{now:function(){return(new t).getTime()}}),function(){var t=ur().match(/^\s+$/);try{o.prototype.trim.call([1])}catch(i){t=!1}n(o,!0,!t,{trim:function(){return this.toString().trimLeft().trimRight()},trimLeft:function(){return this.replace(h("^["+ur()+"]+"),"")},trimRight:function(){return this.replace(h("["+ur()+"]+$"),"")}})}(),function(){var n=new t(t.UTC(1999,11,31)),n=n.toISOString&&"1999-12-31T00:00:00.000Z"===n.toISOString();et(t,!0,!n,"toISOString,toJSON",function(n,t){n[t]=function(){return y(this.getUTCFullYear(),4)+"-"+y(this.getUTCMonth()+1,2)+"-"+y(this.getUTCDate(),2)+"T"+y(this.getUTCHours(),2)+":"+y(this.getUTCMinutes(),2)+":"+y(this.getUTCSeconds(),2)+"."+y(this.getUTCMilliseconds(),3)+"Z"}})}();"use strict";var ne="AlphanumericSortOrder",wo="AlphanumericSortIgnore",te="AlphanumericSortIgnoreCase",ie="AlphanumericSortEquivalents",re="AlphanumericSortNatural";n(r,!1,!0,{create:function(){var n=[];return l(arguments,function(t){(!nr(t)&&"length"in t&&("[object Arguments]"===vt.call(t)||t.callee)||!nr(t)&&"length"in t&&!s(t)&&!ti(t))&&(t=r.prototype.slice.call(t,0));n=n.concat(t)}),n}});n(r,!0,!1,{find:function(n,t){return ci(n),hr(this,n,0,!1,!1,t)},findIndex:function(n,t){var i;return ci(n),i=hr(this,n,0,!1,!0,t),u(i)?-1:i}});n(r,!0,!0,{findFrom:function(n,t,i){return hr(this,n,t,i)},findIndexFrom:function(n,t,i){return t=hr(this,n,t,i,!0),u(t)?-1:t},findAll:function(n,t,i){var r=[],u;return 0<this.length&&(u=ui(n),lt(this,function(n,t,i){u(n,t,i)&&r.push(n)},t,i)),r},count:function(n){return u(n)?this.length:this.findAll(n).length},removeAt:function(n,t){return u(n)?this:(u(t)&&(t=n),this.splice(n,t-n+1),this)},include:function(n,t){return this.clone().add(n,t)},exclude:function(){return r.prototype.remove.apply(this.clone(),arguments)},clone:function(){return li([],this)},unique:function(n){return pf(this,n)},flatten:function(n){return hu(this,n)},union:function(){return pf(this.concat(cu(arguments)))},intersect:function(){return wf(this,cu(arguments),!1)},subtract:function(){return wf(this,cu(arguments),!0)},at:function(){return lf(this,arguments)},first:function(n){return u(n)?this[0]:(0>n&&(n=0),this.slice(0,n))},last:function(n){return u(n)?this[this.length-1]:this.slice(0>this.length-n?0:this.length-n)},from:function(n){return this.slice(n)},to:function(n){return u(n)&&(n=this.length),this.slice(0,n)},min:function(n,t){return cr(this,n,"min",t)},max:function(n,t){return cr(this,n,"max",t)},least:function(n,t){return cr(this.groupBy.apply(this,[n]),"length","min",t)},most:function(n,t){return cr(this.groupBy.apply(this,[n]),"length","max",t)},sum:function(n){return n=n?this.map(n):this,0<n.length?n.reduce(function(n,t){return n+t}):0},average:function(n){return n=n?this.map(n):this,0<n.length?n.sum()/n.length:0},inGroups:function(n,t){var u=1<arguments.length,f=this,r=[],i=bt(this.length/n);return iu(n,function(n){n*=i;var e=f.slice(n,n+i);u&&e.length<i&&iu(i-e.length,function(){e=e.add(t)});r.push(e)}),r},inGroupsOf:function(n,t){var r=[],f=this.length,e=this,i;return 0===f||0===n?e:(u(n)&&(n=1),u(t)&&(t=null),iu(bt(f/n),function(u){for(i=e.slice(n*u,n*u+n);i.length<n;)i.push(t);r.push(i)}),r)},isEmpty:function(){return 0==this.compact().length},sortBy:function(n,t){var i=this.clone();return i.sort(function(r,u){var f,e;return f=pt(r,n,i,[r]),e=pt(u,n,i,[u]),(s(f)&&s(e)?df(f,e):f<e?-1:f>e?1:0)*(t?-1:1)}),i},randomize:function(){for(var n=this.concat(),t=n.length,i,r;t;)i=w.random()*t|0,r=n[--t],n[t]=n[i],n[i]=r;return n},zip:function(){var n=l(arguments);return this.map(function(t,i){return[t].concat(n.map(function(n){return i in n?n[i]:null}))})},sample:function(n){var t=this.randomize();return 0<arguments.length?t.slice(0,n):t[0]},each:function(n,t,i){return lt(this,n,t,i),this},add:function(n,t){return(!c(p(t))||isNaN(t))&&(t=this.length),r.prototype.splice.apply(this,[t,0].concat(n)),this},remove:function(){var n=this;return l(arguments,function(t){var i=0;for(t=ui(t);i<n.length;)t(n[i],i,n)?n.splice(i,1):i++}),n},compact:function(n){var t=[];return lt(this,function(i){tt(i)?t.push(i.compact()):n&&i?t.push(i):n||null==i||i.valueOf()!==i.valueOf()||t.push(i)}),t},groupBy:function(n,t){var u=this,i={},r;return lt(u,function(t,f){r=pt(t,n,u,[t,f,u]);i[r]||(i[r]=[]);i[r].push(t)}),t&&d(i,t),i},none:function(){return!this.any.apply(this,arguments)}});n(r,!0,!0,{all:r.prototype.every,any:r.prototype.some,insert:r.prototype.add});n(f,!1,!0,{map:function(n,t){var u={},i,r;for(i in n)ot(n,i)&&(r=n[i],u[i]=pt(r,t,n,[i,r,n]));return u},reduce:function(n){var t=f.keys(tr(n)).map(function(t){return n[t]});return t.reduce.apply(t,l(arguments,null,1))},each:function(n,t){return ci(t),d(n,t),n},size:function(n){return f.keys(tr(n)).length}});var fe="any all none count find findAll isEmpty".split(" "),ee="sum average min max least most".split(" "),oe=["map","reduce","size"],se=fe.concat(ee).concat(oe);(function(){function t(){var n=arguments;return 0<n.length&&!v(n[0])}var i=r.prototype.map;et(r,!0,t,"every,all,some,filter,any,none,find,findIndex",function(n,t){var i=r.prototype[t];n[t]=function(n){var t=ui(n);return i.call(this,function(n,i){return t(n,i,this)})}});n(r,!0,t,{map:function(n){return i.call(this,function(t,i){return pt(t,n,this,[t,i,this])})}})})(),function(){r[ne]="AÁÀÂÃĄBCĆČÇDĎÐEÉÈĚÊËĘFGĞHıIÍÌİÎÏJKLŁMNŃŇÑOÓÒÔPQRŘSŚŠŞTŤUÚÙŮÛÜVWXYÝZŹŻŽÞÆŒØÕÅÄÖ".split("").map(function(n){return n+n.toLowerCase()}).join("");var n={};lt("AÁÀÂÃÄ CÇ EÉÈÊË IÍÌİÎÏ OÓÒÔÕÖ Sß UÚÙÛÜ".split(" "),function(t){var i=t.charAt(0);lt(t.slice(1).split(""),function(t){n[t]=i;n[t.toLowerCase()]=i.toLowerCase()})});r[re]=!0;r[te]=!0;r[ie]=n}();ue(fe);ue(ee,!0);or(oe,st);r.AlphanumericSort=df;"use strict";var a,lr,ar="ampm hour minute second ampm utc offset_sign offset_hours offset_minutes ampm".split(" "),bo="({t})?\\s*(\\d{1,2}(?:[,.]\\d+)?)(?:{h}([0-5]\\d(?:[,.]\\d+)?)?{m}(?::?([0-5]\\d(?:[,.]\\d+)?){s})?\\s*(?:({t})|(Z)|(?:([+-])(\\d{2,2})(?::?(\\d{2,2}))?)?)?|\\s*({t}))",lu={},he,au,vr,vu=[],yu={},e={yyyy:function(n){return i(n,"FullYear")},yy:function(n){return i(n,"FullYear")%100},ord:function(n){return n=i(n,"Date"),n+hf(n)},tz:function(n){return n.getUTCOffset()},isotz:function(n){return n.getUTCOffset(!0)},Z:function(n){return n.getUTCOffset()},ZZ:function(n){return n.getUTCOffset().replace(/(\d{2})$/,":$1")}},fi=[{name:"year",method:"FullYear",k:!0,b:function(n){return 864e5*(365+(n?n.isLeapYear()?1:0:.25))}},{name:"month",error:.919,method:"Month",k:!0,b:function(n,t){var r=30.4375,i;return n&&(i=n.daysInMonth(),t<=i.days()&&(r=i)),864e5*r}},{name:"week",method:"ISOWeek",b:ni(6048e5)},{name:"day",error:.958,method:"Date",k:!0,b:ni(864e5)},{name:"hour",method:"Hours",b:ni(36e5)},{name:"minute",method:"Minutes",b:ni(6e4)},{name:"second",method:"Seconds",b:ni(1e3)},{name:"millisecond",method:"Milliseconds",b:ni(1)}],pu={};ce.prototype={getMonth:function(n){return c(n)?n-1:this.months.indexOf(n)%12},getWeekday:function(n){return this.weekdays.indexOf(n)%7},addFormat:function(n,t,i,r,u){var e=i||[],f=this,o;n=n.replace(/\s+/g,"[,. ]*");n=n.replace(/\{([^,]+?)\}/g,function(n,t){var r,h,u,c=t.match(/\?$/),s,o;return u=t.match(/^(\d+)\??$/),s=t.match(/(\d)(?:-(\d))?/),o=t.replace(/[^a-z]+$/,""),u?r=f.tokens[u[1]]:f[o]?r=f[o]:f[o+"s"]&&(r=f[o+"s"],s&&(h=[],r.forEach(function(n,t){var i=t%(f.units?8:r.length);i>=s[1]&&i<=(s[2]||s[1])&&h.push(n)}),r=h),r=wi(r)),u?u="(?:"+r+")":(i||e.push(o),u="("+r+")"),c&&(u+="?"),u});t?(t=bu(f,u),u=["t","[\\s\\u3000]"].concat(f.timeMarker),o=n.match(/\\d\{\d,\d\}\)+\??$/),yr(f,"(?:"+t+")[,\\s\\u3000]+?"+n,ar.concat(e),r),yr(f,n+"(?:[,\\s]*(?:"+u.join("|")+(o?"+":"*")+")"+t+")?",e.concat(ar),r)):yr(f,n,e,r)}};n(t,!1,!0,{create:function(){return wt(arguments)},past:function(){return wt(arguments,-1)},future:function(){return wt(arguments,1)},addLocale:function(n,t){return ns(n,t)},setLocale:function(n){var t=nt(n,!1);return lr=t,n&&n!=t.code&&(t.code=n),t},getLocale:function(n){return n?nt(n,!1):lr},addFormat:function(n,t,i){yr(nt(i),n,t)}});n(t,!0,!0,{set:function(){var n=pr(arguments);return br(this,n[0],n[1])},setWeekday:function(n){if(!u(n))return ri(this,"Date",i(this,"Date")+n-i(this,"Day"))},setISOWeek:function(n){var t=i(this,"Day")||7;if(!u(n))return this.set({month:0,date:4}),this.set({weekday:1}),1<n&&this.addWeeks(n-1),1!==t&&this.advance({days:t-1}),this.getTime()},getISOWeek:function(){var n,t;return n=this.clone(),t=i(n,"Day")||7,n.addDays(4-t).reset(),1+g(n.daysSince(n.clone().beginningOfYear())/7)},beginningOfISOWeek:function(){var n=this.getDay();return 0===n?n=-6:1!==n&&(n=1),this.setWeekday(n),this.reset()},endOfISOWeek:function(){return 0!==this.getDay()&&this.setWeekday(7),this.endOfDay()},getUTCOffset:function(n){var t=this._utc?0:this.getTimezoneOffset(),i=!0===n?":":"";return!t&&n?"Z":y(g(-t/60),2,!0)+i+y(ht(t%60),2)},utc:function(n){return hi(this,"_utc",!0===n||0===arguments.length),this},isUTC:function(){return!!this._utc||0===this.getTimezoneOffset()},advance:function(){var n=pr(arguments,!0);return br(this,n[0],n[1],1)},rewind:function(){var n=pr(arguments,!0);return br(this,n[0],n[1],-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(n,i){return this.getTime()>t.create(n).getTime()-(i||0)},isBefore:function(n,i){return this.getTime()<t.create(n).getTime()+(i||0)},isBetween:function(n,i,r){var f=this.getTime(),u;return n=t.create(n).getTime(),u=t.create(i).getTime(),i=ru(n,u),n=ct(n,u),r=r||0,i-r<f&&n+r>f},isLeapYear:function(){var n=i(this,"FullYear");return 0==n%4&&0!=n%100||0==n%400},daysInMonth:function(){return 32-i(new t(i(this,"FullYear"),i(this,"Month"),32),"Date")},format:function(n,t){return wu(this,n,!1,t)},relative:function(n,t){return s(n)&&(t=n,n=null),wu(this,n,!0,t)},is:function(n,t,r){var f,u;if(this.isValid()){if(s(n))switch(n=n.trim().toLowerCase(),u=this.clone().utc(r),!0){case"future"===n:return this.getTime()>dt().getTime();case"past"===n:return this.getTime()<dt().getTime();case"weekday"===n:return 0<i(u,"Day")&&6>i(u,"Day");case"weekend"===n:return 0===i(u,"Day")||6===i(u,"Day");case-1<(f=a.weekdays.indexOf(n)%7):return i(u,"Day")===f;case-1<(f=a.months.indexOf(n)%12):return i(u,"Month")===f}return we(this,n,null,t,r)}},reset:function(n){var t={},i;return n=n||"hours","date"===n&&(n="days"),i=fi.some(function(t){return n===t.name||n===t.name+"s"}),t[n]=n.match(/^days?/)?1:0,i?this.set(t,!0):this},clone:function(){var n=new t(this.getTime());return n.utc(!!this._utc),n}});n(t,!0,!0,{iso:function(){return this.toISOString()},getWeekday:t.prototype.getDay,getUTCWeekday:t.prototype.getUTCDay});n(p,!0,!0,{duration:function(n){return n=nt(n),le(n,ye(this),"duration")}});a=lr=t.addLocale("en",{plural:!0,timeMarker:"at",ampm:"am,pm",months:"January,February,March,April,May,June,July,August,September,October,November,December",weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",units:"millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s",numbers:"one,two,three,four,five,six,seven,eight,nine,ten",articles:"a,an,the",tokens:"the,st|nd|rd|th,of",short:"{Month} {d}, {yyyy}",long:"{Month} {d}, {yyyy} {h}:{mm}{tt}",full:"{Weekday} {Month} {d}, {yyyy} {h}:{mm}:{ss}{tt}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",modifiers:[{name:"sign",src:"ago|before",value:-1},{name:"sign",src:"from now|after|from|in|later",value:1},{name:"edge",src:"last day",value:-2},{name:"edge",src:"end",value:-1},{name:"edge",src:"first day|beginning",value:1},{name:"shift",src:"last",value:-1},{name:"shift",src:"the|this",value:0},{name:"shift",src:"next",value:1}],dateParse:["{month} {year}","{shift} {unit=5-7}","{0?} {date}{1}","{0?} {edge} of {shift?} {unit=4-7?}{month?}{year?}"],timeParse:"{num} {unit} {sign};{sign} {num} {unit};{0} {num}{1} {day} of {month} {year?};{weekday?} {month} {date}{1?} {year?};{date} {month} {year};{date} {month};{shift} {weekday};{shift} week {weekday};{weekday} {2?} {shift} week;{num} {unit=4-5} {sign} {day};{0?} {date}{1} of {month};{0?}{month?} {date?}{1?} of {shift} {unit=6-7}".split(";")});vr=fi.concat().reverse();au=fi.concat();au.splice(2,1);et(t,!0,!0,fi,function(n,r,u){function h(n){n/=c;var t=n%1,i=r.error||.999;return t&&ht(t%1)>i&&(n=yt(n)),0>n?bt(n):g(n)}var f=r.name,e=ei(f),c=r.b(),o,s;r.j="add"+e+"s";o=function(n,i){return h(this.getTime()-t.create(n,i).getTime())};s=function(n,i){return h(t.create(n,i).getTime()-this.getTime())};n[f+"sAgo"]=s;n[f+"sUntil"]=s;n[f+"sSince"]=o;n[f+"sFromNow"]=o;n[r.j]=function(n,t){var i={};return i[f]=n,this.advance(i,t)};os(r,c);3>u&&["Last","This","Next"].forEach(function(t){n["is"+t+e]=function(){return we(this,t+" "+f,"en")}});4>u&&(n["beginningOf"+e]=function(){var n={};switch(f){case"year":n.year=i(this,"FullYear");break;case"month":n.month=i(this,"Month");break;case"day":n.day=i(this,"Date");break;case"week":n.weekday=0}return this.set(n,!0)},n["endOf"+e]=function(){var n={hours:23,minutes:59,seconds:59,milliseconds:999};switch(f){case"year":n.month=11;n.day=31;break;case"month":n.day=this.daysInMonth();break;case"week":n.weekday=6}return this.set(n,!0)})});a.addFormat("([+-])?(\\d{4,4})[-.]?{full_month}[-.]?(\\d{1,2})?",!0,["year_sign","year","month","date"],!1,!0);a.addFormat("(\\d{1,2})[-.\\/]{full_month}(?:[-.\\/](\\d{2,4}))?",!0,["date","month","year"],!0);a.addFormat("{full_month}[-.](\\d{4,4})",!1,["month","year"]);a.addFormat("\\/Date\\((\\d+(?:[+-]\\d{4,4})?)\\)\\/",!1,["timestamp"]);a.addFormat(bu(a),!1,ar);vu=a.g.slice(0,7).reverse();a.g=a.g.slice(7).concat(vu);gt("f",function(n){return i(n,"Milliseconds")},!0);gt("s",function(n){return i(n,"Seconds")});gt("m",function(n){return i(n,"Minutes")});gt("h",function(n){return i(n,"Hours")%12||12});gt("H",function(n){return i(n,"Hours")});gt("d",function(n){return i(n,"Date")});gt("M",function(n){return i(n,"Month")+1}),function(){function n(n,t){var r=i(n,"Hours");return nt(t).ampm[g(r/12)]||""}ut("t",n,1);ut("tt",n);ut("T",n,1,1);ut("TT",n,null,2)}(),function(){function n(n,t){var r=i(n,"Day");return nt(t).weekdays[r]}ut("dow",n,3);ut("Dow",n,3,1);ut("weekday",n);ut("Weekday",n,null,1)}();wr("mon",0,3);wr("month",0);wr("month2",1);wr("month3",2);e.ms=e.f;e.milliseconds=e.f;e.seconds=e.s;e.minutes=e.m;e.hours=e.h;e["24hr"]=e.H;e["12hr"]=e.h;e.date=e.d;e.day=e.d;e.year=e.yyyy;et(t,!0,!0,"short,long,full",function(n,t){n[t]=function(n){return wu(this,t,!1,n)}});"〇一二三四五六七八九十百千万".split("").forEach(function(n,t){9<t&&(t=ir(10,t-9));lu[n]=t});li(lu,ii);he=h("([期週周])?([〇一二三四五六七八九十百千万"+eu+"]+)(?!昨)","g"),function(){var n=a.weekdays.slice(0,7),i=a.months.slice(0,12);et(t,!0,!0,"today yesterday tomorrow weekday weekend future past".split(" ").concat(n).concat(i),function(n,t){n["is"+ei(t)]=function(n){return this.is(t,0,n)}})}();t.utc||(t.utc={create:function(){return wt(arguments,0,!0)},past:function(){return wt(arguments,-1,!0)},future:function(){return wt(arguments,1,!0)}});n(t,!1,!0,{RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {tz}",RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{fff}{isotz}"});at.prototype.toString=function(){return this.isValid()?this.start+".."+this.end:"Invalid Range"};n(at,!0,!0,{isValid:function(){return be(this.start)&&be(this.end)&&typeof this.start==typeof this.end},span:function(){return this.isValid()?ht((s(this.end)?this.end.charCodeAt(0):this.end)-(s(this.start)?this.start.charCodeAt(0):this.start))+1:NaN},contains:function(n){return null==n?!1:n.start&&n.end?n.start>=this.start&&n.start<=this.end&&n.end>=this.start&&n.end<=this.end:n>=this.start&&n<=this.end},every:function(n,t){var r,i=this.start,f=this.end,e=f<i,u=i,o=0,h=[];for(v(n)&&(t=n,n=null),n=n||1,c(i)?r=cs:s(i)?r=hs:it(i)&&(r=n,c(r)?n=r:(i=r.toLowerCase().match(/^(\d+)?\s?(\w+?)s?$/i),r=parseInt(i[1])||1,i=i[2].slice(0,1).toUpperCase()+i[2].slice(1),i.match(/hour|minute|second/i)?i+="s":"Year"===i?i="FullYear":"Day"===i&&(i="Date"),n=[r,i]),r=ss),e&&0<n&&(n*=-1);e?u>=f:u<=f;)h.push(u),t&&t(u,o),u=r(u,n),o++;return h},union:function(n){return new at(this.start<n.start?this.start:n.start,this.end>n.end?this.end:n.end)},intersect:function(n){return n.start>this.end||n.end<this.start?new at(NaN,NaN):new at(this.start>n.start?this.start:n.start,this.end<n.end?this.end:n.end)},clone:function(){return new at(this.start,this.end)},clamp:function(n){var t=this.start,i=this.end,r=i<t?i:t,t=t>i?t:i;return ku(n<r?r:n>t?t:n)}});[p,o,t].forEach(function(t){n(t,!1,!0,{range:function(n,i){return t.create&&(n=t.create(n),i=t.create(i)),new at(n,i)}})});n(p,!0,!0,{upto:function(n,t,i){return p.range(this,n).every(i,t)},clamp:function(n,t){return new at(n,t).clamp(this)},cap:function(n){return this.clamp(void 0,n)}});n(p,!0,!0,{downto:p.prototype.upto});n(r,!1,function(n){return n instanceof at},{create:function(n){return n.every()}});n(Function,!0,!0,{lazy:function(n,t,i){function o(){return r.length<i-(u&&t?1:0)&&r.push([this,arguments]),u||(u=!0,t?f():si(o,e,f)),h}var c=this,r=[],u=!1,f,e,s,h;return n=n||1,i=i||Infinity,e=bt(n),s=yt(e/n)||1,f=function(){var n=r.length,t;if(0!=n){for(t=ct(n-s,0);n>t;)h=Function.prototype.apply.apply(c,r.shift()),n--;si(o,e,function(){u=!1;f()})}},o},throttle:function(n){return this.lazy(n,!0,1)},debounce:function(n){function t(){t.cancel();si(t,n,i,this,arguments)}var i=this;return t},delay:function(n){var t=l(arguments,null,1);return si(this,n,this,this,t),this},every:function(n){function r(){t.apply(t,i);si(t,n,r)}var t=this,i=arguments,i=1<i.length?l(i,null,1):[];return si(t,n,r),t},cancel:function(){var n=this.timers,t;if(tt(n))for(;t=n.shift();)clearTimeout(t);return this.n=!0,this},after:function(n){var t=this,i=0,r=[];if(c(n)){if(0===n)return t.call(),t}else n=1;return function(){var u;return r.push(l(arguments)),i++,i==n?(u=t.call(this,r),i=0,r=[],u):void 0}},once:function(){return this.throttle(Infinity,!0)},fill:function(){var n=this,t=l(arguments);return function(){var i=l(arguments);return t.forEach(function(n,t){(null!=n||t>=i.length)&&i.splice(t,0,n)}),n.apply(this,i)}}});n(p,!1,!0,{random:function(n,t){var i,r;return 1==arguments.length&&(t=n,n=0),i=ru(n||0,u(t)?1:t),r=ct(n||0,u(t)?1:t)+1,g(w.random()*(r-i)+i)}});n(p,!0,!0,{log:function(n){return w.log(this)/(n?w.log(n):1)},abbr:function(n){return du(this,n,"kmbt",0,4)},metric:function(n,t){return du(this,n,"nμm kMGTPE",4,u(t)?1:t)},bytes:function(n,t){return du(this,n,"kMGTPE",0,u(t)?4:t,!0)+"B"},isInteger:function(){return 0==this%1},isOdd:function(){return!isNaN(this)&&!this.isMultipleOf(2)},isEven:function(){return this.isMultipleOf(2)},isMultipleOf:function(n){return 0==this%n},format:function(n,t,i){var r,e,o,f="";for(u(t)&&(t=","),u(i)&&(i="."),r=(c(n)?rr(this,n||0).toFixed(ct(n,0)):this.toString()).replace(/^-/,"").split("."),e=r[0],o=r[1],r=e.length;0<r;r-=3)r<e.length&&(f=t+f),f=e.slice(ct(0,r-3),r)+f;return o&&(f+=i+fr("0",(n||0)-o.length)+o),(0>this?"-":"")+f},hex:function(n){return this.pad(n||1,!1,16)},times:function(n){if(n)for(var t=0;t<this;t++)n.call(this,t);return this.toNumber()},chr:function(){return o.fromCharCode(this)},pad:function(n,t,i){return y(this,n,t,i)},ordinalize:function(){var n=ht(this),n=parseInt(n.toString().slice(-2));return this+hf(n)},toNumber:function(){return parseFloat(this,10)}}),function(){function t(n){return function(t){return t?rr(this,t,n):n(this)}}n(p,!0,!0,{ceil:t(bt),round:t(yt),floor:t(g)});et(p,!0,!0,"abs,pow,sin,asin,cos,acos,tan,atan,exp,pow,sqrt",function(n,t){n[t]=function(n,i){return w[t](this,n,i)}})}();gu=["isObject","isNaN"];nf="keys values select reject each merge clone equal watch tap has toQueryString".split(" ");n(f,!1,!0,{watch:function(n,t,i){if(uf){var r=n[t];f.defineProperty(n,t,{enumerable:!0,configurable:!0,get:function(){return r},set:function(u){r=i.call(n,t,r,u)}})}}});n(f,!1,function(){return 1<arguments.length},{keys:function(n,t){var i=f.keys(n);return i.forEach(function(i){t.call(n,i,n[i])}),i}});n(f,!1,!0,{isObject:function(n){return ti(n)},isNaN:function(n){return c(n)&&n.valueOf()!==n.valueOf()},equal:function(n,t){return cf(n,t)},extended:function(n){return new st(n)},merge:function(n,i,u,e){var s,p,a,o,c,y,l;if(n&&"string"!=typeof i)for(s in i)if(ot(i,s)&&n){if(o=i[s],c=n[s],y=rt(c),p=k(o),a=k(c),l=y&&!1===e?c:o,y&&v(e)&&(l=e.call(i,s,c,o)),u&&(p||a))if(it(o))l=new t(o.getTime());else if(b(o))l=new h(o.source,vi(o));else{a||(n[s]=r.isArray(o)?[]:{});f.merge(n[s],o,u,e);continue}n[s]=l}return n},values:function(n,t){var i=[];return d(n,function(r,u){i.push(u);t&&t.call(n,u)}),i},clone:function(n,t){var i;if(!k(n))return n;if(i=vt.call(n),it(n,i)&&n.clone)return n.clone();if(it(n,i)||b(n,i))return new n.constructor(n);if(n instanceof st)i=new st;else if(tt(n,i))i=[];else if(ti(n,i))i={};else throw new TypeError("Clone must be a basic data type.");return f.merge(i,n,t)},fromQueryString:function(n,t){var i=f.extended();return n=n&&n.toString?n.toString():"",n.replace(/^.*?\?/,"").split("&").forEach(function(n){n=n.split("=");2===n.length&&ke(i,n[0],decodeURIComponent(n[1]),t)}),i},toQueryString:function(n,t){return de(t,n)},tap:function(n,t){var i=t;return v(t)||(i=function(){t&&n[t]()}),i.call(n,n),n},has:function(n,t){return ot(n,t)},select:function(n){return no(n,arguments,!0)},reject:function(n){return no(n,arguments,!1)}});et(f,!1,!0,ft,function(n,t){var i="is"+t;gu.push(i);n[i]=gr[t]});n(f,!1,function(){return 0===arguments.length},{extend:function(){var n=gu.concat(nf);"undefined"!=typeof se&&(n=n.concat(se));or(n,f)}});or(nf,st);n(h,!1,!0,{escape:function(n){return kt(n)}});n(h,!0,!0,{getFlags:function(){return vi(this)},setFlags:function(n){return h(this.source,n)},addFlag:function(n){return this.setFlags(vi(this,n))},removeFlag:function(n){return this.setFlags(vi(this).replace(n,""))}});n(o,!0,!1,{repeat:function(n){return n=kr(n),fr(this,n)}});n(o,!0,function(n){return b(n)||2<arguments.length},{startsWith:function(n){var t=arguments,i=t[1],t=t[2],r=this;return i&&(r=r.slice(i)),u(t)&&(t=!0),i=b(n)?n.source.replace("^",""):kt(n),h("^"+i,t?"":"i").test(r)},endsWith:function(n){var t=arguments,i=t[1],t=t[2],r=this;return rt(i)&&(r=r.slice(0,i)),u(t)&&(t=!0),i=b(n)?n.source.replace("$",""):kt(n),h(i+"$",t?"":"i").test(r)}});n(o,!0,!0,{escapeRegExp:function(){return kt(this)},escapeURL:function(n){return n?encodeURIComponent(this):encodeURI(this)},unescapeURL:function(n){return n?decodeURI(this):decodeURIComponent(this)},escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2f;")},unescapeHTML:function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#x2f;/g,"/").replace(/&amp;/g,"&")},encodeBase64:function(){return tf(unescape(encodeURIComponent(this)))},decodeBase64:function(){return decodeURIComponent(escape(rf(this)))},each:function(n,t){var i,r,u;if(v(n)?(t=n,n=/[\s\S]/g):n?s(n)?n=h(kt(n),"gi"):b(n)&&(n=h(n.source,vi(n,"g"))):n=/[\s\S]/g,i=this.match(n)||[],t)for(r=0,u=i.length;r<u;r++)i[r]=t.call(this,i[r],r,i)||i[r];return i},shift:function(n){var t="";return n=n||0,this.codes(function(i){t+=o.fromCharCode(i+n)}),t},codes:function(n){for(var r=[],i,t=0,u=this.length;t<u;t++)i=this.charCodeAt(t),r.push(i),n&&n.call(this,i,t);return r},chars:function(n){return this.each(n)},words:function(n){return this.trim().each(/\S+/g,n)},lines:function(n){return this.trim().each(/^.*$/gm,n)},paragraphs:function(n){var t=this.trim().split(/[\r\n]{2,}/);return t.map(function(t){if(n)var i=n.call(t);return i?i:t})},isBlank:function(){return 0===this.trim().length},has:function(n){return-1!==this.search(b(n)?n:kt(n))},add:function(n,t){return t=u(t)?this.length:t,this.slice(0,t)+n+this.slice(t)},remove:function(n){return this.replace(n,"")},reverse:function(){return this.split("").reverse().join("")},compact:function(){return this.trim().replace(/([\r\n\s\u3000])+/g,function(n,t){return"　"===t?t:" "})},at:function(){return lf(this,arguments,!0)},from:function(n){return this.slice(io(this,n,!0))},to:function(n){return u(n)&&(n=this.length),this.slice(0,io(this,n))},dasherize:function(){return this.underscore().replace(/_/g,"-")},underscore:function(){return this.replace(/[-\s]+/g,"_").replace(o.Inflector&&o.Inflector.acronymRegExp,function(n,t){return(0<t?"_":"")+n.toLowerCase()}).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase()},camelize:function(n){return this.underscore().replace(/(^|_)([^_]+)/g,function(t,i,r,u){return t=(t=o.Inflector)&&t.acronyms[r],t=s(t)?t:void 0,u=!1!==n||0<u,t?u?t:t.toLowerCase():u?r.capitalize():r})},spacify:function(){return this.underscore().replace(/_/g," ")},stripTags:function(){var n=this;return gi(0<arguments.length?arguments:[""],function(t){n=n.replace(h("<\/?"+kt(t)+"[^<>]*>","gi"),"")}),n},removeTags:function(){var n=this;return gi(0<arguments.length?arguments:["\\S+"],function(t){t=h("<("+t+")[^<>]*(?:\\/>|>.*?<\\/\\1>)","gi");n=n.replace(t,"")}),n},truncate:function(n,t,i){return to(this,n,t,i)},truncateOnWord:function(n,t,i){return to(this,n,t,i,!0)},pad:function(n,t){var i,r;return n=kr(n),i=ct(0,n-this.length)/2,r=g(i),i=bt(i),dr(r,t)+this+dr(i,t)},padLeft:function(n,t){return n=kr(n),dr(ct(0,n-this.length),t)+this},padRight:function(n,t){return n=kr(n),this+dr(ct(0,n-this.length),t)},first:function(n){return u(n)&&(n=1),this.substr(0,n)},last:function(n){return u(n)&&(n=1),this.substr(0>this.length-n?0:this.length-n)},toNumber:function(n){return ou(this,n)},capitalize:function(n){var t;return this.toLowerCase().replace(n?/[^']/g:/^\S/,function(n){var i=n.toUpperCase(),r;return r=t?n:i,t=i!==n,r})},assign:function(){var n={};return gi(arguments,function(t,i){k(t)?li(n,t):n[i+1]=t}),this.replace(/\{([^{]+?)\}/g,function(t,i){return ot(n,i)?n[i]:t})}});n(o,!0,!0,{insert:o.prototype.add}),function(n){if(ki.btoa)tf=ki.btoa,rf=ki.atob;else{var t=/[^A-Za-z0-9\+\/\=]/g;tf=function(t){var o="",i,r,u,h,s,f,e=0;do i=t.charCodeAt(e++),r=t.charCodeAt(e++),u=t.charCodeAt(e++),h=i>>2,i=(i&3)<<4|r>>4,s=(r&15)<<2|u>>6,f=u&63,isNaN(r)?s=f=64:isNaN(u)&&(f=64),o=o+n.charAt(h)+n.charAt(i)+n.charAt(s)+n.charAt(f);while(e<t.length);return o};rf=function(i){var f="",e,r,c,s,h,u=0;if(i.match(t))throw Error("String contains invalid base64 characters");i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"");do e=n.indexOf(i.charAt(u++)),r=n.indexOf(i.charAt(u++)),s=n.indexOf(i.charAt(u++)),h=n.indexOf(i.charAt(u++)),e=e<<2|r>>4,r=(r&15)<<4|s>>2,c=(s&3)<<6|h,f+=o.fromCharCode(e),64!=s&&(f+=o.fromCharCode(r)),64!=h&&(f+=o.fromCharCode(c));while(u<i.length);return f}}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")}(),!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):"object"==typeof exports?exports["angular-file-upload"]=t():n["angular-file-upload"]=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n},u=r(i(2)),f=r(i(3)),e=r(i(4)),o=r(i(5)),s=r(i(6)),h=r(i(7)),c=r(i(1)),l=r(i(8)),a=r(i(9)),v=r(i(10)),y=r(i(11)),p=r(i(12));angular.module(u.name,[]).value("fileUploaderOptions",f).factory("FileUploader",e).factory("FileLikeObject",o).factory("FileItem",s).factory("FileDirective",h).factory("FileSelect",c).factory("FileDrop",l).factory("FileOver",a).directive("nvFileSelect",v).directive("nvFileDrop",y).directive("nvFileOver",p).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver",function(n,t,i,r,u,f,e){n.FileLikeObject=t;n.FileItem=i;n.FileDirective=r;n.FileSelect=u;n.FileDrop=f;n.FileOver=e}])},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n},u=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function e(n,t,i){var r=Object.getOwnPropertyDescriptor(n,t),u,f;return void 0===r?(u=Object.getPrototypeOf(n),null===u?void 0:e(u,t,i)):"value"in r&&r.writable?r.value:(f=r.get,void 0===f?void 0:f.call(i))},o=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.__proto__=t)},s=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},h=(r(i(2)),angular.extend);n.exports=function(n){return function(n){function t(n){s(this,t);var i=h(n,{events:{$destroy:"destroy",change:"onChange"},prop:"select"});f(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,i);this.uploader.isHTML5||this.element.removeAttr("multiple");this.element.prop("value",null)}return o(t,n),u(t,{getOptions:{value:function(){}},getFilters:{value:function(){}},isEmptyAfterSelection:{value:function(){return!!this.element.attr("multiple")}},onChange:{value:function(){var n=this.uploader.isHTML5?this.element[0].files:this.element[0],t=this.getOptions(),i=this.getFilters();this.uploader.isHTML5||this.destroy();this.uploader.addToQueue(n,t,i);this.isEmptyAfterSelection()&&(this.element.prop("value",null),this.element.replaceWith(this.element=this.element.clone(!0)))}}}),t}(n)};n.exports.$inject=["FileDirective"]},function(n){n.exports={name:"angularFileUpload"}},function(n){"use strict";n.exports={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1}},function(n,t,i){"use strict";var f=function(n){return n&&n.__esModule?n["default"]:n},e=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},s=(f(i(2)),angular.copy),h=angular.extend,r=angular.forEach,c=angular.isObject,l=angular.isNumber,a=angular.isDefined,v=angular.isArray,u=angular.element;n.exports=function(n,t,i,f,y,p){var b=f.File,k=f.FormData,w=function(){function f(t){o(this,f);var i=s(n);h(this,i,t,{isUploading:!1,_nextIndex:0,_failFilterIndex:-1,_directives:{select:[],drop:[],over:[]}});this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter});this.filters.unshift({name:"folder",fn:this._folderFilter})}return e(f,{addToQueue:{value:function(n,t,i){var u=this,o=this.isArrayLikeObject(n)?n:[n],f=this._getFilters(i),s=this.queue.length,e=[];r(o,function(n){var r=new y(n),i,o;u._isValidFile(r,f,t)?(i=new p(u,n,t),e.push(i),u.queue.push(i),u._onAfterAddingFile(i)):(o=f[u._failFilterIndex],u._onWhenAddingFileFailed(r,o,t))});this.queue.length!==s&&(this._onAfterAddingAll(e),this.progress=this._getTotalProgress());this._render();this.autoUpload&&this.uploadAll()}},removeFromQueue:{value:function(n){var i=this.getIndexOfItem(n),t=this.queue[i];t.isUploading&&t.cancel();this.queue.splice(i,1);t._destroy();this.progress=this._getTotalProgress()}},clearQueue:{value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},uploadItem:{value:function(n){var i=this.getIndexOfItem(n),t=this.queue[i],r=this.isHTML5?"_xhrTransport":"_iframeTransport";t._prepareToUploading();this.isUploading||(this.isUploading=!0,this[r](t))}},cancelItem:{value:function(n){var i=this.getIndexOfItem(n),t=this.queue[i],r=this.isHTML5?"_xhr":"_form";t&&t.isUploading&&t[r].abort()}},uploadAll:{value:function(){var n=this.getNotUploadedItems().filter(function(n){return!n.isUploading});n.length&&(r(n,function(n){return n._prepareToUploading()}),n[0].upload())}},cancelAll:{value:function(){var n=this.getNotUploadedItems();r(n,function(n){return n.cancel()})}},isFile:{value:function(n){return this.constructor.isFile(n)}},isFileLikeObject:{value:function(n){return this.constructor.isFileLikeObject(n)}},isArrayLikeObject:{value:function(n){return this.constructor.isArrayLikeObject(n)}},getIndexOfItem:{value:function(n){return l(n)?n:this.queue.indexOf(n)}},getNotUploadedItems:{value:function(){return this.queue.filter(function(n){return!n.isUploaded})}},getReadyItems:{value:function(){return this.queue.filter(function(n){return n.isReady&&!n.isUploading}).sort(function(n,t){return n.index-t.index})}},destroy:{value:function(){var n=this;r(this._directives,function(t){r(n._directives[t],function(n){n.destroy()})})}},onAfterAddingAll:{value:function(){}},onAfterAddingFile:{value:function(){}},onWhenAddingFileFailed:{value:function(){}},onBeforeUploadItem:{value:function(){}},onProgressItem:{value:function(){}},onProgressAll:{value:function(){}},onSuccessItem:{value:function(){}},onErrorItem:{value:function(){}},onCancelItem:{value:function(){}},onCompleteItem:{value:function(){}},onCompleteAll:{value:function(){}},_getTotalProgress:{value:function(n){if(this.removeAfterUpload)return n||0;var t=this.getNotUploadedItems().length,r=t?this.queue.length-t:this.queue.length,i=100/this.queue.length,u=(n||0)*i/100;return Math.round(r*i+u)}},_getFilters:{value:function(n){if(!n)return this.filters;if(v(n))return n;var t=n.match(/[^\s,]+/g);return this.filters.filter(function(n){return-1!==t.indexOf(n.name)})}},_render:{value:function(){t.$$phase||t.$apply()}},_folderFilter:{value:function(n){return!(!n.size&&!n.type)}},_queueLimitFilter:{value:function(){return this.queue.length<this.queueLimit}},_isValidFile:{value:function(n,t,i){var r=this;return this._failFilterIndex=-1,t.length?t.every(function(t){return r._failFilterIndex++,t.fn.call(r,n,i)}):!0}},_isSuccessCode:{value:function(n){return n>=200&&300>n||304===n}},_transformResponse:{value:function(n,t){var u=this._headersGetter(t);return r(i.defaults.transformResponse,function(t){n=t(n,u)}),n}},_parseHeaders:{value:function(n){var t,u,f,i={};return n?(r(n.split("\n"),function(n){f=n.indexOf(":");t=n.slice(0,f).trim().toLowerCase();u=n.slice(f+1).trim();t&&(i[t]=i[t]?i[t]+", "+u:u)}),i):i}},_headersGetter:{value:function(n){return function(t){return t?n[t.toLowerCase()]||null:n}}},_xhrTransport:{value:function(n){var i=this,t=n._xhr=new XMLHttpRequest,u=new k;if(this._onBeforeUploadItem(n),r(n.formData,function(n){r(n,function(n,t){u.append(t,n)})}),"number"!=typeof n._file.size)throw new TypeError("The file specified is no longer valid");u.append(n.alias,n._file,n.file.name);t.upload.onprogress=function(t){var r=Math.round(t.lengthComputable?100*t.loaded/t.total:0);i._onProgressItem(n,r)};t.onload=function(){var r=i._parseHeaders(t.getAllResponseHeaders()),u=i._transformResponse(t.response,r),f=i._isSuccessCode(t.status)?"Success":"Error",e="_on"+f+"Item";i[e](n,u,t.status,r);i._onCompleteItem(n,u,t.status,r)};t.onerror=function(){var r=i._parseHeaders(t.getAllResponseHeaders()),u=i._transformResponse(t.response,r);i._onErrorItem(n,u,t.status,r);i._onCompleteItem(n,u,t.status,r)};t.onabort=function(){var r=i._parseHeaders(t.getAllResponseHeaders()),u=i._transformResponse(t.response,r);i._onCancelItem(n,u,t.status,r);i._onCompleteItem(n,u,t.status,r)};t.open(n.method,n.url,!0);t.withCredentials=n.withCredentials;r(n.headers,function(n,i){t.setRequestHeader(i,n)});t.send(u);this._render()}},_iframeTransport:{value:function(n){var i=this,t=u('<form style="display: none;" />'),f=u('<iframe name="iframeTransport'+Date.now()+'">'),e=n._input;n._form&&n._form.replaceWith(e);n._form=t;this._onBeforeUploadItem(n);e.prop("name",n.alias);r(n.formData,function(n){r(n,function(n,i){var r=u('<input type="hidden" name="'+i+'" />');r.val(n);t.append(r)})});t.prop({action:n.url,method:"POST",target:f.prop("name"),enctype:"multipart/form-data",encoding:"multipart/form-data"});f.bind("load",function(){var u="",e=200;try{u=f[0].contentDocument.body.innerHTML}catch(s){e=500}var t={response:u,status:e,dummy:!0},r={},o=i._transformResponse(t.response,r);i._onSuccessItem(n,o,t.status,r);i._onCompleteItem(n,o,t.status,r)});t.abort=function(){var r,u={status:0,dummy:!0},o={};f.unbind("load").prop("src","javascript:false;");t.replaceWith(e);i._onCancelItem(n,r,u.status,o);i._onCompleteItem(n,r,u.status,o)};e.after(t);t.append(e).append(f);t[0].submit();this._render()}},_onWhenAddingFileFailed:{value:function(n,t,i){this.onWhenAddingFileFailed(n,t,i)}},_onAfterAddingFile:{value:function(n){this.onAfterAddingFile(n)}},_onAfterAddingAll:{value:function(n){this.onAfterAddingAll(n)}},_onBeforeUploadItem:{value:function(n){n._onBeforeUpload();this.onBeforeUploadItem(n)}},_onProgressItem:{value:function(n,t){var i=this._getTotalProgress(t);this.progress=i;n._onProgress(t);this.onProgressItem(n,t);this.onProgressAll(i);this._render()}},_onSuccessItem:{value:function(n,t,i,r){n._onSuccess(t,i,r);this.onSuccessItem(n,t,i,r)}},_onErrorItem:{value:function(n,t,i,r){n._onError(t,i,r);this.onErrorItem(n,t,i,r)}},_onCancelItem:{value:function(n,t,i,r){n._onCancel(t,i,r);this.onCancelItem(n,t,i,r)}},_onCompleteItem:{value:function(n,t,i,r){n._onComplete(t,i,r);this.onCompleteItem(n,t,i,r);var u=this.getReadyItems()[0];return this.isUploading=!1,a(u)?void u.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),void this._render())}}},{isFile:{value:function(n){return b&&n instanceof b}},isFileLikeObject:{value:function(n){return n instanceof y}},isArrayLikeObject:{value:function(n){return c(n)&&"length"in n}},inherit:{value:function(n,t){n.prototype=Object.create(t.prototype);n.prototype.constructor=n;n.super_=t}}}),f}();return w.prototype.isHTML5=!(!b||!k),w.isHTML5=w.prototype.isHTML5,w};n.exports.$inject=["fileUploaderOptions","$rootScope","$http","$window","FileLikeObject","FileItem"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n},u=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},e=(r(i(2)),angular.copy),o=angular.isElement,s=angular.isString;n.exports=function(){return function(){function n(t){f(this,n);var r=o(t),i=r?t.value:t,u=s(i)?"FakePath":"Object",e="_createFrom"+u;this[e](i)}return u(n,{_createFromFakePath:{value:function(n){this.lastModifiedDate=null;this.size=null;this.type="like/"+n.slice(n.lastIndexOf(".")+1).toLowerCase();this.name=n.slice(n.lastIndexOf("/")+n.lastIndexOf("\\")+2)}},_createFromObject:{value:function(n){this.lastModifiedDate=e(n.lastModifiedDate);this.size=n.size;this.type=n.type;this.name=n.name}}}),n}()};n.exports.$inject=[]},function(n,t,i){"use strict";var u=function(n){return n&&n.__esModule?n["default"]:n},f=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},r=(u(i(2)),angular.copy),o=angular.extend,s=angular.element,h=angular.isElement;n.exports=function(n,t){return function(){function i(n,u,f){e(this,i);var l=h(u),c=l?s(u):null,a=l?null:u;o(this,{url:n.url,alias:n.alias,headers:r(n.headers),formData:r(n.formData),removeAfterUpload:n.removeAfterUpload,withCredentials:n.withCredentials,method:n.method},f,{uploader:n,file:new t(u),isReady:!1,isUploading:!1,isUploaded:!1,isSuccess:!1,isCancel:!1,isError:!1,progress:0,index:null,_file:a,_input:c});c&&this._replaceNode(c)}return f(i,{upload:{value:function(){try{this.uploader.uploadItem(this)}catch(n){this.uploader._onCompleteItem(this,"",0,[]);this.uploader._onErrorItem(this,"",0,[])}}},cancel:{value:function(){this.uploader.cancelItem(this)}},remove:{value:function(){this.uploader.removeFromQueue(this)}},onBeforeUpload:{value:function(){}},onProgress:{value:function(){}},onSuccess:{value:function(){}},onError:{value:function(){}},onCancel:{value:function(){}},onComplete:{value:function(){}},_onBeforeUpload:{value:function(){this.isReady=!0;this.isUploading=!0;this.isUploaded=!1;this.isSuccess=!1;this.isCancel=!1;this.isError=!1;this.progress=0;this.onBeforeUpload()}},_onProgress:{value:function(n){this.progress=n;this.onProgress(n)}},_onSuccess:{value:function(n,t,i){this.isReady=!1;this.isUploading=!1;this.isUploaded=!0;this.isSuccess=!0;this.isCancel=!1;this.isError=!1;this.progress=100;this.index=null;this.onSuccess(n,t,i)}},_onError:{value:function(n,t,i){this.isReady=!1;this.isUploading=!1;this.isUploaded=!0;this.isSuccess=!1;this.isCancel=!1;this.isError=!0;this.progress=0;this.index=null;this.onError(n,t,i)}},_onCancel:{value:function(n,t,i){this.isReady=!1;this.isUploading=!1;this.isUploaded=!1;this.isSuccess=!1;this.isCancel=!0;this.isError=!1;this.progress=0;this.index=null;this.onCancel(n,t,i)}},_onComplete:{value:function(n,t,i){this.onComplete(n,t,i);this.removeAfterUpload&&this.remove()}},_destroy:{value:function(){this._input&&this._input.remove();this._form&&this._form.remove();delete this._form;delete this._input}},_prepareToUploading:{value:function(){this.index=this.index||++this.uploader._nextIndex;this.isReady=!0}},_replaceNode:{value:function(t){var i=n(t.clone())(t.scope());i.prop("value",null);t.css("display","none");t.after(i)}}}),i}()};n.exports.$inject=["$compile","FileLikeObject"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n},u=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},e=(r(i(2)),angular.extend);n.exports=function(){var n=function(){function n(t){f(this,n);e(this,t);this.uploader._directives[this.prop].push(this);this._saveLinks();this.bind()}return u(n,{bind:{value:function(){var n,t;for(n in this.events)t=this.events[n],this.element.bind(n,this[t])}},unbind:{value:function(){for(var n in this.events)this.element.unbind(n,this.events[n])}},destroy:{value:function(){var n=this.uploader._directives[this.prop].indexOf(this);this.uploader._directives[this.prop].splice(n,1);this.unbind()}},_saveLinks:{value:function(){var t,n;for(t in this.events)n=this.events[t],this[n]=this[n].bind(this)}}}),n}();return n.prototype.events={},n};n.exports.$inject=[]},function(n,t,i){"use strict";var u=function(n){return n&&n.__esModule?n["default"]:n},f=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function o(n,t,i){var r=Object.getOwnPropertyDescriptor(n,t),u,f;return void 0===r?(u=Object.getPrototypeOf(n),null===u?void 0:o(u,t,i)):"value"in r&&r.writable?r.value:(f=r.get,void 0===f?void 0:f.call(i))},s=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.__proto__=t)},h=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},c=(u(i(2)),angular.extend),r=angular.forEach;n.exports=function(n){return function(n){function t(n){h(this,t);var i=c(n,{events:{$destroy:"destroy",drop:"onDrop",dragover:"onDragOver",dragleave:"onDragLeave"},prop:"drop"});e(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,i)}return s(t,n),f(t,{getOptions:{value:function(){}},getFilters:{value:function(){}},onDrop:{value:function(n){var t=this._getTransfer(n),i,u;t&&(i=this.getOptions(),u=this.getFilters(),this._preventAndStop(n),r(this.uploader._directives.over,this._removeOverClass,this),this.uploader.addToQueue(t.files,i,u))}},onDragOver:{value:function(n){var t=this._getTransfer(n);this._haveFiles(t.types)&&(t.dropEffect="copy",this._preventAndStop(n),r(this.uploader._directives.over,this._addOverClass,this))}},onDragLeave:{value:function(n){n.currentTarget!==this.element[0]&&(this._preventAndStop(n),r(this.uploader._directives.over,this._removeOverClass,this))}},_getTransfer:{value:function(n){return n.dataTransfer?n.dataTransfer:n.originalEvent.dataTransfer}},_preventAndStop:{value:function(n){n.preventDefault();n.stopPropagation()}},_haveFiles:{value:function(n){return n?n.indexOf?-1!==n.indexOf("Files"):n.contains?n.contains("Files"):!1:!1}},_addOverClass:{value:function(n){n.addOverClass()}},_removeOverClass:{value:function(n){n.removeOverClass()}}}),t}(n)};n.exports.$inject=["FileDirective"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n},u=function(){function n(n,t){var r,i;for(r in t)i=t[r],i.configurable=!0,i.value&&(i.writable=!0);Object.defineProperties(n,t)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function e(n,t,i){var r=Object.getOwnPropertyDescriptor(n,t),u,f;return void 0===r?(u=Object.getPrototypeOf(n),null===u?void 0:e(u,t,i)):"value"in r&&r.writable?r.value:(f=r.get,void 0===f?void 0:f.call(i))},o=function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(n.__proto__=t)},s=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},h=(r(i(2)),angular.extend);n.exports=function(n){return function(n){function t(n){s(this,t);var i=h(n,{events:{$destroy:"destroy"},prop:"over",overClass:"nv-file-over"});f(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,i)}return o(t,n),u(t,{addOverClass:{value:function(){this.element.addClass(this.getOverClass())}},removeOverClass:{value:function(){this.element.removeClass(this.getOverClass())}},getOverClass:{value:function(){return this.overClass}}}),t}(n)};n.exports.$inject=["FileDirective"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n};r(i(2));n.exports=function(n,t,i){return{link:function(r,u,f){var o=r.$eval(f.uploader),e;if(!(o instanceof t))throw new TypeError('"Uploader" must be an instance of FileUploader');e=new i({uploader:o,element:u});e.getOptions=n(f.options).bind(e,r);e.getFilters=function(){return f.filters}}}};n.exports.$inject=["$parse","FileUploader","FileSelect"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n};r(i(2));n.exports=function(n,t,i){return{link:function(r,u,f){var o=r.$eval(f.uploader),e;if(!(o instanceof t))throw new TypeError('"Uploader" must be an instance of FileUploader');o.isHTML5&&(e=new i({uploader:o,element:u}),e.getOptions=n(f.options).bind(e,r),e.getFilters=function(){return f.filters})}}};n.exports.$inject=["$parse","FileUploader","FileDrop"]},function(n,t,i){"use strict";var r=function(n){return n&&n.__esModule?n["default"]:n};r(i(2));n.exports=function(n,t){return{link:function(i,r,u){var e=i.$eval(u.uploader),f;if(!(e instanceof n))throw new TypeError('"Uploader" must be an instance of FileUploader');f=new t({uploader:e,element:r});f.getOverClass=function(){return u.overClass||f.overClass}}}};n.exports.$inject=["FileUploader","FileOver"]}])}),!function(n,t){"use strict";t.module("ngIdle",["ngIdle.keepalive","ngIdle.idle","ngIdle.countdown","ngIdle.title","ngIdle.localStorage"]);t.module("ngIdle.keepalive",[]).provider("Keepalive",function(){var n={http:null,interval:600},i;this.http=function(i){if(!i)throw new Error("Argument must be a string containing a URL, or an object containing the HTTP request configuration.");t.isString(i)&&(i={url:i,method:"GET"});i.cache=!1;n.http=i};i=this.interval=function(t){if(t=parseInt(t),isNaN(t)||0>=t)throw new Error("Interval must be expressed in seconds and be greater than 0.");n.interval=t};this.$get=["$rootScope","$log","$interval","$http",function(r,u,f,e){function s(n,t){r.$broadcast("KeepaliveResponse",n,t)}function h(){r.$broadcast("Keepalive");t.isObject(n.http)&&e(n.http).success(s).error(s)}var o={ping:null};return{_options:function(){return n},setInterval:i,start:function(){return f.cancel(o.ping),o.ping=f(h,1e3*n.interval),o.ping},stop:function(){f.cancel(o.ping)},ping:function(){h()}}}]});t.module("ngIdle.idle",["ngIdle.keepalive","ngIdle.localStorage"]).provider("Idle",function(){var n={idle:1200,timeout:30,autoResume:"idle",interrupt:"mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll",keepalive:!0,titleDisabled:!1},u=this.timeout=function(i){if(i===!1)n.timeout=0;else{if(!(t.isNumber(i)&&i>=0))throw new Error("Timeout must be zero or false to disable the feature, or a positive integer (in seconds) to enable it.");n.timeout=i}},i,r;this.interrupt=function(t){n.interrupt=t};i=this.idle=function(t){if(0>=t)throw new Error("Idle must be a value in seconds, greater than 0.");n.idle=t};r=this.titleDisabled=function(t){n.titleDisabled=t===!0};this.autoResume=function(t){n.autoResume=t===!0?"idle":t===!1?"off":t};this.keepalive=function(t){n.keepalive=t===!0};this.$get=["$interval","$log","$rootScope","$document","Keepalive","IdleLocalStorage","$window",function(f,e,o,s,h,c,l){function b(){n.keepalive&&(a.running&&h.ping(),h.start())}function v(){n.keepalive&&h.stop()}function k(){a.idling=!a.idling;var t=a.idling?"Start":"End";o.$broadcast("Idle"+t);a.idling?(v(),n.timeout&&(a.countdown=n.timeout,d(),a.timeout=f(d,1e3,n.timeout,!1))):b();f.cancel(a.idle)}function d(){return a.countdown<=0?void g():(o.$broadcast("IdleWarn",a.countdown),void a.countdown--)}function g(){v();f.cancel(a.idle);f.cancel(a.timeout);a.idling=!0;a.running=!1;a.countdown=0;o.$broadcast("IdleTimeout")}function y(n,t,i){var r=n.running();n.unwatch();t(i);r&&n.watch()}function it(){var n=c.get("expiry");return n&&n.time?new Date(n.time):null}function nt(n){n?c.set("expiry",{id:tt,time:n}):c.remove("expiry")}var a={idle:null,timeout:null,idling:!1,running:!1,countdown:null},tt=(new Date).getTime(),p={_options:function(){return n},_getNow:function(){return new Date},getIdle:function(){return n.idle},getTimeout:function(){return n.timeout},setIdle:function(n){y(this,i,n)},setTitleDisabled:function(n){y(this,r,n)},isTitleDisabled:function(){return n.titleDisabled},setTimeout:function(n){y(this,u,n)},isExpired:function(){var n=it();return null!==n&&n<=this._getNow()},running:function(){return a.running},idling:function(){return a.idling},watch:function(t){f.cancel(a.idle);f.cancel(a.timeout);var i=n.timeout?n.timeout:0;t||nt(new Date((new Date).getTime()+1e3*(n.idle+i)));a.idling?k():a.running||b();a.running=!0;a.idle=f(k,1e3*n.idle,0,!1)},unwatch:function(){f.cancel(a.idle);f.cancel(a.timeout);a.idling=!1;a.running=!1;nt(null);v()},interrupt:function(t){if(a.running)return n.timeout&&this.isExpired()?void g():void(("idle"===n.autoResume||"notIdle"===n.autoResume&&!a.idling)&&this.watch(t))}},w;s.find("body").on(n.interrupt,function(){p.interrupt()});return w=function(n){if("ngIdle.expiry"===n.key&&n.newValue!==n.oldValue){var i=t.fromJson(n.newValue);if(i.id===tt)return;p.interrupt(!0)}},l.addEventListener?l.addEventListener("storage",w,!1):l.attachEvent("onstorage",w),p}]});t.module("ngIdle.countdown",["ngIdle.idle"]).directive("idleCountdown",["Idle",function(n){return{restrict:"A",scope:{value:"=idleCountdown"},link:function(t){t.value=n.getTimeout();t.$on("IdleWarn",function(n,i){t.$evalAsync(function(){t.value=i})});t.$on("IdleTimeout",function(){t.$evalAsync(function(){t.value=0})})}}}]);t.module("ngIdle.title",[]).factory("Title",["$document","$interpolate",function(n,i){function u(n,t,i){return new Array(t-String(n).length+1).join(i||"0")+n}var r={original:null,idle:"{{minutes}}:{{seconds}} until your session times out!",timedout:"Your session has expired."};return{original:function(n){return t.isUndefined(n)?r.original:void(r.original=n)},store:function(n){(n||!r.original)&&(r.original=this.value())},value:function(i){return t.isUndefined(i)?n[0].title:void(n[0].title=i)},idleMessage:function(n){return t.isUndefined(n)?r.idle:void(r.idle=n)},timedOutMessage:function(n){return t.isUndefined(n)?r.timedout:void(r.timedout=n)},setAsIdle:function(n){this.store();var t={totalSeconds:n};t.minutes=Math.floor(n/60);t.seconds=u(n-60*t.minutes,2);this.value(i(this.idleMessage())(t))},setAsTimedOut:function(){this.store();this.value(this.timedOutMessage())},restore:function(){this.original()&&this.value(this.original())}}}]).directive("title",["Idle","Title",function(n,t){return{restrict:"E",link:function(i,r,u){n.isTitleDisabled()||u.idleDisabled||(t.store(!0),i.$on("IdleStart",function(){t.original(r[0].innerText)}),i.$on("IdleWarn",function(n,i){t.setAsIdle(i)}),i.$on("IdleEnd",function(){t.restore()}),i.$on("IdleTimeout",function(){t.setAsTimedOut()}))}}}]);t.module("ngIdle.localStorage",[]).service("IdleLocalStorage",["$window",function(n){var i=n.localStorage;return{set:function(n,r){i.setItem("ngIdle."+n,t.toJson(r))},get:function(n){return t.fromJson(i.getItem("ngIdle."+n))},remove:function(n){i.removeItem("ngIdle."+n)}}}])}(window,window.angular),function(){"use strict";var n=angular.module("LocalStorageModule",[]);n.provider("localStorageService",function(){this.prefix="ls";this.storageType="localStorage";this.cookie={expiry:30,path:"/"};this.notify={setItem:!0,removeItem:!1};this.setPrefix=function(n){this.prefix=n};this.setStorageType=function(n){this.storageType=n};this.setStorageCookie=function(n,t){this.cookie={expiry:n,path:t}};this.setStorageCookieDomain=function(n){this.cookie.domain=n};this.setNotify=function(n,t){this.notify={setItem:n,removeItem:t}};this.$get=["$rootScope","$window","$document",function(n,t,i){var u,f=this,r=f.prefix,s=f.cookie,l=f.notify,h=f.storageType;i?i[0]&&(i=i[0]):i=document;"."!==r.substr(-1)&&(r=r?r+".":"");var e=function(n){return r+n},o=function(){try{var i=h in t&&null!==t[h],r=e("__"+Math.round(1e7*Math.random()));return i&&(u=t[h],u.setItem(r,""),u.removeItem(r)),i}catch(f){return h="cookie",n.$broadcast("LocalStorageModule.notification.error",f.message),!1}}(),v=function(t,i){if(!o||"cookie"===f.storageType)return n.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),l.setItem&&n.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:i,storageType:"cookie"}),c(t,i);"undefined"==typeof i&&(i=null);try{(angular.isObject(i)||angular.isArray(i))&&(i=angular.toJson(i));u&&u.setItem(e(t),i);l.setItem&&n.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:i,storageType:f.storageType})}catch(r){return n.$broadcast("LocalStorageModule.notification.error",r.message),c(t,i)}return!0},p=function(t){if(!o||"cookie"===f.storageType)return n.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),k(t);var i=u?u.getItem(e(t)):null;return i&&"null"!==i?"{"===i.charAt(0)||"["===i.charAt(0)?angular.fromJson(i):i:null},w=function(t){if(!o)return n.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),l.removeItem&&n.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),a(t);try{u.removeItem(e(t));l.removeItem&&n.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:f.storageType})}catch(i){return n.$broadcast("LocalStorageModule.notification.error",i.message),a(t)}return!0},d=function(){var t,i,f;if(!o)return n.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;t=r.length;i=[];for(f in u)if(f.substr(0,t)===r)try{i.push(f.substr(t))}catch(e){return n.$broadcast("LocalStorageModule.notification.error",e.Description),[]}return i},g=function(t){var f,e,s,i;if(t=t||"",f=r.slice(0,-1),e=new RegExp(f+"."+t),!o)return n.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),y();s=r.length;for(i in u)if(e.test(i))try{w(i.substr(s))}catch(h){return n.$broadcast("LocalStorageModule.notification.error",h.message),y()}return!0},b=function(){try{return navigator.cookieEnabled||"cookie"in i&&(i.cookie.length>0||(i.cookie="test").indexOf.call(i.cookie,"test")>-1)}catch(t){return n.$broadcast("LocalStorageModule.notification.error",t.message),!1}},c=function(t,r){var h;if("undefined"==typeof r)return!1;if(!b())return n.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var f="",u=new Date,o="";(null===r?(u.setTime(u.getTime()+-864e5),f="; expires="+u.toGMTString(),r=""):0!==s.expiry&&(u.setTime(u.getTime()+864e5*s.expiry),f="; expires="+u.toGMTString()),t)&&(h="; path="+s.path,s.domain&&(o="; domain="+s.domain),i.cookie=e(t)+"="+encodeURIComponent(r)+f+h+o)}catch(c){return n.$broadcast("LocalStorageModule.notification.error",c.message),!1}return!0},k=function(t){var o,f,u;if(!b())return n.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(o=i.cookie&&i.cookie.split(";")||[],f=0;f<o.length;f++){for(u=o[f];" "===u.charAt(0);)u=u.substring(1,u.length);if(0===u.indexOf(e(t)+"="))return decodeURIComponent(u.substring(r.length+t.length+1,u.length))}return null},a=function(n){c(n,null)},y=function(){for(var f,n=null,e=r.length,u=i.cookie.split(";"),t=0;t<u.length;t++){for(n=u[t];" "===n.charAt(0);)n=n.substring(1,n.length);f=n.substring(e,n.indexOf("="));a(f)}},nt=function(){return h},tt=function(n,t,i){var r=p(t);null===r&&angular.isDefined(i)?r=i:angular.isObject(r)&&angular.isObject(i)&&(r=angular.extend(i,r));n[t]=r;n.$watchCollection(t,function(n){v(t,n)})};return{isSupported:o,getStorageType:nt,set:v,add:v,get:p,keys:d,remove:w,clearAll:g,bind:tt,deriveKey:e,cookie:{set:c,add:c,get:k,remove:a,clearAll:y}}}]})}.call(this),angular.module("noCAPTCHA",[]).service("googleGrecaptcha",["$q","$window",function(n,t){var r=n.defer(),i,u;return t.recaptchaOnloadCallback=function(){r.resolve()},i=document.createElement("script"),i.src="https://www.google.com/recaptcha/api.js?onload=recaptchaOnloadCallback&render=explicit",u=document.body.appendChild(i),r.promise}]).provider("noCAPTCHA",function(){var n,t;this.setSiteKey=function(t){n=t};this.setTheme=function(n){t=n};this.$get=[function(){return{theme:t,siteKey:n}}]}).directive("noCaptcha",["noCAPTCHA","googleGrecaptcha",function(n,t){return{restrict:"EA",scope:{gRecaptchaResponse:"=",siteKey:"@",theme:"@",control:"="},replace:!0,link:function(i,r){var u,f,e=i.control||{};if(f={sitekey:i.siteKey||n.siteKey,theme:i.theme||n.theme,callback:function(n){i.$apply(function(){i.gRecaptchaResponse=n})}},!f.sitekey)throw new Error("Site Key is required");t.then(function(){u=grecaptcha.render(r[0],f);e.reset=function(){grecaptcha.reset(u);i.gRecaptchaResponse=null}});i.$on("$destroy",function(){grecaptcha.reset(u)})}}}]),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(n,t,i){"use strict";function w(n,t){return r(new(r(function(){},{prototype:n})),t)}function k(n){return e(arguments,function(t){t!==n&&e(t,function(t,i){n.hasOwnProperty(i)||(n[i]=t)})}),n}function bt(n,t){var r=[];for(var i in n.path){if(n.path[i]!==t.path[i])break;r.push(n.path[i])}return r}function p(n){if(Object.keys)return Object.keys(n);var t=[];return e(n,function(n,i){t.push(i)}),t}function s(n,t){if(Array.prototype.indexOf)return n.indexOf(t,Number(arguments[2])||0);var r=n.length>>>0,i=Number(arguments[2])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=r);r>i;i++)if(i in n&&n[i]===t)return i;return-1}function it(n,t,i,u){var f,o=bt(i,u),c={},l=[],h,e;for(h in o)if(o[h].params&&(f=p(o[h].params),f.length))for(e in f)s(l,f[e])>=0||(l.push(f[e]),c[f[e]]=n[f[e]]);return r({},c,t)}function d(n,t,i){var f,r,u;if(!i){i=[];for(f in n)i.push(f)}for(r=0;r<i.length;r++)if(u=i[r],n[u]!=t[u])return!1;return!0}function g(n,t){var i={};return e(n,function(n){i[n]=t[n]}),i}function kt(n){var t={},i=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return e(i,function(i){i in n&&(t[i]=n[i])}),t}function b(n){var i={},r=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var t in n)-1==s(r,t)&&(i[t]=n[t]);return i}function nt(n,t){var r=v(n),i=r?[]:{};return e(n,function(n,u){t(n,u)&&(i[r?i.length:u]=n)}),i}function y(n,t){var i=v(n)?[]:{};return e(n,function(n,r){i[r]=t(n,r)}),i}function rt(n,t){var h=1,c=2,o={},a=[],v=o,y=r(n.when(o),{$$promises:o,$$values:o});this.study=function(o){function tt(n,i){if(g[i]!==c){if(d.push(i),g[i]===h)throw d.splice(0,s(d,i)),new Error("Cyclic dependency: "+d.join(" -> "));if(g[i]=h,f(n))w.push(i,[function(){return t.get(n)}],a);else{var r=t.annotate(n);e(r,function(n){n!==i&&o.hasOwnProperty(n)&&tt(o[n],n)});w.push(i,n,r)}d.pop();g[i]=c}}function it(n){return l(n)&&n.then&&n.$$promises}if(!l(o))throw new Error("'invocables' must be an object");var nt=p(o||{}),w=[],d=[],g={};return e(o,tt),o=d=g=null,function(f,o,s){function p(){--et||(rt||k(c,o.$$values),h.$$values=c,h.$$promises=h.$$promises||!0,delete h.$$inheritedValues,tt.resolve(c))}function g(n){h.$$failure=n;tt.reject(n)}function ft(i,r,o){function a(n){l.reject(n);g(n)}function y(){if(!u(h.$$failure))try{l.resolve(t.invoke(r,s,c));l.promise.then(function(n){c[i]=n;p()},a)}catch(n){a(n)}}var l=n.defer(),v=0;e(o,function(n){d.hasOwnProperty(n)&&!f.hasOwnProperty(n)&&(v++,d[n].then(function(t){c[n]=t;--v||y()},a))});v||y();d[i]=l.promise}var a,ut;if(it(f)&&s===i&&(s=o,o=f,f=null),f){if(!l(f))throw new Error("'locals' must be an object");}else f=v;if(o){if(!it(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()");}else o=y;var tt=n.defer(),h=tt.promise,d=h.$$promises={},c=r({},f),et=1+w.length/3,rt=!1;if(u(o.$$failure))return g(o.$$failure),h;for(o.$$inheritedValues&&k(c,b(o.$$inheritedValues,nt)),r(d,o.$$promises),o.$$values?(rt=k(c,b(o.$$values,nt)),h.$$inheritedValues=b(o.$$values,nt),p()):(o.$$inheritedValues&&(h.$$inheritedValues=b(o.$$inheritedValues,nt)),o.then(p,g)),a=0,ut=w.length;ut>a;a+=3)f.hasOwnProperty(w[a])?p():ft(w[a],w[a+1],w[a+2]);return h}};this.resolve=function(n,t,i,r){return this.study(n)(t,i,r)}}function ut(n,t,i){this.fromConfig=function(n,t,i){return u(n.template)?this.fromString(n.template,t):u(n.templateUrl)?this.fromUrl(n.templateUrl,t):u(n.templateProvider)?this.fromProvider(n.templateProvider,t,i):null};this.fromString=function(n,t){return h(n)?n(t):n};this.fromUrl=function(i,r){return h(i)&&(i=i(r)),null==i?null:n.get(i,{cache:t,headers:{Accept:"text/html"}}).then(function(n){return n.data})};this.fromProvider=function(n,t,r){return i.invoke(n,null,r||{params:t})}}function a(n,t,u){function d(t,i,r,u){if(it.push(t),tt[t])return tt[t];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+n+"'");if(b[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+n+"'");return b[t]=new c.Param(t,i,r,u),b[t]}function g(n,t,i,r){var u=["",""],f=n.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return f;switch(i){case!1:u=["(",")"+(r?"?":"")];break;case!0:u=["?(",")?"];break;default:u=["("+i+"|",")?"]}return f+u[0]+t+u[1]}function nt(r,u){var e,f,s,h,l;return e=r[2]||r[3],l=t.params[e],s=n.substring(o,r.index),f=u?r[4]:r[4]||("*"==r[1]?".*":null),h=c.type(f||"string")||w(c.type("string"),{pattern:new RegExp(f,t.caseInsensitive?"i":i)}),{id:e,regexp:f,segment:s,type:h,cfg:l}}var f,s,e,h,k;t=r({params:{}},l(t)?t:{});var a,v=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,rt=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,y="^",o=0,p=this.segments=[],tt=u?u.params:{},b=this.params=u?u.params.$$new():new c.ParamSet,it=[];for(this.source=n;(a=v.exec(n))&&(f=nt(a,!1),!(f.segment.indexOf("?")>=0));)s=d(f.id,f.type,f.cfg,"path"),y+=g(f.segment,s.type.pattern.source,s.squash,s.isOptional),p.push(f.segment),o=v.lastIndex;if(e=n.substring(o),h=e.indexOf("?"),h>=0){if(k=this.sourceSearch=e.substring(h),e=e.substring(0,h),this.sourcePath=n.substring(0,o+h),k.length>0)for(o=0;a=rt.exec(k);)f=nt(a,!0),s=d(f.id,f.type,f.cfg,"search"),o=v.lastIndex}else this.sourcePath=n,this.sourceSearch="";y+=g(e)+(t.strict===!1?"/?":"")+"$";p.push(e);this.regexp=new RegExp(y,t.caseInsensitive?"i":i);this.prefix=p[0];this.$$paramNames=it}function o(n){r(this,n)}function ft(){function rt(n){return null!=n?n.toString().replace(/\//g,"%2F"):n}function ht(n){return null!=n?n.toString().replace(/%2F/g,"/"):n}function ct(){return{strict:g,caseInsensitive:d}}function ut(n){return h(n)||v(n)&&h(n[n.length-1])}function et(){for(;it.length;){var i=it.shift();if(i.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(n[i.name],b.invoke(i.def))}}function k(n){r(this,n||{})}c=this;var b,d=!1,g=!0,tt=!1,n={},ot=!0,it=[],st={string:{encode:rt,decode:ht,is:function(n){return null==n||!u(n)||"string"==typeof n},pattern:/[^/]*/},int:{encode:rt,decode:function(n){return parseInt(n,10)},is:function(n){return u(n)&&this.decode(n.toString())===n},pattern:/\d+/},bool:{encode:function(n){return n?1:0},decode:function(n){return 0!==parseInt(n,10)},is:function(n){return n===!0||n===!1},pattern:/0|1/},date:{encode:function(n){return this.is(n)?[n.getFullYear(),("0"+(n.getMonth()+1)).slice(-2),("0"+n.getDate()).slice(-2)].join("-"):i},decode:function(n){if(this.is(n))return n;var t=this.capture.exec(n);return t?new Date(t[1],t[2]-1,t[3]):i},is:function(n){return n instanceof Date&&!isNaN(n.valueOf())},equals:function(n,t){return this.is(n)&&this.is(t)&&n.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};ft.$$getDefaultValue=function(n){if(!ut(n.value))return n.value;if(!b)throw new Error("Injectable functions cannot be called at configuration time");return b.invoke(n.value)};this.caseInsensitive=function(n){return u(n)&&(d=n),d};this.strictMode=function(n){return u(n)&&(g=n),g};this.defaultSquashPolicy=function(n){if(!u(n))return tt;if(n!==!0&&n!==!1&&!f(n))throw new Error("Invalid squash policy: "+n+". Valid policies: false, true, arbitrary-string");return tt=n,n};this.compile=function(n,t){return new a(n,r(ct(),t))};this.isMatcher=function(n){if(!l(n))return!1;var t=!0;return e(a.prototype,function(i,r){h(i)&&(t=t&&u(n[r])&&h(n[r]))}),t};this.type=function(t,i,f){if(!u(i))return n[t];if(n.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return n[t]=new o(r({name:t},i)),f&&(it.push({name:t,def:f}),ot||et()),this};e(st,function(t,i){n[i]=new o(r({name:i},t))});n=w(n,{});this.$get=["$injector",function(t){return b=t,ot=!1,et(),e(st,function(t,i){n[i]||(n[i]=new o(t))}),this}];this.Param=function(t,e,h,c){function g(n){var t=l(n)?p(n):[],i=-1===s(t,"value")&&-1===s(t,"type")&&-1===s(t,"squash")&&-1===s(t,"array");return i&&(n={value:n}),n.$$fn=ut(n.value)?n.value:function(){return n.value},n}function it(i,r,u){if(i.type&&r)throw new Error("Param '"+t+"' has two type configurations.");return r?r:i.type?i.type instanceof o?i.type:new o(i.type):"config"===u?n.any:n.string}function rt(){var n={array:"search"===c?"auto":!1},i=t.match(/\[\]$/)?{array:!0}:{};return r(n,i,h).array}function ft(n,t){var i=n.squash;if(!t||i===!1)return!1;if(!u(i)||null==i)return tt;if(i===!0||f(i))return i;throw new Error("Invalid squash policy: '"+i+"'. Valid policies: false, true, or arbitrary string");}function et(n,t,r,u){var e,o,h=[{from:"",to:r||t?i:""},{from:null,to:r||t?i:""}];return e=v(n.replace)?n.replace:[],f(u)&&e.push({from:u,to:i}),o=y(e,function(n){return n.from}),nt(h,function(n){return-1===s(o,n.from)}).concat(e)}function ot(){if(!b)throw new Error("Injectable functions cannot be called at configuration time");var n=b.invoke(h.$$fn);if(null!==n&&n!==i&&!w.type.is(n))throw new Error("Default value ("+n+") for parameter '"+w.id+"' is not an instance of Type ("+w.type.name+")");return n}function st(n){function t(n){return function(t){return t.from===n}}function i(n){var i=y(nt(w.replace,t(n)),function(n){return n.to});return i.length?i[0]:n}return n=i(n),u(n)?w.type.$normalize(n):ot()}function ht(){return"{Param:"+t+" "+e+" squash: '"+d+"' optional: "+k+"}"}var w=this,a;h=g(h);e=it(h,e,c);a=rt();e=a?e.$asArray(a,"search"===c):e;"string"!==e.name||a||"path"!==c||h.value!==i||(h.value="");var k=h.value!==i,d=ft(h,k),ct=et(h,a,k,d);r(this,{id:t,type:e,location:c,array:a,squash:d,replace:ct,isOptional:k,value:st,dynamic:i,config:h,toString:ht})};k.prototype={$$new:function(){return w(this,r(new k,{$$parent:this}))},$$keys:function(){for(var t=[],i=[],n=this,r=p(k.prototype);n;)i.push(n),n=n.$$parent;return i.reverse(),e(i,function(n){e(p(n),function(n){-1===s(t,n)&&-1===s(r,n)&&t.push(n)})}),t},$$values:function(n){var t={},i=this;return e(i.$$keys(),function(r){t[r]=i[r].value(n&&n[r])}),t},$$equals:function(n,t){var i=!0,r=this;return e(r.$$keys(),function(u){var f=n&&n[u],e=t&&t[u];r[u].type.equals(f,e)||(i=!1)}),i},$$validates:function(n){for(var r,f,e,o,s=this.$$keys(),u=0;u<s.length&&(r=this[s[u]],f=n[s[u]],f!==i&&null!==f||!r.isOptional);u++)if((e=r.type.$normalize(f),!r.type.is(e))||(o=r.type.encode(e),t.isString(o)&&!r.type.pattern.exec(o)))return!1;return!0},$$parent:i};this.ParamSet=k}function et(n,e){function p(n){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(n.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function w(n,t){return n.replace(/\$(\$|\d{1,2})/,function(n,i){return t["$"===i?0:Number(i)]})}function c(n,t,i){if(!i)return!1;var r=n.invoke(t,t,{$match:i});return u(r)?r:!0}function l(r,u,e,h){function b(n,t,i){return"/"===l?n:t?l.slice(0,-1)+n:i?l.slice(1)+n:n}function p(n){function u(n){var t=n(e,r);return t?(f(t)&&r.replace().url(t),!0):!1}if(!n||!n.defaultPrevented){c&&r.url()===c;c=i;for(var h=o.length,t=0;h>t;t++)if(u(o[t]))return;s&&u(s)}}function w(){return a=a||u.$on("$locationChangeSuccess",p)}var c,l=h.baseHref(),v=r.url();return y||w(),{sync:function(){p()},listen:function(){return w()},update:function(n){return n?void(v=r.url()):void(r.url()!==v&&(r.url(v),r.replace()))},push:function(n,t,u){var f=n.format(t||{});null!==f&&t&&t["#"]&&(f+="#"+t["#"]);r.url(f);c=u&&u.$$avoidResync?r.url():i;u&&u.replace&&r.replace()},href:function(i,u,f){var o,e,h,s;return i.validates(u)?(o=n.html5Mode(),t.isObject(o)&&(o=o.enabled),e=i.format(u),f=f||{},o||null===e||(e="#"+n.hashPrefix()+e),null!==e&&u&&u["#"]&&(e+="#"+u["#"]),e=b(e,o,f.absolute),!f.absolute||!e)?e:(h=!o&&e?"/":"",s=r.port(),s=80===s||443===s?"":":"+s,[r.protocol(),"://",r.host(),s,h,e].join("")):null}}}var a,o=[],s=null,y=!1;this.rule=function(n){if(!h(n))throw new Error("'rule' must be a function");return o.push(n),this};this.otherwise=function(n){if(f(n)){var t=n;n=function(){return t}}else if(!h(n))throw new Error("'rule' must be a function");return s=n,this};this.when=function(n,t){var i,u=f(t),l,o,s;if(f(n)&&(n=e.compile(n)),!u&&!h(t)&&!v(t))throw new Error("invalid 'handler' in when()");l={matcher:function(n,t){return u&&(i=e.compile(t),t=["$match",function(n){return i.format(n)}]),r(function(i,r){return c(i,t,n.exec(r.path(),r.search()))},{prefix:f(n.prefix)?n.prefix:""})},regex:function(n,t){if(n.global||n.sticky)throw new Error("when() RegExp must not be global or sticky");return u&&(i=t,t=["$match",function(n){return w(i,n)}]),r(function(i,r){return c(i,t,n.exec(r.path()))},{prefix:p(n)})}};o={matcher:e.isMatcher(n),regex:n instanceof RegExp};for(s in o)if(o[s])return this.rule(l[s](n,t));throw new Error("invalid 'what' in when()");};this.deferIntercept=function(n){n===i&&(n=!0);y=n};this.$get=l;l.$inject=["$location","$rootScope","$injector","$browser"]}function ot(n,o){function ot(n){return 0===n.indexOf(".")||0===n.indexOf("^")}function b(n,t){var s;if(!n)return i;var h=f(n),u=h?n:n.name,c=ot(u);if(c){if(!t)throw new Error("No reference point given for path '"+u+"'");t=b(t);for(var r=u.split("."),e=0,l=r.length,o=t;l>e;e++)if(""!==r[e]||0!==e){if("^"!==r[e])break;if(!o.parent)throw new Error("Path '"+u+"' not valid for state '"+t.name+"'");o=o.parent}else o=t;r=r.slice(e).join(".");u=o.name+(o.name&&r?".":"")+r}return s=tt[u],!s||!h&&(h||s!==n&&s.self!==n)?i:s}function st(n,t){rt[n]||(rt[n]=[]);rt[n].push(t)}function ht(n){for(var t=rt[n]||[];t.length;)ut(t.shift())}function ut(t){var i,u,r;if(t=w(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}}),i=t.name,!f(i)||i.indexOf("@")>=0)throw new Error("State must have a valid name");if(tt.hasOwnProperty(i))throw new Error("State '"+i+"'' is already defined");if(u=-1!==i.indexOf(".")?i.substring(0,i.lastIndexOf(".")):f(t.parent)?t.parent:l(t.parent)&&f(t.parent.name)?t.parent.name:"",u&&!tt[u])return st(u,t.self);for(r in k)h(k[r])&&(t[r]=k[r](t,k.$delegates[r]));return tt[i]=t,!t[et]&&t.url&&n.when(t.url,["$match","$stateParams",function(n,i){a.$current.navigable==t&&d(n,i)||a.transitionTo(t,n,{inherit:!0,location:!1})}]),ht(i),t}function ct(n){return n.indexOf("*")>-1}function lt(n){for(var t=n.split("."),i=a.$current.name.split("."),r=0,u=t.length;u>r;r++)"*"===t[r]&&(i[r]="*");return"**"===t[0]&&(i=i.slice(s(i,t[1])),i.unshift("**")),"**"===t[t.length-1]&&(i.splice(s(i,t[t.length-2])+1,Number.MAX_VALUE),i.push("**")),t.length!=i.length?!1:i.join("")===t.join("")}function at(n,t){return f(n)&&!u(t)?k[n]:h(t)&&f(n)?(k[n]&&!k.$delegates[n]&&(k.$delegates[n]=k[n]),k[n]=t,this):this}function vt(n,t){return l(n)?t=n:t.name=n,ut(t),this}function ft(n,o,s,c,k,rt,ut){function ht(t,i,r,u){var e=n.$broadcast("$stateNotFound",t,i,r),f;return e.defaultPrevented?(ut.update(),ot):e.retry?u.$retry?(ut.update(),st):(f=a.transition=o.when(e.retry),f.then(function(){return f!==a.transition?ft:(t.options.$retry=!0,a.transitionTo(t.to,t.toParams,t.options))},function(){return ot}),ut.update(),f):null}function at(n,i,r,u,f,l){function p(){var i=[];return e(n.views,function(r,u){var e=r.resolve&&r.resolve!==n.resolve?r.resolve:{};e.$template=[function(){return s.load(u,{view:r,locals:f.globals,params:y,notify:l.notify})||""}];i.push(k.resolve(e,f.globals,f.resolve,n).then(function(i){if(h(r.controllerProvider)||v(r.controllerProvider)){var o=t.extend({},e,f.globals);i.$$controller=c.invoke(r.controllerProvider,null,o)}else i.$$controller=r.controller;i.$$state=n;i.$$controllerAs=r.controllerAs;f[u]=i}))}),o.all(i).then(function(){return f.globals})}var y=r?i:g(n.params.$$keys(),i),w={$stateParams:y},a;return f.resolve=k.resolve(n.resolve,w,f.resolve,n),a=[f.resolve.then(function(n){f.globals=n})],u&&a.push(u),o.all(a).then(p).then(function(){return f})}var ft=o.reject(new Error("transition superseded")),vt=o.reject(new Error("transition prevented")),ot=o.reject(new Error("transition aborted")),st=o.reject(new Error("transition failed"));return nt.locals={resolve:null,globals:{$stateParams:{}}},a={params:{},current:nt.self,$current:nt,transition:null},a.reload=function(n){return a.transitionTo(a.current,rt,{reload:n||!0,inherit:!1,notify:!0})},a.go=function(n,t,i){return a.transitionTo(n,t,r({inherit:!0,relative:a.$current},i))},a.transitionTo=function(t,i,e){var ot,dt,gt,bt,ct,kt;i=i||{};e=r({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},e||{});var ni,y=a.$current,p=a.params,tt=y.path,v=b(t,e.relative),lt=i["#"];if(!u(v)){if(ot={to:t,toParams:i,options:e},dt=ht(ot,y.self,p,e),dt)return dt;if(t=ot.to,i=ot.toParams,e=ot.options,v=b(t,e.relative),!u(v)){if(!e.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+e.relative+"'");}}if(v[et])throw new Error("Cannot transition to abstract state '"+t+"'");if(e.inherit&&(i=it(rt,i||{},a.$current,v)),!v.params.$$validates(i))return st;i=v.params.$$values(i);t=v;var k=t.path,h=0,s=k[h],d=nt.locals,pt=[];if(e.reload){if(f(e.reload)||l(e.reload)){if(l(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");if(gt=e.reload===!0?tt[0]:b(e.reload),e.reload&&!gt)throw new Error("No such reload state '"+(f(e.reload)?e.reload:e.reload.name)+"'");for(;s&&s===tt[h]&&s!==gt;)d=pt[h]=s.locals,h++,s=k[h]}}else for(;s&&s===tt[h]&&s.ownParams.$$equals(i,p);)d=pt[h]=s.locals,h++,s=k[h];if(yt(t,i,y,p,d,e))return lt&&(i["#"]=lt),a.params=i,wt(a.params,rt),e.location&&t.navigable&&t.navigable.url&&(ut.push(t.navigable.url,i,{$$avoidResync:!0,replace:"replace"===e.location}),ut.update(!0)),a.transition=null,o.when(a.current);if(i=g(t.params.$$keys(),i||{}),e.notify&&n.$broadcast("$stateChangeStart",t.self,i,y.self,p).defaultPrevented)return n.$broadcast("$stateChangeCancel",t.self,i,y.self,p),ut.update(),vt;for(bt=o.when(d),ct=h;ct<k.length;ct++,s=k[ct])d=pt[ct]=w(d),bt=at(s,i,s===t,bt,d,e);return kt=a.transition=bt.then(function(){var r,u,f;if(a.transition!==kt)return ft;for(r=tt.length-1;r>=h;r--)f=tt[r],f.self.onExit&&c.invoke(f.self.onExit,f.self,f.locals.globals),f.locals=null;for(r=h;r<k.length;r++)u=k[r],u.locals=pt[r],u.self.onEnter&&c.invoke(u.self.onEnter,u.self,u.locals.globals);return lt&&(i["#"]=lt),a.transition!==kt?ft:(a.$current=t,a.current=t.self,a.params=i,wt(a.params,rt),a.transition=null,e.location&&t.navigable&&ut.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===e.location}),e.notify&&n.$broadcast("$stateChangeSuccess",t.self,i,y.self,p),ut.update(!0),a.current)},function(r){return a.transition!==kt?ft:(a.transition=null,ni=n.$broadcast("$stateChangeError",t.self,i,y.self,p,r),ni.defaultPrevented||ut.update(),o.reject(r))})},a.is=function(n,t,f){f=r({relative:a.$current},f||{});var e=b(n,f.relative);return u(e)?a.$current!==e?!1:t?d(e.params.$$values(t),rt):!0:i},a.includes=function(n,t,e){if(e=r({relative:a.$current},e||{}),f(n)&&ct(n)){if(!lt(n))return!1;n=a.$current.name}var o=b(n,e.relative);return u(o)?u(a.$current.includes[o.name])?t?d(o.params.$$values(t),rt,p(t)):!0:!1:i},a.href=function(n,t,f){var e,o;return(f=r({lossy:!0,inherit:!0,absolute:!1,relative:a.$current},f||{}),e=b(n,f.relative),!u(e))?null:(f.inherit&&(t=it(rt,t||{},a.$current,e)),o=e&&f.lossy?e.navigable:e,o&&o.url!==i&&null!==o.url?ut.href(o.url,g(e.params.$$keys().concat("#"),t||{}),{absolute:f.absolute}):null)},a.get=function(n,t){if(0===arguments.length)return y(p(tt),function(n){return tt[n].self});var i=b(n,t||a.$current);return i&&i.self?i.self:null},a}function yt(n,t,i,r,u,f){function e(n,t,i){function r(t){return"search"!=n.params[t].location}var u=n.params.$$keys().filter(r),f=kt.apply({},[n.params].concat(u)),e=new c.ParamSet(f);return e.$$equals(t,i)}if(!f.reload&&n===i&&(u===i.locals||n.self.reloadOnSearch===!1&&e(i,r,t)))return!0}var nt,a,tt={},rt={},et="abstract",k={parent:function(n){if(u(n.parent)&&n.parent)return b(n.parent);var t=/^(.+)\.[^.]+$/.exec(n.name);return t?b(t[1]):nt},data:function(n){return n.parent&&n.parent.data&&(n.data=n.self.data=r({},n.parent.data,n.data)),n.data},url:function(n){var t=n.url,i={params:n.params||{}};if(f(t))return"^"==t.charAt(0)?o.compile(t.substring(1),i):(n.parent.navigable||nt).url.concat(t,i);if(!t||o.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+n+"'");},navigable:function(n){return n.url?n:n.parent?n.parent.navigable:null},ownParams:function(n){var t=n.url&&n.url.params||new c.ParamSet;return e(n.params||{},function(n,i){t[i]||(t[i]=new c.Param(i,null,n,"config"))}),t},params:function(n){return n.parent&&n.parent.params?r(n.parent.params.$$new(),n.ownParams):new c.ParamSet},views:function(n){var t={};return e(u(n.views)?n.views:{"":n},function(i,r){r.indexOf("@")<0&&(r+="@"+n.parent.name);t[r]=i}),t},path:function(n){return n.parent?n.parent.path.concat(n):[]},includes:function(n){var t=n.parent?r({},n.parent.includes):{};return t[n.name]=!0,t},$delegates:{}};nt=ut({name:"",url:"^",views:null,abstract:!0});nt.navigable=null;this.decorator=at;this.state=vt;this.$get=ft;ft.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function st(){function n(n,t){return{load:function(i,u){var f;return u=r({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},u),u.view&&(f=t.fromConfig(u.view,u.params,u.locals)),f&&u.notify&&n.$broadcast("$viewContentLoading",u),f}}}this.$get=n;n.$inject=["$rootScope","$templateFactory"]}function dt(){var n=!1;this.useAnchorScroll=function(){n=!0};this.$get=["$anchorScroll","$timeout",function(t,i){return n?t:function(n){return i(function(){n[0].scrollIntoView()},0,!1)}}]}function ht(n,i,r,u){function s(){return i.has?function(n){return i.has(n)?i.get(n):null}:function(n){try{return i.get(n)}catch(t){return null}}}function h(n,t){var r=function(){return{enter:function(n,t,i){t.after(n);i()},leave:function(n,t){n.remove();t()}}},i;return e?{enter:function(n,t,i){var r=e.enter(n,null,t,i);r&&r.then&&r.then(i)},leave:function(n,t){var i=e.leave(n,t);i&&i.then&&i.then(t)}}:f?(i=f&&f(t,n),{enter:function(n,t,r){i.enter(n,null,t);r()},leave:function(n,t){i.leave(n);t()}}):r()}var o=s(),f=o("$animator"),e=o("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(i,f,e){return function(i,f,o){function w(){c&&(c.remove(),c=null);s&&(s.$destroy(),s=null);l&&(p.leave(l,function(){c=null}),c=l,l=null)}function a(h){var c,a=lt(i,o,f,u),d=a&&n.$current&&n.$current.locals[a],k;(h||d!==y)&&(c=i.$new(),y=n.$current.locals[a],k=e(c,function(n){p.enter(n,f,function(){s&&s.$emit("$viewContentAnimationEnded");(t.isDefined(v)&&!v||i.$eval(v))&&r(n)});w()}),l=k,s=c,s.$emit("$viewContentLoaded"),s.$eval(b))}var c,l,s,y,b=o.onload||"",v=o.autoscroll,p=h(o,i);i.$on("$stateChangeSuccess",function(){a(!1)});i.$on("$viewContentLoading",function(){a(!1)});a(!0)}}}}function ct(n,t,i,r){return{restrict:"ECA",priority:-400,compile:function(u){var f=u.html();return function(u,e,o){var c=i.$current,l=lt(u,o,e,r),s=c&&c.locals[l],a,h;s&&(e.data("$uiView",{name:l,state:s.$$state}),e.html(s.$template?s.$template:f),a=n(e.contents()),s.$$controller&&(s.$scope=u,s.$element=e,h=t(s.$$controller,s),s.$$controllerAs&&(u[s.$$controllerAs]=h),e.data("$ngControllerController",h),e.children().data("$ngControllerController",h)),a(u))}}}}function lt(n,t,i,r){var u=r(t.uiView||t.name||"")(n),f=i.inheritedData("$uiView");return u.indexOf("@")>=0?u:u+"@"+(f?f.state.name:"")}function gt(n,t){var i,r=n.match(/^\s*({[^}]*})\s*$/);if(r&&(n=t+"("+r[1]+")"),i=n.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!i||4!==i.length)throw new Error("Invalid state ref '"+n+"'");return{state:i[1],paramExpr:i[3]||null}}function at(n){var t=n.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function vt(n,i){var r=["location","inherit","reload","absolute"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(u,f,e,o){var s=gt(e.uiSref,n.current.name),h=null,w=at(f)||n.$current,b="[object SVGAnimatedString]"===Object.prototype.toString.call(f.prop("href"))?"xlink:href":"href",c=null,k="A"===f.prop("tagName").toUpperCase(),v="FORM"===f[0].nodeName,d=v?"action":b,y=!0,l={relative:w,inherit:!0},p=u.$eval(e.uiSrefOpts)||{},a;t.forEach(r,function(n){n in p&&(l[n]=p[n])});a=function(i){if(i&&(h=t.copy(i)),y){c=n.href(s.state,h,l);var r=o[1]||o[0];return r&&r.$$addStateInfo(s.state,h),null===c?(y=!1,!1):void e.$set(d,c)}};s.paramExpr&&(u.$watch(s.paramExpr,function(n){n!==h&&a(n)},!0),h=t.copy(u.$eval(s.paramExpr)));a();v||f.bind("click",function(t){var e=t.which||t.button,r,u;e>1||t.ctrlKey||t.metaKey||t.shiftKey||f.attr("target")||(r=i(function(){n.go(s.state,h,l)}),t.preventDefault(),u=k&&!c?1:0,t.preventDefault=function(){u--<=0&&i.cancel(r)})})}}}function tt(n,t,i){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,r,u){function o(){s()?r.addClass(e):r.removeClass(e)}function s(){for(var n=0;n<f.length;n++)if(h(f[n].state,f[n].params))return!0;return!1}function h(t,i){return"undefined"!=typeof u.uiSrefActiveEq?n.is(t.name,i):n.includes(t.name,i)}var e,f=[];e=i(u.uiSrefActiveEq||u.uiSrefActive||"",!1)(t);this.$$addStateInfo=function(t,i){var u=n.get(t,at(r));f.push({state:u||{name:t},params:i});o()};t.$on("$stateChangeSuccess",o)}]}}function yt(n){var t=function(t){return n.is(t)};return t.$stateful=!0,t}function pt(n){var t=function(t){return n.includes(t)};return t.$stateful=!0,t}var u=t.isDefined,h=t.isFunction,f=t.isString,l=t.isObject,v=t.isArray,e=t.forEach,r=t.extend,wt=t.copy,c;t.module("ui.router.util",["ng"]);t.module("ui.router.router",["ui.router.util"]);t.module("ui.router.state",["ui.router.router","ui.router.util"]);t.module("ui.router",["ui.router.state"]);t.module("ui.router.compat",["ui.router"]);rt.$inject=["$q","$injector"];t.module("ui.router.util").service("$resolve",rt);ut.$inject=["$http","$templateCache","$injector"];t.module("ui.router.util").service("$templateFactory",ut);a.prototype.concat=function(n,t){var i={caseInsensitive:c.caseInsensitive(),strict:c.strictMode(),squash:c.defaultSquashPolicy()};return new a(this.sourcePath+n+this.sourceSearch,r(i,t),this)};a.prototype.toString=function(){return this.source};a.prototype.exec=function(n,t){function l(n){function t(n){return n.split("").reverse().join("")}function i(n){return n.replace(/\\-/g,"-")}var r=t(n).split(/-(?!\\)/),u=y(r,t);return y(u,i).reverse()}var o=this.regexp.exec(n),f,u;if(!o)return null;t=t||{};var i,e,r,s=this.parameters(),a=s.length,c=this.segments.length-1,h={};if(c!==o.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(i=0;c>i;i++){for(r=s[i],f=this.params[r],u=o[i+1],e=0;e<f.replace;e++)f.replace[e].from===u&&(u=f.replace[e].to);u&&f.array===!0&&(u=l(u));h[r]=f.value(u)}for(;a>i;i++)r=s[i],h[r]=this.params[r].value(t[r]);return h};a.prototype.parameters=function(n){return u(n)?this.params[n]||null:this.$$paramNames};a.prototype.validates=function(n){return this.params.$$validates(n)};a.prototype.format=function(n){function b(n){return encodeURIComponent(n).replace(/-/g,function(n){return"%5C%"+n.charCodeAt(0).toString(16).toUpperCase()})}var s,w;n=n||{};var h=this.segments,c=this.parameters(),k=this.params;if(!this.validates(n))return null;for(var l=!1,d=h.length-1,g=c.length,i=h[0],r=0;g>r;r++){var nt=d>r,o=c[r],u=k[o],a=u.value(n[o]),p=u.isOptional&&u.type.equals(u.value(),a),e=p?u.squash:!1,t=u.type.encode(a);if(nt)s=h[r+1],e===!1?(null!=t&&(i+=v(t)?y(t,b).join("-"):encodeURIComponent(t)),i+=s):e===!0?(w=i.match(/\/$/)?/\/?(.*)/:/(.*)/,i+=s.match(w)[1]):f(e)&&(i+=e+s);else{if(null==t||p&&e!==!1)continue;v(t)||(t=[t]);t=y(t,encodeURIComponent).join("&"+o+"=");i+=(l?"&":"?")+(o+"="+t);l=!0}}return i};o.prototype.is=function(){return!0};o.prototype.encode=function(n){return n};o.prototype.decode=function(n){return n};o.prototype.equals=function(n,t){return n==t};o.prototype.$subPattern=function(){var n=this.pattern.toString();return n.substr(1,n.length-2)};o.prototype.pattern=/.*/;o.prototype.toString=function(){return"{Type:"+this.name+"}"};o.prototype.$normalize=function(n){return this.is(n)?n:this.decode(n)};o.prototype.$asArray=function(n,t){function r(n,t){function r(n,t){return function(){return n[t].apply(n,arguments)}}function e(n){return v(n)?n:u(n)?[n]:[]}function o(n){switch(n.length){case 0:return i;case 1:return"auto"===t?n[0]:n;default:return n}}function s(n){return!n}function f(n,t){return function(i){i=e(i);var r=y(i,n);return t===!0?0===nt(r,s).length:o(r)}}function h(n){return function(t,i){var u=e(t),f=e(i),r;if(u.length!==f.length)return!1;for(r=0;r<u.length;r++)if(!n(u[r],f[r]))return!1;return!0}}this.encode=f(r(n,"encode"));this.decode=f(r(n,"decode"));this.is=f(r(n,"is"),!0);this.equals=h(r(n,"equals"));this.pattern=n.pattern;this.$normalize=f(r(n,"$normalize"));this.name=n.name;this.$arrayMode=t}if(!n)return this;if("auto"===n&&!t)throw new Error("'auto' array mode is for query parameters only");return new r(this,n)};t.module("ui.router.util").provider("$urlMatcherFactory",ft);t.module("ui.router.util").run(["$urlMatcherFactory",function(){}]);et.$inject=["$locationProvider","$urlMatcherFactoryProvider"];t.module("ui.router.router").provider("$urlRouter",et);ot.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"];t.module("ui.router.state").value("$stateParams",{}).provider("$state",ot);st.$inject=[];t.module("ui.router.state").provider("$view",st);t.module("ui.router.state").provider("$uiViewScroll",dt);ht.$inject=["$state","$injector","$uiViewScroll","$interpolate"];ct.$inject=["$compile","$controller","$state","$interpolate"];t.module("ui.router.state").directive("uiView",ht);t.module("ui.router.state").directive("uiView",ct);vt.$inject=["$state","$timeout"];tt.$inject=["$state","$stateParams","$interpolate"];t.module("ui.router.state").directive("uiSref",vt).directive("uiSrefActive",tt).directive("uiSrefActiveEq",tt);yt.$inject=["$state"];pt.$inject=["$state"];t.module("ui.router.state").filter("isState",yt).filter("includedByState",pt)}(window,window.angular),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.bindHtml","ui.bootstrap.position","ui.bootstrap.modal","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.tabs","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/modal/backdrop.html","template/modal/window.html","template/popover/popover.html","template/tabs/tab.html","template/tabs/tabset.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(f.style[t]!==undefined)return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=undefined)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){if(f)f=!1,s(),i.css({height:0});else{i.css({height:i[0].scrollHeight+"px"});var n=i[0].offsetWidth;i.removeClass("collapse in").addClass("collapsing");e({height:0}).then(s)}}function s(){i.removeClass("collapsing");i.addClass("collapse")}var f=!0,u;t.$watch(r.collapse,function(n){n?c():h()})}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}}),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return(i(n,"position")||"static")==="static"}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var a=i.split("-"),h=a[0],e=a[1]||"center",u,c,l,f,o,s;u=r?this.offset(n):this.position(n);c=t.prop("offsetWidth");l=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-c/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-l/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(h){case"right":f={top:s[e](),left:o[h]()};break;case"left":f={top:s[e](),left:u.left-c};break;case"bottom":f={top:s[h](),left:o[e]()};break;default:f={top:u.top-l,left:o[e]()}}return f}}}]),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t,i,r){t.backdropClass=r.backdropClass||"";t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].querySelectorAll("[autofocus]").length||r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&i.value.backdrop!="static"&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function a(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);v(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(l,e.length()>0);y()})}function y(){if(h&&c()==-1){var n=o;v(h,o,150,function(){n.$destroy();n=null});h=undefined;o=undefined}}function v(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e)}var l="modal-open",h,o,e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;n.which===27&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,a,v,y;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,a=angular.element("<div modal-backdrop><\/div>"),a.attr("backdrop-class",t.backdropClass),h=r(a)(o),f.append(h));v=angular.element("<div modal-window><\/div>");v.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);y=r(v)(t.scope);e.top().value.modalDomEl=y;f.append(y);f.addClass(l)},s.close=function(n,t){var i=e.get(n);i&&(i.value.deferred.resolve(t),a(n))},s.dismiss=function(n,t){var i=e.get(n);i&&(i.value.deferred.reject(t),a(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var r=(t.scope||i).$new(),h,s,c;r.$close=u.close;r.$dismiss=u.dismiss;s={};c=1;t.controller&&(s.$scope=r,s.$modalInstance=u,angular.forEach(t.resolve,function(t,i){s[i]=n[c++]}),h=e(t.controller,s),t.controllerAs&&(r[t.controllerAs]=h));o.open(u,{scope:r,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n}),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function r(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var i={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(u,f,e,o,s,h){return function(u,c,l){function p(t){var i=t||a.trigger||l,r=n[i]||i;return{show:i,hide:r}}var a=angular.extend({},i,t),w=r(u),v=h.startSymbol(),y=h.endSymbol(),b="<div "+w+'-popup title="'+v+"title"+y+'" content="'+v+"content"+y+'" placement="'+v+"placement"+y+'" animation="animation" is-open="isOpen"><\/div>';return{restrict:"EA",compile:function(){var n=f(b);return function(t,i,r){function ot(){f.isOpen?g():d()}function d(){(!et||t.$eval(r[c+"Enable"]))&&(ht(),f.popupDelay?y||(y=e(ft,f.popupDelay,!1),y.then(function(n){n()})):ft()())}function g(){t.$apply(function(){nt()})}function ft(){return(y=null,v&&(e.cancel(v),v=null),!f.content)?angular.noop:(st(),h.css({top:0,left:0,display:"block"}),f.$digest(),ut(),f.isOpen=!0,f.$digest(),ut)}function nt(){f.isOpen=!1;e.cancel(y);y=null;f.animation?v||(v=e(k,500)):k()}function st(){h&&k();w=f.$new();h=n(w,function(n){b?o.find("body").append(n):i.after(n)})}function k(){v=null;h&&(h.remove(),h=null);w&&(w.$destroy(),w=null)}function ht(){ct();lt()}function ct(){var n=r[c+"Placement"];f.placement=angular.isDefined(n)?n:a.placement}function lt(){var t=r[c+"PopupDelay"],n=parseInt(t,10);f.popupDelay=isNaN(n)?a.popupDelay:n}function at(){var n=r[c+"Trigger"];tt();l=p(n);l.show===l.hide?i.bind(l.show,ot):(i.bind(l.show,d),i.bind(l.hide,g))}var h,w,v,y,b=angular.isDefined(a.appendToBody)?a.appendToBody:!1,l=p(undefined),et=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),ut=function(){var n=s.positionElements(i,h,f.placement,b);n.top+="px";n.left+="px";h.css(n)},tt,it,rt;f.isOpen=!1;r.$observe(u,function(n){f.content=n;!n&&f.isOpen&&nt()});r.$observe(c+"Title",function(n){f.title=n});tt=function(){i.unbind(l.show,d);i.unbind(l.hide,g)};at();it=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(it)?!!it:a.animation;rt=t.$eval(r[c+"AppendToBody"]);b=angular.isDefined(rt)?rt:b;b&&t.$on("$locationChangeSuccess",function(){f.isOpen&&nt()});t.$on("$destroy",function(){e.cancel(v);e.cancel(y);tt();k();f=null})}}}}}]}),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[],r;i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);t.length===1?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var u=t.indexOf(n),f;n.active&&t.length>1&&!r&&(f=u==t.length-1?u-1:u+1,i.select(t[f]));t.splice(u,1)};n.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||n.tagName.toLowerCase()==="tab-heading"||n.tagName.toLowerCase()==="data-tab-heading")}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var st=s.$eval(c.typeaheadMinLength)||1,ft=s.$eval(c.typeaheadWaitMs)||0,ht=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,ct=t(c.typeaheadOnSelect),et=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):undefined,d=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,lt=s.$eval(c.typeaheadFocusFirst)!==!1,at=t(c.ngModel).assign,v=e.parse(c.typeahead),g,a=s.$new(),w,b,y,nt,tt,it,ot,rt,ut,k;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(Math.random()*1e4);h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};nt=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){n<0?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",nt(n))});tt=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&g)if(i.length>0){for(a.activeIdx=lt?0:-1,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:nt(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=d?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=undefined;ot=function(n){it=r(function(){tt(n)},ft)};rt=function(){it&&r.cancel(it)};l.$parsers.unshift(function(n){return g=!0,n&&n.length>=st?ft>0?(rt(),ot(n)):tt(n):(p(s,!1),rt(),y()),ht?n:n?(l.$setValidity("editable",!1),undefined):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return et?(t.$model=n,et(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=undefined,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t={},i,u;t[v.itemName]=u=a.matches[n].model;i=v.modelMapper(s,t);at(s,i);l.$setValidity("editable",!0);ct(s,{$item:u,$model:i,$label:v.viewMapper(s,t)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){a.matches.length!==0&&o.indexOf(n.which)!==-1&&(a.activeIdx!=-1||n.which!==13&&n.which!==9)&&(n.preventDefault(),n.which===40?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):n.which===38?(a.activeIdx=(a.activeIdx>0?a.activeIdx:a.matches.length)-1,a.$digest()):n.which===13||n.which===9?a.$apply(function(){a.select(a.activeIdx)}):n.which===27&&(n.stopPropagation(),y(),a.$digest()))});h.bind("blur",function(){g=!1});ut=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",ut);s.$on("$destroy",function(){u.unbind("click",ut);d&&k.remove()});k=n(b)(a);d?u.find("body").append(k):h.after(k)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}}),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(n){n.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n><\/div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(n){n.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude><\/div><\/div>\n<\/div>')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3>\n      <div class="popover-content" ng-bind="content"><\/div>\n  <\/div>\n<\/div>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]),!function(n,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define([],t):n.EasyPieChart=t()}(this,function(){var n=function(n,t){var f,r=document.createElement("canvas"),i,u,e;n.appendChild(r);"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(r);i=r.getContext("2d");r.width=r.height=t.size;u=1;window.devicePixelRatio>1&&(u=window.devicePixelRatio,r.style.width=r.style.height=[t.size,"px"].join(""),r.width=r.height=t.size*u,i.scale(u,u));i.translate(t.size/2,t.size/2);i.rotate((-.5+t.rotate/180)*Math.PI);e=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(e-=t.scaleLength+2);Date.now=Date.now||function(){return+new Date};var o=function(n,t,r){r=Math.min(Math.max(-1,r||0),1);var u=0>=r?!0:!1;i.beginPath();i.arc(0,0,e,0,2*Math.PI*r,u);i.strokeStyle=n;i.lineWidth=t;i.stroke()},c=function(){var u,n,r;for(i.lineWidth=1,i.fillStyle=t.scaleColor,i.save(),r=24;r>0;--r)r%6==0?(n=t.scaleLength,u=0):(n=.6*t.scaleLength,u=t.scaleLength-n),i.fillRect(-t.size/2+u,0,n,1),i.rotate(Math.PI/12);i.restore()},s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}(),h=function(){t.scaleColor&&c();t.trackColor&&o(t.trackColor,t.lineWidth,1)};this.getCanvas=function(){return r};this.getCtx=function(){return i};this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)};this.draw=function(n){t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?f?i.putImageData(f,0,0):(h(),f=i.getImageData(0,0,t.size*u,t.size*u)):(this.clear(),h()):this.clear();i.lineCap=t.lineCap;var r;r="function"==typeof t.barColor?t.barColor(n):t.barColor;o(r,t.lineWidth,n/100)}.bind(this);this.animate=function(n,i){var u=Date.now(),r;t.onStart(n,i);r=function(){var f=Math.min(Date.now()-u,t.animate.duration),e=t.easing(this,f,n,i-n,t.animate.duration);this.draw(e);t.onStep(n,i,e);f>=t.animate.duration?t.onStop(n,i):s(r)}.bind(this);s(r)}.bind(this)};return function(t,i){var u={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(n,t,i,r,u){return t/=u/2,1>t?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof n)u.renderer=n;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");u.renderer=SVGRenderer}var r={},f=0,e=function(){this.el=t;this.options=r;for(var n in u)u.hasOwnProperty(n)&&(r[n]=i&&"undefined"!=typeof i[n]?i[n]:u[n],"function"==typeof r[n]&&(r[n]=r[n].bind(this)));r.easing="string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?jQuery.easing[r.easing]:u.easing;"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0});"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate});this.renderer=new r.renderer(t,r);this.renderer.draw(f);t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(n){return n=parseFloat(n),r.animate.enabled?this.renderer.animate(f,n):this.renderer.draw(n),f=n,this}.bind(this);this.disableAnimation=function(){return r.animate.enabled=!1,this};this.enableAnimation=function(){return r.animate.enabled=!0,this};e()}}),!function(n,t){"object"==typeof exports?module.exports=t(require("angular")):"function"==typeof define&&define.amd?define(["angular"],t):t(n.angular)}(this,function(n){!function(n){"use strict";return n.module("easypiechart",[]).directive("easypiechart",[function(){return{restrict:"A",require:"?ngModel",scope:{percent:"=",options:"="},link:function(t,r){var u,f;t.percent=t.percent||0;u={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0}};t.options=n.extend(u,t.options);f=new i(r[0],u);t.$watch("percent",function(n){f.update(n)})}}}])}(n);var t=function(n,t){var f,r=document.createElement("canvas"),i,u,e;n.appendChild(r);"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(r);i=r.getContext("2d");r.width=r.height=t.size;u=1;window.devicePixelRatio>1&&(u=window.devicePixelRatio,r.style.width=r.style.height=[t.size,"px"].join(""),r.width=r.height=t.size*u,i.scale(u,u));i.translate(t.size/2,t.size/2);i.rotate((-.5+t.rotate/180)*Math.PI);e=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(e-=t.scaleLength+2);Date.now=Date.now||function(){return+new Date};var o=function(n,t,r){r=Math.min(Math.max(-1,r||0),1);var u=0>=r?!0:!1;i.beginPath();i.arc(0,0,e,0,2*Math.PI*r,u);i.strokeStyle=n;i.lineWidth=t;i.stroke()},c=function(){var u,n,r;for(i.lineWidth=1,i.fillStyle=t.scaleColor,i.save(),r=24;r>0;--r)r%6==0?(n=t.scaleLength,u=0):(n=.6*t.scaleLength,u=t.scaleLength-n),i.fillRect(-t.size/2+u,0,n,1),i.rotate(Math.PI/12);i.restore()},s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}(),h=function(){t.scaleColor&&c();t.trackColor&&o(t.trackColor,t.lineWidth,1)};this.getCanvas=function(){return r};this.getCtx=function(){return i};this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)};this.draw=function(n){t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?f?i.putImageData(f,0,0):(h(),f=i.getImageData(0,0,t.size*u,t.size*u)):(this.clear(),h()):this.clear();i.lineCap=t.lineCap;var r;r="function"==typeof t.barColor?t.barColor(n):t.barColor;o(r,t.lineWidth,n/100)}.bind(this);this.animate=function(n,i){var u=Date.now(),r;t.onStart(n,i);r=function(){var f=Math.min(Date.now()-u,t.animate.duration),e=t.easing(this,f,n,i-n,t.animate.duration);this.draw(e);t.onStep(n,i,e);f>=t.animate.duration?t.onStop(n,i):s(r)}.bind(this);s(r)}.bind(this)},i=function(n,i){var u={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(n,t,i,r,u){return t/=u/2,1>t?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof t)u.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");u.renderer=SVGRenderer}var r={},f=0,e=function(){this.el=n;this.options=r;for(var t in u)u.hasOwnProperty(t)&&(r[t]=i&&"undefined"!=typeof i[t]?i[t]:u[t],"function"==typeof r[t]&&(r[t]=r[t].bind(this)));r.easing="string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?jQuery.easing[r.easing]:u.easing;"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0});"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate});this.renderer=new r.renderer(n,r);this.renderer.draw(f);n.dataset&&n.dataset.percent?this.update(parseFloat(n.dataset.percent)):n.getAttribute&&n.getAttribute("data-percent")&&this.update(parseFloat(n.getAttribute("data-percent")))}.bind(this);this.update=function(n){return n=parseFloat(n),r.animate.enabled?this.renderer.animate(f,n):this.renderer.draw(n),f=n,this}.bind(this);this.disableAnimation=function(){return r.animate.enabled=!1,this};this.enableAnimation=function(){return r.animate.enabled=!0,this};e()}}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery),+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.1";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i="prev"==n?-1:1,r=this.getItemIndex(t),u=(r+i)%this.$items.length;return this.$items.eq(u)};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",v="next"==i?"first":"last",a=this,o,s,h,c;if(!u.length){if(!this.options.wrap)return;u=this.$element.find(".item")[v]()}return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery),+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.1";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(t.target),38==t.which&&r>0&&r--,40==t.which&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery),+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.tooltip"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.tooltip",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.tooltip",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.popover"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.popover",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.popover",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.1";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.1";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.1";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=s?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){function st(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function it(n,i){function u(){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}var r=!0;return l(function(){return r&&(u(),r=!1),i.apply(this,arguments)},i)}function li(n,t){return function(i){return r(n.call(this,i),t)}}function fu(n,t){return function(i){return this.lang().ordinal(n.call(this,i),t)}}function ai(){}function ht(n){ki(n);l(this,n)}function ct(n){var t=yi(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._bubble()}function l(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.hasOwnProperty("toString")&&(n.toString=t.toString),t.hasOwnProperty("valueOf")&&(n.valueOf=t.valueOf),n}function eu(n){var i={};for(var t in n)n.hasOwnProperty(t)&&ti.hasOwnProperty(t)&&(i[t]=n[t]);return i}function p(n){return n<0?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function lt(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&fr(n,"Date",gt(n,"Date")+f*r);e&&ur(n,gt(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function at(n){return Object.prototype.toString.call(n)==="[object Array]"}function ou(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function vi(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;u<e;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function a(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=ru[n]||uu[t]||t}return n}function yi(n){var r={},t;for(var i in n)n.hasOwnProperty(i)&&(t=a(i),t&&(r[t]=n[i]));return r}function su(i){var r,u;if(i.indexOf("week")===0)r=7,u="day";else if(i.indexOf("month")===0)r=12,u="month";else return;t[i]=function(f,e){var o,s,c=t.fn._lang[i],h=[];if(typeof f=="number"&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t.fn._lang,i,f||"")},e!=null)return s(e);for(o=0;o<r;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function vt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function pi(n,i,r){return g(t([n,11,31+i-r]),i,r).week}function wi(n){return bi(n)?366:365}function bi(n){return n%4==0&&n%100!=0||n%400==0}function ki(n){var t;n._a&&n._pf.overflow===-2&&(t=n._a[h]<0||n._a[h]>11?h:n._a[e]<1||n._a[e]>vt(n._a[f],n._a[h])?e:n._a[o]<0||n._a[o]>23?o:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>59?k:n._a[d]<0||n._a[d]>999?d:-1,n._pf._overflowDayOfYear&&(t<f||t>e)&&(t=e),n._pf.overflow=t)}function di(n){return n._isValid==null&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&n._pf.charsLeftOver===0&&n._pf.unusedTokens.length===0)),n._isValid}function yt(n){return n?n.toLowerCase().replace("_","-"):n}function pt(n,i){return i._isUTC?t(n).zone(i._offset||0):t(n).local()}function hu(n,t){return t.abbr=n,y[n]||(y[n]=new ai),y[n].set(t),y[n]}function cu(n){delete y[n]}function s(n){var f=0,r,u,i,e,o=function(n){if(!y[n]&&ii)try{require("./lang/"+n)}catch(t){}return y[n]};if(!n)return t.fn._lang;if(!at(n)){if(u=o(n),u)return u;n=[n]}while(f<n.length){for(e=yt(n[f]).split("-"),r=e.length,i=yt(n[f+1]),i=i?i.split("-"):null;r>0;){if(u=o(e.slice(0,r).join("-")),u)return u;if(i&&i.length>=r&&vi(e,i,!0)>=r-1)break;r--}f++}return t.fn._lang}function lu(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function au(n){for(var i=n.match(ri),t=0,r=i.length;t<r;t++)i[t]=c[i[t]]?c[i[t]]:lu(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function wt(n,t){return n.isValid()?(t=gi(t,n.lang()),ot[t]||(ot[t]=au(t)),ot[t](n)):n.lang().invalidDate()}function gi(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(tt.lastIndex=0;i>=0&&tt.test(n);)n=n.replace(tt,r),tt.lastIndex=0,i-=1;return n}function vu(n,t){var i=t._strict;switch(n){case"Q":return fi;case"DDDD":return oi;case"YYYY":case"GGGG":case"gggg":return i?dr:ar;case"Y":case"G":case"g":return nu;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?gr:vr;case"S":if(i)return fi;case"SS":if(i)return ei;case"SSS":if(i)return oi;case"DDD":return lr;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return pr;case"a":case"A":return s(t._l)._meridiemParse;case"X":return br;case"Z":case"ZZ":return rt;case"T":return wr;case"SSSS":return yr;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?ei:ui;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return ui;case"Do":return kr;default:return new RegExp(ku(bu(n.replace("\\","")),"i"))}}function nr(n){n=n||"";var r=n.match(rt)||[],f=r[r.length-1]||[],t=(f+"").match(iu)||["-",0,0],u=+(t[1]*60)+i(t[2]);return t[0]==="+"?-u:u}function yu(n,r,u){var l,c=u._a;switch(n){case"Q":r!=null&&(c[h]=(i(r)-1)*3);break;case"M":case"MM":r!=null&&(c[h]=i(r)-1);break;case"MMM":case"MMMM":l=s(u._l).monthsParse(r);l!=null?c[h]=l:u._pf.invalidMonth=r;break;case"D":case"DD":r!=null&&(c[e]=i(r));break;case"Do":r!=null&&(c[e]=i(parseInt(r,10)));break;case"DDD":case"DDDD":r!=null&&(u._dayOfYear=i(r));break;case"YY":c[f]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":c[f]=i(r);break;case"a":case"A":u._isPm=s(u._l).isPM(r);break;case"H":case"HH":case"h":case"hh":c[o]=i(r);break;case"m":case"mm":c[b]=i(r);break;case"s":case"ss":c[k]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":c[d]=i(("0."+r)*1e3);break;case"X":u._d=new Date(parseFloat(r)*1e3);break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=nr(r);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":n=n.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=r)}}function bt(n){var r,v,l=[],y,p,w,u,a,c,k,d;if(!n._d){for(y=wu(n),n._w&&n._a[e]==null&&n._a[h]==null&&(w=function(i){var r=parseInt(i,10);return i?i.length<3?r>68?1900+r:2e3+r:r:n._a[f]==null?t().weekYear():n._a[f]},u=n._w,u.GG!=null||u.W!=null||u.E!=null?a=ir(w(u.GG),u.W||1,u.E,4,1):(c=s(n._l),k=u.d!=null?tr(u.d,c):u.e!=null?parseInt(u.e,10)+c._week.dow:0,d=parseInt(u.w,10)||1,u.d!=null&&k<c._week.dow&&d++,a=ir(w(u.gg),d,k,c._week.doy,c._week.dow)),n._a[f]=a.year,n._dayOfYear=a.dayOfYear),n._dayOfYear&&(p=n._a[f]==null?y[f]:n._a[f],n._dayOfYear>wi(p)&&(n._pf._overflowDayOfYear=!0),v=dt(p,0,n._dayOfYear),n._a[h]=v.getUTCMonth(),n._a[e]=v.getUTCDate()),r=0;r<3&&n._a[r]==null;++r)n._a[r]=l[r]=y[r];for(;r<7;r++)n._a[r]=l[r]=n._a[r]==null?r===2?1:0:n._a[r];l[o]+=i((n._tzm||0)/60);l[b]+=i((n._tzm||0)%60);n._d=(n._useUTC?dt:tf).apply(null,l)}}function pu(n){var t;n._d||(t=yi(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],bt(n))}function wu(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function kt(n){n._a=[];n._pf.empty=!0;for(var l=s(n._l),t=""+n._i,i,r,e,a=t.length,h=0,f=gi(n._f,l).match(ri)||[],u=0;u<f.length;u++)r=f[u],i=(t.match(vu(r,n))||[])[0],i&&(e=t.substr(0,t.indexOf(i)),e.length>0&&n._pf.unusedInput.push(e),t=t.slice(t.indexOf(i)+i.length),h+=i.length),c[r]?(i?n._pf.empty=!1:n._pf.unusedTokens.push(r),yu(r,i,n)):n._strict&&!i&&n._pf.unusedTokens.push(r);n._pf.charsLeftOver=a-h;t.length>0&&n._pf.unusedInput.push(t);n._isPm&&n._a[o]<12&&(n._a[o]+=12);n._isPm===!1&&n._a[o]===12&&(n._a[o]=0);bt(n);ki(n)}function bu(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function ku(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function du(n){var t,f,u,r,i;if(n._f.length===0){n._pf.invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=l({},n),t._pf=st(),t._f=n._f[r],kt(t),di(t))&&(i+=t._pf.charsLeftOver,i+=t._pf.unusedTokens.length*10,t._pf.score=i,(u==null||i<u)&&(u=i,f=t));l(n,f||t)}function gu(n){var i,r,u=n._i,f=tu.exec(u);if(f){for(n._pf.iso=!0,i=0,r=ut.length;i<r;i++)if(ut[i][1].exec(u)){n._f=ut[i][0]+(f[6]||" ");break}for(i=0,r=ft.length;i<r;i++)if(ft[i][1].exec(u)){n._f+=ft[i][0];break}u.match(rt)&&(n._f+="Z");kt(n)}else t.createFromInputFallback(n)}function nf(i){var r=i._i,u=sr.exec(r);r===n?i._d=new Date:u?i._d=new Date(+u[1]):typeof r=="string"?gu(i):at(r)?(i._a=r.slice(0),bt(i)):ou(r)?i._d=new Date(+r):typeof r=="object"?pu(i):typeof r=="number"?i._d=new Date(r):t.createFromInputFallback(i)}function tf(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function dt(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function tr(n,t){if(typeof n=="string")if(isNaN(n)){if(n=t.weekdaysParse(n),typeof n!="number")return null}else n=parseInt(n,10);return n}function rf(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function uf(n,t,i){var o=w(Math.abs(n)/1e3),u=w(o/60),f=w(u/60),r=w(f/24),s=w(r/365),e=o<45&&["s",o]||u===1&&["m"]||u<45&&["mm",u]||f===1&&["h"]||f<22&&["hh",f]||r===1&&["d"]||r<=25&&["dd",r]||r<=45&&["M"]||r<345&&["MM",w(r/30)]||s===1&&["y"]||["yy",s];return e[2]=t,e[3]=n>0,e[4]=i,rf.apply({},e)}function g(n,i,r){var e=r-i,u=r-n.day(),f;return u>e&&(u-=7),u<e-7&&(u+=7),f=t(n).add("d",u),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ir(n,t,i,r,u){var e=dt(n,0,1).getUTCDay(),o,f;return i=i!=null?i:u,o=u-e+(e>r?7:0)-(e<u?7:0),f=7*(t-1)+(i-u)+o+1,{year:f>0?n:n-1,dayOfYear:f>0?f:wi(n-1)+f}}function rr(i){var r=i._i,u=i._f;return r===null||u===n&&r===""?t.invalid({nullInput:!0}):(typeof r=="string"&&(i._i=r=s().preparse(r)),t.isMoment(r)?(i=eu(r),i._d=new Date(+r._d)):u?at(u)?du(i):kt(i):nf(i),new ht(i))}function ur(n,t){var i;return typeof t=="string"&&(t=n.lang().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),vt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function gt(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function fr(n,t,i){return t==="Month"?ur(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function v(n,i){return function(r){return r!=null?(fr(this,n,r),t.updateOffset(this,i),this):gt(this,n)}}function ff(n){t.duration.fn[n]=function(){return this._data[n]}}function er(n,i){t.duration.fn["as"+n]=function(){return+this/i}}function or(n){typeof ender=="undefined"&&(ni=nt.moment,nt.moment=n?it("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,nt=typeof global!="undefined"?global:this,ni,w=Math.round,u,f=0,h=1,e=2,o=3,b=4,k=5,d=6,y={},ti={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},ii=typeof module!="undefined"&&module.exports,sr=/^\/?Date\((\-?\d+)/i,hr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,cr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,ri=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,tt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,ui=/\d\d?/,lr=/\d{1,3}/,ar=/\d{1,4}/,vr=/[+\-]?\d{1,6}/,yr=/\d+/,pr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,rt=/Z|[\+\-]\d\d:?\d\d/gi,wr=/T/i,br=/[\+\-]?\d+(\.\d{1,3})?/,kr=/\d{1,2}/,fi=/\d/,ei=/\d\d/,oi=/\d{3}/,dr=/\d{4}/,gr=/[+-]?\d{6}/,nu=/[+-]?\d+/,tu=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ut=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ft=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],iu=/([\+\-]|\d\d)/gi,ef="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),et={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},ru={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},uu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},ot={},si="DDD w W M D d".split(" "),hi="M D H h m s w W".split(" "),c={M:function(){return this.month()+1},MMM:function(n){return this.lang().monthsShort(this,n)},MMMM:function(n){return this.lang().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.lang().weekdaysMin(this,n)},ddd:function(n){return this.lang().weekdaysShort(this,n)},dddd:function(n){return this.lang().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=-this.zone(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ci=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];si.length;)u=si.pop(),c[u+"o"]=fu(c[u],u);while(hi.length)u=hi.pop(),c[u+u]=li(c[u],2);for(c.DDDD=li(c.DDD,3),l(ai.prototype,{set:function(n){var t;for(var i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;i<12;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;i<7;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return(n+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t){var i=this._calendar[n];return typeof i=="function"?i.apply(t):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return g(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=st(),rr(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=it("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i)}),t.utc=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=st(),rr(f).utc()},t.unix=function(n){return t(n*1e3)},t.duration=function(n,r){var h=n,u=null,f,c,s;return t.isDuration(n)?h={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(h={},r?h[r]=n:h.milliseconds=n):(u=hr.exec(n))?(f=u[1]==="-"?-1:1,h={y:0,d:i(u[e])*f,h:i(u[o])*f,m:i(u[b])*f,s:i(u[k])*f,ms:i(u[d])*f}):!(u=cr.exec(n))||(f=u[1]==="-"?-1:1,s=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*f},h={y:s(u[2]),M:s(u[3]),d:s(u[4]),h:s(u[5]),m:s(u[6]),s:s(u[7]),w:s(u[8])}),c=new ct(h),t.isDuration(n)&&n.hasOwnProperty("_lang")&&(c._lang=n._lang),c},t.version="2.6.0",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.momentProperties=ti,t.updateOffset=function(){},t.lang=function(n,i){var r;return n?(i?hu(yt(n),i):i===null?(cu(n),n="en"):y[n]||s(n),r=t.duration.fn._lang=t.fn._lang=s(n),r._abbr):t.fn._lang._abbr},t.langData=function(n){return n&&n._lang&&n._lang._abbr&&(n=n._lang._abbr),s(n)},t.isMoment=function(n){return n instanceof ht||n!=null&&n.hasOwnProperty("_isAMomentObject")},t.isDuration=function(n){return n instanceof ct},u=ci.length-1;u>=0;--u)su(ci[u]);t.normalizeUnits=function(n){return a(n)};t.invalid=function(n){var i=t.utc(NaN);return n!=null?l(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};l(t.fn=ht.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d+(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?wt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):wt(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return di(this)},isDSTShifted:function(){return this._a?this.isValid()&&vi(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return l({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(n){var i=wt(this,n||t.defaultFormat);return this.lang().postformat(i)},add:function(n,i){var r;return r=typeof n=="string"?t.duration(+i,n):t.duration(n,i),lt(this,r,1),this},subtract:function(n,i){var r;return r=typeof n=="string"?t.duration(+i,n):t.duration(n,i),lt(this,r,-1),this},diff:function(n,i,r){var f=pt(n,this),o=(this.zone()-f.zone())*6e4,u,e;return i=a(i),i==="year"||i==="month"?(u=(this.daysInMonth()+f.daysInMonth())*432e5,e=(this.year()-f.year())*12+(this.month()-f.month()),e+=(this-t(this).startOf("month")-(f-t(f).startOf("month")))/u,e-=(this.zone()-t(this).startOf("month").zone()-(f.zone()-t(f).startOf("month").zone()))*6e4/u,i==="year"&&(e=e/12)):(u=this-f,e=i==="second"?u/1e3:i==="minute"?u/6e4:i==="hour"?u/36e5:i==="day"?(u-o)/864e5:i==="week"?(u-o)/6048e5:u),r?e:p(e)},from:function(n,i){return t.duration(this.diff(n)).lang(this.lang()._abbr).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(){var i=pt(t(),this).startOf("day"),n=this.diff(i,"days",!0),r=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.lang().calendar(r,this))},isLeapYear:function(){return bi(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=tr(n,this.lang()),this.add({d:n-t})):t},month:v("Month",!0),startOf:function(n){n=a(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"?this.weekday(0):n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this},endOf:function(n){return n=a(n),this.startOf(n).add(n==="isoWeek"?"week":n,1).subtract("ms",1)},isAfter:function(n,i){return i=typeof i!="undefined"?i:"millisecond",+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i=typeof i!="undefined"?i:"millisecond",+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,t){return t=t||"ms",+this.clone().startOf(t)==+pt(n,this).startOf(t)},min:function(n){return n=t.apply(null,arguments),n<this?this:n},max:function(n){return n=t.apply(null,arguments),n>this?this:n},zone:function(n,i){var r=this._offset||0;if(n!=null)typeof n=="string"&&(n=nr(n)),Math.abs(n)<16&&(n=n*60),this._offset=n,this._isUTC=!0,r!==n&&(!i||this._changeInProgress?lt(this,t.duration(r-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null));else return this._isUTC?r:this._d.getTimezoneOffset();return this},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):typeof this._i=="string"&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return vt(this.year(),this.month())},dayOfYear:function(n){var i=w((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return n==null?i:this.add("d",n-i)},quarter:function(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)},weekYear:function(n){var t=g(this,this.lang()._week.dow,this.lang()._week.doy).year;return n==null?t:this.add("y",n-t)},isoWeekYear:function(n){var t=g(this,1,4).year;return n==null?t:this.add("y",n-t)},week:function(n){var t=this.lang().week(this);return n==null?t:this.add("d",(n-t)*7)},isoWeek:function(n){var t=g(this,1,4).week;return n==null?t:this.add("d",(n-t)*7)},weekday:function(n){var t=(this.day()+7-this.lang()._week.dow)%7;return n==null?t:this.add("d",n-t)},isoWeekday:function(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return pi(this.year(),1,4)},weeksInYear:function(){var n=this._lang._week;return pi(this.year(),n.dow,n.doy)},get:function(n){return n=a(n),this[n]()},set:function(n,t){return n=a(n),typeof this[n]=="function"&&this[n](t),this},lang:function(t){return t===n?this._lang:(this._lang=s(t),this)}});t.fn.millisecond=t.fn.milliseconds=v("Milliseconds",!1);t.fn.second=t.fn.seconds=v("Seconds",!1);t.fn.minute=t.fn.minutes=v("Minutes",!1);t.fn.hour=t.fn.hours=v("Hours",!0);t.fn.date=v("Date",!0);t.fn.dates=it("dates accessor is deprecated. Use date instead.",v("Date",!0));t.fn.year=v("FullYear",!0);t.fn.years=it("years accessor is deprecated. Use year instead.",v("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;l(t.duration.fn=ct.prototype,{_bubble:function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data,r,u,f,o;n.milliseconds=e%1e3;r=p(e/1e3);n.seconds=r%60;u=p(r/60);n.minutes=u%60;f=p(u/60);n.hours=f%24;t+=p(f/24);n.days=t%30;i+=p(t/30);n.months=i%12;o=p(i/12);n.years=o},weeks:function(){return p(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+i(this._months/12)*31536e6},humanize:function(n){var i=+this,t=uf(i,!n,this.lang());return n&&(t=this.lang().pastFuture(i,t)),this.lang().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=a(n),this[n.toLowerCase()+"s"]()},as:function(n){return n=a(n),this["as"+n.charAt(0).toUpperCase()+n.slice(1)+"s"]()},lang:t.fn.lang,toIsoString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}});for(u in et)et.hasOwnProperty(u)&&(er(u,et[u]),ff(u.toLowerCase()));er("Weeks",6048e5);t.duration.fn.asMonths=function(){return(+this-this.years()*31536e6)/2592e6+this.years()*12};t.lang("en",{ordinal:function(n){var t=n%10,r=i(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+r}});ii?module.exports=t:typeof define=="function"&&define.amd?(define("moment",function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(nt.moment=ni),t}),or(!0)):or()}.call(this),function(n){function r(){var n=document.createElement("input"),t="onpaste";return n.setAttribute(t,""),typeof n[t]=="function"?"paste":"input"}var u=r()+".mask",t=navigator.userAgent,f=/iphone/i.test(t),e=/android/i.test(t),i;n.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"};n.fn.extend({caret:function(n,t){var i;if(this.length!==0&&!this.is(":hidden"))return typeof n=="number"?(t=typeof t=="number"?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,r){var a,l,o,h,c,s;return!t&&this.length>0?(a=n(this[0]),a.data(n.mask.dataName)()):(r=n.extend({placeholder:n.mask.placeholder,completed:null},r),l=n.mask.definitions,o=[],h=s=t.length,c=null,n.each(t.split(""),function(n,t){t=="?"?(s--,h=n):l[t]?(o.push(new RegExp(l[t])),c===null&&(c=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function y(n){while(++n<s&&!o[n]);return n}function g(n){while(--n>=0&&!o[n]);return n}function d(n,t){var u,i;if(!(n<0)){for(u=n,i=y(t);u<s;u++)if(o[u]){if(i<s&&o[u].test(v[i]))v[u]=v[i],v[i]=r.placeholder;else break;i=y(i)}p();a.caret(Math.max(c,n))}}function nt(n){for(var u,f,t=n,i=r.placeholder;t<s;t++)if(o[t])if(u=y(t),f=v[t],v[t]=i,u<s&&o[u].test(f))i=f;else break}function tt(n){var r=n.which,u,i,t;r===8||r===46||f&&r===127?(u=a.caret(),i=u.begin,t=u.end,t-i==0&&(i=r!==46?g(i):t=y(i-1),t=r===46?y(t):t),k(i,t),d(i,t-1),n.preventDefault()):r==27&&(a.val(b),a.caret(0,w()),n.preventDefault())}function it(t){var h=t.which,i=a.caret(),u,c,f;t.ctrlKey||t.altKey||t.metaKey||h<32||h&&(i.end-i.begin!=0&&(k(i.begin,i.end),d(i.begin,i.end-1)),u=y(i.begin-1),u<s&&(c=String.fromCharCode(h),o[u].test(c)&&(nt(u),v[u]=c,p(),f=y(u),e?setTimeout(n.proxy(n.fn.caret,a,f),0):a.caret(f),r.completed&&f>=s&&r.completed.call(a))),t.preventDefault())}function k(n,t){for(var i=n;i<t&&i<s;i++)o[i]&&(v[i]=r.placeholder)}function p(){a.val(v.join(""))}function w(n){var i=a.val(),u=-1,t,f;for(t=0,pos=0;t<s;t++)if(o[t]){for(v[t]=r.placeholder;pos++<i.length;)if(f=i.charAt(pos-1),o[t].test(f)){v[t]=f;u=t;break}if(pos>i.length)break}else v[t]===i.charAt(pos)&&t!==h&&(pos++,u=t);return n?p():u+1<h?(a.val(""),k(0,s)):(p(),a.val(a.val().substring(0,u+1))),h?t:c}var a=n(this),v=n.map(t.split(""),function(n){if(n!="?")return l[n]?r.placeholder:n}),b=a.val();a.data(n.mask.dataName,function(){return n.map(v,function(n,t){return o[t]&&n!=r.placeholder?n:null}).join("")});a.attr("readonly")||a.one("unmask",function(){a.unbind(".mask").removeData(n.mask.dataName)}).bind("focus.mask",function(){clearTimeout(i);var n;b=a.val();n=w();i=setTimeout(function(){p();n==t.length?a.caret(0,n):a.caret(n)},10)}).bind("blur.mask",function(){w();a.val()!=b&&a.change()}).bind("keydown.mask",tt).bind("keypress.mask",it).bind(u,function(){setTimeout(function(){var n=w(!0);a.caret(n);r.completed&&n==a.val().length&&r.completed.call(a)},0)});w()}))}})}(jQuery),typeof jQuery=="undefined")throw new Error("Ace's JavaScript requires jQuery");if(function(){"ace"in window||(window.ace={});"helper"in window.ace||(window.ace.helper={});"vars"in window.ace||(window.ace.vars={});window.ace.vars.icon=" ace-icon ";window.ace.vars[".icon"]=".ace-icon";ace.vars.touch="ontouchstart"in window;var n=navigator.userAgent;ace.vars.webkit=!!n.match(/AppleWebKit/i);ace.vars.safari=!!n.match(/Safari/i)&&!n.match(/Chrome/i);ace.vars.android=ace.vars.safari&&!!n.match(/Android/i);ace.vars.ios_safari=!!n.match(/OS ([4-9])(_\d)+ like Mac OS X/i)&&!n.match(/CriOS/i);ace.vars.ie=window.navigator.msPointerEnabled||document.all&&document.querySelector;ace.vars.old_ie=document.all&&!document.addEventListener;ace.vars.very_old_ie=document.all&&!document.querySelector;ace.vars.firefox="MozAppearance"in document.documentElement.style;ace.vars.non_auto_fixed=ace.vars.android||ace.vars.ios_safari}(),function(n){ace.click_event=ace.vars.touch&&n.fn.tap?"tap":"click"}(jQuery),jQuery(function(n){function t(){ace.vars.non_auto_fixed&&n("body").addClass("mob-safari");ace.vars.transition=!!n.support.transition.end}function i(){var t=n(".sidebar");n.fn.ace_sidebar&&t.ace_sidebar();n.fn.ace_sidebar_scroll&&t.ace_sidebar_scroll({include_toggle:!1||ace.vars.safari||ace.vars.ios_safari});n.fn.ace_sidebar_hover&&t.ace_sidebar_hover({sub_hover_delay:750,sub_scroll_style:"no-track scroll-thin scroll-margin scroll-visible"})}function r(){if(n.fn.ace_ajax){window.Pace&&(window.paceOptions={ajax:!0,document:!0,eventLag:!1});var t={close_active:!0,default_url:"page/index",content_url:function(n){if(!n.match(/^page\//))return!1;var t=document.location.pathname;return t.match(/(\/ajax\/)(index\.html)?/)?t.replace(/(\/ajax\/)(index\.html)?/,"/ajax/content/"+n.replace(/^page\//,"")+".html"):t+"?"+n.replace(/\//,"=")}};window.Pace&&(t.loading_overlay="body");n("[data-ajax-content=true]").ace_ajax(t);n(window).on("error.ace_ajax",function(){n("[data-ajax-content=true]").each(function(){var t=n(this);t.ace_ajax("working")&&(window.Pace&&Pace.running&&Pace.stop(),t.ace_ajax("stopLoading",!0))})})}}function u(){var t=!!n.fn.ace_scroll;if(t&&n(".dropdown-content").ace_scroll({reset:!1,mouseWheelLock:!0}),t&&!ace.vars.old_ie){n(window).on("resize.reset_scroll",function(){n(".ace-scroll:not(.scroll-disabled)").not(":hidden").ace_scroll("reset")});if(t)n(document).on("settings.ace.reset_scroll",function(t,i){i=="sidebar_collapsed"&&n(".ace-scroll:not(.scroll-disabled)").not(":hidden").ace_scroll("reset")})}}function f(){n(document).on("click.dropdown.pos",'.dropdown-toggle[data-position="auto"]',function(){var i=n(this).offset(),t=n(this.parentNode);parseInt(i.top+n(this).height())+50>ace.helper.scrollTop()+ace.helper.winHeight()-t.find(".dropdown-menu").eq(0).height()?t.addClass("dropup"):t.removeClass("dropup")})}function e(){n('.ace-nav [class*="icon-animated-"]').closest("a").one("click",function(){var t=n(this).find('[class*="icon-animated-"]').eq(0),i=t.attr("class").match(/icon\-animated\-([\d\w]+)/);t.removeClass(i[0])});n(document).on("click",".dropdown-navbar .nav-tabs",function(t){t.stopPropagation();var i,r=t.target;(i=n(t.target).closest("[data-toggle=tab]"))&&i.length>0&&(i.tab("show"),t.preventDefault(),n(window).triggerHandler("resize.navbar.dropdown"))})}function o(){n(".sidebar .nav-list .badge[title],.sidebar .nav-list .badge[title]").each(function(){var t=n(this).attr("class").match(/tooltip\-(?:\w+)/);t=t?t[0]:"tooltip-error";n(this).tooltip({placement:function(t,i){var r=n(i).offset();return parseInt(r.left)<parseInt(document.body.scrollWidth/2)?"right":"left"},container:"body",template:'<div class="tooltip '+t+'"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>'})})}function s(){var i=n(".btn-scroll-up"),t;if(i.length>0){t=!1;n(window).on("scroll.scroll_btn",function(){var n=ace.helper.scrollTop(),r=ace.helper.winHeight(),u=document.body.scrollHeight;n>parseInt(r/4)||n>0&&u>=r&&r+n>=u-1?t||(i.addClass("display"),t=!0):t&&(i.removeClass("display"),t=!1)}).triggerHandler("scroll.scroll_btn");i.on(ace.click_event,function(){var t=Math.min(500,Math.max(100,parseInt(ace.helper.scrollTop()/3)));return n("html,body").animate({scrollTop:0},t),!1})}}function h(){if(ace.vars.webkit){var t=n(".ace-nav").get(0);if(t)n(window).on("resize.webkit_fix",function(){ace.helper.redraw(t)})}ace.vars.ios_safari&&n(document).on("ace.settings.ios_fix",function(t,i,r){if(i=="navbar_fixed"&&(n(document).off("focus.ios_fix blur.ios_fix","input,textarea,.wysiwyg-editor"),r==!0))n(document).on("focus.ios_fix","input,textarea,.wysiwyg-editor",function(){n(window).on("scroll.ios_fix",function(){var t=n("#navbar").get(0);t&&ace.helper.redraw(t)})}).on("blur.ios_fix","input,textarea,.wysiwyg-editor",function(){n(window).off("scroll.ios_fix")})}).triggerHandler("ace.settings.ios_fix",["navbar_fixed",n("#navbar").css("position")=="fixed"])}function c(){n(document).on("hide.bs.collapse show.bs.collapse",function(t){var r=t.target.getAttribute("id"),i=n('a[href*="#'+r+'"]');(i.length==0&&(i=n('a[data-target*="#'+r+'"]')),i.length!=0)&&i.find(ace.vars[".icon"]).each(function(){var i=n(this),f,r=null,u=null;return(r=i.attr("data-icon-show"))?u=i.attr("data-icon-hide"):(f=i.attr("class").match(/fa\-(.*)\-(up|down)/))&&(r="fa-"+f[1]+"-down",u="fa-"+f[1]+"-up"),r?(t.type=="show"?i.removeClass(r).addClass(u):i.removeClass(u).addClass(r),!1):void 0})})}function l(){function i(){var i=n(this).find("> .dropdown-menu"),s,l,a,v,e,g;if(i.css("position")=="fixed"){var h=parseInt(n(window).width()),y=h>320?60:h>240?40:30,p=parseInt(h)-y,w=parseInt(n(window).height())-30,o=parseInt(Math.min(p,320));i.css("width",o);var c=!1,u=0,r=i.find(".tab-pane.active .dropdown-content.ace-scroll");r.length==0?r=i.find(".dropdown-content.ace-scroll"):c=!0;s=r.closest(".dropdown-menu");l=i[0].scrollHeight;r.length==1&&(a=r.find(".scroll-content")[0],a&&(l=a.scrollHeight),u+=s.find(".dropdown-header").outerHeight(),u+=s.find(".dropdown-footer").outerHeight(),v=s.closest(".tab-content"),v.length!=0&&(u+=v.siblings(".nav-tabs").eq(0).height()));var f=parseInt(Math.min(w,480,l+u)),b=parseInt(Math.abs((p+y-o)/2)),k=parseInt(Math.abs((w+30-f)/2)),d=parseInt(i.css("z-index"))||0;i.css({height:f,left:b,right:"auto",top:k-(c?3:1)});r.length==1&&(ace.vars.touch?r.ace_scroll("disable").css("max-height",f-u).addClass("overflow-scroll"):r.ace_scroll("update",{size:f-u}).ace_scroll("enable").ace_scroll("reset"));i.css("height",f+(c?7:2));i.hasClass("user-menu")&&(i.css("height",""),e=n(this).find(".user-info"),e.length==1&&e.css("position")=="fixed"?e.css({left:b,right:"auto",top:k,width:o-2,"max-width":o-2,"z-index":d+1}):e.css({left:"",right:"",top:"",width:"","max-width":"","z-index":""}));n(this).closest(".navbar.navbar-fixed-top").css("z-index",d)}else i.length!=0&&t.call(this,i);g=this;n(window).off("resize.navbar.dropdown").one("resize.navbar.dropdown",function(){n(g).triggerHandler("shown.bs.dropdown.navbar")})}function t(t){if(t=t||n(this).find("> .dropdown-menu"),t.length>0&&(t.css({width:"",height:"",left:"",right:"",top:""}).find(".dropdown-content").each(function(){ace.vars.touch&&n(this).css("max-height","").removeClass("overflow-scroll");var t=parseInt(n(this).attr("data-size")||0)||n.fn.ace_scroll.defaults.size;n(this).ace_scroll("update",{size:t}).ace_scroll("enable").ace_scroll("reset")}),t.hasClass("user-menu")))var i=n(this).find(".user-info").css({left:"",right:"",top:"",width:"","max-width":"","z-index":""});n(this).closest(".navbar").css("z-index","")}if(!ace.vars.old_ie)n(".ace-nav > li").on("shown.bs.dropdown.navbar",function(){i.call(this)}).on("hidden.bs.dropdown.navbar",function(){n(window).off("resize.navbar.dropdown");t.call(this)})}t();i();r();u();f();e();o();s();h();c();l()}),function(n){n.unCamelCase=function(n){return n.replace(/([a-z])([A-Z])/g,function(n,t,i){return t+"-"+i.toLowerCase()})};n.strToVal=function(n){var t=n.match(/^(?:(true)|(false)|(null)|(\-?[\d]+(?:\.[\d]+)?)|(\[.*\]|\{.*\}))$/i),i=n;if(t)if(t[1])i=!0;else if(t[2])i=!1;else if(t[3])i=null;else if(t[4])i=parseFloat(n);else if(t[5])try{i=JSON.parse(n)}catch(r){}return i};n.getAttrSettings=function(t,i,r){var h=i instanceof Array?1:2,r=r?r.replace(/([^\-])$/,"$1-"):"",f,u,e,o,s;r="data-"+r;f={};for(u in i)if(i.hasOwnProperty(u)){if(e=h==1?i[u]:u,s=n.unCamelCase(e.replace(/[^A-Za-z0-9]{1,}/g,"-")).toLowerCase(),!(o=t.getAttribute(r+s)))continue;f[e]=n.strToVal(o)}return f};n.scrollTop=function(){return document.scrollTop||document.documentElement.scrollTop||document.body.scrollTop};n.winHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.redraw=function(n,t){var i=n.style.display;n.style.display="none";n.offsetHeight;t!==!0?n.style.display=i:setTimeout(function(){n.style.display=i},10)}}(ace.helper),function(n,t){function r(t,r){function a(t){var u="",i=n(".breadcrumb"),r;return i.length>0&&i.is(":visible")&&(i.find("> li:not(:first-child)").remove(),r=0,t.parents(".nav li").each(function(){var o=n(this).find("> a"),e=o.clone(),t,s,f;e.find("i,.fa,.glyphicon,.ace-icon,.menu-icon,.badge,.label").remove();t=e.text();e.remove();s=o.attr("href");r==0?(f=n('<li class="active"><\/li>').appendTo(i),f.text(t),u=t):(f=n("<li><a /><\/li>").insertAfter(i.find("> li:first-child")),f.find("a").attr("href",s).text(t));r++})),u}function v(t){var r=f.find(".ajax-append-title"),i;r.length>0?(document.title=r.text(),r.remove()):t.length>0&&(i=n.trim(String(document.title).replace(/^(.*)[\-]/,"")),i&&(i=" - "+i),t=n.trim(t)+i)}var f=n(t),u=this,c,o,e,h,s,l;f.attr("data-ajax-content","true");c=ace.helper.getAttrSettings(t,n.fn.ace_ajax.defaults);this.settings=n.extend({},n.fn.ace_ajax.defaults,r,c);o=!1;e=n();this.force_reload=!1;this.loadUrl=function(n,t){var i=!1;n=n.replace(/^(\#\!)?\#/,"");this.force_reload=t===!1;typeof this.settings.content_url=="function"&&(i=this.settings.content_url(n));typeof i=="string"&&this.getUrl(i,n,!1)};this.loadAddr=function(n,t,i){this.force_reload=i===!1;this.getUrl(n,t,!1)};this.getUrl=function(t,i,r){if(!o){var s;(f.trigger(s=n.Event("ajaxloadstart"),{url:t,hash:i}),s.isDefaultPrevented())||(u.startLoading(),n.ajax({url:t,cache:!this.force_reload}).error(function(){f.trigger("ajaxloaderror",{url:t,hash:i});u.stopLoading(!0)}).done(function(o){var s,h,c,l;f.trigger("ajaxloaddone",{url:t,hash:i});s=null;h="";typeof u.settings.update_active=="function"?s=u.settings.update_active.call(null,i,t):u.settings.update_active===!0&&i&&(s=n('a[data-url="'+i+'"]'),s.length>0&&(c=s.closest(".nav"),c.length>0&&(c.find(".active").each(function(){var t="active";(n(this).hasClass("hover")||u.settings.close_active)&&(t+=" open");n(this).removeClass(t);u.settings.close_active&&n(this).find(" > .submenu").css("display","")}),l=s.closest("li").addClass("active").parents(".nav li").addClass("active open"),c.closest(".sidebar[data-sidebar-scroll=true]").each(function(){var t=n(this);t.ace_sidebar_scroll("reset");r&&t.ace_sidebar_scroll("scroll_to_active")}))));typeof u.settings.update_breadcrumbs=="function"?h=u.settings.update_breadcrumbs.call(null,i,t,s):u.settings.update_breadcrumbs===!0&&s!=null&&s.length>0&&(h=a(s));o=String(o).replace(/<(title|link)([\s\>])/gi,'<div class="hidden ajax-append-$1"$2').replace(/<\/(title|link)\>/gi,"<\/div>");e.addClass("content-loaded").detach();f.empty().html(o);n(u.settings.loading_overlay||f).append(e);setTimeout(function(){var r,t,i;for(n("head").find("link.ace-ajax-stylesheet").remove(),r=["link.ace-main-stylesheet","link#main-ace-style",'link[href*="/ace.min.css"]','link[href*="/ace.css"]'],t=[],i=0;i<r.length;i++)if(t=n("head").find(r[i]).first(),t.length>0)break;f.find(".ajax-append-link").each(function(){var r=n(this),i;r.attr("href")&&(i=jQuery("<link />",{type:"text/css",rel:"stylesheet","class":"ace-ajax-stylesheet"}),t.length>0?i.insertBefore(t):i.appendTo("head"),i.attr("href",r.attr("href")));r.remove()})},10);typeof u.settings.update_title=="function"?u.settings.update_title.call(null,i,t,h):u.settings.update_title===!0&&v(h);r||n("html,body").animate({scrollTop:0},250);f.trigger("ajaxloadcomplete",{url:t,hash:i});u.stopLoading()}))}};h=!1;s=null;this.startLoading=function(){o||(o=!0,this.settings.loading_overlay||f.css("position")!="static"||(f.css("position","relative"),h=!0),e.remove(),e=n('<div class="ajax-loading-overlay"><i class="ajax-loading-icon '+(this.settings.loading_icon||"")+'"><\/i> '+this.settings.loading_text+"<\/div>"),this.settings.loading_overlay=="body"?n("body").append(e.addClass("ajax-overlay-body")):this.settings.loading_overlay?n(this.settings.loading_overlay).append(e):f.append(e),this.settings.max_load_wait!==!1&&(s=setTimeout(function(){if(s=null,o){var t;(f.trigger(t=n.Event("ajaxloadlong")),t.isDefaultPrevented())||u.stopLoading(!0)}},this.settings.max_load_wait*1e3)))};this.stopLoading=function(n){if(n===!0)o=!1,e.remove(),h&&(f.css("position",""),h=!1),s!=null&&(clearTimeout(s),s=null);else{e.addClass("almost-loaded");f.one("ajaxscriptsloaded.inner_call",function(){u.stopLoading(!0)})}};this.working=function(){return o};this.loadScripts=function(t,r){n.ajaxPrefilter("script",function(n){n.cache=!0});setTimeout(function(){function e(){typeof r=="function"&&r();n('.btn-group[data-toggle="buttons"] > .btn').button();f.trigger("ajaxscriptsloaded")}function h(n){n+=1;n<t.length?l(n):e()}function l(r){if(r=r||0,!t[r])return h(r);var u="js-"+t[r].replace(/[^\w\d\-]/g,"-").replace(/\-\-/g,"-");i[u]!==!0?n.getScript(t[r]).done(function(){i[u]=!0}).complete(function(){c++;c>=s&&o?e():h(r)}):h(r)}for(var s=0,c=0,u=0;u<t.length;u++)t[u]&&function(){var n="js-"+t[u].replace(/[^\w\d\-]/g,"-").replace(/\-\-/g,"-");i[n]!==!0&&s++}();s>0?l():e()},10)};n(window).off("hashchange.ace_ajax").on("hashchange.ace_ajax",function(){var t=n.trim(window.location.hash);t&&t.length!=0&&u.loadUrl(t)}).trigger("hashchange.ace_ajax",[!0]);l=n.trim(window.location.hash);!l&&this.settings.default_url&&(window.location.hash=this.settings.default_url)}var i={};n.fn.aceAjax=n.fn.ace_ajax=function(i,u,f,e){var o,s=this.each(function(){var h=n(this),s=h.data("ace_ajax"),c=typeof i=="object"&&i;s||h.data("ace_ajax",s=new r(this,c));typeof i=="string"&&typeof s[i]=="function"&&(o=e!=t?s[i](u,f,e):f!=t?s[i](u,f):s[i](u))});return o===t?s:o};n.fn.aceAjax.defaults=n.fn.ace_ajax.defaults={content_url:!1,default_url:!1,loading_icon:"fa fa-spin fa-spinner fa-2x orange",loading_text:"",loading_overlay:null,update_breadcrumbs:!0,update_title:!0,update_active:!0,close_active:!1,max_load_wait:!1}}(window.jQuery),function(n,t){if(ace.vars.touch){var r="touchstart MSPointerDown pointerdown",u="touchend touchcancel MSPointerUp MSPointerCancel pointerup pointercancel",i="touchmove MSPointerMove MSPointerHover pointermove";n.event.special.ace_drag={setup:function(){var e=0,f=n(this);f.on(r,function(r){function v(n){var t,i;o&&(t=n.originalEvent.touches?n.originalEvent.touches[0]:n,s={coords:[t.pageX,t.pageY]},o&&s&&(h=0,c=0,l=Math.abs(c=o.coords[1]-s.coords[1])>e&&Math.abs(h=o.coords[0]-s.coords[0])<=Math.abs(c)?c>0?"up":"down":Math.abs(h=o.coords[0]-s.coords[0])>e&&Math.abs(c)<=Math.abs(h)?h>0?"left":"right":!1,l!==!1&&(i={cancel:!1},o.origin.trigger({type:"ace_drag",direction:l,dx:h,dy:c,retval:i}),i.cancel==!1&&n.preventDefault())),o.coords[0]=s.coords[0],o.coords[1]=s.coords[1])}var a=r.originalEvent.touches?r.originalEvent.touches[0]:r,o={coords:[a.pageX,a.pageY],origin:n(r.target)},s,l=!1,h=0,c=0;f.on(i,v).one(u,function(){f.off(i,v);o=s=t})})}}}}(window.jQuery),function(n,t){function r(r,u){function y(){this.mobile_view=this.mobile_style<4&&this.is_mobile_view();this.collapsible=!this.mobile_view&&this.is_collapsible();this.minimized=!this.collapsible&&this.$sidebar.hasClass(l)||this.mobile_style==3&&this.mobile_view&&this.$sidebar.hasClass(c);this.horizontal=!(this.mobile_view||this.collapsible)&&this.$sidebar.hasClass(a)}var f=this,h,o,s,e;this.$sidebar=n(r);this.$sidebar.attr("data-sidebar","true");this.$sidebar.attr("id")||this.$sidebar.attr("id","id-sidebar-"+ ++i);h=ace.helper.getAttrSettings(r,n.fn.ace_sidebar.defaults,"sidebar-");this.settings=n.extend({},n.fn.ace_sidebar.defaults,u,h);this.minimized=!1;this.collapsible=!1;this.horizontal=!1;this.mobile_view=!1;this.vars=function(){return{minimized:this.minimized,collapsible:this.collapsible,horizontal:this.horizontal,mobile_view:this.mobile_view}};this.get=function(n){if(this.hasOwnProperty(n))return this[n]};this.set=function(n,t){this.hasOwnProperty(n)&&(this[n]=t)};this.ref=function(){return this};o=function(i){var r=n(this).find(ace.vars[".icon"]),u,f;r.length>0&&(u=r.attr("data-icon1"),f=r.attr("data-icon2"),i!==t?i?r.removeClass(u).addClass(f):r.removeClass(f).addClass(u):r.toggleClass(u).toggleClass(f))};s=function(){var t=f.$sidebar.find(".sidebar-collapse");return t.length==0&&(t=n('.sidebar-collapse[data-target="#'+(f.$sidebar.attr("id")||"")+'"]')),t.length!=0?t[0]:null};this.toggleMenu=function(n,t){if(!this.collapsible){this.minimized=!this.minimized;try{ace.settings.sidebar_collapsed(r,this.minimized,!(n===!1||t===!1))}catch(i){this.minimized?this.$sidebar.addClass("menu-min"):this.$sidebar.removeClass("menu-min")}n||(n=s());n&&o.call(n,this.minimized);ace.vars.old_ie&&ace.helper.redraw(r)}};this.collapse=function(n,t){this.collapsible||(this.minimized=!1,this.toggleMenu(n,t))};this.expand=function(n,t){this.collapsible||(this.minimized=!0,this.toggleMenu(n,t))};this.toggleResponsive=function(t){var r,i,u,f;this.mobile_view&&this.mobile_style==3&&(this.$sidebar.hasClass("menu-min")&&(this.$sidebar.removeClass("menu-min"),r=s(),r&&o.call(r)),this.minimized=!this.$sidebar.hasClass("responsive-min"),this.$sidebar.toggleClass("responsive-min responsive-max"),t||(t=this.$sidebar.find(".sidebar-expand"),t.length==0&&(t=n('.sidebar-expand[data-target="#'+(this.$sidebar.attr("id")||"")+'"]')),t=t.length!=0?t[0]:null),t&&(i=n(t).find(ace.vars[".icon"]),i.length>0&&(u=i.attr("data-icon1"),f=i.attr("data-icon2"),i.toggleClass(u).toggleClass(f))),n(document).triggerHandler("settings.ace",["sidebar_collapsed",this.minimized]))};this.is_collapsible=function(){var t;return this.$sidebar.hasClass("navbar-collapse")&&(t=n('.navbar-toggle[data-target="#'+(this.$sidebar.attr("id")||"")+'"]').get(0))!=null&&t.scrollHeight>0};this.is_mobile_view=function(){var t;return(t=n('.menu-toggler[data-target="#'+(this.$sidebar.attr("id")||"")+'"]').get(0))!=null&&t.scrollHeight>0};this.$sidebar.on(ace.click_event+".ace.submenu",".nav-list",function(t){var h=this,i=n(t.target).closest("a"),o,e,r,s;if(i&&i.length!=0){if(o=f.minimized&&!f.collapsible,!i.hasClass("dropdown-toggle")){if(ace.click_event=="tap"&&o&&i.get(0).parentNode.parentNode==h&&(e=i.find(".menu-text").get(0),e!=null&&t.target!=e&&!n.contains(e,t.target)))return t.preventDefault(),!1;if(ace.vars.ios_safari&&i.attr("data-link")!=="false")return document.location=i.attr("href"),t.preventDefault(),!1;i.closest(".nav-list").find("ul").each(function(){this!==i.get(0).parentElement.parentElement&&this.scrollHeight>0&&(f.hide(this,f.settings.duration),u-=this.scrollHeight)});return}if(t.preventDefault(),r=i.siblings(".submenu").get(0),!r)return!1;var c=n(r),u=0,l=r.parentNode.parentNode;return o&&l==h||c.parent().hasClass("hover")&&c.css("position")=="absolute"&&!f.collapsible?!1:(s=r.scrollHeight==0,s&&n(l).find("> .open > .submenu").each(function(){this==r||n(this.parentNode).hasClass("active")||(u-=this.scrollHeight,f.hide(this,f.settings.duration,!1))}),s?(f.show(r,f.settings.duration),u!=0&&(u+=r.scrollHeight)):(f.hide(r,f.settings.duration),u-=r.scrollHeight),u!=0&&(f.$sidebar.attr("data-sidebar-scroll")!="true"||f.minimized||f.$sidebar.ace_sidebar_scroll("prehide",u)),!1)}});e=!1;this.show=function(t,i,r){var u,o,f;if((r=r!==!1,r&&e)||(u=n(t),u.trigger(o=n.Event("show.ace.submenu")),o.isDefaultPrevented()))return!1;if(r&&(e=!0),i=i||this.settings.duration,u.css({height:0,overflow:"hidden",display:"block"}).removeClass("nav-hide").addClass("nav-show").parent().addClass("open"),t.scrollTop=0,i>0&&u.css({height:t.scrollHeight,"transition-property":"height","transition-duration":i/1e3+"s"}),f=function(t,i){t&&t.stopPropagation();u.css({"transition-property":"","transition-duration":"",overflow:"",height:""});i!==!1&&u.trigger(n.Event("shown.ace.submenu"));r&&(e=!1)},i>0&&!!n.support.transition.end)u.one(n.support.transition.end,f);else f();return ace.vars.android&&setTimeout(function(){f(null,!1);ace.helper.redraw(t)},i+20),!0};this.hide=function(t,i,r){var u,o,f;if((r=r!==!1,r&&e)||(u=n(t),u.trigger(o=n.Event("hide.ace.submenu")),o.isDefaultPrevented()))return!1;if(r&&(e=!0),i=i||this.settings.duration,u.css({height:t.scrollHeight,overflow:"hidden",display:"block"}).parent().removeClass("open"),t.offsetHeight,i>0&&u.css({height:0,"transition-property":"height","transition-duration":i/1e3+"s"}),f=function(t,i){t&&t.stopPropagation();u.css({display:"none",overflow:"",height:"","transition-property":"","transition-duration":""}).removeClass("nav-show").addClass("nav-hide");i!==!1&&u.trigger(n.Event("hidden.ace.submenu"));r&&(e=!1)},i>0&&!!n.support.transition.end)u.one(n.support.transition.end,f);else f();return ace.vars.android&&setTimeout(function(){f(null,!1);ace.helper.redraw(t)},i+20),!0};this.toggle=function(n,t){if(t=t||f.settings.duration,n.scrollHeight==0){if(this.show(n,t))return 1}else if(this.hide(n,t))return-1;return 0};var l="menu-min",c="responsive-min",a="h-sidebar",v=function(){this.mobile_style=1;this.$sidebar.hasClass("responsive")&&!n('.menu-toggler[data-target="#'+this.$sidebar.attr("id")+'"]').hasClass("navbar-toggle")?this.mobile_style=2:this.$sidebar.hasClass(c)?this.mobile_style=3:this.$sidebar.hasClass("navbar-collapse")&&(this.mobile_style=4)};v.call(f);n(window).on("resize.sidebar.vars",function(){y.call(f)}).triggerHandler("resize.sidebar.vars")}var i=0;n(document).on(ace.click_event+".ace.menu",".menu-toggler",function(t){var r=n(this),i=n(r.attr("data-target")),u,f;if(i.length!=0){if(t.preventDefault(),i.toggleClass("display"),r.toggleClass("display"),u=ace.click_event+".ace.autohide",f=i.attr("data-auto-hide")==="true",r.hasClass("display")){if(f)n(document).on(u,function(t){if(i.get(0)==t.target||n.contains(i.get(0),t.target)){t.stopPropagation();return}i.removeClass("display");r.removeClass("display");n(document).off(u)});i.attr("data-sidebar-scroll")=="true"&&i.ace_sidebar_scroll("reset")}else f&&n(document).off(u);return!1}}).on(ace.click_event+".ace.menu",".sidebar-collapse",function(t){var r=n(this).attr("data-target"),i=null;(r&&(i=n(r)),(i==null||i.length==0)&&(i=n(this).closest(".sidebar")),i.length!=0)&&(t.preventDefault(),i.ace_sidebar("toggleMenu",this))}).on(ace.click_event+".ace.menu",".sidebar-expand",function(t){var u=n(this).attr("data-target"),i=null,f,r;if((u&&(i=n(u)),(i==null||i.length==0)&&(i=n(this).closest(".sidebar")),i.length!=0)&&(f=this,t.preventDefault(),i.ace_sidebar("toggleResponsive",this),r=ace.click_event+".ace.autohide",i.attr("data-auto-hide")==="true"))if(i.hasClass("responsive-max"))n(document).on(r,function(t){if(i.get(0)==t.target||n.contains(i.get(0),t.target)){t.stopPropagation();return}i.ace_sidebar("toggleResponsive",f);n(document).off(r)});else n(document).off(r)});n.fn.ace_sidebar=function(i,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_sidebar"),o=typeof i=="object"&&i;t||e.data("ace_sidebar",t=new r(this,o));typeof i=="string"&&typeof t[i]=="function"&&(f=u instanceof Array?t[i].apply(t,u):t[i](u))});return f===t?e:f};n.fn.ace_sidebar.defaults={duration:300}}(window.jQuery),function(n,t){function u(t,u){var f=this,ut=n(window),c=n(t),e=c.find(".nav-list"),v=c.find(".sidebar-toggle").eq(0),k=c.find(".sidebar-shortcuts").eq(0),s=e.get(0),tt,d,y,w;if(s){tt=ace.helper.getAttrSettings(t,n.fn.ace_sidebar_scroll.defaults);this.settings=n.extend({},n.fn.ace_sidebar_scroll.defaults,u,tt);d=f.settings.scroll_to_active;y=c.ace_sidebar("ref");c.attr("data-sidebar-scroll","true");var h=null,l=null,g=null,p=null,a=null,o=null;this.is_scrolling=!1;w=!1;this.sidebar_fixed=i(t,"fixed");var b,it,nt=function(){var n=e.parent().offset();return f.sidebar_fixed&&(n.top-=ace.helper.scrollTop()),ut.innerHeight()-n.top-(f.settings.include_toggle?0:v.outerHeight())},ft=function(){return s.clientHeight},rt=function(t){var i,u,c,y,tt;if(!w&&f.sidebar_fixed){e.wrap('<div class="nav-wrap-up pos-rel" />');e.after("<div><div><\/div><\/div>");e.wrap('<div class="nav-wrap" />');f.settings.include_toggle||v.css({"z-index":1});f.settings.include_shortcuts||k.css({"z-index":99});h=e.parent().next().ace_scroll({size:nt(),mouseWheelLock:!0,hoverReset:!1,dragEvent:!0,styleClass:f.settings.scroll_style,touchDrag:!1}).closest(".ace-scroll").addClass("nav-scroll");o=h.data("ace_scroll");l=h.find(".scroll-content").eq(0);g=l.find(" > div").eq(0);a=n(o.get_track());p=a.find(".scroll-bar").eq(0);f.settings.include_shortcuts&&k.length!=0&&(e.parent().prepend(k).wrapInner("<div />"),e=e.parent());f.settings.include_toggle&&v.length!=0&&(e.append(v),e.closest(".nav-wrap").addClass("nav-wrap-t"));e.css({position:"relative"});f.settings.scroll_outside==!0&&h.addClass("scrollout");s=e.get(0);s.style.top=0;l.on("scroll.nav",function(){s.style.top=-1*this.scrollTop+"px"});e.on(!n.event.special.mousewheel?"mousewheel.ace_scroll DOMMouseScroll.ace_scroll":"mousewheel.ace_scroll",function(n){return!f.is_scrolling||!o.is_active()?!f.settings.lock_anyway:h.trigger(n)});e.on("mouseenter.ace_scroll",function(){a.addClass("scroll-hover")}).on("mouseleave.ace_scroll",function(){a.removeClass("scroll-hover")});i=l.get(0);e.on("ace_drag.nav",function(t){if(!f.is_scrolling||!o.is_active()){t.retval.cancel=!0;return}if(n(t.target).closest(".can-scroll").length!=0){t.retval.cancel=!0;return}if(t.direction=="up"||t.direction=="down"){o.move_bar(!0);var r=t.dy;r=parseInt(Math.min(b,r));Math.abs(r)>2&&(r=r*2);r!=0&&(i.scrollTop=i.scrollTop+r,s.style.top=-1*i.scrollTop+"px")}});if(f.settings.smooth_scroll)e.on("touchstart.nav MSPointerDown.nav pointerdown.nav",function(){e.css("transition-property","none");p.css("transition-property","none")}).on("touchend.nav touchcancel.nav MSPointerUp.nav MSPointerCancel.nav pointerup.nav pointercancel.nav",function(){e.css("transition-property","top");p.css("transition-property","top")});if(r&&!f.settings.include_toggle&&(u=v.get(0),u))l.on("scroll.safari",function(){ace.helper.redraw(u)});if(w=!0,t==!0&&(f.reset(),d&&f.scroll_to_active(),d=!1),typeof f.settings.smooth_scroll=="number"&&f.settings.smooth_scroll>0){e.css({"transition-property":"top","transition-duration":(f.settings.smooth_scroll/1e3).toFixed(2)+"s"});p.css({"transition-property":"top","transition-duration":(f.settings.smooth_scroll/1500).toFixed(2)+"s"});h.on("drag.start",function(n){n.stopPropagation();e.css("transition-property","none")}).on("drag.end",function(n){n.stopPropagation();e.css("transition-property","top")})}if(ace.vars.android){c=ace.helper.scrollTop();c<2&&(window.scrollTo(c,0),setTimeout(function(){f.reset()},20));y=ace.helper.winHeight();n(window).on("scroll.ace_scroll",function(){f.is_scrolling&&o.is_active()&&(tt=ace.helper.winHeight(),tt!=y&&(y=tt,f.reset()))})}}};this.scroll_to_active=function(){var n,u,t,f,i,r;if(o&&o.is_active())try{for(u=y.vars(),t=c.find(".nav-list"),u.minimized&&!u.collapsible?n=t.find("> .active"):(n=e.find("> .active.hover"),n.length==0&&(n=e.find(".active:not(.open)"))),f=n.outerHeight(),t=t.get(0),i=n.get(0);i!=t;)f+=i.offsetTop,i=i.parentNode;r=f-h.height();r>0&&(s.style.top=-r+"px",l.scrollTop(r))}catch(a){}};this.reset=function(n){if(n===!0&&(this.sidebar_fixed=i(t,"fixed")),!this.sidebar_fixed){this.disable();return}w||rt();var r=y.vars(),u=!r.collapsible&&!r.horizontal&&(b=nt())<(it=s.clientHeight);this.is_scrolling=!0;u&&(g.css({height:it,width:8}),h.prev().css({"max-height":b}),o.update({size:b}),o.enable(),o.reset());u&&o.is_active()?c.addClass("sidebar-scroll"):this.is_scrolling&&this.disable()};this.disable=function(){if(this.is_scrolling=!1,h&&(h.css({height:"","max-height":""}),g.css({height:"",width:""}),h.prev().css({"max-height":""}),o.disable()),parseInt(s.style.top)<0&&f.settings.smooth_scroll&&n.support.transition.end)e.one(n.support.transition.end,function(){c.removeClass("sidebar-scroll");e.off(".trans")});else c.removeClass("sidebar-scroll");s.style.top=0};this.prehide=function(n){if(this.is_scrolling&&!y.get("minimized"))if(ft()+n<nt())this.disable();else if(n<0){var t=l.scrollTop()+n;if(t<0)return;s.style.top=-1*t+"px"}};this._reset=function(n){n===!0&&(this.sidebar_fixed=i(t,"fixed"));ace.vars.webkit?setTimeout(function(){f.reset()},0):this.reset()};this.set_hover=function(){a&&a.addClass("scroll-hover")};this.get=function(n){if(this.hasOwnProperty(n))return this[n]};this.set=function(n,t){this.hasOwnProperty(n)&&(this[n]=t)};this.ref=function(){return this};this.updateStyle=function(n){o!=null&&o.update({styleClass:n})};c.on("hidden.ace.submenu.sidebar_scroll shown.ace.submenu.sidebar_scroll",".submenu",function(n){n.stopPropagation();y.get("minimized")||(f._reset(),n.type=="shown"&&f.set_hover())});rt(!0)}}var r=ace.vars.safari&&navigator.userAgent.match(/version\/[1-5]/i),i="getComputedStyle"in window?function(n,t){return n.offsetHeight,window.getComputedStyle(n).position==t}:function(t,i){return t.offsetHeight,n(t).css("position")==i};n(document).on("settings.ace.sidebar_scroll",function(t,r){n(".sidebar[data-sidebar-scroll=true]").each(function(){var f=n(this),t=f.ace_sidebar_scroll("ref"),e,u;r=="sidebar_collapsed"&&i(this,"fixed")?(f.attr("data-sidebar-hover")=="true"&&f.ace_sidebar_hover("reset"),t._reset()):(r==="sidebar_fixed"||r==="navbar_fixed")&&(e=t.get("is_scrolling"),u=i(this,"fixed"),t.set("sidebar_fixed",u),u&&!e?t._reset():u||t.disable())})});n(window).on("resize.ace.sidebar_scroll",function(){n(".sidebar[data-sidebar-scroll=true]").each(function(){var r=n(this),t,u;r.attr("data-sidebar-hover")=="true"&&r.ace_sidebar_hover("reset");t=n(this).ace_sidebar_scroll("ref");u=i(this,"fixed");t.set("sidebar_fixed",u);t._reset()})});n.fn.ace_sidebar_scroll||(n.fn.ace_sidebar_scroll=function(i,r){var f,e=this.each(function(){var e=n(this),t=e.data("ace_sidebar_scroll"),o=typeof i=="object"&&i;t||e.data("ace_sidebar_scroll",t=new u(this,o));typeof i=="string"&&typeof t[i]=="function"&&(f=t[i](r))});return f===t?e:f},n.fn.ace_sidebar_scroll.defaults={scroll_to_active:!0,include_shortcuts:!0,include_toggle:!1,smooth_scroll:150,scroll_outside:!1,scroll_style:"",lock_anyway:!1})}(window.jQuery),function(n,t){function e(t,e){function ut(t){var e=t,r=n(e),i=null,u=!1;this.show=function(){i!=null&&clearTimeout(i);i=null;r.addClass("hover-show hover-shown");u=!0;for(var n=0;n<f.length;n++)f[n].find(".hover-show").not(".hover-shown").each(function(){v(this).hide()})};this.hide=function(){u=!1;r.removeClass("hover-show hover-shown hover-flip");i!=null&&clearTimeout(i);i=null;var n=r.find("> .submenu").get(0);n&&a(n,"hide")};this.hideDelay=function(n){i!=null&&clearTimeout(i);r.removeClass("hover-shown");i=setTimeout(function(){u=!1;r.removeClass("hover-show hover-flip");i=null;var t=r.find("> .submenu").get(0);t&&a(t,"hide");typeof n=="function"&&n.call(this)},nt.settings.sub_hover_delay)};this.is_visible=function(){return u}}function v(t){var i=n(t).data("subHide");return i||n(t).data("subHide",i=new ut(t)),i}function a(t,i){var r=n(t).data("ace_scroll");return r?typeof i=="string"?(r[i](),!0):r:!1}function g(i){var o=n(this),b=n(i),nt,d,ft,g,at,vt,v,it,e,y,f,rt;i.style.top="";i.style.bottom="";nt=null;h.minimized&&(nt=o.find(".menu-text").get(0))&&(nt.style.marginTop="");var ut=ace.helper.scrollTop(),st=0,ht=ut;k&&(st=t.offsetTop,ht+=st+1);f=o.offset();f.top=parseInt(f.top);d=0;i.style.maxHeight="";ft=i.scrollHeight;g=o.height();nt&&(d=g,f.top+=d);var et=parseInt(f.top+ft),u=0,ct=w.height(),tt=parseInt(f.top-ht-d),yt=ct,lt=h.horizontal,ot=!1;if(lt&&this.parentNode==l&&(u=0,f.top+=o.height(),ot=!0),!ot&&(u=et-(ct+ut))>=0&&(u=u<tt?u:tt,u==0&&(u=20),tt-u>10&&(u+=parseInt(Math.min(25,tt-u))),f.top+(g-d)>et-u&&(u-=f.top+(g-d)-(et-u)),u>0&&(i.style.top=-u+"px",nt&&(nt.style.marginTop=-u+"px"))),u<0&&(u=0),at=u>0&&u>g-20,at?o.addClass("pull_up"):o.removeClass("pull_up"),lt)if(o.parent().parent().hasClass("hover-flip"))o.addClass("hover-flip");else{var pt=b.offset(),wt=b.width(),bt=w.width();pt.left+wt>bt&&o.addClass("hover-flip")}(vt=o.hasClass("hover")&&!h.mobile_view,vt&&b.find("> li > .submenu").length>0)||(v=yt-(f.top-ut)+u,it=u-v,it>0&&it<g&&(v+=parseInt(Math.max(g,g-it))),v-=5,v<90)||(e=!1,r?b.addClass("sub-scroll").css("max-height",v+"px"):(e=a(i),e==!1&&(b.ace_scroll({observeContent:!0,detached:!0,updatePos:!1,reset:!0,mouseWheelLock:!0,styleClass:s.settings.sub_scroll_style}),e=a(i),y=e.get_track(),y&&b.after(y)),e.update({size:v})),c=v,!r&&e&&(v>14&&ft-v>4?(e.enable(),e.reset()):e.disable(),y=e.get_track(),y&&(y.style.top=-(u-d-1)+"px",f=b.position(),rt=f.left,rt+=p?2:b.outerWidth()-e.track_size(),y.style.left=parseInt(rt)+"px",ot&&(y.style.left=parseInt(rt-2)+"px",y.style.top=parseInt(f.top)+(nt?d-2:0)+"px"))),ace.vars.safari&&ace.helper.redraw(i))}var s=this,nt=this,tt=ace.helper.getAttrSettings(t,n.fn.ace_sidebar_hover.defaults),o,l,c;this.settings=n.extend({},n.fn.ace_sidebar_hover.defaults,e,tt);o=n(t);l=o.find(".nav-list").get(0);o.attr("data-sidebar-hover","true");f.push(o);var h={},y=ace.vars.old_ie,p=!1;i&&(s.settings.sub_hover_delay=parseInt(Math.max(s.settings.sub_hover_delay,2500)));var w=n(window),b=n(".navbar").eq(0),k=b.css("position")=="fixed";if(this.update_vars=function(){k=b.css("position")=="fixed"},s.dirty=!1,this.reset=function(){s.dirty!=!1&&(s.dirty=!1,o.find(".submenu").each(function(){var t=n(this),i=t.parent();t.css({top:"",bottom:"","max-height":""});t.hasClass("ace-scroll")?t.ace_scroll("disable"):t.removeClass("sub-scroll");u(this,"absolute")?t.addClass("can-scroll"):t.removeClass("can-scroll");i.removeClass("pull_up").find(".menu-text:first").css("margin-top","")}),o.find(".hover-show").removeClass("hover-show hover-shown hover-flip"))},this.updateStyle=function(n){sub_scroll_style=n;o.find(".submenu.ace-scroll").ace_scroll("update",{styleClass:n})},this.changeDir=function(n){p=n==="right"},c=-1,!r)o.on("hide.ace.submenu.sidebar_hover",".submenu",function(t){if(!(c<1)){t.stopPropagation();var i=n(this).closest(".ace-scroll.can-scroll");i.length!=0&&u(i[0],"absolute")&&i[0].scrollHeight-this.scrollHeight<c&&i.ace_scroll("disable")}});if(!r)o.on("shown.ace.submenu.sidebar_hover hidden.ace.submenu.sidebar_hover",".submenu",function(){var t,i;c<1||(t=n(this).closest(".ace-scroll.can-scroll"),t.length!=0&&u(t[0],"absolute"))&&(i=t[0].scrollHeight,c>14&&i-c>4?t.ace_scroll("enable").ace_scroll("reset"):t.ace_scroll("disable"))});var d=-1,it=i?"touchstart.sub_hover":"mouseenter.sub_hover",rt=i?"touchend.sub_hover touchcancel.sub_hover":"mouseleave.sub_hover";o.on(it,".nav-list li, .sidebar-shortcuts",function(){var r,e,c,a,b;if(h=o.ace_sidebar("vars"),!h.collapsible){var f=n(this),p=!1,w=f.hasClass("hover"),t=f.find("> .submenu").get(0);if(!(t||this.parentNode==l||w||(p=f.hasClass("sidebar-shortcuts")))){t&&n(t).removeClass("can-scroll");return}if(r=t,e=!1,r||this.parentNode!=l||(r=f.find("> a > .menu-text").get(0)),!r&&p&&(r=f.find(".sidebar-shortcuts-large").get(0)),(!r||!(e=u(r,"absolute")))&&!w){t&&n(t).removeClass("can-scroll");return}c=v(this);t&&(e?(s.dirty=!0,a=ace.helper.scrollTop(),c.is_visible()&&(i||a==d)&&!y||(n(t).addClass("can-scroll"),y||i?(b=this,setTimeout(function(){g.call(b,t)},0)):g.call(this,t)),d=a):n(t).removeClass("can-scroll"));c.show()}}).on(rt,".nav-list li, .sidebar-shortcuts",function(){(h=o.ace_sidebar("vars"),h.collapsible)||n(this).hasClass("hover-show")&&v(this).hideDelay()})}var f;if(!ace.vars.very_old_ie){var i=ace.vars.touch,r=ace.vars.old_ie||i,u="getComputedStyle"in window?function(n,t){return n.offsetHeight,window.getComputedStyle(n).position==t}:function(t,i){return t.offsetHeight,n(t).css("position")==i};n(window).on("resize.sidebar.ace_hover",function(){n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("update_vars").ace_sidebar_hover("reset")});n(document).on("settings.ace.ace_hover",function(t,i){i=="sidebar_collapsed"?n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("reset"):i=="navbar_fixed"&&n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("update_vars")});f=[];n.fn.ace_sidebar_hover=function(i,r){var u,f=this.each(function(){var f=n(this),t=f.data("ace_sidebar_hover"),o=typeof i=="object"&&i;t||f.data("ace_sidebar_hover",t=new e(this,o));typeof i=="string"&&typeof t[i]=="function"&&(u=t[i](r))});return u===t?f:u};n.fn.ace_sidebar_hover.defaults={sub_sub_hover_delay:750,sub_scroll_style:"no-track scroll-thin"}}}(window.jQuery),function(n,t){function r(t,i){var r=t.find(".widget-main").eq(0),o,u,f,e;if(n(window).off("resize.widget.scroll"),o=ace.vars.old_ie||ace.vars.touch,i){u=r.data("ace_scroll");u&&r.data("save_scroll",{size:u.size,lock:u.lock,lock_anyway:u.lock_anyway});f=t.height()-t.find(".widget-header").height()-10;f=parseInt(f);r.css("min-height",f);o?(u&&r.ace_scroll("disable"),r.css("max-height",f).addClass("overflow-scroll")):(u?r.ace_scroll("update",{size:f,mouseWheelLock:!0,lockAnyway:!0}):r.ace_scroll({size:f,mouseWheelLock:!0,lockAnyway:!0}),r.ace_scroll("enable").ace_scroll("reset"));n(window).on("resize.widget.scroll",function(){var n=t.height()-t.find(".widget-header").height()-10;n=parseInt(n);r.css("min-height",n);o?r.css("max-height",n).addClass("overflow-scroll"):r.ace_scroll("update",{size:n}).ace_scroll("reset")})}else r.css("min-height",""),e=r.data("save_scroll"),e&&r.ace_scroll("update",{size:e.size,mouseWheelLock:e.lock,lockAnyway:e.lock_anyway}).ace_scroll("enable").ace_scroll("reset"),o?r.css("max-height","").removeClass("overflow-scroll"):e||r.ace_scroll("disable")}var i=function(t){this.$box=n(t);var i=this;this.reload=function(){var n=this.$box,t=!1;n.css("position")=="static"&&(t=!0,n.addClass("position-relative"));n.append('<div class="widget-box-overlay"><i class="'+ace.vars.icon+'loading-icon fa fa-spinner fa-spin fa-2x white"><\/i><\/div>');n.one("reloaded.ace.widget",function(){n.find(".widget-box-overlay").remove();t&&n.removeClass("position-relative")})};this.close=function(){var n=this.$box;n.fadeOut(300,function(){n.trigger("closed.ace.widget");n.remove()})};this.toggle=function(n,t){var r=this.$box,e=r.find(".widget-body").eq(0),i=null,s=typeof n!="undefined"?n:r.hasClass("collapsed")?"show":"hide",h=s=="show"?"shown":"hidden",o,u,f,c,l;typeof t=="undefined"&&(t=r.find("> .widget-header a[data-action=collapse]").eq(0),t.length==0&&(t=null));t&&(i=t.find(ace.vars[".icon"]).eq(0),u=null,f=null,(u=i.attr("data-icon-show"))?f=i.attr("data-icon-hide"):(o=i.attr("class").match(/fa\-(.*)\-(up|down)/))&&(u="fa-"+o[1]+"-down",f="fa-"+o[1]+"-up"));c=250;l=200;s=="show"?(i&&i.removeClass(u).addClass(f),e.hide(),r.removeClass("collapsed"),e.slideDown(c,function(){r.trigger(h+".ace.widget")})):(i&&i.removeClass(f).addClass(u),e.slideUp(l,function(){r.addClass("collapsed");r.trigger(h+".ace.widget")}))};this.hide=function(){this.toggle("hide")};this.show=function(){this.toggle("show")};this.fullscreen=function(){var n=this.$box.find("> .widget-header a[data-action=fullscreen]").find(ace.vars[".icon"]).eq(0),t=null,i=null;(t=n.attr("data-icon1"))?i=n.attr("data-icon2"):(t="fa-expand",i="fa-compress");this.$box.hasClass("fullscreen")?(n.addClass(t).removeClass(i),this.$box.removeClass("fullscreen"),r(this.$box,!1)):(n.removeClass(t).addClass(i),this.$box.addClass("fullscreen"),r(this.$box,!0));this.$box.trigger("fullscreened.ace.widget")}};n.fn.widget_box=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("widget_box"),o=typeof r=="object"&&r;t||e.data("widget_box",t=new i(this,o));typeof r=="string"&&(f=t[r](u))});return f===t?e:f};n(document).on("click.ace.widget",".widget-header a[data-action]",function(t){var o,r,f,e,s,u;if(t.preventDefault(),o=n(this),r=o.closest(".widget-box"),r.length!=0&&!r.hasClass("ui-sortable-helper"))if(f=r.data("widget_box"),f||r.data("widget_box",f=new i(r.get(0))),e=o.data("action"),e=="collapse"){if(s=r.hasClass("collapsed")?"show":"hide",r.trigger(u=n.Event(s+".ace.widget")),u.isDefaultPrevented())return;f.toggle(s,o)}else if(e=="close"){if(r.trigger(u=n.Event("close.ace.widget")),u.isDefaultPrevented())return;f.close()}else if(e=="reload"){if(o.blur(),r.trigger(u=n.Event("reload.ace.widget")),u.isDefaultPrevented())return;f.reload()}else if(e=="fullscreen"){if(r.trigger(u=n.Event("fullscreen.ace.widget")),u.isDefaultPrevented())return;f.fullscreen()}else e=="settings"&&r.trigger("setting.ace.widget")})}(window.jQuery),function(n){n("#ace-settings-btn").on(ace.click_event,function(t){t.preventDefault();n(this).toggleClass("open");n("#ace-settings-box").toggleClass("open")});n("#ace-settings-navbar").on("click",function(){ace.settings.navbar_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("navbar","fixed")});n("#ace-settings-sidebar").on("click",function(){ace.settings.sidebar_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("sidebar","fixed")});n("#ace-settings-breadcrumbs").on("click",function(){ace.settings.breadcrumbs_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("breadcrumbs","fixed")});n("#ace-settings-add-container").on("click",function(){ace.settings.main_container_fixed(null,this.checked)}).each(function(){this.checked=ace.settings.is("main-container","fixed")});n("#ace-settings-compact").on("click",function(){if(this.checked){n("#sidebar").addClass("compact");var t=n("#ace-settings-hover");t.length>0&&t.removeAttr("checked").trigger("click")}else n("#sidebar").removeClass("compact"),n("#sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("reset");ace.vars.old_ie&&ace.helper.redraw(n("#sidebar")[0],!0)});n("#ace-settings-highlight").on("click",function(){this.checked?n("#sidebar .nav-list > li").addClass("highlight"):n("#sidebar .nav-list > li").removeClass("highlight");ace.vars.old_ie&&ace.helper.redraw(n("#sidebar")[0])});n("#ace-settings-hover").on("click",function(){if(!n("#sidebar").hasClass("h-sidebar")){if(this.checked)n("#sidebar li").addClass("hover").filter(".open").removeClass("open").find("> .submenu").css("display","none");else{n("#sidebar li.hover").removeClass("hover");var t=n("#ace-settings-compact");t.length>0&&t.get(0).checked&&t.trigger("click")}n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("reset");n(".sidebar[data-sidebar-scroll=true]").ace_sidebar_scroll("reset");ace.vars.old_ie&&ace.helper.redraw(n("#sidebar")[0])}})}(jQuery),function(n){n("#ace-settings-rtl").removeAttr("checked").on("click",function(){t()});var t=function(){function u(t){function r(n,t){i.find("."+n).removeClass(n).addClass("tmp-rtl-"+n).end().find("."+t).removeClass(t).addClass(n).end().find(".tmp-rtl-"+n).removeClass("tmp-rtl-"+n).addClass(t)}var f=n(document.body),i,e,u,o;t||f.toggleClass("rtl");t=t||document.body;i=n(t);i.find(".dropdown-menu:not(.datepicker-dropdown,.colorpicker)").toggleClass("dropdown-menu-right").end().find(".pull-right:not(.dropdown-menu,blockquote,.profile-skills .pull-right)").removeClass("pull-right").addClass("tmp-rtl-pull-right").end().find(".pull-left:not(.dropdown-submenu,.profile-skills .pull-left)").removeClass("pull-left").addClass("pull-right").end().find(".tmp-rtl-pull-right").removeClass("tmp-rtl-pull-right").addClass("pull-left").end().find(".chosen-select").toggleClass("chosen-rtl").next().toggleClass("chosen-rtl");r("align-left","align-right");r("no-padding-left","no-padding-right");r("arrowed","arrowed-right");r("arrowed-in","arrowed-in-right");r("tabs-left","tabs-right");r("messagebar-item-left","messagebar-item-right");n(".modal.aside-vc").ace_aside("flip").ace_aside("insideContainer");i.find(".fa").each(function(){var r,t,i;if(!this.className.match(/ui-icon/)&&!(n(this).closest(".fc-button").length>0))for(r=this.attributes.length,t=0;t<r;t++)i=this.attributes[t].value,i.match(/fa\-(?:[\w\-]+)\-left/)?this.attributes[t].value=i.replace(/fa\-([\w\-]+)\-(left)/i,"fa-$1-right"):i.match(/fa\-(?:[\w\-]+)\-right/)&&(this.attributes[t].value=i.replace(/fa\-([\w\-]+)\-(right)/i,"fa-$1-left"))});e=f.hasClass("rtl");e?(i.find(".scroll-hz").addClass("make-ltr").find(".scroll-content").wrapInner('<div class="make-rtl" />'),n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("changeDir","right")):(i.find(".scroll-hz").removeClass("make-ltr").find(".make-rtl").children().unwrap(),n(".sidebar[data-sidebar-hover=true]").ace_sidebar_hover("changeDir","left"));n.fn.ace_scroll&&i.find(".scroll-hz").ace_scroll("reset");try{u=n("#piechart-placeholder");u.length>0&&(o=f.hasClass("rtl")?"nw":"ne",u.data("draw").call(u.get(0),u,u.data("chart"),o))}catch(s){}ace.helper.redraw(t,!0)}var t,i,r;n("#ace-rtl-stylesheet").length==0?(t=n("head").find("link.ace-main-stylesheet"),t.length==0&&(t=n("head").find('link[href*="/ace.min.css"],link[href*="/ace-part2.min.css"]'),t.length==0&&(t=n("head").find('link[href*="/ace.css"],link[href*="/ace-part2.css"]'))),i=n("head").find("link#ace-skins-stylesheet"),r=t.first().attr("href").replace(/(\.min)?\.css$/i,"-rtl$1.css"),n.ajax({url:r}).done(function(){var n=jQuery("<link />",{type:"text/css",rel:"stylesheet",id:"ace-rtl-stylesheet"});i.length>0?n.insertAfter(i):t.length>0?n.insertAfter(t.last()):n.appendTo("head");n.attr("href",r);u();window.Pace&&Pace.running&&Pace.stop()})):u();n(".page-content-area[data-ajax-content=true]").on("ajaxscriptsloaded.rtl",function(){n("body").hasClass("rtl")&&u(this)})}}(jQuery),"undefined"==typeof jQuery)throw new Error("Ace's JavaScript requires jQuery");!function(n,t){var i=function(i,r){function ci(n){n.preventDefault();n.stopPropagation();var r=u.offset(),t=r[b],i=f?n.pageY:n.pageX;i>t+e?(e=i-t-et+dt,e>d&&(e=d)):(e=i-t-dt,0>e&&(e=0));c.update_scroll()}function li(t){t.preventDefault();t.stopPropagation();w=nt=f?t.pageY:t.pageX;st=!0;n("html").off("mousemove.ace_scroll").on("mousemove.ace_scroll",ai);n(gt).off("mouseup.ace_scroll").on("mouseup.ace_scroll",vi);u.addClass("active");ni&&c.$element.trigger("drag.start")}function ai(n){n.preventDefault();n.stopPropagation();w=f?n.pageY:n.pageX;w-nt+e>d?w=nt+d-e:0>w-nt+e&&(w=nt-e);e+=w-nt;nt=w;0>e?e=0:e>d&&(e=d);c.update_scroll()}function vi(t){t.preventDefault();t.stopPropagation();st=!1;n("html").off(".ace_scroll");n(gt).off(".ace_scroll");u.removeClass("active");ni&&c.$element.trigger("drag.end");v&&ti&&!pt&&wt()}function ht(n){var i=+new Date,t;ii&&i-hi>1e3&&(t=h[tt],ri!=t&&(ri=t,rt=!0,c.reset(!0)),hi=i);v&&ti&&(null!=a&&(clearTimeout(a),a=null),u.addClass("not-idle"),pt||1!=n||wt())}function wt(){null!=a&&(clearTimeout(a),a=null);a=setTimeout(function(){a=null;u.removeClass("not-idle")},wi)}function bt(){u.css("visibility","hidden").addClass("scroll-hover");g=f?parseInt(u.outerWidth())||0:parseInt(u.outerHeight())||0;u.css("visibility","").removeClass("scroll-hover")}function ui(){if(yt!==!1){var i=s.offset(),n=i.left,t=i.top;f?at||(n+=s.outerWidth()-g):at||(t+=s.outerHeight()-g);yt===!0?u.css({top:parseInt(t),left:parseInt(n)}):"left"===yt?u.css("left",parseInt(n)):"top"===yt&&u.css("top",parseInt(t))}}var c=this,yi=ace.helper.getAttrSettings(i,n.fn.ace_scroll.defaults),o=n.extend({},n.fn.ace_scroll.defaults,r,yi);this.size=0;this.lock=!1;this.lock_anyway=!1;this.$element=n(i);this.element=i;var b,ut,ft,fi,l,tt,f=!0,p=!1,v=!1,ct=!1,s=null,h=null,u=null,kt=null,ei=null,oi=null,k=null,et=0,e=0,d=0,dt=0,lt=!0,si=!1,y="",at=!1,g=0,ot=1,vt=!1,st=!1,gt="onmouseup"in window?window:"html",ni=o.dragEvent||!1,pi=r.scrollEvent||!1,it=o.detached||!1,yt=o.updatePos||!1,ti=o.hideOnIdle||!1,wi=o.hideDelay||1500,pt=!1,ii=o.observeContent||!1,ri=0,rt=!0;this.create=function(t){var a,r,i,w;if(!ct){if(t&&(o=n.extend({},n.fn.ace_scroll.defaults,t)),this.size=parseInt(this.$element.attr("data-size"))||o.size||200,f=!o.horizontal,b=f?"top":"left",ut=f?"height":"width",ft=f?"maxHeight":"maxWidth",fi=f?"clientHeight":"clientWidth",l=f?"scrollTop":"scrollLeft",tt=f?"scrollHeight":"scrollWidth",this.$element.addClass("ace-scroll"),"static"==this.$element.css("position")?(vt=this.element.style.position,this.element.style.position="relative"):vt=!1,a=null,it?a=n('<div class="scroll-track scroll-detached"><div class="scroll-bar"><\/div><\/div>').appendTo("body"):(this.$element.wrapInner('<div class="scroll-content" />'),this.$element.prepend('<div class="scroll-track"><div class="scroll-bar"><\/div><\/div>')),s=this.$element,it||(s=this.$element.find(".scroll-content").eq(0)),f||s.wrapInner("<div />"),h=s.get(0),it?(u=a,ui()):u=this.$element.find(".scroll-track").eq(0),kt=u.find(".scroll-bar").eq(0),ei=u.get(0),oi=kt.get(0),k=oi.style,f||u.addClass("scroll-hz"),o.styleClass&&(y=o.styleClass,u.addClass(y),at=!!y.match(/scroll\-left|scroll\-top/)),0==g&&(u.show(),bt()),u.hide(),u.on("mousedown",ci),kt.on("mousedown",li),s.on("scroll",function(){lt&&(e=parseInt(Math.round(this[l]*ot)),k[b]=e+"px");lt=!1;pi&&this.$element.trigger("scroll",[h])}),o.mouseWheel&&(this.lock=o.mouseWheelLock,this.lock_anyway=o.lockAnyway,this.$element.on(n.event.special.mousewheel?"mousewheel.ace_scroll":"mousewheel.ace_scroll DOMMouseScroll.ace_scroll",function(t){var i;if(!p){if(ht(!0),!v)return!c.lock_anyway;st&&(st=!1,n("html").off(".ace_scroll"),n(gt).off(".ace_scroll"),ni&&c.$element.trigger("drag.end"));t.deltaY=t.deltaY||0;var u=t.deltaY>0||t.originalEvent.detail<0||t.originalEvent.wheelDelta>0?1:-1,f=!1,e=h[fi],r=h[l];return c.lock||(f=-1==u?h[tt]<=r+e:0==r),c.move_bar(!0),i=parseInt(e/8),80>i&&(i=80),i>c.size&&(i=c.size),i+=1,h[l]=r-u*i,f&&!c.lock_anyway}})),r=ace.vars.touch&&"ace_drag"in n.event.special&&o.touchDrag,r){i="";w=r?"ace_drag":"swipe";this.$element.on(w+".ace_scroll",function(n){if(p)return void(n.retval.cancel=!0);if(ht(!0),!v)return void(n.retval.cancel=this.lock_anyway);if(i=n.direction,f&&("up"==i||"down"==i)||!f&&("left"==i||"right"==i)){var t=f?n.dy:n.dx;0!=t&&(Math.abs(t)>20&&r&&(t=2*t),c.move_bar(!0),h[l]=h[l]+t)}})}ti&&u.addClass("idle-hide");ii&&u.on("mouseenter.ace_scroll",function(){pt=!0;ht(!1)}).on("mouseleave.ace_scroll",function(){pt=!1;0==st&&wt()});this.$element.on("mouseenter.ace_scroll touchstart.ace_scroll",function(){rt=!0;ii?ht(!0):o.hoverReset&&c.reset(!0);u.addClass("scroll-hover")}).on("mouseleave.ace_scroll touchend.ace_scroll",function(){u.removeClass("scroll-hover")});f||s.children(0).css(ut,this.size);s.css(ft,this.size);p=!1;ct=!0}};this.is_active=function(){return v};this.is_enabled=function(){return!p};this.move_bar=function(n){lt=n};this.get_track=function(){return ei};this.reset=function(n){var i,c,r,t;if(!p&&(ct||this.create(),i=this.size,!n||rt)){if((rt=!1,it)&&(c=parseInt(Math.round((parseInt(s.css("border-top-width"))+parseInt(s.css("border-bottom-width")))/2.5)),i-=c),r=f?h[tt]:i,f&&0==r||!f&&0==this.element.scrollWidth)return void u.removeClass("scroll-active");t=f?i:h.clientWidth;f||s.children(0).css(ut,i);s.css(ft,this.size);r>t?(v=!0,u.css(ut,t).show(),ot=parseFloat((t/r).toFixed(5)),et=parseInt(Math.round(t*ot)),dt=parseInt(Math.round(et/2)),d=t-et,e=parseInt(Math.round(h[l]*ot)),k[ut]=et+"px",k[b]=e+"px",u.addClass("scroll-active"),0==g&&bt(),si||(o.reset&&(h[l]=0,k[b]=0),si=!0),it&&ui()):(v=!1,u.hide(),u.removeClass("scroll-active"),s.css(ft,""))}};this.disable=function(){h[l]=0;k[b]=0;p=!0;v=!1;u.hide();this.$element.addClass("scroll-disabled");u.removeClass("scroll-active");s.css(ft,"")};this.enable=function(){p=!1;this.$element.removeClass("scroll-disabled")};this.destroy=function(){v=!1;p=!1;ct=!1;this.$element.removeClass("ace-scroll scroll-disabled scroll-active");this.$element.off(".ace_scroll");it||(f||s.find("> div").children().unwrap(),s.children().unwrap(),s.remove());u.remove();vt!==!1&&(this.element.style.position=vt);null!=a&&(clearTimeout(a),a=null)};this.modify=function(t){t&&(o=n.extend({},o,t));this.destroy();this.create();rt=!0;this.reset(!0)};this.update=function(i){i&&(o=n.extend({},o,i));this.size=i.size||this.size;this.lock=i.mouseWheelLock||this.lock;this.lock_anyway=i.lockAnyway||this.lock_anyway;i.styleClass!=t&&(y&&u.removeClass(y),y=i.styleClass,y&&u.addClass(y),at=!!y.match(/scroll\-left|scroll\-top/))};this.start=function(){h[l]=0};this.end=function(){h[l]=h[tt]};this.hide=function(){u.hide()};this.show=function(){u.show()};this.update_scroll=function(){lt=!1;k[b]=e+"px";h[l]=parseInt(Math.round(e/ot))};var nt=-1,w=-1,a=null,hi=0;return this.track_size=function(){return 0==g&&bt(),g},this.create(),rt=!0,this.reset(!0),ri=h[tt],this};n.fn.ace_scroll=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_scroll"),o="object"==typeof r&&r;t||e.data("ace_scroll",t=new i(this,o));"string"==typeof r&&(f=t[r](u))});return f===t?e:f};n.fn.ace_scroll.defaults={size:200,horizontal:!1,mouseWheel:!0,mouseWheelLock:!1,lockAnyway:!1,styleClass:!1,observeContent:!1,hideOnIdle:!1,hideDelay:1500,hoverReset:!0,reset:!1,dragEvent:!1,touchDrag:!0,touchSwipe:!1,scrollEvent:!1,detached:!1,updatePos:!0}}(window.jQuery),function(n,t){var i=function(t,i){var c=ace.helper.getAttrSettings(t,n.fn.ace_colorpicker.defaults),o=n.extend({},n.fn.ace_colorpicker.defaults,i,c),r=n(t),s="",h="",u=null,f=[],e;r.addClass("hide").find("option").each(function(){var t="colorpick-btn",n=this.value.replace(/[^\w\s,#\(\)\.]/g,"");this.value!=n&&(this.value=n);this.selected&&(t+=" selected",h=n);f.push(n);s+='<li><a class="'+t+'" href="#" style="background-color:'+n+';" data-color="'+n+'"><\/a><\/li>'}).end().on("change.color",function(){r.next().find(".btn-colorpicker").css("background-color",this.value)}).after('<div class="dropdown dropdown-colorpicker">\t\t<a data-toggle="dropdown" class="dropdown-toggle" '+(o.auto_pos?'data-position="auto"':"")+' href="#"><span class="btn-colorpicker" style="background-color:'+h+'"><\/span><\/a><ul class="dropdown-menu'+(o.caret?" dropdown-caret":"")+(o.pull_right?" dropdown-menu-right":"")+'">'+s+"<\/ul><\/div>");e=r.next().find(".dropdown-menu");e.on(ace.click_event,function(t){var i=n(t.target),f;return i.is(".colorpick-btn")?(u&&u.removeClass("selected"),u=i,u.addClass("selected"),f=u.data("color"),r.val(f).trigger("change"),t.preventDefault(),!0):!1});u=r.next().find("a.selected");this.pick=function(i,u){if("number"==typeof i){if(i>=f.length)return;t.selectedIndex=i;e.find("a:eq("+i+")").trigger(ace.click_event)}else if("string"==typeof i){var o=i.replace(/[^\w\s,#\(\)\.]/g,"");if(i=f.indexOf(o),-1==i&&u===!0&&(f.push(o),n("<option />").appendTo(r).val(o),n('<li><a class="colorpick-btn" href="#"><\/a><\/li>').appendTo(e).find("a").css("background-color",o).data("color",o),i=f.length-1),-1==i)return;e.find("a:eq("+i+")").trigger(ace.click_event)}};this.destroy=function(){r.removeClass("hide").off("change.color").next().remove();f=[]}};n.fn.ace_colorpicker=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_colorpicker"),o="object"==typeof r&&r;t||e.data("ace_colorpicker",t=new i(this,o));"string"==typeof r&&(f=t[r](u))});return f===t?e:f};n.fn.ace_colorpicker.defaults={pull_right:!1,caret:!0,auto_pos:!0}}(window.jQuery),function(n,t){var s="multiple"in document.createElement("INPUT"),u="FileList"in window,h="FileReader"in window,r="File"in window,i=function(t,i){var r=this,e=ace.helper.getAttrSettings(t,n.fn.ace_file_input.defaults),u,f;this.settings=n.extend({},n.fn.ace_file_input.defaults,i,e);this.$element=n(t);this.element=t;this.disabled=!1;this.can_reset=!0;this.$element.off("change.ace_inner_call").on("change.ace_inner_call",function(n,t){if(!r.disabled&&t!==!0)return l.call(r)});u=this.$element.closest("label").css({display:"block"});f=0==u.length?"label":"span";this.$element.wrap("<"+f+' class="ace-file-input" />');this.apply_settings();this.reset_input_field()};i.error={FILE_LOAD_FAILED:1,IMAGE_LOAD_FAILED:2,THUMBNAIL_FAILED:3};i.prototype.apply_settings=function(){var t=this,i,r;if(this.multi=this.$element.attr("multiple")&&s,this.well_style="well"==this.settings.style,this.well_style?this.$element.parent().addClass("ace-file-multiple"):this.$element.parent().removeClass("ace-file-multiple"),this.$element.parent().find(":not(input[type=file])").remove(),this.$element.after('<span class="ace-file-container" data-title="'+this.settings.btn_choose+'"><span class="ace-file-name" data-title="'+this.settings.no_file+'">'+(this.settings.no_icon?'<i class="'+ace.vars.icon+this.settings.no_icon+'"><\/i>':"")+"<\/span><\/span>"),this.$label=this.$element.next(),this.$container=this.$element.closest(".ace-file-input"),i=!!this.settings.icon_remove,i){r=n('<a class="remove" href="#"><i class="'+ace.vars.icon+this.settings.icon_remove+'"><\/i><\/a>').appendTo(this.$element.parent());r.on(ace.click_event,function(n){if(n.preventDefault(),!t.can_reset)return!1;var i=!0;return(t.settings.before_remove&&(i=t.settings.before_remove.call(t.element)),!i)?!1:(t.reset_input(),!1)})}this.settings.droppable&&u&&c.call(this)};i.prototype.show_file_list=function(t,i){var u="undefined"==typeof t?this.$element.data("ace_input_files"):t,f,e,o,s,y,v,c,p,l;if(u&&0!=u.length){for(this.well_style&&(this.$label.find(".ace-file-name").remove(),this.settings.btn_change||this.$label.addClass("hide-placeholder")),this.$label.attr("data-title",this.settings.btn_change).addClass("selected"),f=0;f<u.length;f++){if(e="",o=!1,"string"==typeof u[f])e=u[f];else if(r&&u[f]instanceof File)e=n.trim(u[f].name);else{if(!(u[f]instanceof Object&&u[f].hasOwnProperty("name")))continue;e=u[f].name;u[f].hasOwnProperty("type")&&(o=u[f].type);u[f].hasOwnProperty("path")||(u[f].path=u[f].name)}s=e.lastIndexOf("\\")+1;0==s&&(s=e.lastIndexOf("/")+1);e=e.substr(s);0==o&&(o=/\.(jpe?g|png|gif|svg|bmp|tiff?)$/i.test(e)?"image":/\.(mpe?g|flv|mov|avi|swf|mp4|mkv|webm|wmv|3gp)$/i.test(e)?"video":/\.(mp3|ogg|wav|wma|amr|aac)$/i.test(e)?"audio":"file");y={file:"fa fa-file",image:"fa fa-picture-o file-image",video:"fa fa-film file-video",audio:"fa fa-music file-audio"};v=y[o];this.well_style?(this.$label.append('<span class="ace-file-name" data-title="'+e+'"><i class="'+ace.vars.icon+v+'"><\/i><\/span>'),c=i===!0&&r&&u[f]instanceof File?n.trim(u[f].type):"",p=h&&this.settings.thumbnail&&(c.length>0&&c.match("image")||0==c.length&&"image"==o),p&&(l=this,n.when(a.call(this,u[f])).fail(function(n){l.settings.preview_error&&l.settings.preview_error.call(l,e,n.code)}))):this.$label.find(".ace-file-name").attr({"data-title":e}).find(ace.vars[".icon"]).attr("class",ace.vars.icon+v)}return!0}};i.prototype.reset_input=function(){this.reset_input_ui();this.reset_input_field()};i.prototype.reset_input_ui=function(){this.$label.attr({"data-title":this.settings.btn_choose,"class":"ace-file-container"}).find(".ace-file-name:first").attr({"data-title":this.settings.no_file,"class":"ace-file-name"}).find(ace.vars[".icon"]).attr("class",ace.vars.icon+this.settings.no_icon).prev("img").remove();this.settings.no_icon||this.$label.find(ace.vars[".icon"]).remove();this.$label.find(".ace-file-name").not(":first").remove();this.reset_input_data()};i.prototype.reset_input_field=function(){this.$element.wrap("<form>").parent().get(0).reset();this.$element.unwrap()};i.prototype.reset_input_data=function(){this.$element.data("ace_input_files")&&(this.$element.removeData("ace_input_files"),this.$element.removeData("ace_input_method"))};i.prototype.enable_reset=function(n){this.can_reset=n};i.prototype.disable=function(){this.disabled=!0;this.$element.attr("disabled","disabled").addClass("disabled")};i.prototype.enable=function(){this.disabled=!1;this.$element.removeAttr("disabled").removeClass("disabled")};i.prototype.files=function(){return n(this).data("ace_input_files")||null};i.prototype.method=function(){return n(this).data("ace_input_method")||""};i.prototype.update_settings=function(t){this.settings=n.extend({},this.settings,t);this.apply_settings()};i.prototype.loading=function(t){if(t===!1)this.$container.find(".ace-file-overlay").remove(),this.element.removeAttribute("readonly");else{var r="string"==typeof t?t:'<i class="overlay-content fa fa-spin fa-spinner orange2 fa-2x"><\/i>',i=this.$container.find(".ace-file-overlay");0==i.length&&(i=n('<div class="ace-file-overlay"><\/div>').appendTo(this.$container),i.on("click tap",function(n){return n.stopImmediatePropagation(),n.preventDefault(),!1}),this.element.setAttribute("readonly","true"));i.empty().append(r)}};var c=function(){var n=this,t=this.$element.parent();t.off("dragenter").on("dragenter",function(n){n.preventDefault();n.stopPropagation()}).off("dragover").on("dragover",function(n){n.preventDefault();n.stopPropagation()}).off("drop").on("drop",function(t){var u,i,r;if(t.preventDefault(),t.stopPropagation(),!n.disabled)return u=t.originalEvent.dataTransfer,i=u.files,!n.multi&&i.length>1&&(r=[],r.push(i[0]),i=r),i=f.call(n,i,!0),i===!1?!1:(n.$element.data("ace_input_method","drop"),n.$element.data("ace_input_files",i),n.show_file_list(i,!0),n.$element.triggerHandler("change",[!0]),!0)})},l=function(){var n=this.element.files||[this.element.value];return n=f.call(this,n,!1),n===!1?!1:(this.$element.data("ace_input_method","select"),this.$element.data("ace_input_files",n),this.show_file_list(n,!0),!0)},a=function(t){var e=this,u=e.$label.find(".ace-file-name:last"),f=new n.Deferred,s=function(t){u.prepend("<img class='middle' style='display:none;' />");var i=u.find("img:last").get(0);n(i).one("load",function(){h.call(null,i)}).one("error",function(){c.call(null,i)});i.src=t},h=function(t){var o=50,r,s,h;if("large"==e.settings.thumbnail?o=150:"fit"==e.settings.thumbnail&&(o=u.width()),u.addClass(o>50?"large":""),r=v(t,o),null==r)return n(this).remove(),void f.reject({code:i.error.THUMBNAIL_FAILED});s=r.w;h=r.h;"small"==e.settings.thumbnail&&(s=h=o);n(t).css({"background-image":"url("+r.src+")",width:s,height:h}).data("thumb",r.src).attr({src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="}).show();f.resolve()},c=function(){u.find("img").remove();f.reject({code:i.error.IMAGE_LOAD_FAILED})},o;return r&&t instanceof File?(o=new FileReader,o.onload=function(n){s(n.target.result)},o.onerror=function(){f.reject({code:i.error.FILE_LOAD_FAILED})},o.readAsDataURL(t)):t instanceof Object&&t.hasOwnProperty("path")&&s(t.path),f.promise()},v=function(t,i){var r=t.width,u=t.height,f,e,o;r=r>0?r:n(t).width();u=u>0?u:n(t).height();(r>i||u>i)&&(r>u?(u=parseInt(i/r*u),r=i):(r=parseInt(i/u*r),u=i));try{e=document.createElement("canvas");e.width=r;e.height=u;o=e.getContext("2d");o.drawImage(t,0,0,t.width,t.height,0,0,r,u);f=e.toDataURL()}catch(s){f=null}return f?(/^data\:image\/(png|jpe?g|gif);base64,[0-9A-Za-z\+\/\=]+$/.test(f)||(f=null),f?{src:f,w:r,h:u}:null):null},f=function(n,t){var i=y.call(this,n,t);return-1===i?(this.reset_input(),!1):i&&0!=i.length?((i instanceof Array||u&&i instanceof FileList)&&(n=i),i=!0,this.settings.before_change&&(i=this.settings.before_change.call(this.element,n,t)),-1===i?(this.reset_input(),!1):i&&0!=i.length?((i instanceof Array||u&&i instanceof FileList)&&(n=i),n):(this.$element.data("ace_input_files")||this.reset_input(),!1)):(this.$element.data("ace_input_files")||this.reset_input(),!1)},e=function(n){return n?("string"==typeof n&&(n=[n]),0==n.length?null:new RegExp(".(?:"+n.join("|")+")$","i")):null},o=function(n){return n?("string"==typeof n&&(n=[n]),0==n.length?null:new RegExp("^(?:"+n.join("|").replace(/\//g,"\\/")+")$","i")):null},y=function(t,i){var l=e(this.settings.allowExt),a=e(this.settings.denyExt),v=o(this.settings.allowMime),y=o(this.settings.denyMime),p=this.settings.maxSize||!1,s,f,b,c,k;if(!(l||a||v||y||p))return!0;for(var h=[],u={},w=0;w<t.length;w++)if(s=t[w],f=r?s.name:s,!l||l.test(f))if(a&&a.test(f))"ext"in u||(u.ext=[]),u.ext.push(f);else if(r){if((b=n.trim(s.type)).length>0){if(v&&!v.test(b)){"mime"in u||(u.mime=[]);u.mime.push(f);continue}if(y&&y.test(b)){"mime"in u||(u.mime=[]);u.mime.push(f);continue}}p&&s.size>p?("size"in u||(u.size=[]),u.size.push(f)):h.push(s)}else h.push(s);else"ext"in u||(u.ext=[]),u.ext.push(f);return h.length==t.length?t:(c={ext:0,mime:0,size:0},"ext"in u&&(c.ext=u.ext.length),"mime"in u&&(c.mime=u.mime.length),"size"in u&&(c.size=u.size.length),this.$element.trigger(k=new n.Event("file.error.ace"),{file_count:t.length,invalid_count:t.length-h.length,error_list:u,error_count:c,dropped:i}),k.isDefaultPrevented()?-1:h)};n.fn.aceFileInput=n.fn.ace_file_input=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_file_input"),o="object"==typeof r&&r;t||e.data("ace_file_input",t=new i(this,o));"string"==typeof r&&(f=t[r](u))});return f===t?e:f};n.fn.ace_file_input.defaults={style:!1,no_file:"No File ...",no_icon:"fa fa-upload",btn_choose:"Choose",btn_change:"Change",icon_remove:"fa fa-times",droppable:!1,thumbnail:!1,allowExt:null,denyExt:null,allowMime:null,denyMime:null,maxSize:!1,before_change:null,before_remove:null,preview_error:null}}(window.jQuery);!function(n){"use strict";var t=function(t,i){this.$element=n(t);this.options=n.extend({},n.fn.bs_typeahead.defaults,i);this.matcher=this.options.matcher||this.matcher;this.sorter=this.options.sorter||this.sorter;this.highlighter=this.options.highlighter||this.highlighter;this.updater=this.options.updater||this.updater;this.source=this.options.source;this.$menu=n(this.options.menu);this.shown=!1;this.listen()},i;t.prototype={constructor:t,select:function(){var n=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(n)).change(),this.hide()},updater:function(n){return n},show:function(){var t=n.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var t;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(t=n.isFunction(this.source)?this.source(this.query,n.proxy(this.process,this)):this.source,t?this.process(t):this)},process:function(t){var i=this;return t=n.grep(t,function(n){return i.matcher(n)}),t=this.sorter(t),t.length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(n){return~n.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(n){for(var t,i=[],r=[],u=[];t=n.shift();)t.toLowerCase().indexOf(this.query.toLowerCase())?~t.indexOf(this.query)?r.push(t):u.push(t):i.push(t);return i.concat(r,u)},highlighter:function(n){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return n.replace(new RegExp("("+t+")","ig"),function(n,t){return"<strong>"+t+"<\/strong>"})},render:function(t){var i=this;return t=n(t).map(function(t,r){return t=n(i.options.item).attr("data-value",r),t.find("a").html(i.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(){var i=this.$menu.find(".active").removeClass("active"),t=i.next();t.length||(t=n(this.$menu.find("li")[0]));t.addClass("active")},prev:function(){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last());n.addClass("active")},listen:function(){this.$element.on("focus",n.proxy(this.focus,this)).on("blur",n.proxy(this.blur,this)).on("keypress",n.proxy(this.keypress,this)).on("keyup",n.proxy(this.keyup,this));this.eventSupported("keydown")&&this.$element.on("keydown",n.proxy(this.keydown,this));this.$menu.on("click",n.proxy(this.click,this)).on("mouseenter","li",n.proxy(this.mouseenter,this)).on("mouseleave","li",n.proxy(this.mouseleave,this))},eventSupported:function(n){var t=n in this.$element;return t||(this.$element.setAttribute(n,"return;"),t="function"==typeof this.$element[n]),t},move:function(n){if(this.shown){switch(n.keyCode){case 9:case 13:case 27:n.preventDefault();break;case 38:n.preventDefault();this.prev();break;case 40:n.preventDefault();this.next()}n.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=~n.inArray(t.keyCode,[40,38,9,13,27]);this.move(t)},keypress:function(n){this.suppressKeyPressRepeat||this.move(n)},keyup:function(n){switch(n.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}n.stopPropagation();n.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1;!this.mousedover&&this.shown&&this.hide()},click:function(n){n.stopPropagation();n.preventDefault();this.select();this.$element.focus()},mouseenter:function(t){this.mousedover=!0;this.$menu.find(".active").removeClass("active");n(t.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1;!this.focused&&this.shown&&this.hide()}};i=n.fn.bs_typeahead;n.fn.bs_typeahead=function(i){return this.each(function(){var u=n(this),r=u.data("bs_typeahead"),f="object"==typeof i&&i;r||u.data("bs_typeahead",r=new t(this,f));"string"==typeof i&&r[i]()})};n.fn.bs_typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"><\/ul>',item:'<li><a href="#"><\/a><\/li>',minLength:1};n.fn.bs_typeahead.Constructor=t;n.fn.bs_typeahead.noConflict=function(){return n.fn.bs_typeahead=i,this};n(document).on("focus.bs_typeahead.data-api",'[data-provide="bs_typeahead"]',function(){var t=n(this);t.data("bs_typeahead")||t.bs_typeahead(t.data())})}(window.jQuery),function(n){n.fn.ace_wysiwyg=function(t){var i=n.extend({speech_button:!0,wysiwyg:{}},t),f=["#ac725e","#d06b64","#f83a22","#fa573c","#ff7537","#ffad46","#42d692","#16a765","#7bd148","#b3dc6c","#fbe983","#fad165","#92e1c0","#9fe1e7","#9fc6e7","#4986e7","#9a9cff","#b99aff","#c2c2c2","#cabdbf","#cca6ac","#f691b2","#cd74e6","#a47ae2","#444444"],r={font:{values:["Arial","Courier","Comic Sans MS","Helvetica","Open Sans","Tahoma","Verdana"],icon:"fa fa-font",title:"Font"},fontSize:{values:{5:"Huge",3:"Normal",1:"Small"},icon:"fa fa-text-height",title:"Font Size"},bold:{icon:"fa fa-bold",title:"Bold (Ctrl/Cmd+B)"},italic:{icon:"fa fa-italic",title:"Italic (Ctrl/Cmd+I)"},strikethrough:{icon:"fa fa-strikethrough",title:"Strikethrough"},underline:{icon:"fa fa-underline",title:"Underline"},insertunorderedlist:{icon:"fa fa-list-ul",title:"Bullet list"},insertorderedlist:{icon:"fa fa-list-ol",title:"Number list"},outdent:{icon:"fa fa-outdent",title:"Reduce indent (Shift+Tab)"},indent:{icon:"fa fa-indent",title:"Indent (Tab)"},justifyleft:{icon:"fa fa-align-left",title:"Align Left (Ctrl/Cmd+L)"},justifycenter:{icon:"fa fa-align-center",title:"Center (Ctrl/Cmd+E)"},justifyright:{icon:"fa fa-align-right",title:"Align Right (Ctrl/Cmd+R)"},justifyfull:{icon:"fa fa-align-justify",title:"Justify (Ctrl/Cmd+J)"},createLink:{icon:"fa fa-link",title:"Hyperlink",button_text:"Add",placeholder:"URL",button_class:"btn-primary"},unlink:{icon:"fa fa-chain-broken",title:"Remove Hyperlink"},insertImage:{icon:"fa fa-picture-o",title:"Insert picture",button_text:'<i class="'+ace.vars.icon+'fa fa-file"><\/i> Choose Image &hellip;',placeholder:"Image URL",button_insert:"Insert",button_class:"btn-success",button_insert_class:"btn-primary",choose_file:!0},foreColor:{values:f,title:"Change Color"},backColor:{values:f,title:"Change Background Color"},undo:{icon:"fa fa-undo",title:"Undo (Ctrl/Cmd+Z)"},redo:{icon:"fa fa-repeat",title:"Redo (Ctrl/Cmd+Y)"},viewSource:{icon:"fa fa-code",title:"View Source"}},u=i.toolbar||["font",null,"fontSize",null,"bold","italic","strikethrough","underline",null,"insertunorderedlist","insertorderedlist","outdent","indent",null,"justifyleft","justifycenter","justifyright","justifyfull",null,"createLink","unlink",null,"insertImage",null,"foreColor",null,"undo","redo",null,"viewSource"];return this.each(function(){var f=' <div class="wysiwyg-toolbar btn-toolbar center"> <div class="btn-group"> ',c,t,o,s,h,a,e,l,v;for(c in u)if(u.hasOwnProperty(c)){if(t=u[c],null===t){f+=' <\/div> <div class="btn-group"> ';continue}if("string"==typeof t&&t in r)t=r[t],t.name=u[c];else{if(!("object"==typeof t&&t.name in r))continue;t=n.extend(r[t.name],t)}o="className"in t?t.className:"btn-default";switch(t.name){case"font":f+=' <a class="btn btn-sm '+o+' dropdown-toggle" data-toggle="dropdown" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i><i class="'+ace.vars.icon+'fa fa-angle-down icon-on-right"><\/i><\/a> ';f+=' <ul class="dropdown-menu dropdown-light dropdown-caret">';for(s in t.values)t.values.hasOwnProperty(s)&&(f+=' <li><a data-edit="fontName '+t.values[s]+'" style="font-family:\''+t.values[s]+"'\">"+t.values[s]+"<\/a><\/li> ");f+=" <\/ul>";break;case"fontSize":f+=' <a class="btn btn-sm '+o+' dropdown-toggle" data-toggle="dropdown" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i>&nbsp;<i class="'+ace.vars.icon+'fa fa-angle-down icon-on-right"><\/i><\/a> ';f+=' <ul class="dropdown-menu dropdown-light dropdown-caret"> ';for(h in t.values)t.values.hasOwnProperty(h)&&(f+=' <li><a data-edit="fontSize '+h+'"><font size="'+h+'">'+t.values[h]+"<\/font><\/a><\/li> ");f+=" <\/ul> ";break;case"createLink":f+=' <div class="btn-group"> <a class="btn btn-sm '+o+' dropdown-toggle" data-toggle="dropdown" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i><\/a> ';f+=' <div class="dropdown-menu dropdown-caret dropdown-menu-right">\t\t\t\t\t\t\t <div class="input-group">\t\t\t\t\t\t\t\t<input class="form-control" placeholder="'+t.placeholder+'" type="text" data-edit="'+t.name+'" />\t\t\t\t\t\t\t\t<span class="input-group-btn">\t\t\t\t\t\t\t\t\t<button class="btn btn-sm '+t.button_class+'" type="button">'+t.button_text+"<\/button>\t\t\t\t\t\t\t\t<\/span>\t\t\t\t\t\t\t <\/div>\t\t\t\t\t\t<\/div> <\/div>";break;case"insertImage":f+=' <div class="btn-group"> <a class="btn btn-sm '+o+' dropdown-toggle" data-toggle="dropdown" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i><\/a> ';f+=' <div class="dropdown-menu dropdown-caret dropdown-menu-right">\t\t\t\t\t\t\t <div class="input-group">\t\t\t\t\t\t\t\t<input class="form-control" placeholder="'+t.placeholder+'" type="text" data-edit="'+t.name+'" />\t\t\t\t\t\t\t\t<span class="input-group-btn">\t\t\t\t\t\t\t\t\t<button class="btn btn-sm '+t.button_insert_class+'" type="button">'+t.button_insert+"<\/button>\t\t\t\t\t\t\t\t<\/span>\t\t\t\t\t\t\t <\/div>";t.choose_file&&"FileReader"in window&&(f+='<div class="space-2"><\/div>\t\t\t\t\t\t\t <label class="center block no-margin-bottom">\t\t\t\t\t\t\t\t<button class="btn btn-sm '+t.button_class+' wysiwyg-choose-file" type="button">'+t.button_text+'<\/button>\t\t\t\t\t\t\t\t<input type="file" data-edit="'+t.name+'" />\t\t\t\t\t\t\t  <\/label>');f+=" <\/div> <\/div>";break;case"foreColor":case"backColor":f+=' <select class="hide wysiwyg_colorpicker" title="'+t.title+'"> ';n.each(t.values,function(n,t){f+=' <option value="'+t+'">'+t+"<\/option> "});f+=" <\/select> ";f+=' <input style="display:none;" disabled class="hide" type="text" data-edit="'+t.name+'" /> ';break;case"viewSource":f+=' <a class="btn btn-sm '+o+'" data-view="source" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i><\/a> ';break;default:f+=' <a class="btn btn-sm '+o+'" data-edit="'+t.name+'" title="'+t.title+'"><i class="'+ace.vars.icon+t.icon+'"><\/i><\/a> '}}f+=" <\/div> ";i.speech_button&&"onwebkitspeechchange"in(a=document.createElement("input"))&&(f+=' <input class="wysiwyg-speech-input" type="text" data-edit="inserttext" x-webkit-speech />');a=null;f+=" <\/div> ";f=i.toolbar_place?i.toolbar_place.call(this,f):n(this).before(f).prev();f.find("a[title]").tooltip({animation:!1,container:"body"});f.find(".dropdown-menu input[type=text]").on("click",function(){return!1}).on("change",function(){n(this).closest(".dropdown-menu").siblings(".dropdown-toggle").dropdown("toggle")}).on("keydown",function(t){27==t.which?(this.value="",n(this).change()):13==t.which&&(t.preventDefault(),t.stopPropagation(),n(this).change())});f.find("input[type=file]").prev().on(ace.click_event,function(){n(this).next().click()});f.find(".wysiwyg_colorpicker").each(function(){n(this).ace_colorpicker({pull_right:!0}).change(function(){n(this).nextAll("input").eq(0).val(this.value).change()}).next().find(".btn-colorpicker").tooltip({title:this.title,animation:!1,container:"body"})});e=n(this);l=!1;f.find("a[data-view=source]").on("click",function(t){if(t.preventDefault(),l){var i=e.next();e.html(i.val()).show();i.remove();n(this).removeClass("active")}else n("<textarea />").css({width:e.outerWidth(),height:e.outerHeight()}).val(e.html()).insertAfter(e),e.hide(),n(this).addClass("active");l=!l});v=n.extend({},{activeToolbarClass:"active",toolbarSelector:f},i.wysiwyg||{});n(this).wysiwyg(v)}),this}}(window.jQuery),function(n,t){function i(t,i){var l=ace.helper.getAttrSettings(t,n.fn.ace_spinner.defaults),r=n.extend({},n.fn.ace_spinner.defaults,i,l),h=r.max,f,c;h=(""+h).length;var o=parseInt(Math.max(20*h+40,90)),u=n(t),e="btn-sm",s=2;u.hasClass("input-sm")?(e="btn-xs",s=1):u.hasClass("input-lg")&&(e="btn-lg",s=3);2==s?o+=25:3==s&&(o+=50);u.addClass("spinbox-input form-control text-center").wrap('<div class="ace-spinner middle">');f=u.closest(".ace-spinner").spinbox(r).wrapInner("<div class='input-group'><\/div>");c=f.data("fu.spinbox");r.on_sides?(u.before('<div class="spinbox-buttons input-group-btn">\t\t\t\t\t<button type="button" class="btn spinbox-down '+e+" "+r.btn_down_class+'">\t\t\t\t\t\t<i class="icon-only '+ace.vars.icon+r.icon_down+'"><\/i>\t\t\t\t\t<\/button>\t\t\t\t<\/div>').after('<div class="spinbox-buttons input-group-btn">\t\t\t\t\t<button type="button" class="btn spinbox-up '+e+" "+r.btn_up_class+'">\t\t\t\t\t\t<i class="icon-only '+ace.vars.icon+r.icon_up+'"><\/i>\t\t\t\t\t<\/button>\t\t\t\t<\/div>'),f.addClass("touch-spinner"),f.css("width",o+"px")):(u.after('<div class="spinbox-buttons input-group-btn">\t\t\t\t\t<button type="button" class="btn spinbox-up '+e+" "+r.btn_up_class+'">\t\t\t\t\t\t<i class="icon-only '+ace.vars.icon+r.icon_up+'"><\/i>\t\t\t\t\t<\/button>\t\t\t\t\t<button type="button" class="btn spinbox-down '+e+" "+r.btn_down_class+'">\t\t\t\t\t\t<i class="icon-only '+ace.vars.icon+r.icon_down+'"><\/i>\t\t\t\t\t<\/button>\t\t\t\t<\/div>'),ace.vars.touch||r.touch_spinner?(f.addClass("touch-spinner"),f.css("width",o+"px")):(u.next().addClass("btn-group-vertical"),f.css("width",o+"px")));f.on("changed",function(){u.trigger("change")});this._call=function(n,t){c[n](t)}}n.fn.ace_spinner=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_spinner"),o="object"==typeof r&&r;t||(o=n.extend({},n.fn.ace_spinner.defaults,r),e.data("ace_spinner",t=new i(this,o)));"string"==typeof r&&(f=t._call(r,u))});return f===t?e:f};n.fn.ace_spinner.defaults={icon_up:"fa fa-chevron-up",icon_down:"fa fa-chevron-down",on_sides:!1,btn_up_class:"",btn_down_class:"",max:999,touch_spinner:!1}}(window.jQuery),function(n){n.fn.aceTree=n.fn.ace_tree=function(t){var i={"open-icon":ace.vars.icon+"fa fa-folder-open","close-icon":ace.vars.icon+"fa fa-folder",selectable:!0,"selected-icon":ace.vars.icon+"fa fa-check","unselected-icon":ace.vars.icon+"fa fa-times",loadingHTML:"Loading..."};return this.each(function(){var f=ace.helper.getAttrSettings(this,i),r=n.extend({},i,t,f),u=n(this);u.addClass("tree").attr("role","tree");u.html('<li class="tree-branch hide" data-template="treebranch" role="treeitem" aria-expanded="false">\t\t\t\t<div class="tree-branch-header">\t\t\t\t\t<span class="tree-branch-name">\t\t\t\t\t\t<i class="icon-folder '+r["close-icon"]+'"><\/i>\t\t\t\t\t\t<span class="tree-label"><\/span>\t\t\t\t\t<\/span>\t\t\t\t<\/div>\t\t\t\t<ul class="tree-branch-children" role="group"><\/ul>\t\t\t\t<div class="tree-loader" role="alert">'+r.loadingHTML+'<\/div>\t\t\t<\/div>\t\t\t<li class="tree-item hide" data-template="treeitem" role="treeitem">\t\t\t\t<span class="tree-item-name">\t\t\t\t  '+(null==r["unselected-icon"]?"":'<i class="icon-item '+r["unselected-icon"]+'"><\/i>')+'\t\t\t\t  <span class="tree-label"><\/span>\t\t\t\t<\/span>\t\t\t<\/li>');u.addClass(1==r.selectable?"tree-selectable":"tree-unselectable");u.tree(r)}),this}}(window.jQuery),function(n){n.fn.aceWizard=n.fn.ace_wizard=function(t){return this.each(function(){var r=n(this),u,i,f;r.wizard();ace.vars.old_ie&&r.find("ul.steps > li").last().addClass("last-child");u=t&&t.buttons?n(t.buttons):r.siblings(".wizard-actions").eq(0);i=r.data("fu.wizard");i.$prevBtn.remove();i.$nextBtn.remove();i.$prevBtn=u.find(".btn-prev").eq(0).on(ace.click_event,function(){i.previous()}).attr("disabled","disabled");i.$nextBtn=u.find(".btn-next").eq(0).on(ace.click_event,function(){i.next()}).removeAttr("disabled");i.nextText=i.$nextBtn.text();f=t&&(t.selectedItem&&t.selectedItem.step||t.step);f&&(i.currentStep=f,i.setState())}),this}}(window.jQuery),function(n,t){function r(t,r){var s=this,u=n(t),f="right",o=!1,c=u.hasClass("fade"),a=ace.helper.getAttrSettings(t,n.fn.ace_aside.defaults),l;if(this.settings=n.extend({},n.fn.ace_aside.defaults,r,a),!this.settings.background||r.scroll_style||a.scroll_style||(this.settings.scroll_style="scroll-white no-track"),this.container=this.settings.container,this.container)try{n(this.container).get(0)==document.body&&(this.container=null)}catch(y){}this.container&&(this.settings.backdrop=!1,u.addClass("aside-contained"));var h=u.find(".modal-dialog"),e=u.find(".modal-content"),v=300;this.initiate=function(){t.className=t.className.replace(/(\s|^)aside\-(right|top|left|bottom)(\s|$)/gi,"$1$3");f=this.settings.placement;f&&(f=n.trim(f.toLowerCase()));f&&/right|top|left|bottom/.test(f)||(f="right");u.attr("data-placement",f);u.addClass("aside-"+f);/right|left/.test(f)?(o=!0,u.addClass("aside-vc")):u.addClass("aside-hz");this.settings.fixed&&u.addClass("aside-fixed");this.settings.background&&u.addClass("aside-dark");this.settings.offset&&u.addClass("navbar-offset");this.settings.transition||u.addClass("transition-off");u.addClass("aside-hidden");this.insideContainer();h=u.find(".modal-dialog");e=u.find(".modal-content");this.settings.body_scroll||u.on("mousewheel.aside DOMMouseScroll.aside touchmove.aside pointermove.aside",function(t){if(!n.contains(e[0],t.target))return(t.preventDefault(),!1)});0==this.settings.backdrop&&u.addClass("no-backdrop")};this.show=function(){if(0==this.settings.backdrop)try{u.data("bs.modal").$backdrop.remove()}catch(t){}this.container?n(this.container).addClass("overflow-hidden"):u.css("position","fixed");u.removeClass("aside-hidden")};this.hide=function(){this.container&&(this.container.addClass("overflow-hidden"),ace.vars.firefox&&t.offsetHeight);l();ace.vars.transition&&!c&&u.one("bsTransitionEnd",function(){u.addClass("aside-hidden");u.css("position","");s.container&&s.container.removeClass("overflow-hidden")}).emulateTransitionEnd(v)};this.shown=function(){if(l(),n("body").removeClass("modal-open").css("padding-right",""),"invisible"==this.settings.backdrop)try{u.data("bs.modal").$backdrop.css("opacity",0)}catch(r){}var t=o?e.height():h.height();ace.vars.touch?e.addClass("overflow-scroll").css("max-height",t+"px"):e.hasClass("ace-scroll")||e.ace_scroll({size:t,reset:!0,mouseWheelLock:!0,lockAnyway:!this.settings.body_scroll,styleClass:this.settings.scroll_style,observeContent:!0,hideOnIdle:!ace.vars.old_ie,hideDelay:1500});i.off("resize.modal.aside").on("resize.modal.aside",function(){if(ace.vars.touch)e.css("max-height",(o?e.height():h.height())+"px");else{e.ace_scroll("disable");var n=o?e.height():h.height();e.ace_scroll("update",{size:n}).ace_scroll("enable").ace_scroll("reset")}}).triggerHandler("resize.modal.aside");s.container&&ace.vars.transition&&!c&&u.one("bsTransitionEnd",function(){s.container.removeClass("overflow-hidden")}).emulateTransitionEnd(v)};this.hidden=function(){i.off(".aside");(!ace.vars.transition||c)&&(u.addClass("aside-hidden"),u.css("position",""))};this.insideContainer=function(){var t=n(".main-container"),e=u.find(".modal-dialog"),r;(e.css({right:"",left:""}),t.hasClass("container"))&&(r=!1,1==o&&(e.css(f,parseInt((i.width()-t.width())/2)),r=!0),r&&ace.vars.firefox&&ace.helper.redraw(t[0]))};this.flip=function(){var n={right:"left",left:"right",top:"bottom",bottom:"top"};u.removeClass("aside-"+f).addClass("aside-"+n[f]);f=n[f]};l=function(){var t=u.find(".aside-trigger"),n;0!=t.length&&(t.toggleClass("open"),n=t.find(ace.vars[".icon"]),0!=n.length&&n.toggleClass(n.attr("data-icon1")+" "+n.attr("data-icon2")))};this.initiate();this.container&&(this.container=n(this.container));u.appendTo(this.container||"body")}var i=n(window);n(document).on("show.bs.modal",".modal.aside",function(){n(".aside.in").modal("hide");n(this).ace_aside("show")}).on("hide.bs.modal",".modal.aside",function(){n(this).ace_aside("hide")}).on("shown.bs.modal",".modal.aside",function(){n(this).ace_aside("shown")}).on("hidden.bs.modal",".modal.aside",function(){n(this).ace_aside("hidden")});n(window).on("resize.aside_container",function(){n(".modal.aside").ace_aside("insideContainer")});n(document).on("settings.ace.aside",function(t,i){"main_container_fixed"==i&&n(".modal.aside").ace_aside("insideContainer")});n.fn.aceAside=n.fn.ace_aside=function(i,u){var f,e=this.each(function(){var e=n(this),t=e.data("ace_aside"),o="object"==typeof i&&i;t||e.data("ace_aside",t=new r(this,o));"string"==typeof i&&"function"==typeof t[i]&&(f=u instanceof Array?t[i].apply(t,u):t[i](u))});return f===t?e:f};n.fn.ace_aside.defaults={fixed:!1,background:!1,offset:!1,body_scroll:!1,transition:!0,scroll_style:"scroll-dark no-track",container:null,backdrop:!1,placement:"right"}}(window.jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var n=new Date;return f(n.getFullYear(),n.getMonth(),n.getDate())}function l(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function h(i,r){return function(){return r!==t&&n.fn.datepicker.deprecated(r),this[i].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(y,function(n,t){t in i&&(u[t]=i[t])}),u}var a=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(0<=this[t].valueOf()-i&&this[t].valueOf()-i<864e5)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new a;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),u=function(t,r){n.data(t,"datepicker",this);this._process_options(r);this.dates=new a;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInput=this.element.is("input");this.inputField=this.isInput?this.element:this.element.find("input");this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn");this.component&&0===this.component.length&&(this.component=!1);this.isInline=!this.component&&this.element.is("div");this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return Number(t)+1});this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled});this._allow_update=!1;this.setViewMode(this.o.startView);this._allow_update=!0;this.fillDow();this.fillMonths();this.update();this.isInline&&this.show()},c,v,o,e,y,r,i;u.prototype={constructor:u,_resolveViewName:function(t){return n.each(i.viewModes,function(i,r){if(t===i||n.inArray(t,r.names)!==-1)return t=i,!1}),t},_resolveDaysOfWeek:function(t){return n.isArray(t)||(t=t.split(/[,\s]*/)),n.map(t,Number)},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(n){return!1}},_process_options:function(t){var u,h,l,o,c;if(this._o=n.extend({},this._o,t),u=this.o=n.extend({},this._o),h=u.language,r[h]||(h=h.split("-")[0],r[h]||(h=e.language)),u.language=h,u.startView=this._resolveViewName(u.startView),u.minViewMode=this._resolveViewName(u.minViewMode),u.maxViewMode=this._resolveViewName(u.maxViewMode),u.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,u.startView)),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate!==!1&&(u.multidate=Math.max(0,u.multidate))),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,l=i.parseFormat(u.format),u.startDate!==-(1/0)&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,l,u.language,u.assumeNearbyYear):-(1/0)),u.endDate!==1/0&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,l,u.language,u.assumeNearbyYear):1/0),u.daysOfWeekDisabled=this._resolveDaysOfWeek(u.daysOfWeekDisabled||[]),u.daysOfWeekHighlighted=this._resolveDaysOfWeek(u.daysOfWeekHighlighted||[]),u.datesDisabled=u.datesDisabled||[],n.isArray(u.datesDisabled)||(u.datesDisabled=u.datesDisabled.split(",")),u.datesDisabled=n.map(u.datesDisabled,function(n){return i.parseDate(n,l,u.language,u.assumeNearbyYear)}),o=String(u.orientation).toLowerCase().split(/\s+/g),c=u.orientation.toLowerCase(),o=n.grep(o,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===o.length)switch(o[0]){case"top":case"bottom":u.orientation.y=o[0];break;case"left":case"right":u.orientation.x=o[0]}else c=n.grep(o,function(n){return/^left|right$/.test(n)}),u.orientation.x=c[0]||"auto",c=n.grep(o,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=c[0]||"auto";if(u.defaultViewDate instanceof Date||"string"==typeof u.defaultViewDate)u.defaultViewDate=i.parseDate(u.defaultViewDate,l,u.language,u.assumeNearbyYear);else if(u.defaultViewDate){var a=u.defaultViewDate.year||(new Date).getFullYear(),v=u.defaultViewDate.month||0,y=u.defaultViewDate.day||1;u.defaultViewDate=f(a,v,y)}else u.defaultViewDate=s()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this._events=this.isInput?[[this.element,t]]:this.component&&this.inputField.length?[[this.inputField,t],[this.component,{click:n.proxy(this.show,this)}]]:[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[this.picker,".prev, .next",{click:n.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:n.proxy(this.dayCellClick,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,viewMode:this.viewMode,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&n.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+6e4*n.getTimezoneOffset());return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&f(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return n!==t?new Date(n):null},clearDates:function(){this.inputField.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,n.map(t,this._utc_to_local)),this},setDate:h("setDates"),setUTCDate:h("setUTCDates"),remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){return this._process_options({datesDisabled:n}),this.update(),this},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==Number(t)&&a.push(Number(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var u=this.dates.copy(),t=[],r=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),r=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.o.updateViewDate&&(this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(u)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&u.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',n.inArray(i,this.o.daysOfWeekDisabled)!==-1&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>";this.picker.find(".datepicker-days thead").append(t)}},fillMonths:function(){for(var t,i=this._utc_to_local(this.viewDate),u="",n=0;n<12;n++)t=i&&i.getMonth()===n?" focused":"",u+='<span class="month'+t+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(u)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth(),f=s();return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<u?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>u)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&l(t,f)&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s){for(var c,v,h,w="",l=u/10,b=this.picker.find(i),y=Math.floor(f/u)*u,p=y+9*l,k=Math.floor(this.viewDate.getFullYear()/l)*l,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/l)*l}),a=y-l;a<=p+l;a+=l)c=[r],v=null,a===y-l?c.push("old"):a===p+l&&c.push("new"),n.inArray(a,d)!==-1&&c.push("active"),(a<e||a>o)&&c.push("disabled"),a===k&&c.push("focused"),s!==n.noop&&(h=s(new Date(a,0,1)),h===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),h.enabled===!1&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(v=h.tooltip)),w+='<span class="'+c.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+a+"<\/span>";b.find(".datepicker-switch").text(y+"-"+p);b.find("td").html(w)},fill:function(){var y,u,w=new Date(this.viewDate),o=w.getUTCFullYear(),d=w.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),ut=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),v=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,ft=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,et=r[this.o.language].today||r.en.today||"",ot=r[this.o.language].clear||r.en.clear||"",st=r[this.o.language].titleFormat||r.en.titleFormat,e,g,h,p,s,c,k,it,l,rt;if(!isNaN(o)&&!isNaN(d)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(w,st,this.o.language)),this.picker.find("tfoot .today").text(et).css("display",this.o.todayBtn===!0||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(ot).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths(),e=f(o,d,0),g=e.getUTCDate(),e.setUTCDate(g-(e.getUTCDay()-this.o.weekStart+7)%7),h=new Date(e),e.getUTCFullYear()<100&&h.setUTCFullYear(e.getUTCFullYear()),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),c=[];e.valueOf()<h;){if(p=e.getUTCDay(),p===this.o.weekStart&&(c.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-p-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),b=new Date(Number(b=f(tt.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ht=(tt-b)/6048e5+1;c.push('<td class="cw">'+ht+"<\/td>")}s=this.getClassNames(e);s.push("day");k=e.getUTCDate();this.o.beforeShowDay!==n.noop&&(u=this.o.beforeShowDay(this._utc_to_local(e)),u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),u.enabled===!1&&s.push("disabled"),u.classes&&(s=s.concat(u.classes.split(/\s+/))),u.tooltip&&(y=u.tooltip),u.content&&(k=u.content));s=n.isFunction(n.uniqueSort)?n.uniqueSort(s):n.unique(s);c.push('<td class="'+s.join(" ")+'"'+(y?' title="'+y+'"':"")+' data-date="'+e.getTime().toString()+'">'+k+"<\/td>");y=null;p===this.o.weekEnd&&c.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(c.join(""));it=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";l=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?it:o).end().find("tbody span").removeClass("active");(n.each(this.dates,function(n,t){t.getUTCFullYear()===o&&l.eq(t.getUTCMonth()).addClass("active")}),(o<a||o>v)&&l.addClass("disabled"),o===a&&l.slice(0,ut).addClass("disabled"),o===v&&l.slice(ft+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(rt=this,n.each(l,function(i,r){var f=new Date(o,i,1),u=rt.o.beforeShowMonth(f);u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u});u.enabled!==!1||n(r).hasClass("disabled")||n(r).addClass("disabled");u.classes&&n(r).addClass(u.classes);u.tooltip&&n(r).prop("title",u.tooltip)}));this._fill_yearsView(".datepicker-years","year",10,o,a,v,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,o,a,v,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,o,a,v,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var i,r,u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),s=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,n=1;switch(this.viewMode){case 0:i=t<=e&&f<=s;r=t>=o&&f>=h;break;case 4:n*=10;case 3:n*=10;case 2:n*=10;case 1:i=Math.floor(t/n)*n<=e;r=Math.floor(t/n)*n+n>=o}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,o,u,e;r=n(t.target);r.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1);r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(s(),"linked"===this.o.todayBtn?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(e=r.parent().find("span").index(r),u=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e)):(e=0,u=Number(r.text()),this.viewDate.setUTCFullYear(u)),this._trigger(i.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(f(u,e,o)):(this.setViewMode(this.viewMode-1),this.fill()));this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus();delete this._focused_from},dayCellClick:function(t){var r=n(t.currentTarget),u=r.data("date"),i=new Date(u);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate));this._setDate(i)},navArrowsClick:function(t){var u=n(t.currentTarget),r=u.hasClass("prev")?-1:1;0!==this.viewMode&&(r*=12*i.viewModes[this.viewMode].navStep);this.viewDate=this.moveMonth(this.viewDate,r);this._trigger(i.viewModes[this.viewMode].e,this.viewDate);this.fill()},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");this.inputField.trigger("change");!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=t===-1?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),r=(r+12)%12;else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return l(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){if(!this.picker.is(":visible"))return void(40!==n.keyCode&&27!==n.keyCode||(this.show(),n.stopPropagation()));var i,t,u=!1,r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;i=37===n.keyCode||38===n.keyCode?-1:1;0===this.viewMode?n.ctrlKey?(t=this.moveAvailableDate(r,i,"moveYear"),t&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(t=this.moveAvailableDate(r,i,"moveMonth"),t&&this._trigger("changeMonth",this.viewDate)):37===n.keyCode||39===n.keyCode?t=this.moveAvailableDate(r,i,"moveDay"):this.weekOfDateIsDisabled(r)||(t=this.moveAvailableDate(r,i,"moveWeek")):1===this.viewMode?(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveMonth")):2===this.viewMode&&(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveYear"));t&&(this.focusDate=this.viewDate=t,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),u=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}u&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(n){this.viewMode=n;this.picker.children("div").hide().filter(".datepicker-"+i.viewModes[this.viewMode].clsName).show();this.updateNavArrows();this._trigger("changeViewMode",new Date(this.viewDate))}};c=function(t,i){n.data(t,"datepicker",this);this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;this.keepEmptyValues=i.keepEmptyValues;delete i.keepEmptyValues;o.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n.data(t,"datepicker")});this.updateDates()};c.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(i){var u;if(!this.updating&&(this.updating=!0,u=n.data(i.target,"datepicker"),u!==t)){var r=u.getUTCDate(),s=this.keepEmptyValues,o=n.inArray(i.target,this.inputs),f=o-1,e=o+1,h=this.inputs.length;if(o!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==u&&s||t.setUTCDate(r)}),r<this.dates[f])for(;f>=0&&r<this.dates[f];)this.pickers[f--].setUTCDate(r);else if(r>this.dates[e])for(;e<h&&r>this.dates[e];)this.pickers[e++].setUTCDate(r);this.updateDates();delete this.updating}}},destroy:function(){n.map(this.pickers,function(n){n.destroy()});n(this.inputs).off("changeDate",this.dateUpdated);delete this.element.data().datepicker},remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};v=n.fn.datepicker;o=function(i){var f=Array.apply(null,arguments),r;if(f.shift(),this.each(function(){var s=n(this),t=s.data("datepicker"),h="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},e,l,h),v=b(a.language),o=n.extend({},e,v,l,h);s.hasClass("input-daterange")||o.inputs?(n.extend(o,{inputs:o.inputs||s.find("input").toArray()}),t=new c(this,o)):t=new u(this,o);s.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,f))}),r===t||r instanceof u||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};n.fn.datepicker=o;e=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0};y=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o,h){function et(n,t){return t===!0&&(t=10),n<100&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function tt(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var l,y,it,c,rt,ut,g,v,ft,d,w;if(!f)return t;if(f instanceof Date)return f;if("string"==typeof e&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,o);if(ut={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},f in g&&(f=g[f]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(f)){for(l=f.match(/([\-+]\d+)([dmwy])/gi),f=new Date,c=0;c<l.length;c++)y=l[c].match(/([\-+]\d+)([dmwy])/i),it=Number(y[1]),rt=ut[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var p,b,k={},nt=["yyyy","yy","M","MM","m","mm","d","dd"],a={yyyy:function(n,t){return n.setUTCFullYear(h?et(t,h):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=s(),v=e.parts.slice(),l.length!==v.length&&(v=n(v).filter(function(t,i){return n.inArray(i,nt)!==-1}).toArray()),l.length===v.length){for(c=0,ft=v.length;c<ft;c++){if(p=parseInt(l[c],10),y=v[c],isNaN(p))switch(y){case"MM":b=n(r[o].months).filter(tt);p=n.inArray(b[0],r[o].months)+1;break;case"M":b=n(r[o].monthsShort).filter(tt);p=n.inArray(b[0],r[o].monthsShort)+1}k[y]=p}for(c=0;c<nt.length;c++)w=nt[c],w in k&&!isNaN(k[w])&&(d=new Date(f),a[w](d,k[w]),isNaN(d)||(f=d))}return f},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">'+e.templates.leftArrow+'<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">'+e.templates.rightArrow+"<\/th><\/tr><\/thead>",contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=v,this};n.fn.datepicker.version="1.7.1";n.fn.datepicker.deprecated=function(n){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+n)};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}),function(n){if(typeof define=="function"&&define.amd)define(["jquery","moment"],n);else if(jQuery)if(moment)n(jQuery,moment);else throw"bootstrap-datetimepicker requires moment.js to be loaded first";else throw"bootstrap-datetimepicker requires jQuery to be loaded first";}(function(n,t){if(typeof t=="undefined"){alert("momentjs is requried");throw new Error("momentjs is required");}var u=0,r=t,f=function(f,e){var ht={pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,minuteStepping:1,minDate:new r({y:1900}),maxDate:(new r).add(100,"y"),showToday:!0,collapse:!0,language:"en",defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:!1},ct={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},o=this,lt=function(){var t=!1,i,h,s;if(o.options=n.extend({},ht,e),o.options.icons=n.extend({},ct,o.options.icons),o.element=n(f),at(),!(o.options.pickTime||o.options.pickDate))throw new Error("Must choose at least one picker");if(o.id=u++,r.lang(o.options.language),o.date=r(),o.unset=!1,o.isInput=o.element.is("input"),o.component=!1,o.element.hasClass("input-group")&&(o.component=o.element.find(".datepickerbutton").size()==0?o.element.find("[class^='input-group-']"):o.element.find(".datepickerbutton")),o.format=o.options.format,i=r()._lang._longDateFormat,o.format||(o.format=o.options.pickDate?i.L:"",o.options.pickDate&&o.options.pickTime&&(o.format+=" "),o.format+=o.options.pickTime?i.LT:"",o.options.useSeconds&&(~i.LT.indexOf(" A")?o.format=o.format.split(" A")[0]+":ss A":o.format+=":ss")),o.use24hours=o.format.toLowerCase().indexOf("a")<1,o.component&&(t=o.component.find("span")),o.options.pickTime&&t&&t.addClass(o.options.icons.time),o.options.pickDate&&t&&(t.removeClass(o.options.icons.time),t.addClass(o.options.icons.date)),o.widget=n(ii()).appendTo("body"),o.options.useSeconds&&!o.use24hours&&o.widget.width(300),o.minViewMode=o.options.minViewMode||0,typeof o.minViewMode=="string")switch(o.minViewMode){case"months":o.minViewMode=1;break;case"years":o.minViewMode=2;break;default:o.minViewMode=0}if(o.viewMode=o.options.viewMode||0,typeof o.viewMode=="string")switch(o.viewMode){case"months":o.viewMode=1;break;case"years":o.viewMode=2;break;default:o.viewMode=0}o.options.disabledDates=g(o.options.disabledDates);o.options.enabledDates=g(o.options.enabledDates);o.startViewMode=o.viewMode;o.setMinDate(o.options.minDate);o.setMaxDate(o.options.maxDate);vt();yt();pt();wt();bt();a();k();ft();o.options.defaultDate!==""&&w().val()==""&&o.setValue(o.options.defaultDate);o.options.minuteStepping!==1&&(h=o.date.minutes(),s=o.options.minuteStepping,o.date.minutes(Math.round(h/s)*s%60).seconds(0))},w=function(){return o.isInput?o.element:dateStr=o.element.find("input")},at=function(){var n;n=o.element.is("input")?o.element.data():o.element.data();n.dateFormat!==undefined&&(o.options.format=n.dateFormat);n.datePickdate!==undefined&&(o.options.pickDate=n.datePickdate);n.datePicktime!==undefined&&(o.options.pickTime=n.datePicktime);n.dateUseminutes!==undefined&&(o.options.useMinutes=n.dateUseminutes);n.dateUseseconds!==undefined&&(o.options.useSeconds=n.dateUseseconds);n.dateUsecurrent!==undefined&&(o.options.useCurrent=n.dateUsecurrent);n.dateMinutestepping!==undefined&&(o.options.minuteStepping=n.dateMinutestepping);n.dateMindate!==undefined&&(o.options.minDate=n.dateMindate);n.dateMaxdate!==undefined&&(o.options.maxDate=n.dateMaxdate);n.dateShowtoday!==undefined&&(o.options.showToday=n.dateShowtoday);n.dateCollapse!==undefined&&(o.options.collapse=n.dateCollapse);n.dateLanguage!==undefined&&(o.options.language=n.dateLanguage);n.dateDefaultdate!==undefined&&(o.options.defaultDate=n.dateDefaultdate);n.dateDisableddates!==undefined&&(o.options.disabledDates=n.dateDisableddates);n.dateEnableddates!==undefined&&(o.options.enabledDates=n.dateEnableddates);n.dateIcons!==undefined&&(o.options.icons=n.dateIcons);n.dateUsestrict!==undefined&&(o.options.useStrict=n.dateUsestrict);n.dateDirection!==undefined&&(o.options.direction=n.dateDirection);n.dateSidebyside!==undefined&&(o.options.sideBySide=n.dateSidebyside)},rt=function(){var u="absolute",t=o.component?o.component.offset():o.element.offset(),i=n(window),r;o.width=o.component?o.component.outerWidth():o.element.outerWidth();t.top=t.top+o.element.outerHeight();o.options.direction==="up"?r="top":o.options.direction==="bottom"?r="bottom":o.options.direction==="auto"&&(r=t.top+o.widget.height()>i.height()+i.scrollTop()&&o.widget.height()+o.element.outerHeight()<t.top?"top":"bottom");r==="top"?(t.top-=o.widget.height()+o.element.outerHeight()+15,o.widget.addClass("top").removeClass("bottom")):(t.top+=1,o.widget.addClass("bottom").removeClass("top"));o.options.width!==undefined&&o.widget.width(o.options.width);o.options.orientation==="left"&&(o.widget.addClass("left-oriented"),t.left=t.left-o.widget.width()+20);ti()&&(u="fixed",t.top-=i.scrollTop(),t.left-=i.scrollLeft());i.width()<t.left+o.widget.outerWidth()?(t.right=i.width()-t.left-o.width,t.left="auto",o.widget.addClass("pull-right")):(t.right="auto",o.widget.removeClass("pull-right"));o.widget.css({position:u,top:t.top,left:t.left,right:t.right})},l=function(n,t){r(o.date).isSame(r(n))||(o.element.trigger({type:"dp.change",date:r(o.date),oldDate:r(n)}),t!=="change"&&o.element.change())},nt=function(n){o.element.trigger({type:"dp.error",date:r(n)})},a=function(n){r.lang(o.options.language);var t=n;t||(t=w().val(),t&&(o.date=r(t,o.format,o.options.useStrict)),o.date||(o.date=r()));o.viewDate=r(o.date).startOf("month");p();tt()},vt=function(){r.lang(o.options.language);var i=n("<tr>"),u=r.weekdaysMin(),t;if(r()._lang._week.dow==0)for(t=0;t<7;t++)i.append('<th class="dow">'+u[t]+"<\/th>");else for(t=1;t<8;t++)t==7?i.append('<th class="dow">'+u[0]+"<\/th>"):i.append('<th class="dow">'+u[t]+"<\/th>");o.widget.find(".datepicker-days thead").append(i)},yt=function(){r.lang(o.options.language);for(var n="",t=0,i=r.monthsShort();t<12;)n+='<span class="month">'+i[t++]+"<\/span>";o.widget.find(".datepicker-months td").append(n)},p=function(){r.lang(o.options.language);var t=o.viewDate.year(),h=o.viewDate.month(),e=o.options.minDate.year(),y=o.options.minDate.month(),s=o.options.maxDate.year(),p=o.options.maxDate.month(),i,w,c=[],v,f,u,b,k,l,a=r.months();for(o.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),o.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),o.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),o.widget.find(".datepicker-days th:eq(1)").text(a[h]+" "+t),i=r(o.viewDate).subtract("months",1),b=i.daysInMonth(),i.date(b).startOf("week"),(t==e&&h<=y||t<e)&&o.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(t==s&&h>=p||t>s)&&o.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),w=r(i).add(42,"d");i.isBefore(w);){if(i.weekday()===r().startOf("week").weekday()&&(v=n("<tr>"),c.push(v)),f="",i.year()<t||i.year()==t&&i.month()<h?f+=" old":(i.year()>t||i.year()==t&&i.month()>h)&&(f+=" new"),i.isSame(r({y:o.date.year(),M:o.date.month(),d:o.date.date()}))&&(f+=" active"),(d(i)||!st(i))&&(f+=" disabled"),o.options.showToday===!0&&i.isSame(r(),"day")&&(f+=" today"),o.options.daysOfWeekDisabled)for(u in o.options.daysOfWeekDisabled)if(i.day()==o.options.daysOfWeekDisabled[u]){f+=" disabled";break}v.append('<td class="day'+f+'">'+i.date()+"<\/td>");i.add(1,"d")}for(o.widget.find(".datepicker-days tbody").empty().append(c),l=o.date.year(),a=o.widget.find(".datepicker-months").find("th:eq(1)").text(t).end().find("span").removeClass("active"),l===t&&a.eq(o.date.month()).addClass("active"),l-1<e&&o.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),l+1>s&&o.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),u=0;u<12;u++)t==e&&y>u||t<e?n(a[u]).addClass("disabled"):(t==s&&p<u||t>s)&&n(a[u]).addClass("disabled");for(c="",t=parseInt(t/10,10)*10,k=o.widget.find(".datepicker-years").find("th:eq(1)").text(t+"-"+(t+9)).end().find("td"),o.widget.find(".datepicker-years").find("th").removeClass("disabled"),e>t&&o.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),s<t+9&&o.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),t-=1,u=-1;u<11;u++)c+='<span class="year'+(u===-1||u===10?" old":"")+(l===t?" active":"")+(t<e||t>s?" disabled":"")+'">'+t+"<\/span>",t+=1;k.html(c)},pt=function(){r.lang(o.options.language);var f=o.widget.find(".timepicker .timepicker-hours table"),n="",t,i,u;if(f.parent().hide(),o.use24hours)for(t=0,i=0;i<6;i+=1){for(n+="<tr>",u=0;u<4;u+=1)n+='<td class="hour">'+h(t.toString())+"<\/td>",t++;n+="<\/tr>"}else for(t=1,i=0;i<3;i+=1){for(n+="<tr>",u=0;u<4;u+=1)n+='<td class="hour">'+h(t.toString())+"<\/td>",t++;n+="<\/tr>"}f.html(n)},wt=function(){var f=o.widget.find(".timepicker .timepicker-minutes table"),n="",i=0,r,u,t=o.options.minuteStepping;for(f.parent().hide(),(t=1)&&(t=5),r=0;r<Math.ceil(15/t);r++){for(n+="<tr>",u=0;u<4;u+=1)i<60?(n+='<td class="minute">'+h(i.toString())+"<\/td>",i+=t):n+="<td><\/td>";n+="<\/tr>"}f.html(n)},bt=function(){var r=o.widget.find(".timepicker .timepicker-seconds table"),n="",u=0,t,i;for(r.parent().hide(),t=0;t<3;t++){for(n+="<tr>",i=0;i<4;i+=1)n+='<td class="second">'+h(u.toString())+"<\/td>",u+=5;n+="<\/tr>"}r.html(n)},tt=function(){if(o.date){var t=o.widget.find(".timepicker span[data-time-component]"),n=o.date.hours(),i="AM";o.use24hours||(n>=12&&(i="PM"),n===0?n=12:n!=12&&(n=n%12),o.widget.find(".timepicker [data-action=togglePeriod]").text(i));t.filter("[data-time-component=hours]").text(h(n));t.filter("[data-time-component=minutes]").text(h(o.date.minutes()));t.filter("[data-time-component=seconds]").text(h(o.date.second()))}},kt=function(t){t.stopPropagation();t.preventDefault();o.unset=!1;var i=n(t.target).closest("span, td, th"),u,f,e,h,c=r(o.date);if(i.length===1&&!i.is(".disabled"))switch(i[0].nodeName.toLowerCase()){case"th":switch(i[0].className){case"switch":k(1);break;case"prev":case"next":e=s.modes[o.viewMode].navStep;i[0].className==="prev"&&(e=e*-1);o.viewDate.add(e,s.modes[o.viewMode].navFnc);p()}break;case"span":i.is(".month")?(u=i.parent().find("span").index(i),o.viewDate.month(u)):(f=parseInt(i.text(),10)||0,o.viewDate.year(f));o.viewMode===o.minViewMode&&(o.date=r({y:o.viewDate.year(),M:o.viewDate.month(),d:o.viewDate.date(),h:o.date.hours(),m:o.date.minutes(),s:o.date.seconds()}),l(c,t.type),v());k(-1);p();break;case"td":i.is(".day")&&(h=parseInt(i.text(),10)||1,u=o.viewDate.month(),f=o.viewDate.year(),i.is(".old")?u===0?(u=11,f-=1):u-=1:i.is(".new")&&(u==11?(u=0,f+=1):u+=1),o.date=r({y:f,M:u,d:h,h:o.date.hours(),m:o.date.minutes(),s:o.date.seconds()}),o.viewDate=r({y:f,M:u,d:Math.min(28,h)}),p(),v(),l(c,t.type))}},b={incrementHours:function(){y("add","hours",1)},incrementMinutes:function(){y("add","minutes",o.options.minuteStepping)},incrementSeconds:function(){y("add","seconds",1)},decrementHours:function(){y("subtract","hours",1)},decrementMinutes:function(){y("subtract","minutes",o.options.minuteStepping)},decrementSeconds:function(){y("subtract","seconds",1)},togglePeriod:function(){var n=o.date.hours();n>=12?n-=12:n+=12;o.date.hours(n)},showPicker:function(){o.widget.find(".timepicker > div:not(.timepicker-picker)").hide();o.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){o.widget.find(".timepicker .timepicker-picker").hide();o.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){o.widget.find(".timepicker .timepicker-picker").hide();o.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){o.widget.find(".timepicker .timepicker-picker").hide();o.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var r=o.widget.find(".timepicker [data-action=togglePeriod]").text(),i=parseInt(n(t.target).text(),10);r=="PM"&&(i+=12);o.date.hours(i);b.showPicker.call(o)},selectMinute:function(t){o.date.minutes(parseInt(n(t.target).text(),10));b.showPicker.call(o)},selectSecond:function(t){o.date.seconds(parseInt(n(t.target).text(),10));b.showPicker.call(o)}},dt=function(t){var i=r(o.date),u=n(t.currentTarget).data("action"),f=b[u].apply(o,arguments);return it(t),o.date||(o.date=r({y:1970})),v(),tt(),l(i,t.type),f},it=function(n){n.stopPropagation();n.preventDefault()},ut=function(t){r.lang(o.options.language);var f=n(t.target),u=r(o.date),i=r(f.val(),o.format,o.options.useStrict);(o.options.pickDate||gt(f.val()))&&i.isValid()&&!d(i)&&st(i)?(a(),o.setValue(i),l(u,t.type),v()):(o.viewDate=u,l(u,t.type),nt(i),o.unset=!0)},gt=function(n){return/^(?:[0]?[0-9]|1[0-2])\:[0-5][0-9][ ]?(?:a|A|am|AM|p|P|pm|PM)?$/.test(n)},k=function(n){n&&(o.viewMode=Math.max(o.minViewMode,Math.min(2,o.viewMode+n)));var t=s.modes[o.viewMode].clsName;o.widget.find(".datepicker > div").hide().filter(".datepicker-"+s.modes[o.viewMode].clsName).show()},ft=function(){var i,r,t,f,u;o.widget.on("click",".datepicker *",n.proxy(kt,this));o.widget.on("click","[data-action]",n.proxy(dt,this));o.widget.on("mousedown",n.proxy(it,this));if(o.options.pickDate&&o.options.pickTime)o.widget.on("click.togglePicker",".accordion-toggle",function(e){if(e.stopPropagation(),i=n(this),r=i.closest("ul"),t=r.find(".in"),f=r.find(".collapse:not(.in)"),t&&t.length){if(u=t.data("collapse"),u&&u.date-transitioning)return;t.collapse("hide");f.collapse("show");i.find("span").toggleClass(o.options.icons.time+" "+o.options.icons.date);o.element.find(".input-group-addon span").toggleClass(o.options.icons.time+" "+o.options.icons.date)}});if(o.isInput)o.element.on({focus:n.proxy(o.show,this),change:n.proxy(ut,this),blur:n.proxy(o.hide,this)});else{o.element.on({change:n.proxy(ut,this)},"input");if(o.component)o.component.on("click",n.proxy(o.show,this));else o.element.on("click",n.proxy(o.show,this))}},ni=function(){n(window).on("resize.datetimepicker"+o.id,n.proxy(rt,this));if(!o.isInput)n(document).on("mousedown.datetimepicker"+o.id,n.proxy(o.hide,this))},et=function(){o.widget.off("click",".datepicker *",o.click);o.widget.off("click","[data-action]");o.widget.off("mousedown",o.stopEvent);o.options.pickDate&&o.options.pickTime&&o.widget.off("click.togglePicker");o.isInput?o.element.off({focus:o.show,change:o.change}):(o.element.off({change:o.change},"input"),o.component?o.component.off("click",o.show):o.element.off("click",o.show))},ot=function(){n(window).off("resize.datetimepicker"+o.id);o.isInput||n(document).off("mousedown.datetimepicker"+o.id)},ti=function(){if(o.element){for(var i=o.element.parents(),r=!1,t=0;t<i.length;t++)if(n(i[t]).css("position")=="fixed"){r=!0;break}return r}return!1},v=function(){r.lang(o.options.language);var n="";o.unset||(n=r(o.date).format(o.format));w().val(n);o.element.data("date",n);o.options.pickTime||o.hide()},y=function(n,t,i){r.lang(o.options.language);var u;if(n=="add"?(u=r(o.date),u.hours()==23&&u.add(i,t),u.add(i,t)):u=r(o.date).subtract(i,t),d(r(u.subtract(i,t)))||d(u)){nt(u.format(o.format));return}n=="add"?o.date.add(i,t):o.date.subtract(i,t);o.unset=!1},d=function(n){return(r.lang(o.options.language),n.isAfter(o.options.maxDate)||n.isBefore(o.options.minDate))?!0:o.options.disabledDates===!1?!1:o.options.disabledDates[r(n).format("YYYY-MM-DD")]===!0},st=function(n){return(r.lang(o.options.language),o.options.enabledDates===!1)?!0:o.options.enabledDates[r(n).format("YYYY-MM-DD")]===!0},g=function(n){var t={},u=0;for(i=0;i<n.length;i++)dDate=r(n[i]),dDate.isValid()&&(t[dDate.format("YYYY-MM-DD")]=!0,u++);return u>0?t:!1},h=function(n){return n=n.toString(),n.length>=2?n:"0"+n},ii=function(){if(o.options.pickDate&&o.options.pickTime){var n="";return n='<div class="bootstrap-datetimepicker-widget'+(o.options.sideBySide?" timepicker-sbs":"")+' dropdown-menu" style="z-index:9999 !important;">',n+=o.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+s.template+'<\/div><div class="col-sm-6 timepicker">'+c.getTemplate()+"<\/div><\/div>":'<ul class="list-unstyled"><li'+(o.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+s.template+'<\/div><\/li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+o.options.icons.time+'"><\/span><\/a><\/li><li'+(o.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+c.getTemplate()+"<\/div><\/li><\/ul>",n+"<\/div>"}return o.options.pickTime?'<div class="bootstrap-datetimepicker-widget timepicker-widget dropdown-menu"><div class="timepicker">'+c.getTemplate()+"<\/div><\/div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+s.template+"<\/div><\/div>"},s={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:'<thead><tr><th class="prev">&lsaquo;<\/th><th colspan="5" class="switch"><\/th><th class="next">&rsaquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>'},c={hourTemplate:'<span data-action="showHours"   data-time-component="hours"   class="timepicker-hour"><\/span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"><\/span>',secondTemplate:'<span data-action="showSeconds"  data-time-component="seconds" class="timepicker-second"><\/span>'};s.template='<div class="datepicker-days"><table class="table-condensed">'+s.headTemplate+'<tbody><\/tbody><\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+s.headTemplate+s.contTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+s.headTemplate+s.contTemplate+"<\/table><\/div>";c.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+o.options.icons.up+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(o.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+o.options.icons.up+'"><\/span><\/a>':"")+"<\/td>"+(o.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+o.options.icons.up+'"><\/span><\/a><\/td>':"")+(o.use24hours?"":'<td class="separator"><\/td>')+"<\/tr><tr><td>"+c.hourTemplate+'<\/td> <td class="separator">:<\/td><td>'+(o.options.useMinutes?c.minuteTemplate:'<span class="timepicker-minute">00<\/span>')+"<\/td> "+(o.options.useSeconds?'<td class="separator">:<\/td><td>'+c.secondTemplate+"<\/td>":"")+(o.use24hours?"":'<td class="separator"><\/td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"><\/button><\/td>')+'<\/tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+o.options.icons.down+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(o.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+o.options.icons.down+'"><\/span><\/a>':"")+"<\/td>"+(o.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+o.options.icons.down+'"><\/span><\/a><\/td>':"")+(o.use24hours?"":'<td class="separator"><\/td>')+'<\/tr><\/table><\/div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"><\/table><\/div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"><\/table><\/div>'+(o.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"><\/table><\/div>':"")};o.destroy=function(){et();ot();o.widget.remove();o.element.removeData("DateTimePicker");o.component&&o.component.removeData("DateTimePicker")};o.show=function(n){var i=w().val(),u;i==""?o.options.useCurrent===!0&&o.setValue(r().format(o.format)):i.length===8&&(i.indexOf("12:")===0&&(i="00"+i.substr(2)),u=r().startOf("day").add(t.duration(i)),i.indexOf("PM")>0&&u.add(12,"hours"),o.setValue(u));o.widget.show();o.height=o.component?o.component.outerHeight():o.element.outerHeight();rt();o.element.trigger({type:"dp.show",date:r(o.date)});ni();n&&it(n)};o.disable=function(){var n=o.element.find("input");n.prop("disabled")||(n.prop("disabled",!0),et())};o.enable=function(){var n=o.element.find("input");n.prop("disabled")&&(n.prop("disabled",!1),ft())};o.hide=function(t){if(!t||!n(t.target).is(o.element.attr("id"))){for(var f=o.widget.find(".collapse"),u,i=0;i<f.length;i++)if(u=f.eq(i).data("collapse"),u&&u.date-transitioning)return;o.widget.hide();o.viewMode=o.startViewMode;k();o.element.trigger({type:"dp.hide",date:r(o.date)});ot()}};o.setValue=function(n){r.lang(o.options.language);n?o.unset=!1:(o.unset=!0,v());r.isMoment(n)||(n=r(n));n.isValid()?(o.date=n,v(),o.viewDate=r({y:o.date.year(),M:o.date.month()}),p(),tt()):nt(n)};o.getDate=function(){return o.unset?null:o.date};o.setDate=function(n){var t=r(o.date);n?o.setValue(n):o.setValue(null);l(t,"function")};o.setDisabledDates=function(n){o.options.disabledDates=g(n);o.viewDate&&a()};o.setEnabledDates=function(n){o.options.enabledDates=g(n);o.viewDate&&a()};o.setMaxDate=function(n){n!=undefined&&(o.options.maxDate=r(n),o.viewDate&&a())};o.setMinDate=function(n){n!=undefined&&(o.options.minDate=r(n),o.viewDate&&a())};lt()};n.fn.datetimepicker=function(t){return this.each(function(){var i=n(this),r=i.data("DateTimePicker");r||i.data("DateTimePicker",new f(this,t))})}});"ace"in window||(window.ace={});ace.config={cookie_expiry:604800,cookie_path:"",storage_method:2};"vars"in window.ace||(window.ace.vars={});ace.vars.very_old_ie=!("querySelector"in document.documentElement);ace.settings={is:function(n,t){return 1==ace.data.get("settings",n+"-"+t)},exists:function(n,t){return null!==ace.data.get("settings",n+"-"+t)},set:function(n,t){ace.data.set("settings",n+"-"+t,1)},unset:function(n,t){ace.data.set("settings",n+"-"+t,-1)},remove:function(n,t){ace.data.remove("settings",n+"-"+t)},navbar_fixed:function(n,t,i,r){var n,u;if(ace.vars.very_old_ie||(n=n||"#navbar","string"==typeof n&&(n=document.querySelector(n)),!n))return!1;(t=t||!1,i=i&&!0,t||r===!1)||(u=null,(ace.settings.is("sidebar","fixed")||(u=document.getElementById("sidebar"))&&ace.hasClass(u,"sidebar-fixed"))&&ace.settings.sidebar_fixed(u,!1,i));t?(ace.hasClass(n,"navbar-fixed-top")||ace.addClass(n,"navbar-fixed-top"),i!==!1&&ace.settings.set("navbar","fixed")):(ace.removeClass(n,"navbar-fixed-top"),i!==!1&&ace.settings.unset("navbar","fixed"));try{document.getElementById("ace-settings-navbar").checked=t}catch(f){}window.jQuery&&jQuery(document).trigger("settings.ace",["navbar_fixed",t,n])},sidebar_fixed:function(n,t,i,r){var n,f,u;if(ace.vars.very_old_ie||(n=n||"#sidebar","string"==typeof n&&(n=document.querySelector(n)),!n))return!1;(t=t||!1,i=i&&!0,t||r===!1)||(f=null,(ace.settings.is("breadcrumbs","fixed")||(f=document.getElementById("breadcrumbs"))&&ace.hasClass(f,"breadcrumbs-fixed"))&&ace.settings.breadcrumbs_fixed(f,!1,i));(t&&r!==!1&&!ace.settings.is("navbar","fixed")&&ace.settings.navbar_fixed(null,!0,i),t)?(ace.hasClass(n,"sidebar-fixed")||(ace.addClass(n,"sidebar-fixed"),u=document.getElementById("menu-toggler"),u&&ace.addClass(u,"fixed")),i!==!1&&ace.settings.set("sidebar","fixed")):(ace.removeClass(n,"sidebar-fixed"),u=document.getElementById("menu-toggler"),u&&ace.removeClass(u,"fixed"),i!==!1&&ace.settings.unset("sidebar","fixed"));try{document.getElementById("ace-settings-sidebar").checked=t}catch(e){}window.jQuery&&jQuery(document).trigger("settings.ace",["sidebar_fixed",t,n])},breadcrumbs_fixed:function(n,t,i,r){if(ace.vars.very_old_ie)return!1;var n=n||"#breadcrumbs";if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;t=t||!1;i=i&&!0;t&&r!==!1&&!ace.settings.is("sidebar","fixed")&&ace.settings.sidebar_fixed(null,!0,i);t?(ace.hasClass(n,"breadcrumbs-fixed")||ace.addClass(n,"breadcrumbs-fixed"),i!==!1&&ace.settings.set("breadcrumbs","fixed")):(ace.removeClass(n,"breadcrumbs-fixed"),i!==!1&&ace.settings.unset("breadcrumbs","fixed"));try{document.getElementById("ace-settings-breadcrumbs").checked=t}catch(u){}window.jQuery&&jQuery(document).trigger("settings.ace",["breadcrumbs_fixed",t,n])},main_container_fixed:function(n,t,i){var n,r,u;if(ace.vars.very_old_ie||(t=t||!1,i=i&&!0,n=n||"#main-container","string"==typeof n&&(n=document.querySelector(n)),!n))return!1;r=document.getElementById("navbar-container");t?(ace.hasClass(n,"container")||ace.addClass(n,"container"),r&&!ace.hasClass(r,"container")&&ace.addClass(r,"container"),i!==!1&&ace.settings.set("main-container","fixed")):(ace.removeClass(n,"container"),r&&ace.removeClass(r,"container"),i!==!1&&ace.settings.unset("main-container","fixed"));try{document.getElementById("ace-settings-add-container").checked=t}catch(f){}navigator.userAgent.match(/webkit/i)&&(u=document.getElementById("sidebar"),ace.toggleClass(u,"menu-min"),setTimeout(function(){ace.toggleClass(u,"menu-min")},0));window.jQuery&&jQuery(document).trigger("settings.ace",["main_container_fixed",t,n])},sidebar_collapsed:function(n,t,i){var n,u,f,e,r;if(ace.vars.very_old_ie||(n=n||"#sidebar","string"==typeof n&&(n=document.querySelector(n)),!n))return!1;if(t=t||!1,t?(ace.addClass(n,"menu-min"),i!==!1&&ace.settings.set("sidebar","collapsed")):(ace.removeClass(n,"menu-min"),i!==!1&&ace.settings.unset("sidebar","collapsed")),window.jQuery&&jQuery(document).trigger("settings.ace",["sidebar_collapsed",t,n]),!window.jQuery){if(u=document.querySelector('.sidebar-collapse[data-target="#'+(n.getAttribute("id")||"")+'"]'),u||(u=n.querySelector(".sidebar-collapse")),!u)return;if(r=u.querySelector("[data-icon1][data-icon2]"),!r)return;f=r.getAttribute("data-icon1");e=r.getAttribute("data-icon2");t?(ace.removeClass(r,f),ace.addClass(r,e)):(ace.removeClass(r,e),ace.addClass(r,f))}}};ace.settings.check=function(n,t){if(ace.settings.exists(n,t)){var i=ace.settings.is(n,t),r=document.getElementById(n);i!=ace.hasClass(r,{"navbar-fixed":"navbar-fixed-top","sidebar-fixed":"sidebar-fixed","breadcrumbs-fixed":"breadcrumbs-fixed","sidebar-collapsed":"menu-min","main-container-fixed":"container"}[n+"-"+t])&&ace.settings[n.replace("-","_")+"_"+t](null,i)}};ace.data_storage=function(n,t){var r="ace_",i=null,u=0;(1==n||n===t)&&"localStorage"in window&&null!==window.localStorage?(i=ace.storage,u=1):null==i&&(2==n||n===t)&&"cookie"in document&&null!==document.cookie&&(i=ace.cookie,u=2);this.set=function(n,t,f,e,o){if(i)if(f===o)f=t,t=n,null==f?i.remove(r+t):1==u?i.set(r+t,f):2==u&&i.set(r+t,f,ace.config.cookie_expiry,e||ace.config.cookie_path);else if(1==u)null==f?i.remove(r+n+"_"+t):i.set(r+n+"_"+t,f);else if(2==u){var h=i.get(r+n),s=h?JSON.parse(h):{};if(null==f){if(delete s[t],0==ace.sizeof(s))return void i.remove(r+n)}else s[t]=f;i.set(r+n,JSON.stringify(s),ace.config.cookie_expiry,e||ace.config.cookie_path)}};this.get=function(n,t,f){if(!i)return null;if(t===f)return t=n,i.get(r+t);if(1==u)return i.get(r+n+"_"+t);if(2==u){var e=i.get(r+n),o=e?JSON.parse(e):{};return t in o?o[t]:null}};this.remove=function(n,t,r){i&&(t===r?(t=n,this.set(t,null)):this.set(n,t,null))}};ace.cookie={get:function(n){var r,t,i=document.cookie,u=n+"=";if(i){if(t=i.indexOf("; "+u),-1==t){if(t=i.indexOf(u),0!=t)return null}else t+=2;return r=i.indexOf(";",t),-1==r&&(r=i.length),decodeURIComponent(i.substring(t+u.length,r))}},set:function(n,t,i,r,u,f){var e=new Date;"object"==typeof i&&i.toGMTString?i=i.toGMTString():parseInt(i,10)?(e.setTime(e.getTime()+1e3*parseInt(i,10)),i=e.toGMTString()):i="";document.cookie=n+"="+encodeURIComponent(t)+(i?"; expires="+i:"")+(r?"; path="+r:"")+(u?"; domain="+u:"")+(f?"; secure":"")},remove:function(n,t){this.set(n,"",-1e3,t)}};ace.storage={get:function(n){return window.localStorage.getItem(n)},set:function(n,t){window.localStorage.setItem(n,t)},remove:function(n){window.localStorage.removeItem(n)}};ace.sizeof=function(n){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t};ace.hasClass=function(n,t){return(" "+n.className+" ").indexOf(" "+t+" ")>-1};ace.addClass=function(n,t){if(!ace.hasClass(n,t)){var i=n.className;n.className=i+(i.length?" ":"")+t}};ace.removeClass=function(n,t){ace.replaceClass(n,t)};ace.replaceClass=function(n,t,i){var r=new RegExp("(^|\\s)"+t+"(\\s|$)","i");n.className=n.className.replace(r,function(n,t,r){return i?t+i+r:" "}).replace(/^\s+|\s+$/g,"")};ace.toggleClass=function(n,t){ace.hasClass(n,t)?ace.removeClass(n,t):ace.addClass(n,t)};ace.isHTTMlElement=function(n){return window.HTMLElement?n instanceof HTMLElement:"nodeType"in n?1==n.nodeType:!1};ace.data=new ace.data_storage(ace.config.storage_method);!function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n){var u=i();t||r(u);h(n,u)||g(u)}function d(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i){return t&&0===n(":focus",t).length?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;<\/button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function c(n){o&&o(n)}function u(u){function v(t){if(!n(":focus",o).length||t)return(clearTimeout(h.intervalId),o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}}))}function g(){(f.timeOut>0||f.extendedTimeOut>0)&&(w=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function nt(){clearTimeout(w);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function tt(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),p=u.iconClass||f.iconClass;if("undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),p=u.optionsOverride.iconClass||p),f.preventDuplicates){if(u.message===s)return;s=u.message}l++;t=r(f,!0);var w=null,o=n("<div/>"),k=n("<div/>"),d=n("<div/>"),b=n("<div/>"),y=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(p),u.title&&(k.append(u.title).addClass(f.titleClass),o.append(k)),u.message&&(d.append(u.message).addClass(f.messageClass),o.append(d)),f.closeButton&&(y.addClass("toast-close-button").attr("role","button"),o.prepend(y)),f.progressBar&&(b.addClass("toast-progress"),o.prepend(b)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(w=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(tt,10))),o.hover(nt,g),!f.onclick&&f.tapToDismiss&&o.click(v),f.closeButton&&y&&y.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);v(!0)}),f.onclick&&o.click(function(){f.onclick();v()}),c(a),f.debug&&console&&console.log(a),o}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.0",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})