Last active
March 2, 2022 01:58
-
-
Save tagr/26f267953a419447595908fabf426253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.origin||(window.location.origin=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));typeof Array.prototype.filter=="undefined"&&(Array.prototype.filter=function(n){"use strict";var i,f,r,e,t,u;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),f=i.length>>>0,typeof n!="function")throw new TypeError;for(r=[],e=arguments[1],t=0;t<f;t++)t in i&&(u=i[t],n.call(e,u,t,i)&&r.push(u));return r});typeof Array.prototype.find=="undefined"&&Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined},configurable:!0,writable:!0});window.$xa=function(){var n,t; | |
//! moment.js | |
//! version : 2.27.0 | |
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors | |
//! license : MIT | |
//! momentjs.com | |
(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()})(this,function(){"use strict";function t(){return gf.apply(null,arguments)}function ih(n){gf=n}function rt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function ti(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function s(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function hu(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;for(var t in n)if(s(n,t))return!1;return!0}function k(n){return n===void 0}function vt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function pi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function ne(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function dt(n,t){for(var i in t)s(t,i)&&(n[i]=t[i]);return s(t,"toString")&&(n.toString=t.toString),s(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ot(n,t,i,r){return vo(n,t,i,r,!0).utc()}function rh(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=rh()),n._pf}function cu(n){if(n._isValid==null){var t=u(n),r=te.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function rr(n){var t=ot(NaN);return n!=null?dt(u(t),n):u(t).userInvalidated=!0,t}function lu(n,t){var i,r,f;if(k(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),k(t._i)||(n._i=t._i),k(t._f)||(n._f=t._f),k(t._l)||(n._l=t._l),k(t._strict)||(n._strict=t._strict),k(t._tzm)||(n._tzm=t._tzm),k(t._isUTC)||(n._isUTC=t._isUTC),k(t._offset)||(n._offset=t._offset),k(t._pf)||(n._pf=u(t)),k(t._locale)||(n._locale=t._locale),ur.length>0)for(i=0;i<ur.length;i++)r=ur[i],f=t[r],k(f)||(n[r]=f);return n}function wi(n){lu(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));fr===!1&&(fr=!0,t.updateOffset(this),fr=!1)}function ut(n){return n instanceof wi||n!=null&&n._isAMomentObject!=null}function ie(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function nt(n,i){var r=!0;return dt(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(var o=[],u,e,f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(e in arguments[0])s(arguments[0],e)&&(u+=e+": "+arguments[0][e]+", ");u=u.slice(0,-2)}else u=arguments[f];o.push(u)}ie(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack);r=!1}return i.apply(this,arguments)},i)}function re(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i);au[n]||(ie(i),au[n]=!0)}function st(n){return typeof Function!="undefined"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function uh(n){var t;for(var i in n)s(n,i)&&(t=n[i],st(t)?this[i]=t:this["_"+i]=t);this._config=n;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function vu(n,t){var r=dt({},n);for(var i in t)s(t,i)&&(ti(n[i])&&ti(t[i])?(r[i]={},dt(r[i],n[i]),dt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)s(n,i)&&!s(t,i)&&ti(n[i])&&(r[i]=dt({},r[i]));return r}function yu(n){n!=null&&this.set(n)}function fh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return st(r)?r.call(t,i):r}function ht(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(ei[n]=u);t&&(ei[t[0]]=function(){return ht(u.apply(this,arguments),t[1],t[2])});i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function eh(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function oh(n){for(var t=n.match(pu),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:eh(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=st(t[u])?t[u].call(i,n):t[u];return f}}function or(n,t){return n.isValid()?(t=ee(t,n.localeData()),wu[t]=wu[t]||oh(t),wu[t](n)):n.localeData().invalidDate()}function ee(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(er.lastIndex=0;i>=0&&er.test(n);)n=n.replace(er,r),er.lastIndex=0,i-=1;return n}function sh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.match(pu).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[n])}function hh(){return this._invalidDate}function ch(n){return this._ordinal.replace("%d",n)}function lh(n,t,i,r){var u=this._relativeTime[i];return st(u)?u(n,t,i,r):u.replace(/%d/i,n)}function ah(n,t){var i=this._relativeTime[n>0?"future":"past"];return st(i)?i(t):i.replace(/%s/i,t)}function p(n,t){var i=n.toLowerCase();oi[i]=oi[i+"s"]=oi[t]=n}function tt(n){return typeof n=="string"?oi[n]||oi[n.toLowerCase()]:undefined}function bu(n){var r={},t;for(var i in n)s(n,i)&&(t=tt(i),t&&(r[t]=n[i]));return r}function w(n,t){ku[n]=t}function vh(n){var t=[];for(var i in n)s(n,i)&&t.push({unit:i,priority:ku[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function sr(n){return n%4==0&&n%100!=0||n%400==0}function it(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=it(t)),i}function si(n,i){return function(r){return r!=null?(ae(this,n,r),t.updateOffset(this,i),this):hr(this,n)}}function hr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function ae(n,t,i){n.isValid()&&!isNaN(i)&&(t==="FullYear"&&sr(n.year())&&n.month()===1&&n.date()===29?(i=f(i),n._d["set"+(n._isUTC?"UTC":"")+t](i,n.month(),br(i,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+t](i))}function yh(n){return(n=tt(n),st(this[n]))?this[n]():this}function ph(n,t){if(typeof n=="object"){n=bu(n);for(var r=vh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit])}else if(n=tt(n),st(this[n]))return this[n](t);return this}function i(n,t,i){pr[n]=st(t)?t:function(n){return n&&i?i:t}}function bh(n,t){return s(pr,n)?pr[n](t._strict,t._locale):new RegExp(kh(n))}function kh(n){return g(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function g(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),vt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)wr[n[i]]=r}function ki(n,t){h(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function dh(n,t,i){t!=null&&s(wr,n)&&wr[n](t,i._a,i,n)}function tc(n,t){return(n%t+t)%t}function br(n,t){if(isNaN(n)||isNaN(t))return NaN;var i=tc(t,12);return n+=(t-i)/12,i===1?sr(n)?29:28:31-i%7%2}function fc(n,t){return n?rt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][n.month()]:rt(this._months)?this._months:this._months.standalone}function ec(n,t){return n?rt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][n.month()]:rt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ot([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=v.call(this._shortMonthsParse,f),r!==-1)?r:(r=v.call(this._longMonthsParse,f),r!==-1?r:null):(r=v.call(this._longMonthsParse,f),r!==-1)?r:(r=v.call(this._shortMonthsParse,f),r!==-1?r:null)}function sc(n,t,i){var r,u,f;if(this._monthsParseExact)return oc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ot([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function de(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!vt(t))return n;return i=Math.min(n.date(),br(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ge(n){return n!=null?(de(this,n),t.updateOffset(this,!0),this):hr(this,"Month")}function hc(){return br(this.year(),this.month())}function cc(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rc),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function lc(n){return this._monthsParseExact?(s(this,"_monthsRegex")||no.call(this),n?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=uc),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function no(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ot([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=g(i[n]),r[n]=g(r[n]);for(n=0;n<24;n++)t[n]=g(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function di(n){return sr(n)?366:365}function ac(){return sr(this.year())}function vc(n,t,i,r,u,f,e){var o;return n<100&&n>=0?(o=new Date(n+400,t,i,r,u,f,e),isFinite(o.getFullYear())&&o.setFullYear(n)):o=new Date(n,t,i,r,u,f,e),o}function gi(n){var t,i;return n<100&&n>=0?(i=Array.prototype.slice.call(arguments),i[0]=n+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n)):t=new Date(Date.UTC.apply(null,arguments)),t}function kr(n,t,i){var r=7+t-i,u=(7+gi(n,0,r).getUTCDay()-t)%7;return-u+r-1}function to(n,t,i,r,u){var s=(7+i-r)%7,h=kr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=di(e)+f):f>di(n)?(e=n+1,o=f-di(n)):(e=n,o=f),{year:e,dayOfYear:o}}function nr(n,t,i){var e=kr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+wt(u,t,i)):r>wt(n.year(),t,i)?(f=r-wt(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function wt(n,t,i){var r=kr(n,t,i),u=kr(n+1,t,i);return(di(n)-r+u)/7}function yc(n){return nr(n,this._week.dow,this._week.doy).week}function pc(){return this._week.dow}function wc(){return this._week.doy}function bc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function kc(n){var t=nr(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function dc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function gc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function tf(n,t){return n.slice(t,7).concat(n.slice(0,t))}function fl(n,t){var i=rt(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return n===!0?tf(i,this._week.dow):n?i[n.day()]:i}function el(n){return n===!0?tf(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function ol(n){return n===!0?tf(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function sl(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ot([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=v.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=v.call(this._minWeekdaysParse,u),r!==-1)?r:(r=v.call(this._weekdaysParse,u),r!==-1)?r:(r=v.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function hl(n,t,i){var r,u,f;if(this._weekdaysParseExact)return sl.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ot([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function cl(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=dc(n,this.localeData()),this.add(n-t,"d")):t}function ll(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function al(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=gc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function vl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=il),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function yl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=rl),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function pl(n){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||rf.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ul),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function rf(){function t(n,t){return t.length-n.length}for(var u=[],f=[],e=[],n=[],r,o,s,h,i=0;i<7;i++)r=ot([2e3,1]).day(i),o=g(this.weekdaysMin(r,"")),s=g(this.weekdaysShort(r,"")),h=g(this.weekdays(r,"")),u.push(o),f.push(s),e.push(h),n.push(o),n.push(s),n.push(h);u.sort(t);f.sort(t);e.sort(t);n.sort(t);this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+f.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function uf(){return this.hours()%12||12}function wl(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function bl(n){return(n+"").toLowerCase().charAt(0)==="p"}function kl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function dl(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i+=1)if(n[i]!==t[i])return i;return r}function ho(n){return n?n.toLowerCase().replace("_","-"):n}function gl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=ho(n[r]).split("-"),i=u.length,t=ho(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=dr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&dl(u,t)>=i-1)break;i--}r++}return ir}function dr(n){var t=null,i;if(a[n]===undefined&&typeof module!="undefined"&&module&&module.exports)try{t=ir._abbr;i=require;i("./locale/"+n);gt(t)}catch(r){a[n]=null}return a[n]}function gt(n,t){var i;return n&&(i=k(t)?bt(n):ff(n,t),i?ir=i:typeof console!="undefined"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ir._abbr}function ff(n,t){if(t!==null){var r,i=so;if(t.abbr=n,a[n]!=null)re("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else if(r=dr(t.parentLocale),r!=null)i=r._config;else return tr[t.parentLocale]||(tr[t.parentLocale]=[]),tr[t.parentLocale].push({name:n,config:t}),null;return a[n]=new yu(vu(i,t)),tr[n]&&tr[n].forEach(function(n){ff(n.name,n.config)}),gt(n),a[n]}return delete a[n],null}function na(n,t){if(t!=null){var r,i,u=so;a[n]!=null&&a[n].parentLocale!=null?a[n].set(vu(a[n]._config,t)):(i=dr(n),i!=null&&(u=i._config),t=vu(u,t),i==null&&(t.abbr=n),r=new yu(t),r.parentLocale=a[n],a[n]=r);gt(n)}else a[n]!=null&&(a[n].parentLocale!=null?(a[n]=a[n].parentLocale,n===gt()&>(n)):a[n]!=null&&delete a[n]);return a[n]}function bt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ir;if(!rt(n)){if(t=dr(n),t)return t;n=[n]}return gl(n)}function ta(){return ue(a)}function ef(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[yt]<0||t[yt]>11?yt:t[ct]<1||t[ct]>br(t[b],t[yt])?ct:t[y]<0||t[y]>24||t[y]===24&&(t[ft]!==0||t[pt]!==0||t[ii]!==0)?y:t[ft]<0||t[ft]>59?ft:t[pt]<0||t[pt]>59?pt:t[ii]<0||t[ii]>999?ii:-1,u(n)._overflowDayOfYear&&(i<b||i>ct)&&(i=ct),u(n)._overflowWeeks&&i===-1&&(i=gh),u(n)._overflowWeekday&&i===-1&&(i=nc),u(n).overflow=i),n}function co(n){var t,r,o=n._i,i=ia.exec(o)||ra.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=gr.length;t<r;t++)if(gr[t][1].exec(i[1])){e=gr[t][0];s=gr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=of.length;t<r;t++)if(of[t][1].exec(i[3])){f=(i[2]||" ")+of[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(ua.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||"");hf(n)}else n._isValid=!1}function sa(n,t,i,r,u,f){var e=[ha(n),be.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(u,10),];return f&&e.push(parseInt(f,10)),e}function ha(n){var t=parseInt(n,10);return t<=49?2e3+t:t<=999?1900+t:t}function ca(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function la(n,t,i){if(n){var r=ro.indexOf(n),f=new Date(t[0],t[1],t[2]).getDay();if(r!==f)return u(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function aa(n,t,i){if(n)return oa[n];if(t)return 0;var r=parseInt(i,10),u=r%100,f=(r-u)/100;return f*60+u}function lo(n){var t=ea.exec(ca(n._i)),i;if(t){if(i=sa(t[4],t[3],t[2],t[5],t[6],t[7]),!la(t[1],i,n))return;n._a=i;n._tzm=aa(t[8],t[9],t[10]);n._d=gi.apply(null,n._a);n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);u(n).rfc2822=!0}else n._isValid=!1}function va(n){var i=fa.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(co(n),n._isValid===!1)delete n._isValid;else return;if(lo(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:t.createFromInputFallback(n)}function ci(n,t,i){return n!=null?n:t!=null?t:i}function ya(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),]:[i.getFullYear(),i.getMonth(),i.getDate()]}function sf(n){var t,i,r=[],f,o,e;if(!n._d){for(f=ya(n),n._w&&n._a[ct]==null&&n._a[yt]==null&&pa(n),n._dayOfYear!=null&&(e=ci(n._a[b],f[b]),(n._dayOfYear>di(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=gi(e,0,n._dayOfYear),n._a[yt]=i.getUTCMonth(),n._a[ct]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[y]===24&&n._a[ft]===0&&n._a[pt]===0&&n._a[ii]===0&&(n._nextDay=!0,n._a[y]=0);n._d=(n._useUTC?gi:vc).apply(null,r);o=n._useUTC?n._d.getUTCDay():n._d.getDay();n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[y]=24);n._w&&typeof n._w.d!="undefined"&&n._w.d!==o&&(u(n).weekdayMismatch=!0)}}function pa(n){var t,o,f,i,r,e,h,s,c;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=ci(t.GG,n._a[b],nr(l(),1,4).year),f=ci(t.W,1),i=ci(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,c=nr(l(),r,e),o=ci(t.gg,n._a[b],c.year),f=ci(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r);f<1||f>wt(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=to(o,f,i,r,e),n._a[b]=h.year,n._dayOfYear=h.dayOfYear)}function hf(n){if(n._f===t.ISO_8601){co(n);return}if(n._f===t.RFC_2822){lo(n);return}n._a=[];u(n).empty=!0;for(var i=""+n._i,r,f,s,l=i.length,c=0,h,o=ee(n._f,n._locale).match(pu)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(bh(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),c+=r.length),ei[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),dh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=l-c;i.length>0&&u(n).unusedInput.push(i);n._a[y]<=12&&u(n).bigHour===!0&&n._a[y]>0&&(u(n).bigHour=undefined);u(n).parsedDateParts=n._a.slice(0);u(n).meridiem=n._meridiem;n._a[y]=wa(n._locale,n._a[y],n._meridiem);h=u(n).era;h!==null&&(n._a[b]=n._locale.erasConvertYear(h,n._a[b]));sf(n);ef(n)}function wa(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function ba(n){var t,o,r,f,i,e,s=!1;if(n._f.length===0){u(n).invalidFormat=!0;n._d=new Date(NaN);return}for(f=0;f<n._f.length;f++)i=0,e=!1,t=lu({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[f],hf(t),cu(t)&&(e=!0),i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,s?i<r&&(r=i,o=t):(r==null||i<r||e)&&(r=i,o=t,e&&(s=!0));dt(n,o||t)}function ka(n){if(!n._d){var t=bu(n._i),i=t.day===undefined?t.date:t.day;n._a=ne([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)});sf(n)}}function da(n){var t=new wi(ef(ao(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function ao(n){var t=n._i,i=n._f;return(n._locale=n._locale||bt(n._l),t===null||i===undefined&&t==="")?rr({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),ut(t))?new wi(ef(t)):(pi(t)?n._d=t:rt(i)?ba(n):i?hf(n):ga(n),cu(n)||(n._d=null),n)}function ga(n){var i=n._i;k(i)?n._d=new Date(t.now()):pi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?va(n):rt(i)?(n._a=ne(i.slice(0),function(n){return parseInt(n,10)}),sf(n)):ti(i)?ka(n):vt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function vo(n,t,i,r,u){var f={};return(t===!0||t===!1)&&(r=t,t=undefined),(i===!0||i===!1)&&(r=i,i=undefined),(ti(n)&&hu(n)||rt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,da(f)}function l(n,t,i,r){return vo(n,t,i,r,!1)}function wo(n,t){var r,i;if(t.length===1&&rt(t[0])&&(t=t[0]),!t.length)return l();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function nv(){var n=[].slice.call(arguments,0);return wo("isBefore",n)}function tv(){var n=[].slice.call(arguments,0);return wo("isAfter",n)}function iv(n){var i,r=!1,t;for(i in n)if(s(n,i)&&!(v.call(li,i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(t=0;t<li.length;++t)if(n[li[t]]){if(r)return!1;parseFloat(n[li[t]])!==f(n[li[t]])&&(r=!0)}return!0}function rv(){return this._isValid}function uv(){return et(NaN)}function nu(n){var t=bu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||t.isoWeek||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=iv(t);this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=bt();this._bubble()}function tu(n){return n instanceof nu}function cf(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function fv(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function ko(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ht(~~(n/60),2)+t+ht(~~n%60,2)})}function lf(n,t){var u=(t||"").match(n),e,i,r;return u===null?null:(e=u[u.length-1]||[],i=(e+"").match(go)||["-",0,0],r=+(i[1]*60)+f(i[2]),r===0?0:i[0]==="+"?r:-r)}function af(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(ut(n)||pi(n)?n.valueOf():l(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):l(n).local()}function vf(n){return-Math.round(n._d.getTimezoneOffset())}function ev(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=lf(yr,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=vf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?fs(this,et(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:vf(this)}function ov(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function sv(n){return this.utcOffset(0,n)}function hv(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(vf(this),"m")),this}function cv(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=lf(wh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function lv(n){return this.isValid()?(n=n?l(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function av(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vv(){if(!k(this._isDSTShifted))return this._isDSTShifted;var n={},t;return lu(n,this),n=ao(n),n._a?(t=n._isUTC?ot(n._a):l(n._a),this._isDSTShifted=this.isValid()&&fv(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yv(){return this.isValid()?!this._isUTC:!1}function pv(){return this.isValid()?this._isUTC:!1}function ns(){return this.isValid()?this._isUTC&&this._offset===0:!1}function et(n,t){var i=n,r=null,u,e,o;return tu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:vt(n)||!isNaN(+n)?(i={},t?i[t]=+n:i.milliseconds=+n):(r=ts.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ct])*u,h:f(r[y])*u,m:f(r[ft])*u,s:f(r[pt])*u,ms:f(cf(r[ii]*1e3))*u}):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:ri(r[2],u),M:ri(r[3],u),w:ri(r[4],u),d:ri(r[5],u),h:ri(r[6],u),m:ri(r[7],u),s:ri(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=wv(l(i.from),l(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new nu(i),tu(n)&&s(n,"_locale")&&(e._locale=n._locale),tu(n)&&s(n,"_isValid")&&(e._isValid=n._isValid),e}function ri(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function rs(n,t){var i={};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function wv(n,t){var i;return(n.isValid()&&t.isValid())?(t=af(t,n),n.isBefore(t)?i=rs(n,t):(i=rs(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function us(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(re(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),u=et(i,r),fs(this,u,n),this}}function fs(n,i,r,u){var o=i._milliseconds,f=cf(i._days),e=cf(i._months);n.isValid()&&(u=u==null?!0:u,e&&de(n,hr(n,"Month")+e*r),f&&ae(n,"Date",hr(n,"Date")+f*r),o&&n._d.setTime(n._d.valueOf()+o*r),u&&t.updateOffset(n,f||e))}function ss(n){return typeof n=="string"||n instanceof String}function bv(n){return ut(n)||pi(n)||ss(n)||vt(n)||dv(n)||kv(n)||n===null||n===undefined}function kv(n){for(var f=ti(n)&&!hu(n),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms",],u,t=0;t<r.length;t+=1)u=r[t],i=i||s(n,u);return f&&i}function dv(n){var t=rt(n),i=!1;return t&&(i=n.filter(function(t){return!vt(t)&&ss(n)}).length===0),t&&i}function gv(n){for(var f=ti(n)&&!hu(n),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse",],u,t=0;t<r.length;t+=1)u=r[t],i=i||s(n,u);return f&&i}function ny(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ty(n,i){arguments.length===1&&(bv(arguments[0])?(n=arguments[0],i=undefined):gv(arguments[0])&&(i=arguments[0],n=undefined));var u=n||l(),f=af(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(st(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,l(u)))}function iy(){return new wi(this)}function ry(n,t){var i=ut(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function uy(n,t){var i=ut(n)?n:l(n);return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function fy(n,t,i,r){var u=ut(n)?n:l(n),f=ut(t)?t:l(t);return(this.isValid()&&u.isValid()&&f.isValid())?(r=r||"()",(r[0]==="("?this.isAfter(u,i):!this.isBefore(u,i))&&(r[1]===")"?this.isBefore(f,i):!this.isAfter(f,i))):!1}function ey(n,t){var i=ut(n)?n:l(n),r;return(this.isValid()&&i.isValid())?(t=tt(t)||"millisecond",t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function oy(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function sy(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function hy(n,t,i){var r,f,u;if(!this.isValid())return NaN;if(r=af(n,this),!r.isValid())return NaN;f=(r.utcOffset()-this.utcOffset())*6e4;t=tt(t);switch(t){case"year":u=iu(this,r)/12;break;case"month":u=iu(this,r);break;case"quarter":u=iu(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-f)/864e5;break;case"week":u=(this-r-f)/6048e5;break;default:u=this-r}return i?u:it(u)}function iu(n,t){if(n.date()<t.date())return-iu(t,n);var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function cy(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ly(n){if(!this.isValid())return null;var i=n!==!0,t=i?this.clone().utc():this;return t.year()<0||t.year()>9999?or(t,i?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):st(Date.prototype.toISOString)?i?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*6e4).toISOString().replace("Z",or(t,"Z")):or(t,i?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ay(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",t="",i,r,u,f;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",f=t+'[")]',this.format(i+r+u+f)}function vy(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=or(this,n);return this.localeData().postformat(i)}function yy(n,t){return this.isValid()&&(ut(n)&&n.isValid()||l(n).isValid())?et({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function py(n){return this.from(l(),n)}function wy(n,t){return this.isValid()&&(ut(n)&&n.isValid()||l(n).isValid())?et({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function by(n){return this.to(l(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=bt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function vi(n,t){return(n%t+t)%t}function as(n,t,i){return n<100&&n>=0?new Date(n+400,t,i)-ls:new Date(n,t,i).valueOf()}function vs(n,t,i){return n<100&&n>=0?Date.UTC(n+400,t,i)-ls:Date.UTC(n,t,i)}function ky(n){var i,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year(),0,1);break;case"quarter":i=r(this.year(),this.month()-this.month()%3,1);break;case"month":i=r(this.year(),this.month(),1);break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=r(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf();i-=vi(i+(this._isUTC?0:this.utcOffset()*ai),uu);break;case"minute":i=this._d.valueOf();i-=vi(i,ai);break;case"second":i=this._d.valueOf();i-=vi(i,ru)}return this._d.setTime(i),t.updateOffset(this,!0),this}function dy(n){var i,r;if(n=tt(n),n===undefined||n==="millisecond"||!this.isValid())return this;r=this._isUTC?vs:as;switch(n){case"year":i=r(this.year()+1,0,1)-1;break;case"quarter":i=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=r(this.year(),this.month()+1,1)-1;break;case"week":i=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf();i+=uu-vi(i+(this._isUTC?0:this.utcOffset()*ai),uu)-1;break;case"minute":i=this._d.valueOf();i+=ai-vi(i,ai)-1;break;case"second":i=this._d.valueOf();i+=ru-vi(i,ru)-1}return this._d.setTime(i),t.updateOffset(this,!0),this}function gy(){return this._d.valueOf()-(this._offset||0)*6e4}function np(){return Math.floor(this.valueOf()/1e3)}function tp(){return new Date(this.valueOf())}function ip(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond(),]}function rp(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function up(){return this.isValid()?this.toISOString():null}function fp(){return cu(this)}function ep(){return dt({},u(this))}function op(){return u(this).overflow}function sp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function hp(){for(var r,i=this._eras||bt("en")._eras,n=0,u=i.length;n<u;++n){switch(typeof i[n].since){case"string":r=t(i[n].since).startOf("day");i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=+Infinity;break;case"string":r=t(i[n].until).startOf("day").valueOf();i[n].until=r.valueOf()}}return i}function cp(n,t,i){var r,s,u=this.eras(),f,e,o;for(n=n.toUpperCase(),r=0,s=u.length;r<s;++r)if(f=u[r].name.toUpperCase(),e=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(e===n)return u[r];break;case"NNNN":if(f===n)return u[r];break;case"NNNNN":if(o===n)return u[r]}else if([f,e,o].indexOf(n)>=0)return u[r]}function lp(n,i){var r=n.since<=n.until?1:-1;return i===undefined?t(n.since).year():t(n.since).year()+(i-n.offset)*r}function ap(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].name;return""}function vp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].narrow;return""}function yp(){for(var i,t=this.localeData().eras(),n=0,r=t.length;n<r;++n)if((i=this.startOf("day").valueOf(),t[n].since<=i&&i<=t[n].until)||t[n].until<=i&&i<=t[n].since)return t[n].abbr;return""}function pp(){for(var f,r,i=this.localeData().eras(),n=0,u=i.length;n<u;++n)if(f=i[n].since<=i[n].until?1:-1,r=this.startOf("day").valueOf(),i[n].since<=r&&r<=i[n].until||i[n].until<=r&&r<=i[n].since)return(this.year()-t(i[n].since).year())*f+i[n].offset;return this.year()}function wp(n){return s(this,"_erasNameRegex")||wf.call(this),n?this._erasNameRegex:this._erasRegex}function bp(n){return s(this,"_erasAbbrRegex")||wf.call(this),n?this._erasAbbrRegex:this._erasRegex}function kp(n){return s(this,"_erasNarrowRegex")||wf.call(this),n?this._erasNarrowRegex:this._erasRegex}function pf(n,t){return t.erasAbbrRegex(n)}function dp(n,t){return t.erasNameRegex(n)}function gp(n,t){return t.erasNarrowRegex(n)}function nw(n,t){return t._eraYearOrdinalRegex||hi}function wf(){for(var r=[],u=[],f=[],i=[],t=this.eras(),n=0,e=t.length;n<e;++n)u.push(g(t[n].name)),r.push(g(t[n].abbr)),f.push(g(t[n].narrow)),i.push(g(t[n].name)),i.push(g(t[n].abbr)),i.push(g(t[n].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i");this._erasNameRegex=new RegExp("^("+u.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+f.join("|")+")","i")}function fu(n,t){r(0,[n,n.length],0,t)}function tw(n){return ys.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function iw(n){return ys.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function rw(){return wt(this.year(),1,4)}function uw(){return wt(this.isoWeekYear(),1,4)}function fw(){var n=this.localeData()._week;return wt(this.year(),n.dow,n.doy)}function ew(){var n=this.localeData()._week;return wt(this.weekYear(),n.dow,n.doy)}function ys(n,t,i,r,u){var f;return n==null?nr(this,r,u).year:(f=wt(n,r,u),t>f&&(t=f),ow.call(this,n,t,i,r,u))}function ow(n,t,i,r,u){var e=to(n,t,i,r,u),f=gi(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function sw(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function hw(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function cw(n,t){t[ii]=f(("0."+n)*1e3)}function lw(){return this._isUTC?"UTC":""}function aw(){return this._isUTC?"Coordinated Universal Time":""}function vw(n){return l(n*1e3)}function yw(){return l.apply(null,arguments).parseZone()}function ks(n){return n}function eu(n,t,i,r){var u=bt(),f=ot().set(r,t);return u[i](f,n)}function ds(n,t,i){if(vt(n)&&(t=n,n=undefined),n=n||"",t!=null)return eu(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=eu(n,r,i,"month");return u}function kf(n,t,i,r){typeof n=="boolean"?(vt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,vt(t)&&(i=t,t=undefined),t=t||"");var o=bt(),f=n?o._week.dow:0,u,e=[];if(i!=null)return eu(t,(i+f)%7,r,"day");for(u=0;u<7;u++)e[u]=eu(t,(u+f)%7,r,"day");return e}function pw(n,t){return ds(n,t,"months")}function ww(n,t){return ds(n,t,"monthsShort")}function bw(n,t,i){return kf(n,t,i,"weekdays")}function kw(n,t,i){return kf(n,t,i,"weekdaysShort")}function dw(n,t,i){return kf(n,t,i,"weekdaysMin")}function gw(){var n=this._data;return this._milliseconds=lt(this._milliseconds),this._days=lt(this._days),this._months=lt(this._months),n.milliseconds=lt(n.milliseconds),n.seconds=lt(n.seconds),n.minutes=lt(n.minutes),n.hours=lt(n.hours),n.months=lt(n.months),n.years=lt(n.years),this}function gs(n,t,i,r){var u=et(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function nb(n,t){return gs(this,n,t,1)}function tb(n,t){return gs(this,n,t,-1)}function nh(n){return n<0?Math.floor(n):Math.ceil(n)}function ib(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=nh(df(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=it(r/1e3),i.seconds=u%60,f=it(u/60),i.minutes=f%60,e=it(f/60),i.hours=e%24,n+=it(e/24),o=it(th(n)),t+=o,n-=nh(df(o)),s=it(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function th(n){return n*4800/146097}function df(n){return n*146097/4800}function rb(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=tt(n),n==="month"||n==="quarter"||n==="year"){t=this._days+i/864e5;r=this._months+th(t);switch(n){case"month":return r;case"quarter":return r/3;case"year":return r/12}}else{t=this._days+Math.round(df(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}}function ub(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function yb(){return et(this)}function pb(n){return n=tt(n),this.isValid()?this[n+"s"]():NaN}function ui(n){return function(){return this.isValid()?this._data[n]:NaN}}function ik(){return it(this.days()/7)}function rk(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function uk(n,t,i,r){var f=et(n).abs(),e=at(f.as("s")),o=at(f.as("m")),s=at(f.as("h")),h=at(f.as("d")),c=at(f.as("M")),l=at(f.as("w")),a=at(f.as("y")),u=e<=i.ss&&["s",e]||e<i.s&&["ss",e]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||h<=1&&["d"]||h<i.d&&["dd",h];return i.w!=null&&(u=u||l<=1&&["w"]||l<i.w&&["ww",l]),u=u||c<=1&&["M"]||c<i.M&&["MM",c]||a<=1&&["y"]||["yy",a],u[2]=t,u[3]=+n>0,u[4]=r,rk.apply(null,u)}function fk(n){return n===undefined?at:typeof n=="function"?(at=n,!0):!1}function ek(n,t){return fi[n]===undefined?!1:t===undefined?fi[n]:(fi[n]=t,n==="s"&&(fi.ss=t-1),!0)}function ok(n,t){if(!this.isValid())return this.localeData().invalidDate();var u=!1,f=fi,i,r;return typeof n=="object"&&(t=n,n=!1),typeof n=="boolean"&&(u=n),typeof t=="object"&&(f=Object.assign({},fi,t),t.s!=null&&t.ss==null&&(f.ss=t.s-1)),i=this.localeData(),r=uk(this,!u,f,i),u&&(r=i.pastFuture(+this,r)),i.postformat(r)}function yi(n){return(n>0)-(n<0)||+n}function su(){if(!this.isValid())return this.localeData().invalidDate();var n=ou(this._milliseconds)/1e3,s=ou(this._days),r=ou(this._months),t,u,e,h,i=this.asSeconds(),c,o,l,f;return i?(t=it(n/60),u=it(t/60),n%=60,t%=60,e=it(r/12),r%=12,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=i<0?"-":"",o=yi(this._months)!==yi(i)?"-":"",l=yi(this._days)!==yi(i)?"-":"",f=yi(this._milliseconds)!==yi(i)?"-":"",c+"P"+(e?o+e+"Y":"")+(r?o+r+"M":"")+(s?l+s+"D":"")+(u||t||n?"T":"")+(u?f+u+"H":"")+(t?f+t+"M":"")+(n?f+h+"S":"")):"P0D"}var gf,te,ur,fr,au,ue,fe,oe,se,he,ce,le,oi,ku,wr,v,nf,io,eo,oo,yo,po,bo,li,go,ts,is,es,os,yf,bf,ps,ws,ni,bs,n,o,lt,at,fi,ou,e;te=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1};ur=t.momentProperties=[];fr=!1;au={};t.suppressDeprecationWarnings=!1;t.deprecationHandler=null;ue=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)s(n,t)&&i.push(t);return i};fe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};var pu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,er=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,wu={},ei={};oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};se="Invalid date";he="%d";ce=/\d{1,2}/;le={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};oi={};ku={};var ve=/\d/,d=/\d\d/,ye=/\d{3}/,du=/\d{4}/,cr=/[+-]?\d{6}/,c=/\d\d?/,pe=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,lr=/\d{1,3}/,gu=/\d{1,4}/,ar=/[+-]?\d{1,6}/,hi=/\d+/,vr=/[+-]?\d+/,wh=/Z|[+-]\d\d:?\d\d/gi,yr=/Z|[+-]\d\d(?::?\d\d)?/gi,bi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pr;pr={};wr={};var b=0,yt=1,ct=2,y=3,ft=4,pt=5,ii=6,gh=7,nc=8;v=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1};r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});p("month","M");w("month",8);i("M",c);i("MM",c,d);i("MMM",function(n,t){return t.monthsShortRegex(n)});i("MMMM",function(n,t){return t.monthsRegex(n)});h(["M","MM"],function(n,t){t[yt]=f(n)-1});h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[yt]=f:u(i).invalidMonth=n});var ic="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),be="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rc=bi,uc=bi;r("Y",0,0,function(){var n=this.year();return n<=9999?ht(n,4):"+"+n});r(0,["YY",2],0,function(){return this.year()%100});r(0,["YYYY",4],0,"year");r(0,["YYYYY",5],0,"year");r(0,["YYYYYY",6,!0],0,"year");p("year","y");w("year",1);i("Y",vr);i("YY",c,d);i("YYYY",gu,du);i("YYYYY",ar,cr);i("YYYYYY",ar,cr);h(["YYYYY","YYYYYY"],b);h("YYYY",function(n,i){i[b]=n.length===2?t.parseTwoDigitYear(n):f(n)});h("YY",function(n,i){i[b]=t.parseTwoDigitYear(n)});h("Y",function(n,t){t[b]=parseInt(n,10)});t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)};nf=si("FullYear",!0);r("w",["ww",2],"wo","week");r("W",["WW",2],"Wo","isoWeek");p("week","w");p("isoWeek","W");w("week",5);w("isoWeek",5);i("w",c);i("ww",c,d);i("W",c);i("WW",c,d);ki(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)});io={dow:0,doy:6};r("d",0,"do","day");r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});r("e",0,0,"weekday");r("E",0,0,"isoWeekday");p("day","d");p("weekday","e");p("isoWeekday","E");w("day",11);w("weekday",11);w("isoWeekday",11);i("d",c);i("e",c);i("E",c);i("dd",function(n,t){return t.weekdaysMinRegex(n)});i("ddd",function(n,t){return t.weekdaysShortRegex(n)});i("dddd",function(n,t){return t.weekdaysRegex(n)});ki(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n});ki(["d","e","E"],function(n,t,i,r){t[r]=f(n)});var nl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ro="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tl="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),il=bi,rl=bi,ul=bi;r("H",["HH",2],0,"hour");r("h",["hh",2],0,uf);r("k",["kk",2],0,wl);r("hmm",0,0,function(){return""+uf.apply(this)+ht(this.minutes(),2)});r("hmmss",0,0,function(){return""+uf.apply(this)+ht(this.minutes(),2)+ht(this.seconds(),2)});r("Hmm",0,0,function(){return""+this.hours()+ht(this.minutes(),2)});r("Hmmss",0,0,function(){return""+this.hours()+ht(this.minutes(),2)+ht(this.seconds(),2)});uo("a",!0);uo("A",!1);p("hour","h");w("hour",13);i("a",fo);i("A",fo);i("H",c);i("h",c);i("k",c);i("HH",c,d);i("hh",c,d);i("kk",c,d);i("hmm",pe);i("hmmss",we);i("Hmm",pe);i("Hmmss",we);h(["H","HH"],y);h(["k","kk"],function(n,t){var i=f(n);t[y]=i===24?0:i});h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});h(["h","hh"],function(n,t,i){t[y]=f(n);u(i).bigHour=!0});h("hmm",function(n,t,i){var r=n.length-2;t[y]=f(n.substr(0,r));t[ft]=f(n.substr(r));u(i).bigHour=!0});h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[y]=f(n.substr(0,r));t[ft]=f(n.substr(r,2));t[pt]=f(n.substr(e));u(i).bigHour=!0});h("Hmm",function(n,t){var i=n.length-2;t[y]=f(n.substr(0,i));t[ft]=f(n.substr(i))});h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[y]=f(n.substr(0,i));t[ft]=f(n.substr(i,2));t[pt]=f(n.substr(r))});eo=/[ap]\.?m?\.?/i;oo=si("Hours",!0);var so={calendar:fe,longDateFormat:oe,invalidDate:se,ordinal:he,dayOfMonthOrdinalParse:ce,relativeTime:le,months:ic,monthsShort:be,week:io,weekdays:nl,weekdaysMin:tl,weekdaysShort:ro,meridiemParse:eo},a={},tr={},ir;var ia=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ra=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ua=/Z|[+-]\d\d(?::?\d\d)?/,gr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1],],of=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/],],fa=/^\/?Date\((-?\d+)/i,ea=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=nt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});t.ISO_8601=function(){};t.RFC_2822=function(){};yo=nt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:rr()});po=nt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=l.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:rr()});bo=function(){return Date.now?Date.now():+new Date};li=["year","quarter","month","week","day","hour","minute","second","millisecond",];ko("Z",":");ko("ZZ","");i("Z",yr);i("ZZ",yr);h(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=lf(yr,n)});go=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};ts=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/;is=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;et.fn=nu.prototype;et.invalid=uv;es=us(1,"add");os=us(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";yf=nt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});var ru=1e3,ai=60*ru,uu=60*ai,ls=3506328*uu;for(r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),i("N",pf),i("NN",pf),i("NNN",pf),i("NNNN",dp),i("NNNNN",gp),h(["N","NN","NNN","NNNN","NNNNN"],function(n,t,i,r){var f=i._locale.erasParse(n,r,i._strict);f?u(i).era=f:u(i).invalidEra=n}),i("y",hi),i("yy",hi),i("yyy",hi),i("yyyy",hi),i("yo",nw),h(["y","yy","yyy","yyyy"],b),h(["yo"],function(n,t,i){var r;i._locale._eraYearOrdinalRegex&&(r=n.match(i._locale._eraYearOrdinalRegex));t[b]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(n,r):parseInt(n,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fu("gggg","weekYear"),fu("ggggg","weekYear"),fu("GGGG","isoWeekYear"),fu("GGGGG","isoWeekYear"),p("weekYear","gg"),p("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),i("G",vr),i("g",vr),i("GG",c,d),i("gg",c,d),i("GGGG",gu,du),i("gggg",gu,du),i("GGGGG",ar,cr),i("ggggg",ar,cr),ki(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),ki(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),p("quarter","Q"),w("quarter",7),i("Q",ve),h("Q",function(n,t){t[yt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),p("date","D"),w("date",9),i("D",c),i("DD",c,d),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ct),h("Do",function(n,t){t[ct]=f(n.match(c)[0])}),bf=si("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),p("dayOfYear","DDD"),w("dayOfYear",4),i("DDD",lr),i("DDDD",ye),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),p("minute","m"),w("minute",14),i("m",c),i("mm",c,d),h(["m","mm"],ft),ps=si("Minutes",!1),r("s",["ss",2],0,"second"),p("second","s"),w("second",15),i("s",c),i("ss",c,d),h(["s","ss"],pt),ws=si("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),p("millisecond","ms"),w("millisecond",16),i("S",lr,ve),i("SS",lr,d),i("SSS",lr,ye),ni="SSSS";ni.length<=9;ni+="S")i(ni,hi);for(ni="S";ni.length<=9;ni+="S")h(ni,cw);bs=si("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=wi.prototype;n.add=es;n.calendar=ty;n.clone=iy;n.diff=hy;n.endOf=dy;n.format=vy;n.from=yy;n.fromNow=py;n.to=wy;n.toNow=by;n.get=yh;n.invalidAt=op;n.isAfter=ry;n.isBefore=uy;n.isBetween=fy;n.isSame=ey;n.isSameOrAfter=oy;n.isSameOrBefore=sy;n.isValid=fp;n.lang=yf;n.locale=hs;n.localeData=cs;n.max=po;n.min=yo;n.parsingFlags=ep;n.set=ph;n.startOf=ky;n.subtract=os;n.toArray=ip;n.toObject=rp;n.toDate=tp;n.toISOString=ly;n.inspect=ay;typeof Symbol!="undefined"&&Symbol.for!=null&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});n.toJSON=up;n.toString=cy;n.unix=np;n.valueOf=gy;n.creationData=sp;n.eraName=ap;n.eraNarrow=vp;n.eraAbbr=yp;n.eraYear=pp;n.year=nf;n.isLeapYear=ac;n.weekYear=tw;n.isoWeekYear=iw;n.quarter=n.quarters=sw;n.month=ge;n.daysInMonth=hc;n.week=n.weeks=bc;n.isoWeek=n.isoWeeks=kc;n.weeksInYear=fw;n.weeksInWeekYear=ew;n.isoWeeksInYear=rw;n.isoWeeksInISOWeekYear=uw;n.date=bf;n.day=n.days=cl;n.weekday=ll;n.isoWeekday=al;n.dayOfYear=hw;n.hour=n.hours=oo;n.minute=n.minutes=ps;n.second=n.seconds=ws;n.millisecond=n.milliseconds=bs;n.utcOffset=ev;n.utc=sv;n.local=hv;n.parseZone=cv;n.hasAlignedHourOffset=lv;n.isDST=av;n.isLocal=yv;n.isUtcOffset=pv;n.isUtc=ns;n.isUTC=ns;n.zoneAbbr=lw;n.zoneName=aw;n.dates=nt("dates accessor is deprecated. Use date instead.",bf);n.months=nt("months accessor is deprecated. Use month instead",ge);n.years=nt("years accessor is deprecated. Use year instead",nf);n.zone=nt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ov);n.isDSTShifted=nt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vv);o=yu.prototype;o.calendar=fh;o.longDateFormat=sh;o.invalidDate=hh;o.ordinal=ch;o.preparse=ks;o.postformat=ks;o.relativeTime=lh;o.pastFuture=ah;o.set=uh;o.eras=hp;o.erasParse=cp;o.erasConvertYear=lp;o.erasAbbrRegex=bp;o.erasNameRegex=wp;o.erasNarrowRegex=kp;o.months=fc;o.monthsShort=ec;o.monthsParse=sc;o.monthsRegex=lc;o.monthsShortRegex=cc;o.week=yc;o.firstDayOfYear=wc;o.firstDayOfWeek=pc;o.weekdays=fl;o.weekdaysMin=ol;o.weekdaysShort=el;o.weekdaysParse=hl;o.weekdaysRegex=vl;o.weekdaysShortRegex=yl;o.weekdaysMinRegex=pl;o.isPM=bl;o.meridiem=kl;gt("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"},],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});t.lang=nt("moment.lang is deprecated. Use moment.locale instead.",gt);t.langData=nt("moment.langData is deprecated. Use moment.localeData instead.",bt);lt=Math.abs;var fb=kt("ms"),eb=kt("s"),ob=kt("m"),sb=kt("h"),hb=kt("d"),cb=kt("w"),lb=kt("M"),ab=kt("Q"),vb=kt("y");var wb=ui("milliseconds"),bb=ui("seconds"),kb=ui("minutes"),db=ui("hours"),gb=ui("days"),nk=ui("months"),tk=ui("years");at=Math.round;fi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};ou=Math.abs;e=nu.prototype;e.isValid=rv;e.abs=gw;e.add=nb;e.subtract=tb;e.as=rb;e.asMilliseconds=fb;e.asSeconds=eb;e.asMinutes=ob;e.asHours=sb;e.asDays=hb;e.asWeeks=cb;e.asMonths=lb;e.asQuarters=ab;e.asYears=vb;e.valueOf=ub;e._bubble=ib;e.clone=yb;e.get=pb;e.milliseconds=wb;e.seconds=bb;e.minutes=kb;e.hours=db;e.days=gb;e.weeks=ik;e.months=nk;e.years=tk;e.humanize=ok;e.toISOString=su;e.toString=su;e.toJSON=su;e.locale=hs;e.localeData=cs;e.toIsoString=nt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",su);e.lang=yf;r("X",0,0,"unix");r("x",0,0,"valueOf");i("x",vr);i("X",/[+-]?\d+(\.\d{1,3})?/);h("X",function(n,t,i){i._d=new Date(parseFloat(n)*1e3)});h("x",function(n,t,i){i._d=new Date(f(n))}); | |
//! moment.js | |
return t.version="2.27.0",ih(l),t.fn=n,t.min=nv,t.max=tv,t.now=bo,t.utc=ot,t.unix=vw,t.months=pw,t.isDate=pi,t.locale=gt,t.invalid=rr,t.duration=et,t.isMoment=ut,t.weekdays=bw,t.parseZone=yw,t.localeData=bt,t.isDuration=tu,t.monthsShort=ww,t.weekdaysMin=dw,t.defineLocale=ff,t.updateLocale=na,t.locales=ta,t.weekdaysShort=kw,t.normalizeUnits=tt,t.relativeTimeRounding=fk,t.relativeTimeThreshold=ek,t.calendarFormat=ny,t.prototype=n,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}); | |
/** | |
* @license | |
* Lodash <https://lodash.com/> | |
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> | |
* Released under MIT license <https://lodash.com/license> | |
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | |
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
*/ | |
(function(){function f(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}function ce(n,t,i,r){for(var f,u=-1,e=null==n?0:n.length;++u<e;)f=n[u],t(r,f,i(f),n);return r}function o(n,t){for(var i=-1,r=null==n?0:n.length;++i<r&&t(n[i],i,n)!==!1;);return n}function le(n,t){for(var i=null==n?0:n.length;i--&&t(n[i],i,n)!==!1;);return n}function fu(n,t){for(var i=-1,r=null==n?0:n.length;++i<r;)if(!t(n[i],i,n))return!1;return!0}function d(n,t){for(var r,i=-1,f=null==n?0:n.length,e=0,u=[];++i<f;)r=n[i],t(r,i,n)&&(u[e++]=r);return u}function fi(n,t){return!!(null==n?0:n.length)&&ot(n,t,0)>-1}function ki(n,t,i){for(var r=-1,u=null==n?0:n.length;++r<u;)if(i(t,n[r]))return!0;return!1}function r(n,t){for(var i=-1,r=null==n?0:n.length,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}function g(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}function di(n,t,i,r){var u=-1,f=null==n?0:n.length;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}function ae(n,t,i,r){var u=null==n?0:n.length;for(r&&u&&(i=n[--u]);u--;)i=t(i,n[u],u,n);return i}function gi(n,t){for(var i=-1,r=null==n?0:n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}function eu(n){return n.split("")}function ve(n){return n.match(nh)||[]}function ou(n,t,i){var r;return i(n,function(n,i,u){if(t(n,i,u))return r=i,!1}),r}function ei(n,t,i,r){for(var f=n.length,u=i+(r?1:-1);r?u--:++u<f;)if(t(n[u],u,n))return u;return-1}function ot(n,t,i){return t===t?io(n,t,i):ei(n,su,i)}function ye(n,t,i,r){for(var u=i-1,f=n.length;++u<f;)if(r(n[u],t))return u;return-1}function su(n){return n!==n}function hu(n,t){var i=null==n?0:n.length;return i?ir(n,t)/i:ci}function nr(t){return function(i){return null==i?n:i[t]}}function tr(t){return function(i){return null==t?n:t[i]}}function cu(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}function pe(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}function ir(t,i){for(var r,u,f=-1,e=t.length;++f<e;)u=i(t[f]),u!==n&&(r=r===n?u:r+u);return r}function rr(n,t){for(var i=-1,r=Array(n);++i<n;)r[i]=t(i);return r}function we(n,t){return r(t,function(t){return[t,n[t]]})}function e(n){return function(t){return n(t)}}function ur(n,t){return r(t,function(t){return n[t]})}function bt(n,t){return n.has(t)}function lu(n,t){for(var i=-1,r=n.length;++i<r&&ot(t,n[i],0)>-1;);return i}function au(n,t){for(var i=n.length;i--&&ot(t,n[i],0)>-1;);return i}function be(n,t){for(var i=n.length,r=0;i--;)n[i]===t&&++r;return r}function ke(n){return"\\"+rc[n]}function de(t,i){return null==t?n:t[i]}function st(n){return gh.test(n)}function ge(n){return nc.test(n)}function no(n){for(var t,i=[];!(t=n.next()).done;)i.push(t.value);return i}function fr(n){var i=-1,t=Array(n.size);return n.forEach(function(n,r){t[++i]=[r,n]}),t}function vu(n,t){return function(i){return n(t(i))}}function nt(n,t){for(var r,i=-1,f=n.length,e=0,u=[];++i<f;)r=n[i],r!==t&&r!==si||(n[i]=si,u[e++]=i);return u}function oi(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=n}),t}function to(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=[n,n]}),t}function io(n,t,i){for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function ro(n,t,i){for(var r=i+1;r--;)if(n[r]===t)return r;return r}function ht(n){return st(n)?uo(n):oc(n)}function l(n){return st(n)?fo(n):eu(n)}function uo(n){for(var t=iu.lastIndex=0;iu.test(n);)++t;return t}function fo(n){return n.match(iu)||[]}function eo(n){return n.match(dh)||[]}var n,oo="4.17.20",er=200,so="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",or="__lodash_hash_undefined__",ho=500,si="__lodash_placeholder__",tt=1,yu=2,ct=4,lt=1,hi=2,h=1,ut=2,pu=4,y=8,at=16,p=32,vt=64,b=128,kt=256,sr=512,co=30,lo="...",ao=800,vo=16,wu=1,yo=2,po=3,ft=1/0,it=9007199254740991,wo=17976931348623157e292,ci=NaN,w=4294967295,bo=w-1,ko=w>>>1,go=[["ary",b],["bind",h],["bindKey",ut],["curry",y],["curryRight",at],["flip",sr],["partial",p],["partialRight",vt],["rearg",kt]],yt="[object Arguments]",li="[object Array]",ns="[object AsyncFunction]",dt="[object Boolean]",gt="[object Date]",ts="[object DOMException]",ai="[object Error]",vi="[object Function]",bu="[object GeneratorFunction]",a="[object Map]",ni="[object Number]",is="[object Null]",k="[object Object]",ku="[object Promise]",rs="[object Proxy]",ti="[object RegExp]",v="[object Set]",ii="[object String]",yi="[object Symbol]",us="[object Undefined]",ri="[object WeakMap]",fs="[object WeakSet]",ui="[object ArrayBuffer]",pt="[object DataView]",hr="[object Float32Array]",cr="[object Float64Array]",lr="[object Int8Array]",ar="[object Int16Array]",vr="[object Int32Array]",yr="[object Uint8Array]",pr="[object Uint8ClampedArray]",wr="[object Uint16Array]",br="[object Uint32Array]",es=/\b__p \+= '';/g,os=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,du=/&(?:amp|lt|gt|quot|#39);/g,gu=/[&<>"']/g,hs=RegExp(du.source),cs=RegExp(gu.source),ls=/<%-([\s\S]+?)%>/g,as=/<%([\s\S]+?)%>/g,nf=/<%=([\s\S]+?)%>/g,vs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ys=/^\w*$/,ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,ws=RegExp(kr.source),tf=/^\s+|\s+$/g,rf=/^\s+/,bs=/\s+$/,ks=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ds=/\{\n\/\* \[wrapped with (.+)\] \*/,gs=/,? & /,nh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,th=/\\(\\)?/g,ih=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uf=/\w*$/,rh=/^[-+]0x[0-9a-f]+$/i,uh=/^0b[01]+$/i,fh=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,oh=/^(?:0|[1-9]\d*)$/,sh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pi=/($^)/,hh=/['\n\r\u2028\u2029\\]/g,wi="\\ud800-\\udfff",ff="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ef="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",sf="A-Z\\xc0-\\xd6\\xd8-\\xde",hf="\\ufe0e\\ufe0f",cf="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dr="['’]",ch="["+wi+"]",lf="["+cf+"]",bi="["+ff+"]",af="\\d+",lh="["+ef+"]",vf="["+of+"]",yf="[^"+wi+cf+af+ef+of+sf+"]",gr="\\ud83c[\\udffb-\\udfff]",ah="(?:"+bi+"|"+gr+")",pf="[^"+wi+"]",nu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+sf+"]",wf="\\u200d",bf="(?:"+vf+"|"+yf+")",vh="(?:"+wt+"|"+yf+")",kf="(?:"+dr+"(?:d|ll|m|re|s|t|ve))?",df="(?:"+dr+"(?:D|LL|M|RE|S|T|VE))?",gf=ah+"?",ne="["+hf+"]?",yh="(?:"+wf+"(?:"+[pf,nu,tu].join("|")+")"+ne+gf+")*",te=ne+gf+yh,ph="(?:"+[lh,nu,tu].join("|")+")"+te,wh="(?:"+[pf+bi+"?",bi,nu,tu,ch].join("|")+")",bh=RegExp(dr,"g"),kh=RegExp(bi,"g"),iu=RegExp(gr+"(?="+gr+")|"+wh+te,"g"),dh=RegExp([wt+"?"+vf+"+"+kf+"(?="+[lf,wt,"$"].join("|")+")",vh+"+"+df+"(?="+[lf,wt+bf,"$"].join("|")+")",wt+"?"+bf+"+"+kf,wt+"+"+df,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",af,ph].join("|"),"g"),gh=RegExp("["+wf+wi+ff+hf+"]"),nc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ic=-1,i={},t;i[hr]=i[cr]=i[lr]=i[ar]=i[vr]=i[yr]=i[pr]=i[wr]=i[br]=!0;i[yt]=i[li]=i[ui]=i[dt]=i[pt]=i[gt]=i[ai]=i[vi]=i[a]=i[ni]=i[k]=i[ti]=i[v]=i[ii]=i[ri]=!1;t={};t[yt]=t[li]=t[ui]=t[pt]=t[dt]=t[gt]=t[hr]=t[cr]=t[lr]=t[ar]=t[vr]=t[a]=t[ni]=t[k]=t[ti]=t[v]=t[ii]=t[yi]=t[yr]=t[pr]=t[wr]=t[br]=!0;t[ai]=t[vi]=t[ri]=!1;var rc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uc=parseFloat,fc=parseInt,ie="object"==typeof global&&global&&global.Object===Object&&global,ec="object"==typeof self&&self&&self.Object===Object&&self,u=ie||ec||Function("return this")(),ru="object"==typeof exports&&exports&&!exports.nodeType&&exports,et=ru&&"object"==typeof module&&module&&!module.nodeType&&module,re=et&&et.exports===ru,uu=re&&ie.process,c=function(){try{var n=et&&et.require&&et.require("util").types;return n?n:uu&&uu.binding&&uu.binding("util")}catch(n){}}(),ue=c&&c.isArrayBuffer,fe=c&&c.isDate,ee=c&&c.isMap,oe=c&&c.isRegExp,se=c&&c.isSet,he=c&&c.isTypedArray,oc=nr("length"),sc=tr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),hc=tr({"&":"&","<":"<",">":">",'"':""","'":"'"}),cc=tr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),lc=function eu(c){function et(n){if(ru(n)&&!wi(n)&&!(n instanceof dr)){if(n instanceof df)return n;if(nu.call(n,"__wrapped__"))return ck(n)}return new df(n)}function ua(){}function df(t,i){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!i;this.__index__=0;this.__values__=n}function dr(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=w;this.__views__=[]}function dg(){var n=new dr(this.__wrapped__);return n.__actions__=vf(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=vf(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=vf(this.__views__),n}function gg(){if(this.__filtered__){var n=new dr(this);n.__dir__=-1;n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function nn(){var n=this.__wrapped__.value(),f=this.__dir__,e=wi(n),o=f<0,s=e?n.length:0,h=trt(0,s,this.__views__),c=h.start,l=h.end,t=l-c,a=o?l:c-1,v=this.__iteratees__,d=v.length,y=0,p=hf(t,this.__takeCount__),r,u,i;if(!e||!o&&s==t&&p==t)return ub(n,this.__actions__);r=[];n:for(;t--&&y<p;){for(a+=f,u=-1,i=n[a];++u<d;){var w=v[u],g=w.iteratee,b=w.type,k=g(i);if(b==yo)i=k;else if(!k){if(b==wu)continue n;break n}}r[y++]=i}return r}function yc(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function tn(){this.__data__=ta?ta(null):{};this.size=0}function rn(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function un(t){var i=this.__data__,r;return ta?(r=i[t],r===or?n:r):nu.call(i,t)?i[t]:n}function fn(t){var i=this.__data__;return ta?i[t]!==n:nu.call(i,t)}function en(t,i){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ta&&i===n?or:i,this}function ah(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function on(){this.__data__=[];this.size=0}function sn(n){var t=this.__data__,i=fa(t,n);return!(i<0)&&(i==t.length-1?t.pop():av.call(t,i,1),--this.size,!0)}function hn(t){var i=this.__data__,r=fa(i,t);return r<0?n:i[r][1]}function cn(n){return fa(this.__data__,n)>-1}function ln(n,t){var i=this.__data__,r=fa(i,n);return r<0?(++this.size,i.push([n,t])):i[r][1]=t,this}function vh(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function an(){this.size=0;this.__data__={hash:new yc,map:new(gl||ah),string:new yc}}function vn(n){var t=ba(this,n).delete(n);return this.size-=t?1:0,t}function yn(n){return ba(this,n).get(n)}function pn(n){return ba(this,n).has(n)}function wn(n,t){var i=ba(this,n),r=i.size;return i.set(n,t),this.size+=i.size==r?0:1,this}function pc(n){var t=-1,i=null==n?0:n.length;for(this.__data__=new vh;++t<i;)this.add(n[t])}function bn(n){return this.__data__.set(n,or),this}function kn(n){return this.__data__.has(n)}function uo(n){this.size=(this.__data__=new ah(n)).size}function dn(){this.__data__=new ah;this.size=0}function gn(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}function ntt(n){return this.__data__.get(n)}function ttt(n){return this.__data__.has(n)}function itt(n,t){var i=this.__data__,r;if(i instanceof ah){if(r=i.__data__,!gl||r.length<er-1)return r.push([n,t]),this.size=++i.size,this;i=this.__data__=new vh(r)}return i.set(n,t),this.size=i.size,this}function fw(n,t){var r=wi(n),u=!r&&nl(n),f=!r&&!u&&vc(n),o=!r&&!u&&!f&&cl(n),s=r||u||f||o,e=s?rr(n.length,flt):[],h=e.length;for(var i in n)!t&&!nu.call(n,i)||s&&("length"==i||f&&("offset"==i||"parent"==i)||o&&("buffer"==i||"byteLength"==i||"byteOffset"==i)||dh(i,h))||e.push(i);return e}function ew(t){var i=t.length;return i?t[sy(0,i-1)]:n}function rtt(n,t){return ka(vf(n),wc(t,0,n.length))}function utt(n){return ka(vf(n))}function gv(t,i,r){(r===n||fo(t[i],r))&&(r!==n||i in t)||yh(t,i,r)}function ll(t,i,r){var u=t[i];nu.call(t,i)&&fo(u,r)&&(r!==n||i in t)||yh(t,i,r)}function fa(n,t){for(var i=n.length;i--;)if(fo(n[i][0],t))return i;return-1}function ftt(n,t,i,r){return ac(n,function(n,u,f){t(r,n,i(n),f)}),r}function ow(n,t){return n&&ch(t,of(t),n)}function ett(n,t){return n&&ch(t,pf(t),n)}function yh(n,t,i){"__proto__"==t&&vv?vv(n,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[t]=i}function ny(t,i){for(var r=-1,u=i.length,f=ff(u),e=null==t;++r<u;)f[r]=e?n:ep(t,i[r]);return f}function wc(t,i,r){return t===t&&(r!==n&&(t=t<=r?t:r),i!==n&&(t=t>=i?t:i)),t}function gf(i,r,u,f,e,s){var h,l=r&tt,a=r&yu,d=r&ct,v,c,y,p,b,w;if(u&&(h=e?u(i,f,e,s):u(i)),h!==n)return h;if(!iu(i))return i;if(v=wi(i),v){if(h=rrt(i),!l)return vf(i,h)}else{if(c=cf(i),y=c==vi||c==bu,vc(i))return eb(i,l);if(c==k||c==yt||y&&!e){if(h=a||y?{}:rk(i),!l)return a?yit(i,ett(h,i)):vit(i,ow(h,i))}else{if(!t[c])return e?i:{};h=urt(i,c,l)}}return(s||(s=new uo),p=s.get(i),p)?p:(s.set(i,h),vg(i)?i.forEach(function(n){h.add(gf(n,r,u,n,i,s))}):ag(i)&&i.forEach(function(n,t){h.set(t,gf(n,r,u,t,i,s))}),b=d?a?dy:ky:a?pf:of,w=v?n:b(i),o(w||i,function(n,t){w&&(t=n,n=i[t]);ll(h,t,gf(n,r,u,t,i,s))}),h)}function ott(n){var t=of(n);return function(i){return sw(i,n,t)}}function sw(t,i,r){var u=r.length;if(null==t)return!u;for(t=tu(t);u--;){var f=r[u],o=i[f],e=t[f];if(e===n&&!(f in t)||!o(e))return!1}return!0}function hw(t,i,r){if("function"!=typeof t)throw new io(s);return ra(function(){t.apply(n,r)},i)}function al(n,t,i,u){var a=-1,h=fi,c=!0,v=n.length,s=[],y=t.length,f,o,l;if(!v)return s;i&&(t=r(t,e(i)));u?(h=ki,c=!1):t.length>=er&&(h=bt,c=!1,t=new pc(t));n:for(;++a<v;)if(f=n[a],o=null==i?f:i(f),f=u||0!==f?f:0,c&&o===o){for(l=y;l--;)if(t[l]===o)continue n;s.push(f)}else h(t,o,u)||s.push(f);return s}function stt(n,t){var i=!0;return ac(n,function(n,r,u){return i=!!t(n,r,u)}),i}function ea(t,i,r){for(var e,u,o,h,f=-1,s=t.length;++f<s;)e=t[f],u=i(e),null!=u&&(o===n?u===u&&!kf(u):r(u,o))&&(o=u,h=e);return h}function htt(t,i,r,u){var f=t.length;for(r=bi(r),r<0&&(r=-r>f?0:f+r),u=u===n||u>f?f:bi(u),u<0&&(u+=f),u=r>u?0:od(u);r<u;)t[r++]=i;return t}function cw(n,t){var i=[];return ac(n,function(n,r,u){t(n,r,u)&&i.push(n)}),i}function sf(n,t,i,r,u){var e=-1,o=n.length,f;for(i||(i=ert),u||(u=[]);++e<o;)f=n[e],t>0&&i(f)?t>1?sf(f,t-1,i,r,u):g(u,f):r||(u[u.length]=f);return u}function nh(n,t){return n&&kp(n,t,of)}function ty(n,t){return n&&ug(n,t,of)}function oa(n,t){return d(t,function(t){return gh(n[t])})}function bc(t,i){i=ec(i,t);for(var r=0,u=i.length;null!=t&&r<u;)t=t[lh(i[r++])];return r&&r==u?t:n}function lw(n,t,i){var r=t(n);return wi(n)?r:g(r,i(n))}function lf(t){return null==t?t===n?us:is:gc&&gc in tu(t)?nrt(t):art(t)}function iy(n,t){return n>t}function ctt(n,t){return null!=n&&nu.call(n,t)}function ltt(n,t){return null!=n&&t in tu(n)}function att(n,t,i){return n>=hf(t,i)&&n<ef(t,i)}function ry(t,i,u){for(var o,p,c,s,h,w,b=u?ki:fi,k=t[0].length,a=t.length,f=a,v=ff(a),y=1/0,l=[];f--;)o=t[f],f&&i&&(o=r(o,e(i))),y=hf(o.length,y),v[f]=!u&&(i||k>=120&&o.length>=120)?new pc(f&&o):n;o=t[0];p=-1;c=v[0];n:for(;++p<k&&l.length<y;)if(s=o[p],h=i?i(s):s,s=u||0!==s?s:0,!(c?bt(c,h):b(l,h,u))){for(f=a;--f;)if(w=v[f],!(w?bt(w,h):b(t[f],h,u)))continue n;c&&c.push(h);l.push(s)}return l}function vtt(n,t,i,r){return nh(n,function(n,u,f){t(r,i(n),u,f)}),r}function vl(t,i,r){i=ec(i,t);t=ok(t,i);var u=null==t?t:t[lh(te(i))];return null==u?n:f(u,t,r)}function aw(n){return ru(n)&&lf(n)==yt}function ytt(n){return ru(n)&&lf(n)==ui}function ptt(n){return ru(n)&&lf(n)==gt}function yl(n,t,i,r,u){return n===t||(null==n||null==t||!ru(n)&&!ru(t)?n!==n&&t!==t:wtt(n,t,i,r,yl,u))}function wtt(n,t,i,r,u,f){var s=wi(n),p=wi(t),e=s?li:cf(n),o=p?li:cf(t),l,a,v,y;e=e==yt?k:e;o=o==yt?k:o;var h=e==k,w=o==k,c=e==o;if(c&&vc(n)){if(!vc(t))return!1;s=!0;h=!1}return c&&!h?(f||(f=new uo),s||cl(n)?tk(n,t,i,r,u,f):dit(n,t,e,i,r,u,f)):!(i<)&&(l=h&&nu.call(n,"__wrapped__"),a=w&&nu.call(t,"__wrapped__"),l||a)?(v=l?n.value():n,y=a?t.value():t,f||(f=new uo),u(v,y,i,r,f)):!!c&&(f||(f=new uo),git(n,t,i,r,u,f))}function btt(n){return ru(n)&&cf(n)==a}function uy(t,i,r,u){var e=r.length,l=e,a=!u,f,h,c;if(null==t)return!l;for(t=tu(t);e--;)if(f=r[e],a&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1;for(;++e<l;){f=r[e];var o=f[0],s=t[o],v=f[1];if(a&&f[2]){if(s===n&&!(o in t))return!1}else if(h=new uo,u&&(c=u(s,v,o,t,i,h)),!(c===n?yl(v,s,lt|hi,u,h):c))return!1}return!0}function vw(n){return!(!iu(n)||srt(n))&&(gh(n)?clt:fh).test(dc(n))}function ktt(n){return ru(n)&&lf(n)==ti}function dtt(n){return ru(n)&&cf(n)==v}function gtt(n){return ru(n)&&iv(n.length)&&!!i[lf(n)]}function yw(n){return"function"==typeof n?n:null==n?wf:"object"==typeof n?wi(n)?bw(n[0],n[1]):ww(n):vd(n)}function fy(n){var i,t;if(!bl(n))return wlt(n);i=[];for(t in tu(n))nu.call(n,t)&&"constructor"!=t&&i.push(t);return i}function nit(n){var r,i,t;if(!iu(n))return lrt(n);r=bl(n);i=[];for(t in n)("constructor"!=t||!r&&nu.call(n,t))&&i.push(t);return i}function ey(n,t){return n<t}function pw(n,t){var r=-1,i=yf(n)?ff(n.length):[];return ac(n,function(n,u,f){i[++r]=t(n,u,f)}),i}function ww(n){var t=gy(n);return 1==t.length&&t[0][2]?fk(t[0][0],t[0][1]):function(i){return i===n||uy(i,n,t)}}function bw(t,i){return np(t)&&uk(i)?fk(lh(t),i):function(r){var u=ep(r,t);return u===n&&u===i?op(r,t):yl(i,u,lt|hi)}}function sa(t,i,r,u,f){t!==i&&kp(i,function(e,o){if(f||(f=new uo),iu(e))tit(t,i,o,r,sa,u,f);else{var s=u?u(ip(t,o),e,o+"",t,i,f):n;s===n&&(s=e);gv(t,o,s)}},pf)}function tit(t,i,r,u,f,e,o){var c=ip(t,r),s=ip(i,r),y=o.get(s),h,l;if(y)return gv(t,r,y),n;if(h=e?e(c,s,r+"",t,i,o):n,l=h===n,l){var a=wi(s),v=!a&&vc(s),p=!a&&!v&&cl(s);h=s;a||v||p?wi(c)?h=c:uu(c)?h=vf(c):v?(l=!1,h=eb(s,!0)):p?(l=!1,h=ob(s,!0)):h=[]:kl(s)||nl(s)?(h=c,nl(c)?h=sd(c):iu(c)&&!gh(c)||(h=rk(s))):l=!1}l&&(o.set(s,h),f(h,s,u,e,o),o.delete(s));gv(t,r,h)}function kw(t,i){var r=t.length;if(r)return i+=i<0?r:0,dh(i,r)?t[i]:n}function dw(n,t,i){t=t.length?r(t,function(n){return wi(n)?function(t){return bc(t,1===n.length?n[0]:n)}:n}):[wf];var u=-1;return t=r(t,e(wt())),pe(pw(n,function(n){return{criteria:r(t,function(t){return t(n)}),index:++u,value:n}}),function(n,t){return ait(n,t,i)})}function iit(n,t){return gw(n,t,function(t,i){return op(n,i)})}function gw(n,t,i){for(var r,u,f=-1,o=t.length,e={};++f<o;)r=t[f],u=bc(n,r),i(u,r)&&pl(e,ec(r,n),u);return e}function rit(n){return function(t){return bc(t,n)}}function oy(n,t,i,u){var c=u?ye:ot,s=-1,l=t.length,f=n;for(n===t&&(t=vf(t)),i&&(f=r(n,e(i)));++s<l;)for(var o=0,h=t[s],a=i?i(h):h;(o=c(f,a,o,u))>-1;)f!==n&&av.call(f,o,1),av.call(n,o,1);return n}function nb(n,t){for(var i,f,r=n?t.length:0,u=r-1;r--;)i=t[r],(r==u||i!==f)&&(f=i,dh(i)?av.call(n,i,1):ly(n,i));return n}function sy(n,t){return n+pv(tg()*(t-n+1))}function uit(n,t,i,r){for(var e=-1,u=ef(yv((t-n)/(i||1)),0),f=ff(u);u--;)f[r?u:++e]=n,n+=i;return f}function hy(n,t){var i="";if(!n||t<1||t>it)return i;do t%2&&(i+=n),t=pv(t/2),t&&(n+=n);while(t);return i}function tr(n,t){return nw(ek(n,t,wf),n+"")}function fit(n){return ew(ul(n))}function eit(n,t){var i=ul(n);return ka(i,wc(t,0,i.length))}function pl(t,i,r,u){var f,o,h;if(!iu(t))return t;i=ec(i,t);for(var s=-1,c=i.length,l=c-1,e=t;null!=e&&++s<c;){if(f=lh(i[s]),o=r,"__proto__"===f||"constructor"===f||"prototype"===f)return t;s!=l&&(h=e[f],o=u?u(h,f,e):n,o===n&&(o=iu(h)?h:dh(i[s+1])?[]:{}));ll(e,f,o);e=e[f]}return t}function oit(n){return ka(ul(n))}function ne(n,t,i){var u=-1,r=n.length,f;for(t<0&&(t=-t>r?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0,f=ff(r);++u<r;)f[u]=n[u+t];return f}function sit(n,t){var i;return ac(n,function(n,r,u){return i=t(n,r,u),!i}),!!i}function ha(n,t,i){var f=0,r=null==n?f:n.length,e,u;if("number"==typeof t&&t===t&&r<=ko){for(;f<r;)e=f+r>>>1,u=n[e],null!==u&&!kf(u)&&(i?u<=t:u<t)?f=e+1:r=e;return r}return cy(n,t,wf,i)}function cy(t,i,r,u){var s=0,e=null==t?0:t.length,v;if(0===e)return 0;i=r(i);for(var y=i!==i,p=null===i,w=kf(i),b=i===n;s<e;){var h=pv((s+e)/2),f=r(t[h]),c=f!==n,l=null===f,o=f===f,a=kf(f);v=y?u||o:b?o&&(u||c):p?o&&c&&(u||!l):w?o&&c&&!l&&(u||!a):!l&&!a&&(u?f<=i:f<i);v?s=h+1:e=h}return hf(e,bo)}function tb(n,t){for(var i,u,e,r=-1,o=n.length,s=0,f=[];++r<o;)i=n[r],u=t?t(i):i,r&&fo(u,e)||(e=u,f[s++]=0===i?0:i);return f}function ib(n){return"number"==typeof n?n:kf(n)?ci:+n}function bf(n){if("string"==typeof n)return n;if(wi(n))return r(n,bf)+"";if(kf(n))return ig?ig.call(n):"";var t=n+"";return"0"==t&&1/n==-ft?"-0":t}function rc(n,t,i){var l=-1,o=fi,a=n.length,s=!0,e=[],r=e,h,u,f,c;if(i)s=!1,o=ki;else if(a>=er){if(h=t?null:eat(n),h)return oi(h);s=!1;o=bt;r=new pc}else r=t?[]:e;n:for(;++l<a;)if(u=n[l],f=t?t(u):u,u=i||0!==u?u:0,s&&f===f){for(c=r.length;c--;)if(r[c]===f)continue n;t&&r.push(f);e.push(u)}else o(r,f,i)||(r!==e&&r.push(f),e.push(u));return e}function ly(n,t){return t=ec(t,n),n=ok(n,t),null==n||delete n[lh(te(t))]}function rb(n,t,i,r){return pl(n,t,i(bc(n,t)),r)}function ca(n,t,i,r){for(var f=n.length,u=r?f:-1;(r?u--:++u<f)&&t(n[u],u,n););return i?ne(n,r?0:u,r?u+1:f):ne(n,r?u+1:0,r?f:u)}function ub(n,t){var i=n;return i instanceof dr&&(i=i.value()),di(t,function(n,t){return t.func.apply(t.thisArg,g([n],t.args))},i)}function ay(n,t,i){var u=n.length,r,f,o,e;if(u<2)return u?rc(n[0]):[];for(r=-1,f=ff(u);++r<u;)for(o=n[r],e=-1;++e<u;)e!=r&&(f[r]=al(f[r]||o,n[e],t,i));return rc(sf(f,1),t,i)}function fb(t,i,r){for(var u=-1,e=t.length,o=i.length,f={};++u<e;)r(f,t[u],u<o?i[u]:n);return f}function vy(n){return uu(n)?n:[]}function yy(n){return"function"==typeof n?n:wf}function ec(n,t){return wi(n)?n:np(n,t)?[n]:hg(gr(n))}function oc(t,i,r){var u=t.length;return r=r===n?u:r,!i&&r>=u?t:ne(t,i,r)}function eb(n,t){if(t)return n.slice();var i=n.length,r=bd?bd(i):new n.constructor(i);return n.copy(r),r}function py(n){var t=new n.constructor(n.byteLength);return new cv(t).set(new cv(n)),t}function hit(n,t){return new n.constructor(t?py(n.buffer):n.buffer,n.byteOffset,n.byteLength)}function cit(n){var t=new n.constructor(n.source,uf.exec(n));return t.lastIndex=n.lastIndex,t}function lit(n){return ia?tu(ia.call(n)):{}}function ob(n,t){return new n.constructor(t?py(n.buffer):n.buffer,n.byteOffset,n.length)}function sb(t,i){if(t!==i){var o=t!==n,s=null===t,r=t===t,u=kf(t),h=i!==n,c=null===i,f=i===i,e=kf(i);if(!c&&!e&&!u&&t>i||u&&h&&f&&!c&&!e||s&&h&&f||!o&&f||!r)return 1;if(!s&&!u&&!e&&t<i||e&&o&&r&&!s&&!u||c&&o&&r||!h&&r||!f)return-1}return 0}function ait(n,t,i){for(var u,r=-1,f=n.criteria,e=t.criteria,o=f.length,s=i.length;++r<o;)if(u=sb(f[r],e[r]),u)return r>=s?u:u*("desc"==i[r]?-1:1);return n.index-t.index}function hb(n,t,i,r){for(var u=-1,o=n.length,s=i.length,f=-1,h=t.length,c=ef(o-s,0),e=ff(h+c),l=!r;++f<h;)e[f]=t[f];for(;++u<s;)(l||u<o)&&(e[i[u]]=n[u]);for(;c--;)e[f++]=n[u++];return e}function cb(n,t,i,r){for(var o,u=-1,s=n.length,h=-1,c=i.length,e=-1,l=t.length,a=ef(s-c,0),f=ff(a+l),v=!r;++u<a;)f[u]=n[u];for(o=u;++e<l;)f[o+e]=t[e];for(;++h<c;)(v||u<s)&&(f[o+i[h]]=n[u++]);return f}function vf(n,t){var i=-1,r=n.length;for(t||(t=ff(r));++i<r;)t[i]=n[i];return t}function ch(t,i,r,u){var h=!r,o,s,f,e;for(r||(r={}),o=-1,s=i.length;++o<s;)f=i[o],e=u?u(r[f],t[f],f,r,t):n,e===n&&(e=t[f]),h?yh(r,f,e):ll(r,f,e);return r}function vit(n,t){return ch(n,gp(n),t)}function yit(n,t){return ch(n,og(n),t)}function la(n,t){return function(i,r){var u=wi(i)?ce:ftt,f=t?t():{};return u(i,n,wt(r,2),f)}}function tl(t){return tr(function(i,r){var e=-1,u=r.length,f=u>1?r[u-1]:n,s=u>2?r[2]:n,o;for(f=t.length>3&&"function"==typeof f?(u--,f):n,s&&af(r[0],r[1],s)&&(f=u<3?n:f,u=1),i=tu(i);++e<u;)o=r[e],o&&t(i,o,e,f);return i})}function lb(n,t){return function(i,r){if(null==i)return i;if(!yf(i))return n(i,r);for(var f=i.length,u=t?f:-1,e=tu(i);(t?u--:++u<f)&&r(e[u],u,e)!==!1;);return i}}function ab(n){return function(t,i,r){for(var u,s=-1,f=tu(t),e=r(t),o=e.length;o--;)if(u=e[n?o:++s],i(f[u],u,f)===!1)break;return t}}function pit(n,t,i){function r(){return(this&&this!==u&&this instanceof r?e:n).apply(f?i:this,arguments)}var f=t&h,e=wl(n);return r}function vb(t){return function(i){i=gr(i);var r=st(i)?l(i):n,u=r?r[0]:i.charAt(0),f=r?oc(r,1).join(""):i.slice(1);return u[t]()+f}}function il(n){return function(t){return di(ad(ld(t).replace(bh,"")),n,"")}}function wl(n){return function(){var t=arguments,i,r;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}return i=hl(n.prototype),r=n.apply(i,t),iu(r)?r:i}}function wit(t,i,r){function e(){for(var a,s=arguments.length,h=ff(s),c=s,l=rl(e);c--;)h[c]=arguments[c];return a=s<3&&h[0]!==l&&h[s-1]!==l?[]:nt(h,l),s-=a.length,s<r?kb(t,i,aa,e.placeholder,n,h,a,n,n,r-s):f(this&&this!==u&&this instanceof e?o:t,this,h)}var o=wl(t);return e}function yb(t){return function(i,r,u){var e=tu(i),o,f;return yf(i)||(o=wt(r,3),i=of(i),r=function(n){return o(e[n],n,e)}),f=t(i,r,u),f>-1?e[o?i[f]:f]:n}}function pb(t){return wh(function(i){var o=i.length,e=o,c=df.prototype.thru,u,r,h,f;for(t&&i.reverse();e--;){if(u=i[e],"function"!=typeof u)throw new io(s);c&&!r&&"wrapper"==wa(u)&&(r=new df([],!0))}for(e=r?e:o;++e<o;)u=i[e],h=wa(u),f="wrapper"==h?dp(u):n,r=f&&tp(f[0])&&f[1]==(b|y|p|kt)&&!f[4].length&&1==f[9]?r[wa(f[0])].apply(r,f[3]):1==u.length&&tp(u)?r[h]():r.thru(u);return function(){var u=arguments,f=u[0],n,t;if(r&&1==u.length&&wi(f))return r.plant(f).value();for(n=0,t=o?i[n].apply(this,u):f;++n<o;)t=i[n].call(this,t);return t}})}function aa(t,i,r,f,e,o,s,c,l,a){function v(){for(var it,ut,rt,y,h=arguments.length,n=ff(h),b=h;b--;)n[b]=arguments[b];return(p&&(it=rl(v),ut=be(n,it)),f&&(n=hb(n,f,e,p)),o&&(n=cb(n,o,s,p)),h-=ut,p&&h<a)?kb(t,i,aa,v.placeholder,r,n,nt(n,it),c,l,a-h):(rt=d?r:this,y=w?rt[t]:t,h=n.length,c?n=vrt(n,c):g&&h>1&&n.reverse(),k&&l<h&&(n.length=l),this&&this!==u&&this instanceof v&&(y=tt||wl(y)),y.apply(rt,n))}var k=i&b,d=i&h,w=i&ut,p=i&(y|at),g=i&sr,tt=w?n:wl(t);return v}function wb(n,t){return function(i,r){return vtt(i,n,t(r),{})}}function va(t,i){return function(r,u){var f;if(r===n&&u===n)return i;if(r!==n&&(f=r),u!==n){if(f===n)return u;"string"==typeof r||"string"==typeof u?(r=bf(r),u=bf(u)):(r=ib(r),u=ib(u));f=t(r,u)}return f}}function wy(n){return wh(function(t){return t=r(t,e(wt())),tr(function(i){var r=this;return n(t,function(n){return f(n,r,i)})})})}function ya(t,i){var r,u;return(i=i===n?" ":bf(i),r=i.length,r<2)?r?hy(i,t):i:(u=hy(i,yv(t/ht(i))),st(i)?oc(l(u),0,t).join(""):u.slice(0,t))}function bit(n,t,i,r){function e(){for(var a=-1,c=arguments.length,t=-1,l=r.length,h=ff(l+c),v=this&&this!==u&&this instanceof e?s:n;++t<l;)h[t]=r[t];for(;c--;)h[t++]=arguments[++a];return f(v,o?i:this,h)}var o=t&h,s=wl(n);return e}function bb(t){return function(i,r,u){return u&&"number"!=typeof u&&af(i,r,u)&&(r=u=n),i=nc(i),r===n?(r=i,i=0):r=nc(r),u=u===n?i<r?1:-1:nc(u),uit(i,r,u,t)}}function pa(n){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=ie(t),i=ie(i)),n(t,i)}}function kb(t,i,r,u,f,e,o,s,c,l){var a=i&y,b=a?o:n,k=a?n:o,d=a?e:n,g=a?n:e,w,v;return i|=a?p:vt,i&=~(a?vt:p),i&pu||(i&=~(h|ut)),w=[t,i,f,d,b,g,k,s,c,l],v=r.apply(n,w),tp(t)&&sg(v,w),v.placeholder=u,sk(v,t,i)}function by(n){var t=fl[n];return function(n,i){if(n=ie(n),i=null==i?0:hf(bi(i),292),i&&ng(n)){var r=(gr(n)+"e").split("e");return r=(gr(t(r[0]+"e"+(+r[1]+i)))+"e").split("e"),+(r[0]+"e"+(+r[1]-i))}return t(n)}}function db(n){return function(t){var i=cf(t);return i==a?fr(t):i==v?to(t):we(t,n(t))}}function ph(t,i,r,u,f,e,o,c){var w=i&ut,a,b,k,v,l,d;if(!w&&"function"!=typeof t)throw new io(s);return a=u?u.length:0,(a||(i&=~(p|vt),u=f=n),o=o===n?o:ef(bi(o),0),c=c===n?c:bi(c),a-=f?f.length:0,i&vt)&&(b=u,k=f,u=f=n),v=w?n:dp(t),l=[t,i,r,u,f,b,k,e,o,c],d=(v&&crt(l,v),t=l[0],i=l[1],r=l[2],u=l[3],f=l[4],c=l[9]=l[9]===n?w?0:t.length:ef(l[9]-a,0),!c&&i&(y|at)&&(i&=~(y|at)),i&&i!=h)?i==y||i==at?wit(t,i,c):i!=p&&i!=(h|p)||f.length?aa.apply(n,l):bit(t,i,r,u):pit(t,i,r),sk((v?fg:sg)(d,l),t,i)}function gb(t,i,r,u){return t===n||fo(t,el[r])&&!nu.call(u,r)?i:t}function nk(t,i,r,u,f,e){return iu(t)&&iu(i)&&(e.set(i,t),sa(t,i,n,nk,e),e.delete(i)),t}function kit(t){return kl(t)?n:t}function tk(t,i,r,u,f,e){var w=r<,l=t.length,b=i.length,a,v,o,h,p;if(l!=b&&!(w&&b>l))return!1;if(a=e.get(t),v=e.get(i),a&&v)return a==i&&v==t;var s=-1,c=!0,y=r&hi?new pc:n;for(e.set(t,i),e.set(i,t);++s<l;){if(o=t[s],h=i[s],u&&(p=w?u(h,o,s,i,t,e):u(o,h,s,t,i,e)),p!==n){if(p)continue;c=!1;break}if(y){if(!gi(i,function(n,t){if(!bt(y,t)&&(o===n||f(o,n,r,u,e)))return y.push(t)})){c=!1;break}}else if(o!==h&&!f(o,h,r,u,e)){c=!1;break}}return e.delete(t),e.delete(i),c}function dit(n,t,i,r,u,f,e){var o,h,s,c;switch(i){case pt:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer;t=t.buffer;case ui:return!(n.byteLength!=t.byteLength||!f(new cv(n),new cv(t)));case dt:case gt:case ni:return fo(+n,+t);case ai:return n.name==t.name&&n.message==t.message;case ti:case ii:return n==t+"";case a:o=fr;case v:return(h=r<,o||(o=oi),n.size!=t.size&&!h)?!1:(s=e.get(n),s)?s==t:(r|=hi,e.set(n,t),c=tk(o(n),o(t),r,u,f,e),e.delete(n),c);case yi:if(ia)return ia.call(n)==ia.call(t)}return!1}function git(t,i,r,u,f,e){var y=r<,w=ky(t),b=w.length,s,o,k,d,h,p,c,l,g,a,v;if(b!=ky(i).length&&!y)return!1;for(s=b;s--;)if(o=w[s],!(y?o in i:nu.call(i,o)))return!1;if(k=e.get(t),d=e.get(i),k&&d)return k==i&&d==t;for(h=!0,e.set(t,i),e.set(i,t),p=y;++s<b;){if(o=w[s],c=t[o],l=i[o],u&&(g=y?u(l,c,o,i,t,e):u(c,l,o,t,i,e)),!(g===n?c===l||f(c,l,r,u,e):g)){h=!1;break}p||(p="constructor"==o)}return h&&!p&&(a=t.constructor,v=i.constructor,a!=v&&"constructor"in t&&"constructor"in i&&!("function"==typeof a&&a instanceof a&&"function"==typeof v&&v instanceof v)&&(h=!1)),e.delete(t),e.delete(i),h}function wh(t){return nw(ek(t,n,vk),t+"")}function ky(n){return lw(n,of,gp)}function dy(n){return lw(n,pf,og)}function wa(n){for(var i,r,t=n.name+"",u=sl[t],f=nu.call(sl,t)?u.length:0;f--;)if(i=u[f],r=i.func,null==r||r==n)return i.name;return t}function rl(n){return(nu.call(et,"placeholder")?et:n).placeholder}function wt(){var n=et.iteratee||hp;return n=n===hp?yw:n,arguments.length?n(arguments[0],arguments[1]):n}function ba(n,t){var i=n.__data__;return ort(t)?i["string"==typeof t?"string":"hash"]:i.map}function gy(n){for(var r,u,t=of(n),i=t.length;i--;)r=t[i],u=n[r],t[i]=[r,u,uk(u)];return t}function kc(t,i){var r=de(t,i);return vw(r)?r:n}function nrt(t){var u=nu.call(t,gc),f=t[gc],i,r;try{t[gc]=n;i=!0}catch(t){}return r=sv.call(t),i&&(u?t[gc]=f:delete t[gc]),r}function trt(n,t,i){for(var f,r,u=-1,e=i.length;++u<e;){f=i[u];r=f.size;switch(f.type){case"drop":n+=r;break;case"dropRight":t-=r;break;case"take":t=hf(t,n+r);break;case"takeRight":n=ef(n,t-r)}}return{start:n,end:t}}function irt(n){var t=n.match(ds);return t?t[1].split(gs):[]}function ik(n,t,i){var u;t=ec(t,n);for(var f=-1,r=t.length,e=!1;++f<r;){if(u=lh(t[f]),!(e=null!=n&&i(n,u)))break;n=n[u]}return e||++f!=r?e:(r=null==n?0:n.length,!!r&&iv(r)&&dh(u,r)&&(wi(n)||nl(n)))}function rrt(n){var i=n.length,t=new n.constructor(i);return i&&"string"==typeof n[0]&&nu.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function rk(n){return"function"!=typeof n.constructor||bl(n)?{}:hl(lv(n))}function urt(n,t,i){var r=n.constructor;switch(t){case ui:return py(n);case dt:case gt:return new r(+n);case pt:return hit(n,i);case hr:case cr:case lr:case ar:case vr:case yr:case pr:case wr:case br:return ob(n,i);case a:return new r;case ni:case ii:return new r(n);case ti:return cit(n);case v:return new r;case yi:return lit(n)}}function frt(n,t){var i=t.length,r;return i?(r=i-1,t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),n.replace(ks,"{\n/* [wrapped with "+t+"] */\n")):n}function ert(n){return wi(n)||nl(n)||!!(gd&&n&&n[gd])}function dh(n,t){var i=typeof n;return t=null==t?it:t,!!t&&("number"==i||"symbol"!=i&&oh.test(n))&&n>-1&&n%1==0&&n<t}function af(n,t,i){if(!iu(i))return!1;var r=typeof t;return!!("number"==r?yf(i)&&dh(t,i.length):"string"==r&&t in i)&&fo(i[t],n)}function np(n,t){if(wi(n))return!1;var i=typeof n;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=n&&!kf(n))||ys.test(n)||!vs.test(n)||null!=t&&n in tu(t)}function ort(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}function tp(n){var r=wa(n),t=et[r],i;return"function"!=typeof t||!(r in dr.prototype)?!1:n===t?!0:(i=dp(t),!!i&&n===i[0])}function srt(n){return!!wd&&wd in n}function bl(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||el)}function uk(n){return n===n&&!iu(n)}function fk(t,i){return function(r){return null!=r&&r[t]===i&&(i!==n||t in tu(r))}}function hrt(n){var t=nv(n,function(n){return i.size===ho&&i.clear(),n}),i=t.cache;return t}function crt(n,t){var f=n[1],u=t[1],e=f|u,o=e<(h|ut|b),s=u==b&&f==y||u==b&&f==kt&&n[7].length<=t[8]||u==(b|kt)&&t[7].length<=t[8]&&f==y,i,r;return!o&&!s?n:(u&h&&(n[2]=t[2],e|=f&h?0:pu),i=t[3],i&&(r=n[3],n[3]=r?hb(r,i,t[4]):i,n[4]=r?nt(n[3],si):t[4]),i=t[5],i&&(r=n[5],n[5]=r?cb(r,i,t[6]):i,n[6]=r?nt(n[5],si):t[6]),i=t[7],i&&(n[7]=i),u&b&&(n[8]=null==n[8]?t[8]:hf(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=e,n)}function lrt(n){var t=[],i;if(null!=n)for(i in tu(n))t.push(i);return t}function art(n){return sv.call(n)}function ek(t,i,r){return i=ef(i===n?t.length-1:i,0),function(){for(var u,e=arguments,n=-1,o=ef(e.length-i,0),s=ff(o);++n<o;)s[n]=e[i+n];for(n=-1,u=ff(i+1);++n<i;)u[n]=e[n];return u[i]=r(s),f(t,this,u)}}function ok(n,t){return t.length<2?n:bc(n,ne(t,0,-1))}function vrt(t,i){for(var u,f=t.length,r=hf(i.length,f),e=vf(t);r--;)u=i[r],t[r]=dh(u,f)?e[u]:n;return t}function ip(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}function sk(n,t,i){var r=t+"";return nw(n,frt(r,yrt(irt(r),i)))}function hk(t){var i=0,r=0;return function(){var u=blt(),f=vo-(u-r);if(r=u,f>0){if(++i>=ao)return arguments[0]}else i=0;return t.apply(n,arguments)}}function ka(t,i){var r=-1,f=t.length,o=f-1,u,e;for(i=i===n?f:i;++r<i;)u=sy(r,o),e=t[u],t[u]=t[r],t[r]=e;return t.length=i,t}function lh(n){if("string"==typeof n||kf(n))return n;var t=n+"";return"0"==t&&1/n==-ft?"-0":t}function dc(n){if(null!=n){try{return ov.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function yrt(n,t){return o(go,function(i){var r="_."+i[0];t&i[1]&&!fi(n,r)&&n.push(r)}),n.sort()}function ck(n){if(n instanceof dr)return n.clone();var t=new df(n.__wrapped__,n.__chain__);return t.__actions__=vf(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function prt(t,i,r){var u;if(i=(r?af(t,i,r):i===n)?1:ef(bi(i),0),u=null==t?0:t.length,!u||i<1)return[];for(var f=0,o=0,e=ff(yv(u/i));f<u;)e[o++]=ne(t,f,f+=i);return e}function wrt(n){for(var t,i=-1,u=null==n?0:n.length,f=0,r=[];++i<u;)t=n[i],t&&(r[f++]=t);return r}function brt(){var n=arguments.length;if(!n)return[];for(var r=ff(n-1),t=arguments[0],i=n;i--;)r[i-1]=arguments[i];return g(wi(t)?vf(t):[t],sf(r,1))}function krt(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),ne(t,i<0?0:i,u)):[]}function drt(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,ne(t,0,i<0?0:i)):[]}function grt(n,t){return n&&n.length?ca(n,wt(t,3),!0,!0):[]}function nut(n,t){return n&&n.length?ca(n,wt(t,3),!0):[]}function tut(n,t,i,r){var u=null==n?0:n.length;return u?(i&&"number"!=typeof i&&af(n,t,i)&&(i=0,r=u),htt(n,t,i,r)):[]}function lk(n,t,i){var u=null==n?0:n.length,r;return u?(r=null==i?0:bi(i),r<0&&(r=ef(u+r,0)),ei(n,wt(t,3),r)):-1}function ak(t,i,r){var f=null==t?0:t.length,u;return f?(u=f-1,r!==n&&(u=bi(r),u=r<0?ef(f+u,0):hf(u,f-1)),ei(t,wt(i,3),u,!0)):-1}function vk(n){return(null==n?0:n.length)?sf(n,1):[]}function iut(n){return(null==n?0:n.length)?sf(n,ft):[]}function rut(t,i){return(null==t?0:t.length)?(i=i===n?1:bi(i),sf(t,i)):[]}function uut(n){for(var t,i=-1,u=null==n?0:n.length,r={};++i<u;)t=n[i],r[t[0]]=t[1];return r}function yk(t){return t&&t.length?t[0]:n}function fut(n,t,i){var u=null==n?0:n.length,r;return u?(r=null==i?0:bi(i),r<0&&(r=ef(u+r,0)),ot(n,t,r)):-1}function eut(n){return(null==n?0:n.length)?ne(n,0,-1):[]}function out(n,t){return null==n?"":plt.call(n,t)}function te(t){var i=null==t?0:t.length;return i?t[i-1]:n}function sut(t,i,r){var f=null==t?0:t.length,u;return f?(u=f,r!==n&&(u=bi(r),u=u<0?ef(f+u,0):hf(u,f-1)),i===i?ro(t,i,u):ei(t,su,u,!0)):-1}function hut(t,i){return t&&t.length?kw(t,bi(i)):n}function pk(n,t){return n&&n.length&&t&&t.length?oy(n,t):n}function cut(n,t,i){return n&&n.length&&t&&t.length?oy(n,t,wt(i,2)):n}function lut(t,i,r){return t&&t.length&&i&&i.length?oy(t,i,n,r):t}function aut(n,t){var r=[],u;if(!n||!n.length)return r;var i=-1,f=[],e=n.length;for(t=wt(t,3);++i<e;)u=n[i],t(u,i,n)&&(r.push(u),f.push(i));return nb(n,f),r}function rp(n){return null==n?n:dlt.call(n)}function vut(t,i,r){var u=null==t?0:t.length;return u?(r&&"number"!=typeof r&&af(t,i,r)?(i=0,r=u):(i=null==i?0:bi(i),r=r===n?u:bi(r)),ne(t,i,r)):[]}function yut(n,t){return ha(n,t)}function put(n,t,i){return cy(n,t,wt(i,2))}function wut(n,t){var r=null==n?0:n.length,i;return r&&(i=ha(n,t),i<r&&fo(n[i],t))?i:-1}function but(n,t){return ha(n,t,!0)}function kut(n,t,i){return cy(n,t,wt(i,2),!0)}function dut(n,t){if(null==n?0:n.length){var i=ha(n,t,!0)-1;if(fo(n[i],t))return i}return-1}function gut(n){return n&&n.length?tb(n):[]}function nft(n,t){return n&&n.length?tb(n,wt(t,2)):[]}function tft(n){var t=null==n?0:n.length;return t?ne(n,1,t):[]}function ift(t,i,r){return t&&t.length?(i=r||i===n?1:bi(i),ne(t,0,i<0?0:i)):[]}function rft(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,ne(t,i<0?0:i,u)):[]}function uft(n,t){return n&&n.length?ca(n,wt(t,3),!1,!0):[]}function fft(n,t){return n&&n.length?ca(n,wt(t,3)):[]}function eft(n){return n&&n.length?rc(n):[]}function oft(n,t){return n&&n.length?rc(n,wt(t,2)):[]}function sft(t,i){return i="function"==typeof i?i:n,t&&t.length?rc(t,n,i):[]}function up(n){if(!n||!n.length)return[];var t=0;return n=d(n,function(n){if(uu(n))return t=ef(n.length,t),!0}),rr(t,function(t){return r(n,nr(t))})}function wk(t,i){if(!t||!t.length)return[];var u=up(t);return null==i?u:r(u,function(t){return f(i,n,t)})}function hft(n,t){return fb(n||[],t||[],ll)}function cft(n,t){return fb(n||[],t||[],pl)}function bk(n){var t=et(n);return t.__chain__=!0,t}function lft(n,t){return t(n),n}function da(n,t){return t(n)}function aft(){return bk(this)}function vft(){return new df(this.value(),this.__chain__)}function yft(){this.__values__===n&&(this.__values__=ed(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}}function pft(){return this}function wft(t){for(var u,i,f,r=this;r instanceof ua;)i=ck(r),i.__index__=0,i.__values__=n,u?f.__wrapped__=i:u=i,f=i,r=r.__wrapped__;return f.__wrapped__=t,u}function bft(){var i=this.__wrapped__,t;return i instanceof dr?(t=i,this.__actions__.length&&(t=new dr(this)),t=t.reverse(),t.__actions__.push({func:da,args:[rp],thisArg:n}),new df(t,this.__chain__)):this.thru(rp)}function kft(){return ub(this.__wrapped__,this.__actions__)}function dft(t,i,r){var u=wi(t)?fu:stt;return r&&af(t,i,r)&&(i=n),u(t,wt(i,3))}function gft(n,t){return(wi(n)?d:cw)(n,wt(t,3))}function net(n,t){return sf(ga(n,t),1)}function tet(n,t){return sf(ga(n,t),ft)}function iet(t,i,r){return r=r===n?1:bi(r),sf(ga(t,i),r)}function kk(n,t){return(wi(n)?o:ac)(n,wt(t,3))}function dk(n,t){return(wi(n)?le:rg)(n,wt(t,3))}function ret(n,t,i,r){n=yf(n)?n:ul(n);i=i&&!r?bi(i):0;var u=n.length;return i<0&&(i=ef(u+i,0)),rv(n)?i<=u&&n.indexOf(t,i)>-1:!!u&&ot(n,t,i)>-1}function ga(n,t){return(wi(n)?r:pw)(n,wt(t,3))}function uet(t,i,r,u){return null==t?[]:(wi(i)||(i=null==i?[]:[i]),r=u?n:r,wi(r)||(r=null==r?[]:[r]),dw(t,i,r))}function fet(n,t,i){var r=wi(n)?di:cu,u=arguments.length<3;return r(n,wt(t,4),i,u,ac)}function eet(n,t,i){var r=wi(n)?ae:cu,u=arguments.length<3;return r(n,wt(t,4),i,u,rg)}function oet(n,t){return(wi(n)?d:cw)(n,tv(wt(t,3)))}function set(n){return(wi(n)?ew:fit)(n)}function het(t,i,r){return i=(r?af(t,i,r):i===n)?1:bi(i),(wi(t)?rtt:eit)(t,i)}function cet(n){return(wi(n)?utt:oit)(n)}function aet(n){if(null==n)return 0;if(yf(n))return rv(n)?ht(n):n.length;var t=cf(n);return t==a||t==v?n.size:fy(n).length}function vet(t,i,r){var u=wi(t)?gi:sit;return r&&af(t,i,r)&&(i=n),u(t,wt(i,3))}function yet(n,t){if("function"!=typeof t)throw new io(s);return n=bi(n),function(){if(--n<1)return t.apply(this,arguments)}}function gk(t,i,r){return i=r?n:i,i=t&&null==i?t.length:i,ph(t,b,n,n,n,n,i)}function nd(t,i){var r;if("function"!=typeof i)throw new io(s);return t=bi(t),function(){return--t>0&&(r=i.apply(this,arguments)),t<=1&&(i=n),r}}function td(t,i,r){i=r?n:i;var u=ph(t,y,n,n,n,n,n,i);return u.placeholder=td.placeholder,u}function id(t,i,r){i=r?n:i;var u=ph(t,at,n,n,n,n,n,i);return u.placeholder=id.placeholder,u}function rd(t,i,r){function y(i){var r=e,u=o;return e=o=n,c=i,h=t.apply(u,r)}function g(n){return c=n,u=ra(a,i),d?y(n):h}function nt(n){var r=n-f,u=n-c,t=i-r;return l?hf(t,v-u):t}function b(t){var r=t-f,u=t-c;return f===n||r>=i||r<0||l&&u>=v}function a(){var t=kv();return b(t)?k(t):(u=ra(a,nt(t)),n)}function k(t){return u=n,w&&e?y(t):(e=o=n,h)}function tt(){u!==n&&eg(u);c=0;e=f=o=u=n}function it(){return u===n?h:k(kv())}function p(){var t=kv(),r=b(t);if(e=arguments,o=this,f=t,r){if(u===n)return g(f);if(l)return eg(u),u=ra(a,i),y(f)}return u===n&&(u=ra(a,i)),h}var e,o,v,h,u,f,c=0,d=!1,l=!1,w=!0;if("function"!=typeof t)throw new io(s);return i=ie(i)||0,iu(r)&&(d=!!r.leading,l="maxWait"in r,v=l?ef(ie(r.maxWait)||0,i):v,w="trailing"in r?!!r.trailing:w),p.cancel=tt,p.flush=it,p}function pet(n){return ph(n,sr)}function nv(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new io(s);var i=function(){var u=arguments,f=t?t.apply(this,u):u[0],r=i.cache,e;return r.has(f)?r.get(f):(e=n.apply(this,u),i.cache=r.set(f,e)||r,e)};return i.cache=new(nv.Cache||vh),i}function tv(n){if("function"!=typeof n)throw new io(s);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function wet(n){return nd(2,n)}function bet(t,i){if("function"!=typeof t)throw new io(s);return i=i===n?i:bi(i),tr(t,i)}function ket(n,t){if("function"!=typeof n)throw new io(s);return t=null==t?0:ef(bi(t),0),tr(function(i){var r=i[t],u=oc(i,0,t);return r&&g(u,r),f(n,this,u)})}function det(n,t,i){var r=!0,u=!0;if("function"!=typeof n)throw new io(s);return iu(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),rd(n,t,{leading:r,maxWait:t,trailing:u})}function get(n){return gk(n,1)}function not(n,t){return iw(yy(t),n)}function tot(){if(!arguments.length)return[];var n=arguments[0];return wi(n)?n:[n]}function iot(n){return gf(n,ct)}function rot(t,i){return i="function"==typeof i?i:n,gf(t,ct,i)}function uot(n){return gf(n,tt|ct)}function fot(t,i){return i="function"==typeof i?i:n,gf(t,tt|ct,i)}function eot(n,t){return null==t||sw(n,t,of(t))}function fo(n,t){return n===t||n!==n&&t!==t}function yf(n){return null!=n&&iv(n.length)&&!gh(n)}function uu(n){return ru(n)&&yf(n)}function oot(n){return n===!0||n===!1||ru(n)&&lf(n)==dt}function sot(n){return ru(n)&&1===n.nodeType&&!kl(n)}function hot(n){var t,i;if(null==n)return!0;if(yf(n)&&(wi(n)||"string"==typeof n||"function"==typeof n.splice||vc(n)||cl(n)||nl(n)))return!n.length;if(t=cf(n),t==a||t==v)return!n.size;if(bl(n))return!fy(n).length;for(i in n)if(nu.call(n,i))return!1;return!0}function cot(n,t){return yl(n,t)}function lot(t,i,r){r="function"==typeof r?r:n;var u=r?r(t,i):n;return u===n?yl(t,i,n,r):!!u}function fp(n){if(!ru(n))return!1;var t=lf(n);return t==ai||t==ts||"string"==typeof n.message&&"string"==typeof n.name&&!kl(n)}function aot(n){return"number"==typeof n&&ng(n)}function gh(n){if(!iu(n))return!1;var t=lf(n);return t==vi||t==bu||t==ns||t==rs}function ud(n){return"number"==typeof n&&n==bi(n)}function iv(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=it}function iu(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ru(n){return null!=n&&"object"==typeof n}function vot(n,t){return n===t||uy(n,t,gy(t))}function yot(t,i,r){return r="function"==typeof r?r:n,uy(t,i,gy(i),r)}function pot(n){return fd(n)&&n!=+n}function wot(n){if(oat(n))throw new yd(so);return vw(n)}function bot(n){return null===n}function kot(n){return null==n}function fd(n){return"number"==typeof n||ru(n)&&lf(n)==ni}function kl(n){var i,t;return!ru(n)||lf(n)!=k?!1:(i=lv(n),null===i)?!0:(t=nu.call(i,"constructor")&&i.constructor,"function"==typeof t&&t instanceof t&&ov.call(t)==slt)}function dot(n){return ud(n)&&n>=-it&&n<=it}function rv(n){return"string"==typeof n||!wi(n)&&ru(n)&&lf(n)==ii}function kf(n){return"symbol"==typeof n||ru(n)&&lf(n)==yi}function got(t){return t===n}function nst(n){return ru(n)&&cf(n)==ri}function tst(n){return ru(n)&&lf(n)==fs}function ed(n){if(!n)return[];if(yf(n))return rv(n)?l(n):vf(n);if(dl&&n[dl])return no(n[dl]());var t=cf(n);return(t==a?fr:t==v?oi:ul)(n)}function nc(n){return n?(n=ie(n),n===ft||n===-ft)?(n<0?-1:1)*wo:n===n?n:0:0===n?n:0}function bi(n){var t=nc(n),i=t%1;return t===t?i?t-i:t:0}function od(n){return n?wc(bi(n),0,w):0}function ie(n){var t,i;return"number"==typeof n?n:kf(n)?ci:(iu(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=iu(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=n.replace(tf,""),i=uh.test(n),i||eh.test(n)?fc(n.slice(2),i?2:8):rh.test(n)?ci:+n)}function sd(n){return ch(n,pf(n))}function ist(n){return n?wc(bi(n),-it,it):0===n?n:0}function gr(n){return null==n?"":bf(n)}function rst(n,t){var i=hl(n);return null==t?i:ow(i,t)}function ust(n,t){return ou(n,wt(t,3),nh)}function fst(n,t){return ou(n,wt(t,3),ty)}function est(n,t){return null==n?n:kp(n,wt(t,3),pf)}function ost(n,t){return null==n?n:ug(n,wt(t,3),pf)}function sst(n,t){return n&&nh(n,wt(t,3))}function hst(n,t){return n&&ty(n,wt(t,3))}function cst(n){return null==n?[]:oa(n,of(n))}function lst(n){return null==n?[]:oa(n,pf(n))}function ep(t,i,r){var u=null==t?n:bc(t,i);return u===n?r:u}function ast(n,t){return null!=n&&ik(n,t,ctt)}function op(n,t){return null!=n&&ik(n,t,ltt)}function of(n){return yf(n)?fw(n):fy(n)}function pf(n){return yf(n)?fw(n,!0):nit(n)}function vst(n,t){var i={};return t=wt(t,3),nh(n,function(n,r,u){yh(i,t(n,r,u),n)}),i}function yst(n,t){var i={};return t=wt(t,3),nh(n,function(n,r,u){yh(i,r,t(n,r,u))}),i}function pst(n,t){return hd(n,tv(wt(t)))}function hd(n,t){if(null==n)return{};var i=r(dy(n),function(n){return[n]});return t=wt(t),gw(n,i,function(n,i){return t(n,i[0])})}function wst(t,i,r){var e,f,u;for(i=ec(i,t),e=-1,f=i.length,f||(f=1,t=n);++e<f;)u=null==t?n:t[lh(i[e])],u===n&&(e=f,u=r),t=gh(u)?u.call(t):u;return t}function bst(n,t,i){return null==n?n:pl(n,t,i)}function kst(t,i,r,u){return u="function"==typeof u?u:n,null==t?t:pl(t,i,r,u)}function dst(n,t,i){var u=wi(n),f=u||vc(n)||cl(n),r;return(t=wt(t,4),null==i)&&(r=n&&n.constructor,i=f?u?new r:[]:iu(n)&&gh(r)?hl(lv(n)):{}),(f?o:nh)(n,function(n,r,u){return t(i,n,r,u)}),i}function gst(n,t){return null==n||ly(n,t)}function nht(n,t,i){return null==n?n:rb(n,t,yy(i))}function tht(t,i,r,u){return u="function"==typeof u?u:n,null==t?t:rb(t,i,yy(r),u)}function ul(n){return null==n?[]:ur(n,of(n))}function iht(n){return null==n?[]:ur(n,pf(n))}function rht(t,i,r){return r===n&&(r=i,i=n),r!==n&&(r=ie(r),r=r===r?r:0),i!==n&&(i=ie(i),i=i===i?i:0),wc(ie(t),i,r)}function uht(t,i,r){return i=nc(i),r===n?(r=i,i=0):r=nc(r),t=ie(t),att(t,i,r)}function fht(t,i,r){var f,u;return((r&&"boolean"!=typeof r&&af(t,i,r)&&(i=r=n),r===n&&("boolean"==typeof i?(r=i,i=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&i===n?(t=0,i=1):(t=nc(t),i===n?(i=t,t=0):i=nc(i)),t>i)&&(f=t,t=i,i=f),r||t%1||i%1)?(u=tg(),hf(t+u*(i-t+uc("1e-"+((u+"").length-1))),i)):sy(t,i)}function cd(n){return uw(gr(n).toLowerCase())}function ld(n){return n=gr(n),n&&n.replace(sh,sc).replace(kh,"")}function eht(t,i,r){var u,f;return t=gr(t),i=bf(i),u=t.length,r=r===n?u:wc(bi(r),0,u),f=r,r-=i.length,r>=0&&t.slice(r,f)==i}function oht(n){return n=gr(n),n&&cs.test(n)?n.replace(gu,hc):n}function sht(n){return n=gr(n),n&&ws.test(n)?n.replace(kr,"\\$&"):n}function hht(n,t,i){var r,u;return(n=gr(n),t=bi(t),r=t?ht(n):0,!t||r>=t)?n:(u=(t-r)/2,ya(pv(u),i)+n+ya(yv(u),i))}function cht(n,t,i){n=gr(n);t=bi(t);var r=t?ht(n):0;return t&&r<t?n+ya(t-r,i):n}function lht(n,t,i){n=gr(n);t=bi(t);var r=t?ht(n):0;return t&&r<t?ya(t-r,i)+n:n}function aht(n,t,i){return i||null==t?t=0:t&&(t=+t),klt(gr(n).replace(rf,""),t||0)}function vht(t,i,r){return i=(r?af(t,i,r):i===n)?1:bi(i),hy(gr(t),i)}function yht(){var n=arguments,t=gr(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function pht(t,i,r){return r&&"number"!=typeof r&&af(t,i,r)&&(i=r=n),(r=r===n?w:r>>>0)?(t=gr(t),t&&("string"==typeof i||null!=i&&!rw(i))&&(i=bf(i),!i&&st(t))?oc(l(t),0,r):t.split(i,r)):[]}function wht(n,t,i){return n=gr(n),i=null==i?0:wc(bi(i),0,n.length),t=bf(t),n.slice(i,i+t.length)==t}function bht(t,i,r){var s=et.templateSettings,e,f;r&&af(t,i,r)&&(i=n);t=gr(t);i=dv({},i,s,gb);var h,o,c=dv({},i.imports,s.imports,gb),l=of(c),y=ur(c,l),a=0,v=i.interpolate||pi,u="__p += '",p=yp((i.escape||pi).source+"|"+v.source+"|"+(v===nf?ih:pi).source+"|"+(i.evaluate||pi).source+"|$","g"),w="//# sourceURL="+(nu.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ic+"]")+"\n";if(t.replace(p,function(n,i,r,f,e,s){return r||(r=f),u+=t.slice(a,s).replace(hh,ke),i&&(h=!0,u+="' +\n__e("+i+") +\n'"),e&&(o=!0,u+="';\n"+e+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),a=s+n.length,n}),u+="';\n",e=nu.call(i,"variable")&&i.variable,e||(u="with (obj) {\n"+u+"\n}\n"),u=(o?u.replace(es,""):u).replace(os,"$1").replace(ss,"$1;"),u="function("+(e||"obj")+") {\n"+(e?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(h?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",f=kg(function(){return pd(l,w+"return "+u).apply(n,y)}),f.source=u,fp(f))throw f;return f}function kht(n){return gr(n).toLowerCase()}function dht(n){return gr(n).toUpperCase()}function ght(t,i,r){if(t=gr(t),t&&(r||i===n))return t.replace(tf,"");if(!t||!(i=bf(i)))return t;var u=l(t),f=l(i);return oc(u,lu(u,f),au(u,f)+1).join("")}function nct(t,i,r){if(t=gr(t),t&&(r||i===n))return t.replace(bs,"");if(!t||!(i=bf(i)))return t;var u=l(t);return oc(u,0,au(u,l(i))+1).join("")}function tct(t,i,r){if(t=gr(t),t&&(r||i===n))return t.replace(rf,"");if(!t||!(i=bf(i)))return t;var u=l(t);return oc(u,lu(u,l(i))).join("")}function ict(t,i){var s=co,e=lo,r,h,o,u,f,v,y,c,a;if(iu(i)&&(r="separator"in i?i.separator:r,s="length"in i?bi(i.length):s,e="omission"in i?bf(i.omission):e),t=gr(t),h=t.length,st(t)&&(o=l(t),h=o.length),s>=h)return t;if(u=s-ht(e),u<1)return e;if(f=o?oc(o,0,u).join(""):t.slice(0,u),r===n)return f+e;if(o&&(u+=f.length-u),rw(r)){if(t.slice(u).search(r)){for(y=f,r.global||(r=yp(r.source,gr(uf.exec(r))+"g")),r.lastIndex=0;v=r.exec(y);)c=v.index;f=f.slice(0,c===n?u:c)}}else t.indexOf(bf(r),u)!=u&&(a=f.lastIndexOf(r),a>-1&&(f=f.slice(0,a)));return f+e}function rct(n){return n=gr(n),n&&hs.test(n)?n.replace(du,cc):n}function ad(t,i,r){return t=gr(t),i=r?n:i,i===n?ge(t)?eo(t):ve(t):t.match(i)||[]}function uct(n){var t=null==n?0:n.length,i=wt();return n=t?r(n,function(n){if("function"!=typeof n[1])throw new io(s);return[i(n[0]),n[1]]}):[],tr(function(i){for(var u,r=-1;++r<t;)if(u=n[r],f(u[0],this,i))return f(u[1],this,i)})}function fct(n){return ott(gf(n,tt))}function sp(n){return function(){return n}}function ect(n,t){return null==n||n!==n?t:n}function wf(n){return n}function hp(n){return yw("function"==typeof n?n:gf(n,tt))}function oct(n){return ww(gf(n,tt))}function sct(n,t){return bw(n,gf(t,tt))}function cp(n,t,i){var u=of(t),r=oa(t,u),f,e;return null!=i||iu(t)&&(r.length||!u.length)||(i=t,t=n,n=this,r=oa(t,of(t))),f=!(iu(i)&&"chain"in i&&!i.chain),e=gh(n),o(r,function(i){var r=t[i];n[i]=r;e&&(n.prototype[i]=function(){var i=this.__chain__,t;return f||i?(t=n(this.__wrapped__),(t.__actions__=vf(this.__actions__)).push({func:r,args:arguments,thisArg:n}),t.__chain__=i,t):r.apply(n,g([this.value()],arguments))})}),n}function hct(){return u._===this&&(u._=hlt),this}function lp(){}function cct(n){return n=bi(n),tr(function(t){return kw(t,n)})}function vd(n){return np(n)?nr(lh(n)):rit(n)}function lct(t){return function(i){return null==t?n:bc(t,i)}}function ap(){return[]}function vp(){return!1}function act(){return{}}function vct(){return""}function yct(){return!0}function pct(n,t){var i,r,u;if(n=bi(n),n<1||n>it)return[];for(i=w,r=hf(n,w),t=wt(t),n-=w,u=rr(r,t);++i<n;)t(i);return u}function wct(n){return wi(n)?r(n,lh):kf(n)?[n]:vf(hg(gr(n)))}function bct(n){var t=++olt;return gr(n)+t}function kct(t){return t&&t.length?ea(t,wf,iy):n}function dct(t,i){return t&&t.length?ea(t,wt(i,2),iy):n}function gct(n){return hu(n,wf)}function nlt(n,t){return hu(n,wt(t,2))}function tlt(t){return t&&t.length?ea(t,wf,ey):n}function ilt(t,i){return t&&t.length?ea(t,wt(i,2),ey):n}function rlt(n){return n&&n.length?ir(n,wf):0}function ult(n,t){return n&&n.length?ir(n,wt(t,2)):0}c=null==c?u:rt.defaults(u.Object(),c,rt.pick(u,tc));var ff=c.Array,uv=c.Date,yd=c.Error,pd=c.Function,fl=c.Math,tu=c.Object,yp=c.RegExp,flt=c.String,io=c.TypeError,fv=ff.prototype,elt=pd.prototype,el=tu.prototype,ev=c["__core-js_shared__"],ov=elt.toString,nu=el.hasOwnProperty,olt=0,wd=function(){var n=/[^.]+$/.exec(ev&&ev.keys&&ev.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),sv=el.toString,slt=ov.call(tu),hlt=u._,clt=yp("^"+ov.call(nu).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hv=re?c.Buffer:n,lc=c.Symbol,cv=c.Uint8Array,bd=hv?hv.allocUnsafe:n,lv=vu(tu.getPrototypeOf,tu),kd=tu.create,dd=el.propertyIsEnumerable,av=fv.splice,gd=lc?lc.isConcatSpreadable:n,dl=lc?lc.iterator:n,gc=lc?lc.toStringTag:n,vv=function(){try{var n=kc(tu,"defineProperty");return n({},"",{}),n}catch(n){}}(),llt=c.clearTimeout!==u.clearTimeout&&c.clearTimeout,alt=uv&&uv.now!==u.Date.now&&uv.now,vlt=c.setTimeout!==u.setTimeout&&c.setTimeout,yv=fl.ceil,pv=fl.floor,pp=tu.getOwnPropertySymbols,ylt=hv?hv.isBuffer:n,ng=c.isFinite,plt=fv.join,wlt=vu(tu.keys,tu),ef=fl.max,hf=fl.min,blt=uv.now,klt=c.parseInt,tg=fl.random,dlt=fv.reverse,wp=kc(c,"DataView"),gl=kc(c,"Map"),bp=kc(c,"Promise"),ol=kc(c,"Set"),na=kc(c,"WeakMap"),ta=kc(tu,"create"),wv=na&&new na,sl={},glt=dc(wp),nat=dc(gl),tat=dc(bp),iat=dc(ol),rat=dc(na),bv=lc?lc.prototype:n,ia=bv?bv.valueOf:n,ig=bv?bv.toString:n,hl=function(){function t(){}return function(i){if(!iu(i))return{};if(kd)return kd(i);t.prototype=i;var r=new t;return t.prototype=n,r}}();et.templateSettings={escape:ls,evaluate:as,interpolate:nf,variable:"",imports:{_:et}};et.prototype=ua.prototype;et.prototype.constructor=et;df.prototype=hl(ua.prototype);df.prototype.constructor=df;dr.prototype=hl(ua.prototype);dr.prototype.constructor=dr;yc.prototype.clear=tn;yc.prototype.delete=rn;yc.prototype.get=un;yc.prototype.has=fn;yc.prototype.set=en;ah.prototype.clear=on;ah.prototype.delete=sn;ah.prototype.get=hn;ah.prototype.has=cn;ah.prototype.set=ln;vh.prototype.clear=an;vh.prototype.delete=vn;vh.prototype.get=yn;vh.prototype.has=pn;vh.prototype.set=wn;pc.prototype.add=pc.prototype.push=bn;pc.prototype.has=kn;uo.prototype.clear=dn;uo.prototype.delete=gn;uo.prototype.get=ntt;uo.prototype.has=ttt;uo.prototype.set=itt;var ac=lb(nh),rg=lb(ty,!0),kp=ab(),ug=ab(!0),fg=wv?function(n,t){return wv.set(n,t),n}:wf,uat=vv?function(n,t){return vv(n,"toString",{configurable:!0,enumerable:!1,value:sp(t),writable:!0})}:wf,fat=tr,eg=llt||function(n){return u.clearTimeout(n)},eat=ol&&1/oi(new ol([,-0]))[1]==ft?function(n){return new ol(n)}:lp,dp=wv?function(n){return wv.get(n)}:lp,gp=pp?function(n){return null==n?[]:(n=tu(n),d(pp(n),function(t){return dd.call(n,t)}))}:ap,og=pp?function(n){for(var t=[];n;)g(t,gp(n)),n=lv(n);return t}:ap,cf=lf;(wp&&cf(new wp(new ArrayBuffer(1)))!=pt||gl&&cf(new gl)!=a||bp&&cf(bp.resolve())!=ku||ol&&cf(new ol)!=v||na&&cf(new na)!=ri)&&(cf=function(t){var i=lf(t),r=i==k?t.constructor:n,u=r?dc(r):"";if(u)switch(u){case glt:return pt;case nat:return a;case tat:return ku;case iat:return v;case rat:return ri}return i});var oat=ev?gh:vp,sg=hk(fg),ra=vlt||function(n,t){return u.setTimeout(n,t)},nw=hk(uat),hg=hrt(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(ps,function(n,i,r,u){t.push(r?u.replace(th,"$1"):i||n)}),t}),sat=tr(function(n,t){return uu(n)?al(n,sf(t,1,uu,!0)):[]}),hat=tr(function(t,i){var r=te(i);return uu(r)&&(r=n),uu(t)?al(t,sf(i,1,uu,!0),wt(r,2)):[]}),cat=tr(function(t,i){var r=te(i);return uu(r)&&(r=n),uu(t)?al(t,sf(i,1,uu,!0),n,r):[]}),lat=tr(function(n){var t=r(n,vy);return t.length&&t[0]===n[0]?ry(t):[]}),aat=tr(function(t){var u=te(t),i=r(t,vy);return u===te(i)?u=n:i.pop(),i.length&&i[0]===t[0]?ry(i,wt(u,2)):[]}),vat=tr(function(t){var i=te(t),u=r(t,vy);return i="function"==typeof i?i:n,i&&u.pop(),u.length&&u[0]===t[0]?ry(u,n,i):[]}),yat=tr(pk),pat=wh(function(n,t){var i=null==n?0:n.length,u=ny(n,t);return nb(n,r(t,function(n){return dh(n,i)?+n:n}).sort(sb)),u}),wat=tr(function(n){return rc(sf(n,1,uu,!0))}),bat=tr(function(t){var i=te(t);return uu(i)&&(i=n),rc(sf(t,1,uu,!0),wt(i,2))}),kat=tr(function(t){var i=te(t);return i="function"==typeof i?i:n,rc(sf(t,1,uu,!0),n,i)}),dat=tr(function(n,t){return uu(n)?al(n,t):[]}),gat=tr(function(n){return ay(d(n,uu))}),nvt=tr(function(t){var i=te(t);return uu(i)&&(i=n),ay(d(t,uu),wt(i,2))}),tvt=tr(function(t){var i=te(t);return i="function"==typeof i?i:n,ay(d(t,uu),n,i)}),ivt=tr(up),rvt=tr(function(t){var r=t.length,i=r>1?t[r-1]:n;return i="function"==typeof i?(t.pop(),i):n,wk(t,i)}),uvt=wh(function(t){var r=t.length,u=r?t[0]:0,i=this.__wrapped__,f=function(n){return ny(n,t)};return!(r>1||this.__actions__.length)&&i instanceof dr&&dh(u)?(i=i.slice(u,+u+(r?1:0)),i.__actions__.push({func:da,args:[f],thisArg:n}),new df(i,this.__chain__).thru(function(t){return r&&!t.length&&t.push(n),t})):this.thru(f)}),fvt=la(function(n,t,i){nu.call(n,i)?++n[i]:yh(n,i,1)}),evt=yb(lk),ovt=yb(ak),svt=la(function(n,t,i){nu.call(n,i)?n[i].push(t):yh(n,i,[t])}),hvt=tr(function(n,t,i){var u=-1,e="function"==typeof t,r=yf(n)?ff(n.length):[];return ac(n,function(n){r[++u]=e?f(t,n,i):vl(n,t,i)}),r}),cvt=la(function(n,t,i){yh(n,i,t)}),lvt=la(function(n,t,i){n[i?0:1].push(t)},function(){return[[],[]]}),avt=tr(function(n,t){if(null==n)return[];var i=t.length;return i>1&&af(n,t[0],t[1])?t=[]:i>2&&af(t[0],t[1],t[2])&&(t=[t[0]]),dw(n,sf(t,1),[])}),kv=alt||function(){return u.Date.now()},tw=tr(function(n,t,i){var r=h,u;return i.length&&(u=nt(i,rl(tw)),r|=p),ph(n,r,t,i,u)}),cg=tr(function(n,t,i){var r=h|ut,u;return i.length&&(u=nt(i,rl(cg)),r|=p),ph(t,r,n,i,u)}),vvt=tr(function(n,t){return hw(n,1,t)}),yvt=tr(function(n,t,i){return hw(n,ie(t)||0,i)});nv.Cache=vh;var pvt=fat(function(n,t){t=1==t.length&&wi(t[0])?r(t[0],e(wt())):r(sf(t,1),e(wt()));var i=t.length;return tr(function(r){for(var u=-1,e=hf(r.length,i);++u<e;)r[u]=t[u].call(this,r[u]);return f(n,this,r)})}),iw=tr(function(t,i){return ph(t,p,n,i,nt(i,rl(iw)))}),lg=tr(function(t,i){return ph(t,vt,n,i,nt(i,rl(lg)))}),wvt=wh(function(t,i){return ph(t,kt,n,n,n,i)}),bvt=pa(iy),kvt=pa(function(n,t){return n>=t}),nl=aw(function(){return arguments}())?aw:function(n){return ru(n)&&nu.call(n,"callee")&&!dd.call(n,"callee")},wi=ff.isArray,dvt=ue?e(ue):ytt,vc=ylt||vp,gvt=fe?e(fe):ptt,ag=ee?e(ee):btt,rw=oe?e(oe):ktt,vg=se?e(se):dtt,cl=he?e(he):gtt,nyt=pa(ey),tyt=pa(function(n,t){return n<=t}),iyt=tl(function(t,i){if(bl(i)||yf(i))return ch(i,of(i),t),n;for(var r in i)nu.call(i,r)&&ll(t,r,i[r])}),yg=tl(function(n,t){ch(t,pf(t),n)}),dv=tl(function(n,t,i,r){ch(t,pf(t),n,r)}),ryt=tl(function(n,t,i,r){ch(t,of(t),n,r)}),uyt=wh(ny),fyt=tr(function(t,i){var r,f;t=tu(t);var e=-1,u=i.length,o=u>2?i[2]:n;for(o&&af(i[0],i[1],o)&&(u=1);++e<u;)for(var s=i[e],h=pf(s),c=-1,l=h.length;++c<l;)r=h[c],f=t[r],(f===n||fo(f,el[r])&&!nu.call(t,r))&&(t[r]=s[r]);return t}),eyt=tr(function(t){return t.push(n,nk),f(pg,n,t)}),oyt=wb(function(n,t,i){null!=t&&"function"!=typeof t.toString&&(t=sv.call(t));n[t]=i},sp(wf)),syt=wb(function(n,t,i){null!=t&&"function"!=typeof t.toString&&(t=sv.call(t));nu.call(n,t)?n[t].push(i):n[t]=[i]},wt),hyt=tr(vl),cyt=tl(function(n,t,i){sa(n,t,i)}),pg=tl(function(n,t,i,r){sa(n,t,i,r)}),lyt=wh(function(n,t){var i={},u,f;if(null==n)return i;for(u=!1,t=r(t,function(t){return t=ec(t,n),u||(u=t.length>1),t}),ch(n,dy(n),i),u&&(i=gf(i,tt|yu|ct,kit)),f=t.length;f--;)ly(i,t[f]);return i}),ayt=wh(function(n,t){return null==n?{}:iit(n,t)}),wg=db(of),bg=db(pf),vyt=il(function(n,t,i){return t=t.toLowerCase(),n+(i?cd(t):t)}),yyt=il(function(n,t,i){return n+(i?"-":"")+t.toLowerCase()}),pyt=il(function(n,t,i){return n+(i?" ":"")+t.toLowerCase()}),wyt=vb("toLowerCase"),byt=il(function(n,t,i){return n+(i?"_":"")+t.toLowerCase()}),kyt=il(function(n,t,i){return n+(i?" ":"")+uw(t)}),dyt=il(function(n,t,i){return n+(i?" ":"")+t.toUpperCase()}),uw=vb("toUpperCase"),kg=tr(function(t,i){try{return f(t,n,i)}catch(f){return fp(f)?f:new yd(f)}}),gyt=wh(function(n,t){return o(t,function(t){t=lh(t);yh(n,t,tw(n[t],n))}),n}),npt=pb(),tpt=pb(!0),ipt=tr(function(n,t){return function(i){return vl(i,n,t)}}),rpt=tr(function(n,t){return function(i){return vl(n,i,t)}}),upt=wy(r),fpt=wy(fu),ept=wy(gi),opt=bb(),spt=bb(!0),hpt=va(function(n,t){return n+t},0),cpt=by("ceil"),lpt=va(function(n,t){return n/t},1),apt=by("floor"),vpt=va(function(n,t){return n*t},1),ypt=by("round"),ppt=va(function(n,t){return n-t},0);return et.after=yet,et.ary=gk,et.assign=iyt,et.assignIn=yg,et.assignInWith=dv,et.assignWith=ryt,et.at=uyt,et.before=nd,et.bind=tw,et.bindAll=gyt,et.bindKey=cg,et.castArray=tot,et.chain=bk,et.chunk=prt,et.compact=wrt,et.concat=brt,et.cond=uct,et.conforms=fct,et.constant=sp,et.countBy=fvt,et.create=rst,et.curry=td,et.curryRight=id,et.debounce=rd,et.defaults=fyt,et.defaultsDeep=eyt,et.defer=vvt,et.delay=yvt,et.difference=sat,et.differenceBy=hat,et.differenceWith=cat,et.drop=krt,et.dropRight=drt,et.dropRightWhile=grt,et.dropWhile=nut,et.fill=tut,et.filter=gft,et.flatMap=net,et.flatMapDeep=tet,et.flatMapDepth=iet,et.flatten=vk,et.flattenDeep=iut,et.flattenDepth=rut,et.flip=pet,et.flow=npt,et.flowRight=tpt,et.fromPairs=uut,et.functions=cst,et.functionsIn=lst,et.groupBy=svt,et.initial=eut,et.intersection=lat,et.intersectionBy=aat,et.intersectionWith=vat,et.invert=oyt,et.invertBy=syt,et.invokeMap=hvt,et.iteratee=hp,et.keyBy=cvt,et.keys=of,et.keysIn=pf,et.map=ga,et.mapKeys=vst,et.mapValues=yst,et.matches=oct,et.matchesProperty=sct,et.memoize=nv,et.merge=cyt,et.mergeWith=pg,et.method=ipt,et.methodOf=rpt,et.mixin=cp,et.negate=tv,et.nthArg=cct,et.omit=lyt,et.omitBy=pst,et.once=wet,et.orderBy=uet,et.over=upt,et.overArgs=pvt,et.overEvery=fpt,et.overSome=ept,et.partial=iw,et.partialRight=lg,et.partition=lvt,et.pick=ayt,et.pickBy=hd,et.property=vd,et.propertyOf=lct,et.pull=yat,et.pullAll=pk,et.pullAllBy=cut,et.pullAllWith=lut,et.pullAt=pat,et.range=opt,et.rangeRight=spt,et.rearg=wvt,et.reject=oet,et.remove=aut,et.rest=bet,et.reverse=rp,et.sampleSize=het,et.set=bst,et.setWith=kst,et.shuffle=cet,et.slice=vut,et.sortBy=avt,et.sortedUniq=gut,et.sortedUniqBy=nft,et.split=pht,et.spread=ket,et.tail=tft,et.take=ift,et.takeRight=rft,et.takeRightWhile=uft,et.takeWhile=fft,et.tap=lft,et.throttle=det,et.thru=da,et.toArray=ed,et.toPairs=wg,et.toPairsIn=bg,et.toPath=wct,et.toPlainObject=sd,et.transform=dst,et.unary=get,et.union=wat,et.unionBy=bat,et.unionWith=kat,et.uniq=eft,et.uniqBy=oft,et.uniqWith=sft,et.unset=gst,et.unzip=up,et.unzipWith=wk,et.update=nht,et.updateWith=tht,et.values=ul,et.valuesIn=iht,et.without=dat,et.words=ad,et.wrap=not,et.xor=gat,et.xorBy=nvt,et.xorWith=tvt,et.zip=ivt,et.zipObject=hft,et.zipObjectDeep=cft,et.zipWith=rvt,et.entries=wg,et.entriesIn=bg,et.extend=yg,et.extendWith=dv,cp(et,et),et.add=hpt,et.attempt=kg,et.camelCase=vyt,et.capitalize=cd,et.ceil=cpt,et.clamp=rht,et.clone=iot,et.cloneDeep=uot,et.cloneDeepWith=fot,et.cloneWith=rot,et.conformsTo=eot,et.deburr=ld,et.defaultTo=ect,et.divide=lpt,et.endsWith=eht,et.eq=fo,et.escape=oht,et.escapeRegExp=sht,et.every=dft,et.find=evt,et.findIndex=lk,et.findKey=ust,et.findLast=ovt,et.findLastIndex=ak,et.findLastKey=fst,et.floor=apt,et.forEach=kk,et.forEachRight=dk,et.forIn=est,et.forInRight=ost,et.forOwn=sst,et.forOwnRight=hst,et.get=ep,et.gt=bvt,et.gte=kvt,et.has=ast,et.hasIn=op,et.head=yk,et.identity=wf,et.includes=ret,et.indexOf=fut,et.inRange=uht,et.invoke=hyt,et.isArguments=nl,et.isArray=wi,et.isArrayBuffer=dvt,et.isArrayLike=yf,et.isArrayLikeObject=uu,et.isBoolean=oot,et.isBuffer=vc,et.isDate=gvt,et.isElement=sot,et.isEmpty=hot,et.isEqual=cot,et.isEqualWith=lot,et.isError=fp,et.isFinite=aot,et.isFunction=gh,et.isInteger=ud,et.isLength=iv,et.isMap=ag,et.isMatch=vot,et.isMatchWith=yot,et.isNaN=pot,et.isNative=wot,et.isNil=kot,et.isNull=bot,et.isNumber=fd,et.isObject=iu,et.isObjectLike=ru,et.isPlainObject=kl,et.isRegExp=rw,et.isSafeInteger=dot,et.isSet=vg,et.isString=rv,et.isSymbol=kf,et.isTypedArray=cl,et.isUndefined=got,et.isWeakMap=nst,et.isWeakSet=tst,et.join=out,et.kebabCase=yyt,et.last=te,et.lastIndexOf=sut,et.lowerCase=pyt,et.lowerFirst=wyt,et.lt=nyt,et.lte=tyt,et.max=kct,et.maxBy=dct,et.mean=gct,et.meanBy=nlt,et.min=tlt,et.minBy=ilt,et.stubArray=ap,et.stubFalse=vp,et.stubObject=act,et.stubString=vct,et.stubTrue=yct,et.multiply=vpt,et.nth=hut,et.noConflict=hct,et.noop=lp,et.now=kv,et.pad=hht,et.padEnd=cht,et.padStart=lht,et.parseInt=aht,et.random=fht,et.reduce=fet,et.reduceRight=eet,et.repeat=vht,et.replace=yht,et.result=wst,et.round=ypt,et.runInContext=eu,et.sample=set,et.size=aet,et.snakeCase=byt,et.some=vet,et.sortedIndex=yut,et.sortedIndexBy=put,et.sortedIndexOf=wut,et.sortedLastIndex=but,et.sortedLastIndexBy=kut,et.sortedLastIndexOf=dut,et.startCase=kyt,et.startsWith=wht,et.subtract=ppt,et.sum=rlt,et.sumBy=ult,et.template=bht,et.times=pct,et.toFinite=nc,et.toInteger=bi,et.toLength=od,et.toLower=kht,et.toNumber=ie,et.toSafeInteger=ist,et.toString=gr,et.toUpper=dht,et.trim=ght,et.trimEnd=nct,et.trimStart=tct,et.truncate=ict,et.unescape=rct,et.uniqueId=bct,et.upperCase=dyt,et.upperFirst=uw,et.each=kk,et.eachRight=dk,et.first=yk,cp(et,function(){var n={};return nh(et,function(t,i){nu.call(et.prototype,i)||(n[i]=t)}),n}(),{chain:!1}),et.VERSION=oo,o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){et[n].placeholder=et}),o(["drop","take"],function(t,i){dr.prototype[t]=function(r){r=r===n?1:ef(bi(r),0);var u=this.__filtered__&&!i?new dr(this):this.clone();return u.__filtered__?u.__takeCount__=hf(r,u.__takeCount__):u.__views__.push({size:hf(r,w),type:t+(u.__dir__<0?"Right":"")}),u};dr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),o(["filter","map","takeWhile"],function(n,t){var i=t+1,r=i==wu||i==po;dr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:wt(n,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),o(["head","last"],function(n,t){var i="take"+(t?"Right":"");dr.prototype[n]=function(){return this[i](1).value()[0]}}),o(["initial","tail"],function(n,t){var i="drop"+(t?"":"Right");dr.prototype[n]=function(){return this.__filtered__?new dr(this):this[i](1)}}),dr.prototype.compact=function(){return this.filter(wf)},dr.prototype.find=function(n){return this.filter(n).head()},dr.prototype.findLast=function(n){return this.reverse().find(n)},dr.prototype.invokeMap=tr(function(n,t){return"function"==typeof n?new dr(this):this.map(function(i){return vl(i,n,t)})}),dr.prototype.reject=function(n){return this.filter(tv(wt(n)))},dr.prototype.slice=function(t,i){t=bi(t);var r=this;return r.__filtered__&&(t>0||i<0)?new dr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),i!==n&&(i=bi(i),r=i<0?r.dropRight(-i):r.take(i-t)),r)},dr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},dr.prototype.toArray=function(){return this.take(w)},nh(dr.prototype,function(t,i){var e=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),u=et[r?"take"+("last"==i?"Right":""):i],f=r||/^find/.test(i);u&&(et.prototype[i]=function(){var o=this.__wrapped__,s=r?[1]:arguments,h=o instanceof dr,a=s[0],c=h||wi(o),v=function(n){var t=u.apply(et,g([n],s));return r&&l?t[0]:t},i;c&&e&&"function"==typeof a&&1!=a.length&&(h=c=!1);var l=this.__chain__,w=!!this.__actions__.length,y=f&&!l,p=h&&!w;return!f&&c?(o=p?o:new dr(this),i=t.apply(o,s),i.__actions__.push({func:da,args:[v],thisArg:n}),new df(i,l)):y&&p?t.apply(this,s):(i=this.thru(v),y?r?i.value()[0]:i.value():i)})}),o(["pop","push","shift","sort","splice","unshift"],function(n){var t=fv[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);et.prototype[n]=function(){var u=arguments,n;return r&&!this.__chain__?(n=this.value(),t.apply(wi(n)?n:[],u)):this[i](function(n){return t.apply(wi(n)?n:[],u)})}}),nh(dr.prototype,function(n,t){var r=et[t],i;r&&(i=r.name+"",nu.call(sl,i)||(sl[i]=[]),sl[i].push({name:t,func:r}))}),sl[aa(n,ut).name]=[{name:"wrapper",func:n}],dr.prototype.clone=dg,dr.prototype.reverse=gg,dr.prototype.value=nn,et.prototype.at=uvt,et.prototype.chain=aft,et.prototype.commit=vft,et.prototype.next=yft,et.prototype.plant=wft,et.prototype.reverse=bft,et.prototype.toJSON=et.prototype.valueOf=et.prototype.value=kft,et.prototype.first=et.prototype.head,dl&&(et.prototype[dl]=pft),et},rt=lc();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(u._=rt,define(function(){return rt})):et?((et.exports=rt)._=rt,ru._=rt):u._=rt}).call(this);_.any=_.some;_.unique=_.uniq;_.contains=_.includes;_.methods=_.functions;_.compose=_.flowRight;_.backflow=_.flowRight;_.select=_.filter;_.inject=_.reduce;_.include=_.includes;_.foldr=_.reduceRight;_.foldl=_.reduceRight;_.detect=_.find;_.collect=_.map;_.all=_.every;_.object=_.zipObject;_.findWhere=_.find;_.where=_.filter; | |
/*! modernizr 3.6.0 (Custom Build) | MIT * | |
* https://modernizr.com/download/?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-csscolumns-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-flexbox-fontface-generatedcontent-geolocation-hashchange-history-hsla-indexeddb-inlinesvg-input-inputtypes-localstorage-multiplebgs-opacity-postmessage-rgba-sessionstorage-smil-svg-svgclippaths-textshadow-video-webgl-websockets-websqldatabase-webworkers-addtest-domprefixes-hasevent-mq-prefixed-prefixes-setclasses-shiv-testallprops-testprop-teststyles !*/ | |
!function(n,t,i){function c(n,t){return typeof n===t}function ii(){var i,n,u,f,e,o,t;for(var s in y)if(y.hasOwnProperty(s)){if(i=[],n=y[s],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=c(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)o=i[e],t=o.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),yt.push((f?"":"no-")+t.join("-"))}}function ht(n){var t=s.className,i=r._config.classPrefix||"",u;(v&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),v?s.className.baseVal=t:s.className=t)}function l(n,t){var u,i,f;if("object"==typeof n)for(u in n)pt(n,u)&&l(u,n[u]);else{if(n=n.toLowerCase(),i=n.split("."),f=r[i[0]],2==i.length&&(f=f[i[1]]),"undefined"!=typeof f)return r;t="function"==typeof t?t():t;1==i.length?r[i[0]]=t:(!r[i[0]]||r[i[0]]instanceof Boolean||(r[i[0]]=new Boolean(r[i[0]])),r[i[0]][i[1]]=t);ht([(t&&0!=t?"":"no-")+i.join("-")]);r._trigger(n,t)}return r}function u(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):v?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function ct(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function k(n,t){return!!~(""+n).indexOf(t)}function ri(){var n=t.body;return n||(n=u(v?"svg":"body"),n.fake=!0),n}function d(n,i,r,f){var o,a,c,v,l="modernizr",h=u("div"),e=ri();if(parseInt(r,10))for(;r--;)c=u("div"),c.id=f?f[r]:l+(r+1),h.appendChild(c);return o=u("style"),o.type="text/css",o.id="s"+l,(e.fake?e:h).appendChild(o),e.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,e.fake&&(e.style.background="",e.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(e)),a=i(h,n),e.fake?(e.parentNode.removeChild(e),s.style.overflow=v,s.offsetHeight):h.parentNode.removeChild(h),!!a}function ui(n,t){return function(){return n.apply(t,arguments)}}function fi(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],c(r,"function")?ui(r,i||t):r);return!1}function lt(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function ei(t,i,r){var u,f,e;return"getComputedStyle"in n?(u=getComputedStyle.call(n,t,i),f=n.console,null!==u?r&&(u=u.getPropertyValue(r)):f&&(e=f.error?"error":"log",f[e].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate"))):u=!i&&t.currentStyle&&t.currentStyle[r],u}function oi(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(lt(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+lt(t[f])+":"+r+")");return u=u.join(" or "),d("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==ei(n,null,"position")})}return i}function at(n,t,r,f){function s(){v&&(delete h.style,delete h.modElem)}var l,v,o,y,e,p,a;if((f=c(f,"undefined")?!1:f,!c(r,"undefined"))&&(l=oi(n,r),!c(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!h.style&&a.length;)v=!0,h.modElem=u(a.shift()),h.style=h.modElem.style;for(y=n.length,o=0;y>o;o++)if(e=n[o],p=h.style[e],k(e,"-")&&(e=ct(e)),h.style[e]!==i){if(f||c(r,"undefined"))return s(),"pfx"==t?e:!0;try{h.style[e]=r}catch(w){}if(h.style[e]!=p)return s(),"pfx"==t?e:!0}return s(),!1}function p(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+ft.join(f+" ")+f).split(" ");return c(t,"string")||c(t,"undefined")?at(e,t,r,u):(e=(n+" "+tt.join(f+" ")+f).split(" "),fi(e,t,i))}function vt(n,t){var i=n.deleteDatabase(t);i.onsuccess=function(){l("indexeddb.deletedatabase",!0)};i.onerror=function(){l("indexeddb.deletedatabase",!1)}}function e(n,t,r){return p(n,i,i,t,r)}var yt=[],y=[],f={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){y.push({name:n,fn:t,options:i})},addAsyncTest:function(n){y.push({name:null,fn:n})}},r=function(){},g,a,s,v,nt,tt,pt,it,wt,rt,bt,kt,ut,ft,et,dt,ot,gt,st,h,ni,ti,b;r.prototype=f;r=new r;r.addTest("applicationcache","applicationCache"in n);r.addTest("geolocation","geolocation"in navigator);r.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol?n.history&&"pushState"in n.history:!1});r.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);r.addTest("postmessage","postMessage"in n);g=!1;try{g="WebSocket"in n&&2===n.WebSocket.CLOSING}catch(hi){}r.addTest("websockets",g);r.addTest("localstorage",function(){var n="modernizr";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch(t){return!1}});r.addTest("sessionstorage",function(){var n="modernizr";try{return sessionStorage.setItem(n,n),sessionStorage.removeItem(n),!0}catch(t){return!1}});r.addTest("websqldatabase","openDatabase"in n);r.addTest("webworkers","Worker"in n);a=f._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];f._prefixes=a;s=t.documentElement;v="svg"===s.nodeName.toLowerCase();v||!function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function h(){var n=i.elements;return"string"==typeof n?n.split(" "):n}function y(n,t){var r=i.elements;"string"!=typeof r&&(r=r.join(" "));"string"!=typeof n&&(n=n.join(" "));i.elements=r+" "+n;f(t)}function u(n){var t=a[n[l]];return t||(t={},s++,n[l]=s,a[s]=t),t}function c(n,i,f){if(i||(i=t),r)return i.createElement(n);f||(f=u(i));var e;return e=f.cache[n]?f.cache[n].cloneNode():k.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),!e.canHaveChildren||b.test(n)||e.tagUrn?e:f.frag.appendChild(e)}function p(n,i){if(n||(n=t),r)return n.createDocumentFragment();i=i||u(n);for(var e=i.frag.cloneNode(),f=0,o=h(),s=o.length;s>f;f++)e.createElement(o[f]);return e}function w(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(r){return i.shivMethods?c(r,n,t):t.createElem(r)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-:]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(i,t.frag)}function f(n){n||(n=t);var f=u(n);return!i.shivCSS||e||f.hasCSS||(f.hasCSS=!!v(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||w(n,f),n}var e,r,o=n.html5||{},b=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,k=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,l="_html5shiv",s=0,a={},i;!function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;r=1==n.childNodes.length||function(){t.createElement("a");var n=t.createDocumentFragment();return"undefined"==typeof n.cloneNode||"undefined"==typeof n.createDocumentFragment||"undefined"==typeof n.createElement}()}catch(i){e=!0;r=!0}}();i={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:o.shivCSS!==!1,supportsUnknownElements:r,shivMethods:o.shivMethods!==!1,type:"default",shivDocument:f,createElement:c,createDocumentFragment:p,addElements:y};n.html5=i;f(t);"object"==typeof module&&module.exports&&(module.exports=i)}("undefined"!=typeof n?n:this,t);nt="Moz O ms Webkit";tt=f._config.usePrefixes?nt.toLowerCase().split(" "):[];f._domPrefixes=tt;!function(){var n={}.hasOwnProperty;pt=c(n,"undefined")||c(n.call,"undefined")?function(n,t){return t in n&&c(n.constructor.prototype[t],"undefined")}:function(t,i){return n.call(t,i)}}();f._l={};f.on=function(n,t){this._l[n]||(this._l[n]=[]);this._l[n].push(t);r.hasOwnProperty(n)&&setTimeout(function(){r._trigger(n,r[n])},0)};f._trigger=function(n,t){if(this._l[n]){var i=this._l[n];setTimeout(function(){for(var r,n=0;n<i.length;n++)(r=i[n])(t)},0);delete this._l[n]}};r._q.push(function(){f.addTest=l});it=function(){function n(n,t){var f;return n?(t&&"string"!=typeof t||(t=u(t||"div")),n="on"+n,f=n in t,!f&&r&&(t.setAttribute||(t=u("div")),t.setAttribute(n,""),f="function"==typeof t[n],t[n]!==i&&(t[n]=i),t.removeAttribute(n)),f):!1}var r=!("onblur"in t.documentElement);return n}();f.hasEvent=it;r.addTest("hashchange",function(){return it("hashchange",n)===!1?!1:t.documentMode===i||t.documentMode>7});r.addTest("audio",function(){var t=u("audio"),n=!1;try{n=!!t.canPlayType;n&&(n=new Boolean(n),n.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=t.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),n.opus=t.canPlayType('audio/ogg; codecs="opus"')||t.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),n.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(i){}return n});r.addTest("canvas",function(){var n=u("canvas");return!(!n.getContext||!n.getContext("2d"))});r.addTest("canvastext",function(){return r.canvas===!1?!1:"function"==typeof u("canvas").getContext("2d").fillText});r.addTest("video",function(){var t=u("video"),n=!1;try{n=!!t.canPlayType;n&&(n=new Boolean(n),n.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),n.vp9=t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),n.hls=t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(i){}return n});r.addTest("webgl",function(){var t=u("canvas"),i="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return i in t?t[i]("webgl")||t[i]("experimental-webgl"):"WebGLRenderingContext"in n});r.addTest("cssgradients",function(){for(var o,i,f,e="background-image:",t="",n=0,s=a.length-1;s>n;n++)f=0===n?"to ":"",t+=e+a[n]+"linear-gradient("+f+"left top, #9f9, white);";return r._config.usePrefixes&&(t+=e+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),o=u("a"),i=o.style,i.cssText=t,(""+i.backgroundImage).indexOf("gradient")>-1});r.addTest("multiplebgs",function(){var n=u("a").style;return n.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(n.background)});r.addTest("opacity",function(){var n=u("a").style;return n.cssText=a.join("opacity:.55;"),/^0.55$/.test(n.opacity)});r.addTest("rgba",function(){var n=u("a").style;return n.cssText="background-color:rgba(150,255,150,.5)",(""+n.backgroundColor).indexOf("rgba")>-1});r.addTest("inlinesvg",function(){var n=u("div");return n.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&n.firstChild&&n.firstChild.namespaceURI)});var o=u("input"),si="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),w={};for(r.input=function(t){for(var i=0,r=t.length;r>i;i++)w[t[i]]=!!(t[i]in o);return w.list&&(w.list=!(!u("datalist")||!n.HTMLDataListElement)),w}(si),wt="search tel url email datetime date month week time datetime-local number range color".split(" "),rt={},r.inputtypes=function(n){for(var u,e,r,c=n.length,h="1)",f=0;c>f;f++)o.setAttribute("type",u=n[f]),r="text"!==o.type&&"style"in o,r&&(o.value=h,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&"textfield"!==e.getComputedStyle(o,null).WebkitAppearance&&0!==o.offsetHeight,s.removeChild(o)):/^(search|tel)$/.test(u)||(r=/^(url|email)$/.test(u)?o.checkValidity&&o.checkValidity()===!1:o.value!=h)),rt[n[f]]=!!r;return rt}(wt),r.addTest("hsla",function(){var n=u("a").style;return n.cssText="background-color:hsla(120,40%,100%,.5)",k(n.backgroundColor,"rgba")||k(n.backgroundColor,"hsla")}),bt=("CSS"in n)&&("supports"in n.CSS),kt=("supportsCSS"in n),r.addTest("supports",bt||kt),ut={}.toString,r.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(ut.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),r.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(ut.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))}),ft=f._config.usePrefixes?nt.split(" "):[],f._cssomPrefixes=ft,et=function(t){var u,s=a.length,f=n.CSSRule,r,e,o;if("undefined"==typeof f)return i;if(!t)return!1;if(t=t.replace(/^@/,""),u=t.replace(/-/g,"_").toUpperCase()+"_RULE",u in f)return"@"+t;for(r=0;s>r;r++)if(e=a[r],o=e.toUpperCase()+"_"+u,o in f)return"@-"+e.toLowerCase()+"-"+t;return!1},f.atRule=et,dt=function(){var t=n.matchMedia||n.msMatchMedia;return t?function(n){var i=t(n);return i&&i.matches||!1}:function(t){var i=!1;return d("@media "+t+" { #modernizr { position: absolute; } }",function(t){i="absolute"==(n.getComputedStyle?n.getComputedStyle(t,null):t.currentStyle).position}),i}}(),f.mq=dt,ot=f.testStyles=d,gt=function(){var n=navigator.userAgent,t=n.match(/w(eb)?osbrowser/gi),i=n.match(/windows phone/gi)&&n.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return t||i}(),gt?r.addTest("fontface",!1):ot('@font-face {font-family:"font";src:url("https://")}',function(n,i){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"",o=/src/i.test(e)&&0===e.indexOf(i.split(" ")[0]);r.addTest("fontface",o)}),ot('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(n){r.addTest("generatedcontent",n.offsetHeight>=6)}),st={elem:u("modernizr")},r._q.push(function(){delete st.elem}),h={style:st.elem.style},r._q.unshift(function(){delete h.style}),ni=f.testProp=function(n,t,r){return at([n],i,t,r)},r.addTest("textshadow",ni("textShadow","1px 1px")),f.testAllProps=p,ti=f.prefixed=function(n,t,i){return 0===n.indexOf("@")?et(n):(-1!=n.indexOf("-")&&(n=ct(n)),t?p(n,t,i):p(n,"pfx"))},r.addAsyncTest(function(){var t,r,i;try{t=ti("indexedDB",n)}catch(u){}t?(r="modernizr-"+Math.random(),i=t.open(r),i.onerror=function(){i.error&&"InvalidStateError"===i.error.name?l("indexeddb",!1):(l("indexeddb",!0),vt(t,r))},i.onsuccess=function(){l("indexeddb",!0);vt(t,r)}):l("indexeddb",!1)}),f.testAllProps=e,r.addTest("cssanimations",e("animationName","a",!0)),r.addTest("backgroundsize",e("backgroundSize","100%",!0)),r.addTest("borderimage",e("borderImage","url() 1",!0)),r.addTest("borderradius",e("borderRadius","0px",!0)),r.addTest("boxshadow",e("boxShadow","1px 1px",!0)),function(){r.addTest("csscolumns",function(){var n=!1,t=e("columnCount");try{n=!!t;n&&(n=new Boolean(n))}catch(i){}return n});for(var n,i,u=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],t=0;t<u.length;t++)n=u[t].toLowerCase(),i=e("column"+u[t]),("breakbefore"===n||"breakafter"===n||"breakinside"==n)&&(i=i||e(u[t])),r.addTest("csscolumns."+n,i)}(),r.addTest("flexbox",e("flexBasis","1px",!0)),r.addTest("cssreflections",e("boxReflect","above",!0)),r.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&e("transform","scale(1)",!0)}),r.addTest("csstransforms3d",function(){return!!e("perspective","1px",!0)}),r.addTest("csstransitions",e("transition","all",!0)),ii(),ht(yt),delete f.addTest,delete f.addAsyncTest,b=0;b<r._q.length;b++)r._q[b]();n.Modernizr=r}(window,document);!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(n,i)}):"object"==typeof module&&module.exports?module.exports=t(n,require("jquery")):n.Galleria=t(n,n.jQuery)}(window,function(n,t,i,r){var e=n.document,k=t(e),h=t(n),yt=t,d=Array.prototype,et=!0,pt=3e4,tt=!1,y=navigator.userAgent.toLowerCase(),ot=n.location.hash.replace(/#\//,""),g="file:"==n.location.protocol?"http:":n.location.protocol,f=Math,c=function(){},wt=function(){return!1},bt=!(n.screen.width>1279&&1==n.devicePixelRatio||n.screen.width>1e3&&n.innerWidth<.9*n.screen.width),o=function(){var n=3,t=e.createElement("div"),i=t.getElementsByTagName("i");do t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->";while(i[0]);return n>4?n:e.documentMode||r}(),s=function(){return{html:e.documentElement,body:e.body,head:e.getElementsByTagName("head")[0],title:e.title}},nt=n.parent!==n.self,kt="data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image",st=function(){var n=[];return t.each(kt.split(" "),function(t,i){n.push(i);/_/.test(i)&&n.push(i.replace(/_/g,""))}),n}(),ht=function(n){var i;return"object"!=typeof n?n:(t.each(n,function(r,u){/^[a-z]+_/.test(r)&&(i="",t.each(r.split("_"),function(n,t){i+=n>0?t.substr(0,1).toUpperCase()+t.substr(1):t}),n[i]=u,delete n[r])}),n)},it=function(n){return t.inArray(n,st)>-1?i[n.toUpperCase()]:n},a={youtube:{reg:/https?:\/\/(?:[a-zA_Z]{2,3}.)?(?:youtube\.com\/watch\?)((?:[\w\d\-\_\=]+&(?:amp;)?)*v(?:<[A-Z]+>)?=([0-9a-zA-Z\-\_]+))/i,embed:function(){return g+"//www.youtube.com/embed/"+this.id},get_thumb:function(){return g+"//img.youtube.com/vi/"+this.id+"/default.jpg"},get_image:function(){return g+"//img.youtube.com/vi/"+this.id+"/maxresdefault.jpg"}},vimeo:{reg:/https?:\/\/(?:www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,embed:function(){return g+"//player.vimeo.com/video/"+this.id},getUrl:function(){return g+"//vimeo.com/api/v2/video/"+this.id+".json?callback=?"},get_thumb:function(n){return n[0].thumbnail_medium},get_image:function(n){return n[0].thumbnail_large}},dailymotion:{reg:/https?:\/\/(?:www\.)?(dailymotion\.com)\/video\/([^_]+)/,embed:function(){return g+"//www.dailymotion.com/embed/video/"+this.id},getUrl:function(){return"https://api.dailymotion.com/video/"+this.id+"?fields=thumbnail_240_url,thumbnail_720_url&callback=?"},get_thumb:function(n){return n.thumbnail_240_url},get_image:function(n){return n.thumbnail_720_url}},_inst:[]},ct=function(i,r){for(var f,u=0;u<a._inst.length;u++)if(a._inst[u].id===r&&a._inst[u].type==i)return a._inst[u];this.type=i;this.id=r;this.readys=[];a._inst.push(this);f=this;t.extend(this,a[i]);_videoThumbs=function(n){f.data=n;t.each(f.readys,function(n,t){t(f.data)});f.readys=[]};this.hasOwnProperty("getUrl")?t.getJSON(this.getUrl(),_videoThumbs):n.setTimeout(_videoThumbs,400);this.getMedia=function(n,t,i){i=i||c;var r=this,u=function(i){t(r["get_"+n](i))};try{r.data?u(r.data):r.readys.push(u)}catch(n){i()}}},lt=function(n){var t;for(var i in a)if((t=n&&a[i].reg&&n.match(a[i].reg))&&t.length)return{id:t[2],provider:i};return!1},l={support:function(){var n=s().html;return!nt&&(n.requestFullscreen||n.msRequestFullscreen||n.mozRequestFullScreen||n.webkitRequestFullScreen)}(),callback:c,enter:function(n,t,i){this.instance=n;this.callback=t||c;i=i||s().html;i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()},exit:function(n){this.callback=n||c;e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitCancelFullScreen&&e.webkitCancelFullScreen()},instance:null,listen:function(){if(this.support){var n=function(){if(l.instance){var n=l.instance._fullscreen;e.fullscreen||e.mozFullScreen||e.webkitIsFullScreen||e.msFullscreenElement&&null!==e.msFullscreenElement?n._enter(l.callback):n._exit(l.callback)}};e.addEventListener("fullscreenchange",n,!1);e.addEventListener("MSFullscreenChange",n,!1);e.addEventListener("mozfullscreenchange",n,!1);e.addEventListener("webkitfullscreenchange",n,!1)}}},rt=[],w=[],at=!1,v=!1,vt=[],b=[],ut=function(n){b.push(n);t.each(vt,function(t,i){i._options.theme!=n.name&&(i._initialized||i._options.theme)||(i.theme=n,i._init.call(i))})},u=function(){return{clearTimer:function(n){t.each(i.get(),function(){this.clearTimer(n)})},addTimer:function(n){t.each(i.get(),function(){this.addTimer(n)})},array:function(n){return d.slice.call(n,0)},create:function(n,t){t=t||"div";var i=e.createElement(t);return i.className=n,i},removeFromArray:function(n,i){return t.each(n,function(t,r){if(r==i)return n.splice(t,1),!1}),n},getScriptPath:function(n){n=n||t("script:last").attr("src");var i=n.split("/");return 1==i.length?"":(i.pop(),i.join("/")+"/")},animate:function(){var s,f,v,y,h,r,l,p=function(t){var i,r="transition WebkitTransition MozTransition OTransition".split(" ");if(n.opera)return!1;for(i=0;r[i];i++)if(void 0!==t[r[i]])return r[i];return!1}((e.body||e.documentElement).style),w={MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[p],a={_default:[.25,.1,.25,1],galleria:[.645,.045,.355,1],galleriaIn:[.55,.085,.68,.53],galleriaOut:[.25,.46,.45,.94],ease:[.25,0,.25,1],linear:[.25,.25,.75,.75],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},o=function(n,i,r){var u={};r=r||"transition";t.each("webkit moz ms o".split(" "),function(){u["-"+this+"-"+r]=i});n.css(u)},b=function(n){o(n,"none","transition");i.WEBKIT&&i.TOUCH&&(o(n,"translate3d(0,0,0)","transform"),n.data("revert")&&(n.css(n.data("revert")),n.data("revert",null)))};return function(e,k,d){return d=t.extend({duration:400,complete:c,stop:!1},d),e=t(e),d.duration?p?(d.stop&&(e.off(w),b(e)),s=!1,t.each(k,function(n,t){l=e.css(n);u.parseValue(l)!=u.parseValue(t)&&(s=!0);e.css(n,l)}),s?(f=[],v=d.easing in a?a[d.easing]:a._default,y=" "+d.duration+"ms cubic-bezier("+v.join(",")+")",void n.setTimeout(function(n,e,s,c){return function(){n.one(e,function(n){return function(){b(n);d.complete.call(n[0])}}(n));i.WEBKIT&&i.TOUCH&&(h={},r=[0,0,0],t.each(["left","top"],function(t,i){i in s&&(r[t]=u.parseValue(s[i])-u.parseValue(n.css(i))+"px",h[i]=s[i],delete s[i])}),(r[0]||r[1])&&(n.data("revert",h),f.push("-webkit-transform"+c),o(n,"translate3d("+r.join(",")+")","transform")));t.each(s,function(n){f.push(n+c)});o(n,f.join(","));n.css(s)}}(e,w,k,y),2)):void n.setTimeout(function(){d.complete.call(e[0])},d.duration)):void e.animate(k,d):(e.css(k),void d.complete.call(e[0]))}}(),removeAlpha:function(n){if(n instanceof yt&&(n=n[0]),o<9&&n){var t=n.style,i=n.currentStyle,r=i&&i.filter||t.filter||"";/alpha/.test(r)&&(t.filter=r.replace(/alpha\([^)]*\)/i,""))}},forceStyles:function(n,i){n=t(n);n.attr("style")&&n.data("styles",n.attr("style")).removeAttr("style");n.css(i)},revertStyles:function(){t.each(u.array(arguments),function(n,i){i=t(i);i.removeAttr("style");i.attr("style","");i.data("styles")&&i.attr("style",i.data("styles")).data("styles",null)})},moveOut:function(n){u.forceStyles(n,{position:"absolute",left:-1e4})},moveIn:function(){u.revertStyles.apply(u,u.array(arguments))},hide:function(n,i,r){var f,e,s;r=r||c;f=t(n);n=f[0];f.data("opacity")||f.data("opacity",f.css("opacity"));e={opacity:0};i?(s=o<9&&n?function(){u.removeAlpha(n);n.style.visibility="hidden";r.call(n)}:r,u.animate(n,e,{duration:i,complete:s,stop:!0})):o<9&&n?(u.removeAlpha(n),n.style.visibility="hidden"):f.css(e)},show:function(n,i,r){var f,s,e,h;r=r||c;f=t(n);n=f[0];s=parseFloat(f.data("opacity"))||1;e={opacity:s};i?(o<9&&(f.css("opacity",0),n.style.visibility="visible"),h=o<9&&n?function(){1==e.opacity&&u.removeAlpha(n);r.call(n)}:r,u.animate(n,e,{duration:i,complete:h,stop:!0})):o<9&&1==e.opacity&&n?(u.removeAlpha(n),n.style.visibility="visible"):f.css(e)},wait:function(r){i._waiters=i._waiters||[];r=t.extend({until:wt,success:c,error:function(){i.raise("Could not complete wait function.")},timeout:3e3},r);var o,f,e,s=u.timestamp(),h=function(){return f=u.timestamp(),o=f-s,u.removeFromArray(i._waiters,e),r.until(o)?(r.success(),!1):"number"==typeof r.timeout&&f>=s+r.timeout?(r.error(),!1):void i._waiters.push(e=n.setTimeout(h,10))};i._waiters.push(e=n.setTimeout(h,10))},toggleQuality:function(n,t){(7===o||8===o)&&n&&"IMG"==n.nodeName.toUpperCase()&&(void 0===t&&(t="nearest-neighbor"===n.style.msInterpolationMode),n.style.msInterpolationMode=t?"bicubic":"nearest-neighbor")},insertStyleTag:function(n,i){var r,u;i&&t("#"+i).length||(r=e.createElement("style"),(i&&(r.id=i),s().head.appendChild(r),r.styleSheet)?r.styleSheet.cssText=n:(u=e.createTextNode(n),r.appendChild(u)))},loadScript:function(n,i){var u=!1,r=t("<script>").attr({src:n,async:!0}).get(0);r.onload=r.onreadystatechange=function(){u||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(u=!0,r.onload=r.onreadystatechange=null,"function"==typeof i&&i.call(this,this))};s().head.appendChild(r)},parseValue:function(n){if("number"==typeof n)return n;if("string"==typeof n){var t=n.match(/\-?\d|\./g);return t&&t.constructor===Array?1*t.join(""):0}return 0},timestamp:function(){return(new Date).getTime()},loadCSS:function(n,f,h){var l,y,a,v;if(t("link[rel=stylesheet]").each(function(){if(new RegExp(n).test(this.href))return l=this,!1}),"function"==typeof f&&(h=f,f=r),h=h||c,l)return h.call(l,l),l;if(y=e.styleSheets.length,t("#"+f).length)t("#"+f).attr("href",n),y--;else if(l=t("<link>").attr({rel:"stylesheet",href:n,id:f}).get(0),a=t('link[rel="stylesheet"], style'),a.length?a.get(0).parentNode.insertBefore(l,a[0]):s().head.appendChild(l),o&&y>=31)return void i.raise("You have reached the browser stylesheet limit (31)",!0);return"function"==typeof h&&(v=t("<s>").attr("id","galleria-loader").hide().appendTo(s().body),u.wait({until:function(){return v.height()>0},success:function(){v.remove();h.call(l,l)},error:function(){v.remove();i.raise("Theme CSS could not load after 20 sec. "+(i.QUIRK?"Your browser is in Quirks Mode, please add a correct doctype.":"Please download the latest theme."),!0)},timeout:5e3})),l}}}(),ft=function(n){return u.insertStyleTag(".galleria-videoicon{width:60px;height:60px;position:absolute;top:50%;left:50%;z-index:1;margin:-30px 0 0 -30px;cursor:pointer;background:#000;background:rgba(0,0,0,.8);border-radius:3px;-webkit-transition:all 150ms}.galleria-videoicon i{width:0px;height:0px;border-style:solid;border-width:10px 0 10px 16px;display:block;border-color:transparent transparent transparent #ffffff;margin:20px 0 0 22px}.galleria-image:hover .galleria-videoicon{background:#000}","galleria-videoicon"),t(u.create("galleria-videoicon")).html("<i><\/i>").appendTo(n).click(function(){t(this).siblings("img").mouseup()})},p=function(){var n=function(n,i,r,f){var s=this.getOptions("easing"),h=this.getStageWidth(),e={left:h*(n.rewind?-1:1)},o={left:0};r?(e.opacity=0,o.opacity=1):e.opacity=1;t(n.next).css(e);u.animate(n.next,o,{duration:n.speed,complete:function(n){return function(){i();n.css({left:0})}}(t(n.next).add(n.prev)),queue:!1,easing:s});f&&(n.rewind=!n.rewind);n.prev&&(e={left:0},o={left:h*(n.rewind?1:-1)},r&&(e.opacity=1,o.opacity=0),t(n.prev).css(e),u.animate(n.prev,o,{duration:n.speed,queue:!1,easing:s,complete:function(){t(this).css("opacity",0)}}))};return{active:!1,init:function(n,t,i){p.effects.hasOwnProperty(n)&&p.effects[n].call(this,t,i)},effects:{fade:function(n,i){t(n.next).css({opacity:0,left:0});u.animate(n.next,{opacity:1},{duration:n.speed,complete:i});n.prev&&(t(n.prev).css("opacity",1).show(),u.animate(n.prev,{opacity:0},{duration:n.speed}))},flash:function(n,i){t(n.next).css({opacity:0,left:0});n.prev?u.animate(n.prev,{opacity:0},{duration:n.speed/2,complete:function(){u.animate(n.next,{opacity:1},{duration:n.speed,complete:i})}}):u.animate(n.next,{opacity:1},{duration:n.speed,complete:i})},pulse:function(n,i){n.prev&&t(n.prev).hide();t(n.next).css({opacity:0,left:0}).show();u.animate(n.next,{opacity:1},{duration:n.speed,complete:i})},slide:function(){n.apply(this,u.array(arguments))},fadeslide:function(){n.apply(this,u.array(arguments).concat([!0]))},doorslide:function(){n.apply(this,u.array(arguments).concat([!1,!0]))}}}}();return l.listen(),t.event.special["click:fast"]={propagate:!0,add:function(i){var u=function(n){if(n.touches&&n.touches.length){var t=n.touches[0];return{x:t.pageX,y:t.pageY}}},r={touched:!1,touchdown:!1,coords:{x:0,y:0},evObj:{}};t(this).data({clickstate:r,timer:0}).on("touchstart.fast",function(i){n.clearTimeout(t(this).data("timer"));t(this).data("clickstate",{touched:!0,touchdown:!0,coords:u(i.originalEvent),evObj:i})}).on("touchmove.fast",function(n){var r=u(n.originalEvent),i=t(this).data("clickstate");Math.max(Math.abs(i.coords.x-r.x),Math.abs(i.coords.y-r.y))>6&&t(this).data("clickstate",t.extend(i,{touchdown:!1}))}).on("touchend.fast",function(u){var f=t(this);f.data("clickstate").touchdown&&i.handler.call(this,u);f.data("timer",n.setTimeout(function(){f.data("clickstate",r)},400))}).on("click.fast",function(n){if(t(this).data("clickstate").touched)return!1;t(this).data("clickstate",r);i.handler.call(this,n)})},remove:function(){t(this).off("touchstart.fast touchmove.fast touchend.fast click.fast")}},h.on("orientationchange",function(){t(this).resize()}),i=function(){var c=this;this._options={};this._playing=!1;this._playtime=5e3;this._active=null;this._queue={length:0};this._data=[];this._dom={};this._thumbnails=[];this._layers=[];this._initialized=!1;this._firstrun=!1;this._stageWidth=0;this._stageHeight=0;this._target=r;this._binds=[];this._id=parseInt(1e4*f.random(),10);t.each("container stage images image-nav image-nav-left image-nav-right info info-text info-title info-description thumbnails thumbnails-list thumbnails-container thumb-nav-left thumb-nav-right loader counter tooltip".split(" "),function(n,t){c._dom[t]=u.create("galleria-"+t)});t.each("current total".split(" "),function(n,t){c._dom[t]=u.create("galleria-"+t,"span")});var g=this._keyboard={keys:{UP:38,DOWN:40,LEFT:37,RIGHT:39,RETURN:13,ESCAPE:27,BACKSPACE:8,SPACE:32},map:{},bound:!1,press:function(n){var t=n.keyCode||n.which;t in g.map&&"function"==typeof g.map[t]&&g.map[t].call(c,n)},attach:function(n){var t,i;for(t in n)n.hasOwnProperty(t)&&(i=t.toUpperCase(),i in g.keys?g.map[g.keys[i]]=n[t]:g.map[i]=n[t]);g.bound||(g.bound=!0,k.on("keydown",g.press))},detach:function(){g.bound=!1;g.map={};k.off("keydown",g.press)}},tt=this._controls={0:r,1:r,active:0,swap:function(){tt.active=tt.active?0:1},getActive:function(){return c._options.swipe?tt.slides[c._active]:tt[tt.active]},getNext:function(){return c._options.swipe?tt.slides[c.getNext(c._active)]:tt[1-tt.active]},slides:[],frames:[],layers:[]},v=this._carousel={next:c.$("thumb-nav-right"),prev:c.$("thumb-nav-left"),width:0,current:0,max:0,hooks:[],update:function(){var n=0,i=0,r=[0];t.each(c._thumbnails,function(u,e){if(e.ready){n+=e.outerWidth||t(e.container).outerWidth(!0);var o=t(e.container).width();n+=o-f.floor(o);r[u+1]=n;i=f.max(i,e.outerHeight||t(e.container).outerHeight(!0))}});c.$("thumbnails").css({width:n,height:i});v.max=n;v.hooks=r;v.width=c.$("thumbnails-list").width();v.setClasses();c.$("thumbnails-container").toggleClass("galleria-carousel",n>v.width);v.width=c.$("thumbnails-list").width()},bindControls:function(){var n;v.next.on("click:fast",function(t){if(t.preventDefault(),"auto"===c._options.carouselSteps){for(n=v.current;n<v.hooks.length;n++)if(v.hooks[n]-v.hooks[v.current]>v.width){v.set(n-2);break}}else v.set(v.current+c._options.carouselSteps)});v.prev.on("click:fast",function(t){if(t.preventDefault(),"auto"===c._options.carouselSteps)for(n=v.current;n>=0;n--){if(v.hooks[v.current]-v.hooks[n]>v.width){v.set(n+2);break}if(0===n){v.set(0);break}}else v.set(v.current-c._options.carouselSteps)})},set:function(n){for(n=f.max(n,0);v.hooks[n-1]+v.width>=v.max&&n>=0;)n--;v.current=n;v.animate()},getLast:function(n){return(n||v.current)-1},follow:function(n){if(0===n||n===v.hooks.length-2)return void v.set(n);for(var t=v.current;v.hooks[t]-v.hooks[v.current]<v.width&&t<=v.hooks.length;)t++;n-1<v.current?v.set(n-1):n+2>t&&v.set(n-t+v.current+2)},setClasses:function(){v.prev.toggleClass("disabled",!v.current);v.next.toggleClass("disabled",v.hooks[v.current]+v.width>=v.max)},animate:function(){v.setClasses();var n=-1*v.hooks[v.current];isNaN(n)||(c.$("thumbnails").css("left",function(){return t(this).css("left")}),u.animate(c.get("thumbnails"),{left:n},{duration:c._options.carouselSpeed,easing:c._options.easing,queue:!1}))}},d=this._tooltip={initialized:!1,open:!1,timer:"tooltip"+c._id,swapTimer:"swap"+c._id,init:function(){d.initialized=!0;u.insertStyleTag(".galleria-tooltip{padding:3px 8px;max-width:50%;background:#ffe;color:#000;z-index:3;position:absolute;font-size:11px;line-height:1.3;opacity:0;box-shadow:0 0 2px rgba(0,0,0,.4);-moz-box-shadow:0 0 2px rgba(0,0,0,.4);-webkit-box-shadow:0 0 2px rgba(0,0,0,.4);}","galleria-tooltip");c.$("tooltip").css({opacity:.8,visibility:"visible",display:"none"})},move:function(n){var s=c.getMousePosition(n).x,e=c.getMousePosition(n).y,r=c.$("tooltip"),i=s,t=e,u=r.outerHeight(!0)+1,h=r.outerWidth(!0),o=u+15,l=c.$("container").width()-h-2,a=c.$("container").height()-u-2;isNaN(i)||isNaN(t)||(i+=10,t-=u+8,i=f.max(0,f.min(l,i)),t=f.max(0,f.min(a,t)),e<o&&(t=o),r.css({left:i,top:t}))},bind:function(n,r){if(!i.TOUCH){d.initialized||d.init();var u=function(){c.$("container").off("mousemove",d.move);c.clearTimer(d.timer);c.$("tooltip").stop().animate({opacity:0},200,function(){c.$("tooltip").hide();c.addTimer(d.swapTimer,function(){d.open=!1},1e3)})},f=function(n,i){d.define(n,i);t(n).hover(function(){c.clearTimer(d.swapTimer);c.$("container").off("mousemove",d.move).on("mousemove",d.move).trigger("mousemove");d.show(n);c.addTimer(d.timer,function(){c.$("tooltip").stop().show().animate({opacity:1});d.open=!0},d.open?0:500)},u).click(u)};"string"==typeof r?f(n in c._dom?c.get(n):n,r):t.each(n,function(n,t){f(c.get(n),t)})}},show:function(i){i=t(i in c._dom?c.get(i):i);var r=i.data("tt"),u=function(t){n.setTimeout(function(n){return function(){d.move(n)}}(t),10);i.off("mouseup",u)};(r="function"==typeof r?r():r)&&(c.$("tooltip").html(r.replace(/\s/," ")),i.on("mouseup",u))},define:function(n,i){if("function"!=typeof i){var r=i;i=function(){return r}}n=t(n in c._dom?c.get(n):n).data("tt",i);d.show(n)}},w=this._fullscreen={scrolled:0,crop:r,active:!1,prev:t(),beforeEnter:function(n){n()},beforeExit:function(n){n()},keymap:c._keyboard.map,parseCallback:function(n,i){return p.active?function(){"function"==typeof n&&n.call(c);var r=c._controls.getActive(),u=c._controls.getNext();c._scaleImage(u);c._scaleImage(r);i&&c._options.trueFullscreen&&t(r.container).add(u.container).trigger("transitionend")}:n},enter:function(t){w.beforeEnter(function(){t=w.parseCallback(t,!0);c._options.trueFullscreen&&l.support?(w.active=!0,u.forceStyles(c.get("container"),{width:"100%",height:"100%"}),c.rescale(),i.MAC?i.SAFARI&&/version\/[1-5]/.test(y)?(c.$("stage").css("opacity",0),n.setTimeout(function(){w.scale();c.$("stage").css("opacity",1)},4)):(c.$("container").css("opacity",0).addClass("fullscreen"),n.setTimeout(function(){w.scale();c.$("container").css("opacity",1)},50)):c.$("container").addClass("fullscreen"),h.resize(w.scale),l.enter(c,t,c.get("container"))):(w.scrolled=h.scrollTop(),i.TOUCH||n.scrollTo(0,0),w._enter(t))})},_enter:function(f){w.active=!0;nt&&(w.iframe=function(){var f,o=e.referrer,r=e.createElement("a"),u=n.location;return r.href=o,r.protocol!=u.protocol||r.hostname!=u.hostname||r.port!=u.port?(i.raise("Parent fullscreen not available. Iframe protocol, domains and ports must match."),!1):(w.pd=n.parent.document,t(w.pd).find("iframe").each(function(){if((this.contentDocument||this.contentWindow.document)===e)return f=this,!1}),f)}());u.hide(c.getActiveImage());nt&&w.iframe&&(w.iframe.scrolled=t(n.parent).scrollTop(),n.parent.scrollTo(0,0));var o=c.getData(),v=c._options,p=!c._options.trueFullscreen||!l.support,a={height:"100%",overflow:"hidden",margin:0,padding:0};if(p&&(c.$("container").addClass("fullscreen"),w.prev=c.$("container").prev(),w.prev.length||(w.parent=c.$("container").parent()),c.$("container").appendTo("body"),u.forceStyles(c.get("container"),{position:i.TOUCH?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e4}),u.forceStyles(s().html,a),u.forceStyles(s().body,a)),nt&&w.iframe&&(u.forceStyles(w.pd.documentElement,a),u.forceStyles(w.pd.body,a),u.forceStyles(w.iframe,t.extend(a,{width:"100%",height:"100%",top:0,left:0,position:"fixed",zIndex:1e4,border:"none"}))),w.keymap=t.extend({},c._keyboard.map),c.attachKeyboard({escape:c.exitFullscreen,right:c.next,left:c.prev}),w.crop=v.imageCrop,v.fullscreenCrop!=r&&(v.imageCrop=v.fullscreenCrop),o&&o.big&&o.image!==o.big){var k=new i.Picture,d=k.isCached(o.big),y=c.getIndex(),g=c._thumbnails[y];c.trigger({type:i.LOADSTART,cached:d,rewind:!1,index:y,imageTarget:c.getActiveImage(),thumbTarget:g,galleriaData:o});k.load(o.big,function(n){c._scaleImage(n,{complete:function(n){c.trigger({type:i.LOADFINISH,cached:d,index:y,rewind:!1,imageTarget:n.image,thumbTarget:g});var r=c._controls.getActive().image;r&&(t(r).width(n.image.width).height(n.image.height).attr("style",t(n.image).attr("style")),n.image.src.srcset&&t(r).attr("srcset",n.image.src.srcset),n.image.src.sizes&&t(r).attr("sizes",n.image.src.sizes),t(r).attr("src",n.image.src))}})});var tt=c.getNext(y),it=new i.Picture,b=c.getData(tt);it.preload(c.isFullscreen()&&b.big?b.big:b.image)}c.rescale(function(){c.addTimer(!1,function(){p&&u.show(c.getActiveImage());"function"==typeof f&&f.call(c);c.rescale()},100);c.trigger(i.FULLSCREEN_ENTER)});p?h.resize(w.scale):u.show(c.getActiveImage())},scale:function(){c.rescale()},exit:function(n){w.beforeExit(function(){n=w.parseCallback(n);c._options.trueFullscreen&&l.support?l.exit(n):w._exit(n)})},_exit:function(t){var e,o,r,a,f;w.active=!1;e=!c._options.trueFullscreen||!l.support;o=c.$("container").removeClass("fullscreen");(w.parent?w.parent.prepend(o):o.insertAfter(w.prev),e)&&(u.hide(c.getActiveImage()),u.revertStyles(c.get("container"),s().html,s().body),i.TOUCH||n.scrollTo(0,w.scrolled),r=c._controls.frames[c._controls.active],r&&r.image&&(r.image.src=r.image.src));nt&&w.iframe&&(u.revertStyles(w.pd.documentElement,w.pd.body,w.iframe),w.iframe.scrolled&&n.parent.scrollTo(0,w.iframe.scrolled));c.detachKeyboard();c.attachKeyboard(w.keymap);c._options.imageCrop=w.crop;a=c.getData().big;f=c._controls.getActive().image;!c.getData().iframe&&f&&a&&a==f.src&&n.setTimeout(function(n){return function(){f.src=n}}(c.getData().image),1);c.rescale(function(){c.addTimer(!1,function(){e&&u.show(c.getActiveImage());"function"==typeof t&&t.call(c);h.trigger("resize")},50);c.trigger(i.FULLSCREEN_EXIT)});h.off("resize",w.scale)}},b=this._idle={trunk:[],bound:!1,active:!1,add:function(n,r,u,f){if(n&&!i.TOUCH){b.bound||b.addEvent();n=t(n);"boolean"==typeof u&&(f=u,u={});u=u||{};var e,o={};for(e in r)r.hasOwnProperty(e)&&(o[e]=n.css(e));n.data("idle",{from:t.extend(o,u),to:r,complete:!0,busy:!1});f?n.css(r):b.addTimer();b.trunk.push(n)}},remove:function(n){n=t(n);t.each(b.trunk,function(t,i){i&&i.length&&!i.not(n).length&&(n.css(n.data("idle").from),b.trunk.splice(t,1))});b.trunk.length||(b.removeEvent(),c.clearTimer(b.timer))},addEvent:function(){b.bound=!0;c.$("container").on("mousemove click",b.showAll);"hover"==c._options.idleMode&&c.$("container").on("mouseleave",b.hide)},removeEvent:function(){b.bound=!1;c.$("container").on("mousemove click",b.showAll);"hover"==c._options.idleMode&&c.$("container").off("mouseleave",b.hide)},addTimer:function(){"hover"!=c._options.idleMode&&c.addTimer("idle",function(){b.hide()},c._options.idleTime)},hide:function(){if(c._options.idleMode&&!1!==c.getIndex()){c.trigger(i.IDLE_ENTER);var n=b.trunk.length;t.each(b.trunk,function(t,i){var r=i.data("idle");r&&(i.data("idle").complete=!1,u.animate(i,r.to,{duration:c._options.idleSpeed,complete:function(){t==n-1&&(b.active=!1)}}))})}},showAll:function(){c.clearTimer("idle");t.each(b.trunk,function(n,t){b.show(t)})},show:function(n){var r=n.data("idle");b.active&&(r.busy||r.complete)||(r.busy=!0,c.trigger(i.IDLE_EXIT),c.clearTimer("idle"),u.animate(n,r.from,{duration:c._options.idleSpeed/2,complete:function(){b.active=!0;t(n).data("idle").busy=!1;t(n).data("idle").complete=!0}}));b.addTimer()}},a=this._lightbox={width:0,height:0,initialized:!1,active:null,image:null,elems:{},keymap:!1,init:function(){if(!a.initialized){a.initialized=!0;var r={},f=c._options,e="",n="position:absolute;",h="lightbox-",l={overlay:"position:fixed;display:none;opacity:"+f.overlayOpacity+";filter:alpha(opacity="+100*f.overlayOpacity+");top:0;left:0;width:100%;height:100%;background:"+f.overlayBackground+";z-index:99990",box:"position:fixed;display:none;width:400px;height:400px;top:50%;left:50%;margin-top:-200px;margin-left:-200px;z-index:99991",shadow:n+"background:#000;width:100%;height:100%;",content:n+"background-color:#fff;top:10px;left:10px;right:10px;bottom:10px;overflow:hidden",info:n+"bottom:10px;left:10px;right:10px;color:#444;font:11px/13px arial,sans-serif;height:13px",close:n+"top:10px;right:10px;height:20px;width:20px;background:#fff;text-align:center;cursor:pointer;color:#444;font:16px/22px arial,sans-serif;z-index:99999",image:n+"top:10px;left:10px;right:10px;bottom:30px;overflow:hidden;display:block;",prevholder:n+"width:50%;top:0;bottom:40px;cursor:pointer;",nextholder:n+"width:50%;top:0;bottom:40px;right:-1px;cursor:pointer;",prev:n+"top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;left:20px;display:none;text-align:center;color:#000;font:bold 16px/36px arial,sans-serif",next:n+"top:50%;margin-top:-20px;height:40px;width:30px;background:#fff;right:20px;left:auto;display:none;font:bold 16px/36px arial,sans-serif;text-align:center;color:#000",title:"float:left",counter:"float:right;margin-left:8px;"},y={},v="";v=o>7?o<9?"background:#000;filter:alpha(opacity=0);":"background:rgba(0,0,0,0);":"z-index:99999";l.nextholder+=v;l.prevholder+=v;t.each(l,function(n,t){e+=".galleria-"+h+n+"{"+t+"}"});e+=".galleria-lightbox-box.iframe .galleria-lightbox-prevholder,.galleria-lightbox-box.iframe .galleria-lightbox-nextholder{width:100px;height:100px;top:50%;margin-top:-70px}";u.insertStyleTag(e,"galleria-lightbox");t.each("overlay box content shadow title info close prevholder prev nextholder next counter image".split(" "),function(n,t){c.addElement("lightbox-"+t);r[t]=a.elems[t]=c.get("lightbox-"+t)});a.image=new i.Picture;t.each({box:"shadow content close prevholder nextholder",info:"title counter",content:"info image",prevholder:"prev",nextholder:"next"},function(n,i){var r=[];t.each(i.split(" "),function(n,t){r.push(h+t)});y[h+n]=r});c.append(y);t(r.image).append(a.image.container);t(s().body).append(r.overlay,r.box),function(n){n.hover(function(){t(this).css("color","#bbb")},function(){t(this).css("color","#444")})}(t(r.close).on("click:fast",a.hide).html("×"));t.each(["Prev","Next"],function(n,u){var f=t(r[u.toLowerCase()]).html(/v/.test(u)?"‹ ":" ›"),e=t(r[u.toLowerCase()+"holder"]);if(e.on("click:fast",function(){a["show"+u]()}),o<8||i.TOUCH)return void f.show();e.hover(function(){f.show()},function(){f.stop().fadeOut(200)})});t(r.overlay).on("click:fast",a.hide);i.IPAD&&(c._options.lightboxTransitionSpeed=0)}},rescale:function(n){var l=f.min(h.width()-40,a.width),v=f.min(h.height()-60,a.height),r=f.min(l/a.width,v/a.height),e=f.round(a.width*r)+40,o=f.round(a.height*r)+60,s={width:e,height:o,"margin-top":-1*f.ceil(o/2),"margin-left":-1*f.ceil(e/2)};n?t(a.elems.box).css(s):t(a.elems.box).animate(s,{duration:c._options.lightboxTransitionSpeed,easing:c._options.easing,complete:function(){var n=a.image,r=c._options.lightboxFadeSpeed;c.trigger({type:i.LIGHTBOX_IMAGE,imageTarget:n.image});t(n.container).show();t(n.image).animate({opacity:1},r);u.show(a.elems.info,r)}})},hide:function(){a.image.image=null;h.off("resize",a.rescale);t(a.elems.box).hide().find("iframe").remove();u.hide(a.elems.info);c.detachKeyboard();c.attachKeyboard(a.keymap);a.keymap=!1;u.hide(a.elems.overlay,200,function(){t(this).hide().css("opacity",c._options.overlayOpacity);c.trigger(i.LIGHTBOX_CLOSE)})},showNext:function(){a.show(c.getNext(a.active))},showPrev:function(){a.show(c.getPrev(a.active))},show:function(r){a.active=r="number"==typeof r?r:c.getIndex()||0;a.initialized||a.init();c.trigger(i.LIGHTBOX_OPEN);a.keymap||(a.keymap=t.extend({},c._keyboard.map),c.attachKeyboard({escape:a.hide,right:a.showNext,left:a.showPrev}));h.off("resize",a.rescale);var s,y,l,e=c.getData(r),p=c.getDataLength(),v=c.getNext(r);u.hide(a.elems.info);try{for(l=c._options.preload;l>0;l--)y=new i.Picture,s=c.getData(v),y.preload(s.big?s.big:s.image),v=c.getNext(v)}catch(n){}a.image.isIframe=e.iframe&&!e.image;t(a.elems.box).toggleClass("iframe",a.image.isIframe);t(a.image.container).find(".galleria-videoicon").remove();a.image.load(e.big||e.image||e.iframe,function(i){var u,s,l,v;i.isIframe?(u=t(n).width(),s=t(n).height(),i.video&&c._options.maxVideoSize&&(l=f.min(c._options.maxVideoSize/u,c._options.maxVideoSize/s),l<1&&(u*=l,s*=l)),a.width=u,a.height=s):(a.width=i.original.width,a.height=i.original.height);(t(i.image).css({width:i.isIframe?"100%":"100.1%",height:i.isIframe?"100%":"100.1%",top:0,bottom:0,zIndex:99998,opacity:0,visibility:"visible"}).parent().height("100%"),a.elems.title.innerHTML=e.title||"",a.elems.counter.innerHTML=r+1+" / "+p,h.resize(a.rescale),a.rescale(),e.image&&e.iframe)&&((t(a.elems.box).addClass("iframe"),e.video)&&(v=ft(i.container).hide(),n.setTimeout(function(){v.fadeIn(200)},200)),t(i.image).css("cursor","pointer").mouseup(function(n,i){return function(r){t(a.image.container).find(".galleria-videoicon").remove();r.preventDefault();i.isIframe=!0;i.load(n.iframe+(n.video?"&autoplay=1":""),{width:"100%",height:o<8?t(a.image.container).height():"100%"})}}(e,i)))});t(a.elems.overlay).show().css("visibility","visible");t(a.elems.box).show()}},it=this._timer={trunk:{},add:function(t,i,r,u){if(t=t||(new Date).getTime(),u=u||!1,this.clear(t),u){var f=i;i=function(){f();it.add(t,i,r)}}this.trunk[t]=n.setTimeout(i,r)},clear:function(t){var i,r=function(t){n.clearTimeout(this.trunk[t]);delete this.trunk[t]};if(t&&t in this.trunk)r.call(this,t);else if(void 0===t)for(i in this.trunk)this.trunk.hasOwnProperty(i)&&r.call(this,i)}};return this},i.prototype={constructor:i,init:function(n,u){if(u=ht(u),this._original={target:n,options:u,data:null},this._target=this._dom.target=n.nodeName?n:t(n).get(0),this._original.html=this._target.innerHTML,w.push(this),!this._target)return void i.raise("Target not found",!0);if(this._options={autoplay:!1,carousel:!0,carouselFollow:!0,carouselSpeed:400,carouselSteps:"auto",clicknext:!1,dailymotion:{foreground:"%23EEEEEE",highlight:"%235BCEC5",background:"%23222222",logo:0,hideInfos:1},dataConfig:function(){return{}},dataSelector:"img",dataSort:!1,dataSource:this._target,debug:r,dummy:r,easing:"galleria",extend:function(){},fullscreenCrop:r,fullscreenDoubleTap:!0,fullscreenTransition:r,height:0,idleMode:!0,idleTime:3e3,idleSpeed:200,imageCrop:!1,imageMargin:0,imagePan:!1,imagePanSmoothness:12,imagePosition:"50%",imageTimeout:r,initialTransition:r,keepSource:!1,layerFollow:!0,lightbox:!1,lightboxFadeSpeed:200,lightboxTransitionSpeed:200,linkSourceImages:!0,maxScaleRatio:r,maxVideoSize:r,minScaleRatio:r,overlayOpacity:.85,overlayBackground:"#0b0b0b",pauseOnInteraction:!0,popupLinks:!1,preload:2,queue:!0,responsive:!0,show:0,showInfo:!0,showCounter:!0,showImagenav:!0,swipe:"auto",theme:null,thumbCrop:!0,thumbEventType:"click:fast",thumbMargin:0,thumbQuality:"auto",thumbDisplayOrder:!0,thumbPosition:"50%",thumbnails:!0,touchTransition:r,transition:"fade",transitionInitial:r,transitionSpeed:400,trueFullscreen:!0,useCanvas:!1,variation:"",videoPoster:!0,vimeo:{title:0,byline:0,portrait:0,color:"aaaaaa"},wait:5e3,width:"auto",youtube:{modestbranding:1,autohide:1,color:"white",hd:1,rel:0,showinfo:0}},this._options.initialTransition=this._options.initialTransition||this._options.transitionInitial,u&&(!1===u.debug&&(et=!1),"number"==typeof u.imageTimeout&&(pt=u.imageTimeout),"string"==typeof u.dummy&&(tt=u.dummy),"string"==typeof u.theme&&(this._options.theme=u.theme)),t(this._target).children().hide(),i.QUIRK&&i.raise("Your page is in Quirks mode, Galleria may not render correctly. Please validate your HTML and add a correct doctype."),b.length)if(this._options.theme){for(var f=0;f<b.length;f++)if(this._options.theme===b[f].name){this.theme=b[f];break}}else this.theme=b[0];return"object"==typeof this.theme?this._init():vt.push(this),this},_init:function(){var s=this,c=this._options,a,l;return this._initialized?(i.raise("Init failed: Gallery instance already initialized."),this):(this._initialized=!0,!this.theme)?(i.raise("Init failed: No theme found.",!0),this):((t.extend(!0,c,this.theme.defaults,this._original.options,i.configure.options),c.swipe=function(n){return"enforced"==n||!1!==n&&"disabled"!=n&&!!i.TOUCH}(c.swipe),c.swipe&&(c.clicknext=!1,c.imagePan=!1),function(n){if(!("getContext"in n))return void(n=null);v=v||{elem:n,context:n.getContext("2d"),cache:{},length:0}}(e.createElement("canvas")),this.bind(i.DATA,function(){var e,t,r;n.screen&&n.screen.width&&Array.prototype.forEach&&this._data.forEach(function(t){var i="devicePixelRatio"in n?n.devicePixelRatio:1;f.max(n.screen.width,n.screen.height)*i<1024&&(t.big=t.image)});this._original.data=this._data;this.get("total").innerHTML=this.getDataLength();e=this.$("container");s._options.height<2&&(s._userRatio=s._ratio=s._options.height);t={width:0,height:0};r=function(){return s.$("stage").height()};u.wait({until:function(){return t=s._getWH(),e.width(t.width).height(t.height),r()&&t.width&&t.height>50},success:function(){s._width=t.width;s._height=t.height;s._ratio=s._ratio||t.height/t.width;i.WEBKIT?n.setTimeout(function(){s._run()},1):s._run()},error:function(){r()?i.raise("Could not extract sufficient width/height of the gallery container. Traced measures: width:"+t.width+"px, height: "+t.height+"px.",!0):i.raise("Could not extract a stage height from the CSS. Traced height: "+r()+"px.",!0)},timeout:"number"==typeof this._options.wait&&this._options.wait})}),this.append({"info-text":["info-title","info-description"],info:["info-text"],"image-nav":["image-nav-right","image-nav-left"],stage:["images","loader","counter","image-nav"],"thumbnails-list":["thumbnails"],"thumbnails-container":["thumb-nav-left","thumbnails-list","thumb-nav-right"],container:["stage","thumbnails-container","info","tooltip"]}),u.hide(this.$("counter").append(this.get("current"),e.createTextNode(" / "),this.get("total"))),this.setCounter("–"),u.hide(s.get("tooltip")),this.$("container").addClass([i.TOUCH?"touch":"notouch",this._options.variation,"galleria-theme-"+this.theme.name].join(" ")),this._options.swipe||t.each(new Array(2),function(n){var r=new i.Picture,f;t(r.container).css({position:"absolute",top:0,left:0}).prepend(s._layers[n]=t(u.create("galleria-layer")).css({position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2})[0]);s.$("images").append(r.container);s._controls[n]=r;f=new i.Picture;f.isIframe=!0;t(f.container).attr("class","galleria-frame").css({position:"absolute",top:0,left:0,zIndex:4,background:"#000",display:"none"}).appendTo(r.container);s._controls.frames[n]=f}),this.$("images").css({position:"relative",top:0,left:0,width:"100%",height:"100%"}),c.swipe&&(this.$("images").css({position:"absolute",top:0,left:0,width:0,height:"100%"}),this.finger=new i.Finger(this.get("stage"),{onchange:function(n){s.pause().show(n)},oncomplete:function(n){var i=f.max(0,f.min(parseInt(n,10),s.getDataLength()-1)),r=s.getData(i);t(s._thumbnails[i].container).addClass("active").siblings(".active").removeClass("active");r&&(s.$("images").find(".galleria-frame").css("opacity",0).hide().find("iframe").remove(),s._options.carousel&&s._options.carouselFollow&&s._carousel.follow(i))}}),this.bind(i.RESCALE,function(){this.finger.setup()}),this.$("stage").on("click",function(){var i=s.getData();if(i){if(i.iframe){s.isPlaying()&&s.pause();var u=s._controls.frames[s._active],f=s._stageWidth,e=s._stageHeight;return t(u.container).find("iframe").length?void 0:(t(u.container).css({width:f,height:e,opacity:0}).show().animate({opacity:1},200),void n.setTimeout(function(){u.load(i.iframe+(i.video?"&autoplay=1":""),{width:f,height:e},function(n){s.$("container").addClass("videoplay");n.scale({width:s._stageWidth,height:s._stageHeight,iframelimit:i.video?s._options.maxVideoSize:r})})},100))}i.link&&(s._options.popupLinks?n.open(i.link,"_blank"):n.location.href=i.link)}}),this.bind(i.IMAGE,function(n){var i;s.setCounter(n.index);s.setInfo(n.index);var r=this.getNext(),u=this.getPrev(),f=[u,r];f.push(this.getNext(r),this.getPrev(u),s._controls.slides.length-1);i=[];t.each(f,function(n,r){-1==t.inArray(r,i)&&i.push(r)});t.each(i,function(n,i){var r=s.getData(i),u=s._controls.slides[i],f=s.isFullscreen()&&r.big?r.big:r.image||r.iframe;r.iframe&&!r.image&&(u.isIframe=!0);u.ready||s._controls.slides[i].load(f,function(n){n.isIframe||t(n.image).css("visibility","hidden");s._scaleImage(n,{complete:function(n){n.isIframe||t(n.image).css({opacity:0,visibility:"visible"}).animate({opacity:1},200)}})})})})),this.$("thumbnails, thumbnails-list").css({overflow:"hidden",position:"relative"}),this.$("image-nav-right, image-nav-left").on("click:fast",function(){c.pauseOnInteraction&&s.pause();var n=/right/.test(this.className)?"next":"prev";s[n]()}).on("click",function(n){n.preventDefault();(c.clicknext||c.swipe)&&n.stopPropagation()}),t.each(["info","counter","image-nav"],function(n,t){!1===c["show"+t.substr(0,1).toUpperCase()+t.substr(1).replace(/-/,"")]&&u.moveOut(s.get(t.toLowerCase()))}),this.load(),c.keepSource||o||(this._target.innerHTML=""),this.get("errors")&&this.appendChild("target","errors"),this.appendChild("target","container"),c.carousel)&&(a=0,l=c.show,this.bind(i.THUMBNAIL,function(){this.updateCarousel();++a==this.getDataLength()&&"number"==typeof l&&l>0&&this._carousel.follow(l)})),c.responsive&&h.on("resize",function(){s.isFullscreen()||s.resize()}),c.fullscreenDoubleTap&&this.$("stage").on("touchstart",function(){var n,t,i,f,e,r,o=function(n){return n.originalEvent.touches?n.originalEvent.touches[0]:n};return s.$("stage").on("touchmove",function(){n=0}),function(h){if(!/(-left|-right)/.test(h.target.className)){if(r=u.timestamp(),t=o(h).pageX,i=o(h).pageY,h.originalEvent.touches.length<2&&r-n<300&&t-f<20&&i-e<20)return s.toggleFullscreen(),void h.preventDefault();n=r;f=t;e=i}}}()),t.each(i.on.binds,function(n,i){-1==t.inArray(i.hash,s._binds)&&s.bind(i.type,i.callback)}),this)},addTimer:function(){return this._timer.add.apply(this._timer,u.array(arguments)),this},clearTimer:function(){return this._timer.clear.apply(this._timer,u.array(arguments)),this},_getWH:function(){var r,e=this.$("container"),o=this.$("target"),n=this,i={};return t.each(["width","height"],function(t,s){n._options[s]&&"number"==typeof n._options[s]?i[s]=n._options[s]:(r=[u.parseValue(e.css(s)),u.parseValue(o.css(s)),e[s](),o[s]()],n["_"+s]||r.splice(r.length,u.parseValue(e.css("min-"+s)),u.parseValue(o.css("min-"+s))),i[s]=f.max.apply(f,r))}),n._userRatio&&(i.height=i.width*n._userRatio),i},_createThumbnails:function(r){this.get("total").innerHTML=this.getDataLength();var y,f,l,a,c=this,s=this._options,h=r?this._data.length-r.length:0,g=h,p=[],w=0,nt=o<8?"http://upload.wikimedia.org/wikipedia/commons/c/c0/Blank.gif":"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw%3D%3D",tt=function(){var n=c.$("thumbnails").find(".active");return!!n.length&&n.find("img").attr("src")}(),v="string"==typeof s.thumbnails?s.thumbnails.toLowerCase():null,b=function(n){return e.defaultView&&e.defaultView.getComputedStyle?e.defaultView.getComputedStyle(f.container,null)[n]:a.css(n)},it=function(n){s.pauseOnInteraction&&c.pause();var i=t(n.currentTarget).data("index");c.getIndex()!==i&&c.show(i);n.preventDefault()},k=function(n,r){t(n.container).css("visibility","visible");c.trigger({type:i.THUMBNAIL,thumbTarget:n.image,index:n.data.order,galleriaData:c.getData(n.data.order)});"function"==typeof r&&r.call(c,n)},d=function(n,i){n.scale({width:n.data.width,height:n.data.height,crop:s.thumbCrop,margin:s.thumbMargin,canvas:s.useCanvas,position:s.thumbPosition,complete:function(n){var f,r,e=["left","top"];c.getData(n.index);t.each(["Width","Height"],function(i,u){f=u.toLowerCase();!0===s.thumbCrop&&s.thumbCrop!==f||(r={},r[f]=n[f],t(n.container).css(r),r={},r[e[i]]=0,t(n.image).css(r));n["outer"+u]=t(n.container)["outer"+u](!0)});u.toggleQuality(n.image,!0===s.thumbQuality||"auto"===s.thumbQuality&&n.original.width<3*n.width);s.thumbDisplayOrder&&!n.lazy?t.each(p,function(n,t){if(n===w&&t.ready&&!t.displayed)return w++,t.displayed=!0,void k(t,i)}):k(n,i)}})};for(r||(this._thumbnails=[],this.$("thumbnails").empty());this._data[h];h++)l=this._data[h],y=l.thumb||l.image,!0!==s.thumbnails&&"lazy"!=v||!l.thumb&&!l.image?l.iframe&&null!==v||"empty"===v||"numbers"===v?(f={container:u.create("galleria-image"),image:u.create("img","span"),ready:!0,data:{order:h}},"numbers"===v&&t(f.image).text(h+1),l.iframe&&t(f.image).addClass("iframe"),this.$("thumbnails").append(f.container),n.setTimeout(function(n,r,u){return function(){t(u).append(n);c.trigger({type:i.THUMBNAIL,thumbTarget:n,index:r,galleriaData:c.getData(r)})}}(f.image,h,f.container),50+20*h)):f={container:null,image:null}:(f=new i.Picture(h),f.index=h,f.displayed=!1,f.lazy=!1,f.video=!1,this.$("thumbnails").append(f.container),a=t(f.container),a.css("visibility","hidden"),f.data={width:u.parseValue(b("width")),height:u.parseValue(b("height")),order:h,src:y},!0!==s.thumbCrop?a.css({width:"auto",height:"auto"}):a.css({width:f.data.width,height:f.data.height}),"lazy"==v?(a.addClass("lazy"),f.lazy=!0,f.load(nt,{height:f.data.height,width:f.data.width})):f.load(y,d),"all"===s.preload&&f.preload(l.image)),t(f.container).add(s.keepSource&&s.linkSourceImages?l.original:null).data("index",h).on(s.thumbEventType,it).data("thumbload",d),tt===y&&t(f.container).addClass("active"),this._thumbnails.push(f);return p=this._thumbnails.slice(g),this},lazyLoad:function(n,i){var u=n.constructor==Array?n:[n],r=this,f=0;return t.each(u,function(n,e){if(!(e>r._thumbnails.length-1)){var o=r._thumbnails[e],c=o.data,h=function(){++f==u.length&&"function"==typeof i&&i.call(r)},s=t(o.container).data("thumbload");s&&(o.video?s.call(r,o,h):o.load(c.src,function(n){s.call(r,n,h)}))}}),this},lazyLoadChunks:function(t,i){var e=this.getDataLength(),r=0,o=0,s=[],u=[],h=this,f;for(i=i||0;r<e;r++)u.push(r),++o!=t&&r!=e-1||(s.push(u),o=0,u=[]);return f=function(t){var r=s.shift();r&&n.setTimeout(function(){h.lazyLoad(r,function(){f(!0)})},i&&t?i:0)},f(!1),this},_run:function(){var f=this;f._createThumbnails();u.wait({timeout:1e4,until:function(){return i.OPERA&&f.$("stage").css("display","inline-block"),f._stageWidth=f.$("stage").width(),f._stageHeight=f.$("stage").height(),f._stageWidth&&f._stageHeight>50},success:function(){if(rt.push(f),f._options.swipe){var e=f.$("images").width(f.getDataLength()*f._stageWidth);t.each(new Array(f.getDataLength()),function(n){var r=new i.Picture,s=f.getData(n),o;t(r.container).css({position:"absolute",top:0,left:f._stageWidth*n}).prepend(f._layers[n]=t(u.create("galleria-layer")).css({position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:2})[0]).appendTo(e);s.video&&ft(r.container);f._controls.slides.push(r);o=new i.Picture;o.isIframe=!0;t(o.container).attr("class","galleria-frame").css({position:"absolute",top:0,left:0,zIndex:4,background:"#000",display:"none"}).appendTo(r.container);f._controls.frames.push(o)});f.finger.setup()}if(u.show(f.get("counter")),f._options.carousel&&f._carousel.bindControls(),f._options.autoplay&&(f.pause(),"number"==typeof f._options.autoplay&&(f._playtime=f._options.autoplay),f._playing=!0),f._firstrun)return f._options.autoplay&&f.trigger(i.PLAY),void("number"==typeof f._options.show&&f.show(f._options.show));f._firstrun=!0;i.History&&i.History.change(function(t){isNaN(t)?n.history.go(-1):f.show(t,r,!0)});f.trigger(i.READY);f.theme.init.call(f,f._options);t.each(i.ready.callbacks,function(n,t){"function"==typeof t&&t.call(f,f._options)});f._options.extend.call(f,f._options);/^[0-9]{1,4}$/.test(ot)&&i.History?f.show(ot,r,!0):f._data[f._options.show]&&f.show(f._options.show);f._options.autoplay&&f.trigger(i.PLAY)},error:function(){i.raise("Stage width or height is too small to show the gallery. Traced measures: width:"+f._stageWidth+"px, height: "+f._stageHeight+"px.",!0)}})},load:function(n,r,u){var o=this,e=this._options;return this._data=[],this._thumbnails=[],this.$("thumbnails").empty(),"function"==typeof r&&(u=r,r=null),n=n||e.dataSource,r=r||e.dataSelector,u=u||e.dataConfig,t.isPlainObject(n)&&(n=[n]),t.isArray(n)?this.validate(n)?this._data=n:i.raise("Load failed: JSON Array not valid."):(r+=",.video,.iframe",t(n).find(r).each(function(n,i){i=t(i);var r={},e=i.parent(),f=e.attr("href"),s=e.attr("rel");f&&("IMG"==i[0].nodeName||i.hasClass("video"))&<(f)?r.video=f:f&&i.hasClass("iframe")?r.iframe=f:r.image=f;s&&(r.big=s);r.imagesrcset=e.data("srcset");r.imagesizes=e.data("sizes");r.thumbsizes=i.attr("sizes");r.thumbsrcset=i.attr("srcset");t.each("big bigsrcset bigsizes title description link layer image imagesrcset imagesizes".split(" "),function(n,t){i.data(t)&&(r[t]=i.data(t).toString())});i.data("srcset")&&(r.imagesrcset=i.data("srcset"));i.data("sizes")&&(r.imagesizes=i.data("sizes"));r.big||(r.big=r.image,r.bigsrcset=r.imagesrcset,r.bigsizes=r.imagesizes);o._data.push(t.extend({title:i.attr("title")||"",thumb:i.attr("src"),image:i.attr("src"),big:i.attr("src"),description:i.attr("alt")||"",link:i.attr("longdesc"),original:i.get(0)},r,u(i)))})),"function"==typeof e.dataSort?d.sort.call(this._data,e.dataSort):"random"==e.dataSort&&this._data.sort(function(){return f.round(f.random())-.5}),this.getDataLength()&&this._parseData(function(){this.trigger(i.DATA)}),this},_parseData:function(n){var i,u=this,f=!1,e=function(){var i=!0;t.each(u._data,function(n,t){if(t.loading)return i=!1,!1});i&&!f&&(f=!0,n.call(u))};return t.each(this._data,function(n,f){if(i=u._data[n],t.each("big image thumb".split(" "),function(n,t){f[t]&&(f[t]=new String(f[t]),f[t].srcset=f[t+"srcset"],f[t].sizes=f[t+"sizes"])}),"thumb"in f==!1&&(i.thumb=f.image),f.big||(i.big=f.image),"video"in f){var o=lt(f.video);o&&(i.iframe=new ct(o.provider,o.id).embed()+function(){if("object"==typeof u._options[o.provider]){var n=[];return t.each(u._options[o.provider],function(t,i){n.push(t+"="+i)}),"youtube"==o.provider&&(n=["wmode=opaque"].concat(n)),"?"+n.join("&")}return""}(),i.thumb&&i.image||t.each(["thumb","image"],function(n,t){if("image"==t&&!u._options.videoPoster)return void(i.image=r);var f=new ct(o.provider,o.id);i[t]||(i.loading=!0,f.getMedia(t,function(n,t){return function(i){n[t]=i;"image"!=t||n.big||(n.big=n.image);delete n.loading;e()}}(i,t)))}))}}),e(),this},destroy:function(){return this.$("target").data("galleria",null),this.$("container").off("galleria"),this.get("target").innerHTML=this._original.html,this.clearTimer(),u.removeFromArray(w,this),u.removeFromArray(rt,this),a._inst=[],void 0!==i._waiters&&i._waiters.length&&t.each(i._waiters,function(t,i){i&&n.clearTimeout(i)}),this},splice:function(){var t=this,i=u.array(arguments);return n.setTimeout(function(){d.splice.apply(t._data,i);t._parseData(function(){t._createThumbnails()})},2),t},push:function(){var i=this,t=u.array(arguments);return 1==t.length&&t[0].constructor==Array&&(t=t[0]),n.setTimeout(function(){d.push.apply(i._data,t);i._parseData(function(){i._createThumbnails(t)})},2),i},_getActive:function(){return this._controls.getActive()},validate:function(){return!0},bind:function(n,t){return n=it(n),this.$("container").on(n,this.proxy(t)),this},unbind:function(n){return n=it(n),this.$("container").off(n),this},trigger:function(n){return n="object"==typeof n?t.extend(n,{scope:this}):{type:it(n),scope:this},this.$("container").trigger(n),this},addIdleState:function(){return this._idle.add.apply(this._idle,u.array(arguments)),this},removeIdleState:function(){return this._idle.remove.apply(this._idle,u.array(arguments)),this},enterIdleMode:function(){return this._idle.hide(),this},exitIdleMode:function(){return this._idle.showAll(),this},enterFullscreen:function(){return this._fullscreen.enter.apply(this,u.array(arguments)),this},exitFullscreen:function(){return this._fullscreen.exit.apply(this,u.array(arguments)),this},toggleFullscreen:function(){return this._fullscreen[this.isFullscreen()?"exit":"enter"].apply(this,u.array(arguments)),this},bindTooltip:function(){return this._tooltip.bind.apply(this._tooltip,u.array(arguments)),this},defineTooltip:function(){return this._tooltip.define.apply(this._tooltip,u.array(arguments)),this},refreshTooltip:function(){return this._tooltip.show.apply(this._tooltip,u.array(arguments)),this},openLightbox:function(){return this._lightbox.show.apply(this._lightbox,u.array(arguments)),this},closeLightbox:function(){return this._lightbox.hide.apply(this._lightbox,u.array(arguments)),this},hasVariation:function(n){return t.inArray(n,this._options.variation.split(/\s+/))>-1},getActiveImage:function(){var n=this._getActive();return n?n.image:r},getActiveThumb:function(){return this._thumbnails[this._active].image||r},getMousePosition:function(n){return{x:n.pageX-this.$("container").offset().left,y:n.pageY-this.$("container").offset().top}},addPan:function(n){if(!1!==this._options.imageCrop){n=t(n||this.getActiveImage());var i=this,v=n.width()/2,y=n.height()/2,h=parseInt(n.css("left"),10),c=parseInt(n.css("top"),10),e=h||0,s=c||0,l=0,a=0,p=!1,d=u.timestamp(),w=0,r=0,b=function(t,i,u){if(t>0&&(r=f.round(f.max(-1*t,f.min(0,i))),w!==r))if(w=r,8===o)n.parent()["scroll"+u](-1*r);else{var e={};e[u.toLowerCase()]=r;n.css(e)}},k=function(n){u.timestamp()-d<50||(p=!0,v=i.getMousePosition(n).x,y=i.getMousePosition(n).y)},g=function(){p&&(l=n.width()-i._stageWidth,a=n.height()-i._stageHeight,h=v/i._stageWidth*l*-1,c=y/i._stageHeight*a*-1,e+=(h-e)/i._options.imagePanSmoothness,s+=(c-s)/i._options.imagePanSmoothness,b(a,s,"Top"),b(l,e,"Left"))};return 8===o&&(n.parent().scrollTop(-1*s).scrollLeft(-1*e),n.css({top:0,left:0})),this.$("stage").off("mousemove",k).on("mousemove",k),this.addTimer("pan"+i._id,g,50,!0),this}},proxy:function(n,t){return"function"!=typeof n?c:(t=t||this,function(){return n.apply(t,u.array(arguments))})},getThemeName:function(){return this.theme.name},removePan:function(){return this.$("stage").off("mousemove"),this.clearTimer("pan"+this._id),this},addElement:function(){var n=this._dom;return t.each(u.array(arguments),function(t,i){n[i]=u.create("galleria-"+i)}),this},attachKeyboard:function(){return this._keyboard.attach.apply(this._keyboard,u.array(arguments)),this},detachKeyboard:function(){return this._keyboard.detach.apply(this._keyboard,u.array(arguments)),this},appendChild:function(n,t){return this.$(n).append(this.get(t)||t),this},prependChild:function(n,t){return this.$(n).prepend(this.get(t)||t),this},remove:function(){return this.$(u.array(arguments).join(",")).remove(),this},append:function(n){var t,i;for(t in n)if(n.hasOwnProperty(t))if(n[t].constructor===Array)for(i=0;n[t][i];i++)this.appendChild(t,n[t][i]);else this.appendChild(t,n[t]);return this},_scaleImage:function(n,i){if(n=n||this._controls.getActive()){var r,e=function(n){t(n.container).children(":first").css({top:f.max(0,u.parseValue(n.image.style.top)),left:f.max(0,u.parseValue(n.image.style.left)),width:u.parseValue(n.image.width),height:u.parseValue(n.image.height)})};return i=t.extend({width:this._stageWidth,height:this._stageHeight,crop:this._options.imageCrop,max:this._options.maxScaleRatio,min:this._options.minScaleRatio,margin:this._options.imageMargin,position:this._options.imagePosition,iframelimit:this._options.maxVideoSize},i),this._options.layerFollow&&!0!==this._options.imageCrop?"function"==typeof i.complete?(r=i.complete,i.complete=function(){r.call(n,n);e(n)}):i.complete=e:t(n.container).children(":first").css({top:0,left:0}),n.scale(i),this}},updateCarousel:function(){return this._carousel.update(),this},resize:function(n,i){"function"==typeof n&&(i=n,n=r);n=t.extend({width:0,height:0},n);var f=this,u=this.$("container");return t.each(n,function(t,i){i||(u[t]("auto"),n[t]=f._getWH()[t])}),t.each(n,function(n,t){u[n](t)}),this.rescale(i)},rescale:function(n,u,f){var e=this;return"function"==typeof n&&(f=n,n=r),function(){e._stageWidth=n||e.$("stage").width();e._stageHeight=u||e.$("stage").height();e._options.swipe?(t.each(e._controls.slides,function(n,i){e._scaleImage(i);t(i.container).css("left",e._stageWidth*n)}),e.$("images").css("width",e._stageWidth*e.getDataLength())):e._scaleImage();e._options.carousel&&e.updateCarousel();e._controls.frames[e._controls.active]&&e._controls.frames[e._controls.active].scale({width:e._stageWidth,height:e._stageHeight,iframelimit:e._options.maxVideoSize});e.trigger(i.RESCALE);"function"==typeof f&&f.call(e)}.call(e),this},refreshImage:function(){return this._scaleImage(),this._options.imagePan&&this.addPan(),this},_preload:function(){if(this._options.preload){var u,t,n,r=this.getNext();try{for(t=this._options.preload;t>0;t--)u=new i.Picture,n=this.getData(r),u.preload(this.isFullscreen()&&n.big?n.big:n.image),r=this.getNext(r)}catch(u){}}},show:function(r,u,e){var v=this._options.swipe,o,s,l;if(v||!(this._queue.length>3||!1===r||!this._options.queue&&this._queue.stalled)){if(r=f.max(0,f.min(parseInt(r,10),this.getDataLength()-1)),u=void 0!==u?!!u:r<this.getIndex(),!(e=e||!1)&&i.History)return void i.History.set(r.toString());if(this.finger&&r!==this._active&&(this.finger.to=-r*this.finger.width,this.finger.index=r),this._active=r,v){if(o=this.getData(r),s=this,!o)return;var a=this.isFullscreen()&&o.big?o.big:o.image||o.iframe,h=this._controls.slides[r],y=h.isCached(a),p=this._thumbnails[r],c={cached:y,index:r,rewind:u,imageTarget:h.image,thumbTarget:p.image,galleriaData:o};this.trigger(t.extend(c,{type:i.LOADSTART}));s.$("container").removeClass("videoplay");l=function(){s._layers[r].innerHTML=s.getData().layer||"";s.trigger(t.extend(c,{type:i.LOADFINISH}));s._playCheck()};s._preload();n.setTimeout(function(){h.ready&&t(h.image).attr("src")==a?(s.trigger(t.extend(c,{type:i.IMAGE})),l()):(o.iframe&&!o.image&&(h.isIframe=!0),h.load(a,function(n){c.imageTarget=n.image;s._scaleImage(n,l).trigger(t.extend(c,{type:i.IMAGE}));l()}))},100)}else d.push.call(this._queue,{index:r,rewind:u}),this._queue.stalled||this._show();return this}},_show:function(){var f=this,o=this._queue[0],e=this.getData(o.index),c;if(e){var l=this.isFullscreen()&&e.big?e.big:e.image||e.iframe,h=this._controls.getActive(),s=this._controls.getNext(),a=s.isCached(l),v=this._thumbnails[o.index],y=function(){t(s.image).trigger("mouseup")};f.$("container").toggleClass("iframe",!!e.isIframe).removeClass("videoplay");c=function(e,o,s,h,c){return function(){var l;p.active=!1;u.toggleQuality(o.image,f._options.imageQuality);f._layers[f._controls.active].innerHTML="";t(s.container).css({zIndex:0,opacity:0}).show();t(s.container).find("iframe, .galleria-videoicon").remove();t(f._controls.frames[f._controls.active].container).hide();t(o.container).css({zIndex:1,left:0,top:0}).show();f._controls.swap();f._options.imagePan&&f.addPan(o.image);(e.iframe&&e.image||e.link||f._options.lightbox||f._options.clicknext)&&t(o.image).css({cursor:"pointer"}).on("mouseup",function(u){if(!("number"==typeof u.which&&u.which>1)){if(e.iframe){f.isPlaying()&&f.pause();var o=f._controls.frames[f._controls.active],s=f._stageWidth,h=f._stageHeight;return t(o.container).css({width:s,height:h,opacity:0}).show().animate({opacity:1},200),void n.setTimeout(function(){o.load(e.iframe+(e.video?"&autoplay=1":""),{width:s,height:h},function(n){f.$("container").addClass("videoplay");n.scale({width:f._stageWidth,height:f._stageHeight,iframelimit:e.video?f._options.maxVideoSize:r})})},100)}return f._options.clicknext&&!i.TOUCH?(f._options.pauseOnInteraction&&f.pause(),void f.next()):e.link?void(f._options.popupLinks?l=n.open(e.link,"_blank"):n.location.href=e.link):void(f._options.lightbox&&f.openLightbox())}});f._playCheck();f.trigger({type:i.IMAGE,index:h.index,imageTarget:o.image,thumbTarget:c.image,galleriaData:e});d.shift.call(f._queue);f._queue.stalled=!1;f._queue.length&&f._show()}}(e,s,h,o,v);this._options.carousel&&this._options.carouselFollow&&this._carousel.follow(o.index);f._preload();u.show(s.container);s.isIframe=e.iframe&&!e.image;t(f._thumbnails[o.index].container).addClass("active").siblings(".active").removeClass("active");f.trigger({type:i.LOADSTART,cached:a,index:o.index,rewind:o.rewind,imageTarget:s.image,thumbTarget:v.image,galleriaData:e});f._queue.stalled=!0;s.load(l,function(n){var s=t(f._layers[1-f._controls.active]).html(e.layer||"").hide();f._scaleImage(n,{complete:function(n){var l,v;"image"in h&&u.toggleQuality(h.image,!1);u.toggleQuality(n.image,!1);f.removePan();f.setInfo(o.index);f.setCounter(o.index);e.layer&&(s.show(),(e.iframe&&e.image||e.link||f._options.lightbox||f._options.clicknext)&&s.css("cursor","pointer").off("mouseup").mouseup(y));e.video&&e.image&&ft(n.container);l=f._options.transition;(t.each({initial:null===h.image,touch:i.TOUCH,fullscreen:f.isFullscreen()},function(n,t){if(t&&f._options[n+"Transition"]!==r)return l=f._options[n+"Transition"],!1}),l in p.effects==!1)?c():(v={prev:h.container,next:n.container,rewind:o.rewind,speed:f._options.transitionSpeed||400},p.active=!0,p.init.call(f,l,v,c));f.trigger({type:i.LOADFINISH,cached:a,index:o.index,rewind:o.rewind,imageTarget:n.image,thumbTarget:f._thumbnails[o.index].image,galleriaData:f.getData(o.index)})}})})}},getNext:function(n){return n="number"==typeof n?n:this.getIndex(),n===this.getDataLength()-1?0:n+1},getPrev:function(n){return n="number"==typeof n?n:this.getIndex(),0===n?this.getDataLength()-1:n-1},next:function(){return this.getDataLength()>1&&this.show(this.getNext(),!1),this},prev:function(){return this.getDataLength()>1&&this.show(this.getPrev(),!0),this},get:function(n){return n in this._dom?this._dom[n]:null},getData:function(n){return n in this._data?this._data[n]:this._data[this._active]},getDataLength:function(){return this._data.length},getIndex:function(){return"number"==typeof this._active&&this._active},getStageHeight:function(){return this._stageHeight},getStageWidth:function(){return this._stageWidth},getOptions:function(n){return void 0===n?this._options:this._options[n]},setOptions:function(n,i){return"object"==typeof n?t.extend(this._options,n):this._options[n]=i,this},play:function(n){return this._playing=!0,this._playtime=n||this._playtime,this._playCheck(),this.trigger(i.PLAY),this},pause:function(){return this._playing=!1,this.trigger(i.PAUSE),this},playToggle:function(n){return this._playing?this.pause():this.play(n)},isPlaying:function(){return this._playing},isFullscreen:function(){return this._fullscreen.active},_playCheck:function(){var n=this,t=0,o=u.timestamp(),r="play"+this._id,e;this._playing&&(this.clearTimer(r),e=function(){if((t=u.timestamp()-o)>=n._playtime&&n._playing)return n.clearTimer(r),void n.next();n._playing&&(n.trigger({type:i.PROGRESS,percent:f.ceil(t/n._playtime*100),seconds:f.floor(t/1e3),milliseconds:t}),n.addTimer(r,e,20))},n.addTimer(r,e,20))},setPlaytime:function(n){return this._playtime=n,this},setIndex:function(n){return this._active=n,this},setCounter:function(n){if("number"==typeof n?n++:void 0===n&&(n=this.getIndex()+1),this.get("current").innerHTML=n,o){var t=this.$("counter"),i=t.css("opacity");1===parseInt(i,10)?u.removeAlpha(t[0]):this.$("counter").css("opacity",i)}return this},setInfo:function(n){var r=this,i=this.getData(n);return t.each(["title","description"],function(n,t){var u=r.$("info-"+t);i[t]?u[i[t].length?"show":"hide"]().html(i[t]):u.empty().hide()}),this},hasInfo:function(n){for(var i="title description".split(" "),t=0;i[t];t++)if(this.getData(n)[i[t]])return!0;return!1},jQuery:function(n){var r=this,u=[],i;return t.each(n.split(","),function(n,i){i=t.trim(i);r.get(i)&&u.push(i)}),i=t(r.get(u.shift())),t.each(u,function(n,t){i=i.add(r.get(t))}),i},$:function(){return this.jQuery.apply(this,u.array(arguments))}},t.each(st,function(n,t){var r=/_/.test(t)?t.replace(/_/g,""):t;i[t.toUpperCase()]="galleria."+r}),t.extend(i,{IE9:9===o,IE8:8===o,IE7:7===o,IE6:6===o,IE:o,WEBKIT:/webkit/.test(y),CHROME:/chrome/.test(y),SAFARI:/safari/.test(y)&&!/chrome/.test(y),QUIRK:o&&e.compatMode&&"BackCompat"===e.compatMode,MAC:/mac/.test(navigator.platform.toLowerCase()),OPERA:!!n.opera,IPHONE:/iphone/.test(y),IPAD:/ipad/.test(y),ANDROID:/android/.test(y),TOUCH:"ontouchstart"in e&&bt}),i.addTheme=function(r){r.name||i.raise("No theme name specified");(!r.version||parseInt(10*i.version)>parseInt(10*r.version))&&i.raise("This version of Galleria requires "+r.name+" theme version "+parseInt(10*i.version)/10+" or later",!0);r.defaults="object"!=typeof r.defaults?{}:ht(r.defaults);var e,o,f=!1;return"string"==typeof r.css?(t("link").each(function(n,t){if(e=new RegExp(r.css),e.test(t.href))return f=!0,ut(r),!1}),f||t(function(){var h=0,s=function(){t("script").each(function(t,i){e=new RegExp("galleria\\-"+r.name.toLowerCase()+"[\\.\\-]");o=new RegExp("galleria\\.io\\/theme\\/"+r.name.toLowerCase()+"\\/(\\d*\\.*)?(\\d*\\.*)?(\\d*\\/)?js");(e.test(i.src)||o.test(i.src))&&(f=i.src.replace(/[^\/]*$/,"")+r.css,n.setTimeout(function(){u.loadCSS(f,"galleria-theme-"+r.name,function(){ut(r)})},1))});f||(h++>5?i.raise("No theme CSS loaded"):n.setTimeout(s,500))};s()})):ut(r),r},i.loadTheme=function(r){if(!t("script").filter(function(){return t(this).attr("src")==r}).length){var e,f=!1;return t(n).on("load",function(){f||(e=n.setTimeout(function(){f||i.raise("Galleria had problems loading theme at "+r+". Please check theme path or load manually.",!0)},2e4))}),u.loadScript(r,function(){f=!0;n.clearTimeout(e)}),i}},i.get=function(n){return w[n]?w[n]:"number"!=typeof n?w:void i.raise("Gallery index "+n+" not found")},i.configure=function(n,r){var u={};return"string"==typeof n&&r?(u[n]=r,n=u):t.extend(u,n),i.configure.options=u,t.each(i.get(),function(n,t){t.setOptions(u)}),i},i.configure.options={},i.on=function(n,r){if(n){r=r||c;var f=n+r.toString().replace(/\s/g,"")+u.timestamp();return t.each(i.get(),function(t,i){i._binds.push(f);i.bind(n,r)}),i.on.binds.push({type:n,callback:r,hash:f}),i}},i.on.binds=[],i.run=function(n,r){return t.isFunction(r)&&(r={extend:r}),t(n||"#galleria").galleria(r),i},i.addTransition=function(n,t){return p.effects[n]=t,i},i.utils=u,i.log=function(){var i=u.array(arguments);if(!("console"in n&&"log"in n.console))return n.alert(i.join("<br>"));try{return n.console.log.apply(n.console,i)}catch(r){t.each(i,function(){n.console.log(this)})}},i.ready=function(n){return"function"!=typeof n?i:(t.each(rt,function(t,i){n.call(i,i._options)}),i.ready.callbacks.push(n),i)},i.ready.callbacks=[],i.raise=function(n,i){var r=i?"Fatal error":"Error",u={color:"#fff",position:"absolute",top:0,left:0,zIndex:1e5},f=function(n){var f='<div style="padding:4px;margin:0 0 2px;background:#'+(i?"811":"222")+';">'+(i?"<strong>"+r+": <\/strong>":"")+n+"<\/div>";t.each(w,function(){var n=this.$("errors"),t=this.$("target");n.length||(t.css("position","relative"),n=this.addElement("errors").appendChild("target","errors").$("errors").css(u));n.append(f)});w.length||t("<div>").css(t.extend(u,{position:"fixed"})).append(f).appendTo(s().body)};if(et){if(f(n),i)throw new Error(r+": "+n);}else if(i){if(at)return;at=!0;i=!1;f("Gallery could not load.")}},i.version=1.61,i.getLoadedThemes=function(){return t.map(b,function(n){return n.name})},i.requires=function(n,t){return t=t||"You need to upgrade Galleria to version "+n+" to use one or more components.",i.version<n&&i.raise(t,!0),i},i.Picture=function(n){this.id=n||null;this.image=null;this.container=u.create("galleria-image");t(this.container).css({overflow:"hidden",position:"relative"});this.original={width:0,height:0};this.ready=!1;this.isIframe=!1},i.Picture.prototype={cache:{},show:function(){u.show(this.image)},hide:function(){u.moveOut(this.image)},clear:function(){this.image=null},isCached:function(n){return!!this.cache[n]},preload:function(n){var i=t(new Image).on("load",function(n,t){return function(){t[n]=n}}(n,this.cache));n.srcset&&i.attr("srcset",n.srcset);n.sizes&&i.attr("sizes",n.sizes);i.attr("src",n)},load:function(r,f,e){var s,h;if("function"==typeof f&&(e=f,f=null),this.isIframe)return s="if"+(new Date).getTime(),h=this.image=t("<iframe>",{src:r,frameborder:0,id:s,allowfullscreen:!0,css:{visibility:"hidden"}})[0],f&&t(h).css(f),t(this.container).find("iframe,img").remove(),this.container.appendChild(this.image),t("#"+s).on("load",function(i,r){return function(){n.setTimeout(function(){t(i.image).css("visibility","visible");"function"==typeof r&&r.call(i,i)},10)}}(this,e)),this.container;this.image=new Image;i.IE8&&t(this.image).css("filter","inherit");i.IE||i.CHROME||i.SAFARI||t(this.image).css("image-rendering","optimizequality");var c=!1,l=!1,a=t(this.container),o=t(this.image),y=function(){c?tt?t(this).attr("src",tt):i.raise("Image not found: "+r):(c=!0,n.setTimeout(function(n,t){return function(){n.attr("src",t+(t.indexOf("?")>-1?"&":"?")+u.timestamp())}}(t(this),r),50))},v=function(r,e,o){return function(){var s=function(){t(this).off("load");r.original=f||{height:this.height,width:this.width};i.HAS3D&&(this.style.MozTransform=this.style.webkitTransform="translate3d(0,0,0)");a.append(this);r.cache[o]=o;"function"==typeof e&&n.setTimeout(function(){e.call(r,r)},1)};this.width&&this.height?s.call(this):function(n){u.wait({until:function(){return n.width&&n.height},success:function(){s.call(n)},error:function(){l?i.raise("Could not extract width/height from image: "+n.src+". Traced measures: width:"+n.width+"px, height: "+n.height+"px."):(t(new Image).on("load",v).attr("src",n.src),l=!0)},timeout:100})}(this)}}(this,e,r);return a.find("iframe,img").remove(),o.css("display","block"),u.hide(this.image),t.each("minWidth minHeight maxWidth maxHeight".split(" "),function(n,t){o.css(t,/min/.test(t)?"0":"none")}),o.on("load",v).on("error",y),r.srcset&&o.attr("srcset",r.srcset),r.sizes&&o.attr("sizes",r.sizes),o.attr("src",r),this.container},scale:function(n){var e=this,w,b,o,s,y,h,l,p,a;if(n=t.extend({width:0,height:0,min:r,max:r,margin:0,complete:c,position:"center",crop:!1,canvas:!1,iframelimit:r},n),this.isIframe){o=n.width;s=n.height;n.iframelimit&&(y=f.min(n.iframelimit/o,n.iframelimit/s),y<1?(w=o*y,b=s*y,t(this.image).css({top:s/2-b/2,left:o/2-w/2,position:"absolute"})):t(this.image).css({top:0,left:0}));t(this.image).width(w||o).height(b||s).removeAttr("width").removeAttr("height");t(this.container).width(o).height(s);n.complete.call(e,e);try{this.image.contentWindow&&t(this.image.contentWindow).trigger("resize")}catch(n){}return this.container}return this.image?(a=t(e.container),u.wait({until:function(){return h=n.width||a.width()||u.parseValue(a.css("width")),l=n.height||a.height()||u.parseValue(a.css("height")),h&&l},success:function(){var o=(h-2*n.margin)/e.original.width,s=(l-2*n.margin)/e.original.height,c=f.min(o,s),a=f.max(o,s),d={"true":a,width:o,height:s,"false":c,landscape:e.original.width>e.original.height?a:c,portrait:e.original.width<e.original.height?a:c},r=d[n.crop.toString()],y="";n.max&&(r=f.min(n.max,r));n.min&&(r=f.max(n.min,r));t.each(["width","height"],function(n,i){t(e.image)[i](e[i]=e.image[i]=f.round(e.original[i]*r))});t(e.container).width(h).height(l);n.canvas&&v&&(v.elem.width=e.width,v.elem.height=e.height,y=e.image.src+":"+e.width+"x"+e.height,e.image.src=v.cache[y]||function(n){v.context.drawImage(e.image,0,0,e.original.width*r,e.original.height*r);try{return p=v.elem.toDataURL(),v.length+=p.length,v.cache[n]=p,p}catch(n){return e.image.src}}(y));var i={},w={},b=function(n,i,r){var o=0,s,h;return/\%/.test(n)?(s=parseInt(n,10)/100,h=e.image[i]||t(e.image)[i](),o=f.ceil(-1*h*s+r*s)):o=u.parseValue(n),o},k={top:{top:0},left:{left:0},right:{left:"100%"},bottom:{top:"100%"}};t.each(n.position.toLowerCase().split(" "),function(n,t){"center"===t&&(t="50%");i[n?"top":"left"]=t});t.each(i,function(n,i){k.hasOwnProperty(i)&&t.extend(w,k[i])});i=i.top?t.extend(i,w):w;i=t.extend({top:"50%",left:"50%"},i);t(e.image).css({position:"absolute",top:b(i.top,"height",l),left:b(i.left,"width",h)});e.show();e.ready=!0;n.complete.call(e,e)},error:function(){i.raise("Could not scale image: "+e.image.src)},timeout:1e3}),this):this.container}},t.extend(t.easing,{galleria:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},galleriaIn:function(n,t,i,r,u){return r*(t/=u)*t+i},galleriaOut:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i}}),i.Finger=function(){var u=(f.abs,i.HAS3D=function(){var u,f,i=e.createElement("p"),r=["webkit","O","ms","Moz",""],n=0,o="transform";for(s().html.insertBefore(i,null);r[n];n++)f=r[n]?r[n]+"Transform":o,void 0!==i.style[f]&&(i.style[f]="translate3d(1px,1px,1px)",u=t(i).css(r[n]?"-"+r[n].toLowerCase()+"-"+o:o));return s().html.removeChild(i),void 0!==u&&u.length>0&&"none"!==u}()),o=function(){var t="RequestAnimationFrame";return n.requestAnimationFrame||n["webkit"+t]||n["moz"+t]||n["o"+t]||n["ms"+t]||function(t){n.setTimeout(t,1e3/60)}}(),r=function(i,r){if(this.config={start:0,duration:500,onchange:function(){},oncomplete:function(){},easing:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i}},this.easeout=function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},i.children.length){var f=this;t.extend(this.config,r);this.elem=i;this.child=i.children[0];this.to=this.pos=0;this.touching=!1;this.start={};this.index=this.config.start;this.anim=0;this.easing=this.config.easing;u||(this.child.style.position="absolute",this.elem.style.position="relative");t.each(["ontouchstart","ontouchmove","ontouchend","setup"],function(n,t){f[t]=function(n){return function(){n.apply(f,arguments)}}(f[t])});this.setX=function(){var n=f.child.style;if(!u)return void(n.left=f.pos+"px");n.MozTransform=n.webkitTransform=n.transform="translate3d("+f.pos+"px,0,0)"};t(i).on("touchstart",this.ontouchstart);t(n).on("resize",this.setup);t(n).on("orientationchange",this.setup);this.setup(),function n(){o(n);f.loop.call(f)}()}};return r.prototype={constructor:r,setup:function(){this.width=t(this.elem).width();this.length=f.ceil(t(this.child).width()/this.width);0!==this.index&&(this.index=f.max(0,f.min(this.index,this.length-1)),this.pos=this.to=-this.width*this.index)},setPosition:function(n){this.pos=n;this.to=n},ontouchstart:function(n){var t=n.originalEvent.touches;this.start={pageX:t[0].pageX,pageY:t[0].pageY,time:+new Date};this.isScrolling=null;this.touching=!0;this.deltaX=0;k.on("touchmove",this.ontouchmove);k.on("touchend",this.ontouchend)},ontouchmove:function(n){var t=n.originalEvent.touches;t&&t.length>1||n.scale&&1!==n.scale||(this.deltaX=t[0].pageX-this.start.pageX,null===this.isScrolling&&(this.isScrolling=!!(this.isScrolling||f.abs(this.deltaX)<f.abs(t[0].pageY-this.start.pageY))),this.isScrolling||(n.preventDefault(),this.deltaX/=!this.index&&this.deltaX>0||this.index==this.length-1&&this.deltaX<0?f.abs(this.deltaX)/this.width+1.8:1,this.to=this.deltaX-this.index*this.width),n.stopPropagation())},ontouchend:function(){this.touching=!1;var n=+new Date-this.start.time<250&&f.abs(this.deltaX)>40||f.abs(this.deltaX)>this.width/2,t=!this.index&&this.deltaX>0||this.index==this.length-1&&this.deltaX<0;this.isScrolling||this.show(this.index+(n&&!t?this.deltaX<0?1:-1:0));k.off("touchmove",this.ontouchmove);k.off("touchend",this.ontouchend)},show:function(n){n!=this.index?this.config.onchange.call(this,n):this.to=-n*this.width},moveTo:function(n){n!=this.index&&(this.pos=this.to=-n*this.width,this.index=n)},loop:function(){var n=this.to-this.pos,r=1,t,i;if(this.width&&n&&(r=f.max(.5,f.min(1.5,f.abs(n/this.width)))),this.touching||f.abs(n)<=1)this.pos=this.to,n=0,this.anim&&!this.touching&&this.config.oncomplete(this.index),this.anim=0,this.easing=this.config.easing;else{if(this.anim||(this.anim={start:this.pos,time:+new Date,distance:n,factor:r,destination:this.to}),t=+new Date-this.anim.time,i=this.config.duration*this.anim.factor,t>i||this.anim.destination!=this.to)return this.anim=0,void(this.easing=this.easeout);this.pos=this.easing(null,t,this.anim.start,this.anim.distance,i)}this.setX()}},r}(),t.fn.galleria=function(n){var r=this.selector;return t(this).length?this.each(function(){t.data(this,"galleria")&&(t.data(this,"galleria").destroy(),t(this).find("*").hide());t.data(this,"galleria",(new i).init(this,n))}):(t(function(){t(r).length?t(r).galleria(n):i.utils.wait({until:function(){return t(r).length},success:function(){t(r).galleria(n)},error:function(){i.raise('Init failed: Galleria could not find the element "'+r+'".')},timeout:5e3})}),this)},i}); | |
/*! | |
* FullCalendar v3.8.1 | |
* Docs & License: https://fullcalendar.io/ | |
* (c) 2017 Adam Shaw | |
*/ | |
(function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t(require("moment"),require("jquery")):typeof define=="function"&&define.amd?define(["moment","jquery"],t):typeof exports=="object"?exports.FullCalendar=t(require("moment"),require("jquery")):n.FullCalendar=t(n.moment,n.jQuery)})(typeof self!="undefined"?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=236)}([function(t){t.exports=n},,function(n,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};t.__extends=function(n,t){function r(){this.constructor=n}i(n,t);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}},function(n){n.exports=t},function(n,t,i){function nt(n,t){t.left&&n.css({"border-left-width":1,"margin-left":t.left-1});t.right&&n.css({"border-right-width":1,"margin-right":t.right-1})}function tt(n){n.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function it(){r("body").addClass("fc-not-allowed")}function rt(){r("body").removeClass("fc-not-allowed")}function ut(n,t,i){var u=Math.floor(t/n.length),e=Math.floor(t-u*(n.length-1)),f=[],o=[],s=[],h=0;c(n);n.each(function(t,i){var l=t===n.length-1?e:u,c=r(i).outerHeight(!0);c<l?(f.push(i),o.push(c),s.push(r(i).height())):h+=c});i&&(t-=h,u=Math.floor(t/f.length),e=Math.floor(t-u*(f.length-1)));r(f).each(function(n,t){var i=n===f.length-1?e:u,h=o[n],c=s[n],l=i-(h-c);h<i&&r(t).height(l)})}function c(n){n.height("")}function ft(n){var t=0;return n.find("> *").each(function(n,i){var u=r(i).outerWidth();u>t&&(t=u)}),t++,n.width(t),t}function et(n,t){var i=n.add(t),r;return i.css({position:"relative",left:-1}),r=n.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),r}function ot(n){var i=n.css("position"),t=n.parents().filter(function(){var n=r(this);return/(auto|scroll)/.test(n.css("overflow")+n.css("overflow-y")+n.css("overflow-x"))}).eq(0);return i==="fixed"||!t.length?r(n[0].ownerDocument||document):t}function st(n,t){var i=n.offset(),r=i.left-(t?t.left:0),u=i.top-(t?t.top:0);return{left:r,right:r+n.outerWidth(),top:u,bottom:u+n.outerHeight()}}function ht(n,t){var i=n.offset(),r=l(n),u=i.left+f(n,"border-left-width")+r.left-(t?t.left:0),e=i.top+f(n,"border-top-width")+r.top-(t?t.top:0);return{left:u,right:u+n[0].clientWidth,top:e,bottom:e+n[0].clientHeight}}function ct(n,t){var i=n.offset(),r=i.left+f(n,"border-left-width")+f(n,"padding-left")-(t?t.left:0),u=i.top+f(n,"border-top-width")+f(n,"padding-top")-(t?t.top:0);return{left:r,right:r+n.width(),top:u,bottom:u+n.height()}}function l(n){var t=n[0].offsetWidth-n[0].clientWidth,r=n[0].offsetHeight-n[0].clientHeight,i;return t=a(t),r=a(r),i={left:0,right:0,top:0,bottom:r},lt()&&n.css("direction")==="rtl"?i.left=t:i.right=t,i}function a(n){return n=Math.max(0,n),Math.round(n)}function lt(){return s===null&&(s=at()),s}function at(){var n=r("<div><div/><\/div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=n.children(),i=t.offset().left>n.offset().left;return n.remove(),i}function f(n,t){return parseFloat(n.css(t))||0}function vt(n){return n.which===1&&!n.ctrlKey}function yt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageX:n.pageX}function pt(n){var t=n.originalEvent.touches;return t&&t.length?t[0].pageY:n.pageY}function wt(n){return/^touch/.test(n.type)}function bt(n){n.addClass("fc-unselectable").on("selectstart",h)}function kt(n){n.removeClass("fc-unselectable").off("selectstart",h)}function h(n){n.preventDefault()}function dt(n,t){var i={left:Math.max(n.left,t.left),right:Math.min(n.right,t.right),top:Math.max(n.top,t.top),bottom:Math.min(n.bottom,t.bottom)};return i.left<i.right&&i.top<i.bottom?i:!1}function gt(n,t){return{left:Math.min(Math.max(n.left,t.left),t.right),top:Math.min(Math.max(n.top,t.top),t.bottom)}}function ni(n){return{left:(n.left+n.right)/2,top:(n.top+n.bottom)/2}}function ti(n,t){return{left:n.left-t.left,top:n.top-t.top}}function ii(n){var f=[],i=[],u,t;for(typeof n=="string"?i=n.split(/\s*,\s*/):typeof n=="function"?i=[n]:r.isArray(n)&&(i=n),u=0;u<i.length;u++)t=i[u],typeof t=="string"?f.push(t.charAt(0)==="-"?{field:t.substring(1),order:-1}:{field:t,order:1}):typeof t=="function"&&f.push({func:t});return f}function ri(n,t,i,r,u){for(var e,f=0;f<i.length;f++)if(e=v(n,t,i[f],r,u),e)return e;return 0}function v(n,t,i,r,u){if(i.func)return i.func(n,t);var f=n[i.field],e=t[i.field];return f==null&&r&&(f=r[i.field]),e==null&&u&&(e=u[i.field]),y(f,e)*(i.order||1)}function y(n,t){return!n&&!t?0:t==null?-1:n==null?1:r.type(n)==="string"||r.type(t)==="string"?String(n).localeCompare(String(t)):n-t}function ui(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:n.time()-t.time()})}function fi(n,t){return u.duration({days:n.clone().stripTime().diff(t.clone().stripTime(),"days")})}function ei(n,t,i){return u.duration(Math.round(n.diff(t,i,!0)),i)}function p(n,i){for(var u,f,r=0;r<t.unitsDesc.length;r++)if(u=t.unitsDesc[r],f=si(u,n,i),f>=1&&e(f))break;return u}function oi(n,t){var i=p(n);return i==="week"&&typeof t=="object"&&t.days&&(i="day"),i}function si(n,t,i){return i!=null?i.diff(t,n,!0):u.isDuration(t)?t.as(n):t.end.diff(t.start,n,!0)}function hi(n,t,i){var r;return o(i)?(t-n)/i:(r=i.asMonths(),Math.abs(r)>=1&&e(r))?t.diff(n,"months",!0)/r:t.diff(n,"days",!0)/i.asDays()}function ci(n,t){var i,r;return o(n)||o(t)?n/t:(i=n.asMonths(),r=t.asMonths(),Math.abs(i)>=1&&e(i)&&Math.abs(r)>=1&&e(r))?i/r:n.asDays()/t.asDays()}function li(n,t){var i;return o(n)?u.duration(n*t):(i=n.asMonths(),Math.abs(i)>=1&&e(i))?u.duration({months:i*t}):u.duration({days:n.asDays()*t})}function o(n){return Boolean(n.hours()||n.minutes()||n.seconds()||n.milliseconds())}function ai(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function vi(n){return typeof n=="string"&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(n)}function w(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.log?n.log.apply(n,i):void 0}function yi(){for(var n,i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return n=window.console,n&&n.warn?n.warn.apply(n,i):w.apply(null,i)}function k(n,t){var u={},i,r,e,o,f,s;if(t)for(i=0;i<t.length;i++){for(r=t[i],e=[],o=n.length-1;o>=0;o--)if(f=n[o][r],typeof f=="object")e.unshift(f);else if(f!==undefined){u[r]=f;break}e.length&&(u[r]=k(e))}for(i=n.length-1;i>=0;i--){s=n[i];for(r in s)r in u||(u[r]=s[r])}return u}function pi(n,t){for(var i in n)d(n,i)&&(t[i]=n[i])}function d(n,t){return b.call(n,t)}function wi(n,t,i){if(r.isFunction(n)&&(n=[n]),n){for(var u=void 0,f=void 0,u=0;u<n.length;u++)f=n[u].apply(t,i)||f;return f}}function bi(n,t){for(var r=0,i=0;i<n.length;)t(n[i])?(n.splice(i,1),r++):i++;return r}function ki(n,t){for(var r=0,i=0;i<n.length;)n[i]===t?(n.splice(i,1),r++):i++;return r}function di(n,t){var r=n.length,i;if(r==null||r!==t.length)return!1;for(i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function gi(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(n=0;n<t.length;n++)if(t[n]!==undefined)return t[n]}function g(n){return(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function nr(n){return n.replace(/&.*?;/g,"")}function tr(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+":"+i)}),t.join(";")}function ir(n){var t=[];return r.each(n,function(n,i){i!=null&&t.push(n+'="'+g(i)+'"')}),t.join(" ")}function rr(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ur(n,t){return n-t}function e(n){return n%1==0}function fr(n,t){var i=n[t];return function(){return i.apply(n,arguments)}}function er(n,t,i){i===void 0&&(i=!1);var r,u,f,o,e,s=function(){var h=+new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u),f=u=null))};return function(){f=this;u=arguments;o=+new Date;var h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u),f=u=null),e}}var u,r,s,b;Object.defineProperty(t,"__esModule",{value:!0});u=i(0);r=i(3);t.compensateScroll=nt;t.uncompensateScroll=tt;t.disableCursor=it;t.enableCursor=rt;t.distributeHeight=ut;t.undistributeHeight=c;t.matchCellWidths=ft;t.subtractInnerElHeight=et;t.getScrollParent=ot;t.getOuterRect=st;t.getClientRect=ht;t.getContentRect=ct;t.getScrollbarWidths=l;s=null;t.isPrimaryMouseButton=vt;t.getEvX=yt;t.getEvY=pt;t.getEvIsTouch=wt;t.preventSelection=bt;t.allowSelection=kt;t.preventDefault=h;t.intersectRects=dt;t.constrainPoint=gt;t.getRectCenter=ni;t.diffPoints=ti;t.parseFieldSpecs=ii;t.compareByFieldSpecs=ri;t.compareByFieldSpec=v;t.flexibleCompare=y;t.dayIDs=["sun","mon","tue","wed","thu","fri","sat"];t.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"];t.diffDayTime=ui;t.diffDay=fi;t.diffByUnit=ei;t.computeGreatestUnit=p;t.computeDurationGreatestUnit=oi;t.divideRangeByDuration=hi;t.divideDurationByDuration=ci;t.multiplyDuration=li;t.durationHasTime=o;t.isNativeDate=ai;t.isTimeString=vi;t.log=w;t.warn=yi;b={}.hasOwnProperty;t.mergeProps=k;t.copyOwnProps=pi;t.hasOwnProp=d;t.applyAll=wi;t.removeMatching=bi;t.removeExact=ki;t.isArraysEqual=di;t.firstDefined=gi;t.htmlEscape=g;t.stripHtmlEntities=nr;t.cssToStr=tr;t.attrsToStr=ir;t.capitaliseFirstLetter=rr;t.compareNumbers=ur;t.isInt=e;t.proxy=fr;t.debounce=er},function(n,t,i){function e(n,t){return n.startMs-t.startMs}Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(10),f=function(){function n(n,t){this.isStart=!0;this.isEnd=!0;r.isMoment(n)&&(n=n.clone().stripZone());r.isMoment(t)&&(t=t.clone().stripZone());n&&(this.startMs=n.valueOf());t&&(this.endMs=t.valueOf())}return n.invertRanges=function(t,i){var o=[],r=i.startMs,f,u;for(t.sort(e),f=0;f<t.length;f++)u=t[f],u.startMs>r&&o.push(new n(r,u.startMs)),u.endMs>r&&(r=u.endMs);return r<i.endMs&&o.push(new n(r,i.endMs)),o},n.prototype.intersect=function(t){var i=this.startMs,r=this.endMs,u=null;return t.startMs!=null&&(i=i==null?t.startMs:Math.max(i,t.startMs)),t.endMs!=null&&(r=r==null?t.endMs:Math.min(r,t.endMs)),(i==null||r==null||i<r)&&(u=new n(i,r),u.isStart=this.isStart&&i===this.startMs,u.isEnd=this.isEnd&&r===this.endMs),u},n.prototype.intersectsWith=function(n){return(this.endMs==null||n.startMs==null||this.endMs>n.startMs)&&(this.startMs==null||n.endMs==null||this.startMs<n.endMs)},n.prototype.containsRange=function(n){return(this.startMs==null||n.startMs!=null&&n.startMs>=this.startMs)&&(this.endMs==null||n.endMs!=null&&n.endMs<=this.endMs)},n.prototype.containsDate=function(n){var t=n.valueOf();return(this.startMs==null||t>=this.startMs)&&(this.endMs==null||t<this.endMs)},n.prototype.constrainDate=function(n){var t=n.valueOf();return this.startMs!=null&&t<this.startMs&&(t=this.startMs),this.endMs!=null&&t>=this.endMs&&(t=this.endMs-1),t},n.prototype.equals=function(n){return this.startMs===n.startMs&&this.endMs===n.endMs},n.prototype.clone=function(){var t=new n(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},n.prototype.getStart=function(){return this.startMs!=null?u.default.utc(this.startMs).stripZone():null},n.prototype.getEnd=function(){return this.endMs!=null?u.default.utc(this.endMs).stripZone():null},n.prototype.as=function(n){return r.utc(this.endMs).diff(r.utc(this.startMs),n,!0)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(208),o=i(32),s=i(49),u=function(n){function t(i){var r=n.call(this)||this;return r.calendar=i,r.className=[],r.uid=String(t.uuid++),r}return f.__extends(t,n),t.parse=function(n,t){var i=new this(t);return typeof n=="object"&&i.applyProps(n)?i:!1},t.normalizeId=function(n){return n?String(n):null},t.prototype.fetch=function(){},t.prototype.removeEventDefsById=function(){},t.prototype.removeAllEventDefs=function(){},t.prototype.getPrimitive=function(){},t.prototype.parseEventDefs=function(n){for(var i,r=[],t=0;t<n.length;t++)i=this.parseEventDef(n[t]),i&&r.push(i);return r},t.prototype.parseEventDef=function(n){var t=this.calendar.opt("eventDataTransform"),i=this.eventDataTransform;return t&&(n=t(n,this.calendar)),i&&(n=i(n,this.calendar)),s.default.parse(n,this)},t.prototype.applyManualStandardProps=function(n){return n.id!=null&&(this.id=t.normalizeId(n.id)),e.isArray(n.className)?this.className=n.className:typeof n.className=="string"&&(this.className=n.className.split(/\s+/)),!0},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}(o.default);t.default=u;r.default.mixInto(u);u.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(14),e=0,o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.listenTo=function(n,t,i){if(typeof t=="object")for(var r in t)t.hasOwnProperty(r)&&this.listenTo(n,r,t[r]);else if(typeof t=="string")n.on(t+"."+this.getListenerNamespace(),u.proxy(i,this))},t.prototype.stopListeningTo=function(n,t){n.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return this.listenerId==null&&(this.listenerId=e++),"_listener"+this.listenerId},t}(f.default);t.default=o},,,function(n,t,i){function v(n,t){return f.format.call(n,t)}function s(n,t,i){t===void 0&&(t=!1);i===void 0&&(i=!1);var u=n[0],s=n.length===1&&typeof u=="string",e,o,v,f;return r.isMoment(u)||c.isNativeDate(u)||u===undefined?f=r.apply(null,n):(e=!1,o=!1,s?l.test(u)?(u+="-01",n=[u],e=!0,o=!0):(v=a.exec(u))&&(e=!v[5],o=!0):h.isArray(u)&&(o=!0),f=t||e?r.utc.apply(r,n):r.apply(null,n),e?(f._ambigTime=!0,f._ambigZone=!0):i&&(o?f._ambigZone=!0:s&&f.utcOffset(u))),f._fullCalendar=!0,f}var f,e,o;Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(3),c=i(4),l=/^\s*\d{4}-\d\d$/,a=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,u=r.fn;t.newMomentProto=u;f=h.extend({},u);t.oldMomentProto=f;e=r.momentProperties;e.push("_fullCalendar");e.push("_ambigTime");e.push("_ambigZone");t.oldMomentFormat=v;o=function(){return s(arguments)};t.default=o;o.utc=function(){var n=s(arguments,!0);return n.hasTime()&&n.utc(),n};o.parseZone=function(){return s(arguments,!0,!0)};u.week=u.weeks=function(n){var t=this._locale._fullCalendar_weekCalc;return n==null&&typeof t=="function"?t(this):t==="ISO"?f.isoWeek.apply(this,arguments):f.week.apply(this,arguments)};u.time=function(n){if(!this._fullCalendar)return f.time.apply(this,arguments);if(n==null)return r.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1;r.isDuration(n)||r.isMoment(n)||(n=r.duration(n));var t=0;return r.isDuration(n)&&(t=Math.floor(n.asDays())*24),this.hours(t+n.hours()).minutes(n.minutes()).seconds(n.seconds()).milliseconds(n.milliseconds())};u.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this};u.hasTime=function(){return!this._ambigTime};u.stripZone=function(){var n;return this._ambigZone||(n=this._ambigTime,this.utc(!0),this._ambigTime=n||!1,this._ambigZone=!0),this};u.hasZone=function(){return!this._ambigZone};u.local=function(n){return f.local.call(this,this._ambigZone||n),this._ambigTime=!1,this._ambigZone=!1,this};u.utc=function(n){return f.utc.call(this,n),this._ambigTime=!1,this._ambigZone=!1,this};u.utcOffset=function(n){return n!=null&&(this._ambigTime=!1,this._ambigZone=!1),f.utcOffset.apply(this,arguments)}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(14),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.on=function(n,t){r(this).on(n,this._prepareIntercept(t));return this},t.prototype.one=function(n,t){r(this).one(n,this._prepareIntercept(t));return this},t.prototype._prepareIntercept=function(n){var t=function(t,i){return n.apply(i.context||this,i.args||[])};return n.guid||(n.guid=r.guid++),t.guid=n.guid,t},t.prototype.off=function(n,t){return r(this).off(n,t),this},t.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return r(this).triggerHandler(n,{args:i}),this},t.prototype.triggerWith=function(n,t,i){return r(this).triggerHandler(n,{context:t,args:i}),this},t.prototype.hasHandlers=function(n){var t=r._data(this,"events");return t&&t[n]&&t[n].length>0},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.isAllDay=!1;this.unzonedRange=n;this.isAllDay=t}return n.prototype.toLegacy=function(n){return{start:n.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:n.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(33),o=i(209),r=i(18),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return f.__extends(t,n),t.prototype.buildInstances=function(){return[this.buildInstance()]},t.prototype.buildInstance=function(){return new o.default(this,this.dateProfile)},t.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},t.prototype.rezone=function(){var n=this.source.calendar,t=this.dateProfile;this.dateProfile=new r.default(n.moment(t.start),t.end?n.moment(t.end):null,n)},t.prototype.applyManualStandardProps=function(t){var u=n.prototype.applyManualStandardProps.call(this,t),i=r.default.parse(t,this.source);return i?(this.dateProfile=i,t.date!=null&&(this.miscProps.date=t.date),u):!1},t}(e.default);t.default=u;u.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(){}return n.mixInto=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]||(n.prototype[i]=t.prototype[i])})},n.mixOver=function(n){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(i){n.prototype[i]=t.prototype[i]})},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),o=i(17),s=i(11),h=i(7);o.touchMouseIgnoreWait=500;var r=null,f=0,e=function(){function n(){this.isTouching=!1;this.mouseIgnoreDepth=0}return n.get=function(){return r||(r=new n,r.bind()),r},n.needed=function(){n.get();f++},n.unneeded=function(){f--;f||(r.unbind(),r=null)},n.prototype.bind=function(){var n=this;this.listenTo(u(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu});window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){n.handleTouchMove(u.Event(t))},{passive:!1});window.addEventListener("scroll",this.handleScrollProxy=function(t){n.handleScroll(u.Event(t))},!0)},n.prototype.unbind=function(){this.stopListeningTo(u(document));window.removeEventListener("touchmove",this.handleTouchMoveProxy);window.removeEventListener("scroll",this.handleScrollProxy,!0)},n.prototype.handleTouchStart=function(n){this.stopTouch(n,!0);this.isTouching=!0;this.trigger("touchstart",n)},n.prototype.handleTouchMove=function(n){this.isTouching&&this.trigger("touchmove",n)},n.prototype.handleTouchCancel=function(n){this.isTouching&&(this.trigger("touchcancel",n),this.stopTouch(n))},n.prototype.handleTouchEnd=function(n){this.stopTouch(n)},n.prototype.handleMouseDown=function(n){this.shouldIgnoreMouse()||this.trigger("mousedown",n)},n.prototype.handleMouseMove=function(n){this.shouldIgnoreMouse()||this.trigger("mousemove",n)},n.prototype.handleMouseUp=function(n){this.shouldIgnoreMouse()||this.trigger("mouseup",n)},n.prototype.handleClick=function(n){this.shouldIgnoreMouse()||this.trigger("click",n)},n.prototype.handleSelectStart=function(n){this.trigger("selectstart",n)},n.prototype.handleContextMenu=function(n){this.trigger("contextmenu",n)},n.prototype.handleScroll=function(n){this.trigger("scroll",n)},n.prototype.stopTouch=function(n,t){t===void 0&&(t=!1);this.isTouching&&(this.isTouching=!1,this.trigger("touchend",n),t||this.startTouchMouseIgnore())},n.prototype.startTouchMouseIgnore=function(){var t=this,n=o.touchMouseIgnoreWait;n&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},n))},n.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},n}();t.default=e;h.default.mixInto(e);s.default.mixInto(e)},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.view=n._getView();this.component=n}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.end=function(){},n}();t.default=i},function(n,t,i){var r,u,f,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot,st,ht,ct,lt,at,vt,yt,pt,wt,e,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai;Object.defineProperty(t,"__esModule",{value:!0});t.version="3.8.1";t.internalApiVersion=12;r=i(4);t.applyAll=r.applyAll;t.debounce=r.debounce;t.isInt=r.isInt;t.htmlEscape=r.htmlEscape;t.cssToStr=r.cssToStr;t.proxy=r.proxy;t.capitaliseFirstLetter=r.capitaliseFirstLetter;t.getOuterRect=r.getOuterRect;t.getClientRect=r.getClientRect;t.getContentRect=r.getContentRect;t.getScrollbarWidths=r.getScrollbarWidths;t.preventDefault=r.preventDefault;t.parseFieldSpecs=r.parseFieldSpecs;t.compareByFieldSpecs=r.compareByFieldSpecs;t.compareByFieldSpec=r.compareByFieldSpec;t.flexibleCompare=r.flexibleCompare;t.computeGreatestUnit=r.computeGreatestUnit;t.divideRangeByDuration=r.divideRangeByDuration;t.divideDurationByDuration=r.divideDurationByDuration;t.multiplyDuration=r.multiplyDuration;t.durationHasTime=r.durationHasTime;t.log=r.log;t.warn=r.warn;t.removeExact=r.removeExact;t.intersectRects=r.intersectRects;u=i(47);t.formatDate=u.formatDate;t.formatRange=u.formatRange;t.queryMostGranularFormatUnit=u.queryMostGranularFormatUnit;f=i(30);t.datepickerLocale=f.datepickerLocale;t.locale=f.locale;o=i(10);t.moment=o.default;s=i(11);t.EmitterMixin=s.default;h=i(7);t.ListenerMixin=h.default;c=i(48);t.Model=c.default;l=i(207);t.Constraints=l.default;a=i(5);t.UnzonedRange=a.default;v=i(12);t.ComponentFootprint=v.default;y=i(212);t.BusinessHourGenerator=y.default;p=i(33);t.EventDef=p.default;w=i(36);t.EventDefMutation=w.default;b=i(37);t.EventSourceParser=b.default;k=i(6);t.EventSource=k.default;d=i(51);t.defineThemeSystem=d.defineThemeSystem;g=i(19);t.EventInstanceGroup=g.default;nt=i(52);t.ArrayEventSource=nt.default;tt=i(215);t.FuncEventSource=tt.default;it=i(216);t.JsonFeedEventSource=it.default;rt=i(35);t.EventFootprint=rt.default;ut=i(32);t.Class=ut.default;ft=i(14);t.Mixin=ft.default;et=i(53);t.CoordCache=et.default;ot=i(54);t.DragListener=ot.default;st=i(20);t.Promise=st.default;ht=i(217);t.TaskQueue=ht.default;ct=i(218);t.RenderQueue=ct.default;lt=i(39);t.Scroller=lt.default;at=i(38);t.Theme=at.default;vt=i(219);t.DateComponent=vt.default;yt=i(40);t.InteractiveDateComponent=yt.default;pt=i(220);t.Calendar=pt.default;wt=i(41);t.View=wt.default;e=i(21);t.defineView=e.defineView;t.getViewConfig=e.getViewConfig;bt=i(55);t.DayTableMixin=bt.default;kt=i(56);t.BusinessHourRenderer=kt.default;dt=i(42);t.EventRenderer=dt.default;gt=i(57);t.FillRenderer=gt.default;ni=i(58);t.HelperRenderer=ni.default;ti=i(222);t.ExternalDropping=ti.default;ii=i(223);t.EventResizing=ii.default;ri=i(59);t.EventPointing=ri.default;ui=i(224);t.EventDragging=ui.default;fi=i(225);t.DateSelecting=fi.default;ei=i(60);t.StandardInteractionsMixin=ei.default;oi=i(226);t.AgendaView=oi.default;si=i(227);t.TimeGrid=si.default;hi=i(61);t.DayGrid=hi.default;ci=i(62);t.BasicView=ci.default;li=i(229);t.MonthView=li.default;ai=i(230);t.ListView=ai.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),u=function(){function n(n,t,i){this.start=n;this.end=t||null;this.unzonedRange=this.buildUnzonedRange(i)}return n.parse=function(t,i){var o=t.start||t.date,s=t.end;if(!o)return!1;var f=i.calendar,u=f.moment(o),r=s?f.moment(s):null,e=t.allDay,h=f.opt("forceEventDuration");return u.isValid()?(!r||r.isValid()&&r.isAfter(u)||(r=null),e==null&&(e=i.allDayDefault,e==null&&(e=f.opt("allDayDefault"))),e===!0?(u.stripTime(),r&&r.stripTime()):e===!1&&(u.hasTime()||u.time(0),r&&!r.hasTime()&&r.time(0)),!r&&h&&(r=f.getDefaultEventEnd(!u.hasTime(),u)),new n(u,r,f)):!1},n.isStandardProp=function(n){return n==="start"||n==="date"||n==="end"||n==="allDay"},n.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},n.prototype.buildUnzonedRange=function(n){var t=this.start.clone().stripZone().valueOf(),i=this.getEnd(n).stripZone().valueOf();return new r.default(t,i)},n.prototype.getEnd=function(n){return this.end?this.end.clone():n.getDefaultEventEnd(this.isAllDay(),this.start)},n}();t.default=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(5),r=i(34),u=i(211),e=function(){function n(n){this.eventInstances=n||[]}return n.prototype.getAllEventRanges=function(n){return n?this.sliceNormalRenderRanges(n):this.eventInstances.map(r.eventInstanceToEventRange)},n.prototype.sliceRenderRanges=function(n){return this.isInverse()?this.sliceInverseRenderRanges(n):this.sliceNormalRenderRanges(n)},n.prototype.sliceNormalRenderRanges=function(n){for(var f=this.eventInstances,i,r,e=[],t=0;t<f.length;t++)i=f[t],r=i.dateProfile.unzonedRange.intersect(n),r&&e.push(new u.default(r,i.def,i));return e},n.prototype.sliceInverseRenderRanges=function(n){var t=this.eventInstances.map(r.eventInstanceToUnzonedRange),i=this.getEventDef();return t=f.default.invertRanges(t,n),t.map(function(n){return new u.default(n,i)})},n.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},n.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},n}();t.default=e},function(n,t,i){function f(n,t){n.then=function(i){return typeof i=="function"?u.resolve(i(t)):n}}function e(n){n.then=function(t,i){return typeof i=="function"&&i(),n}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u={construct:function(n){var t=r.Deferred(),i=t.promise();return typeof n=="function"&&n(function(n){t.resolve(n);f(i,n)},function(){t.reject();e(i)}),i},resolve:function(n){var i=r.Deferred().resolve(n),t=i.promise();return f(t,n),t},reject:function(){var t=r.Deferred().reject(),n=t.promise();return e(n),n}};t.default=u},function(n,t,i){function u(n,i){t.viewHash[n]=i}function f(n){return t.viewHash[n]}Object.defineProperty(t,"__esModule",{value:!0});var r=i(17);t.viewHash={};r.views=t.viewHash;t.defineView=u;t.getViewConfig=f},function(n,t,i){function u(n,t){return!n&&!t?!0:n&&t?n.component===t.component&&f(n,t)&&f(t,n):!1}function f(n,t){for(var i in n)if(!/^(component|left|right|top|bottom)$/.test(i)&&n[i]!==t[i])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(54),s=function(n){function t(t,i){var r=n.call(this,i)||this;return r.component=t,r}return e.__extends(t,n),t.prototype.handleInteractionStart=function(t){var f=this.subjectEl,u,e,i;this.component.hitsNeeded();this.computeScrollBounds();t?(e={left:r.getEvX(t),top:r.getEvY(t)},i=e,f&&(u=r.getOuterRect(f),i=r.constrainPoint(i,u)),this.origHit=this.queryHit(i.left,i.top),f&&this.options.subjectCenter&&(this.origHit&&(u=r.intersectRects(this.origHit,u)||u),i=r.getRectCenter(u)),this.coordAdjust=r.diffPoints(i,e)):(this.origHit=null,this.coordAdjust=null);n.prototype.handleInteractionStart.call(this,t)},t.prototype.handleDragStart=function(t){var i;n.prototype.handleDragStart.call(this,t);i=this.queryHit(r.getEvX(t),r.getEvY(t));i&&this.handleHitOver(i)},t.prototype.handleDrag=function(t,i,f){var e;n.prototype.handleDrag.call(this,t,i,f);e=this.queryHit(r.getEvX(f),r.getEvY(f));u(e,this.hit)||(this.hit&&this.handleHitOut(),e&&this.handleHitOver(e))},t.prototype.handleDragEnd=function(t){this.handleHitDone();n.prototype.handleDragEnd.call(this,t)},t.prototype.handleHitOver=function(n){var t=u(n,this.origHit);this.hit=n;this.trigger("hitOver",this.hit,t,this.origHit)},t.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},t.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},t.prototype.handleInteractionEnd=function(t,i){n.prototype.handleInteractionEnd.call(this,t,i);this.origHit=null;this.hit=null;this.component.hitsNotNeeded()},t.prototype.handleScrollEnd=function(){n.prototype.handleScrollEnd.call(this);this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},t.prototype.queryHit=function(n,t){return this.coordAdjust&&(n+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(n,t)},t}(o.default);t.default=s},,,,,,,,function(n,t,i){function v(n){r.each(a,function(t,i){n[t]==null&&(n[t]=i(n))})}function y(n,i,u){var e=t.localeOptionHash[n]||(t.localeOptionHash[n]={}),f;e.isRTL=u.isRTL;e.weekNumberTitle=u.weekHeader;r.each(c,function(n,t){e[n]=t(u)});f=r.datepicker;f&&(f.regional[i]=f.regional[n]=u,f.regional.en=f.regional[""],f.setDefaults(u))}function o(n,i){var f,e;f=t.localeOptionHash[n]||(t.localeOptionHash[n]={});i&&(f=t.localeOptionHash[n]=u.mergeOptions([f,i]));e=s(n);r.each(l,function(n,t){f[n]==null&&(f[n]=t(e,f))});u.globalDefaults.locale=n}function s(n){return e.localeData(n)||e.localeData("en")}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),e=i(0),h=i(17),u=i(31),f=i(4);t.localeOptionHash={};h.locales=t.localeOptionHash;var c={buttonText:function(n){return{prev:f.stripHtmlEntities(n.prevText),next:f.stripHtmlEntities(n.nextText),today:f.stripHtmlEntities(n.currentText)}},monthYearFormat:function(n){return n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"}},l={dayOfMonthFormat:function(n,t){var i=n.longDateFormat("l");return i=i.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?i+=" ddd":i="ddd "+i,i},mediumTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(n){return n.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(n){return n.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(n){return n.longDateFormat("LT").replace(/\s*a$/i,"")}},a={smallDayDateFormat:function(n){return n.isRTL?"D dd":"dd D"},weekFormat:function(n){return n.isRTL?"w[ "+n.weekNumberTitle+"]":"["+n.weekNumberTitle+" ]w"},smallWeekFormat:function(n){return n.isRTL?"w["+n.weekNumberTitle+"]":"["+n.weekNumberTitle+"]w"}};t.populateInstanceComputableOptions=v;t.datepickerLocale=y;t.locale=o;t.getMomentLocaleData=s;o("en",u.englishDefaults)},function(n,t,i){function f(n){return r.mergeProps(n,u)}var r,u;Object.defineProperty(t,"__esModule",{value:!0});r=i(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3};t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"};t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};u=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=function(){function n(){}return n.extend=function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(this);return r.copyOwnProps(n,t.prototype),t},n.mixin=function(n){r.copyOwnProps(n,this.prototype)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(208),f=function(){function n(n){this.source=n;this.className=[];this.miscProps={}}return n.parse=function(n,t){var i=new this(t);return i.applyProps(n)?i:!1},n.normalizeId=function(n){return String(n)},n.generateId=function(){return"_fc"+n.uuid++},n.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,n.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=r.extend({},this.miscProps),t},n.prototype.hasInverseRendering=function(){return this.getRendering()==="inverse-background"},n.prototype.hasBgRendering=function(){var n=this.getRendering();return n==="inverse-background"||n==="background"},n.prototype.getRendering=function(){return this.rendering!=null?this.rendering:this.source.rendering},n.prototype.getConstraint=function(){return this.constraint!=null?this.constraint:this.source.constraint!=null?this.source.constraint:this.source.calendar.opt("eventConstraint")},n.prototype.getOverlap=function(){return this.overlap!=null?this.overlap:this.source.overlap!=null?this.source.overlap:this.source.calendar.opt("eventOverlap")},n.prototype.isStartExplicitlyEditable=function(){return this.startEditable!=null?this.startEditable:this.source.startEditable},n.prototype.isDurationExplicitlyEditable=function(){return this.durationEditable!=null?this.durationEditable:this.source.durationEditable},n.prototype.isExplicitlyEditable=function(){return this.editable!=null?this.editable:this.source.editable},n.prototype.toLegacy=function(){var t=r.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),this.rawId!=null&&(t.id=this.rawId),n.copyVerbatimStandardProps(this,t),t},n.prototype.applyManualStandardProps=function(t){return this.id=t.id!=null?n.normalizeId(this.rawId=t.id):n.generateId(),this.uid=t._id!=null?String(t._id):n.generateId(),r.isArray(t.className)&&(this.className=t.className),typeof t.className=="string"&&(this.className=t.className.split(/\s+/)),!0},n.prototype.applyMiscProps=function(n){r.extend(this.miscProps,n)},n.uuid=0,n.defineStandardProps=u.default.defineStandardProps,n.copyVerbatimStandardProps=u.default.copyVerbatimStandardProps,n}();t.default=f;u.default.mixInto(f);f.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(n,t,i){function e(n,t){for(var r=[],i=0;i<n.length;i++)r.push.apply(r,n[i].buildInstances(t));return r}function o(n){return new r.default(n.dateProfile.unzonedRange,n.def,n)}function s(n){return new u.default(new f.default(n.unzonedRange,n.eventDef.isAllDay()),n.eventDef,n.eventInstance)}function h(n){return n.dateProfile.unzonedRange}function c(n){return n.componentFootprint}Object.defineProperty(t,"__esModule",{value:!0});var r=i(211),u=i(35),f=i(12);t.eventDefsToEventInstances=e;t.eventInstanceToEventRange=o;t.eventRangeToEventFootprint=s;t.eventInstanceToUnzonedRange=h;t.eventFootprintToComponentFootprint=c},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.componentFootprint=n;this.eventDef=t;i&&(this.eventInstance=i)}return n.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(4),r=i(18),u=i(33),e=i(50),o=i(13),s=function(){function n(){}return n.createFromRawProps=function(t,i,o){var l=t.def,y={},c={},p={},w={},b=null,k=null,s,a,v,h;for(s in i)r.default.isStandardProp(s)?y[s]=i[s]:l.isStandardProp(s)?c[s]=i[s]:l.miscProps[s]!==i[s]&&(p[s]=i[s]);return a=r.default.parse(y,l.source),a&&(v=e.default.createFromDiff(t.dateProfile,a,o)),c.id!==l.id&&(b=c.id),f.isArraysEqual(c.className,l.className)||(k=c.className),u.default.copyVerbatimStandardProps(c,w),h=new n,h.eventDefId=b,h.className=k,h.verbatimStandardProps=w,h.miscProps=p,v&&(h.dateMutation=v),h},n.prototype.mutateSingle=function(n){var t;return this.dateMutation&&(t=n.dateProfile,n.dateProfile=this.dateMutation.buildNewDateProfile(t,n.source.calendar)),this.eventDefId!=null&&(n.id=u.default.normalizeId(n.rawId=this.eventDefId)),this.className&&(n.className=this.className),this.verbatimStandardProps&&o.default.copyVerbatimStandardProps(this.verbatimStandardProps,n),this.miscProps&&n.applyMiscProps(this.miscProps),t?function(){n.dateProfile=t}:function(){}},n.prototype.setDateMutation=function(n){this.dateMutation=n&&!n.isEmpty()?n:null},n.prototype.isEmpty=function(){return!this.dateMutation},n}();t.default=s},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={sourceClasses:[],registerClass:function(n){this.sourceClasses.unshift(n)},parse:function(n,t){for(var u=this.sourceClasses,r,i=0;i<u.length;i++)if(r=u[i].parse(n,t),r)return r}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=function(){function n(n){this.optionsManager=n;this.processIconOverride()}return n.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},n.prototype.setIconOverride=function(n){var t,i;if(u.isPlainObject(n)){t=u.extend({},this.iconClasses);for(i in n)t[i]=this.applyIconOverridePrefix(n[i]);this.iconClasses=t}else n===!1&&(this.iconClasses={})},n.prototype.applyIconOverridePrefix=function(n){var t=this.iconOverridePrefix;return t&&n.indexOf(t)!==0&&(n=t+n),n},n.prototype.getClass=function(n){return this.classes[n]||""},n.prototype.getIconClass=function(n){var t=this.iconClasses[n];return t?this.baseIconClass+" "+t:""},n.prototype.getCustomButtonIconClass=function(n){var t;return this.iconOverrideCustomButtonOption&&(t=n[this.iconOverrideCustomButtonOption],t)?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},n}();t.default=r;r.prototype.classes={};r.prototype.iconClasses={};r.prototype.baseIconClass="";r.prototype.iconOverridePrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(4),e=i(32),o=function(n){function t(t){var i=n.call(this)||this;return t=t||{},i.overflowX=t.overflowX||t.overflow||"auto",i.overflowY=t.overflowY||t.overflow||"auto",i}return r.__extends(t,n),t.prototype.render=function(){this.el=this.renderEl();this.applyOverflow()},t.prototype.renderEl=function(){return this.scrollEl=u('<div class="fc-scroller"><\/div>')},t.prototype.clear=function(){this.setHeight("auto");this.applyOverflow()},t.prototype.destroy=function(){this.el.remove()},t.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},t.prototype.lockOverflow=function(n){var t=this.overflowX,i=this.overflowY;n=n||this.getScrollbarWidths();t==="auto"&&(t=n.top||n.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden");i==="auto"&&(i=n.left||n.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden");this.scrollEl.css({"overflow-x":t,"overflow-y":i})},t.prototype.setHeight=function(n){this.scrollEl.height(n)},t.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},t.prototype.setScrollTop=function(n){this.scrollEl.scrollTop(n)},t.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},t.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},t.prototype.getScrollbarWidths=function(){return f.getScrollbarWidths(this.scrollEl)},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),u=i(3),r=i(4),e=i(219),o=i(15),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-event-container > *",r.dateSelectingClass&&(r.dateClicking=new r.dateClickingClass(r)),r.dateSelectingClass&&(r.dateSelecting=new r.dateSelectingClass(r)),r.eventPointingClass&&(r.eventPointing=new r.eventPointingClass(r)),r.eventDraggingClass&&r.eventPointing&&(r.eventDragging=new r.eventDraggingClass(r,r.eventPointing)),r.eventResizingClass&&r.eventPointing&&(r.eventResizing=new r.eventResizingClass(r,r.eventPointing)),r.externalDroppingClass&&(r.externalDropping=new r.externalDroppingClass(r)),r}return f.__extends(t,n),t.prototype.setElement=function(t){n.prototype.setElement.call(this,t);this.dateClicking&&this.dateClicking.bindToEl(t);this.dateSelecting&&this.dateSelecting.bindToEl(t);this.bindAllSegHandlersToEl(t)},t.prototype.removeElement=function(){this.endInteractions();n.prototype.removeElement.call(this)},t.prototype.executeEventUnrender=function(){this.endInteractions();n.prototype.executeEventUnrender.call(this)},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.bindToDocument()},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.externalDropping&&this.externalDropping.unbindFromDocument()},t.prototype.bindDateHandlerToEl=function(n,t,i){var r=this;this.el.on(t,function(n){if(!u(n.target).is(r.segSelector+":not(.fc-helper),"+r.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return i.call(r,n)})},t.prototype.bindAllSegHandlersToEl=function(n){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(n)})},t.prototype.bindSegHandlerToEl=function(n,t,i){var r=this;n.on(t,this.segSelector,function(n){var f=u(n.currentTarget),t;if(!f.is(".fc-helper")&&(t=f.data("fc-seg"),t&&!r.shouldIgnoreEventPointing()))return i.call(r,t,n)})},t.prototype.shouldIgnoreMouse=function(){return o.default.get().shouldIgnoreMouse()},t.prototype.shouldIgnoreTouch=function(){var n=this._getView();return n.isSelected||n.selectedEvent},t.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},t.prototype.canStartSelection=function(n,t){return r.getEvIsTouch(t)&&!this.canStartResize(n,t)&&(this.isEventDefDraggable(n.footprint.eventDef)||this.isEventDefResizable(n.footprint.eventDef))},t.prototype.canStartDrag=function(n,t){return!this.canStartResize(n,t)&&this.isEventDefDraggable(n.footprint.eventDef)},t.prototype.canStartResize=function(n,t){var f=this._getView(),i=n.footprint.eventDef;return(!r.getEvIsTouch(t)||f.isEventDefSelected(i))&&this.isEventDefResizable(i)&&u(t.target).is(".fc-resizer")},t.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(n){n&&n.end()})},t.prototype.isEventDefDraggable=function(n){return this.isEventDefStartEditable(n)},t.prototype.isEventDefStartEditable=function(n){var t=n.isStartExplicitlyEditable();return t==null&&(t=this.opt("eventStartEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.isEventDefGenerallyEditable=function(n){var t=n.isExplicitlyEditable();return t==null&&(t=this.opt("editable")),t},t.prototype.isEventDefResizableFromStart=function(n){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(n)},t.prototype.isEventDefResizableFromEnd=function(n){return this.isEventDefResizable(n)},t.prototype.isEventDefResizable=function(n){var t=n.isDurationExplicitlyEditable();return t==null&&(t=this.opt("eventDurationEditable"),t==null&&(t=this.isEventDefGenerallyEditable(n))),t},t.prototype.diffDates=function(n,t){return this.largeUnit?r.diffByUnit(n,t,this.largeUnit):r.diffDayTime(n,t)},t.prototype.isEventInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;return r.calendar.constraints.isEventInstanceGroupAllowed(n)},t.prototype.isExternalInstanceGroupAllowed=function(n){for(var r=this._getView(),u=this.dateProfile,i=this.eventRangesToEventFootprints(n.getAllEventRanges()),t=0;t<i.length;t++)if(!u.validUnzonedRange.containsRange(i[t].componentFootprint.unzonedRange))return!1;for(t=0;t<i.length;t++)if(!r.calendar.constraints.isSelectionFootprintAllowed(i[t].componentFootprint))return!1;return!0},t}(e.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),u=i(3),f=i(0),e=i(4),h=i(218),c=i(221),l=i(40),o=i(15),a=i(5),r=function(n){function t(t,i){var r=n.call(this,null,i.options)||this;return r.batchRenderDepth=0,r.isSelected=!1,r.calendar=t,r.viewSpec=i,r.type=i.type,r.name=r.type,r.initRenderQueue(),r.initHiddenDays(),r.dateProfileGenerator=new r.dateProfileGeneratorClass(r),r.bindBaseRenderHandlers(),r.eventOrderSpecs=e.parseFieldSpecs(r.opt("eventOrder")),r.initialize&&r.initialize(),r}return s.__extends(t,n),t.prototype._getView=function(){return this},t.prototype.opt=function(n){return this.options[n]},t.prototype.initRenderQueue=function(){this.renderQueue=new h.default({event:this.opt("eventRenderWait")});this.renderQueue.on("start",this.onRenderQueueStart.bind(this));this.renderQueue.on("stop",this.onRenderQueueStop.bind(this));this.on("before:change",this.startBatchRender);this.on("change",this.stopBatchRender)},t.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight();this.addScroll(this.queryScroll())},t.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll();this.calendar.thawContentHeight()},t.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},t.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},t.prototype.requestRender=function(n,t,i){this.renderQueue.queue(n,t,i)},t.prototype.whenSizeUpdated=function(n){if(this.renderQueue.isRunning)this.renderQueue.one("stop",n.bind(this));else n.call(this)},t.prototype.computeTitle=function(n){var t;return t=/^(year|month)$/.test(n.currentRangeUnit)?n.currentUnzonedRange:n.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,n.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,n.isRangeAllDay)},n.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(n),this.opt("titleRangeSeparator"))},t.prototype.computeTitleFormat=function(n){var t=n.currentRangeUnit;return t==="year"?"YYYY":t==="month"?this.opt("monthYearFormat"):n.currentUnzonedRange.as("days")>1?"ll":"LL"},t.prototype.setDate=function(n){var t=this.get("dateProfile"),i=this.dateProfileGenerator.build(n,undefined,!0);t&&t.activeUnzonedRange.equals(i.activeUnzonedRange)||this.set("dateProfile",i)},t.prototype.unsetDate=function(){this.unset("dateProfile")},t.prototype.fetchInitialEvents=function(n){var t=this.calendar,i=n.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(n.activeUnzonedRange.startMs,i),t.msToMoment(n.activeUnzonedRange.endMs,i))},t.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},t.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},t.prototype.setEvents=function(n){this.set("currentEvents",n);this.set("hasEvents",!0)},t.prototype.unsetEvents=function(){this.unset("currentEvents");this.unset("hasEvents")},t.prototype.resetEvents=function(n){this.startBatchRender();this.unsetEvents();this.setEvents(n);this.stopBatchRender()},t.prototype.requestDateRender=function(n){var t=this;this.requestRender(function(){t.executeDateRender(n)},"date","init")},t.prototype.requestDateUnrender=function(){var n=this;this.requestRender(function(){n.executeDateUnrender()},"date","destroy")},t.prototype.executeDateRender=function(t){n.prototype.executeDateRender.call(this,t);this.render&&this.render();this.trigger("datesRendered");this.addScroll({isDateInit:!0});this.startNowIndicator()},t.prototype.executeDateUnrender=function(){this.unselect();this.stopNowIndicator();this.trigger("before:datesUnrendered");this.destroy&&this.destroy();n.prototype.executeDateUnrender.call(this)},t.prototype.bindBaseRenderHandlers=function(){var n=this;this.on("datesRendered",function(){n.whenSizeUpdated(n.triggerViewRender)});this.on("before:datesUnrendered",function(){n.triggerViewDestroy()})},t.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.requestEventsRender=function(n){var t=this;this.requestRender(function(){t.executeEventRender(n);t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},t.prototype.requestEventsUnrender=function(){var n=this;this.requestRender(function(){n.triggerBeforeEventsDestroyed();n.executeEventUnrender()},"event","destroy")},t.prototype.requestBusinessHoursRender=function(n){var t=this;this.requestRender(function(){t.renderBusinessHours(n)},"businessHours","init")},t.prototype.requestBusinessHoursUnrender=function(){var n=this;this.requestRender(function(){n.unrenderBusinessHours()},"businessHours","destroy")},t.prototype.bindGlobalHandlers=function(){n.prototype.bindGlobalHandlers.call(this);this.listenTo(o.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},t.prototype.unbindGlobalHandlers=function(){n.prototype.unbindGlobalHandlers.call(this);this.stopListeningTo(o.default.get())},t.prototype.startNowIndicator=function(){var r=this,t,i,n;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit(),t&&(i=e.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){r.nowIndicatorTimeoutID=null;i();n=+f.duration(1,t);n=Math.max(100,n);r.nowIndicatorIntervalID=setInterval(i,n)},n)))},t.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},t.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},t.prototype.updateSize=function(t,i,r){this.setHeight?this.setHeight(t,i):n.prototype.updateSize.call(this,t,i,r);this.updateNowIndicator()},t.prototype.addScroll=function(n){var t=this.queuedScroll||(this.queuedScroll={});u.extend(t,n)},t.prototype.popScroll=function(){this.applyQueuedScroll();this.queuedScroll=null},t.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},t.prototype.queryScroll=function(){var n={};return this.isDatesRendered&&u.extend(n,this.queryDateScroll()),n},t.prototype.applyScroll=function(n){n.isDateInit&&this.isDatesRendered&&u.extend(n,this.computeInitialDateScroll());this.isDatesRendered&&this.applyDateScroll(n)},t.prototype.computeInitialDateScroll=function(){return{}},t.prototype.queryDateScroll=function(){return{}},t.prototype.applyDateScroll=function(){},t.prototype.reportEventDrop=function(n,t,i,r){var e=this.calendar.eventManager,o=e.mutateEventsWithId(n.def.id,t),u=t.dateMutation;u&&(n.dateProfile=u.buildNewDateProfile(n.dateProfile,this.calendar));this.triggerEventDrop(n,u&&u.dateDelta||f.duration(),o,i,r)},t.prototype.triggerEventDrop=function(n,t,i,r,u){this.publiclyTrigger("eventDrop",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.reportExternalDrop=function(n,t,i,r,u,f){t&&this.calendar.eventManager.addEventDef(n,i);this.triggerExternalDrop(n,t,r,u,f)},t.prototype.triggerExternalDrop=function(n,t,i,r,u){this.publiclyTrigger("drop",{context:i[0],args:[n.dateProfile.start.clone(),r,u,this]});t&&this.publiclyTrigger("eventReceive",{context:this,args:[n.buildInstance().toLegacy(),this]})},t.prototype.reportEventResize=function(n,t,i,r){var u=this.calendar.eventManager,f=u.mutateEventsWithId(n.def.id,t);n.dateProfile=t.dateMutation.buildNewDateProfile(n.dateProfile,this.calendar);this.triggerEventResize(n,t.dateMutation.endDelta,f,i,r)},t.prototype.triggerEventResize=function(n,t,i,r,u){this.publiclyTrigger("eventResize",{context:r[0],args:[n.toLegacy(),t,i,u,{},this]})},t.prototype.select=function(n,t){this.unselect(t);this.renderSelectionFootprint(n);this.reportSelection(n,t)},t.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):n.prototype.renderSelectionFootprint.call(this,t)},t.prototype.reportSelection=function(n,t){this.isSelected=!0;this.triggerSelect(n,t)},t.prototype.triggerSelect=function(n,t){var i=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("select",{context:this,args:[i.start,i.end,t,this]})},t.prototype.unselect=function(n){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[n,this]}))},t.prototype.selectEventInstance=function(n){this.selectedEventInstance&&this.selectedEventInstance===n||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===n&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=n)},t.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(n){n.el&&n.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},t.prototype.isEventDefSelected=function(n){return this.selectedEventInstance&&this.selectedEventInstance.def.id===n.id},t.prototype.handleDocumentMousedown=function(n){e.isPrimaryMouseButton(n)&&this.processUnselect(n)},t.prototype.processUnselect=function(n){this.processRangeUnselect(n);this.processEventUnselect(n)},t.prototype.processRangeUnselect=function(n){var t;this.isSelected&&this.opt("unselectAuto")&&(t=this.opt("unselectCancel"),t&&u(n.target).closest(t).length||this.unselect(n))},t.prototype.processEventUnselect=function(n){this.selectedEventInstance&&(u(n.target).closest(".fc-selected").length||this.unselectEventInstance())},t.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},t.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},t.prototype.triggerDayClick=function(n,t,i){var r=this.calendar.footprintToDateProfile(n);this.publiclyTrigger("dayClick",{context:t,args:[r.start,i,this]})},t.prototype.isDateInOtherMonth=function(){return!1},t.prototype.getUnzonedRangeOption=function(n){var t=this.opt(n);return typeof t=="function"&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t?this.calendar.parseUnzonedRange(t):void 0},t.prototype.initHiddenDays=function(){var t=this.opt("hiddenDays")||[],i=[],r=0,n;for(this.opt("weekends")===!1&&t.push(0,6),n=0;n<7;n++)(i[n]=u.inArray(n,t)!==-1)||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=i},t.prototype.trimHiddenDays=function(n){var t=n.getStart(),i=n.getEnd();return(t&&(t=this.skipHiddenDays(t)),i&&(i=this.skipHiddenDays(i,-1,!0)),t===null||i===null||t<i)?new a.default(t,i):null},t.prototype.isHiddenDay=function(n){return f.isMoment(n)&&(n=n.day()),this.isHiddenDayHash[n]},t.prototype.skipHiddenDays=function(n,t,i){t===void 0&&(t=1);i===void 0&&(i=!1);for(var r=n.clone();this.isHiddenDayHash[(r.day()+(i?t:0)+7)%7];)r.add(t,"days");return r},t}(l.default);t.default=r;r.prototype.usesMinMaxTime=!1;r.prototype.dateProfileGeneratorClass=c.default;r.watch("displayingDates",["isInDom","dateProfile"],function(n){this.requestDateRender(n.dateProfile)},function(){this.requestDateUnrender()});r.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(n){this.requestBusinessHoursRender(n.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()});r.watch("initialEvents",["dateProfile"],function(n){return this.fetchInitialEvents(n.dateProfile)});r.watch("bindingEvents",["initialEvents"],function(n){this.setEvents(n.initialEvents);this.bindEventChanges()},function(){this.unbindEventChanges();this.unsetEvents()});r.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()});r.watch("title",["dateProfile"],function(n){return this.title=this.computeTitle(n.dateProfile)});r.watch("legacyDateProps",["dateProfile"],function(n){var i=this.calendar,t=n.dateProfile;this.start=i.msToMoment(t.activeUnzonedRange.startMs,t.isRangeAllDay);this.end=i.msToMoment(t.activeUnzonedRange.endMs,t.isRangeAllDay);this.intervalStart=i.msToMoment(t.currentUnzonedRange.startMs,t.isRangeAllDay);this.intervalEnd=i.msToMoment(t.currentUnzonedRange.endMs,t.isRangeAllDay)})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.view=n._getView();this.component=n;this.fillRenderer=t}return n.prototype.opt=function(n){return this.view.opt(n)},n.prototype.rangeUpdated=function(){var n,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat();n=this.opt("displayEventTime");n==null&&(n=this.computeDisplayEventTime());t=this.opt("displayEventEnd");t==null&&(t=this.computeDisplayEventEnd());this.displayEventTime=n;this.displayEventEnd=t},n.prototype.render=function(n){var e=this.component._getDateProfile(),f,t,i,r=[],u=[];for(f in n)t=n[f],i=t.sliceRenderRanges(e.activeUnzonedRange),t.getEventDef().hasBgRendering()?r.push.apply(r,i):u.push.apply(u,i);this.renderBgRanges(r);this.renderFgRanges(u)},n.prototype.unrender=function(){this.unrenderBgRanges();this.unrenderFgRanges()},n.prototype.renderFgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);t=this.renderFgSegEls(t);this.renderFgSegs(t)!==!1&&(this.fgSegs=t)},n.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]);this.fgSegs=null},n.prototype.renderBgRanges=function(n){var i=this.component.eventRangesToEventFootprints(n),t=this.component.eventFootprintsToSegs(i);this.renderBgSegs(t)!==!1&&(this.bgSegs=t)},n.prototype.unrenderBgRanges=function(){this.unrenderBgSegs();this.bgSegs=null},n.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},n.prototype.renderFgSegs=function(){return!1},n.prototype.unrenderFgSegs=function(){},n.prototype.renderBgSegs=function(n){var t=this;if(this.fillRenderer)this.fillRenderer.renderSegs("bgEvent",n,{getClasses:function(n){return t.getBgClasses(n.footprint.eventDef)},getCss:function(n){return{"background-color":t.getBgColor(n.footprint.eventDef)}},filterEl:function(n,i){return t.filterEventRenderEl(n.footprint,i)}});else return!1},n.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},n.prototype.renderFgSegEls=function(n,t){var e=this;t===void 0&&(t=!1);var o=this.view.hasPublicHandlers("eventRender"),u="",f=[],i;if(n.length){for(i=0;i<n.length;i++)this.beforeFgSegHtml(n[i]),u+=this.fgSegHtml(n[i],t);r(u).each(function(t,i){var s=n[t],u=r(i);o&&(u=e.filterEventRenderEl(s.footprint,u));u&&(u.data("fc-seg",s),s.el=u,f.push(s))})}return f},n.prototype.beforeFgSegHtml=function(){},n.prototype.fgSegHtml=function(){},n.prototype.getSegClasses=function(n,t,i){var r=["fc-event",n.isStart?"fc-start":"fc-not-start",n.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(n.footprint.eventDef));return t&&r.push("fc-draggable"),i&&r.push("fc-resizable"),this.view.isEventDefSelected(n.footprint.eventDef)&&r.push("fc-selected"),r},n.prototype.filterEventRenderEl=function(n,t){var u=n.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:u,args:[u,t,this.view]});return i===!1?t=null:i&&i!==!0&&(t=r(i)),t},n.prototype.getTimeText=function(n,t,i){return this._getTimeText(n.eventInstance.dateProfile.start,n.eventInstance.dateProfile.end,n.componentFootprint.isAllDay,t,i)},n.prototype._getTimeText=function(n,t,i,r,u){return(r==null&&(r=this.eventTimeFormat),u==null&&(u=this.displayEventEnd),this.displayEventTime&&!i)?u&&t?this.view.formatRange({start:n,end:t},!1,r):n.format(r):""},n.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},n.prototype.computeDisplayEventTime=function(){return!0},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.getBgClasses=function(n){var t=this.getClasses(n);return t.push("fc-bgevent"),t},n.prototype.getClasses=function(n){for(var i=this.getStylingObjs(n),r=[],t=0;t<i.length;t++)r.push.apply(r,i[t].eventClassName||i[t].className||[]);return r},n.prototype.getSkinCss=function(n){return{"background-color":this.getBgColor(n),"border-color":this.getBorderColor(n),color:this.getTextColor(n)}},n.prototype.getBgColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBackgroundColor||i[t].eventColor||i[t].backgroundColor||i[t].color;return r||(r=this.opt("eventBackgroundColor")||this.opt("eventColor")),r},n.prototype.getBorderColor=function(n){for(var i=this.getStylingObjs(n),r,t=0;t<i.length&&!r;t++)r=i[t].eventBorderColor||i[t].eventColor||i[t].borderColor||i[t].color;return r||(r=this.opt("eventBorderColor")||this.opt("eventColor")),r},n.prototype.getTextColor=function(n){for(var r=this.getStylingObjs(n),i,t=0;t<r.length&&!i;t++)i=r[t].eventTextColor||r[t].textColor;return i||(i=this.opt("eventTextColor")),i},n.prototype.getStylingObjs=function(n){var t=this.getFallbackStylingObjs(n);return t.unshift(n),t},n.prototype.getFallbackStylingObjs=function(n){return[n.source]},n.prototype.sortEventSegs=function(n){n.sort(u.proxy(this,"compareEventSegs"))},n.prototype.compareEventSegs=function(n,t){var i=n.footprint,r=t.footprint,o=i.componentFootprint,s=r.componentFootprint,f=o.unzonedRange,e=s.unzonedRange;return f.startMs-e.startMs||e.endMs-e.startMs-(f.endMs-f.startMs)||s.isAllDay-o.isAllDay||u.compareByFieldSpecs(i.eventDef,r.eventDef,this.view.eventOrderSpecs,i.eventDef.miscProps,r.eventDef.miscProps)},n}();t.default=f},,,,,function(n,t,i){function u(n){return n.locale()!=="en"?n.clone().locale("en"):n}function v(n,t){return it(y(t).fakeFormatString,n)}function g(n,t,i,u,f){var e;return n=r.default.parseZone(n),t=r.default.parseZone(t),e=n.localeData(),i=e.longDateFormat(i)||i,nt(y(i),n,t,u||" - ",f)}function nt(n,t,i,r,u){for(var o=n.sameUnits,y=t.clone().stripZone(),p=i.clone().stripZone(),c=s(n.fakeFormatString,t),d=s(n.fakeFormatString,i),w="",e,v="",h,l="",a="",b="",f=0;f<o.length&&(!o[f]||y.isSame(p,o[f]));f++)w+=c[f];for(e=o.length-1;e>f&&(!o[e]||y.isSame(p,o[e]));e--){if(e-1===f&&c[e]===".")break;v=c[e]+v}for(h=f;h<=e;h++)l+=c[h],a+=d[h];return(l||a)&&(b=u?a+r+l:l+r+a),k(w+b+v)}function y(n){return e[n]||(e[n]=tt(n))}function tt(n){var t=o(n);return{fakeFormatString:w(t),sameUnits:b(t)}}function o(n){for(var i=[],t,r=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=r.exec(n);)t[1]?i.push.apply(i,p(t[1])):t[2]?i.push({maybe:o(t[2])}):t[3]?i.push({token:t[3]}):t[5]&&i.push.apply(i,p(t[5]));return i}function p(n){return n===". "?["."," "]:[n]}function w(n){for(var i=[],t,r=0;r<n.length;r++)t=n[r],typeof t=="string"?i.push("["+t+"]"):t.token?t.token in l?i.push(c+"["+t.token+"]"):i.push(t.token):t.maybe&&i.push(f+w(t.maybe)+f);return i.join(h)}function b(n){for(var t=[],i,u,r=0;r<n.length;r++)i=n[r],i.token?(u=a[i.token.charAt(0)],t.push(u?u.unit:"second")):i.maybe?t.push.apply(t,b(i.maybe)):t.push(null);return t}function it(n,t){return k(s(n,t).join(""))}function s(n,t){for(var f=[],o=r.oldMomentFormat(t,n),e=o.split(h),u,i=0;i<e.length;i++)u=e[i],u.charAt(0)===c?f.push(l[u.substring(1)](t)):f.push(u);return f}function k(n){return n.replace(d,function(n,t){return t.match(/[1-9]/)?t:""})}function rt(n){for(var f=o(n),u,r,t,i=0;i<f.length;i++)u=f[i],u.token&&(r=a[u.token.charAt(0)],r&&(!t||r.value>t.value)&&(t=r));return t?t.unit:null}var r,e;Object.defineProperty(t,"__esModule",{value:!0});r=i(10);r.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?v(this,arguments[0]):this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentFormat(u(this)):r.oldMomentProto.format.apply(this,arguments)};r.newMomentProto.toISOString=function(){return this._ambigTime?r.oldMomentFormat(u(this),"YYYY-MM-DD"):this._ambigZone?r.oldMomentFormat(u(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?r.oldMomentProto.toISOString.apply(u(this),arguments):r.oldMomentProto.toISOString.apply(this,arguments)};var h="\x0b",c="\x1f",f="\x1e",d=new RegExp(f+"([^"+f+"]*)"+f,"g"),l={t:function(n){return r.oldMomentFormat(n,"a").charAt(0)},T:function(n){return r.oldMomentFormat(n,"A").charAt(0)}},a={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};t.formatDate=v;t.formatRange=g;e={};t.queryMostGranularFormatUnit=rt},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(32),e=i(11),o=i(7),r=function(n){function t(){var t=n.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}return u.__extends(t,n),t.watch=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs));this.prototype._globalWatchArgs[n]=i},t.prototype.constructed=function(){},t.prototype.applyGlobalWatchers=function(){var n=this._globalWatchArgs;for(var t in n)this.watch.apply(this,[t].concat(n[t]))},t.prototype.has=function(n){return n in this._props},t.prototype.get=function(n){return n===undefined?this._props:this._props[n]},t.prototype.set=function(n,t){var i;typeof n=="string"?(i={},i[n]=t===undefined?null:t):i=n;this.setProps(i)},t.prototype.reset=function(n){var r=this._props,i={};for(var t in r)i[t]=undefined;for(t in n)i[t]=n[t];this.setProps(i)},t.prototype.unset=function(n){for(var r={},i=typeof n=="string"?[n]:n,t=0;t<i.length;t++)r[i[t]]=undefined;this.setProps(r)},t.prototype.setProps=function(n){var r={},u=0,t,i;for(t in n)i=n[t],(typeof i=="object"||i!==this._props[t])&&(r[t]=i,u++);if(u){this.trigger("before:batchChange",r);for(t in r)i=r[t],this.trigger("before:change",t,i),this.trigger("before:change:"+t,i);for(t in r)i=r[t],i===undefined?delete this._props[t]:this._props[t]=i,this.trigger("change:"+t,i),this.trigger("change",t,i);this.trigger("batchChange",r)}},t.prototype.watch=function(n,t,i,r){var u=this;this.unwatch(n);this._watchers[n]=this._watchDeps(t,function(t){var r=i.call(u,t);r&&r.then?(u.unset(n),r.then(function(t){u.set(n,t)})):u.set(n,r)},function(t){u.unset(n);r&&r.call(u,t)})},t.prototype.unwatch=function(n){var t=this._watchers[n];t&&(delete this._watchers[n],t.teardown())},t.prototype._watchDeps=function(n,t,i){var o=this,s=0,f=n.length,r=0,u={},e=[],h=!1,l=function(){s++;s===1&&r===f&&(h=!0,i(u),h=!1)},a=function(n,i,e){i===undefined?(e||u[n]===undefined||r--,delete u[n]):(e||u[n]!==undefined||r++,u[n]=i);s--;s||r===f&&(h||t(u))},c=function(n,t){o.on(n,t);e.push([n,t])};return n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);c("before:change:"+n,function(i){l(n,i,t)});c("change:"+n,function(i){a(n,i,t)})}),n.forEach(function(n){var t=!1;n.charAt(0)==="?"&&(n=n.substring(1),t=!0);o.has(n)?(u[n]=o.get(n),r++):t&&r++}),r===f&&t(u),{teardown:function(){for(var n=0;n<e.length;n++)o.off(e[n][0],e[n][1]);e=null;r===f&&i()},flash:function(){r===f&&(i(),t(u))}}},t.prototype.flash=function(n){var t=this._watchers[n];t&&t.flash()},t}(f.default);t.default=r;r.prototype._globalWatchArgs={};e.default.mixInto(r);o.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(4),f=i(13),e=i(210);t.default={parse:function(n,t){return u.isTimeString(n.start)||r.isDuration(n.start)||u.isTimeString(n.end)||r.isDuration(n.end)?e.default.parse(n,t):f.default.parse(n,t)}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(4),u=i(18),f=function(){function n(){this.clearEnd=!1;this.forceTimed=!1;this.forceAllDay=!1}return n.createFromDiff=function(t,i,u){function h(n,t){return u?r.diffByUnit(n,t,u):i.isAllDay()?r.diffDay(n,t):r.diffDayTime(n,t)}var c=t.end&&!i.end,l=t.isAllDay()&&!i.isAllDay(),a=!t.isAllDay()&&i.isAllDay(),e,o,s,f;return e=h(i.start,t.start),i.end&&(o=h(i.unzonedRange.getEnd(),t.unzonedRange.getEnd()),s=o.subtract(e)),f=new n,f.clearEnd=c,f.forceTimed=l,f.forceAllDay=a,f.setDateDelta(e),f.setEndDelta(s),f},n.prototype.buildNewDateProfile=function(n,t){var r=n.start.clone(),i=null,f=!1;return n.end&&!this.clearEnd?i=n.end.clone():this.endDelta&&!i&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),this.forceTimed?(f=!0,r.hasTime()||r.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(r.hasTime()&&r.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(f=!0,r.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(f=!0,i.add(this.endDelta)),this.startDelta&&(f=!0,r.add(this.startDelta)),f&&(r=t.applyTimezone(r),i&&(i=t.applyTimezone(i))),!i&&t.opt("forceEventDuration")&&(i=t.getDefaultEventEnd(n.isAllDay(),r)),new u.default(r,i,t)},n.prototype.setDateDelta=function(n){this.dateDelta=n&&n.valueOf()?n:null},n.prototype.setStartDelta=function(n){this.startDelta=n&&n.valueOf()?n:null},n.prototype.setEndDelta=function(n){this.endDelta=n&&n.valueOf()?n:null},n.prototype.isEmpty=function(){return!this.clearEnd&&!this.forceTimed&&!this.forceAllDay&&!this.dateDelta&&!this.startDelta&&!this.endDelta},n}();t.default=f},function(n,t,i){function e(n,t){r[n]=t}function o(n){return n?n===!0?f.default:r[n]:u.default}Object.defineProperty(t,"__esModule",{value:!0});var u=i(213),f=i(214),r={};t.defineThemeSystem=e;t.getThemeSystemClass=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(4),s=i(20),u=i(6),h=i(13),f=function(n){function t(t){var i=n.call(this,t)||this;return i.eventDefs=[],i}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isArray(n.events)?i=n:r.isArray(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.setRawEventDefs=function(n){this.rawEventDefs=n;this.eventDefs=this.parseEventDefs(n)},t.prototype.fetch=function(n,t,i){var u=this.eventDefs,r;if(this.currentTimezone!=null&&this.currentTimezone!==i)for(r=0;r<u.length;r++)u[r]instanceof h.default&&u[r].rezone();return this.currentTimezone=i,s.default.resolve(u)},t.prototype.addEventDef=function(n){this.eventDefs.push(n)},t.prototype.removeEventDefsById=function(n){return o.removeMatching(this.eventDefs,function(t){return t.id===n})},t.prototype.removeAllEventDefs=function(){this.eventDefs=[]},t.prototype.getPrimitive=function(){return this.rawEventDefs},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.isHorizontal=!1;this.isVertical=!1;this.els=r(n.els);this.isHorizontal=n.isHorizontal;this.isVertical=n.isVertical;this.forcedOffsetParentEl=n.offsetParent?r(n.offsetParent):null}return n.prototype.build=function(){var n=this.forcedOffsetParentEl;!n&&this.els.length>0&&(n=this.els.eq(0).offsetParent());this.origin=n?n.offset():null;this.boundingRect=this.queryBoundingRect();this.isHorizontal&&this.buildElHorizontals();this.isVertical&&this.buildElVerticals()},n.prototype.clear=function(){this.origin=null;this.boundingRect=null;this.lefts=null;this.rights=null;this.tops=null;this.bottoms=null},n.prototype.ensureBuilt=function(){this.origin||this.build()},n.prototype.buildElHorizontals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().left,o=f.outerWidth();n.push(e);t.push(e+o)});this.lefts=n;this.rights=t},n.prototype.buildElVerticals=function(){var n=[],t=[];this.els.each(function(i,u){var f=r(u),e=f.offset().top,o=f.outerHeight();n.push(e);t.push(e+o)});this.tops=n;this.bottoms=t},n.prototype.getHorizontalIndex=function(n){this.ensureBuilt();for(var i=this.lefts,r=this.rights,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getVerticalIndex=function(n){this.ensureBuilt();for(var i=this.tops,r=this.bottoms,u=i.length,t=0;t<u;t++)if(n>=i[t]&&n<r[t])return t},n.prototype.getLeftOffset=function(n){return this.ensureBuilt(),this.lefts[n]},n.prototype.getLeftPosition=function(n){return this.ensureBuilt(),this.lefts[n]-this.origin.left},n.prototype.getRightOffset=function(n){return this.ensureBuilt(),this.rights[n]},n.prototype.getRightPosition=function(n){return this.ensureBuilt(),this.rights[n]-this.origin.left},n.prototype.getWidth=function(n){return this.ensureBuilt(),this.rights[n]-this.lefts[n]},n.prototype.getTopOffset=function(n){return this.ensureBuilt(),this.tops[n]},n.prototype.getTopPosition=function(n){return this.ensureBuilt(),this.tops[n]-this.origin.top},n.prototype.getBottomOffset=function(n){return this.ensureBuilt(),this.bottoms[n]},n.prototype.getBottomPosition=function(n){return this.ensureBuilt(),this.bottoms[n]-this.origin.top},n.prototype.getHeight=function(n){return this.ensureBuilt(),this.bottoms[n]-this.tops[n]},n.prototype.queryBoundingRect=function(){var n;return this.els.length>0&&(n=u.getScrollParent(this.els.eq(0)),!n.is(document))?u.getClientRect(n):null},n.prototype.isPointInBounds=function(n,t){return this.isLeftInBounds(n)&&this.isTopInBounds(t)},n.prototype.isLeftInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.left&&n<this.boundingRect.right},n.prototype.isTopInBounds=function(n){return!this.boundingRect||n>=this.boundingRect.top&&n<this.boundingRect.bottom},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),o=i(7),f=i(15),e=function(){function n(n){this.isInteracting=!1;this.isDistanceSurpassed=!1;this.isDelayEnded=!1;this.isDragging=!1;this.isTouch=!1;this.isGeneric=!1;this.shouldCancelTouchScroll=!0;this.scrollAlwaysKills=!1;this.isAutoScroll=!1;this.scrollSensitivity=30;this.scrollSpeed=200;this.scrollIntervalMs=50;this.options=n||{}}return n.prototype.startInteraction=function(n,t){if(t===void 0&&(t={}),n.type==="mousedown"){if(f.default.get().shouldIgnoreMouse())return;if(r.isPrimaryMouseButton(n))n.preventDefault();else return}this.isInteracting||(this.delay=r.firstDefined(t.delay,this.options.delay,0),this.minDistance=r.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,r.preventSelection(u("body")),this.isInteracting=!0,this.isTouch=r.getEvIsTouch(n),this.isGeneric=n.type==="dragstart",this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=r.getEvX(n),this.originY=r.getEvY(n),this.scrollEl=r.getScrollParent(u(n.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(n),this.startDelay(n),this.minDistance||this.handleDistanceSurpassed(n))},n.prototype.handleInteractionStart=function(n){this.trigger("interactionStart",n)},n.prototype.endInteraction=function(n,t){this.isInteracting&&(this.endDrag(n),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(n,t),r.allowSelection(u("body")))},n.prototype.handleInteractionEnd=function(n,t){this.trigger("interactionEnd",n,t||!1)},n.prototype.bindHandlers=function(){var n=f.default.get();this.isGeneric?this.listenTo(u(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(n,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(n,{mousemove:this.handleMouseMove,mouseup:this.endInteraction});this.listenTo(n,{selectstart:r.preventDefault,contextmenu:r.preventDefault})},n.prototype.unbindHandlers=function(){this.stopListeningTo(f.default.get());this.stopListeningTo(u(document))},n.prototype.startDrag=function(n,t){this.startInteraction(n,t);this.isDragging||(this.isDragging=!0,this.handleDragStart(n))},n.prototype.handleDragStart=function(n){this.trigger("dragStart",n)},n.prototype.handleMove=function(n){var t=r.getEvX(n)-this.originX,i=r.getEvY(n)-this.originY,u=this.minDistance,f;this.isDistanceSurpassed||(f=t*t+i*i,f>=u*u&&this.handleDistanceSurpassed(n));this.isDragging&&this.handleDrag(t,i,n)},n.prototype.handleDrag=function(n,t,i){this.trigger("drag",n,t,i);this.updateAutoScroll(i)},n.prototype.endDrag=function(n){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(n))},n.prototype.handleDragEnd=function(n){this.trigger("dragEnd",n)},n.prototype.startDelay=function(n){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},n.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.isDistanceSurpassed&&this.startDrag(n)},n.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.isDelayEnded&&this.startDrag(n)},n.prototype.handleTouchMove=function(n){this.isDragging&&this.shouldCancelTouchScroll&&n.preventDefault();this.handleMove(n)},n.prototype.handleMouseMove=function(n){this.handleMove(n)},n.prototype.handleTouchScroll=function(n){(!this.isDragging||this.scrollAlwaysKills)&&this.endInteraction(n,!0)},n.prototype.trigger=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];this.options[n]&&this.options[n].apply(this,i);this["_"+n]&&this["_"+n].apply(this,i)},n.prototype.initAutoScroll=function(){var n=this.scrollEl;this.isAutoScroll=this.options.scroll&&n&&!n.is(window)&&!n.is(document);this.isAutoScroll&&this.listenTo(n,"scroll",r.debounce(this.handleDebouncedScroll,100))},n.prototype.destroyAutoScroll=function(){this.endAutoScroll();this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},n.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=r.getOuterRect(this.scrollEl))},n.prototype.updateAutoScroll=function(n){var t=this.scrollSensitivity,i=this.scrollBounds,u,f,e,o,s=0,h=0;i&&(u=(t-(r.getEvY(n)-i.top))/t,f=(t-(i.bottom-r.getEvY(n)))/t,e=(t-(r.getEvX(n)-i.left))/t,o=(t-(i.right-r.getEvX(n)))/t,u>=0&&u<=1?s=u*this.scrollSpeed*-1:f>=0&&f<=1&&(s=f*this.scrollSpeed),e>=0&&e<=1?h=e*this.scrollSpeed*-1:o>=0&&o<=1&&(h=o*this.scrollSpeed));this.setScrollVel(s,h)},n.prototype.setScrollVel=function(n,t){this.scrollTopVel=n;this.scrollLeftVel=t;this.constrainScrollVel();(this.scrollTopVel||this.scrollLeftVel)&&!this.scrollIntervalId&&(this.scrollIntervalId=setInterval(r.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},n.prototype.constrainScrollVel=function(){var n=this.scrollEl;this.scrollTopVel<0?n.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&n.scrollTop()+n[0].clientHeight>=n[0].scrollHeight&&(this.scrollTopVel=0);this.scrollLeftVel<0?n.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&n.scrollLeft()+n[0].clientWidth>=n[0].scrollWidth&&(this.scrollLeftVel=0)},n.prototype.scrollIntervalFunc=function(){var n=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&n.scrollTop(n.scrollTop()+this.scrollTopVel*t);this.scrollLeftVel&&n.scrollLeft(n.scrollLeft()+this.scrollLeftVel*t);this.constrainScrollVel();this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},n.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},n.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},n.prototype.handleScrollEnd=function(){},n}();t.default=e;o.default.mixInto(e)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(14),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.updateDayTable=function(){for(var r=this,o=r.view,s=o.calendar,i=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.startMs,!0),c=s.msToUtcMoment(r.dateProfile.renderUnzonedRange.endMs,!0),u=-1,f=[],n=[],t,h,e;i.isBefore(c);)o.isHiddenDay(i)?f.push(u+.5):(u++,f.push(u),n.push(i.clone())),i.add(1,"days");if(this.breakOnWeeks){for(h=n[0].day(),t=1;t<n.length;t++)if(n[t].day()===h)break;e=Math.ceil(n.length/t)}else e=1,t=n.length;this.dayDates=n;this.dayIndices=f;this.daysPerRow=t;this.rowCnt=e;this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt();this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(n,t){return this.dayDates[this.getCellDayIndex(n,t)].clone()},t.prototype.getCellRange=function(n,t){var i=this.getCellDate(n,t),r=i.clone().add(1,"days");return{start:i,end:r}},t.prototype.getCellDayIndex=function(n,t){return n*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(n){return this.isRTL?this.colCnt-1-n:n},t.prototype.getDateDayIndex=function(n){var t=this.dayIndices,i=n.diff(this.dayDates[0],"days");return i<0?t[0]-1:i>=t.length?t[t.length-1]+1:t[i]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(n){for(var f=this.daysPerRow,e=this.view.computeDayRange(n),o=this.getDateDayIndex(e.start),s=this.getDateDayIndex(e.end.clone().subtract(1,"days")),h=[],u,c,t,i,r=0;r<this.rowCnt;r++)u=r*f,c=u+f-1,t=Math.max(o,u),i=Math.min(s,c),t=Math.ceil(t),i=Math.floor(i),t<=i&&h.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===o,isEnd:i===s});return h},t.prototype.sliceRangeByDay=function(n){for(var e=this.daysPerRow,o=this.view.computeDayRange(n),s=this.getDateDayIndex(o.start),h=this.getDateDayIndex(o.end.clone().subtract(1,"days")),c=[],u,l,f,t,i,r=0;r<this.rowCnt;r++)for(u=r*e,l=u+e-1,f=u;f<=l;f++)t=Math.max(s,f),i=Math.min(h,f),t=Math.ceil(t),i=Math.floor(i),t<=i&&c.push({row:r,firstRowDayIndex:t-u,lastRowDayIndex:i-u,isStart:t===s,isEnd:i===h});return c},t.prototype.renderHeadHtml=function(){var n=this.view.calendar.theme;return'<div class="fc-row '+n.getClass("headerRow")+'"><table class="'+n.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"<\/thead><\/table><\/div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"<\/tr>"},t.prototype.renderHeadDateCellsHtml=function(){for(var t=[],i,n=0;n<this.colCnt;n++)i=this.getCellDate(0,n),t.push(this.renderHeadDateCellHtml(i));return t.join("")},t.prototype.renderHeadDateCellHtml=function(n,t,i){var u=this,o=u.view,s=u.dateProfile.activeUnzonedRange.containsDate(n),f=["fc-day-header",o.calendar.theme.getClass("widgetHeader")],e;return e=typeof u.opt("columnHeaderHtml")=="function"?u.opt("columnHeaderHtml")(n):typeof u.opt("columnHeaderText")=="function"?r.htmlEscape(u.opt("columnHeaderText")(n)):r.htmlEscape(n.format(u.colHeadFormat)),u.rowCnt===1?f=f.concat(u.getDayClasses(n,!0)):f.push("fc-"+r.dayIDs[n.day()]),'<th class="'+f.join(" ")+'"'+((s&&u.rowCnt)===1?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(i?" "+i:"")+">"+(s?o.buildGotoAnchorHtml({date:n,forceOff:u.rowCnt>1||u.colCnt===1},e):e)+"<\/th>"},t.prototype.renderBgTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(n))+this.renderBgCellsHtml(n)+(this.isRTL?this.renderBgIntroHtml(n):"")+"<\/tr>"},t.prototype.renderBgIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderBgCellHtml(r));return i.join("")},t.prototype.renderBgCellHtml=function(n,t){var i=this,u=i.view,f=i.dateProfile.activeUnzonedRange.containsDate(n),r=i.getDayClasses(n);return r.unshift("fc-day",u.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(f?' data-date="'+n.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"><\/td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(n){var t=this.renderIntroHtml();t&&(this.isRTL?n.append(t):n.prepend(t))},t}(f.default);t.default=e},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.component=n;this.fillRenderer=t}return n.prototype.render=function(n){var t=this.component,i=t._getDateProfile().activeUnzonedRange,r=n.buildEventInstanceGroup(t.hasAllDayBusinessHours,i),u=r?t.eventRangesToEventFootprints(r.sliceRenderRanges(i)):[];this.renderEventFootprints(u)},n.prototype.renderEventFootprints=function(n){var t=this.component.eventFootprintsToSegs(n);this.renderSegs(t);this.segs=t},n.prototype.renderSegs=function(n){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",n,{getClasses:function(){return["fc-nonbusiness","fc-bgevent"]}})},n.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours");this.segs=null},n.prototype.getSegs=function(){return this.segs||[]},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n){this.fillSegTag="div";this.component=n;this.elsByFill={}}return n.prototype.renderFootprint=function(n,t,i){this.renderSegs(n,this.component.componentFootprintToSegs(t),i)},n.prototype.renderSegs=function(n,t,i){var r;return t=this.buildSegEls(n,t,i),r=this.attachSegEls(n,t),r&&this.reportEls(n,r),t},n.prototype.unrender=function(n){var t=this.elsByFill[n];t&&(t.remove(),delete this.elsByFill[n])},n.prototype.buildSegEls=function(n,t,i){var o=this,f="",e=[],u;if(t.length){for(u=0;u<t.length;u++)f+=this.buildSegHtml(n,t[u],i);r(f).each(function(n,u){var s=t[n],f=r(u);i.filterEl&&(f=i.filterEl(s,f));f&&(f=r(f),f.is(o.fillSegTag)&&(s.el=f,e.push(s)))})}return e},n.prototype.buildSegHtml=function(n,t,i){var r=i.getClasses?i.getClasses(t):[],f=u.cssToStr(i.getCss?i.getCss(t):{});return"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(f?' style="'+f+'"':"")+" />"},n.prototype.attachSegEls=function(){},n.prototype.reportEls=function(n,t){this.elsByFill[n]=this.elsByFill[n]?this.elsByFill[n].add(t):r(t)},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(13),u=i(35),f=i(6),e=function(){function n(n,t){this.view=n._getView();this.component=n;this.eventRenderer=t}return n.prototype.renderComponentFootprint=function(n){this.renderEventFootprints([this.fabricateEventFootprint(n)])},n.prototype.renderEventDraggingFootprints=function(n,t,i){this.renderEventFootprints(n,t,"fc-dragging",i?null:this.view.opt("dragOpacity"))},n.prototype.renderEventResizingFootprints=function(n,t){this.renderEventFootprints(n,t,"fc-resizing")},n.prototype.renderEventFootprints=function(n,t,i,r){for(var f=this.component.eventFootprintsToSegs(n),e="fc-helper "+(i||""),f=this.eventRenderer.renderFgSegEls(f),u=0;u<f.length;u++)f[u].el.addClass(e);if(r!=null)for(u=0;u<f.length;u++)f[u].el.css("opacity",r);this.helperEls=this.renderSegs(f,t)},n.prototype.renderSegs=function(){},n.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},n.prototype.fabricateEventFootprint=function(n){var i=this.view.calendar,o=i.footprintToDateProfile(n),t=new r.default(new f.default(i)),e;return t.dateProfile=o,e=t.buildInstance(),new u.default(n,t,e)},n}();t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(15),f=i(16),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"click",this.handleClick.bind(this));t.bindSegHandlerToEl(n,"mouseenter",this.handleMouseover.bind(this));t.bindSegHandlerToEl(n,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(n,t){var i=this.component.publiclyTrigger("eventClick",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]});i===!1&&t.preventDefault()},t.prototype.handleMouseover=function(n,t){u.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=n,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(n,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(n.footprint.eventDef)&&n.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:n.el[0],args:[n.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(14),e=i(245),o=i(225),s=i(59),h=i(224),c=i(223),l=i(222),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.dateClickingClass=e.default;r.prototype.dateSelectingClass=o.default;r.prototype.eventPointingClass=s.default;r.prototype.eventDraggingClass=h.default;r.prototype.eventResizingClass=c.default;r.prototype.externalDroppingClass=l.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),h=i(4),f=i(53),c=i(249),e=i(5),o=i(12),l=i(35),a=i(56),v=i(60),y=i(40),p=i(55),w=i(250),b=i(251),k=i(252),u=function(n){function t(t){var i=n.call(this,t)||this;return i.cellWeekNumbersVisible=!1,i.bottomCoordPadding=0,i.isRigid=!1,i.hasAllDayBusinessHours=!0,i}return s.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var r=this.sliceRangeByRow(n.unzonedRange),t,i=0;i<r.length;i++)t=r[i],this.isRTL?(t.leftCol=this.daysPerRow-1-t.lastRowDayIndex,t.rightCol=this.daysPerRow-1-t.firstRowDayIndex):(t.leftCol=t.firstRowDayIndex,t.rightCol=t.lastRowDayIndex);return r},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderGrid()},t.prototype.unrenderDates=function(){this.removeSegPopover()},t.prototype.renderGrid=function(){var i=this.view,r=this.rowCnt,e=this.colCnt,u="",n,t;for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),n=0;n<r;n++)u+=this.renderDayRowHtml(n,this.isRigid);for(this.el.html(u),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new f.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new f.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),n=0;n<r;n++)for(t=0;t<e;t++)this.publiclyTrigger("dayRender",{context:i,args:[this.getCellDate(n,t),this.getCellEl(n,t),i]})},t.prototype.renderDayRowHtml=function(n,t){var i=this.view.calendar.theme,r=["fc-row","fc-week",i.getClass("dayRow")];return t&&r.push("fc-rigid"),'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+i.getClass("tableGrid")+'">'+this.renderBgTrHtml(n)+'<\/table><\/div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(n)+"<\/thead>":"")+"<\/table><\/div><\/div>"},t.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},t.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},t.prototype.renderNumberTrHtml=function(n){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(n))+this.renderNumberCellsHtml(n)+(this.isRTL?this.renderNumberIntroHtml(n):"")+"<\/tr>"},t.prototype.renderNumberIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderNumberCellsHtml=function(n){for(var i=[],r,t=0;t<this.colCnt;t++)r=this.getCellDate(n,t),i.push(this.renderNumberCellHtml(r));return i.join("")},t.prototype.renderNumberCellHtml=function(n){var r=this.view,t="",u=this.dateProfile.activeUnzonedRange.containsDate(n),f=this.getIsDayNumbersVisible()&&u,i,e;return!f&&!this.cellWeekNumbersVisible?"<td/>":(i=this.getDayClasses(n),i.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(e=n._locale._fullCalendar_weekCalc==="ISO"?1:n._locale.firstDayOfWeek()),t+='<td class="'+i.join(" ")+'"'+(u?' data-date="'+n.format()+'"':"")+">",this.cellWeekNumbersVisible&&n.day()===e&&(t+=r.buildGotoAnchorHtml({date:n,type:"week"},{"class":"fc-week-number"},n.format("w"))),f&&(t+=r.buildGotoAnchorHtml(n,{"class":"fc-day-number"},n.format("D"))),t+"<\/td>")},t.prototype.prepareHits=function(){this.colCoordCache.build();this.rowCoordCache.build();this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},t.prototype.releaseHits=function(){this.colCoordCache.clear();this.rowCoordCache.clear()},t.prototype.queryHit=function(n,t){if(this.colCoordCache.isLeftInBounds(n)&&this.rowCoordCache.isTopInBounds(t)){var i=this.colCoordCache.getHorizontalIndex(n),r=this.rowCoordCache.getVerticalIndex(t);if(r!=null&&i!=null)return this.getCellHit(r,i)}},t.prototype.getHitFootprint=function(n){var t=this.getCellRange(n.row,n.col);return new o.default(new e.default(t.start,t.end),!0)},t.prototype.getHitEl=function(n){return this.getCellEl(n.row,n.col)},t.prototype.getCellHit=function(n,t){return{row:n,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(n),bottom:this.rowCoordCache.getBottomOffset(n)}},t.prototype.getCellEl=function(n,t){return this.cellEls.eq(n*this.colCnt+t)},t.prototype.executeEventUnrender=function(){this.removeSegPopover();n.prototype.executeEventUnrender.call(this)},t.prototype.getOwnEventSegs=function(){return n.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},t.prototype.renderDrag=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);if(n.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){for(var r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint);this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},t.prototype.limitRows=function(n){for(var r=this.eventRenderer.rowStructs||[],i,t=0;t<r.length;t++)this.unlimitRow(t),i=n?typeof n=="number"?n:this.computeRowLevelLimit(t):!1,i!==!1&&this.limitRow(t,i)},t.prototype.computeRowLevelLimit=function(n){function s(n,t){i=Math.max(i,r(t).outerHeight())}for(var e=this.rowEls.eq(n),o=e.height(),f=this.eventRenderer.rowStructs[n].tbodyEl.children(),u,i,t=0;t<f.length;t++)if(u=f.eq(t).removeClass("fc-limited"),i=0,u.find("> td > :first-child").each(s),u.position().top+i>o)return t;return!1},t.prototype.limitRow=function(n,t){var g=this,f=this.eventRenderer.rowStructs[n],y=[],i=0,p,w,b,c,e,u,k,l,o,nt,d,s,a,h,v,tt=function(f){while(i<f)u=g.getCellSegs(n,i,t),u.length&&(o=w[t-1][i],v=g.renderMoreLink(n,i,u),h=r("<div/>").append(v),o.append(h),y.push(h[0])),i++};if(t&&t<f.segLevels.length){for(p=f.segLevels[t-1],w=f.cellMatrix,b=f.tbodyEl.children().slice(t).addClass("fc-limited").get(),c=0;c<p.length;c++){for(e=p[c],tt(e.leftCol),l=[],k=0;i<=e.rightCol;)u=this.getCellSegs(n,i,t),l.push(u),k+=u.length,i++;if(k){for(o=w[t-1][e.leftCol],nt=o.attr("rowspan")||1,d=[],s=0;s<l.length;s++)a=r('<td class="fc-more-cell"/>').attr("rowspan",nt),u=l[s],v=this.renderMoreLink(n,e.leftCol+s,[e].concat(u)),h=r("<div/>").append(v),a.append(h),d.push(a[0]),y.push(a[0]);o.addClass("fc-limited").after(r(d));b.push(o[0])}}tt(this.colCnt);f.moreEls=r(y);f.limitedEls=r(b)}},t.prototype.unlimitRow=function(n){var t=this.eventRenderer.rowStructs[n];t.moreEls&&(t.moreEls.remove(),t.moreEls=null);t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},t.prototype.renderMoreLink=function(n,t,i){var u=this,f=this.view;return r('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",function(e){var o=u.opt("eventLimitClick"),s=u.getCellDate(n,t),h=r(e.currentTarget),l=u.getCellEl(n,t),a=u.getCellSegs(n,t),c=u.resliceDaySegs(a,s),v=u.resliceDaySegs(i,s);typeof o=="function"&&(o=u.publiclyTrigger("eventLimitClick",{context:f,args:[{date:s.clone(),dayEl:l,moreEl:h,segs:c,hiddenSegs:v},e,f]}));o==="popover"?u.showSegPopover(n,t,h,c):typeof o=="string"&&f.calendar.zoomTo(s,o)})},t.prototype.showSegPopover=function(n,t,i,r){var u=this,e=this.view,o=i.parent(),s,f;s=this.rowCnt===1?e.el:this.rowEls.eq(n);f={className:"fc-more-popover "+e.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(n,t,r),parentEl:e.el,top:s.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){u.popoverSegs&&u.triggerBeforeEventSegsDestroyed(u.popoverSegs);u.segPopover.removeElement();u.segPopover=null;u.popoverSegs=null}};this.isRTL?f.right=o.offset().left+o.outerWidth()+1:f.left=o.offset().left-1;this.segPopover=new c.default(f);this.segPopover.show();this.bindAllSegHandlersToEl(this.segPopover.el);this.triggerAfterEventSegsRendered(r)},t.prototype.renderSegPopoverContent=function(n,t,i){var o=this.view,f=o.calendar.theme,s=this.getCellDate(n,t).format(this.opt("dayPopoverFormat")),e=r('<div class="fc-header '+f.getClass("popoverHeader")+'"><span class="fc-close '+f.getIconClass("close")+'"><\/span><span class="fc-title">'+h.htmlEscape(s)+'<\/span><div class="fc-clear"/><\/div><div class="fc-body '+f.getClass("popoverContent")+'"><div class="fc-event-container"><\/div><\/div>'),c=e.find(".fc-event-container"),u;for(i=this.eventRenderer.renderFgSegEls(i,!0),this.popoverSegs=i,u=0;u<i.length;u++)this.hitsNeeded(),i[u].hit=this.getCellHit(n,t),this.hitsNotNeeded(),c.append(i[u].el);return e},t.prototype.resliceDaySegs=function(n,t){for(var h=t.clone(),c=h.clone().add(1,"days"),a=new e.default(h,c),s=[],i,u,f=0;f<n.length;f++)i=n[f],u=i.footprint.componentFootprint.unzonedRange.intersect(a),u&&s.push(r.extend({},i,{footprint:new l.default(new o.default(u,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&u.isStart,isEnd:i.isEnd&&u.isEnd}));return this.eventRenderer.sortEventSegs(s),s},t.prototype.getMoreLinkText=function(n){var t=this.opt("eventLimitText");return typeof t=="function"?t(n):"+"+n+" "+t},t.prototype.getCellSegs=function(n,t,i){for(var f=this.eventRenderer.rowStructs[n].segMatrix,r=i||0,e=[],u;r<f.length;)u=f[r][t],u&&e.push(u),r++;return e},t}(y.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=a.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;v.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){function l(n){return function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}return f.__extends(t,n),t.prototype.renderHeadIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+n.calendar.theme.getClass("widgetHeader")+'" '+n.weekNumberStyleAttr()+"><span>"+r.htmlEscape(this.opt("weekNumberTitle"))+"<\/span><\/th>":""},t.prototype.renderNumberIntroHtml=function(n){var t=this.view,i=this.getCellDate(n,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt===1},i.format("w"))+"<\/td>":""},t.prototype.renderBgIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+n.calendar.theme.getClass("widgetContent")+'" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.renderIntroHtml=function(){var n=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+n.weekNumberStyleAttr()+"><\/td>":""},t.prototype.getIsNumbersVisible=function(){return e.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},t}(n)}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),o=i(3),r=i(4),s=i(39),h=i(41),c=i(228),e=i(61),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=r.instantiateDayGrid(),r.dayGrid.isRigid=r.hasRigidRows(),r.opt("weekNumbers")&&(r.opt("weekNumbersWithinDays")?(r.dayGrid.cellWeekNumbersVisible=!0,r.dayGrid.colWeekNumbersVisible=!1):(r.dayGrid.cellWeekNumbersVisible=!1,r.dayGrid.colWeekNumbersVisible=!0)),r.addChild(r.dayGrid),r.scroller=new s.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.instantiateDayGrid=function(){var n=l(this.dayGridClass);return new n(this)},t.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit);n.prototype.executeDateRender.call(this,t)},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-day-grid-container");t=o('<div class="fc-day-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.dayGrid.headContainerEl=this.el.find(".fc-head-container");this.dayGrid.setElement(t)},t.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'"> <\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'"><\/td><\/tr><\/tbody><\/table>'},t.prototype.weekNumberStyleAttr=function(){return this.weekNumberWidth!=null?'style="width:'+this.weekNumberWidth+'px"':""},t.prototype.hasRigidRows=function(){var n=this.opt("eventLimit");return n&&typeof n!="number"},t.prototype.updateSize=function(t,i,u){var e=this.opt("eventLimit"),s=this.dayGrid.headContainerEl.find(".fc-row"),f,o;if(!this.dayGrid.rowEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}n.prototype.updateSize.call(this,t,i,u);this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=r.matchCellWidths(this.el.find(".fc-week-number")));this.scroller.clear();r.uncompensateScroll(s);this.dayGrid.removeSegPopover();e&&typeof e=="number"&&this.dayGrid.limitRows(e);f=this.computeScrollerHeight(t);this.setGridHeight(f,i);e&&typeof e!="number"&&this.dayGrid.limitRows(e);i||(this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.setGridHeight=function(n,t){t?r.undistributeHeight(this.dayGrid.rowEls):r.distributeHeight(this.dayGrid.rowEls,n,!0)},t.prototype.computeInitialDateScroll=function(){return{top:0}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t}(h.default);t.default=u;u.prototype.dateProfileGeneratorClass=c.default;u.prototype.dayGridClass=e.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function h(n,t,i){for(var r=0;r<n.length;r++)if(!t(n[r].eventInstance.toLegacy(),i?i.toLegacy():null))return!1;return!0}function c(n,t){for(var e=t.toLegacy(),u,f,r,i=0;i<n.length;i++)if((u=n[i].eventInstance,f=u.def,r=f.getOverlap(),r===!1)||typeof r=="function"&&!r(u.toLegacy(),e))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var u=i(5),f=i(12),e=i(49),o=i(6),r=i(34),s=function(){function n(n,t){this.eventManager=n;this._calendar=t}return n.prototype.opt=function(n){return this._calendar.opt(n)},n.prototype.isEventInstanceGroupAllowed=function(n){for(var u=n.getEventDef(),i=this.eventRangesToEventFootprints(n.getAllEventRanges()),e=this.getPeerEventInstances(u),o=e.map(r.eventInstanceToEventRange),s=this.eventRangesToEventFootprints(o),h=u.getConstraint(),c=u.getOverlap(),f=this.opt("eventAllow"),t=0;t<i.length;t++)if(!this.isFootprintAllowed(i[t].componentFootprint,s,h,c,i[t].eventInstance))return!1;if(f)for(t=0;t<i.length;t++)if(f(i[t].componentFootprint.toLegacy(this._calendar),i[t].getEventLegacy())===!1)return!1;return!0},n.prototype.getPeerEventInstances=function(n){return this.eventManager.getEventInstancesWithoutId(n.id)},n.prototype.isSelectionFootprintAllowed=function(n){var i=this.eventManager.getEventInstances(),u=i.map(r.eventInstanceToEventRange),f=this.eventRangesToEventFootprints(u),t;return this.isFootprintAllowed(n,f,this.opt("selectConstraint"),this.opt("selectOverlap"))?(t=this.opt("selectAllow"),t?t(n.toLegacy(this._calendar))!==!1:!0):!1},n.prototype.isFootprintAllowed=function(n,t,i,r,u){var e,f;if(i!=null&&(e=this.constraintValToFootprints(i,n.isAllDay),!this.isFootprintWithinConstraints(n,e)))return!1;if(f=this.collectOverlapEventFootprints(t,n),r===!1){if(f.length)return!1}else if(typeof r=="function"&&!h(f,r,u))return!1;return u&&!c(f,u)?!1:!0},n.prototype.isFootprintWithinConstraints=function(n,t){for(var i=0;i<t.length;i++)if(this.footprintContainsFootprint(t[i],n))return!0;return!1},n.prototype.constraintValToFootprints=function(n,t){var i;return n==="businessHours"?this.buildCurrentBusinessFootprints(t):typeof n=="object"?(i=this.parseEventDefToInstances(n),i?this.eventInstancesToFootprints(i):this.parseFootprints(n)):n!=null?(i=this.eventManager.getEventInstancesWithId(n),this.eventInstancesToFootprints(i)):void 0},n.prototype.buildCurrentBusinessFootprints=function(n){var t=this._calendar.view,r=t.get("businessHourGenerator"),u=t.dateProfile.activeUnzonedRange,i=r.buildEventInstanceGroup(n,u);return i?this.eventInstancesToFootprints(i.eventInstances):[]},n.prototype.eventInstancesToFootprints=function(n){var t=n.map(r.eventInstanceToEventRange),i=this.eventRangesToEventFootprints(t);return i.map(r.eventFootprintToComponentFootprint)},n.prototype.collectOverlapEventFootprints=function(n,t){for(var r=[],i=0;i<n.length;i++)this.footprintsIntersect(t,n[i].componentFootprint)&&r.push(n[i]);return r},n.prototype.parseEventDefToInstances=function(n){var i=this.eventManager,t=e.default.parse(n,new o.default(this._calendar));return t?t.buildInstances(i.currentPeriod.unzonedRange):!1},n.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},n.prototype.eventRangeToEventFootprints=function(n){return[r.eventRangeToEventFootprint(n)]},n.prototype.parseFootprints=function(n){var t,i;return n.start&&(t=this._calendar.moment(n.start),t.isValid()||(t=null)),n.end&&(i=this._calendar.moment(n.end),i.isValid()||(i=null)),[new f.default(new u.default(t,i),t&&!t.hasTime()||i&&!i.hasTime())]},n.prototype.footprintContainsFootprint=function(n,t){return n.unzonedRange.containsRange(t.unzonedRange)},n.prototype.footprintsIntersect=function(n,t){return n.unzonedRange.intersectsWith(t.unzonedRange)},n}();t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(4),e=i(14),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.defineStandardProps=function(n){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap));f.copyOwnProps(n,t.standardPropMap)},t.copyVerbatimStandardProps=function(n,t){var r=this.prototype.standardPropMap;for(var i in r)n[i]!=null&&r[i]===!0&&(t[i]=n[i])},t.prototype.applyProps=function(n){var i=this.standardPropMap,r={},u={};for(var t in n)i[t]===!0?this[t]=n[t]:i[t]===!1?r[t]=n[t]:u[t]=n[t];return this.applyMiscProps(u),this.applyManualStandardProps(r)},t.prototype.applyManualStandardProps=function(){return!0},t.prototype.applyMiscProps=function(){},t.prototype.isStandardProp=function(n){return n in this.standardPropMap},t}(e.default);t.default=r;r.prototype.standardPropMap={}},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t){this.def=n;this.dateProfile=t}return n.prototype.toLegacy=function(){var n=this.dateProfile,t=this.def.toLegacy();return t.start=n.start.clone(),t.end=n.end?n.end.clone():null,t},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),r=i(0),f=i(33),s=i(209),h=i(18),u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},t.prototype.buildInstances=function(n){for(var f=this.source.calendar,t=n.getStart(),o=n.getEnd(),r,i,u,e=[];t.isBefore(o);)(!this.dowHash||this.dowHash[t.day()])&&(r=f.applyTimezone(t),i=r.clone(),u=null,this.startTime?i.time(this.startTime):i.stripTime(),this.endTime&&(u=r.clone().time(this.endTime)),e.push(new s.default(this,new h.default(i,u,f)))),t.add(1,"days");return e},t.prototype.setDow=function(n){this.dowHash||(this.dowHash={});for(var t=0;t<n.length;t++)this.dowHash[n[t]]=!0},t.prototype.clone=function(){var t=n.prototype.clone.call(this);return t.startTime&&(t.startTime=r.duration(this.startTime)),t.endTime&&(t.endTime=r.duration(this.endTime)),this.dowHash&&(t.dowHash=o.extend({},this.dowHash)),t},t}(f.default);t.default=u;u.prototype.applyProps=function(n){var t=f.default.prototype.applyProps.call(this,n);return n.start&&(this.startTime=r.duration(n.start)),n.end&&(this.endTime=r.duration(n.end)),n.dow&&this.setDow(n.dow),t};u.defineStandardProps({start:!1,end:!1,dow:!1})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n,t,i){this.unzonedRange=n;this.eventDef=t;i&&(this.eventInstance=i)}return n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(34),f=i(19),e=i(210),o=i(6),s={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},h=function(){function n(n,t){this.rawComplexDef=n;this.calendar=t}return n.prototype.buildEventInstanceGroup=function(n,t){var i=this.buildEventDefs(n),r;if(i.length)return r=new f.default(u.eventDefsToEventInstances(i,t)),r.explicitEventDef=i[0],r},n.prototype.buildEventDefs=function(n){var i=this.rawComplexDef,t=[],f=!1,u,e=[];for(i===!0?t=[{}]:r.isPlainObject(i)?t=[i]:r.isArray(i)&&(t=i,f=!0),u=0;u<t.length;u++)(!f||t[u].dow)&&e.push(this.buildEventDef(n,t[u]));return e},n.prototype.buildEventDef=function(n,t){var i=r.extend({},s,t);return n&&(i.start=null,i.end=null),e.default.parse(i,new o.default(this.calendar))},n}();t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(38),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"};r.prototype.baseIconClass="fc-icon";r.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"};r.prototype.iconOverrideOption="buttonIcons";r.prototype.iconOverrideCustomButtonOption="icon";r.prototype.iconOverridePrefix="fc-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(38),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"};r.prototype.baseIconClass="ui-icon";r.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"};r.prototype.iconOverrideOption="themeButtonIcons";r.prototype.iconOverrideCustomButtonOption="themeIcon";r.prototype.iconOverridePrefix="ui-icon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(3),o=i(20),u=i(6),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.parse=function(n,t){var i;return(r.isFunction(n.events)?i=n:r.isFunction(n)&&(i={events:n}),i)?u.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,t,i){var r=this;return this.calendar.pushLoading(),o.default.construct(function(u){r.func.call(r.calendar,n.clone(),t.clone(),i,function(n){r.calendar.popLoading();u(r.parseEventDefs(n))})})},t.prototype.getPrimitive=function(){return this.func},t.prototype.applyManualStandardProps=function(t){var i=n.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,i},t}(u.default);t.default=f;f.defineStandardProps({events:!1})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),s=i(20),f=i(6),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return o.__extends(t,n),t.parse=function(n,t){var i;return(typeof n.url=="string"?i=n:typeof n=="string"&&(i={url:n}),i)?f.default.parse.call(this,i,t):!1},t.prototype.fetch=function(n,i,f){var e=this,o=this.ajaxSettings,h=o.success,c=o.error,l=this.buildRequestParams(n,i,f);return this.calendar.pushLoading(),s.default.construct(function(n,i){r.ajax(r.extend({},t.AJAX_DEFAULTS,o,{url:e.url,data:l,success:function(t,f,o){var s;e.calendar.popLoading();t?(s=u.applyAll(h,e,[t,f,o]),r.isArray(s)&&(t=s),n(e.parseEventDefs(t))):i()},error:function(n,t,r){e.calendar.popLoading();u.applyAll(c,e,[n,t,r]);i()}}))})},t.prototype.buildRequestParams=function(n,t,i){var s=this.calendar,h=this.ajaxSettings,f,e,o,c,u={};return f=this.startParam,f==null&&(f=s.opt("startParam")),e=this.endParam,e==null&&(e=s.opt("endParam")),o=this.timezoneParam,o==null&&(o=s.opt("timezoneParam")),c=r.isFunction(h.data)?h.data():h.data||{},r.extend(u,c),u[f]=n.format(),u[e]=t.format(),i&&i!=="local"&&(u[o]=i),u},t.prototype.getPrimitive=function(){return this.url},t.prototype.applyMiscProps=function(n){this.ajaxSettings=n},t.AJAX_DEFAULTS={dataType:"json",cache:!1},t}(f.default);t.default=e;e.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(11),r=function(){function n(){this.q=[];this.isPaused=!1;this.isRunning=!1}return n.prototype.queue=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.q.push.apply(this.q,t);this.tryStart()},n.prototype.pause=function(){this.isPaused=!0},n.prototype.resume=function(){this.isPaused=!1;this.tryStart()},n.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},n.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},n.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},n.prototype.runRemaining=function(){var t=this,i,n;do if(i=this.q.shift(),n=this.runTask(i),n&&n.then){n.then(function(){t.canRunNext()&&t.runRemaining()});return}while(this.canRunNext());this.trigger("stop");this.isRunning=!1;this.tryStart()},n.prototype.runTask=function(n){return n()},n}();t.default=r;u.default.mixInto(r)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(217),f=function(n){function t(t){var i=n.call(this)||this;return i.waitsByNamespace=t||{},i}return r.__extends(t,n),t.prototype.queue=function(n,t,i){var u={func:n,namespace:t,type:i},r;t&&(r=this.waitsByNamespace[t]);this.waitNamespace&&(t===this.waitNamespace&&r!=null?this.delayWait(r):(this.clearWait(),this.tryStart()));this.compoundTask(u)&&(this.waitNamespace||r==null?this.tryStart():this.startWait(t,r))},t.prototype.startWait=function(n,t){this.waitNamespace=n;this.spawnWait(t)},t.prototype.delayWait=function(n){clearTimeout(this.waitId);this.spawnWait(n)},t.prototype.spawnWait=function(n){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null;t.tryStart()},n)},t.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},t.prototype.canRunNext=function(){var i,t;if(!n.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(i=this.q,t=0;t<i.length;t++)if(i[t].namespace!==this.waitNamespace)return!0;return!1}return!0},t.prototype.runTask=function(n){n.func()},t.prototype.compoundTask=function(n){var i=this.q,r=!0,t,u;if(n.namespace&&n.type==="destroy")for(t=i.length-1;t>=0;t--){u=i[t];switch(u.type){case"init":r=!1;case"add":case"remove":i.splice(t,1)}}return r&&i.push(n),r},t}(u.default);t.default=f},function(n,t,i){function a(n){var r,i,u=[],t;for(r in n)for(i=n[r].eventInstances,t=0;t<i.length;t++)u.push(i[t].toLegacy());return u}Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(3),e=i(0),r=i(4),o=i(10),s=i(47),h=i(237),c=i(34),l=function(n){function t(i,r){var u=n.call(this)||this;return u.isRTL=!1,u.hitsNeededDepth=0,u.hasAllDayBusinessHours=!1,u.isDatesRendered=!1,i&&(u.view=i),r&&(u.options=r),u.uid=String(t.guid++),u.childrenByUid={},u.nextDayThreshold=e.duration(u.opt("nextDayThreshold")),u.isRTL=u.opt("isRTL"),u.fillRendererClass&&(u.fillRenderer=new u.fillRendererClass(u)),u.eventRendererClass&&(u.eventRenderer=new u.eventRendererClass(u,u.fillRenderer)),u.helperRendererClass&&u.eventRenderer&&(u.helperRenderer=new u.helperRendererClass(u,u.eventRenderer)),u.businessHourRendererClass&&u.fillRenderer&&(u.businessHourRenderer=new u.businessHourRendererClass(u,u.fillRenderer)),u}return u.__extends(t,n),t.prototype.addChild=function(n){return this.childrenByUid[n.uid]?!1:(this.childrenByUid[n.uid]=n,!0)},t.prototype.removeChild=function(n){return this.childrenByUid[n.uid]?(delete this.childrenByUid[n.uid],!0):!1},t.prototype.updateSize=function(){this.callChildren("updateSize",arguments)},t.prototype.opt=function(n){return this._getView().opt(n)},t.prototype.publiclyTrigger=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=this._getCalendar(),t.publiclyTrigger.apply(t,i)},t.prototype.hasPublicHandlers=function(){for(var t,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return t=this._getCalendar(),t.hasPublicHandlers.apply(t,i)},t.prototype.executeDateRender=function(n){this.dateProfile=n;this.renderDates(n);this.isDatesRendered=!0;this.callChildren("executeDateRender",arguments)},t.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments);this.dateProfile=null;this.unrenderDates();this.isDatesRendered=!1},t.prototype.renderDates=function(){},t.prototype.unrenderDates=function(){},t.prototype.getNowIndicatorUnit=function(){},t.prototype.renderNowIndicator=function(){this.callChildren("renderNowIndicator",arguments)},t.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},t.prototype.renderBusinessHours=function(n){this.businessHourRenderer&&this.businessHourRenderer.render(n);this.callChildren("renderBusinessHours",arguments)},t.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments);this.businessHourRenderer&&this.businessHourRenderer.unrender()},t.prototype.executeEventRender=function(n){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(n)):this.renderEvents&&this.renderEvents(a(n));this.callChildren("executeEventRender",arguments)},t.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments);this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},t.prototype.getBusinessHourSegs=function(){var n=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){n.push.apply(n,t.getBusinessHourSegs())}),n},t.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},t.prototype.getEventSegs=function(){var n=this.getOwnEventSegs();return this.iterChildren(function(t){n.push.apply(n,t.getEventSegs())}),n},t.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},t.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs());this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},t.prototype.triggerAfterEventSegsRendered=function(n){var t=this;this.hasPublicHandlers("eventAfterRender")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventAfterRender",{context:i,args:[i,n.el,t]}))})},t.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},t.prototype.triggerBeforeEventSegsDestroyed=function(n){var t=this;this.hasPublicHandlers("eventDestroy")&&n.forEach(function(n){var i;n.el&&(i=n.footprint.getEventLegacy(),t.publiclyTrigger("eventDestroy",{context:i,args:[i,n.el,t]}))})},t.prototype.showEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","")});this.callChildren("showEventsWithId",arguments)},t.prototype.hideEventsWithId=function(n){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===n&&t.el&&t.el.css("visibility","hidden")});this.callChildren("hideEventsWithId",arguments)},t.prototype.renderDrag=function(n,t,i){var r=!1;return this.iterChildren(function(u){u.renderDrag(n,t,i)&&(r=!0)}),r},t.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},t.prototype.renderEventResize=function(){this.callChildren("renderEventResize",arguments)},t.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},t.prototype.renderSelectionFootprint=function(n){this.renderHighlight(n);this.callChildren("renderSelectionFootprint",arguments)},t.prototype.unrenderSelection=function(){this.unrenderHighlight();this.callChildren("unrenderSelection",arguments)},t.prototype.renderHighlight=function(n){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",n,{getClasses:function(){return["fc-highlight"]}});this.callChildren("renderHighlight",arguments)},t.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight");this.callChildren("unrenderHighlight",arguments)},t.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits();this.callChildren("hitsNeeded",arguments)},t.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits();this.callChildren("hitsNotNeeded",arguments)},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(n,t){var r=this.childrenByUid,u,i;for(u in r)if(i=r[u].queryHit(n,t),i)break;return i},t.prototype.getSafeHitFootprint=function(n){var t=this.getHitFootprint(n);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},t.prototype.getHitFootprint=function(){},t.prototype.getHitEl=function(){},t.prototype.eventRangesToEventFootprints=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventRangeToEventFootprints(n[t]));return i},t.prototype.eventRangeToEventFootprints=function(n){return[c.eventRangeToEventFootprint(n)]},t.prototype.eventFootprintsToSegs=function(n){for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.eventFootprintToSegs(n[t]));return i},t.prototype.eventFootprintToSegs=function(n){for(var u=n.componentFootprint.unzonedRange,r,t=this.componentFootprintToSegs(n.componentFootprint),i=0;i<t.length;i++)r=t[i],u.isStart||(r.isStart=!1),u.isEnd||(r.isEnd=!1),r.footprint=n;return t},t.prototype.componentFootprintToSegs=function(){return[]},t.prototype.callChildren=function(n,t){this.iterChildren(function(i){i[n].apply(i,t)})},t.prototype.iterChildren=function(n){var t=this.childrenByUid;for(var i in t)n(t[i])},t.prototype._getCalendar=function(){var n=this;return n.calendar||n.view.calendar},t.prototype._getView=function(){return this.view},t.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},t.prototype.buildGotoAnchorHtml=function(n,t,i){var u,e,s,h;return f.isPlainObject(n)?(u=n.date,e=n.type,s=n.forceOff):u=n,u=o.default(u),h={date:u.format("YYYY-MM-DD"),type:e||"day"},typeof t=="string"&&(i=t,t=null),t=t?" "+r.attrsToStr(t):"",i=i||"",!s&&this.opt("navLinks")?"<a"+t+' data-goto="'+r.htmlEscape(JSON.stringify(h))+'">'+i+"<\/a>":"<span"+t+">"+i+"<\/span>"},t.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||r.htmlEscape(this.opt("allDayText"))},t.prototype.getDayClasses=function(n,t){var u=this._getView(),i=[],f;return this.dateProfile.activeUnzonedRange.containsDate(n)?(i.push("fc-"+r.dayIDs[n.day()]),u.isDateInOtherMonth(n,this.dateProfile)&&i.push("fc-other-month"),f=u.calendar.getNow(),n.isSame(f,"day")?(i.push("fc-today"),t!==!0&&i.push(u.calendar.theme.getClass("today"))):n<f?i.push("fc-past"):i.push("fc-future")):i.push("fc-disabled-day"),i},t.prototype.formatRange=function(n,t,i,r){var u=n.end;return t&&(u=u.clone().subtract(1)),s.formatRange(n.start,u,i,r,this.isRTL)},t.prototype.currentRangeAs=function(n){return this._getDateProfile().currentUnzonedRange.as(n)},t.prototype.computeDayRange=function(n){var r=this._getCalendar(),i=r.msToUtcMoment(n.startMs,!0),u=r.msToUtcMoment(n.endMs),f=+u.time(),t=u.clone().stripTime();return f&&f>=this.nextDayThreshold&&t.add(1,"days"),t<=i&&(t=i.clone().add(1,"days")),{start:i,end:t}},t.prototype.isMultiDayRange=function(n){var t=this.computeDayRange(n);return t.end.diff(t.start,"days")>1},t.guid=0,t}(h.default);t.default=l},function(n,t,i){function v(n,t){return t==null?n:r.isFunction(t)?n.filter(t):(t+="",n.filter(function(n){return n.id==t||n._id===t}))}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(0),s=i(4),e=i(31),y=i(238),h=i(15),p=i(11),w=i(7),c=i(239),b=i(240),k=i(241),d=i(207),g=i(30),u=i(10),l=i(5),nt=i(12),tt=i(18),it=i(242),rt=i(212),a=i(37),ut=i(49),ft=i(13),et=i(36),ot=i(6),st=i(51),o=function(){function n(n,t){this.loadingLevel=0;this.ignoreUpdateViewSize=0;this.freezeContentHeightDepth=0;h.default.needed();this.el=n;this.viewsByType={};this.optionsManager=new b.default(this,t);this.viewSpecManager=new k.default(this.optionsManager,this);this.initMomentInternals();this.initCurrentDate();this.initEventManager();this.constraints=new d.default(this.eventManager,this);this.constructed()}return n.prototype.constructed=function(){},n.prototype.getView=function(){return this.view},n.prototype.publiclyTrigger=function(n,t){var f=this.opt(n),u,i;return r.isPlainObject(t)?(u=t.context,i=t.args):r.isArray(t)&&(i=t),u==null&&(u=this.el[0]),i||(i=[]),this.triggerWith(n,u,i),f?f.apply(u,i):void 0},n.prototype.hasPublicHandlers=function(n){return this.hasHandlers(n)||this.opt(n)},n.prototype.option=function(n,t){var i;if(typeof n=="string"){if(t===undefined)return this.optionsManager.get(n);i={};i[n]=t;this.optionsManager.add(i)}else typeof n=="object"&&this.optionsManager.add(n)},n.prototype.opt=function(n){return this.optionsManager.get(n)},n.prototype.instantiateView=function(n){var t=this.viewSpecManager.getViewSpec(n);if(!t)throw new Error('View type "'+n+'" is not valid');return new t["class"](this,t)},n.prototype.isValidViewType=function(n){return Boolean(this.viewSpecManager.getViewSpec(n))},n.prototype.changeView=function(n,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone());this.renderView(n)},n.prototype.zoomTo=function(n,t){var i;t=t||"day";i=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t);this.currentDate=n.clone();this.renderView(i?i.type:null)},n.prototype.initCurrentDate=function(){var n=this.opt("defaultDate");this.currentDate=n!=null?this.moment(n).stripZone():this.getNow()},n.prototype.prev=function(){var n=this.view,t=n.dateProfileGenerator.buildPrev(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.next=function(){var n=this.view,t=n.dateProfileGenerator.buildNext(n.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},n.prototype.prevYear=function(){this.currentDate.add(-1,"years");this.renderView()},n.prototype.nextYear=function(){this.currentDate.add(1,"years");this.renderView()},n.prototype.today=function(){this.currentDate=this.getNow();this.renderView()},n.prototype.gotoDate=function(n){this.currentDate=this.moment(n).stripZone();this.renderView()},n.prototype.incrementDate=function(n){this.currentDate.add(f.duration(n));this.renderView()},n.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},n.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},n.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},n.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},n.prototype.initialRender=function(){var n=this,t=this.el;t.addClass("fc");t.on("click.fc","a[data-goto]",function(t){var o=r(t.currentTarget),f=o.data("goto"),e=n.moment(f.date),u=f.type,i=n.view.opt("navLink"+s.capitaliseFirstLetter(u)+"Click");typeof i=="function"?i(e,t):(typeof i=="string"&&(u=i),n.zoomTo(e,u))});this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(i){var f=st.getThemeSystemClass(i.themeSystem||i.theme),r=new f(n.optionsManager),u=r.getClass("widget");n.theme=r;u&&t.addClass(u)},function(){var i=n.theme.getClass("widget");n.theme=null;i&&t.removeClass(i)});this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){n.businessHourGenerator=new rt.default(t.businessHours,n);n.view&&n.view.set("businessHourGenerator",n.businessHourGenerator)},function(){n.businessHourGenerator=null});this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(n){t.toggleClass("fc-ltr",!n.isRTL);t.toggleClass("fc-rtl",n.isRTL)});this.contentEl=r("<div class='fc-view-container'/>").prependTo(t);this.initToolbars();this.renderHeader();this.renderFooter();this.renderView(this.opt("defaultView"));this.opt("handleWindowResize")&&r(window).resize(this.windowResizeProxy=s.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},n.prototype.destroy=function(){this.view&&this.clearView();this.toolbarsManager.proxyCall("removeElement");this.contentEl.remove();this.el.removeClass("fc fc-ltr fc-rtl");this.optionsManager.unwatch("settingTheme");this.optionsManager.unwatch("settingBusinessHourGenerator");this.el.off(".fc");this.windowResizeProxy&&(r(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null);h.default.unneeded()},n.prototype.elementVisible=function(){return this.el.is(":visible")},n.prototype.bindViewHandlers=function(n){var t=this;n.watch("titleForCalendar",["title"],function(i){n===t.view&&t.setToolbarsTitle(i.title)});n.watch("dateProfileForCalendar",["dateProfile"],function(i){n===t.view&&(t.currentDate=i.dateProfile.date,t.updateToolbarButtons(i.dateProfile))})},n.prototype.unbindViewHandlers=function(n){n.unwatch("titleForCalendar");n.unwatch("dateProfileForCalendar")},n.prototype.renderView=function(n){var i=this.view,t;this.freezeContentHeight();i&&n&&i.type!==n&&this.clearView();!this.view&&n&&(t=this.view=this.viewsByType[n]||(this.viewsByType[n]=this.instantiateView(n)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(r("<div class='fc-view fc-"+n+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",n));this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender());this.thawContentHeight()},n.prototype.clearView=function(){var n=this.view;this.toolbarsManager.proxyCall("deactivateButton",n.type);this.unbindViewHandlers(n);n.removeElement();n.unsetDate();this.view=null},n.prototype.reinitView=function(){var n=this.view,t=n.queryScroll();this.freezeContentHeight();this.clearView();this.calcSize();this.renderView(n.type);this.view.applyScroll(t);this.thawContentHeight()},n.prototype.getSuggestedViewHeight=function(){return this.suggestedViewHeight==null&&this.calcSize(),this.suggestedViewHeight},n.prototype.isHeightAuto=function(){return this.opt("contentHeight")==="auto"||this.opt("height")==="auto"},n.prototype.updateViewSize=function(n){n===void 0&&(n=!1);var t=this.view,i;if(!this.ignoreUpdateViewSize&&t)return n&&(this.calcSize(),i=t.queryScroll()),this.ignoreUpdateViewSize++,t.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),n),this.ignoreUpdateViewSize--,n&&t.applyScroll(i),!0},n.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},n.prototype._calcSize=function(){var t=this.opt("contentHeight"),n=this.opt("height");this.suggestedViewHeight=typeof t=="number"?t:typeof t=="function"?t():typeof n=="number"?n-this.queryToolbarsHeight():typeof n=="function"?n()-this.queryToolbarsHeight():n==="parent"?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},n.prototype.windowResize=function(n){n.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},n.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},n.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},n.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--;this.contentEl.css({width:"",height:"",overflow:""});this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},n.prototype.initToolbars=function(){this.header=new c.default(this,this.computeHeaderOptions());this.footer=new c.default(this,this.computeFooterOptions());this.toolbarsManager=new y.default([this.header,this.footer])},n.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},n.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},n.prototype.renderHeader=function(){var n=this.header;n.setToolbarOptions(this.computeHeaderOptions());n.render();n.el&&this.el.prepend(n.el)},n.prototype.renderFooter=function(){var n=this.footer;n.setToolbarOptions(this.computeFooterOptions());n.render();n.el&&this.el.append(n.el)},n.prototype.setToolbarsTitle=function(n){this.toolbarsManager.proxyCall("updateTitle",n)},n.prototype.updateToolbarButtons=function(n){var i=this.getNow(),t=this.view,r=t.dateProfileGenerator.build(i),u=t.dateProfileGenerator.buildPrev(t.get("dateProfile")),f=t.dateProfileGenerator.buildNext(t.get("dateProfile"));this.toolbarsManager.proxyCall(r.isValid&&!n.currentUnzonedRange.containsDate(i)?"enableButton":"disableButton","today");this.toolbarsManager.proxyCall(u.isValid?"enableButton":"disableButton","prev");this.toolbarsManager.proxyCall(f.isValid?"enableButton":"disableButton","next")},n.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(n,t){var i=t.el?t.el.outerHeight(!0):0;return n+i},0)},n.prototype.select=function(){this.view.select(this.buildSelectFootprint.apply(this,arguments))},n.prototype.unselect=function(){this.view&&this.view.unselect()},n.prototype.buildSelectFootprint=function(n,t){var i=this.moment(n).stripZone(),r;return r=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new nt.default(new l.default(i,r),!i.hasTime())},n.prototype.initMomentInternals=function(){var n=this;this.defaultAllDayEventDuration=f.duration(this.opt("defaultAllDayEventDuration"));this.defaultTimedEventDuration=f.duration(this.opt("defaultTimedEventDuration"));this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var r=t.weekNumberCalculation,u=t.firstDay,f,i;r==="iso"&&(r="ISO");i=Object.create(g.getMomentLocaleData(t.locale));t.monthNames&&(i._months=t.monthNames);t.monthNamesShort&&(i._monthsShort=t.monthNamesShort);t.dayNames&&(i._weekdays=t.dayNames);t.dayNamesShort&&(i._weekdaysShort=t.dayNamesShort);u==null&&r==="ISO"&&(u=1);u!=null&&(f=Object.create(i._week),f.dow=u,i._week=f);(r==="ISO"||r==="local"||typeof r=="function")&&(i._fullCalendar_weekCalc=r);n.localeData=i;n.currentDate&&n.localizeMoment(n.currentDate)})},n.prototype.moment=function(){for(var n,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return this.opt("timezone")==="local"?(n=u.default.apply(null,t),n.hasTime()&&n.local()):n=this.opt("timezone")==="UTC"?u.default.utc.apply(null,t):u.default.parseZone.apply(null,t),this.localizeMoment(n),n},n.prototype.msToMoment=function(n,t){var i=u.default.utc(n);return t?i.stripTime():i=this.applyTimezone(i),this.localizeMoment(i),i},n.prototype.msToUtcMoment=function(n,t){var i=u.default.utc(n);return t&&i.stripTime(),this.localizeMoment(i),i},n.prototype.localizeMoment=function(n){n._locale=this.localeData},n.prototype.getIsAmbigTimezone=function(){return this.opt("timezone")!=="local"&&this.opt("timezone")!=="UTC"},n.prototype.applyTimezone=function(n){if(!n.hasTime())return n.clone();var t=this.moment(n.toArray()),r=n.time().asMilliseconds()-t.time().asMilliseconds(),i;return r&&(i=t.clone().add(r),n.time().asMilliseconds()-i.time().asMilliseconds()==0&&(t=i)),t},n.prototype.footprintToDateProfile=function(n,t){t===void 0&&(t=!1);var r=u.default.utc(n.unzonedRange.startMs),i;return t||(i=u.default.utc(n.unzonedRange.endMs)),n.isAllDay?(r.stripTime(),i&&i.stripTime()):(r=this.applyTimezone(r),i&&(i=this.applyTimezone(i))),new tt.default(r,i,this)},n.prototype.getNow=function(){var n=this.opt("now");return typeof n=="function"&&(n=n()),this.moment(n).stripZone()},n.prototype.humanizeDuration=function(n){return n.locale(this.opt("locale")).humanize()},n.prototype.parseUnzonedRange=function(n){var t=null,i=null;return(n.start&&(t=this.moment(n.start).stripZone()),n.end&&(i=this.moment(n.end).stripZone()),!t&&!i)?null:t&&i&&i.isBefore(t)?null:new l.default(t,i)},n.prototype.initEventManager=function(){var t=this,n=new it.default(this),i=this.opt("eventSources")||[],r=this.opt("events");this.eventManager=n;r&&i.unshift(r);n.on("release",function(n){t.trigger("eventsReset",n)});n.freeze();i.forEach(function(i){var r=a.default.parse(i,t);r&&n.addSource(r)});n.thaw()},n.prototype.requestEvents=function(n,t){return this.eventManager.requestEvents(n,t,this.opt("timezone"),!this.opt("lazyFetching"))},n.prototype.getEventEnd=function(n){return n.end?n.end.clone():this.getDefaultEventEnd(n.allDay,n.start)},n.prototype.getDefaultEventEnd=function(n,t){var i=t.clone();return n?i.stripTime().add(this.defaultAllDayEventDuration):i.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&i.stripZone(),i},n.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},n.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},n.prototype.renderEvents=function(n,t){this.eventManager.freeze();for(var i=0;i<n.length;i++)this.renderEvent(n[i],t);this.eventManager.thaw()},n.prototype.renderEvent=function(n,t){t===void 0&&(t=!1);var i=this.eventManager,r=ut.default.parse(n,n.source||i.stickySource);r&&i.addEventDef(r,t)},n.prototype.removeEvents=function(n){var i=this.eventManager,r=[],u={},f,t;if(n==null)i.removeAllEventDefs();else{for(i.getEventInstances().forEach(function(n){r.push(n.toLegacy())}),r=v(r,n),t=0;t<r.length;t++)f=this.eventManager.getEventDefByUid(r[t]._id),u[f.id]=!0;i.freeze();for(t in u)i.removeEventDefsById(t);i.thaw()}},n.prototype.clientEvents=function(n){var t=[];return this.eventManager.getEventInstances().forEach(function(n){t.push(n.toLegacy())}),v(t,n)},n.prototype.updateEvents=function(n){this.eventManager.freeze();for(var t=0;t<n.length;t++)this.updateEvent(n[t]);this.eventManager.thaw()},n.prototype.updateEvent=function(n){var t=this.eventManager.getEventDefByUid(n._id),i,r;t instanceof ft.default&&(i=t.buildInstance(),r=et.default.createFromRawProps(i,n,null),this.eventManager.mutateEventsWithId(t.id,r))},n.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},n.prototype.getEventSourceById=function(n){return this.eventManager.getSourceById(ot.default.normalizeId(n))},n.prototype.addEventSource=function(n){var t=a.default.parse(n,this);t&&this.eventManager.addSource(t)},n.prototype.removeEventSources=function(n){var t=this.eventManager,r,i;if(n==null)this.eventManager.removeAllSources();else{for(r=t.multiQuerySources(n),t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()}},n.prototype.removeEventSource=function(n){var t=this.eventManager,r=t.querySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.removeSource(r[i]);t.thaw()},n.prototype.refetchEventSources=function(n){var t=this.eventManager,r=t.multiQuerySources(n),i;for(t.freeze(),i=0;i<r.length;i++)t.refetchSource(r[i]);t.thaw()},n.defaults=e.globalDefaults,n.englishDefaults=e.englishDefaults,n.rtlDefaults=e.rtlDefaults,n}();t.default=o;p.default.mixInto(o);w.default.mixInto(o)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),f=i(4),u=i(5),e=function(){function n(n){this._view=n}return n.prototype.opt=function(n){return this._view.opt(n)},n.prototype.trimHiddenDays=function(n){return this._view.trimHiddenDays(n)},n.prototype.msToUtcMoment=function(n,t){return this._view.calendar.msToUtcMoment(n,t)},n.prototype.buildPrev=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).subtract(n.dateIncrement);return this.build(t,-1)},n.prototype.buildNext=function(n){var t=n.date.clone().startOf(n.currentRangeUnit).add(n.dateIncrement);return this.build(t,1)},n.prototype.build=function(n,t,i){i===void 0&&(i=!1);var l=!n.hasTime(),e,s=null,h=null,f,c,o,u,a;return e=this.buildValidRange(),e=this.trimHiddenDays(e),i&&(n=this.msToUtcMoment(e.constrainDate(n),l)),f=this.buildCurrentRangeInfo(n,t),c=/^(year|month|week|day)$/.test(f.unit),o=this.buildRenderRange(this.trimHiddenDays(f.unzonedRange),f.unit,c),o=this.trimHiddenDays(o),u=o.clone(),this.opt("showNonCurrentDates")||(u=u.intersect(f.unzonedRange)),s=r.duration(this.opt("minTime")),h=r.duration(this.opt("maxTime")),u=this.adjustActiveRange(u,s,h),u=u.intersect(e),u&&(n=this.msToUtcMoment(u.constrainDate(n),l)),a=f.unzonedRange.intersectsWith(e),{validUnzonedRange:e,currentUnzonedRange:f.unzonedRange,currentRangeUnit:f.unit,isRangeAllDay:c,activeUnzonedRange:u,renderUnzonedRange:o,minTime:s,maxTime:h,isValid:a,date:n,dateIncrement:this.buildDateIncrement(f.duration)}},n.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new u.default},n.prototype.buildCurrentRangeInfo=function(n,t){var e=this._view.viewSpec,u=null,i=null,r=null,o;return e.duration?(u=e.duration,i=e.durationUnit,r=this.buildRangeFromDuration(n,t,u,i)):(o=this.opt("dayCount"))?(i="day",r=this.buildRangeFromDayCount(n,t,o)):(r=this.buildCustomVisibleRange(n))?i=f.computeGreatestUnit(r.getStart(),r.getEnd()):(u=this.getFallbackDuration(),i=f.computeGreatestUnit(u),r=this.buildRangeFromDuration(n,t,u,i)),{duration:u,unit:i,unzonedRange:r}},n.prototype.getFallbackDuration=function(){return r.duration({days:1})},n.prototype.adjustActiveRange=function(n,t,i){var r=n.getStart(),f=n.getEnd();return this._view.usesMinMaxTime&&(t<0&&r.time(0).add(t),i>864e5&&f.time(i-864e5)),new u.default(r,f)},n.prototype.buildRangeFromDuration=function(n,t,i,e){function v(){o=n.clone().startOf(s);a=o.clone().add(i);l=new u.default(o,a)}var s=this.opt("dateAlignment"),h,c,o,a,l;return s||(h=this.opt("dateIncrement"),h?(c=r.duration(h),s=c<i?f.computeDurationGreatestUnit(c,h):e):s=e),i.as("days")<=1&&this._view.isHiddenDay(o)&&(o=this._view.skipHiddenDays(o,t),o.startOf("day")),v(),this.trimHiddenDays(l)||(n=this._view.skipHiddenDays(n,t),v()),l},n.prototype.buildRangeFromDayCount=function(n,t,i){var e=this.opt("dateAlignment"),o=0,r=n.clone(),f;e&&r.startOf(e);r.startOf("day");r=this._view.skipHiddenDays(r,t);f=r.clone();do f.add(1,"day"),this._view.isHiddenDay(f)||o++;while(o<i);return new u.default(r,f)},n.prototype.buildCustomVisibleRange=function(n){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(n));return t&&(t.startMs==null||t.endMs==null)?null:t},n.prototype.buildRenderRange=function(n){return n.clone()},n.prototype.buildDateIncrement=function(n){var t=this.opt("dateIncrement"),i;return t?r.duration(t):(i=this.opt("dateAlignment"))?r.duration(1,i):n?n:r.duration({days:1})},n}();t.default=e},function(n,t,i){function w(n){var e=f.dataAttrPrefix,t,i,o,s;return e&&(e+="-"),t=n.data(e+"event")||null,t&&(t=typeof t=="object"?r.extend({},t):{},i=t.start,i==null&&(i=t.time),o=t.duration,s=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick),i==null&&(i=n.data(e+"start")),i==null&&(i=n.data(e+"time")),o==null&&(o=n.data(e+"duration")),s==null&&(s=n.data(e+"stick")),i=i!=null?u.duration(i):null,o=o!=null?u.duration(o):null,s=Boolean(s),{eventProps:t,startTime:i,duration:o,stick:s}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),r=i(3),u=i(0),f=i(17),e=i(4),h=i(10),c=i(7),l=i(22),a=i(13),v=i(19),y=i(6),p=i(16),o=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.isDragging=!1,t}return s.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToDocument=function(){this.listenTo(r(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},t.prototype.unbindFromDocument=function(){this.stopListeningTo(r(document))},t.prototype.handleDragStart=function(n,t){var i,u;this.opt("droppable")&&(i=r((t?t.item:null)||n.target),u=this.opt("dropAccept"),(r.isFunction(u)?u.call(i[0],i):i.is(u))&&(this.isDragging||this.listenToExternalDrag(i,n,t)))},t.prototype.listenToExternalDrag=function(n,t,i){var f=this,u=this.component,s=this.view,o=w(n),r,h=this.dragListener=new l.default(u,{interactionStart:function(){f.isDragging=!0},hitOver:function(n){var t=!0,h=n.component.getSafeHitFootprint(n),i;h?(r=f.computeExternalDrop(h,o),r?(i=new v.default(r.buildInstances()),t=o.eventProps?u.isEventInstanceGroupAllowed(i):u.isExternalInstanceGroupAllowed(i)):t=!1):t=!1;t||(r=null,e.disableCursor());r&&u.renderDrag(u.eventRangesToEventFootprints(i.sliceRenderRanges(u.dateProfile.renderUnzonedRange,s.calendar)))},hitOut:function(){r=null},hitDone:function(){e.enableCursor();u.unrenderDrag()},interactionEnd:function(t){r&&s.reportExternalDrop(r,Boolean(o.eventProps),Boolean(o.stick),n,t,i);f.isDragging=!1;f.dragListener=null}});h.startDrag(t)},t.prototype.computeExternalDrop=function(n,t){var f=this.view.calendar,i=h.default.utc(n.unzonedRange.startMs).stripZone(),u;return n.isAllDay&&(t.startTime?i.time(t.startTime):i.stripTime()),t.duration&&(u=i.clone().add(t.duration)),i=f.applyTimezone(i),u&&(u=f.applyTimezone(u)),a.default.parse(r.extend({},t.eventProps,{start:i,end:u}),new y.default(f))},t}(p.default);t.default=o;c.default.mixInto(o);f.dataAttrPrefix=""},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(2),r=i(3),u=i(4),f=i(36),e=i(50),s=i(22),h=i(16),c=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isResizing=!1,r.eventPointing=i,r}return o.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMouseDown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMouseDown=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){this.component.canStartResize(n,t)&&this.buildDragListener(n,r(t.target).is(".fc-start-resizer")).startInteraction(t)},t.prototype.buildDragListener=function(n,t){var r=this,f=this.component,e=this.view,h=e.calendar,l=h.eventManager,c=n.el,a=n.footprint.eventDef,v=n.footprint.eventInstance,o,i;return this.dragListener=new s.default(f,{scroll:this.opt("dragScroll"),subjectEl:c,interactionStart:function(){o=!1},dragStart:function(t){o=!0;r.eventPointing.handleMouseout(n,t);r.segResizeStart(n,t)},hitOver:function(o,s,c){var v=!0,y=f.getSafeHitFootprint(c),p=f.getSafeHitFootprint(o),w;y&&p?(i=t?r.computeEventStartResizeMutation(y,p,n.footprint):r.computeEventEndResizeMutation(y,p,n.footprint),i?(w=l.buildMutatedEventInstanceGroup(a.id,i),v=f.isEventInstanceGroupAllowed(w)):v=!1):v=!1;v?i.isEmpty()&&(i=null):(i=null,u.disableCursor());i&&(e.hideEventsWithId(n.footprint.eventDef.id),e.renderEventResize(f.eventRangesToEventFootprints(w.sliceRenderRanges(f.dateProfile.renderUnzonedRange,h)),n))},hitOut:function(){i=null},hitDone:function(){e.unrenderEventResize(n);e.showEventsWithId(n.footprint.eventDef.id);u.enableCursor()},interactionEnd:function(t){o&&r.segResizeStop(n,t);i&&e.reportEventResize(v,i,c,t);r.dragListener=null}})},t.prototype.segResizeStart=function(n,t){this.isResizing=!0;this.component.publiclyTrigger("eventResizeStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segResizeStop=function(n,t){this.isResizing=!1;this.component.publiclyTrigger("eventResizeStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventStartResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getStart(),n.unzonedRange.getStart()),r,u;return o.getStart().add(s)<o.getEnd()?(r=new e.default,r.setStartDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t.prototype.computeEventEndResizeMutation=function(n,t,i){var o=i.componentFootprint.unzonedRange,s=this.component.diffDates(t.unzonedRange.getEnd(),n.unzonedRange.getEnd()),r,u;return o.getEnd().add(s)>o.getStart()?(r=new e.default,r.setEndDelta(s),u=new f.default,u.setDateMutation(r),u):!1},t}(h.default);t.default=c},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=i(4),e=i(36),o=i(50),s=i(54),h=i(22),c=i(244),u=i(15),l=i(16),a=function(n){function t(t,i){var r=n.call(this,t)||this;return r.isDragging=!1,r.eventPointing=i,r}return f.__extends(t,n),t.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},t.prototype.getSelectionDelay=function(){var n=this.opt("eventLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this.component;t.bindSegHandlerToEl(n,"mousedown",this.handleMousedown.bind(this));t.bindSegHandlerToEl(n,"touchstart",this.handleTouchStart.bind(this))},t.prototype.handleMousedown=function(n,t){!u.default.get().shouldIgnoreMouse()&&this.component.canStartDrag(n,t)&&this.buildDragListener(n).startInteraction(t,{distance:5})},t.prototype.handleTouchStart=function(n,t){var i=this.component,r={delay:this.view.isEventDefSelected(n.footprint.eventDef)?0:this.getSelectionDelay()};u.default.get().shouldIgnoreMouse()||(i.canStartDrag(n,t)?this.buildDragListener(n).startInteraction(t,r):i.canStartSelection(n,t)&&this.buildSelectListener(n).startInteraction(t,r))},t.prototype.buildSelectListener=function(n){var u=this,t=this.view,f=n.footprint.eventDef,i=n.footprint.eventInstance,r;return this.dragListener?this.dragListener:r=this.dragListener=new s.default({dragStart:function(){r.isTouch&&!t.isEventDefSelected(f)&&i&&t.selectEventInstance(i)},interactionEnd:function(){u.dragListener=null}})},t.prototype.buildDragListener=function(n){var u=this,e=this.component,t=this.view,v=t.calendar,p=v.eventManager,y=n.el,s=n.footprint.eventDef,l=n.footprint.eventInstance,a,f,i,o;return this.dragListener?this.dragListener:o=this.dragListener=new h.default(t,{scroll:this.opt("dragScroll"),subjectEl:y,subjectCenter:!0,interactionStart:function(i){n.component=e;a=!1;f=new c.default(n.el,{additionalClass:"fc-dragging",parentEl:t.el,opacity:o.isTouch?null:u.opt("dragOpacity"),revertDuration:u.opt("dragRevertDuration"),zIndex:2});f.hide();f.start(i)},dragStart:function(i){o.isTouch&&!t.isEventDefSelected(s)&&l&&t.selectEventInstance(l);a=!0;u.eventPointing.handleMouseout(n,i);u.segDragStart(n,i);t.hideEventsWithId(n.footprint.eventDef.id)},hitOver:function(h,c,l){var a=!0,y,w,b;n.hit&&(l=n.hit);y=l.component.getSafeHitFootprint(l);w=h.component.getSafeHitFootprint(h);y&&w?(i=u.computeEventDropMutation(y,w,s),i?(b=p.buildMutatedEventInstanceGroup(s.id,i),a=e.isEventInstanceGroupAllowed(b)):a=!1):a=!1;a||(i=null,r.disableCursor());i&&t.renderDrag(e.eventRangesToEventFootprints(b.sliceRenderRanges(e.dateProfile.renderUnzonedRange,v)),n,o.isTouch)?f.hide():f.show();c&&(i=null)},hitOut:function(){t.unrenderDrag(n);f.show();i=null},hitDone:function(){r.enableCursor()},interactionEnd:function(r){delete n.component;f.stop(!i,function(){a&&(t.unrenderDrag(n),u.segDragStop(n,r));t.showEventsWithId(n.footprint.eventDef.id);i&&t.reportEventDrop(l,i,y,r)});u.dragListener=null}})},t.prototype.segDragStart=function(n,t){this.isDragging=!0;this.component.publiclyTrigger("eventDragStart",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.segDragStop=function(n,t){this.isDragging=!1;this.component.publiclyTrigger("eventDragStop",{context:n.el[0],args:[n.footprint.getEventLegacy(),t,{},this.view]})},t.prototype.computeEventDropMutation=function(n,t){var i=new e.default;return i.setDateMutation(this.computeEventDateMutation(n,t)),i},t.prototype.computeEventDateMutation=function(n,t){var r=n.unzonedRange.getStart(),h=t.unzonedRange.getStart(),u=!1,f=!1,e=!1,s,i;return n.isAllDay!==t.isAllDay&&(u=!0,t.isAllDay?(e=!0,r.stripTime()):f=!0),s=this.component.diffDates(h,r),i=new o.default,i.clearEnd=u,i.forceTimed=f,i.forceAllDay=e,i.setDateDelta(s),i},t}(l.default);t.default=a},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(22),e=i(12),o=i(5),s=i(16),h=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return u.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.getDelay=function(){var n=this.opt("selectLongPressDelay");return n==null&&(n=this.opt("longPressDelay")),n},t.prototype.bindToEl=function(n){var t=this,i=this.component,u=this.dragListener;i.bindDateHandlerToEl(n,"mousedown",function(n){t.opt("selectable")&&!i.shouldIgnoreMouse()&&u.startInteraction(n,{distance:t.opt("selectMinDistance")})});i.bindDateHandlerToEl(n,"touchstart",function(n){t.opt("selectable")&&!i.shouldIgnoreTouch()&&u.startInteraction(n,{delay:t.getDelay()})});r.preventSelection(n)},t.prototype.buildDragListener=function(){var i=this,t=this.component,n;return new f.default(t,{scroll:this.opt("dragScroll"),interactionStart:function(){n=null},dragStart:function(n){i.view.unselect(n)},hitOver:function(u,f,e){var o,s;e&&(o=t.getSafeHitFootprint(e),s=t.getSafeHitFootprint(u),n=o&&s?i.computeSelection(o,s):null,n?t.renderSelectionFootprint(n):n===!1&&r.disableCursor())},hitOut:function(){n=null;t.unrenderSelection()},hitDone:function(){r.enableCursor()},interactionEnd:function(t,r){!r&&n&&i.view.reportSelection(n,t)}})},t.prototype.computeSelection=function(n,t){var i=this.computeSelectionFootprint(n,t);return i&&!this.isSelectionFootprintAllowed(i)?!1:i},t.prototype.computeSelectionFootprint=function(n,t){var i=[n.unzonedRange.startMs,n.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return i.sort(r.compareNumbers),new e.default(new o.default(i[0],i[3]),n.isAllDay)},t.prototype.isSelectionFootprintAllowed=function(n){return this.component.dateProfile.validUnzonedRange.containsRange(n.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(n)},t}(s.default);t.default=h},function(n,t,i){function o(n){for(var i=[],r=[],t=0;t<n.length;t++)n[t].componentFootprint.isAllDay?i.push(n[t]):r.push(n[t]);return{allDay:i,timed:r}}Object.defineProperty(t,"__esModule",{value:!0});var s=i(2),h=i(0),c=i(3),r=i(4),l=i(39),a=i(41),v=i(227),y=i(61),p=5,f,e,u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.usesMinMaxTime=!0,r.timeGrid=r.instantiateTimeGrid(),r.addChild(r.timeGrid),r.opt("allDaySlot")&&(r.dayGrid=r.instantiateDayGrid(),r.addChild(r.dayGrid)),r.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),r}return s.__extends(t,n),t.prototype.instantiateTimeGrid=function(){var n=new this.timeGridClass(this);return r.copyOwnProps(f,n),n},t.prototype.instantiateDayGrid=function(){var n=new this.dayGridClass(this);return r.copyOwnProps(e,n),n},t.prototype.renderSkeleton=function(){var n,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml());this.scroller.render();n=this.scroller.el.addClass("fc-time-grid-container");t=c('<div class="fc-time-grid" />').appendTo(n);this.el.find(".fc-body > tr > td").append(n);this.timeGrid.headContainerEl=this.el.find(".fc-head-container");this.timeGrid.setElement(t);this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},t.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement();this.dayGrid&&this.dayGrid.removeElement();this.scroller.destroy()},t.prototype.renderSkeletonHtml=function(){var n=this.calendar.theme;return'<table class="'+n.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+n.getClass("widgetHeader")+'"> <\/td><\/tr><\/thead>':"")+'<tbody class="fc-body"><tr><td class="'+n.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+n.getClass("widgetHeader")+'"/>':"")+"<\/td><\/tr><\/tbody><\/table>"},t.prototype.axisStyleAttr=function(){return this.axisWidth!=null?'style="width:'+this.axisWidth+'px"':""},t.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},t.prototype.updateSize=function(t,i,u){var e,f,o,s;if(n.prototype.updateSize.call(this,t,i,u),this.axisWidth=r.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls){i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f));return}s=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide();this.scroller.clear();r.uncompensateScroll(s);this.dayGrid&&(this.dayGrid.removeSegPopover(),e=this.opt("eventLimit"),e&&typeof e!="number"&&(e=p),e&&this.dayGrid.limitRows(e));i||(f=this.computeScrollerHeight(t),this.scroller.setHeight(f),o=this.scroller.getScrollbarWidths(),(o.left||o.right)&&(r.compensateScroll(s,o),f=this.computeScrollerHeight(t),this.scroller.setHeight(f)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<f&&this.timeGrid.bottomRuleEl.show())},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.computeInitialDateScroll=function(){var t=h.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(t);return n=Math.ceil(n),n&&n++,{top:n}},t.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},t.prototype.applyDateScroll=function(n){n.top!==undefined&&this.scroller.setScrollTop(n.top)},t.prototype.getHitFootprint=function(n){return n.component.getHitFootprint(n)},t.prototype.getHitEl=function(n){return n.component.getHitEl(n)},t.prototype.executeEventRender=function(n){var r={},u={},t,i;for(t in n)i=n[t],i.getEventDef().isAllDay()?r[t]=i:u[t]=i;this.timeGrid.executeEventRender(u);this.dayGrid&&this.dayGrid.executeEventRender(r)},t.prototype.renderDrag=function(n,t,i){var u=o(n),r=!1;return r=this.timeGrid.renderDrag(u.timed,t,i),this.dayGrid&&(r=this.dayGrid.renderDrag(u.allDay,t,i)||r),r},t.prototype.renderEventResize=function(n,t,i){var r=o(n);this.timeGrid.renderEventResize(r.timed,t,i);this.dayGrid&&this.dayGrid.renderEventResize(r.allDay,t,i)},t.prototype.renderSelectionFootprint=function(n){n.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(n):this.timeGrid.renderSelectionFootprint(n)},t}(a.default);t.default=u;u.prototype.timeGridClass=v.default;u.prototype.dayGridClass=y.default;f={renderHeadIntroHtml:function(){var n=this.view,t=n.calendar,i=t.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),u;return this.opt("weekNumbers")?(u=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+">"+n.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt>1},r.htmlEscape(u))+"<\/th>"):'<th class="fc-axis '+t.theme.getClass("widgetHeader")+'" '+n.axisStyleAttr()+"><\/th>"},renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}};e={renderBgIntroHtml:function(){var n=this.view;return'<td class="fc-axis '+n.calendar.theme.getClass("widgetContent")+'" '+n.axisStyleAttr()+"><span>"+n.getAllDayHtml()+"<\/span><\/td>"},renderIntroHtml:function(){var n=this.view;return'<td class="fc-axis" '+n.axisStyleAttr()+"><\/td>"}}},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var l=i(2),f=i(3),r=i(0),e=i(4),a=i(40),v=i(56),y=i(60),p=i(55),s=i(53),o=i(5),h=i(12),w=i(246),b=i(247),k=i(248),c=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],u=function(n){function t(t){var i=n.call(this,t)||this;return i.processOptions(),i}return l.__extends(t,n),t.prototype.componentFootprintToSegs=function(n){for(var i=this.sliceRangeByTimes(n.unzonedRange),t=0;t<i.length;t++)i[t].col=this.isRTL?this.daysPerRow-1-i[t].dayIndex:i[t].dayIndex;return i},t.prototype.sliceRangeByTimes=function(n){for(var r=[],t,i=0;i<this.daysPerRow;i++)t=n.intersect(this.dayRanges[i]),t&&r.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:i});return r},t.prototype.processOptions=function(){var t=this.opt("slotDuration"),i=this.opt("snapDuration"),n;t=r.duration(t);i=i?r.duration(i):t;this.slotDuration=t;this.snapDuration=i;this.snapsPerSlot=t/i;n=this.opt("slotLabelFormat");f.isArray(n)&&(n=n[n.length-1]);this.labelFormat=n||this.opt("smallTimeFormat");n=this.opt("slotLabelInterval");this.labelInterval=n?r.duration(n):this.computeLabelInterval(t)},t.prototype.computeLabelInterval=function(n){for(var i,u,t=c.length-1;t>=0;t--)if(i=r.duration(c[t]),u=e.divideDurationByDuration(i,n),e.isInt(u)&&u>1)return i;return r.duration(n)},t.prototype.renderDates=function(n){this.dateProfile=n;this.updateDayTable();this.renderSlats();this.renderColumns()},t.prototype.unrenderDates=function(){this.unrenderColumns()},t.prototype.renderSkeleton=function(){var n=this.view.calendar.theme;this.el.html('<div class="fc-bg"><\/div><div class="fc-slats"><\/div><hr class="fc-divider '+n.getClass("widgetHeader")+'" style="display:none" />');this.bottomRuleEl=this.el.find("hr")},t.prototype.renderSlats=function(){var n=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+n.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"<\/table>");this.slatEls=this.slatContainerEl.find("tr");this.slatCoordCache=new s.default({els:this.slatEls,isVertical:!0})},t.prototype.renderSlatRowHtml=function(){for(var o=this.view,s=o.calendar,h=s.theme,c=this.isRTL,n=this.dateProfile,l="",t=r.duration(+n.minTime),a=r.duration(0),i,u,f;t<n.maxTime;)i=s.msToUtcMoment(n.renderUnzonedRange.startMs).time(t),u=e.isInt(e.divideDurationByDuration(a,this.labelInterval)),f='<td class="fc-axis fc-time '+h.getClass("widgetContent")+'" '+o.axisStyleAttr()+">"+(u?"<span>"+e.htmlEscape(i.format(this.labelFormat))+"<\/span>":"")+"<\/td>",l+='<tr data-time="'+i.format("HH:mm:ss")+'"'+(u?"":' class="fc-minor"')+">"+(c?"":f)+'<td class="'+h.getClass("widgetContent")+'"/>'+(c?f:"")+"<\/tr>",t.add(this.slotDuration),a.add(this.slotDuration);return l},t.prototype.renderColumns=function(){var n=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new o.default(t.clone().add(n.minTime),t.clone().add(n.maxTime))});this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml());this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"<\/table>");this.colEls=this.el.find(".fc-day, .fc-disabled-day");this.colCoordCache=new s.default({els:this.colEls,isHorizontal:!0});this.renderContentSkeleton()},t.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},t.prototype.renderContentSkeleton=function(){for(var i="",n,t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"><\/div><div class="fc-event-container"><\/div><div class="fc-highlight-container"><\/div><div class="fc-bgevent-container"><\/div><div class="fc-business-container"><\/div><\/div><\/td>';n=this.contentSkeletonEl=f('<div class="fc-content-skeleton"><table><tr>'+i+"<\/tr><\/table><\/div>");this.colContainerEls=n.find(".fc-content-col");this.helperContainerEls=n.find(".fc-helper-container");this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)");this.bgContainerEls=n.find(".fc-bgevent-container");this.highlightContainerEls=n.find(".fc-highlight-container");this.businessContainerEls=n.find(".fc-business-container");this.bookendCells(n.find("tr"));this.el.append(n)},t.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},t.prototype.groupSegsByCol=function(n){for(var i=[],t=0;t<this.colCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].col].push(n[t]);return i},t.prototype.attachSegsByCol=function(n,t){for(var u,r,i=0;i<this.colCnt;i++)for(u=n[i],r=0;r<u.length;r++)t.eq(i).append(u[r].el)},t.prototype.getNowIndicatorUnit=function(){return"minute"},t.prototype.renderNowIndicator=function(n){if(this.colContainerEls){for(var i=this.componentFootprintToSegs(new h.default(new o.default(n,n.valueOf()+1),!1)),u=this.computeDateTop(n,n),r=[],t=0;t<i.length;t++)r.push(f('<div class="fc-now-indicator fc-now-indicator-line"><\/div>').css("top",u).appendTo(this.colContainerEls.eq(i[t].col))[0]);i.length>0&&r.push(f('<div class="fc-now-indicator fc-now-indicator-arrow"><\/div>').css("top",u).appendTo(this.el.find(".fc-content-skeleton"))[0]);this.nowIndicatorEls=f(r)}},t.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},t.prototype.updateSize=function(t,i,r){n.prototype.updateSize.call(this,t,i,r);this.slatCoordCache.build();r&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},t.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},t.prototype.computeDateTop=function(n,t){return this.computeTimeTop(r.duration(n-t.clone().stripTime()))},t.prototype.computeTimeTop=function(n){var r=this.slatEls.length,f=this.dateProfile,t=(n-f.minTime)/this.slotDuration,i,u;return t=Math.max(0,t),t=Math.min(r,t),i=Math.floor(t),i=Math.min(i,r-1),u=t-i,this.slatCoordCache.getTopPosition(i)+this.slatCoordCache.getHeight(i)*u},t.prototype.updateSegVerticals=function(n){this.computeSegVerticals(n);this.assignSegVerticals(n)},t.prototype.computeSegVerticals=function(n){for(var u=this.opt("agendaEventMinHeight"),t,r,i=0;i<n.length;i++)t=n[i],r=this.dayDates[t.dayIndex],t.top=this.computeDateTop(t.startMs,r),t.bottom=Math.max(t.top+u,this.computeDateTop(t.endMs,r))},t.prototype.assignSegVerticals=function(n){for(var i,t=0;t<n.length;t++)i=n[t],i.el.css(this.generateSegVerticalCss(i))},t.prototype.generateSegVerticalCss=function(n){return{top:n.top,bottom:-n.bottom}},t.prototype.prepareHits=function(){this.colCoordCache.build();this.slatCoordCache.build()},t.prototype.releaseHits=function(){this.colCoordCache.clear()},t.prototype.queryHit=function(n,t){var u=this.snapsPerSlot,f=this.colCoordCache,e=this.slatCoordCache,i,r;if(f.isLeftInBounds(n)&&e.isTopInBounds(t)&&(i=f.getHorizontalIndex(n),r=e.getVerticalIndex(t),i!=null&&r!=null)){var o=e.getTopOffset(r),s=e.getHeight(r),c=(t-o)/s,h=Math.floor(c*u),l=r*u+h,a=o+h/u*s,v=o+(h+1)/u*s;return{col:i,snap:l,component:this,left:f.getLeftOffset(i),right:f.getRightOffset(i),top:a,bottom:v}}},t.prototype.getHitFootprint=function(n){var t=this.getCellDate(0,n.col),r=this.computeSnapTime(n.snap),i;return t.time(r),i=t.clone().add(this.snapDuration),new h.default(new o.default(t,i),!1)},t.prototype.computeSnapTime=function(n){return r.duration(this.dateProfile.minTime+this.snapDuration*n)},t.prototype.getHitEl=function(n){return this.colEls.eq(n.col)},t.prototype.renderDrag=function(n,t,i){var r;if(t){if(n.length)return this.helperRenderer.renderEventDraggingFootprints(n,t,i),!0}else for(r=0;r<n.length;r++)this.renderHighlight(n[r].componentFootprint)},t.prototype.unrenderDrag=function(){this.unrenderHighlight();this.helperRenderer.unrender()},t.prototype.renderEventResize=function(n,t,i){this.helperRenderer.renderEventResizingFootprints(n,t,i)},t.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},t.prototype.renderSelectionFootprint=function(n){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(n):this.renderHighlight(n)},t.prototype.unrenderSelection=function(){this.helperRenderer.unrender();this.unrenderHighlight()},t}(a.default);t.default=u;u.prototype.eventRendererClass=w.default;u.prototype.businessHourRendererClass=v.default;u.prototype.helperRendererClass=b.default;u.prototype.fillRendererClass=k.default;y.default.mixInto(u);p.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(5),f=i(221),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),f=this.msToUtcMoment(e.endMs,r);return/^(year|month)$/.test(i)&&(o.startOf("week"),f.weekday()&&f.add(1,"week").startOf("week")),new u.default(o,f)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(0),e=i(4),o=i(62),s=i(253),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.setGridHeight=function(n,t){t&&(n*=this.dayGrid.rowCnt/6);e.distributeHeight(this.dayGrid.rowEls,n,!t)},t.prototype.isDateInOtherMonth=function(n,t){return n.month()!==f.utc(t.currentUnzonedRange.startMs).month()},t}(o.default);t.default=r;r.prototype.dateProfileGeneratorClass=s.default},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),e=i(3),r=i(4),o=i(5),s=i(41),h=i(39),c=i(254),l=i(255),u=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.segSelector=".fc-list-item",r.scroller=new h.default({overflowX:"hidden",overflowY:"auto"}),r}return f.__extends(t,n),t.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView"));this.scroller.render();this.scroller.el.appendTo(this.el);this.contentEl=this.scroller.scrollEl},t.prototype.unrenderSkeleton=function(){this.scroller.destroy()},t.prototype.updateSize=function(n){this.scroller.setHeight(this.computeScrollerHeight(n))},t.prototype.computeScrollerHeight=function(n){return n-r.subtractInnerElHeight(this.el,this.scroller.el)},t.prototype.renderDates=function(n){for(var i=this.calendar,t=i.msToUtcMoment(n.renderUnzonedRange.startMs,!0),f=i.msToUtcMoment(n.renderUnzonedRange.endMs,!0),r=[],u=[];t<f;)r.push(t.clone()),u.push(new o.default(t,t.clone().add(1,"day"))),t.add(1,"day");this.dayDates=r;this.dayRanges=u},t.prototype.componentFootprintToSegs=function(n){for(var u=this.dayRanges,i,r,f=[],t=0;t<u.length;t++)if(i=n.unzonedRange.intersect(u[t]),i&&(r={startMs:i.startMs,endMs:i.endMs,isStart:i.isStart,isEnd:i.isEnd,dayIndex:t},f.push(r),!r.isEnd&&!n.isAllDay&&t+1<u.length&&n.unzonedRange.endMs<u[t+1].startMs+this.nextDayThreshold)){r.endMs=n.unzonedRange.endMs;r.isEnd=!0;break}return f},t.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"<\/div><\/div><\/div>")},t.prototype.renderSegList=function(n){for(var u=this.groupSegsByDay(n),i,r,f=e('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/><\/table>'),o=f.find("tbody"),t=0;t<u.length;t++)if(i=u[t],i)for(o.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(i),r=0;r<i.length;r++)o.append(i[r].el);this.contentEl.empty().append(f)},t.prototype.groupSegsByDay=function(n){for(var r=[],i,t=0;t<n.length;t++)i=n[t],(r[i.dayIndex]||(r[i.dayIndex]=[])).push(i);return r},t.prototype.dayHeaderHtml=function(n){var t=this.opt("listDayFormat"),i=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+n.format("YYYY-MM-DD")+'"><td class="'+this.calendar.theme.getClass("widgetHeader")+'" colspan="3">'+(t?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-main"},r.htmlEscape(n.format(t))):"")+(i?this.buildGotoAnchorHtml(n,{"class":"fc-list-heading-alt"},r.htmlEscape(n.format(i))):"")+"<\/td><\/tr>"},t}(s.default);t.default=u;u.prototype.eventRendererClass=c.default;u.prototype.eventPointingClass=l.default},,,,,,function(n,t,i){var r=i(3),u=i(17),f=i(4),e=i(220);i(10);i(47);i(256);i(257);i(259);i(260);i(261);i(262);r.fullCalendar=u;r.fn.fullCalendar=function(n){var i=Array.prototype.slice.call(arguments,1),t=this;return this.each(function(u,o){var h=r(o),s=h.data("fullCalendar"),c;typeof n=="string"?n==="getCalendar"?u||(t=s):n==="destroy"?s&&(s.destroy(),h.removeData("fullCalendar")):s?r.isFunction(s[n])?(c=s[n].apply(s,i),u||(t=c),n==="destroy"&&h.removeData("fullCalendar")):f.warn("'"+n+"' is an unknown FullCalendar method."):f.warn("Attempting to call a FullCalendar method on an element with no calendar."):s||(s=new e.default(h,n),h.data("fullCalendar",s),s.render())}),t};n.exports=u},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(48),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.setElement=function(n){this.el=n;this.bindGlobalHandlers();this.renderSkeleton();this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom");this.unrenderSkeleton();this.unbindGlobalHandlers();this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(u.default);t.default=f},function(n,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function n(n){this.items=n||[]}return n.prototype.proxyCall=function(n){for(var i,r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return i=[],this.items.forEach(function(t){i.push(t[n].apply(t,r))}),i},n}();t.default=i},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),u=i(4),f=function(){function n(n,t){this.el=null;this.viewsWithButtons=[];this.calendar=n;this.toolbarOptions=t}return n.prototype.setToolbarOptions=function(n){this.toolbarOptions=n},n.prototype.render=function(){var t=this.toolbarOptions.layout,n=this.el;t?(n?n.empty():n=this.el=r("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),n.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.renderSection=function(n){var s=this,i=this.calendar,t=i.theme,f=i.optionsManager,h=i.viewSpecManager,e=r('<div class="fc-'+n+'"/>'),o=this.toolbarOptions.layout[n],c=f.get("customButtons")||{},l=f.overrides.buttonText||{},a=f.get("buttonText")||{};return o&&r.each(o.split(" "),function(n,f){var o=r(),y=!0,v;r.each(f.split(","),function(n,f){var w,k,b,p,v,d,nt,e,g;f==="title"?(o=o.add(r("<h2> <\/h2>")),y=!1):((w=c[f])?(b=function(n){w.click&&w.click.call(e[0],n)},(p=t.getCustomButtonIconClass(w))||(p=t.getIconClass(f))||(v=w.text)):(k=h.getViewSpec(f))?(s.viewsWithButtons.push(f),b=function(){i.changeView(f)},(v=k.buttonTextOverride)||(p=t.getIconClass(f))||(v=k.buttonTextDefault)):i[f]&&(b=function(){i[f]()},(v=l[f])||(p=t.getIconClass(f))||(v=a[f])),b&&(nt=["fc-"+f+"-button",t.getClass("button"),t.getClass("stateDefault")],v?(d=u.htmlEscape(v),g=""):p&&(d="<span class='"+p+"'><\/span>",g=' aria-label="'+f+'"'),e=r('<button type="button" class="'+nt.join(" ")+'"'+g+">"+d+"<\/button>").click(function(n){e.hasClass(t.getClass("stateDisabled"))||(b(n),(e.hasClass(t.getClass("stateActive"))||e.hasClass(t.getClass("stateDisabled")))&&e.removeClass(t.getClass("stateHover")))}).mousedown(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateDown"))}).mouseup(function(){e.removeClass(t.getClass("stateDown"))}).hover(function(){e.not("."+t.getClass("stateActive")).not("."+t.getClass("stateDisabled")).addClass(t.getClass("stateHover"))},function(){e.removeClass(t.getClass("stateHover")).removeClass(t.getClass("stateDown"))}),o=o.add(e)))});y&&o.first().addClass(t.getClass("cornerLeft")).end().last().addClass(t.getClass("cornerRight")).end();o.length>1?(v=r("<div/>"),y&&v.addClass(t.getClass("buttonGroup")),v.append(o),e.append(v)):e.append(o)}),e},n.prototype.updateTitle=function(n){this.el&&this.el.find("h2").text(n)},n.prototype.activateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").addClass(this.calendar.theme.getClass("stateActive"))},n.prototype.deactivateButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},n.prototype.disableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.enableButton=function(n){this.el&&this.el.find(".fc-"+n+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},n.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},n}();t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),o=i(3),f=i(4),r=i(31),u=i(30),s=i(48),h=function(n){function t(t,i){var r=n.call(this)||this;return r._calendar=t,r.overrides=o.extend({},i),r.dynamicOverrides={},r.compute(),r}return e.__extends(t,n),t.prototype.add=function(n){var i=0,t;this.recordOverrides(n);for(t in n)i++;if(i===1){if(t==="height"||t==="contentHeight"||t==="aspectRatio"){this._calendar.updateViewSize(!0);return}if(t==="defaultDate")return;if(t==="businessHours")return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(t))return;if(t==="timezone"){this._calendar.view.flash("initialEvents");return}}this._calendar.renderHeader();this._calendar.renderFooter();this._calendar.viewsByType={};this._calendar.reinitView()},t.prototype.compute=function(){var t,n,o,i,e;t=f.firstDefined(this.dynamicOverrides.locale,this.overrides.locale);n=u.localeOptionHash[t];n||(t=r.globalDefaults.locale,n=u.localeOptionHash[t]||{});o=f.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,n.isRTL,r.globalDefaults.isRTL);i=o?r.rtlDefaults:{};this.dirDefaults=i;this.localeDefaults=n;e=r.mergeOptions([r.globalDefaults,i,n,this.overrides,this.dynamicOverrides]);u.populateInstanceComputableOptions(e);this.reset(e)},t.prototype.recordOverrides=function(n){for(var t in n)this.dynamicOverrides[t]=n[t];this._calendar.viewSpecManager.clearCache();this.compute()},t}(s.default);t.default=h},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),f=i(3),e=i(21),u=i(4),r=i(31),s=i(30),h=function(){function n(n,t){this.optionsManager=n;this._calendar=t;this.clearCache()}return n.prototype.clearCache=function(){this.viewSpecCache={}},n.prototype.getViewSpec=function(n){var t=this.viewSpecCache;return t[n]||(t[n]=this.buildViewSpec(n))},n.prototype.getUnitViewSpec=function(n){var t,i,r;if(f.inArray(n,u.unitsDesc)!==-1)for(t=this._calendar.header.getViewsWithButtons(),f.each(e.viewHash,function(n){t.push(n)}),i=0;i<t.length;i++)if(r=this.getViewSpec(t[i]),r&&r.singleUnit===n)return r},n.prototype.buildViewSpec=function(n){for(var a=this.optionsManager.overrides.views||{},v=[],y=[],l=[],f=n,t,s,i,h,c;f;)t=e.viewHash[f],s=a[f],f=null,typeof t=="function"&&(t={"class":t}),t&&(v.unshift(t),y.unshift(t.defaults||{}),i=i||t.duration,f=f||t.type),s&&(l.unshift(s),i=i||s.duration,f=f||s.type);return(t=u.mergeProps(v),t.type=n,!t["class"])?!1:(i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,i&&(h=o.duration(i),h.valueOf()&&(c=u.computeDurationGreatestUnit(h,i),t.duration=h,t.durationUnit=c,h.as(c)===1&&(t.singleUnit=c,l.unshift(a[c]||{})))),t.defaults=r.mergeOptions(y),t.overrides=r.mergeOptions(l),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,n),t)},n.prototype.buildViewSpecOptions=function(n){var t=this.optionsManager;n.options=r.mergeOptions([r.globalDefaults,n.defaults,t.dirDefaults,t.localeDefaults,t.overrides,n.overrides,t.dynamicOverrides]);s.populateInstanceComputableOptions(n.options)},n.prototype.buildViewSpecButtonText=function(n,t){function i(i){var r=i.buttonText||{};return r[t]||(n.buttonTextKey?r[n.buttonTextKey]:null)||(n.singleUnit?r[n.singleUnit]:null)}var u=this.optionsManager;n.buttonTextOverride=i(u.dynamicOverrides)||i(u.overrides)||n.overrides.buttonText;n.buttonTextDefault=i(u.localeDefaults)||i(u.dirDefaults)||n.defaults.buttonText||i(r.globalDefaults)||(n.duration?this._calendar.humanizeDuration(n.duration):null)||t},n}();t.default=h},function(n,t,i){function y(n,t){return n.getPrimitive()===t.getPrimitive()}Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(243),o=i(52),s=i(6),h=i(37),c=i(13),l=i(19),a=i(11),v=i(7),u=function(){function n(n){this.calendar=n;this.stickySource=new o.default(n);this.otherSources=[]}return n.prototype.requestEvents=function(n,t,i,r){return!r&&this.currentPeriod&&this.currentPeriod.isWithinRange(n,t)&&i===this.currentPeriod.timezone||this.setPeriod(new e.default(n,t,i)),this.currentPeriod.whenReleased()},n.prototype.addSource=function(n){this.otherSources.push(n);this.currentPeriod&&this.currentPeriod.requestSource(n)},n.prototype.removeSource=function(n){f.removeExact(this.otherSources,n);this.currentPeriod&&this.currentPeriod.purgeSource(n)},n.prototype.removeAllSources=function(){this.otherSources=[];this.currentPeriod&&this.currentPeriod.purgeAllSources()},n.prototype.refetchSource=function(n){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(n),t.requestSource(n),t.thaw())},n.prototype.refetchAllSources=function(){var n=this.currentPeriod;n&&(n.freeze(),n.purgeAllSources(),n.requestSources(this.getSources()),n.thaw())},n.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},n.prototype.multiQuerySources=function(n){n?r.isArray(n)||(n=[n]):n=[];for(var i=[],t=0;t<n.length;t++)i.push.apply(i,this.querySources(n[t]));return i},n.prototype.querySources=function(n){for(var u=this.otherSources,t,i=0;i<u.length;i++)if(t=u[i],t===n)return[t];return(t=this.getSourceById(s.default.normalizeId(n)),t)?[t]:(n=h.default.parse(n,this.calendar),n?r.grep(u,function(t){return y(n,t)}):void 0)},n.prototype.getSourceById=function(n){return r.grep(this.otherSources,function(t){return t.id&&t.id===n})[0]},n.prototype.setPeriod=function(n){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null);this.currentPeriod=n;this.bindPeriod(n);n.requestSources(this.getSources())},n.prototype.bindPeriod=function(n){this.listenTo(n,"release",function(n){this.trigger("release",n)})},n.prototype.unbindPeriod=function(n){this.stopListeningTo(n)},n.prototype.getEventDefByUid=function(n){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(n)},n.prototype.addEventDef=function(n,t){t&&this.stickySource.addEventDef(n);this.currentPeriod&&this.currentPeriod.addEventDef(n)},n.prototype.removeEventDefsById=function(n){this.getSources().forEach(function(t){t.removeEventDefsById(n)});this.currentPeriod&&this.currentPeriod.removeEventDefsById(n)},n.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(n){n.removeAllEventDefs()});this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},n.prototype.mutateEventsWithId=function(n,t){var i=this.currentPeriod,r,u=[];return i?(i.freeze(),r=i.getEventDefsById(n),r.forEach(function(n){i.removeEventDef(n);u.push(t.mutateSingle(n));i.addEventDef(n)}),i.thaw(),function(){i.freeze();for(var n=0;n<r.length;n++)i.removeEventDef(r[n]),u[n](),i.addEventDef(r[n]);i.thaw()}):function(){}},n.prototype.buildMutatedEventInstanceGroup=function(n,t){for(var f=this.getEventDefsById(n),r,u=[],i=0;i<f.length;i++)r=f[i].clone(),r instanceof c.default&&(t.mutateSingle(r),u.push.apply(u,r.buildInstances()));return new l.default(u)},n.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},n.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},n.prototype.getEventDefsById=function(n){return this.currentPeriod.getEventDefsById(n)},n.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},n.prototype.getEventInstancesWithId=function(n){return this.currentPeriod.getEventInstancesWithId(n)},n.prototype.getEventInstancesWithoutId=function(n){return this.currentPeriod.getEventInstancesWithoutId(n)},n}();t.default=u;a.default.mixInto(u);v.default.mixInto(u)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var e=i(3),r=i(4),u=i(20),o=i(11),s=i(5),h=i(19),f=function(){function n(n,t,i){this.pendingCnt=0;this.freezeDepth=0;this.stuntedReleaseCnt=0;this.releaseCnt=0;this.start=n;this.end=t;this.timezone=i;this.unzonedRange=new s.default(n.clone().stripZone(),t.clone().stripZone());this.requestsByUid={};this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={}}return n.prototype.isWithinRange=function(n,t){return!n.isBefore(this.start)&&!t.isAfter(this.end)},n.prototype.requestSources=function(n){this.freeze();for(var t=0;t<n.length;t++)this.requestSource(n[t]);this.thaw()},n.prototype.requestSource=function(n){var i=this,t={source:n,status:"pending",eventDefs:null};this.requestsByUid[n.uid]=t;this.pendingCnt+=1;n.fetch(this.start,this.end,this.timezone).then(function(n){t.status!=="cancelled"&&(t.status="completed",t.eventDefs=n,i.addEventDefs(n),i.pendingCnt--,i.tryRelease())},function(){t.status!=="cancelled"&&(t.status="failed",i.pendingCnt--,i.tryRelease())})},n.prototype.purgeSource=function(n){var t=this.requestsByUid[n.uid];t&&(delete this.requestsByUid[n.uid],t.status==="pending"?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):t.status==="completed"&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},n.prototype.purgeAllSources=function(){var t=this.requestsByUid,i,n,r=0;for(i in t)n=t[i],n.status==="pending"?n.status="cancelled":n.status==="completed"&&r++;this.requestsByUid={};this.pendingCnt=0;r&&this.removeAllEventDefs()},n.prototype.getEventDefByUid=function(n){return this.eventDefsByUid[n]},n.prototype.getEventDefsById=function(n){var t=this.eventDefsById[n];return t?t.slice():[]},n.prototype.addEventDefs=function(n){for(var t=0;t<n.length;t++)this.addEventDef(n[t])},n.prototype.addEventDef=function(n){var r=this.eventDefsById,i=n.id,f=r[i]||(r[i]=[]),u=n.buildInstances(this.unzonedRange),t;for(f.push(n),this.eventDefsByUid[n.uid]=n,t=0;t<u.length;t++)this.addEventInstance(u[t],i)},n.prototype.removeEventDefsById=function(n){var t=this;this.getEventDefsById(n).forEach(function(n){t.removeEventDef(n)})},n.prototype.removeAllEventDefs=function(){var n=e.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={};this.eventDefsById={};this.eventInstanceGroupsById={};n||this.tryRelease()},n.prototype.removeEventDef=function(n){var i=this.eventDefsById,t=i[n.id];delete this.eventDefsByUid[n.uid];t&&(r.removeExact(t,n),t.length||delete i[n.id],this.removeEventInstancesForDef(n))},n.prototype.getEventInstances=function(){var t=this.eventInstanceGroupsById,n=[];for(var i in t)n.push.apply(n,t[i].eventInstances);return n},n.prototype.getEventInstancesWithId=function(n){var t=this.eventInstanceGroupsById[n];return t?t.eventInstances.slice():[]},n.prototype.getEventInstancesWithoutId=function(n){var i=this.eventInstanceGroupsById,t=[];for(var r in i)r!==n&&t.push.apply(t,i[r].eventInstances);return t},n.prototype.addEventInstance=function(n,t){var i=this.eventInstanceGroupsById,r=i[t]||(i[t]=new h.default);r.eventInstances.push(n);this.tryRelease()},n.prototype.removeEventInstancesForDef=function(n){var i=this.eventInstanceGroupsById,t=i[n.id],u;t&&(u=r.removeMatching(t.eventInstances,function(t){return t.def===n}),t.eventInstances.length||delete i[n.id],u&&this.tryRelease())},n.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},n.prototype.release=function(){this.releaseCnt++;this.trigger("release",this.eventInstanceGroupsById)},n.prototype.whenReleased=function(){var n=this;return this.releaseCnt?u.default.resolve(this.eventInstanceGroupsById):u.default.construct(function(t){n.one("release",t)})},n.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},n.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},n}();t.default=f;o.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(3),r=i(4),e=i(7),f=function(){function n(n,t){this.isFollowing=!1;this.isHidden=!1;this.isAnimating=!1;this.options=t=t||{};this.sourceEl=n;this.parentEl=t.parentEl?u(t.parentEl):n.parent()}return n.prototype.start=function(n){this.isFollowing||(this.isFollowing=!0,this.y0=r.getEvY(n),this.x0=r.getEvX(n),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),r.getEvIsTouch(n)?this.listenTo(u(document),"touchmove",this.handleMove):this.listenTo(u(document),"mousemove",this.handleMove))},n.prototype.stop=function(n,t){var i=this,r=this.options.revertDuration,f=function(){i.isAnimating=!1;i.removeElement();i.top0=i.left0=null;t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(u(document)),n&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:f})):f())},n.prototype.getEl=function(){var n=this.el;return n||(n=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),n.addClass("fc-unselectable"),n.appendTo(this.parentEl)),n},n.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},n.prototype.updatePosition=function(){var n,t;this.getEl();this.top0==null&&(n=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=n.top-t.top,this.left0=n.left-t.left);this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},n.prototype.handleMove=function(n){this.topDelta=r.getEvY(n)-this.y0;this.leftDelta=r.getEvX(n)-this.x0;this.isHidden||this.updatePosition()},n.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},n.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},n}();t.default=f;e.default.mixInto(f)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(22),f=i(16),e=function(n){function t(t){var i=n.call(this,t)||this;return i.dragListener=i.buildDragListener(),i}return r.__extends(t,n),t.prototype.end=function(){this.dragListener.endInteraction()},t.prototype.bindToEl=function(n){var t=this.component,i=this.dragListener;t.bindDateHandlerToEl(n,"mousedown",function(n){t.shouldIgnoreMouse()||i.startInteraction(n)});t.bindDateHandlerToEl(n,"touchstart",function(n){t.shouldIgnoreTouch()||i.startInteraction(n)})},t.prototype.buildDragListener=function(){var r=this,i=this.component,n,t=new u.default(i,{scroll:this.opt("dragScroll"),interactionStart:function(){n=t.origHit},hitOver:function(t,i){i||(n=null)},hitOut:function(){n=null},interactionEnd:function(t,u){var f;!u&&n&&(f=i.getSafeHitFootprint(n),f&&r.view.triggerDayClick(f,i.getHitEl(n),t))}});return t.shouldCancelTouchScroll=!1,t.scrollAlwaysKills=!0,t},t}(f.default);t.default=e},function(n,t,i){function h(n){for(var i=[],u,t,r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!f(u,i[t]).length)break;u.level=t;(i[t]||(i[t]=[])).push(u)}return i}function c(n){for(var e,i,r,u,t=0;t<n.length;t++)for(e=n[t],i=0;i<e.length;i++)for(r=e[i],r.forwardSegs=[],u=t+1;u<n.length;u++)f(r,n[u],r.forwardSegs)}function u(n){var f=n.forwardSegs,i=0,t,r;if(n.forwardPressure===undefined){for(t=0;t<f.length;t++)r=f[t],u(r),i=Math.max(i,1+r.forwardPressure);n.forwardPressure=i}}function f(n,t,i){i===void 0&&(i=[]);for(var r=0;r<t.length;r++)l(n,t[r])&&i.push(t[r]);return i}function l(n,t){return n.bottom>t.top&&n.top<t.bottom}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),r=i(4),o=i(42),s=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.timeGrid=t,r}return e.__extends(t,n),t.prototype.renderFgSegs=function(n){this.renderFgSegsIntoContainers(n,this.timeGrid.fgContainerEls)},t.prototype.renderFgSegsIntoContainers=function(n,t){for(var r=this.timeGrid.groupSegsByCol(n),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(r[i]);this.timeGrid.attachSegsByCol(r,t)},t.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(n){n.el.remove()})},t.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.fgSegHtml=function(n,t){var u=this.view,l=u.calendar,a=n.footprint.componentFootprint,s=a.isAllDay,i=n.footprint.eventDef,w=u.isEventDefDraggable(i),b=!t&&n.isStart&&u.isEventDefResizableFromStart(i),v=!t&&n.isEnd&&u.isEventDefResizableFromEnd(i),y=this.getSegClasses(n,w,b||v),p=r.cssToStr(this.getSkinCss(i)),f,h,c,e,o;return y.unshift("fc-time-grid-event","fc-v-event"),u.isMultiDayRange(a.unzonedRange)?(n.isStart||n.isEnd)&&(e=l.msToMoment(n.startMs),o=l.msToMoment(n.endMs),f=this._getTimeText(e,o,s),h=this._getTimeText(e,o,s,"LT"),c=this._getTimeText(e,o,s,null,!1)):(f=this.getTimeText(n.footprint),h=this.getTimeText(n.footprint,"LT"),c=this.getTimeText(n.footprint,null,!1)),'<a class="'+y.join(" ")+'"'+(i.url?' href="'+r.htmlEscape(i.url)+'"':"")+(p?' style="'+p+'"':"")+'><div class="fc-content">'+(f?'<div class="fc-time" data-start="'+r.htmlEscape(c)+'" data-full="'+r.htmlEscape(h)+'"><span>'+r.htmlEscape(f)+"<\/span><\/div>":"")+(i.title?'<div class="fc-title">'+r.htmlEscape(i.title)+"<\/div>":"")+'<\/div><div class="fc-bg"/>'+(v?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t.prototype.updateFgSegCoords=function(n){this.timeGrid.computeSegVerticals(n);this.computeFgSegHorizontals(n);this.timeGrid.assignSegVerticals(n);this.assignFgSegHorizontals(n)},t.prototype.computeFgSegHorizontals=function(n){var r,i,t;if(this.sortEventSegs(n),r=h(n),c(r),i=r[0]){for(t=0;t<i.length;t++)u(i[t]);for(t=0;t<i.length;t++)this.computeFgSegForwardBack(i[t],0,0)}},t.prototype.computeFgSegForwardBack=function(n,t,i){var r=n.forwardSegs,u;if(n.forwardCoord===undefined)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,i),n.forwardCoord=r[0].backwardCoord):n.forwardCoord=1,n.backwardCoord=n.forwardCoord-(n.forwardCoord-i)/(t+1),u=0;u<r.length;u++)this.computeFgSegForwardBack(r[u],0,n.forwardCoord)},t.prototype.sortForwardSegs=function(n){n.sort(r.proxy(this,"compareForwardSegs"))},t.prototype.compareForwardSegs=function(n,t){return t.forwardPressure-n.forwardPressure||(n.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(n,t)},t.prototype.assignFgSegHorizontals=function(n){for(var t,i=0;i<n.length;i++)t=n[i],t.el.css(this.generateFgSegHorizontalCss(t)),t.bottom-t.top<30&&t.el.addClass("fc-short")},t.prototype.generateFgSegHorizontalCss=function(n){var e=this.opt("slotEventOverlap"),i=n.backwardCoord,r=n.forwardCoord,t=this.timeGrid.generateSegVerticalCss(n),o=this.timeGrid.isRTL,u,f;return e&&(r=Math.min(1,i+(r-i)*2)),o?(u=1-r,f=i):(u=i,f=1-r),t.zIndex=n.level+1,t.left=u*100+"%",t.right=f*100+"%",e&&n.forwardPressure&&(t[o?"marginLeft":"marginRight"]=20),t},t}(o.default);t.default=s},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(58),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.renderSegs=function(n,t){var e=[],r,f,i;for(this.eventRenderer.renderFgSegsIntoContainers(n,this.component.helperContainerEls),r=0;r<n.length;r++)f=n[r],t&&t.col===f.col&&(i=t.el,f.el.css({left:i.css("left"),right:i.css("right"),"margin-left":i.css("margin-left"),"margin-right":i.css("margin-right")})),e.push(f.el[0]);return u(e)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(57),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){var i=this.component,r;return n==="bgEvent"?r=i.bgContainerEls:n==="businessHours"?r=i.businessContainerEls:n==="highlight"&&(r=i.highlightContainerEls),i.updateSegVerticals(t),i.attachSegsByCol(i.groupSegsByCol(t),r),t.map(function(n){return n.el[0]})},t}(u.default);t.default=f},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(3),f=i(4),e=i(7),u=function(){function n(n){this.isHidden=!0;this.margin=10;this.options=n||{}}return n.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},n.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},n.prototype.render=function(){var t=this,n=this.options;this.el=r('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl);this.el.on("click",".fc-close",function(){t.hide()});n.autoHide&&this.listenTo(r(document),"mousedown",this.documentMousedown)},n.prototype.documentMousedown=function(n){this.el&&!r(n.target).closest(this.el).length&&this.hide()},n.prototype.removeElement=function(){this.hide();this.el&&(this.el.remove(),this.el=null);this.stopListeningTo(r(document),"mousedown")},n.prototype.position=function(){var n=this.options,c=this.el.offsetParent().offset(),l=this.el.outerWidth(),a=this.el.outerHeight(),s=r(window),t=f.getScrollParent(this.el),e,o,h,i,u;i=n.top||0;u=n.left!==undefined?n.left:n.right!==undefined?n.right-l:0;t.is(window)||t.is(document)?(t=s,e=0,o=0):(h=t.offset(),e=h.top,o=h.left);e+=s.scrollTop();o+=s.scrollLeft();n.viewportConstrain!==!1&&(i=Math.min(i,e+t.outerHeight()-a-this.margin),i=Math.max(i,e+this.margin),u=Math.min(u,o+t.outerWidth()-l-this.margin),u=Math.max(u,o+this.margin));this.el.css({top:i-c.top,left:u-c.left})},n.prototype.trigger=function(n){this.options[n]&&this.options[n].apply(this,Array.prototype.slice.call(arguments,1))},n}();t.default=u;e.default.mixInto(u)},function(n,t,i){function s(n,t){for(var r,i=0;i<t.length;i++)if(r=t[i],r.leftCol<=n.rightCol&&r.rightCol>=n.leftCol)return!0;return!1}function h(n,t){return n.leftCol-t.leftCol}Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),r=i(3),u=i(4),e=i(42),o=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.dayGrid=t,r}return f.__extends(t,n),t.prototype.renderBgRanges=function(t){t=r.grep(t,function(n){return n.eventDef.isAllDay()});n.prototype.renderBgRanges.call(this,t)},t.prototype.renderFgSegs=function(n){var t=this.rowStructs=this.renderSegRows(n);this.dayGrid.rowEls.each(function(n,i){r(i).find(".fc-content-skeleton > table").append(t[n].tbodyEl)})},t.prototype.unrenderFgSegs=function(){for(var t=this.rowStructs||[],n;n=t.pop();)n.tbodyEl.remove();this.rowStructs=null},t.prototype.renderSegRows=function(n){for(var r=[],i=this.groupSegRows(n),t=0;t<i.length;t++)r.push(this.renderSegRow(t,i[t]));return r},t.prototype.renderSegRow=function(n,t){function p(n){while(u<n)i=(h[f-1]||[])[u],i?i.attr("rowspan",parseInt(i.attr("rowspan")||1,10)+1):(i=r("<td/>"),o.append(i)),s[f][u]=i,h[f][u]=i,u++}for(var w=this.dayGrid.colCnt,a=this.buildSegLevels(t),b=Math.max(1,a.length),y=r("<tbody/>"),v=[],s=[],h=[],c,u,o,l,e,i,f=0;f<b;f++){if(c=a[f],u=0,o=r("<tr/>"),v.push([]),s.push([]),h.push([]),c)for(l=0;l<c.length;l++){for(e=c[l],p(e.leftCol),i=r('<td class="fc-event-container"/>').append(e.el),e.leftCol!==e.rightCol?i.attr("colspan",e.rightCol-e.leftCol+1):h[f][u]=i;u<=e.rightCol;)s[f][u]=i,v[f][u]=e,u++;o.append(i)}p(w);this.dayGrid.bookendCells(o);y.append(o)}return{row:n,tbodyEl:y,cellMatrix:s,segMatrix:v,segLevels:a,segs:t}},t.prototype.buildSegLevels=function(n){var i=[],r,u,t;for(this.sortEventSegs(n),r=0;r<n.length;r++){for(u=n[r],t=0;t<i.length;t++)if(!s(u,i[t]))break;u.level=t;(i[t]||(i[t]=[])).push(u)}for(t=0;t<i.length;t++)i[t].sort(h);return i},t.prototype.groupSegRows=function(n){for(var i=[],t=0;t<this.dayGrid.rowCnt;t++)i.push([]);for(t=0;t<n.length;t++)i[n[t].row].push(n[t]);return i},t.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},t.prototype.computeDisplayEventEnd=function(){return this.dayGrid.colCnt===1},t.prototype.fgSegHtml=function(n,t){var r=this.view,i=n.footprint.eventDef,s=n.footprint.componentFootprint.isAllDay,v=r.isEventDefDraggable(i),h=!t&&s&&n.isStart&&r.isEventDefResizableFromStart(i),c=!t&&s&&n.isEnd&&r.isEventDefResizableFromEnd(i),l=this.getSegClasses(n,v,h||c),a=u.cssToStr(this.getSkinCss(i)),f="",e,o;return l.unshift("fc-day-grid-event","fc-h-event"),n.isStart&&(e=this.getTimeText(n.footprint),e&&(f='<span class="fc-time">'+u.htmlEscape(e)+"<\/span>")),o='<span class="fc-title">'+(u.htmlEscape(i.title||"")||" ")+"<\/span>",'<a class="'+l.join(" ")+'"'+(i.url?' href="'+u.htmlEscape(i.url)+'"':"")+(a?' style="'+a+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?o+" "+f:f+" "+o)+"<\/div>"+(h?'<div class="fc-resizer fc-start-resizer" />':"")+(c?'<div class="fc-resizer fc-end-resizer" />':"")+"<\/a>"},t}(e.default);t.default=o},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(3),f=i(58),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderSegs=function(n,t){var i=[],u;return u=this.eventRenderer.renderSegRows(n),this.component.rowEls.each(function(n,f){var o=r(f),s=r('<div class="fc-helper-skeleton"><table/><\/div>'),e,h;t&&t.row===n?h=t.el.position().top:(e=o.find(".fc-content-skeleton tbody"),e.length||(e=o.find(".fc-content-skeleton table")),h=e.position().top);s.css("top",h).find("table").append(u[n].tbodyEl);o.append(s);i.push(s[0])}),r(i)},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(57),e=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.fillSegTag="td",t}return r.__extends(t,n),t.prototype.attachSegEls=function(n,t){for(var f=[],r,u,i=0;i<t.length;i++)r=t[i],u=this.renderFillRow(n,r),this.component.rowEls.eq(r.row).append(u),f.push(u[0]);return f},t.prototype.renderFillRow=function(n,t){var o=this.component.colCnt,r=t.leftCol,f=t.rightCol+1,s,e,i;return s=n==="businessHours"?"bgevent":n.toLowerCase(),e=u('<div class="fc-'+s+'-skeleton"><table><tr/><\/table><\/div>'),i=e.find("tr"),r>0&&i.append('<td colspan="'+r+'"/>'),i.append(t.el.attr("colspan",f-r)),f<o&&i.append('<td colspan="'+(o-f)+'"/>'),this.component.bookendCells(i),e},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(228),f=i(5),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.buildRenderRange=function(t,i,r){var e=n.prototype.buildRenderRange.call(this,t,i,r),o=this.msToUtcMoment(e.startMs,r),u=this.msToUtcMoment(e.endMs,r),s;return this.opt("fixedWeekCount")&&(s=Math.ceil(u.diff(o,"weeks",!0)),u.add(6-s,"weeks")),new f.default(o,u)},t}(u.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),r=i(4),f=i(42),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t.prototype.renderFgSegs=function(n){n.length?this.component.renderSegList(n):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(n){var t=this.view,u=t.calendar,f=u.theme,e=n.footprint,i=e.eventDef,o=e.componentFootprint,s=i.url,h=["fc-list-item"].concat(this.getClasses(i)),c=this.getBgColor(i),l;return l=o.isAllDay?t.getAllDayHtml():t.isMultiDayRange(o.unzonedRange)?n.isStart||n.isEnd?r.htmlEscape(this._getTimeText(u.msToMoment(n.startMs),u.msToMoment(n.endMs),o.isAllDay)):t.getAllDayHtml():r.htmlEscape(this.getTimeText(e)),s&&h.push("fc-has-url"),'<tr class="'+h.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+f.getClass("widgetContent")+'">'+(l||"")+"<\/td>":"")+'<td class="fc-list-item-marker '+f.getClass("widgetContent")+'"><span class="fc-event-dot"'+(c?' style="background-color:'+c+'"':"")+'><\/span><\/td><td class="fc-list-item-title '+f.getClass("widgetContent")+'"><a'+(s?' href="'+r.htmlEscape(s)+'"':"")+">"+r.htmlEscape(i.title||"")+"<\/a><\/td><\/tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(2),u=i(3),f=i(59),e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return r.__extends(t,n),t.prototype.handleClick=function(t,i){var r;n.prototype.handleClick.call(this,t,i);u(i.target).closest("a[href]").length||(r=t.footprint.eventDef.url,r&&!i.isDefaultPrevented()&&(window.location.href=r))},t}(f.default);t.default=e},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(37),u=i(52),f=i(215),e=i(216);r.default.registerClass(u.default);r.default.registerClass(f.default);r.default.registerClass(e.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(51),u=i(213),f=i(214),e=i(258);r.defineThemeSystem("standard",u.default);r.defineThemeSystem("jquery-ui",f.default);r.defineThemeSystem("bootstrap3",e.default)},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var u=i(2),f=i(38),r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u.__extends(t,n),t}(f.default);t.default=r;r.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table table-striped",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"};r.prototype.baseIconClass="glyphicon";r.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"};r.prototype.iconOverrideOption="bootstrapGlyphicons";r.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon";r.prototype.iconOverridePrefix="glyphicon-"},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),u=i(62),f=i(229);r.defineView("basic",{"class":u.default});r.defineView("basicDay",{type:"basic",duration:{days:1}});r.defineView("basicWeek",{type:"basic",duration:{weeks:1}});r.defineView("month",{"class":f.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),u=i(226);r.defineView("agenda",{"class":u.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}});r.defineView("agendaDay",{type:"agenda",duration:{days:1}});r.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),u=i(230);r.defineView("list",{"class":u.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}});r.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}});r.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}});r.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}});r.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(n,t){Object.defineProperty(t,"__esModule",{value:!0})}])}); | |
/*! | |
* FullCalendar v3.8.1 | |
* Docs & License: https://fullcalendar.io/ | |
* (c) 2017 Adam Shaw | |
*/ | |
(function(n,t){typeof exports=="object"&&typeof module=="object"?module.exports=t(require("fullcalendar"),require("jquery")):typeof define=="function"&&define.amd?define(["fullcalendar","jquery"],t):typeof exports=="object"?t(require("fullcalendar"),require("jquery")):t(n.FullCalendar,n.jQuery)})(typeof self!="undefined"?self:this,function(n,t){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=265)}({1:function(t){t.exports=n},2:function(n,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};t.__extends=function(n,t){function r(){this.constructor=n}i(n,t);n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}},265:function(n,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),u=i(266);r.EventSourceParser.registerClass(u.default);r.GcalEventSource=u.default},266:function(n,t,i){function o(n){var t;return/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(n)?n:(t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(n))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^\/]*)/.exec(n))?decodeURIComponent(t[1]):void 0}function s(n,t){return n.replace(/(\?.*?)?(#|$)/,function(n,i,r){return(i?i+"&":"?")+t+r})}Object.defineProperty(t,"__esModule",{value:!0});var e=i(2),u=i(3),r=i(1),f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return e.__extends(t,n),t.parse=function(n,t){var i;return(typeof n=="object"?i=n:typeof n=="string"&&(i={url:n}),i)?r.EventSource.parse.call(this,i,t):!1},t.prototype.fetch=function(n,t,i){var f=this,s=this.buildUrl(),e=this.buildRequestParams(n,t,i),o=this.ajaxSettings||{},h=o.success;return e?(this.calendar.pushLoading(),r.Promise.construct(function(n,t){u.ajax(u.extend({},r.JsonFeedEventSource.AJAX_DEFAULTS,o,{url:s,data:e,success:function(i,o,s){var c,l;f.calendar.popLoading();i.error?(f.reportError("Google Calendar API: "+i.error.message,i.error.errors),t()):i.items&&(c=f.gcalItemsToRawEventDefs(i.items,e.timeZone),l=r.applyAll(h,f,[i,o,s]),u.isArray(l)&&(c=l),n(f.parseEventDefs(c)))},error:function(n,i,r){f.reportError("Google Calendar network failure: "+i,[n,r]);f.calendar.popLoading();t()}}))})):r.Promise.reject()},t.prototype.gcalItemsToRawEventDefs=function(n,t){var i=this;return n.map(function(n){return i.gcalItemToRawEventDef(n,t)})},t.prototype.gcalItemToRawEventDef=function(n,t){var i=n.htmlLink||null;return i&&t&&(i=s(i,"ctz="+t)),{id:n.id,title:n.summary,start:n.start.dateTime||n.start.date,end:n.end.dateTime||n.end.date,url:i,location:n.location,description:n.description}},t.prototype.buildUrl=function(){return t.API_BASE+"/"+encodeURIComponent(this.googleCalendarId)+"/events?callback=?"},t.prototype.buildRequestParams=function(n,t,i){var f=this.googleCalendarApiKey||this.calendar.opt("googleCalendarApiKey"),r;return f?(n.hasZone()||(n=n.clone().utc().add(-1,"day")),t.hasZone()||(t=t.clone().utc().add(1,"day")),r=u.extend(this.ajaxSettings.data||{},{key:f,timeMin:n.format(),timeMax:t.format(),singleEvents:!0,maxResults:9999}),i&&i!=="local"&&(r.timeZone=i.replace(" ","_")),r):(this.reportError("Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"),null)},t.prototype.reportError=function(n,t){var i=this.calendar,u=i.opt("googleCalendarError"),f=t||[{message:n}];this.googleCalendarError&&this.googleCalendarError.apply(i,f);u&&u.apply(i,f);r.warn.apply(null,[n].concat(t||[]))},t.prototype.getPrimitive=function(){return this.googleCalendarId},t.prototype.applyManualStandardProps=function(n){var i=r.EventSource.prototype.applyManualStandardProps.apply(this,arguments),t=n.googleCalendarId;return(t==null&&n.url&&(t=o(n.url)),t!=null)?(this.googleCalendarId=t,i):!1},t.prototype.applyMiscProps=function(n){this.ajaxSettings||(this.ajaxSettings={});u.extend(this.ajaxSettings,n)},t.API_BASE="https://www.googleapis.com/calendar/v3/calendars",t}(r.EventSource);t.default=f;f.defineStandardProps({url:!1,googleCalendarId:!1,googleCalendarApiKey:!0,googleCalendarError:!0})},3:function(n){n.exports=t}})}); | |
/*! | |
* jQuery UI Touch Punch 0.2.3 | |
* | |
* Copyright 2011–2014, Dave Furfero | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* | |
* Depends: | |
* jquery.ui.widget.js | |
* jquery.ui.mouse.js | |
*/ | |
!function(n){function t(n,t){if(!(n.originalEvent.touches.length>1)){n.preventDefault();var i=n.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);n.target.dispatchEvent(r)}}if(n.support.touch="ontouchend"in document,n.support.touch){var r,i=n.ui.mouse.prototype,u=i._mouseInit,f=i._mouseDestroy;i._touchStart=function(n){var i=this;!r&&i._mouseCapture(n.originalEvent.changedTouches[0])&&(r=!0,i._touchMoved=!1,t(n,"mouseover"),t(n,"mousemove"),t(n,"mousedown"))};i._touchMove=function(n){r&&(this._touchMoved=!0,t(n,"mousemove"))};i._touchEnd=function(n){r&&(t(n,"mouseup"),t(n,"mouseout"),this._touchMoved||t(n,"click"),r=!1)};i._mouseInit=function(){var t=this;t.element.bind({touchstart:n.proxy(t,"_touchStart"),touchmove:n.proxy(t,"_touchMove"),touchend:n.proxy(t,"_touchEnd")});u.call(t)};i._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:n.proxy(t,"_touchStart"),touchmove:n.proxy(t,"_touchMove"),touchend:n.proxy(t,"_touchEnd")});f.call(t)}}}(jQuery); | |
/*! Hammer.JS - v2.0.8 - 2016-04-23 | |
* http://hammerjs.github.io/ | |
* | |
* Copyright (c) 2016 Jorik Tangelder; | |
* Licensed under the MIT license */ | |
!function(n,t,i,r){"use strict";function hi(n,t,i){return setTimeout(ci(n,i),t)}function rt(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function fr(t,i,r){var u="DEPRECATED METHOD: "+i+"\n"+r+" AT \n";return function(){var i=new Error("get-stack-trace"),f=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,u,f),t.apply(this,arguments)}}function o(n,t,i){var r,u=t.prototype;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&w(r,i)}function ci(n,t){return function(){return n.apply(t,arguments)}}function li(n,t){return typeof n==cf?n.apply(t?t[0]||r:r,t):n}function er(n,t){return n===r?t:n}function pt(n,t,i){v(bt(t),function(t){n.addEventListener(t,i,!1)})}function wt(n,t,i){v(bt(t),function(t){n.removeEventListener(t,i,!1)})}function or(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function d(n,t){return n.indexOf(t)>-1}function bt(n){return n.trim().split(/\s+/g)}function ut(n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function kt(n){return Array.prototype.slice.call(n,0)}function sr(n,t,i){for(var f,u=[],e=[],r=0;r<n.length;)f=t?n[r][t]:n[r],ut(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function dt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<dr.length;){if(i=dr[f],u=i?i+e:t,u in n)return u;f++}return r}function yu(){return af++}function hr(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||n}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){li(n.options.enable,[n])&&i.handler(t)};this.init()}function pu(n){var i,t=n.options.inputClass;return new(i=t?t:vf?vi:yf?ti:nu?yi:ni)(n,wu)}function wu(n,t,i){var r=i.pointers.length,o=i.changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;bu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function bu(n,t){var i=n.session,f=t.pointers,o=f.length,r,e;i.firstInput||(i.firstInput=cr(t));o>1&&!i.firstMultiple?i.firstMultiple=cr(t):1===o&&(i.firstMultiple=!1);var s=i.firstInput,u=i.firstMultiple,h=u?u.center:s.center,c=t.center=lr(f);t.timeStamp=nr();t.deltaTime=t.timeStamp-s.timeStamp;t.angle=ai(h,c);t.distance=gt(h,c);ku(i,t);t.offsetDirection=vr(t.deltaX,t.deltaY);r=ar(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=r.x;t.overallVelocityY=r.y;t.overallVelocity=g(r.x)>g(r.y)?r.x:r.y;t.scale=u?nf(u.pointers,f):1;t.rotation=u?gu(u.pointers,f):0;t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length;du(i,t);e=n.element;or(t.srcEvent.target,e)&&(e=t.srcEvent.target);t.target=e}function ku(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};t.eventType!==f&&o.eventType!==u||(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function du(n,t){var f,o,s,h,i=n.lastInterval||t,c=t.timeStamp-i.timeStamp;if(t.eventType!=e&&(c>pf||i.velocity===r)){var l=t.deltaX-i.deltaX,a=t.deltaY-i.deltaY,u=ar(c,l,a);o=u.x;s=u.y;f=g(u.x)>g(u.y)?u.x:u.y;h=vr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function cr(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:ft(n.pointers[t].clientX),clientY:ft(n.pointers[t].clientY)},t++;return{timeStamp:nr(),pointers:i,center:lr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function lr(n){var t=n.length;if(1===t)return{x:ft(n[0].clientX),y:ft(n[0].clientY)};for(var r=0,u=0,i=0;t>i;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:ft(r/t),y:ft(u/t)}}function ar(n,t,i){return{x:t/n||0,y:i/n||0}}function vr(n,t){return n===t?fi:g(n)>=g(t)?0>n?st:ht:0>t?ct:lt}function gt(n,t,i){i||(i=iu);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function ai(n,t,i){i||(i=iu);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return 180*Math.atan2(u,r)/Math.PI}function gu(n,t){return ai(t[1],t[0],ei)+ai(n[1],n[0],ei)}function nf(n,t){return gt(t[0],t[1],ei)/gt(n[0],n[1],ei)}function ni(){this.evEl=bf;this.evWin=kf;this.pressed=!1;s.apply(this,arguments)}function vi(){this.evEl=ru;this.evWin=uu;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function yr(){this.evTarget=te;this.evWin=ie;this.started=!1;s.apply(this,arguments)}function tf(n,t){var i=kt(n.touches),r=kt(n.changedTouches);return t&(u|e)&&(i=sr(i.concat(r),"identifier",!0)),[i,r]}function ti(){this.evTarget=eu;this.targetIds={};s.apply(this,arguments)}function rf(n,t){var r=kt(n.touches),o=this.targetIds;if(t&(f|nt)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var i,s,h=kt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return or(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[sr(s.concat(c),"identifier",!0),c]}function yi(){s.apply(this,arguments);var n=ci(this.handler,this);this.touch=new ti(this.manager,n);this.mouse=new ni(this.manager,n);this.primaryTouch=null;this.lastTouches=[]}function uf(n,t){n&f?(this.primaryTouch=t.changedPointers[0].identifier,pr.call(this,t)):n&(u|e)&&pr.call(this,t)}function pr(n){var t=n.changedPointers[0],i,r,u;t.identifier===this.primaryTouch&&(i={x:t.clientX,y:t.clientY},this.lastTouches.push(i),r=this.lastTouches,u=function(){var n=r.indexOf(i);n>-1&&r.splice(n,1)},setTimeout(u,ou))}function ff(n){for(var r=n.srcEvent.clientX,u=n.srcEvent.clientY,t=0;t<this.lastTouches.length;t++){var i=this.lastTouches[t],f=Math.abs(r-i.x),e=Math.abs(u-i.y);if(ir>=f&&ir>=e)return!0}return!1}function pi(n,t){this.manager=n;this.set(t)}function ef(n){if(d(n,it))return it;var t=d(n,at),i=d(n,vt);return t&&i?it:t||i?t?at:vt:d(n,rr)?rr:lu}function of(){if(!hu)return!1;var t={},i=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){t[r]=i?n.CSS.supports("touch-action",r):!0}),t}function y(n){this.options=w({},this.defaults,n||{});this.id=yu();this.manager=null;this.options.enable=er(this.options.enable,!0);this.state=si;this.simultaneous={};this.requireFail=[]}function wr(n){return n&yt?"cancel":n&k?"end":n&et?"move":n&h?"start":""}function br(n){return n==lt?"down":n==ct?"up":n==st?"left":n==ht?"right":""}function ii(n,t){var i=t.manager;return i?i.get(n):n}function c(){y.apply(this,arguments)}function ri(){c.apply(this,arguments);this.pX=null;this.pY=null}function wi(){c.apply(this,arguments)}function bi(){y.apply(this,arguments);this._timer=null;this._input=null}function ki(){c.apply(this,arguments)}function di(){c.apply(this,arguments)}function ui(){y.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function p(n,t){return t=t||{},t.recognizers=er(t.recognizers,p.defaults.preset),new gi(n,t)}function gi(n,t){this.options=w({},p.defaults,t||{});this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=n;this.input=pu(this);this.touchAction=new pi(this,this.options.touchAction);kr(this,!0);v(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function kr(n,t){var r=n.element,i;r.style&&(v(n.options.cssProps,function(u,f){i=dt(r.style,f);t?(n.oldCssProps[i]=r.style[i],r.style[i]=u):r.style[i]=n.oldCssProps[i]||""}),t||(n.oldCssProps={}))}function sf(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var w,dr=["","webkit","Moz","MS","ms","o"],hf=t.createElement("div"),cf="function",ft=Math.round,g=Math.abs,nr=Date.now,fu,eu,ou,ir,au,ur,vu;w="function"!=typeof Object.assign?function(n){var f,i,t,u;if(n===r||null===n)throw new TypeError("Cannot convert undefined or null to object");for(f=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==r&&null!==t)for(u in t)t.hasOwnProperty(u)&&(f[u]=t[u]);return f}:Object.assign;var gr=fr(function(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n},"extend","Use `assign`."),lf=fr(function(n,t){return gr(n,t,!0)},"merge","Use `assign`."),af=1,nu="ontouchstart"in n,vf=dt(n,"PointerEvent")!==r,yf=nu&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ot="touch",tr="mouse",pf=25,f=1,nt=2,u=4,e=8,fi=1,st=2,ht=4,ct=8,lt=16,l=st|ht,tt=ct|lt,tu=l|tt,iu=["x","y"],ei=["clientX","clientY"];s.prototype={handler:function(){},init:function(){this.evEl&&pt(this.element,this.evEl,this.domHandler);this.evTarget&&pt(this.target,this.evTarget,this.domHandler);this.evWin&&pt(hr(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&wt(this.element,this.evEl,this.domHandler);this.evTarget&&wt(this.target,this.evTarget,this.domHandler);this.evWin&&wt(hr(this.element),this.evWin,this.domHandler)}};var wf={mousedown:f,mousemove:nt,mouseup:u},bf="mousedown",kf="mousemove mouseup";o(ni,s,{handler:function(n){var t=wf[n.type];t&f&&0===n.button&&(this.pressed=!0);t&nt&&1!==n.which&&(t=u);this.pressed&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:tr,srcEvent:n}))}});var df={pointerdown:f,pointermove:nt,pointerup:u,pointercancel:e,pointerout:e},gf={2:ot,3:"pen",4:tr,5:"kinect"},ru="pointerdown",uu="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(ru="MSPointerDown",uu="MSPointerMove MSPointerUp MSPointerCancel");o(vi,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=df[h],s=gf[n.pointerType]||n.pointerType,c=s==ot,i=ut(t,n.pointerId,"pointerId");r&f&&(0===n.button||c)?0>i&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0);0>i||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var ne={touchstart:f,touchmove:nt,touchend:u,touchcancel:e},te="touchstart",ie="touchstart touchmove touchend touchcancel";o(yr,s,{handler:function(n){var i=ne[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=tf.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n}))}});fu={touchstart:f,touchmove:nt,touchend:u,touchcancel:e};eu="touchstart touchmove touchend touchcancel";o(ti,s,{handler:function(n){var i=fu[n.type],t=rf.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:ot,srcEvent:n})}});ou=2500;ir=25;o(yi,s,{handler:function(n,t,i){var u=i.pointerType==ot,r=i.pointerType==tr;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(u)uf.call(this,t,i);else if(r&&ff.call(this,i))return;this.callback(n,t,i)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var su=dt(hf.style,"touchAction"),hu=su!==r,cu="compute",lu="auto",rr="manipulation",it="none",at="pan-x",vt="pan-y",oi=of();pi.prototype={set:function(n){n==cu&&(n=this.compute());hu&&this.manager.element.style&&oi[n]&&(this.manager.element.style[su]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){li(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),ef(n.join(" "))},preventDefaults:function(n){var i=n.srcEvent,r=n.offsetDirection;if(this.manager.session.prevented)return void i.preventDefault();var t=this.actions,u=d(t,it)&&!oi[it],f=d(t,vt)&&!oi[vt],e=d(t,at)&&!oi[at];if(u){var o=1===n.pointers.length,s=n.distance<2,h=n.deltaTime<250;if(o&&s&&h)return}if(!e||!f)return u||f&&r&l||e&&r&tt?this.preventSrc(i):void 0},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var si=1,h=2,et=4,k=8,b=k,yt=16,a=32;y.prototype={defaults:{},set:function(n){return w(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(rt(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=ii(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return rt(n,"dropRecognizeWith",this)?this:(n=ii(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(rt(n,"requireFailure",this))return this;var t=this.requireFail;return n=ii(n,this),-1===ut(t,n)&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(rt(n,"dropRequireFailure",this))return this;n=ii(n,this);var t=ut(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){i.manager.emit(t,n)}var i=this,r=this.state;k>r&&t(i.options.event+wr(r));t(i.options.event);n.additionalEvent&&t(n.additionalEvent);r>=k&&t(i.options.event+wr(r))},tryEmit:function(n){return this.canEmit()?this.emit(n):void(this.state=a)},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|si)))return!1;n++}return!0},recognize:function(n){var t=w({},n);return li(this.options.enable,[this,t])?(this.state&(b|yt|a)&&(this.state=si),this.state=this.process(t),void(this.state&(h|et|k|yt)&&this.tryEmit(t))):(this.reset(),void(this.state=a))},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,y,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|et),f=this.attrTest(n);return r&&(i&e||!f)?t|yt:r||f?i&u?t|k:t&h?t|et:h:a}});o(ri,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:tu},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(vt),t&tt&&n.push(at),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&l?(t=0===f?fi:0>f?st:ht,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=0===e?fi:0>e?ct:lt,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=br(n.direction);t&&(n.additionalEvent=this.options.event+t);this._super.emit.call(this,n)}});o(wi,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(1!==n.scale){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}});o(bi,y,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[lu]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=hi(function(){this.state=b;this.tryEmit()},t.time,this);else if(n.eventType&u)return b;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===b&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=nr(),this.manager.emit(this.options.event,this._input)))}});o(ki,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[it]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(di,c,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:l|tt,pointers:1},getTouchAction:function(){return ri.prototype.getTouchAction.call(this)},attrTest:function(n){var t,i=this.options.direction;return i&(l|tt)?t=n.overallVelocity:i&l?t=n.overallVelocityX:i&tt&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&i&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&g(t)>this.options.velocity&&n.eventType&u},emit:function(n){var t=br(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(ui,y,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[rr]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&0===this.count)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||gt(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,0===e)return this.hasRequireFailures()?(this._timer=hi(function(){this.state=b;this.tryEmit()},t.interval,this),h):b}return a},failTimeout:function(){return this._timer=hi(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==b&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});p.VERSION="2.0.8";p.defaults={domEvents:!1,touchAction:cu,enable:!0,inputTarget:null,inputClass:null,preset:[[ki,{enable:!1}],[wi,{enable:!1},["rotate"]],[di,{direction:l}],[ri,{direction:l},["swipe"]],[ui],[ui,{event:"doubletap",taps:2},["tap"]],[bi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};au=1;ur=2;gi.prototype={set:function(n){return w(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?ur:au},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&b)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped===ur||t&&i!=t&&!i.canRecognizeWith(t)?i.reset():i.recognize(n),!t&&i.state&(h|et|k)&&(t=r.curRecognizer=i),u++},get:function(n){if(n instanceof y)return n;for(var i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(rt(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(rt(n,"remove",this))return this;if(n=this.get(n)){var t=this.recognizers,i=ut(t,n);-1!==i&&(t.splice(i,1),this.touchAction.update())}return this},on:function(n,t){if(n!==r&&t!==r){var i=this.handlers;return v(bt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this}},off:function(n,t){if(n!==r){var i=this.handlers;return v(bt(n),function(n){t?i[n]&&i[n].splice(ut(i[n],t),1):delete i[n]}),this}},emit:function(n,t){var i,r;if(this.options.domEvents&&sf(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&kr(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};w(p,{INPUT_START:f,INPUT_MOVE:nt,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:si,STATE_BEGAN:h,STATE_CHANGED:et,STATE_ENDED:k,STATE_RECOGNIZED:b,STATE_CANCELLED:yt,STATE_FAILED:a,DIRECTION_NONE:fi,DIRECTION_LEFT:st,DIRECTION_RIGHT:ht,DIRECTION_UP:ct,DIRECTION_DOWN:lt,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:tt,DIRECTION_ALL:tu,Manager:gi,Input:s,TouchAction:pi,TouchInput:ti,MouseInput:ni,PointerEventInput:vi,TouchMouseInput:yi,SingleTouchInput:yr,Recognizer:y,AttrRecognizer:c,Tap:ui,Pan:ri,Swipe:di,Pinch:wi,Rotate:ki,Press:bi,on:pt,off:wt,each:v,merge:lf,extend:gr,assign:w,inherit:o,bindFn:ci,prefixed:dt});vu="undefined"!=typeof n?n:"undefined"!=typeof self?self:{};vu.Hammer=p;"function"==typeof define&&define.amd?define(function(){return p}):"undefined"!=typeof module&&module.exports?module.exports=p:n[i]=p}(window,document,"Hammer"),function(n){var t=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global,i,r;if(typeof define=="function"&&define.amd)define(["underscore","jquery","exports"],function(i,r,u){t.Backbone=n(t,u,i,r)});else if(typeof exports!="undefined"){i=require("underscore");try{r=require("jquery")}catch(u){}n(t,exports,i,r)}else t.Backbone=n(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(function(n,t,i,r){var ct=n.Backbone,b=Array.prototype.slice,d,g,y,p,s,c,ot,ht,w,a;t.VERSION="1.4.0";t.$=r;t.noConflict=function(){return n.Backbone=ct,this};t.emulateHTTP=!1;t.emulateJSON=!1;var u=t.Events={},k=/\s+/,f,o=function(n,t,r,u,f){var e=0,s;if(r&&typeof r=="object")for(u!==void 0&&("context"in f)&&f.context===void 0&&(f.context=u),s=i.keys(r);e<s.length;e++)t=o(n,t,s[e],r[s[e]],f);else if(r&&k.test(r))for(s=r.split(k);e<s.length;e++)t=n(t,s[e],u,f);else t=n(t,r,u,f);return t};u.on=function(n,t,i){if(this._events=o(d,this._events||{},n,t,{context:i,ctx:this,listening:f}),f){var r=this._listeners||(this._listeners={});r[f.id]=f;f.interop=!1}return this};u.listenTo=function(n,t,r){var e;if(!n)return this;var o=n._listenId||(n._listenId=i.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),u=f=s[o];if(u||(this._listenId||(this._listenId=i.uniqueId("l")),u=f=s[o]=new v(this,n)),e=g(n,t,r,this),f=void 0,e)throw e;if(u.interop)u.on(t,r);return this};d=function(n,t,i,r){if(i){var e=n[t]||(n[t]=[]),f=r.context,o=r.ctx,u=r.listening;u&&u.count++;e.push({callback:i,context:f,ctx:f||o,listening:u})}return n};g=function(n,t,i,r){try{n.on(t,i,r)}catch(u){return u}};u.off=function(n,t,i){return this._events?(this._events=o(y,this._events,n,t,{context:i,listeners:this._listeners}),this):this};u.stopListening=function(n,t,r){var f=this._listeningTo,o,e,u;if(!f)return this;for(o=n?[n._listenId]:i.keys(f),e=0;e<o.length;e++){if(u=f[o[e]],!u)break;u.obj.off(t,r,this);u.interop&&u.off(t,r)}return i.isEmpty(f)&&(this._listeningTo=void 0),this};y=function(n,t,r,u){var s,h,c,o,a;if(n){var l=u.context,v=u.listeners,f=0,e;if(!t&&!l&&!r){for(e=i.keys(v);f<e.length;f++)v[e[f]].cleanup();return}for(e=t?[t]:i.keys(n);f<e.length;f++){if(t=e[f],s=n[t],!s)break;for(h=[],c=0;c<s.length;c++)o=s[c],r&&r!==o.callback&&r!==o.callback._callback||l&&l!==o.context?h.push(o):(a=o.listening,a&&a.off(t,r));h.length?n[t]=h:delete n[t]}return n}};u.once=function(n,t,i){var r=o(p,{},n,t,this.off.bind(this));typeof n=="string"&&i==null&&(t=void 0);return this.on(r,t,i)};u.listenToOnce=function(n,t,i){var r=o(p,{},t,i,this.stopListening.bind(this,n));return this.listenTo(n,r)};p=function(n,t,r,u){if(r){var f=n[t]=i.once(function(){u(t,f);r.apply(this,arguments)});f._callback=r}return n};u.trigger=function(n){var i,r,t;if(!this._events)return this;for(i=Math.max(0,arguments.length-1),r=Array(i),t=0;t<i;t++)r[t]=arguments[t+1];return o(lt,this._events,n,void 0,r),this};var lt=function(n,t,i,r){if(n){var f=n[t],u=n.all;f&&u&&(u=u.slice());f&&nt(f,r);u&&nt(u,[t].concat(r))}return n},nt=function(n,t){var i,r=-1,u=n.length,f=t[0],e=t[1],o=t[2];switch(t.length){case 0:while(++r<u)(i=n[r]).callback.call(i.ctx);return;case 1:while(++r<u)(i=n[r]).callback.call(i.ctx,f);return;case 2:while(++r<u)(i=n[r]).callback.call(i.ctx,f,e);return;case 3:while(++r<u)(i=n[r]).callback.call(i.ctx,f,e,o);return;default:while(++r<u)(i=n[r]).callback.apply(i.ctx,t);return}},v=function(n,t){this.id=n._listenId;this.listener=n;this.obj=t;this.interop=!0;this.count=0;this._events=void 0};v.prototype.on=u.on;v.prototype.off=function(n,t){var i;this.interop?(this._events=o(y,this._events,n,t,{context:void 0,listeners:void 0}),i=!this._events):(this.count--,i=this.count===0);i&&this.cleanup()};v.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId];this.interop||delete this.obj._listeners[this.id]};u.bind=u.on;u.unbind=u.off;i.extend(t,u);s=t.Model=function(n,t){var r=n||{},u;t||(t={});this.preinitialize.apply(this,arguments);this.cid=i.uniqueId(this.cidPrefix);this.attributes={};t.collection&&(this.collection=t.collection);t.parse&&(r=this.parse(r,t)||{});u=i.result(this,"defaults");r=i.defaults(i.extend({},u,r),u);this.set(r,t);this.changed={};this.initialize.apply(this,arguments)};i.extend(s.prototype,u,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(){return i.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(n){return this.attributes[n]},escape:function(n){return i.escape(this.get(n))},has:function(n){return this.get(n)!=null},matches:function(n){return!!i.iteratee(n,this)(this.attributes)},set:function(n,t,r){var f,u,o;if(n==null)return this;if(typeof n=="object"?(f=n,r=t):(f={})[n]=t,r||(r={}),!this._validate(f,r))return!1;var a=r.unset,h=r.silent,e=[],c=this._changing;this._changing=!0;c||(this._previousAttributes=i.clone(this.attributes),this.changed={});var s=this.attributes,l=this.changed,v=this._previousAttributes;for(u in f)t=f[u],i.isEqual(s[u],t)||e.push(u),i.isEqual(v[u],t)?delete l[u]:l[u]=t,a?delete s[u]:s[u]=t;if(this.idAttribute in f&&(this.id=this.get(this.idAttribute)),!h)for(e.length&&(this._pending=r),o=0;o<e.length;o++)this.trigger("change:"+e[o],this,s[e[o]],r);if(c)return this;if(!h)while(this._pending)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(n,t){return this.set(n,void 0,i.extend({},t,{unset:!0}))},clear:function(n){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,i.extend({},n,{unset:!0}))},hasChanged:function(n){return n==null?!i.isEmpty(this.changed):i.has(this.changed,n)},changedAttributes:function(n){var f,r,e,t,u;if(!n)return this.hasChanged()?i.clone(this.changed):!1;f=this._changing?this._previousAttributes:this.attributes;r={};for(t in n)(u=n[t],i.isEqual(f[t],u))||(r[t]=u,e=!0);return e?r:!1},previous:function(n){return n==null||!this._previousAttributes?null:this._previousAttributes[n]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(n){n=i.extend({parse:!0},n);var t=this,r=n.success;return n.success=function(i){var u=n.parse?t.parse(i,n):i;if(!t.set(u,n))return!1;r&&r.call(n.context,t,i,n);t.trigger("sync",t,i,n)},a(this,n),this.sync("read",this,n)},save:function(n,t,r){var u,e,s,c;if(n==null||typeof n=="object"?(u=n,r=t):(u={})[n]=t,r=i.extend({validate:!0,parse:!0},r),e=r.wait,u&&!e){if(!this.set(u,r))return!1}else if(!this._validate(u,r))return!1;var f=this,h=r.success,o=this.attributes;return r.success=function(n){f.attributes=o;var t=r.parse?f.parse(n,r):n;if(e&&(t=i.extend({},u,t)),t&&!f.set(t,r))return!1;h&&h.call(r.context,f,n,r);f.trigger("sync",f,n,r)},a(this,r),u&&e&&(this.attributes=i.extend({},o,u)),s=this.isNew()?"create":r.patch?"patch":"update",s!=="patch"||r.attrs||(r.attrs=u),c=this.sync(s,this,r),this.attributes=o,c},destroy:function(n){var r;n=n?i.clone(n):{};var t=this,u=n.success,f=n.wait,e=function(){t.stopListening();t.trigger("destroy",t,t.collection,n)};return n.success=function(i){f&&e();u&&u.call(n.context,t,i,n);t.isNew()||t.trigger("sync",t,i,n)},r=!1,this.isNew()?i.defer(n.success):(a(this,n),r=this.sync("delete",this,n)),f||e(),r},url:function(){var n=i.result(this,"urlRoot")||i.result(this.collection,"url")||w(),t;return this.isNew()?n:(t=this.get(this.idAttribute),n.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(n){return n},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(n){return this._validate({},i.extend({},n,{validate:!0}))},_validate:function(n,t){if(!t.validate||!this.validate)return!0;n=i.extend({},this.attributes,n);var r=this.validationError=this.validate(n,t)||null;return r?(this.trigger("invalid",this,r,i.extend(t,{validationError:r})),!1):!0}});var h=t.Collection=function(n,t){t||(t={});this.preinitialize.apply(this,arguments);t.model&&(this.model=t.model);t.comparator!==void 0&&(this.comparator=t.comparator);this._reset();this.initialize.apply(this,arguments);n&&this.reset(n,i.extend({silent:!0},t))},at={add:!0,remove:!0,merge:!0},vt={add:!0,remove:!1},tt=function(n,t,i){i=Math.min(Math.max(i,0),n.length);for(var u=Array(n.length-i),f=t.length,r=0;r<u.length;r++)u[r]=n[r+i];for(r=0;r<f;r++)n[r+i]=t[r];for(r=0;r<u.length;r++)n[r+f+i]=u[r]};i.extend(h.prototype,u,{model:s,preinitialize:function(){},initialize:function(){},toJSON:function(n){return this.map(function(t){return t.toJSON(n)})},sync:function(){return t.sync.apply(this,arguments)},add:function(n,t){return this.set(n,i.extend({merge:!1},t,vt))},remove:function(n,t){var u,r;return t=i.extend({},t),u=!i.isArray(n),n=u?[n]:n.slice(),r=this._removeModels(n,t),!t.silent&&r.length&&(t.changes={added:[],merged:[],removed:r},this.trigger("update",this,t)),u?r[0]:r},set:function(n,t){var v,f,e,a,w,d;if(n!=null){t=i.extend({},at,t);t.parse&&!this._isModel(n)&&(n=this.parse(n,t)||[]);v=!i.isArray(n);n=v?[n]:n.slice();f=t.at;f!=null&&(f=+f);f>this.length&&(f=this.length);f<0&&(f+=this.length+1);for(var s=[],o=[],y=[],h=[],l={},b=t.add,g=t.merge,k=t.remove,c=!1,p=this.comparator&&f==null&&t.sort!==!1,nt=i.isString(this.comparator)?this.comparator:null,r,u=0;u<n.length;u++)r=n[u],e=this.get(r),e?(g&&r!==e&&(a=this._isModel(r)?r.attributes:r,t.parse&&(a=e.parse(a,t)),e.set(a,t),y.push(e),p&&!c&&(c=e.hasChanged(nt))),l[e.cid]||(l[e.cid]=!0,s.push(e)),n[u]=e):b&&(r=n[u]=this._prepareModel(r,t),r&&(o.push(r),this._addReference(r,t),l[r.cid]=!0,s.push(r)));if(k){for(u=0;u<this.length;u++)r=this.models[u],l[r.cid]||h.push(r);h.length&&this._removeModels(h,t)}if(w=!1,d=!p&&b&&k,s.length&&d?(w=this.length!==s.length||i.some(this.models,function(n,t){return n!==s[t]}),this.models.length=0,tt(this.models,s,0),this.length=this.models.length):o.length&&(p&&(c=!0),tt(this.models,o,f==null?this.length:f),this.length=this.models.length),c&&this.sort({silent:!0}),!t.silent){for(u=0;u<o.length;u++)f!=null&&(t.index=f+u),r=o[u],r.trigger("add",r,this,t);(c||w)&&this.trigger("sort",this,t);(o.length||h.length||y.length)&&(t.changes={added:o,removed:h,merged:y},this.trigger("update",this,t))}return v?n[0]:n}},reset:function(n,t){t=t?i.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),n=this.add(n,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),n},push:function(n,t){return this.add(n,i.extend({at:this.length},t))},pop:function(n){var t=this.at(this.length-1);return this.remove(t,n)},unshift:function(n,t){return this.add(n,i.extend({at:0},t))},shift:function(n){var t=this.at(0);return this.remove(t,n)},slice:function(){return b.apply(this.models,arguments)},get:function(n){if(n!=null)return this._byId[n]||this._byId[this.modelId(this._isModel(n)?n.attributes:n)]||n.cid&&this._byId[n.cid]},has:function(n){return this.get(n)!=null},at:function(n){return n<0&&(n+=this.length),this.models[n]},where:function(n,t){return this[t?"find":"filter"](n)},findWhere:function(n){return this.where(n,!0)},sort:function(n){var t=this.comparator,r;if(!t)throw new Error("Cannot sort a set without a comparator");return n||(n={}),r=t.length,i.isFunction(t)&&(t=t.bind(this)),r===1||i.isString(t)?this.models=this.sortBy(t):this.models.sort(t),n.silent||this.trigger("sort",this,n),this},pluck:function(n){return this.map(n+"")},fetch:function(n){n=i.extend({parse:!0},n);var r=n.success,t=this;return n.success=function(i){var u=n.reset?"reset":"set";t[u](i,n);r&&r.call(n.context,t,i,n);t.trigger("sync",t,i,n)},a(this,n),this.sync("read",this,n)},create:function(n,t){var r,f,u;return(t=t?i.clone(t):{},r=t.wait,n=this._prepareModel(n,t),!n)?!1:(r||this.add(n,t),f=this,u=t.success,t.success=function(n,t,i){r&&f.add(n,i);u&&u.call(i.context,n,t,i)},n.save(null,t),n)},parse:function(n){return n},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(n){return n[this.model.prototype.idAttribute||"id"]},values:function(){return new l(this,it)},keys:function(){return new l(this,rt)},entries:function(){return new l(this,yt)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(n,t){if(this._isModel(n))return n.collection||(n.collection=this),n;t=t?i.clone(t):{};t.collection=this;var r=new this.model(n,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(n,t){for(var i,u,f,e=[],r=0;r<n.length;r++)(i=this.get(n[r]),i)&&(u=this.indexOf(i),this.models.splice(u,1),this.length--,delete this._byId[i.cid],f=this.modelId(i.attributes),f!=null&&delete this._byId[f],t.silent||(t.index=u,i.trigger("remove",i,this,t)),e.push(i),this._removeReference(i,t));return e},_isModel:function(n){return n instanceof s},_addReference:function(n){this._byId[n.cid]=n;var t=this.modelId(n.attributes);t!=null&&(this._byId[t]=n);n.on("all",this._onModelEvent,this)},_removeReference:function(n){delete this._byId[n.cid];var t=this.modelId(n.attributes);t!=null&&delete this._byId[t];this===n.collection&&delete n.collection;n.off("all",this._onModelEvent,this)},_onModelEvent:function(n,t,i,r){if(t){if((n==="add"||n==="remove")&&i!==this)return;if(n==="destroy"&&this.remove(t,r),n==="change"){var u=this.modelId(t.previousAttributes()),f=this.modelId(t.attributes);u!==f&&(u!=null&&delete this._byId[u],f!=null&&(this._byId[f]=t))}}this.trigger.apply(this,arguments)}});c=typeof Symbol=="function"&&Symbol.iterator;c&&(h.prototype[c]=h.prototype.values);var l=function(n,t){this._collection=n;this._kind=t;this._index=0},it=1,rt=2,yt=3;c&&(l.prototype[c]=function(){return this});l.prototype.next=function(){var n,t,i;if(this._collection){if(this._index<this._collection.length)return n=this._collection.at(this._index),this._index++,this._kind===it?t=n:(i=this._collection.modelId(n.attributes),t=this._kind===rt?i:[i,n]),{value:t,done:!1};this._collection=void 0}return{value:void 0,done:!0}};var ut=t.View=function(n){this.cid=i.uniqueId("view");this.preinitialize.apply(this,arguments);i.extend(this,i.pick(n,wt));this._ensureElement();this.initialize.apply(this,arguments)},pt=/^(\S+)\s*(.*)$/,wt=["model","collection","el","id","attributes","className","tagName","events"];i.extend(ut.prototype,u,{tagName:"div",$:function(n){return this.$el.find(n)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(n){return this.undelegateEvents(),this._setElement(n),this.delegateEvents(),this},_setElement:function(n){this.$el=n instanceof t.$?n:t.$(n);this.el=this.$el[0]},delegateEvents:function(n){var r,t,u;if(n||(n=i.result(this,"events")),!n)return this;this.undelegateEvents();for(r in n)(t=n[r],i.isFunction(t)||(t=this[t]),t)&&(u=r.match(pt),this.delegate(u[1],u[2],t.bind(this)));return this},delegate:function(n,t,i){this.$el.on(n+".delegateEvents"+this.cid,t,i);return this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(n,t,i){return this.$el.off(n+".delegateEvents"+this.cid,t,i),this},_createElement:function(n){return document.createElement(n)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var n=i.extend({},i.result(this,"attributes"));this.id&&(n.id=i.result(this,"id"));this.className&&(n["class"]=i.result(this,"className"));this.setElement(this._createElement(i.result(this,"tagName")));this._setAttributes(n)}},_setAttributes:function(n){this.$el.attr(n)}});var bt=function(n,t,i,r){switch(t){case 1:return function(){return n[i](this[r])};case 2:return function(t){return n[i](this[r],t)};case 3:return function(t,u){return n[i](this[r],et(t,this),u)};case 4:return function(t,u,f){return n[i](this[r],et(t,this),u,f)};default:return function(){var t=b.call(arguments);return t.unshift(this[r]),n[i].apply(n,t)}}},ft=function(n,t,r,u){i.each(r,function(i,r){t[r]&&(n.prototype[r]=bt(t,i,r,u))})},et=function(n,t){return i.isFunction(n)?n:i.isObject(n)&&!t._isModel(n)?kt(n):i.isString(n)?function(t){return t.get(n)}:n},kt=function(n){var t=i.matches(n);return function(n){return t(n.attributes)}};i.each([[h,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[s,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(n){var t=n[0],u=n[1],r=n[2];t.mixin=function(n){var u=i.reduce(i.functions(n),function(n,t){return n[t]=0,n},{});ft(t,n,u,r)};ft(t,i,u,r)});t.sync=function(n,r,u){var e=ot[n],f,o,s,h;return i.defaults(u||(u={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON}),f={type:e,dataType:"json"},u.url||(f.url=i.result(r,"url")||w()),u.data==null&&r&&(n==="create"||n==="update"||n==="patch")&&(f.contentType="application/json",f.data=JSON.stringify(u.attrs||r.toJSON(u))),u.emulateJSON&&(f.contentType="application/x-www-form-urlencoded",f.data=f.data?{model:f.data}:{}),u.emulateHTTP&&(e==="PUT"||e==="DELETE"||e==="PATCH")&&(f.type="POST",u.emulateJSON&&(f.data._method=e),o=u.beforeSend,u.beforeSend=function(n){return n.setRequestHeader("X-HTTP-Method-Override",e),o?o.apply(this,arguments):void 0}),f.type==="GET"||u.emulateJSON||(f.processData=!1),s=u.error,u.error=function(n,t,i){u.textStatus=t;u.errorThrown=i;s&&s.call(u.context,n,t,i)},h=u.xhr=t.ajax(i.extend(f,u)),r.trigger("request",r,h,u),h};ot={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var st=t.Router=function(n){n||(n={});this.preinitialize.apply(this,arguments);n.routes&&(this.routes=n.routes);this._bindRoutes();this.initialize.apply(this,arguments)},dt=/\((.*?)\)/g,gt=/(\(\?)?:\w+/g,ni=/\*\w+/g,ti=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(st.prototype,u,{preinitialize:function(){},initialize:function(){},route:function(n,r,u){i.isRegExp(n)||(n=this._routeToRegExp(n));i.isFunction(r)&&(u=r,r="");u||(u=this[r]);var f=this;return t.history.route(n,function(i){var e=f._extractParameters(n,i);f.execute(u,e,r)!==!1&&(f.trigger.apply(f,["route:"+r].concat(e)),f.trigger("route",r,e),t.history.trigger("route",f,r,e))}),this},execute:function(n,t){n&&n.apply(this,t)},navigate:function(n,i){return t.history.navigate(n,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var n,t=i.keys(this.routes);(n=t.pop())!=null;)this.route(n,this.routes[n])}},_routeToRegExp:function(n){return n=n.replace(ti,"\\$&").replace(dt,"(?:$1)?").replace(gt,function(n,t){return t?n:"([^/?]+)"}).replace(ni,"([^?]*?)"),new RegExp("^"+n+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(n,t){var r=n.exec(t).slice(1);return i.map(r,function(n,t){return t===r.length-1?n||null:n?decodeURIComponent(n):null})}});var e=t.History=function(){this.handlers=[];this.checkUrl=this.checkUrl.bind(this);typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},ii=/^[#\/]|\s+$/g,ri=/^\/+|\/+$/g,ui=/#.*$/;return e.started=!1,i.extend(e.prototype,u,{interval:50,atRoot:function(){var n=this.location.pathname.replace(/[^\/]$/,"$&/");return n===this.root&&!this.getSearch()},matchRoot:function(){var n=this.decodeFragment(this.location.pathname),t=n.slice(0,this.root.length-1)+"/";return t===this.root},decodeFragment:function(n){return decodeURI(n.replace(/%25/g,"%2525"))},getSearch:function(){var n=this.location.href.replace(/#.*/,"").match(/\?.+/);return n?n[0]:""},getHash:function(n){var t=(n||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var n=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return n.charAt(0)==="/"?n.slice(1):n},getFragment:function(n){return n==null&&(n=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),n.replace(ii,"")},start:function(n){var f,r,t,u;if(e.started)throw new Error("Backbone.history has already been started");if(e.started=!0,this.options=i.extend({root:"/"},this.options,n),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.history&&this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(ri,"/"),this._wantsHashChange&&this._wantsPushState)if(this._hasPushState||this.atRoot())this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0});else return f=this.root.slice(0,-1)||"/",this.location.replace(f+"#"+this.getPath()),!0;return this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,r=document.body,t=r.insertBefore(this.iframe,r.firstChild).contentWindow,t.document.open(),t.document.close(),t.location.hash="#"+this.fragment),u=window.addEventListener||function(n,t){return attachEvent("on"+n,t)},this._usePushState?u("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?u("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.options.silent?void 0:this.loadUrl()},stop:function(){var n=window.removeEventListener||function(n,t){return detachEvent("on"+n,t)};this._usePushState?n("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&n("hashchange",this.checkUrl,!1);this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null);this._checkUrlInterval&&clearInterval(this._checkUrlInterval);e.started=!1},route:function(n,t){this.handlers.unshift({route:n,callback:t})},checkUrl:function(){var n=this.getFragment();if(n===this.fragment&&this.iframe&&(n=this.getHash(this.iframe.contentWindow)),n===this.fragment)return!1;this.iframe&&this.navigate(n);this.loadUrl()},loadUrl:function(n){return this.matchRoot()?(n=this.fragment=this.getFragment(n),i.some(this.handlers,function(t){if(t.route.test(n))return t.callback(n),!0})):!1},navigate:function(n,t){var i,u,f,r;if(!e.started)return!1;if(t&&t!==!0||(t={trigger:!!t}),n=this.getFragment(n||""),i=this.root,(n===""||n.charAt(0)==="?")&&(i=i.slice(0,-1)||"/"),u=i+n,n=n.replace(ui,""),f=this.decodeFragment(n),this.fragment!==f){if(this.fragment=f,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,u);else if(this._wantsHashChange)this._updateHash(this.location,n,t.replace),this.iframe&&n!==this.getHash(this.iframe.contentWindow)&&(r=this.iframe.contentWindow,t.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,n,t.replace));else return this.location.assign(u);if(t.trigger)return this.loadUrl(n)}},_updateHash:function(n,t,i){if(i){var r=n.href.replace(/(javascript:|#).*$/,"");n.replace(r+"#"+t)}else n.hash="#"+t}}),t.history=new e,ht=function(n,t){var u=this,r;return r=n&&i.has(n,"constructor")?n.constructor:function(){return u.apply(this,arguments)},i.extend(r,u,t),r.prototype=i.create(u.prototype,n),r.prototype.constructor=r,r.__super__=u.prototype,r},s.extend=h.extend=st.extend=ut.extend=e.extend=ht,w=function(){throw new Error('A "url" property or function must be specified');},a=function(n,t){var i=t.error;t.error=function(r){i&&i.call(t.context,n,r,t);n.trigger("error",n,r,t)}},t}); | |
/*! | |
* typeahead.js 1.3.1 | |
* https://github.com/corejavascript/typeahead.js | |
* Copyright 2013-2020 Twitter, Inc. and other contributors; Licensed MIT | |
*/ | |
(function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(i){return n.Bloodhound=t(i)}):typeof module=="object"&&module.exports?module.exports=t(require("jquery")):n.Bloodhound=t(n.jQuery)})(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},guid:function(){function n(n){var t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return"tt-"+n()+n(!0)+n(!0)+n()},noop:function(){}}}(),u="1.3.1",f=function(){"use strict";function i(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function r(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function u(n){n=t.toStr(n);var r=[],i="";return t.each(n.split(""),function(n){n.match(/\s+/)?i="":(r.push(i+n),i+=n)}),r}function n(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:r,whitespace:i,ngram:u,obj:{nonword:n(r),whitespace:n(i),ngram:n(u)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var r=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix));this.ls=r||i;this.ls||this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}function o(n){for(var r,u=[],f=i.length,t=0;t<f;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}var i;try{i=window.localStorage;i.setItem("~~~","!");i.removeItem("~~~")}catch(s){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(i){i.name==="QuotaExceededError"&&(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=o(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return t.isNumber(i)&&u()>i?!0:!1}}),r}(),r=function(){"use strict";function r(n){n=n||{};this.maxPendingRequests=n.maxPendingRequests||6;this.cancelled=!1;this.lastReq=null;this._send=n.transport;this._get=n.limiter?n.limiter(this._get):this._get;this._cache=n.cache===!1?new i(0):e}var u=0,f={},e=new i(10);return r.setMaxPendingRequests=function(n){this.maxPendingRequests=n},r.resetCache=function(){e.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return t=t||{},t.url+t.type+n.param(t.data||{})},_get:function(n,t){function o(n){t(null,n);i._cache.set(r,n)}function s(){t(!0)}function h(){u--;delete f[r];i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}var i=this,r,e;(r=this._fingerprint(n),this.cancelled||r!==this.lastReq)||((e=f[r])?e.done(o).fail(s):u<this.maxPendingRequests?(u++,f[r]=this._send(n).done(o).fail(s).always(h)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop;i=t.isString(i)?{url:i}:i||{};u=this._fingerprint(i);this.cancelled=!1;this.lastReq=u;(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function u(i){i=i||{};i.datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.identify=i.identify||t.stringify;this.datumTokenizer=i.datumTokenizer;this.queryTokenizer=i.queryTokenizer;this.matchAnyQueryToken=i.matchAnyQueryToken;this.reset()}function f(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function e(){var n={};return n[r]=[],n[i]={},n}function o(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function s(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}var i="c",r="i";return t.mixin(u.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var u=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var o,s;u.datums[o=u.identify(n)]=n;s=f(u.datumTokenizer(n));t.each(s,function(n){for(var f,t=u.trie,s=n.split("");f=s.shift();)t=t[i][f]||(t[i][f]=e()),t[r].push(o)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var e=this,h,u;return h=f(this.queryTokenizer(n)),t.each(h,function(n){var t,f,h,o;if(u&&u.length===0&&!e.matchAnyQueryToken)return!1;for(t=e.trie,f=n.split("");t&&(h=f.shift());)t=t[i][h];if(t&&f.length===0)o=t[r].slice(0),u=u?s(u,o):o;else if(!e.matchAnyQueryToken)return u=[],!1}),u?t.map(o(u),function(n){return e.datums[n]}):[]},all:function(){var n=[];for(var t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={};this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),u}(),s=function(){"use strict";function i(n){this.url=n.url;this.ttl=n.ttl;this.cache=n.cache;this.prepare=n.prepare;this.transform=n.transform;this.transport=n.transport;this.thumbprint=n.thumbprint;this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t={},i;return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){function r(){n(!0)}function u(t){n(null,i.transform(t))}var i=this,t;n&&(t=this.prepare(this._settings()),this.transport(t).fail(r).done(u))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url;this.prepare=n.prepare;this.transform=n.transform;this.indexResponse=n.indexResponse;this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport,maxPendingRequests:n.maxPendingRequests})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){function u(n,i){n?t([]):t(r.transform(i))}var r=this,i;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,u)},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function r(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),r.url||n.error("prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}function f(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.url||n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=e(r),r.limiter=o(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}function e(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return(t=n.prepare,i=n.replace,r=n.wildcard,t)?t:i?u:n.wildcard?f:e}function o(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}function i(i){return function(r){function f(n){t.defer(function(){u.resolve(n)})}function e(n){t.defer(function(){u.reject(n)})}var u=n.Deferred();return i(r,f,e),u}}return function(i){var e,u;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,matchAnyQueryToken:!1,sufficient:5,indexRemote:!1,sorter:null,local:[],prefetch:null,remote:null},i=t.mixin(e,i||{}),i.datumTokenizer||n.error("datumTokenizer is required"),i.queryTokenizer||n.error("queryTokenizer is required"),u=i.sorter,i.sorter=u?function(n){return n.sort(u)}:t.identity,i.local=t.isFunction(i.local)?i.local():i.local,i.prefetch=r(i.prefetch),i.remote=f(i.remote),i}}();return function(){"use strict";function i(n){n=c(n);this.sorter=n.sorter;this.identify=n.identify;this.sufficient=n.sufficient;this.indexRemote=n.indexRemote;this.local=n.local;this.remote=n.remote?new h(n.remote):null;this.prefetch=n.prefetch?new s(n.prefetch):null;this.index=new o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer});n.initialize!==!1&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){function t(t,i,r){return n.search(t,i,r)}function i(t,i){return n.search(t,i)}var n=this;return this.remote?t:i},_loadPrefetch:function(){function u(n,r){if(n)return t.reject();i.add(r);i.prefetch.store(i.index.serialize());t.resolve()}var i=this,t,r;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(u):t.resolve(),t.promise()},_initialize:function(){function t(){n.add(n.local)}var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){function e(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)});f.indexRemote&&f.add(i);r(i)}var f=this,u;return i=i||t.noop,r=r||t.noop,u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof module=="object"&&module.exports?module.exports=t(require("jquery")):t(n.jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},guid:function(){function n(n){var t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return"tt-"+n()+n(!0)+n(!0)+n()},noop:function(){}}}(),e=function(){"use strict";function i(i){var e,o;return o=t.mixin({},n,i),e={css:f(),classes:o,html:r(o),selectors:u(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function r(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div role="listbox" class="'+n.menu+'"><\/div>'}}function u(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function f(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return i}(),o=function(){"use strict";function u(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(u.prototype,{_trigger:function(t,r){var u=n.Event(i+t);return this.$el.trigger.call(this.$el,u,r||[]),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=r[n])&&this._trigger(t,[].slice.call(arguments,1))}}),u}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),s=function(n){"use strict";function u(n){return r[n.toUpperCase()]||n}function f(n,i,r,f){for(var e,o=[],s,h=0,c=n.length;h<c;h++)e=t.escapeRegExChars(n[h]),f&&(e=e.replace(/\S/g,u)),o.push(e);return s=r?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",i?new RegExp(s):new RegExp(s,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1,diacriticInsensitive:!1},r={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"};return function(r){function o(t){var i,f,e;return(i=u.exec(t.data))&&(e=n.createElement(r.tagName),r.className&&(e.className=r.className),f=t.splitText(i.index),f.splitText(i[0].length),e.appendChild(f.cloneNode(!0)),t.parentNode.replaceChild(e,f)),!!i}function e(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var u;(r=t.mixin({},i,r),r.node&&r.pattern)&&(r.pattern=t.isArray(r.pattern)?r.pattern:[r.pattern],u=f(r.pattern,r.caseSensitive,r.wordsOnly,r.diacriticInsensitive),e(r.node,o))}}(window.document),u=function(){"use strict";function i(i,r){var u;i=i||{};i.input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.$menu=n(i.menu);u=this.$input.attr("id")||t.guid();this.$menu.attr("id",u+"_listbox");this.$hint.attr({"aria-hidden":!0});this.$input.attr({"aria-owns":u+"_listbox",role:"combobox","aria-autocomplete":"list","aria-expanded":!1});this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=e(this.$input);this._checkLanguageDirection();this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop);this.onSync("cursorchange",this._updateDescendent)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break;default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query);r=i?this.query.length!==n.length:!1;this.query=n;t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},_updateDescendent:function(n,t){this.$input.attr("aria-activedescendant",t)},bind:function(){var n=this,i,r,f,e;i=t.bind(this._onBlur,this);r=t.bind(this._onFocus,this);f=t.bind(this._onKeydown,this);e=t.bind(this._onInput,this);this.$input.on("blur.tt",i).on("focus.tt",r).on("keydown.tt",f);if(!t.isMsie()||t.isMsie()>9)this.$input.on("input.tt",e);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(i){u[i.which||i.keyCode]||t.defer(t.bind(n._onInput,n,i))});return this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")},setAriaExpanded:function(n){this.$input.attr("aria-expanded",n)}}),i}(),f=function(){"use strict";function u(i,r){i=i||{};i.templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=t.toStr(i.name||f());this.limit=i.limit||5;this.displayFn=e(i.display||i.displayKey);this.templates=o(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this._resetLastSuggestion();this.$el=n(i.node).attr("role","presentation").addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(r){var u=i.suggestion;return n(u(r)).attr("id",t.guid())}function f(i){return n('<div role="option">').attr("id",t.guid()).text(r(i))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion?u:f}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={dataset:"tt-selectable-dataset",val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{dataset:r.data(i.dataset)||"",val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[];t.length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",t,!1,this.name)},_append:function(n,t){t=t||[];t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",t,!0,this.name)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t);r=i.children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var f=this,e;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.dataset,f.name).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function e(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t,i.name))}function o(u){if(u=u||[],!f&&r<i.limit){i.cancel=n.noop;var e=Math.abs(r-i.limit);r+=e;i._append(t,u.slice(0,e));i.async&&i.trigger("asyncReceived",t,i.name)}}var i=this,f=!1,u=!1,r=0;this.cancel();this.cancel=function(){f=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t,i.name)};this.source(t,e,o);u||e([])},cancel:n.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{};i.node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return t.every(this.datasets,t.bind(function(n){var t=n.isEmpty();return this.$node.attr("aria-expanded",!t),t},this))},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var i=this,r=t.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,r);this.$node.on("mouseover",this.selectors.selectable,function(){i.setCursor(n(this))});this.$node.on("mouseleave",function(){i._removeCursor()});return t.each(this.datasets,function(n){n.onSync("asyncRequested",i._propagate,i).onSync("asyncCanceled",i._propagate,i).onSync("asyncReceived",i._propagate,i).onSync("rendered",i._onRendered,i).onSync("cleared",i._onCleared,i)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.scrollTop(0);this.$node.addClass(this.classes.open)},close:function(){this.$node.attr("aria-expanded",!1);this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=t<-1?i.length-1:t,t===-1?null:i.eq(t)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function i(i){this.$el=n("<span><\/span>",{role:"status","aria-live":"polite"}).css({position:"absolute",padding:"0",border:"0",height:"1px",width:"1px","margin-bottom":"-1px","margin-right":"-1px",overflow:"hidden",clip:"rect(0 0 0 0)","white-space":"nowrap"});i.$input.after(this.$el);t.each(i.menu.datasets,t.bind(function(n){if(n.onSync){n.onSync("rendered",t.bind(this.update,this));n.onSync("cleared",t.bind(this.cleared,this))}},this))}return t.mixin(i.prototype,{update:function(n,t){var r=t.length,i;i=r===1?{result:"result",is:"is"}:{result:"results",is:"are"};this.$el.text(r+" "+i.result+" "+i.is+" available, use up and down arrow keys to navigate.")},cleared:function(){this.$el.text("")}}),i}(),c=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return this._allDatasetsEmpty()||this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css(t==="ltr"?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),l=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{};r.input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.autoselect=!!r.autoselect;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){if(this._updateHint(),this.autoselect){var u=this.selectors.cursor.substr(1);this.menu.$node.find(this.selectors.suggestion).first().addClass(u)}this.eventBus.trigger("render",t,i,r)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&(t.preventDefault(),t.stopPropagation()):this.autoselect&&this.select(this.menu.getTopSelectable())&&(t.preventDefault(),t.stopPropagation())},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():this.autoselect&&(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable();i=this.menu.getSelectableData(f);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.input.setAriaExpanded(!0),this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.input.setAriaExpanded(!1),this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj,t.dataset)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj,t.dataset),this.close(),!0):!1},autocomplete:function(n){var i,t,r;return(i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj,t.dataset))?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj,t.dataset),!0):!1},moveCursor:function(n){var f,i,t,r,u,e,o;return(f=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,u=t?t.dataset:null,o=i?i.attr("id"):null,this.input.trigger("cursorchange",o),e=this._minLengthMet()&&this.menu.update(f),!e&&!this.eventBus.before("cursorchange",r,u))?(this.menu.setCursor(i),t?typeof t.val=="string"&&this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r,u),!0):!1},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();(function(){"use strict";function r(t,i){t.each(function(){var t=n(this),r;(r=t.data(f.typeahead))&&i(r,t)})}function y(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(w(n)).prop({readonly:!0,required:!1}).removeAttr("id name placeholder").removeClass("required").attr({spellcheck:"false",tabindex:-1})}function p(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function w(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function b(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}function v(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first():[],r.length?r:null}var a,f,s;a=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){function w(){var e,g,w,b,k,d,tt,it,nt,ft,rt,ut;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);g=n(a.html.wrapper);w=v(r.hint);b=v(r.menu);k=r.hint!==!1&&!w;d=r.menu!==!1&&!b;k&&(w=y(e,a));d&&(b=n(a.html.menu).css(a.css.menu));w&&w.val("");e=p(e,a);(k||d)&&(g.css(a.css.wrapper),e.css(k?a.css.input:a.css.inputWithNoHint),e.wrap(g).parent().prepend(k?w:null).append(d?b:null));ut=d?c:i;tt=new o({el:e});it=new u({hint:w,input:e,menu:b},a);nt=new ut({node:b,datasets:s},a);ft=new h({$input:e,menu:nt});rt=new l({input:it,menu:nt,eventBus:tt,minLength:r.minLength,autoselect:r.autoselect},a);e.data(f.www,a);e.data(f.typeahead,rt)}var a;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},a=e(r.classNames),this.each(w)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var i;return arguments.length?(r(this,function(i){i.setVal(t.toStr(n))}),this):(r(this.first(),function(n){i=n.getVal()}),i)},destroy:function(){return r(this,function(n,t){b(t);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=a,this}})()});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"undefined"!=typeof module&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){!function(t){var i="function"==typeof define&&define.amd,r="undefined"!=typeof module&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E")));t()}(function(){var h,c="mCustomScrollbar",t="mCS",it=".mCustomScrollbar",ot={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},pt=0,b={},p=window.attachEvent&&!window.addEventListener?1:0,e=!1,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},ot,r),e=v.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||it,f=n(u),"off"===r.live)return void k(u);b[u]=setTimeout(function(){f.mCustomScrollbar(r);"once"===r.live&&f.length&&k(u)},500)}else k(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":wt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,"object"!=typeof r.mouseWheel&&1==r.mouseWheel&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=bt(r.scrollButtons.scrollType),st(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++pt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,st(f));kt.call(this);e&&f.callbacks.onCreate&&"function"==typeof f.callbacks.onCreate&&f.callbacks.onCreate.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||v.call(this);return n(e).each(function(){var s=n(this),c;if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSB_"+e.idx+"_container"),a=n("#mCSB_"+e.idx),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);f&&e&&r.callbacks.onBeforeUpdate&&"function"==typeof r.callbacks.onBeforeUpdate&&r.callbacks.onBeforeUpdate.call(this);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);a.css("max-height","none");a.height()!==s.height()&&a.css("max-height",s.height());dt.call(this);"y"===r.axis||r.advanced.autoExpandHorizontalScroll||h.css("width",ht(h));e.overflowed=ii.call(this);ct.call(this);r.autoDraggerLength&&ni.call(this);ti.call(this);ri.call(this);c=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];"x"!==r.axis&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?y.call(this):(u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(y.call(this),"y"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[1]&&u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})));"y"!==r.axis&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?y.call(this):(u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(y.call(this),"x"===r.axis?g.call(this):"yx"===r.axis&&e.overflowed[0]&&u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(2===f&&r.callbacks.onImageLoad&&"function"==typeof r.callbacks.onImageLoad?r.callbacks.onImageLoad.call(this):3===f&&r.callbacks.onSelectorChange&&"function"==typeof r.callbacks.onSelectorChange?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&"function"==typeof r.callbacks.onUpdate&&r.callbacks.onUpdate.call(this));et.call(this)}})},scrollTo:function(i,r){if("undefined"!=typeof i&&null!=i){var f=v.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,{},c,r),e=ft.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=at.call(this,e[0],"y");e[1]=at.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=wi()?0:l;setTimeout(function(){null!==e[0]&&"undefined"!=typeof e[0]&&"x"!==h.axis&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));null!==e[1]&&"undefined"!=typeof e[1]&&"y"!==h.axis&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=v.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=v.call(this);return n(u).each(function(){var u=n(this);u.data(t)&&(u.data(t),et.call(this,"remove"),g.call(this),r&&y.call(this),ct.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=v.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),h=n(".mCSB_"+u.idx+"_scrollbar");e.live&&k(e.liveSelector||n(r).selector);et.call(this,"remove");g.call(this);y.call(this);f.removeData(t);a(this,"mcs");h.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(c+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},v=function(){return"object"!=typeof n(this)||n(this).length<1?it:this},st=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},k=function(n){b[n]&&(clearTimeout(b[n]),a(b,n))},wt=function(n){return"yx"===n||"xy"===n||"auto"===n?"yx":"x"===n||"horizontal"===n?"x":"y"},bt=function(n){return"stepped"===n||"pixels"===n||"step"===n||"click"===n?"stepped":"stepless"},kt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='mCSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],v="yx"===r.axis?"mCSB_vertical_horizontal":"x"===r.axis?"mCSB_horizontal":"mCSB_vertical",a="yx"===r.axis?o[0]+o[1]:"x"===r.axis?o[1]:o[0],y="yx"===r.axis?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w="x"!==r.axis&&"rtl"===u.langDir?" "+i[7]:"",h,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft="y"!==r.axis&&"rtl"===u.langDir?"989999px":r.setLeft;f.addClass(c+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir='"+u.langDir+"' /><\/div>");h=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||s.css("width",ht(s));"outside"===r.scrollbarPosition?("static"===f.css("position")&&f.css("position","relative"),f.css("overflow","visible"),h.addClass("mCSB_outside").after(a)):(h.addClass("mCSB_inside").append(a),s.wrap(y));gt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},ht=function(t){var i=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return n(this).outerWidth(!0)}).get())],r=t.parent().width();return i[0]>r?i[0]:i[1]>r?i[1]:"100%"},dt=function(){var e=n(this),f=e.data(t),r=f.opt,i=n("#mCSB_"+f.idx+"_container"),u;r.advanced.autoExpandHorizontalScroll&&"y"!==r.axis&&(i.css({width:"auto","min-width":0,"overflow-x":"scroll"}),u=Math.ceil(i[0].scrollWidth),3===r.advanced.autoExpandHorizontalScroll||2!==r.advanced.autoExpandHorizontalScroll&&u>i.parent().width()?i.css({width:u,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},gt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=tt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' "+f+" />","<a href='#' class='"+i[14]+"' "+f+" />","<a href='#' class='"+i[15]+"' "+f+" />","<a href='#' class='"+i[16]+"' "+f+" />"],e=["x"===u.axis?r[2]:r[0],"x"===u.axis?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},ni=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=p&&i[1]<i[0]?i[0]:i[1],c=p&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ti=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},d=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");"active"===t?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||("hide"===t?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ii=function(){var h=n(this),r=h.data(t),e=n("#mCSB_"+r.idx),i=n("#mCSB_"+r.idx+"_container"),u=null==r.overflowed?i.height():i.outerHeight(!1),f=null==r.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>u&&(u=o),s>f&&(f=s),[u>e.height(),f>e.width()]},y=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;(o(r),("x"!==f.axis&&!i.overflowed[0]||"y"===f.axis&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY")),"y"!==f.axis&&!i.overflowed[1]||"x"===f.axis&&i.overflowed[1])&&(e=dx=0,"rtl"===i.langDir&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ri=function(){function u(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),oi.call(f[0])):u()},100)}var f=n(this),r=f.data(t),i=r.opt,e;r.bindEvents||((ui.call(this),i.contentTouchScroll&&fi.call(this),ei.call(this),i.mouseWheel.enable)&&u(),hi.call(this),li.call(this),i.advanced.autoScrollOnFocus&&ci.call(this),i.scrollButtons.enable&&ai.call(this),i.keyboard.enable&&vi.call(this),r.bindEvents=!0)},g=function(){var f=n(this),r=f.data(t),u=r.opt,o=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",e=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+s+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+s+">a"),h=n("#mCSB_"+r.idx+"_container");u.advanced.releaseDraggableSelectors&&e.add(n(u.advanced.releaseDraggableSelectors));u.advanced.extraDraggableSelectors&&e.add(n(u.advanced.extraDraggableSelectors));r.bindEvents&&(n(document).add(n(!l()||top.document)).unbind("."+o),e.each(function(){n(this).unbind("."+o)}),clearTimeout(f[0]._focusTimeout),a(f[0],"_focusTimeout"),clearTimeout(r.sequential.step),a(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),a(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ct=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];"x"!==o.axis&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+i[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));"y"!==o.axis&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(t){var e=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[n(frameElement).offset().top,n(frameElement).offset().left]:null,u=l()&&t.target.ownerDocument!==top.document&&null!==frameElement?[n(t.view.frameElement).offset().top,n(t.view.frameElement).offset().left]:[0,0],r,f;switch(e){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+u[0],t.originalEvent.pageX-i[1]+u[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return r=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],f=t.originalEvent.touches.length||t.originalEvent.changedTouches.length,t.target.ownerDocument!==document?[r.screenY,r.screenX,f>1]:[r.pageY,r.pageX,f>1];default:return i?[t.pageY-i[0]+u[0],t.pageX-i[1]+u[1],!1]:[t.pageY,t.pageX,!1]}},ui=function(){function k(n,t,r,f){var e,o;(w[0].idleTimer=h.scrollInertia<233?250:0,i.attr("id")===y[1])?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(v,o.toString(),{dir:e,drag:!0})}var i,c,a,v=n(this),s=v.data(t),h=s.opt,f=t+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=n("#mCSB_"+s.idx+"_container"),b=n("#"+y[0]+",#"+y[1]),g=h.advanced.releaseDraggableSelectors?b.add(n(h.advanced.releaseDraggableSelectors)):b,nt=h.advanced.extraDraggableSelectors?n(!l()||top.document).add(n(h.advanced.extraDraggableSelectors)):n(!l()||top.document);b.bind("contextmenu."+f,function(n){n.preventDefault()}).bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),yt(t)){e=!0;p&&(document.onselectstart=function(){return!1});lt.call(w,!1);o(v);i=n(this);var u=i.offset(),f=r(t)[0]-u.top,s=r(t)[1]-u.left,l=i.height()+u.top,y=i.width()+u.left;l>f&&f>0&&y>s&&s>0&&(c=f,a=s);d(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+f,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;k(c,a,u,f)});n(document).add(nt).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u&&a===f)return;k(c,a,u,f)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(){i&&(d(i,"active",h.autoExpandScrollbar),i=null);e=!1;p&&(document.onselectstart=null);lt.call(w,!0)})},fi=function(){function at(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;it=0;rt=0;st=1;g.removeClass("mCS_touch_action");var t=b.offset();k=r(n)[0]-t.top;d=r(n)[1]-t.left;v=[r(n)[0],r(n)[1]]}function vt(n){var c,l,a,y;if(nt(n)&&!e&&!r(n)[2]&&(f.documentTouchScroll||n.preventDefault(),n.stopImmediatePropagation(),(!rt||it)&&st)){gt=w();var o=ut.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";(et.push(t),ot.push(u),v[2]=Math.abs(r(n)[0]-v[0]),v[3]=Math.abs(r(n)[1]-v[1]),i.overflowed[0])&&(c=ft[0].parent().height()-ft[0].height(),l=k-t>0&&t-k>-(c*i.scrollRatio.y)&&(2*v[3]<v[2]||"yx"===f.axis));i.overflowed[1]&&(a=ft[1].parent().width()-ft[1].width(),y=d-u>0&&u-d>-(a*i.scrollRatio.x)&&(2*v[2]<v[3]||"yx"===f.axis));l||y?(ii||n.preventDefault(),it=1):(rt=1,g.addClass("mCS_touch_action"));ii&&n.preventDefault();s="yx"===f.axis?[k-t,d-u]:"x"===f.axis?[null,d-u]:[k-t,null];b[0].idleTimer=250;i.overflowed[0]&&tt(s[0],ni,h,"y","all",!0);i.overflowed[1]&&tt(s[1],ni,h,"x",lt,!0)}}function yt(n){if(!nt(n)||e||r(n)[2])return void(h=0);h=1;n.stopImmediatePropagation();o(g);dt=w();var t=ut.offset();bt=r(n)[0]-t.top;kt=r(n)[1]-t.left;et=[];ot=[]}function pt(n){var t,u,h;if(nt(n)&&!e&&!r(n)[2]){st=0;n.stopImmediatePropagation();it=0;rt=0;ht=w();var l=ut.offset(),a=r(n)[0]-l.top,v=r(n)[1]-l.left;if(!(ht-gt>30)){c=1e3/(ht-dt);var p="mcsEaseOut",o=2.5>c,k=o?[et[et.length-2],ot[ot.length-2]]:[0,0];y=o?[a-k[0],v-k[1]]:[a-bt,v-kt];t=[Math.abs(y[0]),Math.abs(y[1])];c=o?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[c,c];u=[Math.abs(b[0].offsetTop)-y[0]*wt(t[0]/c[0],c[0]),Math.abs(b[0].offsetLeft)-y[1]*wt(t[1]/c[1],c[1])];s="yx"===f.axis?[u[0],u[1]]:"x"===f.axis?[null,u[1]]:[u[0],null];ct=[4*t[0]+f.scrollInertia,4*t[1]+f.scrollInertia];h=parseInt(f.contentTouchScroll)||0;s[0]=t[0]>h?s[0]:0;s[1]=t[1]>h?s[1]:0;i.overflowed[0]&&tt(s[0],ct[0],p,"y",lt,!1);i.overflowed[1]&&tt(s[1],ct[1],p,"x",lt,!1)}}}function wt(n,t){var i=[1.5*t,2*t,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function tt(n,t,i,r,f,e){n&&u(g,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var st,k,d,bt,kt,dt,gt,ht,y,c,s,ct,it,rt,g=n(this),i=g.data(t),f=i.opt,a=t+"_"+i.idx,ut=n("#mCSB_"+i.idx),b=n("#mCSB_"+i.idx+"_container"),ft=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],et=[],ot=[],ni=0,lt="yx"===f.axis?"none":"all",v=[],ti=b.find("iframe"),p=["touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,"touchmove."+a+" pointermove."+a+" MSPointerMove."+a,"touchend."+a+" pointerup."+a+" MSPointerUp."+a],ii=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;b.bind(p[0],function(n){at(n)}).bind(p[1],function(n){vt(n)});ut.bind(p[0],function(n){yt(n)}).bind(p[2],function(n){pt(n)});ti.length&&ti.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){at(n);yt(n)}).bind(p[1],function(n){vt(n)}).bind(p[2],function(n){pt(n)})})})},ei=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function i(n,t,i){l.type=i&&u?"stepped":"stepless";l.scrollAmount=10;ut(a,n,t,"mcsLinearOut",i?60:null)}var u,a=n(this),f=a.data(t),v=f.opt,l=f.sequential,s=t+"_"+f.idx,o=n("#mCSB_"+f.idx+"_container"),c=o.parent();o.bind("mousedown."+s,function(){h||u||(u=1,e=!0)}).add(document).bind("mousemove."+s,function(n){if(!h&&u&&y()){var s=o.offset(),t=r(n)[0]-s.top+o[0].offsetTop,e=r(n)[1]-s.left+o[0].offsetLeft;t>0&&t<c.height()&&e>0&&e<c.width()?l.step&&i("off",null,"stepped"):("x"!==v.axis&&f.overflowed[0]&&(0>t?i("on",38):t>c.height()&&i("on",40)),"y"!==v.axis&&f.overflowed[1]&&(0>e?i("on",37):e>c.width()&&i("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(){h||(u&&(u=0,i("off",null)),e=!1)})},oi=function(){function h(t,h){var a,v;if(o(s),!si(s,t.target)){if(a="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):p&&t.deltaFactor<100?100:t.deltaFactor||100,v=i.scrollInertia,"x"===i.axis||"x"===i.mouseWheel.axis)var y="x",l=[Math.round(a*r.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.width()?.9*e.width():l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetLeft),b=f[1][0].offsetLeft,d=f[1].parent().width()-f[1].width(),c="y"===i.mouseWheel.axis?t.deltaY||h:t.deltaX;else var y="y",l=[Math.round(a*r.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],w="auto"!==i.mouseWheel.scrollAmount?l[1]:l[0]>=e.height()?.9*e.height():l[0],k=Math.abs(n("#mCSB_"+r.idx+"_container")[0].offsetTop),b=f[0][0].offsetTop,d=f[0].parent().height()-f[0].height(),c=t.deltaY||h;("y"!==y||r.overflowed[0])&&("x"!==y||r.overflowed[1])&&((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(c=-c),i.mouseWheel.normalizeDelta&&(c=0>c?-1:1),(c>0&&0!==b||0>c&&b!==d||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(w=t.deltaFactor,v=17),u(s,(k-c*w).toString(),{dir:y,dur:v}))}}if(n(this).data(t)){var s=n(this),r=s.data(t),i=r.opt,c=t+"_"+r.idx,e=n("#mCSB_"+r.idx),f=[n("#mCSB_"+r.idx+"_dragger_vertical"),n("#mCSB_"+r.idx+"_dragger_horizontal")],a=n("#mCSB_"+r.idx+"_container").find("iframe");a.length&&a.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+c,function(n,t){h(n,t)})})});e.bind("mousewheel."+c,function(n,t){h(n,t)})}},rt={},l=function(t){var r=!1,i=!1,u=null,f;if(void 0===t?i="#empty":void 0!==n(t).attr("id")&&(i=n(t).attr("id")),i!==!1&&void 0!==rt[i])return rt[i];if(t){try{f=t.contentDocument||t.contentWindow.document;u=f.body.innerHTML}catch(e){}r=null!==u}else{try{f=top.document;u=f.body.innerHTML}catch(e){}r=null!==u}return i!==!1&&(rt[i]=r),r},lt=function(n){var t=this.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))},si=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},hi=function(){var s,h=n(this),f=h.data(t),r=t+"_"+f.idx,c=n("#mCSB_"+f.idx+"_container"),l=c.parent(),a=n(".mCSB_"+f.idx+"_scrollbar ."+i[12]);a.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(t){e=!0;n(t.target).hasClass("mCSB_dragger")||(s=1)}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){e=!1}).bind("click."+r,function(t){var r,e;if(s&&(s=0,n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail"))){if(o(h),r=n(this),e=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!f.overflowed[1])return;var v="x",a=t.pageX>e.offset().left?-1:1,y=Math.abs(c[0].offsetLeft)-a*.9*l.width()}else{if(!f.overflowed[0])return;var v="y",a=t.pageY>e.offset().top?-1:1,y=Math.abs(c[0].offsetTop)-a*.9*l.height()}u(h,y.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},ci=function(){var i=n(this),s=i.data(t),e=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(e.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[f(t)[0],f(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l="yx"!==e.axis||c[0]||c[1]?"all":"none";"x"===e.axis||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});"y"===e.axis||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},li=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){0===r.scrollTop()&&0===r.scrollLeft()||n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},ai=function(){var f=n(this),r=f.data(t),o=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("contextmenu."+i,function(n){n.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function i(n,t){u.scrollAmount=o.scrollButtons.scrollAmount;ut(f,n,t)}if(t.preventDefault(),yt(t)){var s=n(this).attr("class");switch(u.type=o.scrollButtons.scrollType,t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===u.type)return;e=!0;r.tweenRunning=!1;i("on",s);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===u.type)return;e=!1;u.dir&&i("off",s);break;case"click":if("stepped"!==u.type||r.tweenRunning)return;i("on",s)}}})},vi=function(){function a(t){function w(n,t){s.type=r.keyboard.scrollType;s.scrollAmount=r.keyboard.scrollAmount;"stepped"===s.type&&i.tweenRunning||ut(e,n,t)}var c,y,p,l,a;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on","x"!==r.axis&&(38===c||40===c)||"y"!==r.axis&&(37===c||39===c)){if((38===c||40===c)&&!i.overflowed[0]||(37===c||39===c)&&!i.overflowed[1])return;"keyup"===t.type&&(y="off");n(document.activeElement).is(v)||(t.preventDefault(),t.stopImmediatePropagation(),w(y,c))}else 33===c||34===c?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)&&(o(e),p=34===c?-1:1,"x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0]?(l="x",a=Math.abs(f[0].offsetLeft)-p*.9*h.width()):(l="y",a=Math.abs(f[0].offsetTop)-p*.9*h.height()),u(e,a.toString(),{dir:l,scrollEasing:"mcsEaseInOut"})):35!==c&&36!==c||n(document.activeElement).is(v)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"!==t.type)||("x"===r.axis||"yx"===r.axis&&i.overflowed[1]&&!i.overflowed[0]?(l="x",a=35===c?Math.abs(h.width()-f.outerWidth(!1)):0):(l="y",a=35===c?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,a.toString(),{dir:l,scrollEasing:"mcsEaseInOut"}))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,w=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']",y=f.find("iframe"),p=["blur."+c+" keydown."+c+" keyup."+c];y.length&&y.each(function(){n(this).bind("load",function(){l(this)&&n(this.contentDocument||this.contentWindow.document).bind(p[0],function(n){a(n)})})});w.attr("tabindex","0").bind(p[0],function(n){a(n)})},ut=function(r,f,e,s,h){function y(n){l.snapAmount&&(c.scrollAmount=l.snapAmount instanceof Array?"x"===c.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var i="stepped"!==c.type,f=h?h:n?i?k/1.5:d:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[v.scrollRatio.y>10?10:v.scrollRatio.y,v.scrollRatio.x>10?10:v.scrollRatio.x],w="x"===c.dir[0]?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,b="x"===c.dir[0]?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),a="auto"!==c.scrollAmount?b:w,g=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",nt=!!n;return n&&17>f&&(a="x"===c.dir[0]?t[1]:t[0]),u(r,a.toString(),{dir:c.dir[0],scrollEasing:g,dur:f,onComplete:nt}),n?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){y()},f)))}function b(){clearTimeout(c.step);a(c,"step");o(r)}var v=r.data(t),l=v.opt,c=v.sequential,p=n("#mCSB_"+v.idx+"_container"),w="stepped"===c.type,k=l.scrollInertia<26?26:l.scrollInertia,d=l.scrollInertia<1?17:l.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||39===e||37===e?"x":"y",e===i[13]||e===i[15]||38===e||37===e?-1:1],o(r),tt(e)&&"stepped"===c.type)return;y(w);break;case"off":b();(w||v.tweenRunning&&c.dir)&&y(!0)}},ft=function(i){var u=n(this).data(t).opt,r=[];return"function"==typeof i&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:"x"===u.axis?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||"x"===u.axis?null:i,r[1]=i.x?i.x:i.y||"y"===u.axis?null:i),"function"==typeof r[0]&&(r[0]=r[0]()),"function"==typeof r[1]&&(r[1]=r[1]()),r},at=function(i,r){var h,e;if(null!=i&&"undefined"!=typeof i){var c=n(this),l=c.data(t),v=l.opt,u=n("#mCSB_"+l.idx+"_container"),o=u.parent(),y=typeof i;r||(r="x"===v.axis?"x":"y");var p="x"===r?u.outerWidth(!1)-o.width():u.outerHeight(!1)-o.height(),a="x"===r?u[0].offsetLeft:u[0].offsetTop,w="x"===r?"left":"top";switch(y){case"function":return i();case"object":return(e=i.jquery?i:n(i),!e.length)?void 0:"x"===r?f(e)[1]:f(e)[0];case"string":case"number":return tt(i)?Math.abs(i):-1!==i.indexOf("%")?Math.abs(p*parseInt(i)/100):-1!==i.indexOf("-=")?Math.abs(a-parseInt(i.split("-=")[1])):-1!==i.indexOf("+=")?(h=a+parseInt(i.split("+=")[1]),h>=0?0:Math.abs(h)):-1!==i.indexOf("px")&&tt(i.split("px")[0])?Math.abs(i.split("px")[0]):"top"===i||"left"===i?0:"bottom"===i?Math.abs(o.height()-u.outerHeight(!1)):"right"===i?Math.abs(o.width()-u.outerWidth(!1)):"first"===i||"last"===i?(e=u.find(":"+i),"x"===r?f(e)[1]:f(e)[0]):n(i).length?"x"===r?f(n(i))[1]:f(n(i))[0]:(u.css(w,i),void s.update.call(null,c[0]))}}},et=function(r){function c(){return clearTimeout(e[0].autoUpdate),0===o.parents("html").length?void(o=null):void(e[0].autoUpdate=setTimeout(function(){return f.advanced.updateOnSelectorChange&&(u.poll.change.n=v(),u.poll.change.n!==u.poll.change.o)?(u.poll.change.o=u.poll.change.n,void h(3)):f.advanced.updateOnContentResize&&(u.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+e[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,u.poll.size.n!==u.poll.size.o)?(u.poll.size.o=u.poll.size.n,void h(1)):!f.advanced.updateOnImageLoad||"auto"===f.advanced.updateOnImageLoad&&"y"===f.axis||(u.poll.img.n=e.find("img").length,u.poll.img.n===u.poll.img.o)?void((f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&c()):(u.poll.img.o=u.poll.img.n,void e.find("img").each(function(){l(this)}))},f.advanced.autoUpdateTimeout))}function l(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);h(2)}if(n(t).hasClass(i[2]))return void h();var r=new Image;r.onload=u(r,f);r.src=t.src}function v(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var n=0,t=e.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){n+=this.offsetHeight+this.offsetWidth}),n}function h(n){clearTimeout(e[0].autoUpdate);s.update.call(null,o[0],n)}var o=n(this),u=o.data(t),f=u.opt,e=n("#mCSB_"+u.idx+"_container");return r?(clearTimeout(e[0].autoUpdate),void a(e[0],"autoUpdate")):void c()},yi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){pi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&"function"==typeof e.callbacks[n]}function rt(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||-y>=w]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,ut={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(ut,u),k=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ft.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ft.call(i,e.callbacks.onTotalScrollBackOffset):[0,0],tt;if(f.trigger=u.trigger,0===b.scrollTop()&&0===b.scrollLeft()||(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),"_resetY"!==r||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),"_resetX"!==r||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),"_resetY"!==r&&"_resetX"!==r){(!f.contentReset.y&&i[0].mcs||!f.overflowed[0]||(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null),!f.contentReset.x&&i[0].mcs||!f.overflowed[1]||(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null),e.snapAmount)&&(tt=e.snapAmount instanceof Array?"x"===u.dir?e.snapAmount[1]:e.snapAmount[0]:e.snapAmount,r=yi(r,tt,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),it="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,0===r?0:r/f.scrollRatio.x],v=g[1],y=nt[1],et=v>0?v/f.scrollRatio.x:0,ot=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),it="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,0===r?0:r/f.scrollRatio.y],v=g[0],y=nt[0],et=v>0?v/f.scrollRatio.y:0,ot=y>0?y/f.scrollRatio.y:0}s[1]<0||0===s[0]&&0===s[1]?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0];i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0]));clearTimeout(o[0].onCompleteTimeout);vt(c[0],it,Math.round(s[1]),k[1],u.scrollEasing);!f.tweenRunning&&(0===w&&s[0]>=0||w===l[0]&&s[0]<=l[0])||vt(o[0],it,Math.round(s[0]),k[0],u.scrollEasing,u.overwrite,{onStart:function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,d(c),f.cbOffsets=rt())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){"yx"===e.axis&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-et&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=ot&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;d(c,"hide")},n)}}})}},vt=function(n,t,i,r,u,f,e){function a(){o.stop||(s||g.call(),s=w()-it,v(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=c(a):tt.call())}function v(){r>0?(o.currVal=d(o.time,l,p,r,u),y[t]=Math.round(o.currVal)+"px"):y[t]=i+"px";nt.call()}function b(){h=1e3/60;o.time=s+h;c=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return v(),setTimeout(n,.01)};o.id=c(a)}function k(){null!=o.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function d(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return n/=r/2,1>n?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return n/=r/2,1>n?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return n/=r/2,1>n?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var p;n._mTween||(n._mTween={top:{},left:{}});var h,c,e=e||{},g=e.onStart||function(){},nt=e.onUpdate||function(){},tt=e.onComplete||function(){},it=w(),s=0,l=n.offsetTop,y=n.style,o=n._mTween[t];"left"===t&&(l=n.offsetLeft);p=i-l;o.stop=0;"none"!==f&&k();b()},w=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},pi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},a=function(n,t){try{delete n[t]}catch(i){n[t]=null}},yt=function(n){return!(n.which&&1!==n.which)},nt=function(n){var t=n.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},tt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},f=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]},wi=function(){function t(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}var n=t();return n?document[n]:!1};n.fn[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c]=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist"):s.init.apply(this,arguments)};n[c].defaults=ot;window[c]=!0;n(window).bind("load",function(){n(it)[c]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var e,r,i=n(t),u=i.parents(".mCSB_container");if(u.length)return e=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+f(i)[0]>=0&&r[0]+f(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+f(i)[1]>=0&&r[1]+f(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:n.expr[":"].mcsInSight||function(t,i,r){var e,u,o,s,h=n(t),c=h.parents(".mCSB_container"),l="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return e=[h.outerHeight(!1),h.outerWidth(!1)],o=[c[0].offsetTop+f(h)[0],c[0].offsetLeft+f(h)[1]],u=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],s=[e[0]<u[0]?l[0]:l[1],e[1]<u[1]?l[0]:l[1]],o[0]-u[0]*s[0][0]<0&&o[0]+e[0]-u[0]*s[0][1]>=0&&o[1]-u[1]*s[1][0]<0&&o[1]+e[1]-u[1]*s[1][1]>=0},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}),function(){function t(){var t="";for(var n in this)typeof this[n]!="function"&&(t+=n+'="'+this[n]+'" ');return t}function i(){var t="";for(var n in this)typeof this[n]!="function"&&(t+=n+"="+encodeURIComponent(this[n])+"&");return t.replace(/&$/,"")}var n;n=jQuery.fn.flash=function(t,i,r,u){var f=r||n.replace,e;if(i=n.copy(n.pluginOptions,i),!n.hasFlash(i.version))if(i.expressInstall&&n.hasFlash(6,0,65))e={flashvars:{MMredirectURL:location,MMplayerType:"PlugIn",MMdoctitle:jQuery("title").text()}};else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment