PageSourceSearch

https://www.tsk-bw.de/wp-content/cache/autoptimize/js/autoptimize_e063aed30d2dc71e8fd0184a9931ca54.js

js tsk-bw.de collected 2026-10-05 20:42:17 UTC 870,828 bytes, 3,634 lines download raw bytes

1/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={}
2,r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
3/*!
vendor: 6,244 bytes, lines 4-8
4FullCalendar v5.9.0
5Docs & License: https://fullcalendar.io/
6(c) 2021 Adam Shaw
7*/
8var FullCalendar=function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}var i,a,s,l,u,c={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a=arguments,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(a[i]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return g(e,s,r,o,null)}function g(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i.__v:o};return null!=i.vnode&&i.vnode(a),a}function m(e){return e.children}function y(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function D(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!b.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||s)(b)}function b(){for(var e;b.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,P(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?E(o):i,o.__h),I(n,o),o.__e!=i&&S(o)))}))}function C(e,t,n,r,o,i,a,s,l,u){var p,f,h,v,y,S,D,b=r&&r.__k||d,C=b.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(m,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=b[p])||h&&v.key==h.key&&v.type===h.type)b[p]=void 0;else for(f=0;f<C;f++){if((h=b[f])&&v.key==h.key&&v.type===h.type){b[f]=void 0;break}h=null}P(e,v,h=h||c,o,i,a,s,l,u),y=v.__e,(f=v.ref)&&h.ref!=f&&(D||(D=[]),h.ref&&D.push(h.ref,null,v),D.push(f,v.__c||y,v)),null!=y?(null==S&&(S=y),"function"==typeof v.type&&null!=v.__k&&v.__k===h.__k?v.__d=l=w(v,l,e):l=_(e,v,h,b,y,l),u||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&h.__e==l&&l.parentNode!=e&&(l=E(h))}for(n.__e=S,p=C;p--;)null!=b[p]&&("function"==typeof n.type&&null!=b[p].__e&&b[p].__e==n.__d&&(n.__d=E(r,p+1)),O(b[p],b[p]));if(D)for(p=0;p<D.length;p++)H(D[p],D[++p],D[++p])}function w(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?w(o,t,n):_(n,o,o,e.__k,o.__e,t));return t}function R(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){R(e,t)})):t.push(e)),t}function _(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?M:x,i):e.removeEventListener(t,i?M:x,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function x(e){this.l[e.type+!1](i.event?i.event(e):e)}function M(e){this.l[e.type+!0](i.event?i.event(e):e)}function P(e,t,n,r,o,a,s,l,u){var c,d,p,h,v,g,E,S,D,b,w,R=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(c=i.__b)&&c(t);try{e:if("function"==typeof R){if(S=t.props,D=(c=R.contextType)&&r[c.__c],b=c?D?D.props.value:c.__:r,n.__c?E=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(S,b):(t.__c=d=new y(S,b),d.constructor=R,d.render=A),D&&D.sub(d),d.props=S,d.state||(d.state={}),d.context=b,d.__n=r,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,R.getDerivedStateFromProps(S,d.__s))),h=d.props,v=d.state,p)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&S!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,b),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,b)||t.__v===n.__v){d.props=S,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 3,699 bytes, line 8
8h((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}d.context=b,d.props=S,d.state=d.__s,(c=i.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(r=f(f({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,v)),w=null!=c&&c.type===m&&null==c.key?c.props.children:c,C(e,Array.isArray(w)?w:[w],t,n,r,o,a,s,l,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),E&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=N(n.__e,t,n,r,o,a,s,u);(c=i.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=a)&&(t.__e=l,t.__h=!!u,a[a.indexOf(l)]=null),i.__e(e,t,n)}}function I(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function N(e,t,n,r,o,i,a,s){var l,u,p,f,v=n.props,g=t.props,m=t.type,y=0;if("svg"===m&&(o=!0),null!=i)for(;y<i.length;y++)if((l=i[y])&&(l===e||(m?l.localName==m:3==l.nodeType))){e=l,i[y]=null;break}if(null==e){if(null===m)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),i=null,s=!1}if(null===m)v===g||s&&e.data===g||(e.data=g);else{if(i=i&&d.slice.call(e.childNodes),u=(v=n.props||c).dangerouslySetInnerHTML,p=g.dangerouslySetInnerHTML,!s){if(null!=i)for(v={},f=0;f<e.attributes.length;f++)v[e.attributes[f].name]=e.attributes[f].value;(p||u)&&(p&&(u&&p.__html==u.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}(e,g,v,o,s),p)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,n,r,o&&"foreignObject"!==m,i,a,e.firstChild,s),null!=i)for(y=i.length;y--;)null!=i[y]&&h(i[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==e.value||"progress"===m&&!y)&&k(e,"value",y,v.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&k(e,"checked",y,v.checked,!1))}return e}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function O(e,t,n){var r,o,a;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&O(r[a],t,n);null!=o&&h(o)}function A(e,t,n){return this.constructor(e,n)}function U(e,t,n){var r,o,a;i.__&&i.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],P(t,e=(!r&&n||t).__k=v(m,null,[e]),o||c,c,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?d.slice.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),I(a,e)}i={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e},__v:0},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),D(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),D(this))},y.prototype.render=m,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 5,768 bytes, line 8
8ise.resolve()):setTimeout,b.__r=0,u=0;var L,W=[],V=i.__b,F=i.__r,z=i.diffed,B=i.__c,j=i.unmount;function G(){W.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Y),e.__H.__h.forEach(Z),e.__H.__h=[]}catch(t){e.__H.__h=[],i.__e(t,e.__v)}})),W=[]}i.__b=function(e){V&&V(e)},i.__r=function(e){F&&F(e);var t=e.__c.__H;t&&(t.__h.forEach(Y),t.__h.forEach(Z),t.__h=[])},i.diffed=function(e){z&&z(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==W.push(t)&&L===i.requestAnimationFrame||((L=i.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),q&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);q&&(t=requestAnimationFrame(n))})(G))},i.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Y),e.__h=e.__h.filter((function(e){return!e.__||Z(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],i.__e(n,e.__v)}})),B&&B(e,t)},i.unmount=function(e){j&&j(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Y)}catch(e){i.__e(e,t.__v)}};var q="function"==typeof requestAnimationFrame;function Y(e){"function"==typeof e.__c&&e.__c()}function Z(e){e.__c=e.__()}function X(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function K(e){this.props=e}(K.prototype=new y).isPureReactComponent=!0,K.prototype.shouldComponentUpdate=function(e,t){return X(this.props,e)||X(this.state,t)};var $=i.__b;i.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$&&$(e)};var J=i.__e;i.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);J(e,t,n)};var Q=i.unmount;function ee(){this.__u=0,this.t=null,this.__b=null}function te(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ne(){this.u=null,this.o=null}i.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Q&&Q(e)},(ee.prototype=new y).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=te(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},ee.prototype.componentWillUnmount=function(){this.t=[]},ee.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&v(m,null,e.fallback);return o&&(o.__h=null),[v(m,null,t.__e?null:e.children),o]};var re=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function oe(e){return this.getChildContext=function(){return e.context},e.children}function ie(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),U(v(oe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ne.prototype=new y).__e=function(e){var t=this,n=te(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),re(t,e,r)):o()};n?n(i):i()}},ne.prototype.render=function(e){this.u=null,this.o=new Map;var t=R(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ne.prototype.componentDidUpdate=ne.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){re(e,n,t)}))};var ae="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,le=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ue=i.event;function ce(){}function de(){return this.cancelBubble}function pe(){return this.defaultPrevented}i.event=function(e){return ue&&(e=ue(e)),e.persist=ce,e.isPropagationStopped=de,e.isDefaultPrevented=pe,e.nativeEvent=e};var fe={configurable:!0,get:function(){return this.class}},he=i.vnode;i.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!le(n.type)?o="onin
8put":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():se.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=R(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=R(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(fe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",fe)),e.$$typeof=ae,he&&he(e)};var ve=i.__r;i.__r=function(e){ve&&ve(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var ge="undefined"!=typeof globalThis?globalThis:window;ge.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):ge.FullCalendarVDom={Component:y,createElement:v,render:U,createRef:function(){return{current:null}},Fragment:m,createContext:function(e){var t=function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(D)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var o=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&o.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){o.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){o.splice(o.indexOf(e),1),t&&t.call(e)}}}return r},t},createPortal:function(e,t){return v(ie,{__v:e,i:t})},flushToDom:function(){var e=i.debounceRendering,t=[];function n(e){t.push(e)}i.debounceRendering=n,U(v(me,{}),document.createElement("div"));for(;t.length;)t.shift()();i.debounceRendering=e},unmountComponentAtNode:function(e){U(null,e)}};var me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return v("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(y);var ye=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function Ee(e){e.parentNode&&e.parentNode.removeChild(e)}function Se(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(De(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function De(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function be(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}var Ce=/(top|left|right|bottom|width|height)$/i;function we(e,t){for(var n in t)Re(e,n,t[n])}function Re(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Ce.test(t)?e.style[t]=n+"px":e.style[t]=n}function _e(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function Te(e){return e.getRootNode?e.getRootNode():document}function ke(e){e.preventDefault()}function xe(e,t){return function(n){var r=Se(n.target,e);r&&t.call(r,n,r)}}function Me(e,t,n,r){var o=xe(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var Pe=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ie(e,t){var n=function(r){t(r),Pe.forEach((function(t){e.removeEventListener(t,n)}
8))};Pe.forEach((function(t){e.addEventListener(t,n)}))}var Ne=0;function He(){return String(Ne+=1)}function Oe(){document.body.classList.add("fc-not-allowed")}function Ae(){document.body.classList.remove("fc-not-allowed")}function Ue(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",ke)}function Le(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",ke)}function We(e){e.addEventListener("contextmenu",ke)}function Ve(e){e.removeEventListener("contextmenu",ke)}function Fe(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ze(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=Be(e,t,n[r]))return o;return 0}function Be(e,t,n){return n.func?n.func(e,t):je(e[n.field],t[n.field])*(n.order||1)}function je(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function Ge(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function qe(e,t){return e-t}function Ye(e){return e%1==0}function Ze(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var Xe=["sun","mon","tue","wed","thu","fri","sat"];function Ke(e,t){var n=ut(e);return n[2]+=7*t,ct(n)}function $e(e,t){var n=ut(e);return n[2]+=t,ct(n)}function Je(e,t){var n=ut(e);return n[6]+=t,ct(n)}function Qe(e,t){return et(e,t)/7}function et(e,t){return(t.valueOf()-e.valueOf())/864e5}function tt(e,t){var n=ot(e),r=ot(t);return{years:0,months:0,days:Math.round(et(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function nt(e,t){var n=rt(e,t);return null!==n&&n%7==0?n/7:null}function rt(e,t){return pt(e)===pt(t)?Math.round(et(e,t)):null}function ot(e){return ct([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function it(e,t,n,r){var o=ct([t,0,1+at(t,n,r)]),i=ot(e),a=Math.round(et(o,i));return Math.floor(a/7)+1}function at(e,t,n){var r=7+t-n;return-((7+ct([e,0,r]).getUTCDay()-t)%7)+r-1}function st(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function lt(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function ut(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ct(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function dt(e){return!isNaN(e.valueOf())}function pt(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function ft(e,t,n,r){return{instanceId:He(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var ht=Object.prototype.hasOwnProperty;function vt(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=vt(o))}for(i=e.length-1;i>=0;i-=1){var s=e[i];for(var l in s)l in n||(n[l]=s[l])}return n}function gt(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function mt(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function yt(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function Et(e){var t=[];for(var n in e)t.push(e[n]);return t}function St(e,t){if(e===t)return!0;for(var n in e)if(ht.call(e,n)&&!(n in t))return!1;for(var n in t)if(ht.call(t,n)&&e[n]!==t[n])return!1;return!0}function Dt(e,t){var n=[];for(var r in e)ht.call(e,r)&&(r in t||n.push(r));for(var r in t)ht.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function bt(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!Ct(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function Ct(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function wt(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function Rt(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,s=e.instances;for(var l in s=gt(s,(function(e){return!a[e.defId].recurringDef})),a){var u=a[l];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,p=_t(u,c,t,r,o.recurringTypes);d<p.length;d++){var f=p[d],h=ft(l,{start:f,end:r.add(f,c)});s[h.instanceId]=h}}}return{defs:a,instances:s}}function _t(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(ot)),i}var Tt=["years","months","days","milliseconds"],kt=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function xt(e,t){var n;return"string"==typeof e?function(e){var t=kt.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?Mt(e):"number"==typeof e?Mt(((n={})[t||"milliseconds"]=e,n)):null}function Mt(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Pt(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function It(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Nt(e){return Ht(e)/864e5}
8function Ht(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ot(e,t){for(var n=null,r=0;r<Tt.length;r+=1){var o=Tt[r];if(t[o]){var i=e[o]/t[o];if(!Ye(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function At(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Ut(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Vt(t,!0)))),r}function Lt(e){return e.toISOString().replace(/T.*$/,"")}function Wt(e){return Ge(e.getUTCHours(),2)+":"+Ge(e.getUTCMinutes(),2)+":"+Ge(e.getUTCSeconds(),2)}function Vt(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Ge(o,2)+":"+Ge(i,2):"GMT"+n+o+(i?":"+Ge(i,2):"")}function Ft(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function zt(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!Ft(r,i)){n&&n(o);var s=e.apply(this,i);t&&t(s,o)||(o=s)}}else o=e.apply(this,i);return r=i,o}}function Bt(e,t,n){var r,o,i=this;return function(a){if(r){if(!St(r,a)){n&&n(o);var s=e.call(i,a);t&&t(s,o)||(o=s)}}else o=e.call(i,a);return r=a,o}}var jt={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Gt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qt=/\s*([ap])\.?m\.?/i,Yt=/,/g,Zt=/\s+/g,Xt=/\u200e/g,Kt=/UTC|GMT/,$t=function(){function e(e){var t={},n={},r=0;for(var o in e)o in jt?(n[o]=e[o],r=Math.max(jt[o],r)):(t[o]=e[o],o in Gt&&(r=Math.max(Gt[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=zt(Jt)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,a=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(pt(e)!==pt(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);var l=this.format(e,n),u=this.format(t,n);if(l===u)return l;var c=Jt(function(e,t){var n={};for(var r in e)(!(r in Gt)||Gt[r]<=t)&&(n[r]=e[r]);return n}(o,s),i,n),d=c(e),p=c(t),f=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;for(var s=e.substr(o),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(a===c&&s===d)return{before:a,after:s}}}return null}(l,d,u,p),h=i.separator||r||n.defaultSeparator||"";return f?f.before+d+h+p+f.after:l+h+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function Jt(e,t,n){var o=Object.keys(e).length;return 1===o&&"short"===e.timeZoneName?function(e){return Vt(e.timeZoneOffset)}:0===o&&t.week?function(e){return function(e,t,n,r){var o=[];"narrow"===r?o.push(t):"short"===r&&o.push(t," ");o.push(n.simpleNumberFormat.format(e)),"rtl"===n.options.direction&&o.reverse();return o.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.locale,t.week)}:function(e,t,n){e=r({},e),t=r({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var o,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=r({},e);delete a.minute,o=new Intl.DateTimeFormat(n.locale.codes,a)}return function(r){var a=r.marker;return function(e,t,n,r,o){e=e.replace(Xt,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Kt,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Vt(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Yt,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));
8!1===r.meridiem?e=e.replace(qt,"").trim():"narrow"===r.meridiem?e=e.replace(qt,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(qt,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(qt,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace(Zt," ")).trim()}((o&&!a.getUTCMinutes()?o:i).format(a),r,e,t,n)}}(e,t,n)}function Qt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function en(e,t,n,r){var o=Qt(e,n.calendarSystem);return{date:o,start:o,end:t?Qt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var tn=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,en(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,en(e,t,n,r))},e}(),nn=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(en(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(en(e,t,n,r))},e}();function rn(e){return"object"==typeof e&&e?new $t(e):"string"==typeof e?new tn(e):"function"==typeof e?new nn(e):null}var on={navLinkDayClick:hn,navLinkWeekClick:hn,duration:xt,bootstrapFontAwesome:hn,buttonIcons:hn,customButtons:hn,defaultAllDayEventDuration:xt,defaultTimedEventDuration:xt,nextDayThreshold:xt,scrollTime:xt,scrollTimeReset:Boolean,slotMinTime:xt,slotMaxTime:xt,dayPopoverFormat:rn,slotDuration:xt,snapDuration:xt,headerToolbar:hn,footerToolbar:hn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:rn,dayHeaderClassNames:hn,dayHeaderContent:hn,dayHeaderDidMount:hn,dayHeaderWillUnmount:hn,dayCellClassNames:hn,dayCellContent:hn,dayCellDidMount:hn,dayCellWillUnmount:hn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:hn,weekNumbers:Boolean,weekNumberClassNames:hn,weekNumberContent:hn,weekNumberDidMount:hn,weekNumberWillUnmount:hn,editable:Boolean,viewClassNames:hn,viewDidMount:hn,viewWillUnmount:hn,nowIndicator:Boolean,nowIndicatorClassNames:hn,nowIndicatorContent:hn,nowIndicatorDidMount:hn,nowIndicatorWillUnmount:hn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:hn,locale:hn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:hn,eventOrder:Fe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:hn,contentHeight:hn,direction:String,weekNumberFormat:rn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:hn,initialDate:hn,now:hn,eventDataTransform:hn,stickyHeaderDates:hn,stickyFooterScrollbar:hn,viewHeight:hn,defaultAllDay:Boolean,eventSourceFailure:hn,eventSourceSuccess:hn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:hn,eventConstraint:hn,eventAllow:hn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:hn,eventContent:hn,eventDidMount:hn,eventWillUnmount:hn,selectConstraint:hn,selectOverlap:hn,selectAllow:hn,droppable:Boolean,unselectCancel:String,slotLabelFormat:hn,slotLaneClassNames:hn,slotLaneContent:hn,slotLaneDidMount:hn,slotLaneWillUnmount:hn,slotLabelClassNames:hn,slotLabelContent:hn,slotLabelDidMount:hn,slotLabelWillUnmount:hn,dayMaxEvents:hn,dayMaxEventRows:hn,dayMinWidth:Number,slotLabelInterval:xt,allDayText:String,allDayClassNames:hn,allDayContent:hn,allDayDidMount:hn,allDayWillUnmount:hn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:rn,rerenderDelay:Number,moreLinkText:hn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:hn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:xt,hiddenDays:hn,monthMode:Boolean,fixedWeekCount:Boolean,validRange:hn,visibleRange:hn,titleFormat:hn,noEventsText:String,moreLinkClick:hn,moreLinkClassNames:hn,moreLinkContent:hn,moreLinkDidMount:hn,moreLinkWillUnmount:hn},an={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},sn={datesSet:hn,eventsSet:hn,eventAdd:hn,eventChange:hn,eventRemove:hn,windowResize:hn,eventClick:hn,eventMouseEnter:hn,eventMouseLeave:hn,select:hn,unselect:hn,loading:hn,_unmount:hn,_beforeprint:hn,_afterprint:hn,_noEventDrop:hn,_noEventResize:hn,_resize:hn,_scrollRequest:hn},ln={buttonText:hn,views:hn,plugins:hn,initialEvents:hn,events:hn,eventSources:hn},un={headerToolbar:cn,footerToolbar:cn,buttonText:cn,buttonIcons:cn};function cn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?St
8(e,t):e===t}var dn={type:String,component:hn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:hn,usesMinMaxTime:Boolean,classNames:hn,content:hn,didMount:hn,willUnmount:hn};function pn(e){return vt(e,un)}function fn(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function hn(e){return e}function vn(e,t,n,r){for(var o={defs:{},instances:{}},i=In(n),a=0,s=e;a<s.length;a++){var l=Mn(s[a],t,n,r,i);l&&gn(l,o)}return o}function gn(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function mn(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=Sn(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function yn(){return{defs:{},instances:{}}}function En(e,t){return{defs:r(r({},e.defs),t.defs),instances:r(r({},e.instances),t.instances)}}function Sn(e,t){var n=gt(e.defs,t),r=gt(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Dn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var bn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:hn,overlap:hn,allow:hn,className:Dn,classNames:Dn,color:String,backgroundColor:String,borderColor:String,textColor:String},Cn={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function wn(e,t){var n=function(e,t){return Array.isArray(e)?vn(e,null,t,!0):"object"==typeof e&&e?vn([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Rn(e){return e.reduce(_n,Cn)}function _n(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Tn={id:String,groupId:String,title:String,url:String},kn={start:hn,end:hn,date:hn,allDay:Boolean},xn=r(r(r({},Tn),kn),{extendedProps:hn});function Mn(e,t,n,r,o){void 0===o&&(o=In(n));var i=Pn(e,n,o),a=i.refined,s=i.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=i.allDayGuess)&&(a=!1),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=Nn(a,s,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=function(e,t,n,r){var o,i,a=e.allDay,s=null,l=!1,u=null,c=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(c))s=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&s&&(s=ot(s));i&&(u=i.marker,a&&(u=ot(u)),s&&u<=s&&(u=null));u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:l,range:{start:s,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,l,n,r);return d?{def:c=Nn(a,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:ft(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Pn(e,t,n){return void 0===n&&(n=In(t)),fn(e,n)}function In(e){return r(r(r({},bn),xn),e.pluginHooks.eventRefiners)}function Nn(e,t,n,o,i,a){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:He(),sourceId:n,allDay:o,hasEnd:i,ui:wn(e,a),extendedProps:r(r({},e.extendedProps||{}),t)},l=0,u=a.pluginHooks.eventDefMemberAdders;l<u.length;l++){var c=u[l];r(s,c(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Hn(e){var t=Math.floor(et(e.start,e.end))||1,n=ot(e.start);return{start:n,end:$e(n,t)}}function On(e,t){void 0===t&&(t=xt(0));var n=null,r=null;if(e.end){r=ot(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=Ht(t)&&(r=$e(r,1))}return e.start&&(n=ot(e.start),r&&r<=n&&(r=$e(n,1))),{start:n,end:r}}function An(e){var t=On(e);return et(t.start,t.end)>1}function Un(e,t,n,r){return"year"===r?xt(n.diffWholeYears(e,t),"year"):"month"===r?xt(n.diffWholeMonths(e,t),"month"):tt(e,t)}function Ln(e,t){var n,r,o=[],i=t.start;for(e.sort(Wn),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>
8i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Wn(e,t){return e.start.valueOf()-t.start.valueOf()}function Vn(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Fn(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function zn(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Bn(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function jn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Gn(e,t,n,r){var o={},i={},a={},s=[],l=[],u=Xn(e.defs,t);for(var c in e.defs){"inverse-background"===(f=u[(S=e.defs[c]).defId]).display&&(S.groupId?(o[S.groupId]=[],a[S.groupId]||(a[S.groupId]=S)):i[c]=[])}for(var d in e.instances){var p=e.instances[d],f=u[(S=e.defs[p.defId]).defId],h=p.range,v=!S.allDay&&r?On(h,r):h,g=Vn(v,n);g&&("inverse-background"===f.display?S.groupId?o[S.groupId].push(g):i[p.defId].push(g):"none"!==f.display&&("background"===f.display?s:l).push({def:S,ui:f,instance:p,range:g,isStart:v.start&&v.start.valueOf()===g.start.valueOf(),isEnd:v.end&&v.end.valueOf()===g.end.valueOf()}))}for(var m in o)for(var y=0,E=Ln(o[m],n);y<E.length;y++){var S,D=E[y];f=u[(S=a[m]).defId];s.push({def:S,ui:f,instance:null,range:D,isStart:!1,isEnd:!1})}for(var c in i)for(var b=0,C=Ln(i[c],n);b<C.length;b++){D=C[b];s.push({def:e.defs[c],ui:u[c],instance:null,range:D,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function qn(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Yn(e,t){e.fcSeg=t}function Zn(e){return e.fcSeg||e.parentNode.fcSeg||null}function Xn(e,t){return mt(e,(function(e){return Kn(e,t)}))}function Kn(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Rn(n)}function $n(e,t){var n=e.map(Jn);return n.sort((function(e,n){return ze(e,n,t)})),n.map((function(e){return e._seg}))}function Jn(e){var t=e.eventRange,n=t.def,o=t.instance?t.instance.range:t.range,i=o.start?o.start.valueOf():0,a=o.end?o.end.valueOf():0;return r(r(r({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Qn(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,a=i.startEditable,s=0,l=n;s<l.length;s++){a=(0,l[s])(a,o,i,t)}return a}function er(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function tr(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function nr(e,t,n,r,o,i,a){var s=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,p=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==o);var f=p.range.start,h=p.range.end,v=i||e.start||e.eventRange.range.start,g=a||e.end||e.eventRange.range.end,m=ot(f).valueOf()===ot(v).valueOf(),y=ot(Je(h,-1)).valueOf()===ot(Je(g,-1)).valueOf();return u&&!d.allDay&&(m||y)?(v=m?f:v,g=y?h:g,c&&d.hasEnd?s.formatRange(v,g,t,{forcedStartTzo:i?null:p.forcedStartTzo,forcedEndTzo:a?null:p.forcedEndTzo}):s.format(v,t,{forcedTzo:i?null:p.forcedStartTzo})):""}function rr(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&jn(t,r.start)}}function or(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function ir(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}var ar={start:hn,end:hn,allDay:Boolean};function sr(e,t,n){var o=function(e,t){var n=fn(e,ar),o=n.refined,i=n.extra,a=o.start?t.createMarkerMeta(o.start):null,s=o.end?t.createMarkerMeta(o.end):null,l=o.allDay;null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified));return r({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},i)}(e,t),i=o.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return o}function lr(e,t){return Fn(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function ur(e,t,n){return r(r({},cr(e,t,n)),{timeZone:t.timeZone})}function cr(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function dr(e,t,n){var r=Pn({editable:!1},n),o=Nn(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Kn(o,t),instance:ft(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function pr(e,t,n){n.emitter.trigger("select",r(r({},fr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function fr(e,t){for(var n,o,i={},a=0,s=t.pluginHooks.dateSpanTransforms;a<s.length;a++){var l=s[a];r(i,l(e,t))}return r(i,(n=e,o=t.dateEnv,r(r({},cr(n.range,o,n.allDay)),{allDay:n.allDay}))),i}function hr(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=ot(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function vr(e,t,n,r){var o=Xn(e.defs,t),i={defs:{},instances:{}};for(var a in e.defs){var s=e.defs[a];i.defs[a]=gr(s,o[a],n,r)}for(var l in e.instances){var u=e.instances[l];s=i.defs[u.defId];i.instances[l]=mr(u,s,o[u.defId],n,r)}return i}function gr(e,t,n,o){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=r(r(r({},e),i),{ui:r(r({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=r(r({},a.extendedProps),n.extendedProps));for(var s=0,l=o.pluginHooks.eventDefMutationAppliers;s<l.length;s++){(0,l[s])(a,n,o)}return!a.hasEnd&&o.options.forceEventDuration&&(a.hasEnd=!0),a}function mr(e,t,n,o,i){var a=i.dateEnv,s=o.standardProps&&!0===o.standardProps.allDay,l=o.standardProps&&!1===o.standardProps.hasEnd,u=r({},e);return s&&(u.range=Hn(u.range)),o.datesDelta&&n.startEditable&&(u.range={start:a.add(u.range.start,o.datesDelta),end:a.add(u.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(u.range={start:a.add(u.range.start,o.startDelta),end:u.range.end}),o.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:a.add(u.range.end,o.endDelta)}),l&&(u.range={start:u.range.start,end:hr(t.allDay,u.range.start,i)}),t.allDay&&(u.range={start:ot(u.range.start),end:ot(u.range.end)}),u.range.end<u.range.start&&(u.range.end=hr(t.allDay,u.range.start,i)),u}var yr=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}
8return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),Er={id:String,defaultAllDay:Boolean,url:String,format:String,events:hn,eventDataTransform:hn,success:hn,failure:hn};function Sr(e,t,n){var r;if(void 0===n&&(n=Dr(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var o=fn(r,n),i=o.refined,a=o.extra,s=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:He(),sourceDefId:s.sourceDefId,meta:s.meta,ui:wn(i,t),extendedProps:a}}return null}function Dr(e){return r(r(r({},bn),Er),e.pluginHooks.eventSourceRefiners)}function br(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Cr=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,o([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.viewsWithButtons);for(var s in o)a.push(s);for(t=0;t<a.length;t+=1)if((n=o[a[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:br(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=xt(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),rn(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),rn(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=sr(n,r.dateEnv,xt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),pr(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof wr){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:gn({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof ye)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=Et(i.eventSources)[0]);else if(null!=t){var a=this.getEventSourceById(t);if(!a)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=a.internalEventSource}var s=Mn(e,o,i,!1);if(s){var l=new wr(i,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:gn(s)}),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Rr(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new wr(t,a,null);for(var s in o){var l=o[s];if(l.defId===a.defId)return new wr(t,a,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return _r(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new ye(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new ye(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof ye)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Sr(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ye(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=xt(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),wr=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in kn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Tn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Tn)t=Tn[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in bn){var o=bn[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=Un(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var o=Un(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,a=this._context.dateEnv,s={allDay:n.allDay},l=a.createMarker(e);if(l&&((null==t||(r=a.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Hn(u));var c=Un(u.start,l,a,n.granularity);if(r){var d=Un(u.end,r,a,n.granularity);i=d,(o=c).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:c,standardProps:s}):this.mutate({startDelta:c,endDelta:d,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:c,standardProps:s})}},e.prototype.moveStart=function(e){var t=xt(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=xt(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=xt(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=rn(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=mn(i,n.instanceId);a=vr(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var s=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:s,event:this,relatedEvents:_r(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=Rr(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}
8,Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new ye(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,o=this.startStr,i=this.endStr,a={};return t.title&&(a.title=t.title),o&&(a.start=o),i&&(a.end=i),t.publicId&&(a.id=t.publicId),t.groupId&&(a.groupId=t.groupId),t.url&&(a.url=t.url),n.display&&"auto"!==n.display&&(a.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?a.color=n.backgroundColor:(n.backgroundColor&&(a.backgroundColor=n.backgroundColor),n.borderColor&&(a.borderColor=n.borderColor)),n.textColor&&(a.textColor=n.textColor),n.classNames.length&&(a.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?r(a,t.extendedProps):a.extendedProps=t.extendedProps),a},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function Rr(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function _r(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var s in o){var l=o[s],u=r[l.defId];l.instanceId!==a&&i.push(new wr(t,u,l))}return i}var Tr={};var kr,xr=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return ct(e)},e.prototype.markerToArray=function(e){return ut(e)},e}();kr=xr,Tr["gregory"]=kr;var Mr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Pr(e){var t=Mr.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(dt(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var Ir=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new Tr[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):ct(st(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=ct(e)),null!==t&&dt(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=Pr(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;
8return pt(e)===pt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return pt(e)===pt(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=nt(e,t))?{unit:"week",value:n}:null!==(n=rt(e,t))?{unit:"day",value:n}:Ye(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t))?{unit:"hour",value:n}:Ye(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t))?{unit:"minute",value:n}:Ye(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t))?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(Nt(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return Nt(e)/30}(n):n.days&&null!==(r=rt(e,t))?r/Nt(n):(t.valueOf()-e.valueOf())/Ht(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?ot(e):"hour"===t?function(e){return ct([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return ct([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return ct([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),o=it(e,r,t,n);if(o<1)return it(e,r-1,t,n);var i=it(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=Je(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ut(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ct(st(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ct(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-lt(ut(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ut(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?lt(ut(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ut(e))*60):new Date(e.valueOf()-(t||0))},e}(),Nr=[],Hr={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"};function Or(e){for(var t=e.length>0?e[0].code:"en",n=Nr.concat(e),r={en:Hr},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function Ar(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||Hr;return Ur(e,n,r)}(e,t):Ur(e.code,[e.code],e)}function Ur(e,t,n){var r=vt([Hr,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Lr(e){var t=Ar(e.locale||"en",Or([]).map);return new Ir(r(r({timeZone:an.timeZone,calendarSystem:"gregory"},e),{locale:t}))}var Wr,Vr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Fr(e,t){return vn(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return r(r({},Vr),e)}))}(e),null,t)}function zr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Br(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function jr(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Gr(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function qr(e,t){return{left:e.left-t.left,top:e.top-t.top}}function Yr(){return null==Wr&&(Wr=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Wr}var Zr={defs:{},instances:{}}
8,Xr=function(){function e(){this.getKeysForEventDefs=zt(this._getKeysForEventDefs),this.splitDateSelection=zt(this._splitDateSpan),this.splitEventStore=zt(this._splitEventStore),this.splitIndividualUi=zt(this._splitIndividualUi),this.splitEventDrag=zt(this._splitInteraction),this.splitEventResize=zt(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=mt(n,(function(e,n){return t.eventUiBuilders[n]||zt(Kr)})),n){var d=n[c],p=a[c]||Zr,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:o[c]||null,eventStore:p,eventUiBases:f(e.eventUiBases[""],d.ui,i[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return mt(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,s=t[i];a<s.length;a++){o[p=s[a]]||(o[p]={defs:{},instances:{}}),o[p].defs[i]=n[i]}for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var p;o[p=d[c]]&&(o[p].instances[l]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];
8n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||Zr,mutatedEvents:o[r]||Zr,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function Kr(e,t,n){var o=[];e&&o.push(e),t&&o.push(t);var i={"":Rn(o)};return n&&r(i,n),i}function $r(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!jn(r.activeRange,e)),isOther:Boolean(r&&!jn(r.currentRange,e)),isToday:Boolean(t&&jn(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Jr(e,t){var n=["fc-day","fc-day-"+Xe[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function Qr(e,t){return void 0===t&&(t="day"),JSON.stringify({date:Lt(e),type:t})}var eo,to=null;function no(){return null===to&&(to=function(){var e=document.createElement("div");we(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Ee(e),t}()),to}function ro(){return eo||(eo=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=oo(e);return document.body.removeChild(e),t}()),eo}function oo(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function io(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=oo(e),l=s.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:s.x-i-a,scrollbarLeft:0,scrollbarRight:0};return no()&&"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function ao(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():so(e),o=io(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function so(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function lo(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function uo(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}var co=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r),a=0,s=i;a<s.length;a++){var l=s[a];l.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e]},e}();var po=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),fo=function(){function e(){}
8return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),ho=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return n(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(fo),vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(fo),go=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=r({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();if(go.prototype.classes={},go.prototype.iconClasses={},go.prototype.baseIconClass="",go.prototype.iconOverridePrefix="","undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var mo=FullCalendarVDom.Component,yo=FullCalendarVDom.createElement,Eo=FullCalendarVDom.render,So=FullCalendarVDom.createRef,Do=FullCalendarVDom.Fragment,bo=FullCalendarVDom.createContext,Co=FullCalendarVDom.createPortal,wo=FullCalendarVDom.flushToDom,Ro=FullCalendarVDom.unmountComponentAtNode,_o=function(){function e(e,t,n,o){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=o,this.handleScrollRequest=function(e){i.queuedRequest=r({},i.queuedRequest||{},e),i.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),To=bo({});function ko(e,t,n,r,o,i,a,s,l,u,c,d,p){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:s,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new _o(e,u,xt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}var xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Dt(e,this.props),Dt(t,this.state)),!bt(this.props,e,this.propEquality)||!bt(this.state,t,this.stateEquality)},t.addPropsEquality=Po,t.addStateEquality=Io,t.contextType=To,t}(mo);xo.prototype.propEquality={},xo.prototype.stateEquality={};var Mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.contextType=To,t}(xo);function Po(e){var t=Object.create(this.prototype.propEquality);r(t,e),this.prototype.propEquality=t}function Io(e){var t=Object.create(this.prototype.stateEquality);r(t,e),this.prototype.stateEquality=t}function No(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=He(),t}return n(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!Se(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(Se(e,".fc-event:not(.fc-bg-event)")||Se(e,".fc-more-link")||Se(e,"a[data-navlink]")||Se(e,".fc-popover"))},t}(Mo);function Oo(e){return{id:He(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function Ao(){var e,t=[],n=[];
8return function(o,i){return e&&Ft(o,t)&&Ft(i,n)||(e=function(e,t){var n={},o={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];n[s.id]||(n[s.id]=!0,i(s.deps),u=s,o={reducers:(l=o).reducers.concat(u.reducers),isLoadingFuncs:l.isLoadingFuncs.concat(u.isLoadingFuncs),contextInit:l.contextInit.concat(u.contextInit),eventRefiners:r(r({},l.eventRefiners),u.eventRefiners),eventDefMemberAdders:l.eventDefMemberAdders.concat(u.eventDefMemberAdders),eventSourceRefiners:r(r({},l.eventSourceRefiners),u.eventSourceRefiners),isDraggableTransformers:l.isDraggableTransformers.concat(u.isDraggableTransformers),eventDragMutationMassagers:l.eventDragMutationMassagers.concat(u.eventDragMutationMassagers),eventDefMutationAppliers:l.eventDefMutationAppliers.concat(u.eventDefMutationAppliers),dateSelectionTransformers:l.dateSelectionTransformers.concat(u.dateSelectionTransformers),datePointTransforms:l.datePointTransforms.concat(u.datePointTransforms),dateSpanTransforms:l.dateSpanTransforms.concat(u.dateSpanTransforms),views:r(r({},l.views),u.views),viewPropsTransformers:l.viewPropsTransformers.concat(u.viewPropsTransformers),isPropsValid:u.isPropsValid||l.isPropsValid,externalDefTransforms:l.externalDefTransforms.concat(u.externalDefTransforms),viewContainerAppends:l.viewContainerAppends.concat(u.viewContainerAppends),eventDropTransformers:l.eventDropTransformers.concat(u.eventDropTransformers),calendarInteractions:l.calendarInteractions.concat(u.calendarInteractions),componentInteractions:l.componentInteractions.concat(u.componentInteractions),themeClasses:r(r({},l.themeClasses),u.themeClasses),eventSourceDefs:l.eventSourceDefs.concat(u.eventSourceDefs),cmdFormatter:u.cmdFormatter||l.cmdFormatter,recurringTypes:l.recurringTypes.concat(u.recurringTypes),namedTimeZonedImpl:u.namedTimeZonedImpl||l.namedTimeZonedImpl,initialView:l.initialView||u.initialView,elementDraggingImpl:l.elementDraggingImpl||u.elementDraggingImpl,optionChangeHandlers:r(r({},l.optionChangeHandlers),u.optionChangeHandlers),scrollGridImpl:u.scrollGridImpl||l.scrollGridImpl,contentTypeHandlers:r(r({},l.contentTypeHandlers),u.contentTypeHandlers),listenerRefiners:r(r({},l.listenerRefiners),u.listenerRefiners),optionRefiners:r(r({},l.optionRefiners),u.optionRefiners),propSetHandlers:r(r({},l.propSetHandlers),u.propSetHandlers)})}var l,u}return e&&i(e),i(t),o}(o,i)),t=o,n=i,e}}var Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(go);function Lo(e,t,n,o){if(t[e])return t[e];var i=function(e,t,n,o){var i=n[e],a=o[e],s=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},l=s("component"),u=s("superType"),c=null;if(u){if(u===e)throw new Error("Can't have a custom view type that references itself");c=Lo(u,t,n,o)}!l&&c&&(l=c.component);if(!l)return null;return{type:e,component:l,defaults:r(r({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:r(r({},c?c.overrides:{}),a?a.rawOptions:{})}}(e,t,n,o);return i&&(t[e]=i),i}Uo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Uo.prototype.baseIconClass="fc-icon",Uo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Uo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Uo.prototype.iconOverrideOption="buttonIcons",Uo.prototype.iconOverrideCustomButtonOption="icon",Uo.prototype.iconOverridePrefix="fc-icon-";var Wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=So(),t.handleRootEl=function(e){No(t.rootElRef,e),t.props.elRef&&No(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return yo(Bo,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return yo(Fo,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,Go(t.classNames,n),e,o)}))}))},t}(Mo),Vo=bo(0);function Fo(e){return yo(Vo.Consumer,null,(function(t){return yo(zo,r({renderId:t},e))}))}var zo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=So(),t}return n(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=r({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=qo(e.content,e.hookProps);return void 0===t&&(t=qo(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(Mo),Bo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&No(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(r(r({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(r(r({},this.props.hookProps),{el:this.rootEl}))},t}(Mo);function jo(){var e,t,n=[];return function(r,o){return t&&St(t,o)&&r===e||(e=r,t=o,n=Go(r,o)),n}}function Go(e,t){return"function"==typeof e&&(e=e(t)),Dn(e)}function qo(e,t){return"function"==typeof e?e(t,yo):e}var Yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=jo(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return yo(Bo,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(Mo);function Zo(e){return mt(e,Xo)}function Xo(e){var t,n="function"==typeof e?{component:e}:e,o=n.component;return n.content&&(t=n,o=function(e){return yo(To.Consumer,null,(function(n){return yo(Yo,{viewSpec:n.viewSpec},(function(o,i){var a=r(r({},e),{nextDayThreshold:n.options.nextDayThreshold});return yo(Wo,{hookProps:a,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:o},(function(e,t,n,r){return yo("div",{className:i.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:n.type,component:o,rawOptions:n}}function Ko(e,t,n,o){var i=Zo(e),a=Zo(t.views);return mt(function(e,t){var n,r={};for(n in e)Lo(n,r,e,t);for(n in t)Lo(n,r,e,t);return r}(i,a),(function(e){return function(e,t,n,o,i){var a=e.overrides.duration||e.defaults.duration||o.duration||n.duration,s=null,l="",u="",c={};
8if(a&&(s=function(e){var t=JSON.stringify(e),n=$o[t];void 0===n&&(n=xt(e),$o[t]=n);return n}(a))){var d=At(s);l=d.unit,1===d.value&&(u=l,c=t[l]?t[l].rawOptions:{})}var p=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[u]?n[u]:null};return{type:e.type,component:e.component,duration:s,durationUnit:l,singleUnit:u,optionDefaults:e.defaults,optionOverrides:r(r({},c),e.overrides),buttonTextOverride:p(o)||p(n)||e.overrides.buttonText,buttonTextDefault:p(i)||e.defaults.buttonText||p(an)||e.type}}(e,a,t,n,o)}))}var $o={};var Jo=function(){function e(e){this.props=e,this.nowDate=br(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,s,l,u,c,d=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(u=e,e=null!=(c=r).start&&u<c.start?c.start:null!=c.end&&u>=c.end?new Date(c.end.valueOf()-1):u),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),s=a=this.trimHiddenDays(a),d.showNonCurrentDates||(s=Vn(s,o.range)),s=Vn(s=this.adjustActiveRange(s),r),l=zn(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:d.slotMinTime,slotMaxTime:d.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=At(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return xt({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,s=e.end;return r&&(Nt(o)<0&&(a=ot(a),a=n.add(a,o)),Nt(i)>1&&(s=$e(s=ot(s),-1),s=n.add(s,i))),{start:a,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,s=this.props,l=s.dateEnv,u=s.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&Ht(c)<Ht(n)?At(c).unit:r}function d(){o=l.startOf(e,u),i=l.add(o,n),a={start:o,end:i}}return Nt(n)<=1&&this.isHiddenDay(o)&&(o=ot(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,s=0,l=e;a&&(l=i.startOf(l,a)),l=ot(l),r=l=this.skipHiddenDays(l,t);do{r=$e(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:l,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?xt(1,t):e||xt({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,r=this.props.dateEnv,o=null,i=null,n.start&&(o=r.createMarker(n.start)),n.end&&(i=r.createMarker(n.end)),o||i?o&&i&&i<o?null:{start:o,end:i}:null);return t&&(t=On(t)),t}var n,r,o,i;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");
8this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=$e(e,t);return e},e}();function Qo(e,t,n){var r=t?t.activeRange:null;return ni({},function(e,t){var n=Dr(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var s=Sr(a[i],t,n);s&&o.push(s)}return o}(e,n),r,n)}function ei(e,t,n,o){var i,a,s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return ni(e,t.sources,s,o);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,gt(i,(function(e){return e.sourceId!==a}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ri(e,s,o):e;case"FETCH_EVENT_SOURCES":return oi(e,t.sourceIds?yt(t.sourceIds):ai(e,o),s,t.isRefetch||!1,o);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,o){var i,a=e[t];if(a&&n===a.latestFetchId)return r(r({},e),((i={})[t]=r(r({},a),{isFetching:!1,fetchRange:o}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function ti(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function ni(e,t,n,o){for(var i={},a=0,s=t;a<s.length;a++){var l=s[a];i[l.sourceId]=l}return n&&(i=ri(i,n,o)),r(r({},e),i)}function ri(e,t,n){return oi(e,gt(e,(function(e){return function(e,t,n){if(!si(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function oi(e,t,n,r,o){var i={};for(var a in e){var s=e[a];t[a]?i[a]=ii(s,n,r,o):i[a]=s}return i}function ii(e,t,n,o){var i=o.options,a=o.calendarApi,s=o.pluginHooks.eventSourceDefs[e.sourceDefId],l=He();return s.fetch({eventSource:e,range:t,isRefetch:n,context:o},(function(n){var r=n.rawEvents;i.eventSourceSuccess&&(r=i.eventSourceSuccess.call(a,r,n.xhr)||r),e.success&&(r=e.success.call(a,r,n.xhr)||r),o.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),i.eventSourceFailure&&i.eventSourceFailure.call(a,n),e.failure&&e.failure(n),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})})),r(r({},e),{isFetching:!0,latestFetchId:l})}function ai(e,t){return gt(e,(function(e){return si(e,t)}))}function si(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function li(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=vn(function(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=ui(e,o));r&&(e=ui(e,r));return e}(o,t,i),t,i);return r&&(a=Rt(a,r,i)),En(ci(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Rt(t,n,r));return En(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return En(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Rt(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var s in r)!t.instances[s]&&o[r[s].defId]&&(i[s]=r[s]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ci(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Sn(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function ui(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function ci(e,t){return Sn(e,(function(e){return e.sourceId!==t}))}function di(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function pi(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function fi(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function hi(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function vi(e,t,n,r,o){var i=[];return{headerToolbar:e.headerToolbar?gi(e.headerToolbar,e,t,n,r,o,i):null,footerToolbar:e.footerToolbar?gi(e.footerToolbar,e,t,n,r,o,i):null,viewsWithButtons:i}}function gi(e,t,n,r,o,i,a){return mt(e,(function(e){return function(e,t,n,r,o,i,a){var s="rtl"===t.direction,l=t.customButtons||{},u=n.buttonText||{},c=t.buttonText||{};return(e?e.split(" "):[]).map((function(e){return e.split(",").map((function(e){return"title"===e?{buttonName:e}:((t=l[e])?(d=function(e){t.click&&t.click.call(e.target,e,e.target)},(p=r.getCustomButtonIconClass(t))||(p=r.getIconClass(e,s))||(f=t.text)):(n=o[e])?(a.push(e),d=function(){i.changeView(e)},(f=n.buttonTextOverride)||(p=r.getIconClass(e,s))||(f=n.buttonTextDefault)):i[e]&&(d=function(){i[e]()},(f=u[e])||(p=r.getIconClass(e,s))||(f=c[e])),{buttonName:e,buttonClick:d,buttonIcon:p,buttonText:f});var t,n,d,p,f}))}))}(e,t,n,r,o,i,a)}))}function mi(e,t,n,r,o){var i=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+yi(t)}(t,n):i=yi(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(e){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function yi(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function Ei(e,t){for(var n=Et(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===a){n.splice(l,1),s=!0;break}s||r.push(a)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,f=r;p<f.length;p++){var h=f[p];t.calendarApi.addEventSource(h)}}var Si=[Oo({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Oo({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;uo(e.eventSource.meta.bind(null,ur(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),Oo({eventSourceRefiners:{method:String,extraParams:hn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var o=e.eventSource.meta,i=function(e,t,n){var o,i,a,s,l=n.dateEnv,u=n.options,c={};null==(o=e.startParam)&&(o=u.startParam);null==(i=e.endParam)&&(i=u.endParam);null==(a=e.timeZoneParam)&&(a=u.timeZoneParam);s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};r(c,s),c[o]=l.formatIso(t.start),c[i]=l.formatIso(t.end),"local"!==l.timeZone&&(c[a]=l.timeZone);return c}(o,e.range,e.context);mi(o.method,o.url,i,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]}),Oo({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(o=e.endTime,i=e.startTime,r={years:o.years-i.years,months:o.months-i.months,days:o.days-i.days,milliseconds:o.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o,i;return null},expand:function(e,t,n){var r=Vn(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?yt(e):null,i=ot(n.start),a=n.end,s=[];for(;i<a;){var l=void 0;o&&!o[i.getUTCDay()]||(l=t?r.add(i,t):i,s.push(l)),i=$e(i,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:hn,startTime:xt,endTime:xt,duration:xt,startRecur:hn,endRecur:hn}}),Oo({optionChangeHandlers:{events:function(e,t){Ei([e],t)},eventSources:Ei}}),Oo({isLoadingFuncs:[function(e){return ti(e.eventSources)}],contentTypeHandlers:{html:function(){return{render:Di}},domNodes:function(){return{render:bi}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",r(r({},ur(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",_r(e,t))}}})];function Di(e,t){e.innerHTML=t}function bi(e,t){var n=Array.prototype.slice.call(e.childNodes),r=Array.prototype.slice.call(t);if(!Ft(n,r)){for(var o=0,i=r;o<i.length;o++){var a=i[o];e.appendChild(a)}n.forEach(Ee)}}var Ci=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),wi=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Ci(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function Ri(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,rn(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};
8if("month"===t)return{year:"numeric",month:"long"};var n=rt(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var _i=function(){function e(e){var t=this;this.computeOptionsData=zt(this._computeOptionsData),this.computeCurrentViewData=zt(this._computeCurrentViewData),this.organizeRawLocales=zt(Or),this.buildLocale=zt(Ar),this.buildPluginHooks=Ao(),this.buildDateEnv=zt(Ti),this.buildTheme=zt(ki),this.parseToolbars=zt(vi),this.buildViewSpecs=zt(Ko),this.buildDateProfileGenerator=Bt(xi),this.buildViewApi=zt(Mi),this.buildViewUiProps=Bt(Ni),this.buildEventUiBySource=zt(Pi,St),this.buildEventUiBases=zt(Ii),this.parseContextBusinessHours=Bt(Oi),this.buildTitle=zt(Ri),this.emitter=new co,this.actionRunner=new wi(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},o=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=o.calendarOptions.initialView||o.pluginHooks.initialView,a=this.computeCurrentViewData(i,o,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var s,l,u,c=(s=o.calendarOptions,l=o.dateEnv,null!=(u=s.initialDate)?l.createMarker(u):br(s.now,l)),d=a.dateProfileGenerator.build(c);jn(d.activeRange,c)||(c=d.currentRange.start);for(var p={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f=0,h=o.pluginHooks.contextInit;f<h.length;f++){(0,h[f])(p)}for(var v=Qo(o.calendarOptions,d,p),g={dynamicOptionOverrides:n,currentViewType:i,currentDate:c,dateProfile:d,businessHours:this.parseContextBusinessHours(p),eventSources:v,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(p).selectionConfig},m=r(r({},p),g),y=0,E=o.pluginHooks.reducers;y<E.length;y++){var S=E[y];r(g,S(null,null,m))}Hi(g,p)&&this.emitter.trigger("loading",!0),this.state=g,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?r(r({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,o=t.state,i=t.emitter,a=function(e,t){var n;switch(t.type){case"SET_OPTION":return r(r({},e),((n={})[t.optionName]=t.rawOptionValue,n));default:return e}}(o.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),l=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(o.currentViewType,e),u=this.computeCurrentViewData(l,s,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(u.options);var c={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},d=o.currentDate,p=o.dateProfile;this.data&&this.data.dateProfileGenerator!==u.dateProfileGenerator&&(p=u.dateProfileGenerator.build(d)),p=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(p,e,d=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(d,e),u.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&jn(p.currentRange,d)||(d=p.currentRange.start);for(var f=ei(o.eventSources,e,p,c),h=li(o.eventStore,e,f,p,c),v=ti(f)&&!u.options.progressiveEventRendering&&o.renderableEventStore||h,g=this.buildViewUiProps(c),m=g.eventUiSingleBase,y=g.selectionConfig,E=this.buildEventUiBySource(f),S={dynamicOptionOverrides:a,currentViewType:l,currentDate:d,dateProfile:p,eventSources:f,eventStore:h,renderableEventStore:v,selectionConfig:y,eventUiBases:this.buildEventUiBases(v.defs,m,E),businessHours:this.parseContextBusinessHours(c),dateSelection:di(o.dateSelection,e),eventSelection:pi(o.eventSelection,e),eventDrag:fi(o.eventDrag,e),eventResize:hi(o.eventResize,e)},D=r(r({},c),S),b=0,C=s.pluginHooks.reducers;b<C.length;b++){var w=C[b];r(S,w(o,e,D))}var R=Hi(o,c),_=Hi(S,c);!R&&_?i.trigger("loading",!0):R&&!_&&i.trigger("loading",!1),this.state=S,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e,t,n,o,i,a,s,l,u,c=this.props,d=this.state,p=this.data,f=this.computeOptionsData(c.optionOverrides,d.dynamicOptionOverrides,c.calendarApi),h=this.computeCurrentViewData(d.currentViewType,f,c.optionOverrides,d.dynamicOptionOverrides),v=this.data=r(r(r({viewTitle:this.buildTitle(d.dateProfile,h.options,f.dateEnv),calendarApi:c.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f),h),d),g=f.pluginHooks.optionChangeHandlers,m=p&&p.calendarOptions,y=f.calendarOptions;if(m&&m!==y)for(var E in m.timeZone!==y.timeZone&&(d.eventSources=v.eventSources=(a=v.eventSources,s=d.dateProfile,l=v,u=s?s.activeRange:null,oi(a,ai(a,l),u,!0,l)),d.eventStore=v.eventStore=(e=v.eventStore,t=p.dateEnv,n=v.dateEnv,o=e.defs,i=mt(e.instances,(function(e){var i=o[e.defId];return i.allDay||i.recurringDef?e:r(r({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})})),{defs:o,instances:i})),g)m[E]!==y[E]&&g[E](y[E],v);c.onData&&c.onData(v)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,s=r.availableLocaleData;Ai(r.extra);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,s,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,e,t,a),c=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:l,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(o,e,c,u,n),localeDefaults:a,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=pn([an,e,t]),o=n.locales,i=n.locale,a=this.organizeRawLocales(o),s=a.map,l=this.buildLocale(i||a.defaultCode,s).options,u=this.buildPluginHooks(e.plugins||[],Si),c=this.currentCalendarOptionsRefiners=r(r(r(r(r({},on),sn),ln),u.listenerRefiners),u.optionRefiners),d={},p=pn([an,l,e,t]),f={},h=this.currentCalendarOptionsInput,v=this.currentCalendarOptionsRefined,g=!1;for(var m in p)"plugins"!==m&&(p[m]===h[m]||un[m]&&m in h&&un[m](h[m],p[m])?f[m]=v[m]:c[m]?(f[m]=c[m](p[m]),g=!0):d[m]=h[m]);return g&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:u,availableLocaleData:a,localeDefaults:l,extra:d}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];
8if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions;return Ai(i.extra),{viewSpec:o,options:a,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,o,i){var a=pn([an,e.optionDefaults,n,o,e.optionOverrides,i]),s=r(r(r(r(r(r({},on),sn),ln),dn),t.listenerRefiners),t.optionRefiners),l={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,p={};for(var f in a)a[f]===u[f]?l[f]=c[f]:(a[f]===this.currentCalendarOptionsInput[f]?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):s[f]?l[f]=s[f](a[f]):p[f]=a[f],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}},e}();function Ti(e,t,n,r,o,i,a,s){var l=Ar(t||a.defaultCode,a.map);return new Ir({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function ki(e,t){return new(t.themeClasses[e.themeSystem]||Uo)(e)}function xi(e){return new(e.dateProfileGeneratorClass||Jo)(e)}function Mi(e,t,n){return new yr(e,t,n)}function Pi(e){return mt(e,(function(e){return e.ui}))}function Ii(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function Ni(e){var t=e.options;return{eventUiSingleBase:wn({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:wn({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Hi(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function Oi(e){return Fr(e.options.businessHours,e)}function Ai(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var Ui=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new _i({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return n(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(mo);var Li=function(e){this.timeZoneName=e},Wi=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,i=[],a=e.span,s=t.span;return a.start<s.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},i)),a.end>s.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},i)),r?(n.push.apply(n,o([{index:e.index,thickness:e.thickness,span:ji(s,a)}],i)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Gi(r,t.level,t.levelCoord),Gi(n,t.level,[e])):Gi(n[t.level],t.lateral,e),this.stackCnts[Fi(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,a=n.length,s=0,l=-1,u=-1,c=null,d=0,p=0;p<a;p+=1){var f=n[p];if(!o&&f>=s+e.thickness)break;for(var h=r[p],v=void 0,g=qi(h,e.span.start,Vi),m=g[0]+g[1];(v=h[m])&&v.span.start<e.span.end;){var y=f+v.thickness;y>s&&(s=y,c=v,l=p,u=m),y===s&&(d=Math.max(d,i[Fi(v)]+1)),m+=1}}var E=0;if(c)for(E=l+1;E<a&&n[E]<s;)E+=1;var S=-1;return E<a&&n[E]===s&&(S=qi(r[E],e.span.end,Vi)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:s,level:E,lateral
8:S}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,o=[],i=0;i<n;i+=1)for(var a=e[i],s=t[i],l=0,u=a;l<u.length;l++){var c=u[l];o.push(r(r({},c),{levelCoord:s}))}return o},e}();function Vi(e){return e.span.end}function Fi(e){return e.index+":"+e.span.start}function zi(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var o=r[n],i=[],a={span:o.span,entries:[o]},s=0,l=t;s<l.length;s++){var u=l[s];ji(u.span,a.span)?a={entries:u.entries.concat(a.entries),span:Bi(u.span,a.span)}:i.push(u)}i.push(a),t=i}return t}function Bi(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function ji(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Gi(e,t,n){e.splice(t,0,n)}function qi(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}var Yi=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function Zi(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function Xi(e){var t;return(t={})[e.component.uid]=e,t}var Ki={},$i=function(){function e(e,t){this.emitter=new co}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Ji={},Qi={startTime:xt,duration:xt,create:Boolean,sourceId:String};function ea(e){var t=fn(e,Qi),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return yo.apply(void 0,o(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,i=[],a=!0,s=0,l=e;s<l.length;s++){var u=l[s],c=u.buttonName,d=u.buttonClick,p=u.buttonText,f=u.buttonIcon;if("title"===c)a=!1,i.push(yo("h2",{className:"fc-toolbar-title"},t.title));else{var h=f?{"aria-label":c}:{},v=["fc-"+c+"-button",n.getClass("button")];c===t.activeButton&&v.push(n.getClass("buttonActive"));var g=!t.isTodayEnabled&&"today"===c||!t.isPrevEnabled&&"prev"===c||!t.isNextEnabled&&"next"===c;i.push(yo("button",r({disabled:g,className:v.join(" "),onClick:d,type:"button"},h),p||(f?yo("span",{className:f}):"")))}}if(i.length>1){var m=a&&n.getClass("buttonGroup")||"";return yo.apply(void 0,o(["div",{className:m}],i))}return i[0]},t}(Mo),na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,i=!1,a=r.center;return r.left?(i=!0,e=r.left):e=r.start,r.right?(i=!0,t=r.right):t=r.end,yo("div",{className:[o||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return yo(ta,{key:e,widgetGroups:t,title:n.title,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})},t}(Mo),ra=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,No(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",yo("div",{ref:this.handleEl,onClick:e.onClick,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Mo),oa=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=Zn(t);
8if(i&&r.isValidSegDownEl(e.target)){var a=Se(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new wr(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=Me(t.el,"click",".fc-event",n.handleSegClick),n}return n(t,e),t}(Yi),ia=function(e){function t(t){var n,r,o,i,a,s=e.call(this,t)||this;return s.handleEventElRemove=function(e){e===s.currentSegEl&&s.handleSegLeave(null,s.currentSegEl)},s.handleSegEnter=function(e,t){Zn(t)&&(s.currentSegEl=t,s.triggerEvent("eventMouseEnter",e,t))},s.handleSegLeave=function(e,t){s.currentSegEl&&(s.currentSegEl=null,s.triggerEvent("eventMouseLeave",e,t))},s.removeHoverListeners=(n=t.el,r=".fc-event",o=s.handleSegEnter,i=s.handleSegLeave,Me(n,"mouseover",r,(function(e,t){if(t!==a){a=t,o(e,t);var n=function(e){a=null,i(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),s}return n(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Zn(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new wr(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(Yi),aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=zt(ko),t.buildViewPropTransformers=zt(la),t.buildToolbarProps=zt(sa),t.handleNavLinkClick=xe("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=So(),t.footerRef=So(),t.interactionsStore={},t.registerInteractiveComponent=function(e,n){var r=Zi(e,n),o=[oa,ia].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=o,Ki[e.uid]=r},t.unregisterInteractiveComponent=function(e){for(var n=0,r=t.interactionsStore[e.uid];n<r.length;n++){r[n].destroy()}delete t.interactionsStore[e.uid],delete Ki[e.uid]},t.resizeRunner=new Ci((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return n(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,o=t.options,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,br(t.options.now,t.dateEnv),t.viewTitle),a=!1,s="";t.isHeightAuto||t.forPrint?s="":null!=o.height?a=!0:null!=o.contentHeight?s=o.contentHeight:e=Math.max(o.aspectRatio,.5);var l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent);return yo(To.Provider,{value:l},n.headerToolbar&&yo(na,r({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.headerToolbar},i)),yo(ra,{liquid:a,height:s,aspectRatio:e,onClick:this.handleNavLinkClick},this.renderView(t),this.buildAppendContent()),n.footerToolbar&&yo(na,r({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footerToolbar},i)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype._handleNavLinkClick=function(e,t){var n=this.props,r=n.dateEnv,o=n.options,i=n.calendarApi,a=t.getAttribute("data-navlink");a=a?JSON.parse(a):{};var s=r.createMarker(a.date),l=a.type,u="day"===l?o.navLinkDayClick:"week"===l?o.navLinkWeekClick:null;"function"==typeof u?u.call(i,r.toDate(s),e):("string"==typeof u&&(l=u),i.zoomTo(s,l))},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return yo.apply(void 0,o([Do,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=0,a=this.buildViewPropTransformers(t.viewPropsTransformers);i<a.length;i++){var s=a[i];r(o,s.transform(o,e))}var l=n.component;return yo(l,r({},o))},t}(xo);function sa(e,t,n,r,o,i){var a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,isTodayEnabled:a.isValid&&!jn(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function la(e){return e.map((function(e){return new e}))}var ua=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")
8];return Yr()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(Mo);function ca(e,t){return rn(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var da="fc-col-header-cell";function pa(e){return e.text}var fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,o=e.theme,i=e.viewApi,a=this.props,s=a.date,l=a.dateProfile,u=$r(s,a.todayRange,null,l),c=[da].concat(Jr(u,o)),d=t.format(s,a.dayHeaderFormat),p=n.navLinks&&!u.isDisabled&&a.colCnt>1?{"data-navlink":Qr(s),tabIndex:0}:{},f=r(r(r({date:t.toDate(s),view:i},a.extraHookProps),{text:d}),u);return yo(Wo,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:pa,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,o){return yo("th",r({ref:e,className:c.concat(t).join(" "),"data-date":u.isDisabled?void 0:Lt(s),colSpan:a.colSpan},a.extraDataAttrs),yo("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&yo("a",r({ref:n,className:["fc-col-header-cell-cushion",a.isSticky?"fc-sticky":""].join(" ")},p),o)))}))},t}(Mo),ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,o=t.theme,i=t.viewApi,a=t.options,s=$e(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[da].concat(Jr(l,o),e.extraClassNames||[]),c=n.format(s,e.dayHeaderFormat),d=r(r(r(r({date:s},l),{view:i}),e.extraHookProps),{text:c});return yo(Wo,{hookProps:d,classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:pa,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},(function(t,n,o,i){return yo("th",r({ref:t,className:u.concat(n).join(" "),colSpan:e.colSpan},e.extraDataAttrs),yo("div",{className:"fc-scrollgrid-sync-inner"},yo("a",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(Mo),va=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=br(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=Je(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,xt(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:ga(r)},nextState:{nowDate:o,todayRange:ga(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=To,t}(mo);function ga(e){var t=ot(e);return{start:t,end:$e(t,1)}}var ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=zt(ya),t}return n(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return yo(va,{unit:"day"},(function(e,t){return yo("tr",null,i&&i("day"),n.map((function(e){return o?yo(fa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:a}):yo(ha,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a})})))}))},t}(Mo);function ya(e,t,n){return e||ca(t,n)}var Ea=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n<r;
8)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=$e(n,1);this.dates=i,this.indices=o,this.cnt=i.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex($e(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(o=Math.floor(o))?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(et(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Sa=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,a=o;a<=i;){var s=Math.floor(a/t),l=Math.min((s+1)*t,i+1);r.push({row:s,firstCol:a%t,lastCol:(l-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&l-1===i}),a=l}return r},e}(),Da=function(){function e(){this.sliceBusinessHours=zt(this._sliceBusinessHours),this.sliceDateSelection=zt(this._sliceDateSpan),this.sliceEventStore=zt(this._sliceEventStore),this.sliceEventDrag=zt(this._sliceInteraction),this.sliceEventResize=zt(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,o([e.eventStore,s,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,o([e.dateSelection,s,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,o([e.businessHours,t,n,r],i)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,o([e.eventDrag,s,t,n],i)),eventResize:this.sliceEventResize.apply(this,o([e.eventResize,s,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,o([{range:{start:e,end:Je(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,o([Rt(e,ba(t,Boolean(n)),r),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=Gn(e,t,ba(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=Gn(e.mutatedEvents,t,ba(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var a=dr(e,t,n),s=this.sliceRange.apply(this,o([e.range],r)),l=0,u=s;l<u.length;l++){var c=u[l];c.eventRange=a}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:$e(n.start,1)});for(var r=this.sliceRange.apply(this,o([n],t)),i=0,a=r;i<a.length;i++){var s=a[i];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},e}();function ba(e,t){var n=e.activeRange;return t?n:{start:Je(n.start,e.slotMinTime.milliseconds),end:Je(n.end,e.slotMaxTime.milliseconds-864e5)}}function Ca(e,t,n){var r=e.mutatedEvents.instances;for(var o in r)if(!Bn(t.validRange,r[o].range))return!1;return Ra({eventDrag:e},n)}function wa(e,t,n){return!!Bn(t.validRange,e.range)&&Ra({dateSelection:e},n)}function Ra(e,t){var n=t.getCurrentData(),o=r({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||_a)(o,t)}function _a(e,t,n,o){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,o){var i=t.getCurrentData(),a=e.eventDrag,s=a.mutatedEvents,l=s.defs,u=s.instances,c=Xn(l,a.isEvent?e.eventUiBases:{"":i.selectionConfig});o&&(c=mt(c,o));var d=(v=e.eventStore,g=a.affectedEvents.instances,{defs:v.defs,instances:gt(v.instances,(function(e){return!g[e.instanceId]}))}),p=d.defs,f=d.instances,h=Xn(p,e.eventUiBases);var v,g;for(var m in u){var y=u[m],E=y.range,S=c[y.defId],D=l[y.defId];if(!Ta(S.constraints,E,d,e.businessHours,t))return!1;var b=t.options.eventOverlap,C="function"==typeof b?b:null;for(var w in f){var R=f[w];if(zn(E,R.range)){if(!1===h[R.defId].overlap&&a.isEvent)return!1;if(!1===S.overlap)return!1;if(C&&!C(new wr(t,p[R.defId],R),new wr(t,D,y)))return!1}}for(var _=i.eventStore,T=0,k=S.allows;T<k.length;T++){var x=k[T],M=r(r({},n),{range:y.range,allDay:D.allDay}),P=_.defs[D.defId],I=_.instances[m],N=void 0;if(N=P?new wr(t,P,I):new wr(t,D),!x(fr(M,t),N))return!1}}return!0}(e,t,n,o))&&!(e.dateSelection&&!function(e,t,n,o){var i=e.eventStore,a=i.defs,s=i.instances,l=e.dateSelection,u=l.range,c=t.getCurrentData().selectionConfig;o&&(c=o(c));if(!Ta(c.constraints,u,i,e.businessHours,t))return!1;var d=t.options.selectOverlap,p="function"==typeof d?d:null;for(var f in s){var h=s[f];if(zn(u,h.range)){if(!1===c.overlap)return!1;if(p&&!p(new wr(t,a[h.defId],h),null))return!1}}for(var v=0,g=c.allows;v<g.length;v++){if(!(0,g[v])(fr(r(r({},n),l),t),null))return!1}return!0}(e,t,n,o))}function Ta(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){if(!Ma(ka(a[i],t,n,r,o),t))return!1}return!0}function ka(e,t,n,r,o){return"businessHours"===e?xa(Rt(r,t,o)):"string"==typeof e?xa(Sn(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?xa(Rt(e,t,o)):[]}function xa(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Ma(e,t){for(var n=0,r=e;n<r.length;n++){if(Bn(r[n],t))return!0}return!1}var Pa=/^(visible|hidden)$/,Ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,No(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),yo("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Pa.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Pa.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Pa.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Pa.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Mo),Na=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,s=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,s=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return wt(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Et(this.currentMap)},e}();function Ha(e){for(var t=0,n=0,r=be(e,".fc-scrollgrid-shrink");n<r.length;n++){var o=r[n];t=Math.max(t,Ze(o))}return Math.ceil(t)}function Oa(e,t){return e.liquid&&t.liquid}function Aa(e,t){return null!=t.maxHeight||Oa(e,t)}function Ua(e,t,n){var r=n.expandRows;return"function"==typeof t.content?t.content(n):yo("table",{className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,yo("tbody",{},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function La(e,t){return Ft(e,t,St)}function Wa(e,t){for(var n=[],r=0,i=e;r<i.length;r++)for(var a=i[r],s=a.span||1,l=0;l<s;l+=1)n.push(yo("col",{style:{width:"shrink"===a.width?Va(t):a.width||"",minWidth:a.minWidth||""}}));return yo.apply(void 0,o(["colgroup",{}],n))}function Va(e){return null==e?4:e}function Fa(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function za(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Ba(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function ja(e){return yo("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Ga(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function qa(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var Ya=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=zt((function(e){return e}
8),La),t.renderMicroColGroup=zt(Wa),t.scrollerRefs=new Na,t.scrollerElRefs=new Na(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(r({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return n(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,i=t.sections||[],a=this.processCols(t.cols),s=this.renderMicroColGroup(a,n.shrinkWidth),l=za(t.liquid,r);t.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");for(var u,c=i.length,d=0,p=[],f=[],h=[];d<c&&"header"===(u=i[d]).type;)p.push(this.renderSection(u,s)),d+=1;for(;d<c&&"body"===(u=i[d]).type;)f.push(this.renderSection(u,s)),d+=1;for(;d<c&&"footer"===(u=i[d]).type;)h.push(this.renderSection(u,s)),d+=1;var v=!Yr();return yo("table",{className:l.join(" "),style:{height:t.height}},Boolean(!v&&p.length)&&yo.apply(void 0,o(["thead",{}],p)),Boolean(!v&&f.length)&&yo.apply(void 0,o(["tbody",{}],f)),Boolean(!v&&h.length)&&yo.apply(void 0,o(["tfoot",{}],h)),v&&yo.apply(void 0,o(o(o(["tbody",{}],p),f),h)))},t.prototype.renderSection=function(e,t){return"outerContent"in e?yo(Do,{key:e.key},e.outerContent):yo("tr",{key:e.key,className:Ba(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk))},t.prototype.renderChunkTd=function(e,t,n){if("outerContent"in n)return n.outerContent;var r=this.props,o=this.state,i=o.forceYScrollbars,a=o.scrollerClientWidths,s=o.scrollerClientHeights,l=Aa(r,e),u=Oa(r,e),c=r.liquid?i?"scroll":l?"auto":"hidden":"visible",d=e.key,p=Ua(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:r.collapsibleWidth||void 0===a[d]?null:a[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}});return yo("td",{ref:n.elRef},yo("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},yo(Ia,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:c,overflowX:r.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&No(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return Fa(this.props.cols)?Ha(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=ro(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(var a in t.currentMap){var s=t.currentMap[a];if(s&&s.needsYScrolling()){r=!0;break}}for(var l=0,u=this.props.sections;l<u.length;l++){a=u[l].key;var c=n.currentMap[a];if(c){var d=c.parentNode;o[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},t}(Mo);Ya.addStateEquality({scrollerClientWidths:St,scrollerClientHeights:St});var Za=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=So(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,i=o.ui,a={event:new wr(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Qn(r,t),isStartResizable:!e.disableResizing&&er(r,t),isEndResizable:!e.disableResizing&&tr(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},s=or(a).concat(i.classNames);return yo(Wo,{hookProps:a,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,o){return e.children(t,s.concat(n),r,o,a)}))},t.prototype.componentDidMount=function(){Yn(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Yn(this.elRef.current,t)},t}(Mo),Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,o=t.options.eventTimeFormat||e.defaultTimeFormat,i=nr(n,o,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return yo(Za,{seg:n,timeText:i,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||Ka,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,o,i,a,s){return yo("a",r({className:e.extraClassNames.c
8oncat(o).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:t},function(e){var t=e.eventRange.def.url;return t?{href:t}:{}}(n)),yo("div",{className:"fc-event-main",ref:i,style:{color:s.textColor}},a),s.isStartResizable&&yo("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&yo("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(Mo);function Ka(e){return yo("div",{className:"fc-event-main-frame"},e.timeText&&yo("div",{className:"fc-event-time"},e.timeText),yo("div",{className:"fc-event-title-container"},yo("div",{className:"fc-event-title fc-sticky"},e.event.title||yo(Do,null," "))))}var $a=function(e){return yo(To.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return yo(Wo,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},Ja=rn({day:"numeric"}),Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=es({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return yo(Fo,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(Mo);function es(e){var t=e.date,n=e.dateEnv,o=$r(t,e.todayRange,null,e.dateProfile);return r(r(r({date:n.toDate(t),view:e.viewApi},o),{dayNumberText:e.showDayNumber?n.format(t,Ja):""}),e.extraProps)}var ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Bt(es),t.normalizeClassNames=jo(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=Jr(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),i=r.isDisabled?{}:{"data-date":Lt(e.date)};return yo(Bo,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,i,r.isDisabled)}))},t}(Mo);function ns(e){return yo("div",{className:"fc-"+e})}var rs=function(e){return yo(Za,{defaultContent:os,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return yo("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function os(e){return e.event.title&&yo("div",{className:"fc-event-title"},e.event.title)}var is=function(e){return yo(To.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,i=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(o),s=n.format(o,i);return yo(Wo,{hookProps:{num:a,text:s,date:o},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:as,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function as(e){return e.text}var ss=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&No(t.props.elRef,e)},t.handleDocumentMousedown=function(e){var n=_e(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return n(t,e),t.prototype.render=function(){var e=this.context.theme,t=this.props,n=["fc-popover",e.getClass("popover")].concat(t.extraClassNames||[]);return Co(yo("div",r({className:n.join(" ")},t.extraAttrs,{ref:this.handleRootEl}),yo("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},yo("span",{className:"fc-popover-title"},t.title),yo("span",{className:"fc-popover-close "+e.getIconClass("close"),onClick:this.handleCloseClick})),yo("div",{className:"fc-popover-body "+e.getClass("popoverContent")},t.children)),t.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMousedown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMousedown)}
8,t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=function(e){for(var t=lo(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=Br(n,o[r].getBoundingClientRect());if(!i)return null;n=i}return n}(n);if(i){var a=o.getBoundingClientRect(),s=r?Se(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-a.width:i.left;s=Math.max(s,10),l=Math.min(l,document.documentElement.clientWidth-10-a.width),l=Math.max(l,10);var u=o.offsetParent.getBoundingClientRect();we(o,{top:s-u.top,left:l-u.left})}},t}(Mo),ls=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,i=r.todayRange,a=r.dateProfile,s=n.format(o,t.dayPopoverFormat);return yo(ts,{date:o,dateProfile:a,todayRange:i,elRef:this.handleRootEl},(function(e,t,n){return yo(ss,{elRef:e,title:s,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},yo(Qa,{date:o,dateProfile:a,todayRange:i},(function(e,t){return t&&yo("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,o){var i=this.rootEl,a=this.props;return e>=0&&e<n&&t>=0&&t<o?{dateProfile:a.dateProfile,dateSpan:r({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:o},layer:1}:null},t}(Ho),us=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=So(),t.state={isPopoverOpen:!1},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,a=ds(r).start;function s(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new wr(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof i&&(i=i({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(s),hiddenSegs:r.hiddenSegs.map(s),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"==typeof i&&o.calendarApi.zoomTo(a,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props;return yo(To.Consumer,null,(function(n){var r=n.viewApi,o=n.options,i=n.calendarApi,a=o.moreLinkText,s=t.moreCnt,l=ds(t),u={num:s,shortText:"+"+s,text:"function"==typeof a?a.call(i,s):"+"+s+" "+a,view:r};return yo(Do,null,Boolean(t.moreCnt)&&yo(Wo,{elRef:e.linkElRef,hookProps:u,classNames:o.moreLinkClassNames,content:o.moreLinkContent,defaultContent:t.defaultContent||cs,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},(function(n,r,o,i){return t.children(n,["fc-more-link"].concat(r),o,i,e.handleClick)})),e.state.isPopoverOpen&&yo(ls,{startDate:l.start,endDate:l.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=Se(this.linkElRef.current,".fc-view-harness"))},t}(Mo);function cs(e){return e.text}function ds(e){if(e.allDayDate)return{start:e.allDayDate,end:$e(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:ps(n),end:(t=n,t.reduce(hs).eventRange.range.end)}}function ps(e){return e.reduce(fs).eventRange.range.start}function fs(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function hs(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}var vs=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.isRendering=!1,o.isRendered=!1,o.currentClassNames=[],o.customContentRenderId=0,o.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":o.renderRunner.tryDrain()}},o.handleData=function(e){o.currentData=e,o.renderRunner.request(e.calendarOptions.rerenderDelay)},o.handleRenderRequest=function(){if(o.isRendering){o.isRendered=!0;var e=o.currentData;Eo(yo(ua,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,i,a){return o.setClassNames(t),o.setHeight(n),yo(Vo.Provider,{value:o.customContentRenderId},yo(aa,r({isHeightAuto:i,forPrint:a},e)))})),o.el)}else o.isRendered&&(o.isRendered=!1,Ro(o.el),o.setClassNames([]),o.setHeight(""));wo()},o.el=t,o.renderRunner=new Ci(o.handleRenderRequest),new _i({optionOverrides:n,calendarApi:o,onAction:o.handleAction,onData:o.handleData}),o}return n(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi}
8,enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){e.prototype.updateSize.call(this),wo()},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Ft(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var o=r[n];t.remove(o)}for(var i=0,a=e;i<a.length;i++){o=a[i];t.add(o)}this.currentClassNames=e}},t.prototype.setHeight=function(e){Re(this.el,"height",e)},t}(Cr);Ji.touchMouseIgnoreWait=500;var gs=0,ms=0,ys=!1,Es=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,gs+=1,setTimeout((function(){gs-=1}),Ji.touchMouseIgnoreWait)}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new co,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(ms+=1)&&window.addEventListener("touchmove",Ss,{passive:!1})}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(ms-=1)||window.removeEventListener("touchmove",Ss,{passive:!1})},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Se(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){ys=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}
8,e.prototype.querySubjectEl=function(e){return this.selector?Se(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return gs||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(ys=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,o=e.touches,i=0,a=0;return o&&o.length?(n=o[0].pageX,r=o[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}},e}();function Ss(e){ys&&e.preventDefault()}var Ds=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",we(n,{left:r.left,top:r.top}),Ie(n,(function(){n.style.transition="",e()}))},e.prototype.cleanup=function(){this.mirrorEl&&(Ee(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&we(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),we(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),bs=function(e){function t(t,n){var r=e.call(this)||this;return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return n(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(fo),Cs=function(e){function t(t,n){return e.call(this,new ho(t),n)||this}return n(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return ao(this.scrollController.el)},t}(bs),ws=function(e){function t(t){return e.call(this,new vo,t)||this}return n(t,e),t.prototype.getEventTarget=function(){return window}
8,t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(bs),Rs="function"==typeof performance?performance.now:Date.now,_s=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=Rs();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Rs()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){t[e].destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,o=0,i=this.scrollCaches;o<i.length;o++){var a=i[o],s=a.clientRect,l=e-s.left,u=s.right-e,c=t-s.top,d=s.bottom-t;l>=0&&u>=0&&c>=0&&d>=0&&(c<=n&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:a,name:"top",distance:c}),d<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"bottom",distance:d}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),u<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"right",distance:u}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new ws(!1):new Cs(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var o=r[n];"object"==typeof o?t.push(o):t.push.apply(t,Array.prototype.slice.call(Te(e).querySelectorAll(o)))}return t},e}(),Ts=function(e){function t(t,n){var r=e.call(this,t)||this;r.containerEl=t,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,Ue(document.body),We(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger("pointerdown",e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger("pointermove",e),!r.isDistanceSurpassed){var t=r.minDistance,n=e.deltaX,o=e.deltaY;n*n+o*o>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,Le(document.body),Ve(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var o=r.pointer=new Es(t);return o.emitter.on("pointerdown",r.onPointerDown),o.emitter.on("pointermove",r.onPointerMove),o.emitter.on("pointerup",r.onPointerUp),n&&(o.selector=n),r.mirror=new Ds,r.autoScroller=new _s,r}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}($i),ks=function(){function e(e){this.origRect=so(e),this.scrollCaches=lo(e).map((function(e){return new Cs(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;
8e<t.length;e++){t[e].destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n,r,o={left:e,top:t},i=0,a=this.scrollCaches;i<a.length;i++){var s=a[i];if(n=s.getEventTarget(),r=void 0,"HTML"!==(r=n.tagName)&&"BODY"!==r&&!zr(o,s.clientRect))return!1}return!0},e}();var xs=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new co}return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl;o instanceof HTMLElement&&(r=jr(r,t=so(o)));var i=this.initialHit=this.queryHitForOffset(r.left,r.top);if(i){if(this.useSubjectCenter&&t){var a=Br(t,i.rect);a&&(r=Gr(a))}this.coordAdjust=qr(r,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&Ms(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=mt(this.droppableStore,(function(e){return e.component.prepareHits(),new ks(e.el)}))},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,r=this.offsetTrackers,o=null;for(var i in n){var a=n[i].component,s=r[i];if(s&&s.isWithinClipping(e,t)){var l=s.computeLeft(),u=s.computeTop(),c=e-l,d=t-u,p=s.origRect,f=p.right-p.left,h=p.bottom-p.top;if(c>=0&&c<f&&d>=0&&d<h){var v=a.queryHit(c,d,f,h);v&&Bn(v.dateProfile.activeRange,v.dateSpan.range)&&(!o||v.layer>o.layer)&&(v.componentId=i,v.context=a.context,v.rect.left+=l,v.rect.right+=l,v.rect.top+=u,v.rect.bottom+=u,o=v)}}}return o},e}();function Ms(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&lr(e.dateSpan,t.dateSpan)}function Ps(e,t){for(var n,o,i={},a=0,s=t.pluginHooks.datePointTransforms;a<s.length;a++){var l=s[a];r(i,l(e,t))}return r(i,(n=e,{date:(o=t.dateEnv).toDate(n.range.start),dateStr:o.formatIso(n.range.start,{omitTime:n.allDay}),allDay:n.allDay})),i}var Is=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component;if(!n.dragging.pointer.wasTouchScroll){var o=n.hitDragging,i=o.initialHit,a=o.finalHit;if(i&&a&&Ms(i,a)){var s=t.context,l=r(r({},Ps(i.dateSpan,s)),{dayEl:i.dayEl,jsEvent:e.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",l)}}},n.dragging=new Ts(t.el),n.dragging.autoScroller.isEnabled=!1;var o=n.hitDragging=new xs(n.dragging,Xi(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(Yi),Ns=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,o=t.dragging,i=r.context.options.selectable&&r.isValidDateDownEl(e.origEvent.target);o.setIgnoreMove(!i),o.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var o=n.component.context,i=null,a=!1;if(e){var s=n.hitDragging.initialHit;e.componentId===s.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(s,e)||(i=function(e,t,n){var o=e.dateSpan,i=t.dateSpan,a=[o.range.start,o.range.end,i.range.start,i.range.end];a.sort(qe);for(var s={},l=0,u=n;l<u.length;l++){var c=(0,u[l])(e,t);if(!1===c)return null;c&&r(s,c)}return s.range={start:a[0],end:a[3]},s.allDay=o.allDay,s}(s,e,o.pluginHooks.dateSelectionTransformers)),i&&wa(i,e.dateProfile,o)||(a=!0,i=null)}i?o.dispatch({type:"SELECT_DATES",selection:i}):t||o.dispatch({type:"UNSELECT_DATES"}),a?Oe():Ae(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&(pr(n.dragSelection,e,
8n.component.context),n.dragSelection=null)};var o=t.component.context.options,i=n.dragging=new Ts(t.el);i.touchScrollAllowed=!1,i.minDistance=o.selectMinDistance||0,i.autoScroller.isEnabled=o.dragScroll;var a=n.hitDragging=new xs(n.dragging,Xi(t));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("pointerup",n.handlePointerUp),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(Yi);var Hs=function(e){function t(n){var o=e.call(this,n)||this;o.subjectEl=null,o.subjectSeg=null,o.isDragging=!1,o.eventRange=null,o.relevantEvents=null,o.receivingContext=null,o.validMutation=null,o.mutatedRelevantEvents=null,o.handlePointerDown=function(e){var t=e.origEvent.target,n=o,r=n.component,i=n.dragging,a=i.mirror,s=r.context.options,l=r.context;o.subjectEl=e.subjectEl;var u=o.subjectSeg=Zn(e.subjectEl),c=(o.eventRange=u.eventRange).instance.instanceId;o.relevantEvents=mn(l.getCurrentData().eventStore,c),i.minDistance=e.isTouch?0:s.eventDragMinDistance,i.delay=e.isTouch&&c!==r.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(r):null,s.fixedMirrorParent?a.parentNode=s.fixedMirrorParent:a.parentNode=Se(t,".fc"),a.revertDuration=s.dragRevertDuration;var d=r.isValidSegDownEl(t)&&!Se(t,".fc-event-resizer");i.setIgnoreMove(!d),o.isDragging=d&&e.subjectEl.classList.contains("fc-event-draggable")},o.handleDragStart=function(e){var t=o.component.context,n=o.eventRange,r=n.instance.instanceId;e.isTouch?r!==o.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),o.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:o.subjectEl,event:new wr(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},o.handleHitUpdate=function(e,t){if(o.isDragging){var n=o.relevantEvents,r=o.hitDragging.initialHit,i=o.component.context,a=null,s=null,l=null,u=!1,c={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){var d=(a=e.context).options;i===a||d.editable&&d.droppable?(s=function(e,t,n){var r=e.dateSpan,o=t.dateSpan,i=r.range.start,a=o.range.start,s={};r.allDay!==o.allDay&&(s.allDay=o.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(i=ot(i)));var l=Un(i,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(s.allDay=!1);for(var u={datesDelta:l,standardProps:s},c=0,d=n;c<d.length;c++){(0,d[c])(u,e,t)}return u}(r,e,a.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(l=vr(n,a.getCurrentData().eventUiBases,s,a),c.mutatedEvents=l,Ca(c,e.dateProfile,a)||(u=!0,s=null,l=null,c.mutatedEvents={defs:{},instances:{}})):a=null}o.displayDrag(a,c),u?Oe():Ae(),t||(i===a&&Ms(r,e)&&(s=null),o.dragging.setMirrorNeedsRevert(!s),o.dragging.setMirrorIsVisible(!e||!Te(o.subjectEl).querySelector(".fc-event-mirror")),o.receivingContext=a,o.validMutation=s,o.mutatedRelevantEvents=l)}},o.handlePointerUp=function(){o.isDragging||o.cleanup()},o.handleDragEnd=function(e){if(o.isDragging){var t=o.component.context,n=t.viewApi,i=o,a=i.receivingContext,s=i.validMutation,l=o.eventRange.def,u=o.eventRange.instance,c=new wr(t,l,u),d=o.relevantEvents,p=o.mutatedRelevantEvents,f=o.hitDragging.finalHit;if(o.clearDrag(),t.emitter.trigger("eventDragStop",{el:o.subjectEl,event:c,jsEvent:e.origEvent,view:n}),s){if(a===t){var h=new wr(t,p.defs[l.defId],u?p.instances[u.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:p});for(var v={oldEvent:c,event:h,relatedEvents:_r(p,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}},g={},m=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;m<y.length;m++){var E=y[m];r(g,E(s,t))}t.emitter.trigger("eventDrop",r(r(r({},v),g),{el:e.subjectEl,delta:s.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",v)}else if(a){var S={event:c,relatedEvents:_r(d,t,u),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}};t.emitter.trigger("eventLeave",r(r({},S),{draggedEl:e.subjectEl,view:n}
8)),t.dispatch({type:"REMOVE_EVENTS",eventStore:d}),t.emitter.trigger("eventRemove",S);var D=p.defs[l.defId],b=p.instances[u.instanceId],C=new wr(a,D,b);a.dispatch({type:"MERGE_EVENTS",eventStore:p});var w={event:C,relatedEvents:_r(p,a,b),revert:function(){a.dispatch({type:"REMOVE_EVENTS",eventStore:p})}};a.emitter.trigger("eventAdd",w),e.isTouch&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),a.emitter.trigger("drop",r(r({},Ps(f.dateSpan,a)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:f.context.viewApi})),a.emitter.trigger("eventReceive",r(r({},w),{draggedEl:e.subjectEl,view:f.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}o.cleanup()};var i=o.component.context.options,a=o.dragging=new Ts(n.el);a.pointer.selector=t.SELECTOR,a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.dragScroll;var s=o.hitDragging=new xs(o.dragging,Ki);return s.useSubjectCenter=n.useEventCenter,s.emitter.on("pointerdown",o.handlePointerDown),s.emitter.on("dragstart",o.handleDragStart),s.emitter.on("hitupdate",o.handleHitUpdate),s.emitter.on("pointerup",o.handlePointerUp),s.emitter.on("dragend",o.handleDragEnd),o}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(Yi);var Os=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=Zn(n.querySegEl(e)),o=n.eventRange=r.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==o.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange;n.relevantEvents=mn(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var o=n.querySegEl(e);n.draggingSegEl=o,n.draggingSeg=Zn(o),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:o,event:new wr(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,r){var o=n.component.context,i=n.relevantEvents,a=n.hitDragging.initialHit,s=n.eventRange.instance,l=null,u=null,c=!1,d={affectedEvents:i,mutatedEvents:{defs:{},instances:{}},isEvent:!0};e&&(e.componentId===a.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(a,e)||(l=function(e,t,n,r){var o=e.context.dateEnv,i=e.dateSpan.range.start,a=t.dateSpan.range.start,s=Un(i,a,o,e.largeUnit);if(n){if(o.add(r.start,s)<r.end)return{startDelta:s}}else if(o.add(r.end,s)>r.start)return{endDelta:s};return null}(a,e,r.subjectEl.classList.contains("fc-event-resizer-start"),s.range)));l&&(u=vr(i,o.getCurrentData().eventUiBases,l,o),d.mutatedEvents=u,Ca(d,e.dateProfile,o)||(c=!0,l=null,u=null,d.mutatedEvents=null)),u?o.dispatch({type:"SET_EVENT_RESIZE",state:d}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),c?Oe():Ae(),t||(l&&Ms(a,e)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=u)},n.handleDragEnd=function(e){var t=n.component.context,o=n.eventRange.def,i=n.eventRange.instance,a=new wr(t,o,i),s=n.relevantEvents,l=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:a,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var u=new wr(t,l.defs[o.defId],i?l.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:l});var c={oldEvent:a,event:u,relatedEvents:_r(l,t,i),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",r(r({},c),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||xt(0),endDelta:n.validMutation.endDelta||xt(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var o=t.component,i=n.dragging=new Ts(t.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=o.context.options.dragScroll;var a=n.hitDragging=new xs(n.dragging,Xi(t));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return Se(e.subjectEl,".fc-event")},t}(Yi);var As=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=_e(e.origEvent);t.matchesCancel=!!Se(r,n),t.matchesEvent=!!Se(r,Hs.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,o=n.getCurrentData();if(!r.wasTouchScroll){if(o.dateSelection&&!t.isRecentPointerDateSelect){var i=n.options.unselectAuto;!i||i&&t.matchesCancel||n.calendarApi.unselect(e)}o.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new Es(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Us={fixedMirrorParent:hn},Ls={dateClick:hn,eventDragStart:hn,eventDragStop:hn,eventDrop:hn,eventResizeStart:hn,eventResizeStop:hn,eventResize:hn,drop:hn,eventReceive:hn,eventLeave:hn},Ws=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,o){var i=n.hitDragging.dragging,a=null,s=null,l=!1,u={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};e&&(a=e.context,n.canDropElOnCalendar(o.subjectEl,a)&&(s=function(e,t,n){for(var o=r({},t.leftoverProps),i=0,a=n.pluginHooks.externalDefTransforms;i<a.length;i++){var s=a[i];r(o,s(e,t))}var l=Pn(o,n),u=l.refined,c=l.extra,d=Nn(u,c,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),p=e.range.start;e.allDay&&t.startTime&&(p=n.dateEnv.add(p,t.startTime));var f=t.duration?n.dateEnv.add(p,t.duration):hr(e.allDay,p,n),h=ft(d.defId,{start:p,end:f});return{def:d,instance:h}}(e.dateSpan,n.dragMeta,a),u.mutatedEvents=gn(s),(l=!Ca(u,e.dateProfile,a))&&(u.mutatedEvents={defs:{},instances:{}},s=null))),n.displayDrag(a,u),i.setMirrorIsVisible(t||!s||!document.querySelector(".fc-event-mirror")),l?Oe():Ae(),t||(i.setMirrorNeedsRevert(!s),n.receivingContext=a,n.droppableEvent=s)},this.handleDragEnd=function(e){var t=n,o=t.receivingContext,i=t.droppableEvent;if(n.clearDrag(),o&&i){var a=n.hitDragging.finalHit,s=a.context.viewApi,l=n.dragMeta;if(o.emitter.trigger("drop",r(r({},Ps(a.dateSpan,o)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:s})),l.create){var u=gn(i);o.dispatch({type:"MERGE_EVENTS",eventStore:u}),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:i.instance.instanceId}),o.emitter.trigger("eventReceive",{event:new wr(o,i.def,i.instance),relatedEvents:[],revert:function(){o.dispatch({type:"REMOVE_EVENTS",eventStore:u})},draggedEl:e.subjectEl,view:s})}}n.receivingContext=null,n.droppableEvent=null};var o=this.hitDragging=new xs(e,Ki);o.requireInitial=!1,o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?ea(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?ea(this.suppliedDragMeta(e)):ea((t=function(e,t){var n=Ji.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event"))?JSON.parse(t):{create:!1});var t},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(De(e,n))},e}();Ji.dataAttrPrefix="";var Vs=function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,o=r.minDistance,i=r.longPressDelay;t.minDistance=null!=o?o:e.isTouch?0:an.eventDragMinDistance,t.delay=e.isTouch?null!=i?i:an.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var r=this.dragging=new Ts(e);r.touchScrollAllowed=!1,null!=t.itemSelector&&(r.pointer.selector=t.itemSelector),null!=t.appendTo&&(r.mirror.parentNode=t.appendTo),r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),new Ws(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),Fs=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new Es(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}($i),zs=function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new Fs(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new Ws(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),Bs=Oo({componentInteractions:[Is,Ns,Hs,Os],calendarInteractions:[As],elementDraggingImpl:Ts,optionRefiners:Us,listenerRefiners:Ls}),js=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
8return t.headerElRef=So(),t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,r=this.context,o=[],i=Ga(r.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),yo(Yo,{viewSpec:r.viewSpec},(function(e,t){return yo("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},yo(Ya,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var i=this.props,a=this.context,s=!i.forPrint&&Ga(a.options),l=!i.forPrint&&qa(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:s,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:ja}]}),yo(Yo,{viewSpec:a.viewSpec},(function(e,t){return yo("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},yo(o,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))}))},t}(Ho);function Gs(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.row].push(a)}return n}function qs(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var a=i[o];n[a.firstCol].push(a)}return n}function Ys(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.row].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context.options.navLinks?{"data-navlink":Qr(e.date),tabIndex:0}:{};return yo(Qa,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:Xs},(function(n,o){return(o||e.forceDayTop)&&yo("div",{className:"fc-daygrid-day-top",ref:n},yo("a",r({className:"fc-daygrid-day-number"},t),o||yo(Do,null," ")))}))},t}(Mo);function Xs(e){return e.dayNumberText}var Ks=rn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function $s(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var Js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props;return yo(Xa,r({}
8,e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ks,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(Mo),Qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||Ks,o=nr(e.seg,n,t,!0,e.defaultDisplayEventEnd);return yo(Za,{seg:e.seg,timeText:o,defaultContent:el,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(t,n,o,i){return yo("a",r({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(n).join(" "),ref:t},(a=e.seg,(s=a.eventRange.def.url)?{href:s}:{})),i);var a,s}))},t}(Mo);function el(e){return yo(Do,null,yo("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&yo("div",{className:"fc-event-time"},e.timeText),yo("div",{className:"fc-event-title"},e.event.title||yo(Do,null," ")))}var tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=zt(nl),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,o=t.invisibleSegs;return yo(us,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:o,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return yo(Do,null,n.map((function(n){var o=n.eventRange.instance.instanceId;return yo("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:t[o]?"hidden":""}},$s(n)?yo(Qs,r({seg:n,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},rr(n,e.todayRange))):yo(Js,r({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},rr(n,e.todayRange))))})))}},(function(e,t,n,r,o){return yo("a",{ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),onClick:o},r)}))},t}(Mo);function nl(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];t.push(i.seg),i.isVisible||n.push(i.seg)}return{allSegs:t,invisibleSegs:n}}var rl=rn({week:"narrow"}),ol=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=So(),t.handleRootEl=function(e){No(t.rootElRef,e),No(t.props.elRef,e)},t}return n(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,o=e.rootElRef,i=n.options,a=t.date,s=t.dateProfile,l=i.navLinks?{"data-navlink":Qr(a,"week"),tabIndex:0}:{};return yo(ts,{date:a,dateProfile:s,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraHookProps:t.extraHookProps,elRef:this.handleRootEl},(function(e,n,i,u){return yo("td",r({ref:e,className:["fc-daygrid-day"].concat(n,t.extraClassNames||[]).join(" ")},i,t.extraDataAttrs),yo("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:t.innerElRef},t.showWeekNumber&&yo(is,{date:a,defaultFormat:rl},(function(e,t,n,o){return yo("a",r({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},l),o)})),!u&&yo(Zs,{date:a,dateProfile:s,showDayNumber:t.showDayNumber,forceDayTop:t.forceDayTop,todayRange:t.todayRange,extraHookProps:t.extraHookProps}),yo("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,yo("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},yo(tl,{allDayDate:a,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:o,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),yo("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}))},t}(Ho);function il(e,t,n,r,o,i,a){var s=new sl;s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=i,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(R=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:R.firstCol,end:R.lastCol+1}}):u.push(R)}for(var p=s.addSegs(l),f=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var o=0,i=e;o<i.length;o++){var a=i[o];for(r=a.span.start;r<a.span.end;r+=1)n[r].push(a)}return n}(e,n.length),o=[],i=[],a=[],s=0;s<n.length;s+=1){for(var l=r[s],u=[],c=0,d=0,p=0,f=l;p<f.length;
8p++){var h=t[(y=f[p]).index];u.push({seg:al(h,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var v=[];c=0,d=0;for(var g=0,m=l;g<m.length;g++){h=t[(y=m[g]).index];var y,E=y.span.end-y.span.start>1,S=y.span.start===s;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,E?(d+=y.thickness,S&&v.push({seg:al(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):S&&(v.push({seg:al(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}o.push(u),i.push(v),a.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:a}}(s.toRects(),e,a),h=f.singleColPlacements,v=f.multiColPlacements,g=f.leftoverMargins,m=[],y=[],E=0,S=u;E<S.length;E++){v[(R=S[E]).firstCol].push({seg:R,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var D=R.firstCol;D<=R.lastCol;D+=1)h[D].push({seg:al(R,D,D+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(D=0;D<a.length;D+=1)m.push(0);for(var b=0,C=p;b<C.length;b++){var w=C[b],R=e[w.index],_=w.span;v[_.start].push({seg:al(R,_.start,_.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(D=_.start;D<_.end;D+=1)m[D]+=1,h[D].push({seg:al(R,D,D+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(D=0;D<a.length;D+=1)y.push(g[D]);return{singleColPlacements:h,multiColPlacements:v,moreCnts:m,moreMarginTops:y}}function al(e,t,n,o){if(e.firstCol===t&&e.lastCol===n-1)return e;var i=e.eventRange,a=i.range,s=Vn(a,{start:o[t].date,end:$e(o[n-1].date,1)});return r(r({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:r(r({},i.ui),{durationEditable:!1}),instance:i.instance,range:s},isStart:e.isStart&&s.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===a.end.valueOf()})}var sl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return n(t,e),t.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,i=function(e){return!n.forceHidden[Fi(e)]},a=0;a<o.length;a+=1)o[a]=o[a].filter(i);return r},t.prototype.handleInvalidInsertion=function(t,n,o){var i=this.entriesByLevel,a=this.forceHidden,s=t.touchingEntry,l=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&s){var c=Fi(s);if(!a[c])if(this.allowReslicing){var d=r(r({},s),{span:ji(s.span,n.span)});a[Fi(d)]=!0,i[l][u]=d,this.splitEntry(s,n,o)}else a[c]=!0,o.push(s)}return e.prototype.handleInvalidInsertion.call(this,t,n,o)},t}(Wi),ll=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new Na,t.frameElRefs=new Na,t.fgElRefs=new Na,t.segHarnessRefs=new Na,t.rootElRef=So(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return n(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context.options,i=n.cells.length,a=qs(n.businessHourSegs,i),s=qs(n.bgEventSegs,i),l=qs(this.getHighlightSegs(),i),u=qs(this.getMirrorSegs(),i),c=il($n(n.fgEventSegs,o.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,o.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),d=c.singleColPlacements,p=c.multiColPlacements,f=c.moreCnts,h=c.moreMarginTops,v=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return yo("tr",{ref:this.rootElRef},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,r){var o=e.renderFgSegs(r,n.forPrint?d[r]:p[r],n.todayRange,v),i=e.renderFgSegs(r,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var o=0,i=r[n];o<i.length;o++){var a=i[o];t[a.seg.eventRange.instance.instanceId]=a.absoluteTop}return t}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}(u[r],p),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return yo(ol,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===r,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:f[r],moreMarginTop:h[r],singlePlacements:d[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:yo(Do,null,yo(Do,null,o),yo(Do,null,i)),bgContent:yo(Do,null,e.renderFillSegs(l[r],"highlight"),e.renderFillSegs(a[r],"non-business"),e.renderFillSegs(s[r],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!St(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,o,i,a,s){var l=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,p=i||a||s,f=[];if(c)for(var h=0,v=t;h<v.length;h++){var g=v[h],m=g.seg,y=m.eventRange.instance.instanceId,E=y+":"+e,S=g.isVisible&&!o[y],D=g.
8isAbsolute,b="",C="";D&&(l.isRtl?(C=0,b=c.lefts[m.lastCol]-c.lefts[m.firstCol]):(b=0,C=c.rights[m.firstCol]-c.rights[m.lastCol])),f.push(yo("div",{className:"fc-daygrid-event-harness"+(D?" fc-daygrid-event-harness-abs":""),key:E,ref:p?null:this.segHarnessRefs.createRef(E),style:{visibility:S?"":"hidden",marginTop:D?"":g.marginTop,top:D?g.absoluteTop:"",left:b,right:C}},$s(m)?yo(Qs,r({seg:m,isDragging:i,isSelected:y===u,defaultDisplayEventEnd:d},rr(m,n))):yo(Js,r({seg:m,isDragging:i,isResizing:a,isDateSelecting:s,isSelected:y===u,defaultDisplayEventEnd:d},rr(m,n)))))}return f},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,i=this.props.todayRange,a=this.state.framePositions,s=[];if(a)for(var l=0,u=e;l<u.length;l++){var c=u[l],d=n?{right:0,left:a.lefts[c.lastCol]-a.lefts[c.firstCol]}:{left:0,right:a.rights[c.firstCol]-a.rights[c.lastCol]};s.push(yo("div",{key:ir(c.eventRange),className:"fc-daygrid-bg-harness",style:d},"bg-event"===t?yo(rs,r({seg:c},rr(c,i))):ns(t)))}return yo.apply(void 0,o([Do,{}],s))},t.prototype.updateSizing=function(e){var t=this.props,n=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var r=t.cells.map((function(e){return n.currentMap[e.key]}));if(r.length){var o=this.rootElRef.current;this.setState({framePositions:new po(o,r,!0,!1)})}}var i=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.setState({eventInstanceHeights:this.queryEventInstanceHeights(),maxContentHeight:i?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),o=n.split(":")[0];t[o]=Math.max(t[o]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(Ho);ll.addStateEquality({eventInstanceHeights:St});var ul=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=zt(Gs),t.splitBgEventSegs=zt(Gs),t.splitFgEventSegs=zt(Gs),t.splitDateSelectionSegs=zt(Gs),t.splitEventDrag=zt(Ys),t.splitEventResize=zt(Ys),t.rowRefs=new Na,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,o=t.dayMaxEvents,i=t.expandRows,a=t.cells.length,s=this.splitBusinessHourSegs(t.businessHourSegs,a),l=this.splitBgEventSegs(t.bgEventSegs,a),u=this.splitFgEventSegs(t.fgEventSegs,a),c=this.splitDateSelectionSegs(t.dateSelectionSegs,a),d=this.splitEventDrag(t.eventDrag,a),p=this.splitEventResize(t.eventResize,a),f=!0===o||!0===r;return f&&!i&&(f=!1,r=null,o=null),yo("div",{className:["fc-daygrid-body",f?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},yo(va,{unit:"day"},(function(f,h){return yo(Do,null,yo("table",{className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,yo("tbody",null,t.cells.map((function(i,f){return yo(ll,{ref:e.rowRefs.createRef(f),key:i.length?i[0].date.toISOString():f,showDayNumbers:a>1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:n,cells:i,renderIntro:t.renderRowIntro,businessHourSegs:s[f],eventSelection:t.eventSelection,bgEventSegs:l[f].filter(cl),fgEventSegs:u[f],dateSelectionSegs:c[f],eventDrag:d[f],eventResize:p[f],dayMaxEvents:o,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new po(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new po(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,o=this.rowPositions,i=n.leftToIndex(e),a=o.topToIndex(t);if(null!=a&&null!=i){var s=this.props.cells[a][i];return{dateProfile:this.props.dateProfile,dateSpan:r({range:this.getCellRange(a,i),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,i),rect:{left:n.lefts[i],right:n.rights[i],top:o.tops[a],bottom:o.bottoms[a]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:$e(n,1)}},t}
8(Ho);function cl(e){return e.eventRange.def.allDay}var dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return n(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Da),pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new dl,t.tableRef=So(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return yo(ul,r({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(Ho),fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=zt(hl),t.headerRef=So(),t.tableRef=So(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,r),a=n.dayHeaders&&yo(ma,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),s=function(t){return yo(pl,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(a,s,i.colCnt,n.dayMinWidth):this.renderSimpleLayout(a,s)},t}(js);function hl(e,t){var n=new Ea(e.renderRange,t);return new Sa(n,/year|month|week/.test(e.currentRangeUnit))}var vl=Oo({initialView:"dayGridMonth",views:{dayGrid:{component:fl,dateProfileGeneratorClass:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.buildRenderRange=function(t,n,r){var o,i=this.props.dateEnv,a=e.prototype.buildRenderRange.call(this,t,n,r),s=a.start,l=a.end;(/^(year|month)$/.test(n)&&(s=i.startOfWeek(s),(o=i.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=Ke(o,1))),this.props.monthMode&&this.props.fixedWeekCount)&&(l=Ke(l,6-Math.ceil(Qe(s,l))));return{start:s,end:l}},t}(Jo)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?qn(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(Xr),ml=rn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function yl(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return yo(To.Consumer,null,(function(n){if(!e.isLabeled)return yo("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,o=n.options,i=n.viewApi,a=null==o.slotLabelFormat?ml:Array.isArray(o.slotLabelFormat)?rn(o.slotLabelFormat[0]):rn(o.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:i,text:r.format(e.date,a)};return yo(Wo,{hookProps:s,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:El,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(n,r,o,i){return yo("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},yo("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},yo("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},i)))}))}))}function El(e){return e.text}var Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return yo("tr",{key:e.key},yo(yl,r({},e)))}))},t}(Mo),Dl=rn({week:"short"}),bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
8return t.allDaySplitter=new gl,t.headerElRef=So(),t.rootElRef=So(),t.scrollerElRef=So(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var o=t.context.options,i=t.props.dateProfile.renderRange,a=et(i.start,i.end),s=o.navLinks&&1===a?{"data-navlink":Qr(i.start,"week"),tabIndex:0}:{};return o.weekNumbers&&"day"===e?yo(is,{date:i.start,defaultFormat:Dl},(function(e,t,o,i){return yo("th",{ref:e,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},yo("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},yo("a",r({ref:o,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),i)))})):yo("th",{className:"fc-timegrid-axis"},yo("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,o=n.viewApi,i={text:r.allDayText,view:o};return yo(Wo,{hookProps:i,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:Cl,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(t,n,r,o){return yo("td",{ref:t,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},yo("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},yo("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},o)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,o=this.props,i=[],a=Ga(r.options);return e&&i.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:yo("tr",{className:"fc-scrollgrid-section"},yo("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),yo(Yo,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(e,t){return yo("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},yo(Ya,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r,o,i,a){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&Ga(u.options),p=!c.forPrint&&qa(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return yo("tr",null,s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return yo("tr",null,s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:yo("tr",{className:"fc-scrollgrid-section"},yo("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return yo("div",{className:"fc-timegrid-axis-chunk"},yo("table",{style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,yo("tbody",null,yo(Sl,{slatMetas:i}))),yo("div",{className:"fc-timegrid-now-indicator-container"},yo(va,{unit:h?"minute":"day"},(function(e){var t=h&&a&&a.safeComputeTop(e);return"number"==typeof t?yo($a,{isAxis:!0,date:e},(function(e,n,r,o){return yo("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},o)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),p&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:ja},{key:"cols",content:ja}]}),yo(Yo,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return yo("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},yo(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:f}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(Ho);function Cl(e){return e.text}var wl=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(jn(t.currentRange,e)){var n=ot(e),r=e.valueOf()-n.valueOf();if(r>=Ht(t.slotMinTime)&&r<Ht(t.slotMaxTime))return this.computeTimeTop(xt(r))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=ot(e)),this.computeTimeTop(xt(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,r=this.positions,o=this.dateProfile,i=r.els.length,a=(e.milliseconds-Ht(o.slotMinTime))/Ht(this.slotDuration);return a=Math.max(0,a),a=Math.min(i,a),t=Math.floor(a),n=a-(t=Math.min(t,i-1)),r.tops[t]+r.getHeight(t)*n},e}(),Rl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,o=e.slatElRefs;return yo("tbody",null,e.slatMetas.map((function(i,a){var s={time:i.time,date:t.dateEnv.toDate(i.date),view:t.viewApi},l=["fc-timegrid-slot","fc-timegrid-slot-lane",i.isLabeled?"":"fc-timegrid-slot-minor"];return yo("tr",{key:i.key,ref:o.createRef(i.key)},e.axis&&yo(yl,r({},i)),yo(Wo,{hookProps:s,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(e,t,n,r){return yo("td",{ref:e,className:l.concat(t).join(" "),"data-time":i.isoTimeStr},r)})))}
8)))},t}(Mo),_l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=So(),t.slatElRefs=new Na,t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return yo("div",{className:"fc-timegrid-slots",ref:this.rootElRef},yo("table",{className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,yo(Rl,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new wl(new po(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(Mo);function Tl(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function kl(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.col].segs.push(i)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=So(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props;return yo(us,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:Ml,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return Fl(t.hiddenSegs,t)}},(function(n,r,o,i,a){return yo("a",{ref:function(t){No(n,t),No(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:t.top,bottom:t.bottom},onClick:a},yo("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},i))}))},t}(Mo);function Ml(e){return e.shortText}function Pl(e,t,n){var o=new Wi;null!=t&&(o.strictOrder=t),null!=n&&(o.maxStackCnt=n);var i,a,s,l=zi(o.addSegs(e)),u=function(e){var t=e.entriesByLevel,n=Ol((function(e,t){return e+":"+t}),(function(o,i){var a=Il(function(e,t,n){for(var r=e.levelCoords,o=e.entriesByLevel,i=o[t][n],a=r[t]+i.thickness,s=r.length,l=t;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){for(var u=o[l],c=void 0,d=qi(u,i.span.start,Vi),p=d[0]+d[1],f=p;(c=u[f])&&c.span.start<i.span.end;)f+=1;if(p<f)return{level:l,lateralStart:p,lateralEnd:f}}return null}(e,o,i),n),s=t[o][i];return[r(r({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]}));return Il(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(o);return i=u,a=1,s=Ol((function(e,t,n){return Fi(e)}),(function(e,t,n){var o,i=e.nextLevelNodes,l=e.thickness,u=l+n,c=l/u,d=[];if(i.length)for(var p=0,f=i;p<f.length;p++){var h=f[p];if(void 0===o)o=(v=s(h,t,u))[0],d.push(v[1]);else{var v=s(h,o,0);d.push(v[1])}}else o=a;var g=(o-t)*c;return[o-g,r(r({},e),{thickness:g,nextLevelNodes:d})]})),{segRects:function(e){var t=[],n=Ol((function(e,t,n){return Fi(e)}),(function(e,n,i){var a=r(r({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(a),a.stackForward=o(e.nextLevelNodes,n+e.thickness,i+1)+1}));function o(e,t,r){for(var o=0,i=0,a=e;i<a.length;i++){var s=a[i];o=Math.max(n(s,t,r),o)}return o}return o(e,0,0),t}(u=i.map((function(e){return s(e,0,0)[1]}))),hiddenGroups:l}}function Il(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,o=e.lateralEnd,i=r,a=[];i<o;)a.push(t(n,i)),i+=1;return a.sort(Nl),[a.map(Hl),a[0][1]]}function Nl(e,t){return t[1]-e[1]}function Hl(e){return e[0]}function Ol(e,t){var n={};return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e.apply(void 0,r);return i in n?n[i]:n[i]=t.apply(void 0,r)}}function Al(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var o=[];if(n)for(var i=0;i<e.length;i+=1){var a=e[i],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));o.push({start:Math.round(s),end:Math.round(l)})}return o}var Ul=rn({hour:"numeric",minute:"2-digit",meridiem:!1}),Ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),yo(Xa,r({},this.props,{defaultTimeFormat:Ul,extraClassNames:e}))},t}(Mo),Wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props;return yo(Qa,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&yo("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(Mo),Vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=zt($n),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=n.options.selectMirror,i=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||o&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return yo(ts,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(n,l,u){return yo("td",r({ref:n,className:["fc-timegrid-col"].concat(l,t.extraClassNames||[]).join(" ")},u,t.extraDataAttrs),yo("div",{className:"fc-timegrid-col-frame"},yo("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),yo("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(s,a,!1,!1,!1)),yo("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(i,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(o))),yo("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),yo(Wl,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,o){var i=this.props;return i.forPrint?Fl(e,i):this.renderPositionedFgSegs(e,t,n,r,o)},t.prototype.renderPositionedFgSegs=function(e,t,n,o,i){var a=this,s=this.context.options,l=s.eventMaxStack,u=s.eventShortHeight,c=s.eventOrderStrict,d=s.eventMinHeight,p=this.props,f=p.date,h=p.slatCoords,v=p.eventSelection,g=p.todayRange,m=p.nowDate,y=n||o||i,E=function(e,t,n,r){for(var o=[],i=[],a=0;a<e.length;a+=1){var s=t[a];s?o.push({index:a,thickness:1,span:s}):i.push(e[a])}for(var l=Pl(o,n,r),u=l.segRects,c=l.hiddenGroups,d=[],p=0,f=u;p<f.length;p++){var h=f[p];d.push({seg:e[h.index],rect:h})}for(var v=0,g=i;v<g.length;v++){var m=g[v];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,Al(e,f,h,d),c,l),S=E.segPlacements,D=E.hiddenGroups;return yo(Do,null,this.renderHiddenGroups(D,e),S.map((function(e){var s=e.seg,l=e.rect,c=s.eventRange.instance.instanceId,d=y||Boolean(!t[c]&&l),p=zl(l&&l.span),f=!y&&l?a.computeSegHStyle(l):{left:0,right:0},h=Boolean(l)&&l.stackForward>0,E=Boolean(l)&&l.span.end-l.span.start<u;return yo("div",{className:"fc-timegrid-event-harness"+(h?" fc-timegrid-event-harness-inset":""),key:c,style:r(r({visibility:d?"":"hidden"},p),f)},yo(Ll,r({seg:s,isDragging:n,isResizing:o,isDateSelecting:i,isSelected:c===v,isShort:E},rr(s,g,m))))})))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,o=n.dateProfile,i=n.todayRange,a=n.nowDate,s=n.eventSelection,l=n.eventDrag,u=n.eventResize;return yo(Do,null,e.map((function(e){var n,c,d=zl(e.span),p=(n=e.entries,c=t,n.map((function(e){return c[e.index]})));return yo(xl,{key:Ut(ps(p)),hiddenSegs:p,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:a,eventSelection:s,eventDrag:l,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var n=this.props,o=this.context,i=Al(e,n.date,n.slatCoords,o.options.eventMinHeight).map((function(o,i){var a=e[i];return yo("div",{key:ir(a.eventRange),className:"fc-timegrid-bg-harness",style:zl(o)},"bg-event"===t?yo(rs,r({seg:a},rr(a,n.todayRange,n.nowDate))):ns(t))}));return yo(Do,null,i)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map((function(e,t){return yo($a,{isAxis:!1,date:r,key:t},(function(t,o,i,a){return yo("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{to
8p:n.computeDateTop(e.start,r)}},a)}))})):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,o=r.isRtl,i=r.options.slotEventOverlap,a=e.levelCoord,s=e.levelCoord+e.thickness;i&&(s=Math.min(1,a+2*(s-a))),o?(t=1-s,n=a):(t=a,n=1-s);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return i&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(Mo);function Fl(e,t){var n=t.todayRange,o=t.nowDate,i=t.eventSelection,a=t.eventDrag,s=t.eventResize,l=(a?a.affectedInstances:null)||(s?s.affectedInstances:null)||{};return yo(Do,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return yo("div",{key:t,style:{visibility:l[t]?"hidden":""}},yo(Ll,r({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===i,isShort:!1},rr(e,n,o))))})))}function zl(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var Bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=zt(Tl),t.splitBgEventSegs=zt(Tl),t.splitBusinessHourSegs=zt(Tl),t.splitNowIndicatorSegs=zt(Tl),t.splitDateSelectionSegs=zt(Tl),t.splitEventDrag=zt(kl),t.splitEventResize=zt(kl),t.rootElRef=So(),t.cellElRefs=new Na,t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),r=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,r),i=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitBusinessHourSegs(t.businessHourSegs,r),s=this.splitNowIndicatorSegs(t.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(t.dateSelectionSegs,r),u=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r);return yo("div",{className:"fc-timegrid-cols",ref:this.rootElRef},yo("table",{style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,yo("tbody",null,yo("tr",null,t.axis&&yo("td",{className:"fc-timegrid-col fc-timegrid-axis"},yo("div",{className:"fc-timegrid-col-frame"},yo("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&yo($a,{isAxis:!0,date:t.nowDate},(function(e,t,r,o){return yo("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},o)}))))),t.cells.map((function(n,r){return yo(Vl,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:o[r],bgEventSegs:i[r],businessHourSegs:a[r],nowIndicatorSegs:s[r],dateSelectionSegs:l[r],eventDrag:u[r],eventResize:c[r],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new po(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(Mo);var jl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=zt(Gl),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var o=r.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),n(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return yo("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},yo(_l,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),yo(Bl,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,
8nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,o=n.dateEnv,i=n.options,a=this.colCoords,s=this.props.dateProfile,l=this.state.slatCoords,u=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=u.snapDuration,d=u.snapsPerSlot,p=a.leftToIndex(e),f=l.positions.topToIndex(t);if(null!=p&&null!=f){var h=this.props.cells[p],v=l.positions.tops[f],g=l.positions.getHeight(f),m=(t-v)/g,y=f*d+Math.floor(m*d),E=this.props.cells[p].date,S=Pt(s.slotMinTime,It(c,y)),D=o.add(E,S),b=o.add(D,c);return{dateProfile:s,dateSpan:r({range:{start:D,end:b},allDay:!1},h.extraDateSpan),dayEl:a.els[p],rect:{left:a.lefts[p],right:a.rights[p],top:v,bottom:v+g},layer:0}}return null},t}(Ho);function Gl(e,t){var n=t||e,r=Ot(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var ql=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var o=Vn(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(Da),Yl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=zt(Zl),t.slicer=new ql,t.timeColsRef=So(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,o=t.dateProfile,i=t.dayTableModel,a=n.options.nowIndicator,s=this.buildDayRanges(i,o,n.dateEnv);return yo(va,{unit:a?"minute":"day"},(function(l,u){return yo(jl,r({ref:e.timeColsRef},e.slicer.sliceProps(t,o,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:o,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:a&&e.slicer.sliceNowDate(l,n,s),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(Ho);function Zl(e,t,n){for(var r=[],o=0,i=e.headerDates;o<i.length;o++){var a=i[o];r.push({start:n.add(a,t.slotMinTime),end:n.add(a,t.slotMaxTime)})}return r}var Xl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Kl(e,t,n,r,o){for(var i=new Date(0),a=e,s=xt(0),l=n||function(e){var t,n,r;for(t=Xl.length-1;t>=0;t-=1)if(null!==(r=Ot(n=xt(Xl[t]),e))&&r>1)return n;return e}(r),u=[];Ht(a)<Ht(t);){var c=o.add(i,a),d=null!==Ot(s,l);u.push({date:c,time:a,key:c.toISOString(),isoTimeStr:Wt(c),isLabeled:d}),a=Pt(a,r),s=Pt(s,r)}return u}var $l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=zt(Jl),t.buildSlatMetas=zt(Kl),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,o=t.dateEnv,i=t.dateProfileGenerator,a=this.props,s=a.dateProfile,l=this.buildTimeColsModel(s,i),u=this.allDaySplitter.splitProps(a),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,n.slotLabelInterval,n.slotDuration,o),d=n.dayMinWidth,p=!d,f=d,h=n.dayHeaders&&yo(ma,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),v=!1!==n.allDaySlot&&function(t){return yo(pl,r({},u.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:p?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint},e.getAllDayMaxEventProps()))},g=function(t){return yo(Yl,r({},u.timed,{dayTableModel:l,dateProfile:s,axis:p,slotDuration:n.slotDuration,slatMetas:c,forPrint:a.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(h,v,g,l.colCnt,d,c,this.state.slatCoords):this.renderSimpleLayout(h,v,g)},t}(bl);function Jl(e,t){var n=new Ea(e.renderRange,t);return new Sa(n,!1)}var Ql=Oo({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:$l,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=e.dayDate,
8n=e.todayRange,o=this.context,i=o.theme,a=o.dateEnv,s=o.options,l=o.viewApi,u=$r(t,n),c=s.listDayFormat?a.format(t,s.listDayFormat):"",d=s.listDaySideFormat?a.format(t,s.listDaySideFormat):"",p=s.navLinks?Qr(t):null,f=r({date:a.toDate(t),view:l,text:c,sideText:d,navLinkData:p},u),h=["fc-list-day"].concat(Jr(u,i));return yo(Wo,{hookProps:f,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:tu,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},(function(e,n,r,o){return yo("tr",{ref:e,className:h.concat(n).join(" "),"data-date":Lt(t)},yo("th",{colSpan:3},yo("div",{className:"fc-list-day-cushion "+i.getClass("tableCellShaded"),ref:r},o)))}))},t}(Mo);function tu(e){var t=e.navLinkData?{"data-navlink":e.navLinkData,tabIndex:0}:{};return yo(Do,null,e.text&&yo("a",r({className:"fc-list-day-text"},t),e.text),e.sideText&&yo("a",r({className:"fc-list-day-side-text"},t),e.sideText))}var nu=rn({hour:"numeric",minute:"2-digit",meridiem:"short"}),ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=t.options.eventTimeFormat||nu;return yo(Za,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:ou,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,o,i,a,s){return yo("tr",{className:["fc-list-event",s.event.url?"fc-event-forced-url":""].concat(o).join(" "),ref:e},function(e,t,n){var r=n.options;if(!1!==r.displayEventTime){var o=e.eventRange.def,i=e.eventRange.instance,a=!1,s=void 0;if(o.allDay?a=!0:An(e.eventRange.range)?e.isStart?s=nr(e,t,n,null,null,i.range.start,e.end):e.isEnd?s=nr(e,t,n,null,null,e.start,i.range.end):a=!0:s=nr(e,t,n),a){var l={text:n.options.allDayText,view:n.viewApi};return yo(Wo,{hookProps:l,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:iu,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(e,t,n,r){return yo("td",{className:["fc-list-event-time"].concat(t).join(" "),ref:e},r)}))}return yo("td",{className:"fc-list-event-time"},s)}return null}(n,r,t),yo("td",{className:"fc-list-event-graphic"},yo("span",{className:"fc-list-event-dot",style:{borderColor:s.borderColor||s.backgroundColor}})),yo("td",{className:"fc-list-event-title",ref:i},a))}))},t}(Mo);function ou(e){var t=e.event,n=t.url;return yo("a",r({},n?{href:n}:{}),t.title)}function iu(e){return e.text}var au=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeDateVars=zt(lu),t.eventStoreToSegs=zt(t._eventStoreToSegs),t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return n(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],o=this.computeDateVars(t.dateProfile),i=o.dayDates,a=o.dayRanges,s=this.eventStoreToSegs(t.eventStore,t.eventUiBases,a);return yo(Yo,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,o){return yo("div",{ref:n,className:r.concat(o).join(" ")},yo(Ia,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},s.length>0?e.renderSegList(s,i):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return yo(Wo,{hookProps:r,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:su,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,r){return yo("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},yo("div",{className:"fc-list-empty-cushion",ref:n},r))}))},t.prototype.renderSegList=function(e,t){var n=this.context,o=n.theme,i=n.options,a=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return yo(va,{unit:"day"},(function(e,n){for(var s=[],l=0;l<a.length;l+=1){var u=a[l];if(u){var c=t[l].toISOString();s.push(yo(eu,{key:c,dayDate:t[l],todayRange:n}));for(var d=0,p=u=$n(u,i.eventOrder);d<p.length;d++){var f=p[d];s.push(yo(ru,r({key:c+":"+f.eventRange.instance.instanceId,seg:f,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1},rr(f,n,e))))}}}return yo("table",{className:"fc-list-table "+o.getClass("table")},yo("tbody",null,s))}
8))},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Gn(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.eventRangeToSegs(i,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,r,o,i=this.context.dateEnv,a=this.context.options.nextDayThreshold,s=e.range,l=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((r=Vn(s,t[n]))&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===s.end.valueOf(),dayIndex:n},u.push(o),!o.isEnd&&!l&&n+1<t.length&&s.end<i.add(t[n+1].start,a))){o.end=s.end,o.isEnd=!0;break}return u},t}(Ho);function su(e){return e.text}function lu(e){for(var t=ot(e.renderRange.start),n=e.renderRange.end,r=[],o=[];t<n;)r.push(t),o.push({start:t,end:$e(t,1)}),t=$e(t,1);return{dayDates:r,dayRanges:o}}function uu(e){return!1===e?null:rn(e)}var cu=Oo({optionRefiners:{listDayFormat:uu,listDaySideFormat:uu,noEventsClassNames:hn,noEventsContent:hn,noEventsDidMount:hn,noEventsWillUnmount:hn},views:{list:{component:au,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}}),du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(go);du.prototype.classes={root:"fc-theme-bootstrap",table:"table-bordered",tableCellShaded:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},du.prototype.baseIconClass="fa",du.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},du.prototype.rtlIconClasses={prev:"fa-chevron-right",next:"fa-chevron-left",prevYear:"fa-angle-double-right",nextYear:"fa-angle-double-left"},du.prototype.iconOverrideOption="bootstrapFontAwesome",du.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",du.prototype.iconOverridePrefix="fa-";var pu=Oo({themeClasses:{bootstrap:du}}),fu="https://www.googleapis.com/calendar/v3/calendars";var hu=Oo({eventSourceDefs:[{parseMeta:function(e){var t=e.googleCalendarId;return!t&&e.url&&(t=function(e){var t;if(/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(e))return e;if((t=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(e))||(t=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(e)))return decodeURIComponent(t[1]);return null}(e.url)),t?{googleCalendarId:t,googleCalendarApiKey:e.googleCalendarApiKey,googleCalendarApiBase:e.googleCalendarApiBase,extraParams:e.extraParams}:null},fetch:function(e,t,n){var o=e.context,i=o.dateEnv,a=o.options,s=e.eventSource.meta,l=s.googleCalendarApiKey||a.googleCalendarApiKey;if(l){var u=function(e){var t=e.googleCalendarApiBase;t||(t=fu);return t+"/"+encodeURIComponent(e.googleCalendarId)+"/events"}(s),c=s.extraParams,d="function"==typeof c?c():c,p=function(e,t,n,o){var i,a,s;o.canComputeOffset?(a=o.formatIso(e.start),s=o.formatIso(e.end)):(a=$e(e.start,-1).toISOString(),s=$e(e.end,1).toISOString());i=r(r({},n||{}),{key:t,timeMin:a,timeMax:s,singleEvents:!0,maxResults:9999}),"local"!==o.timeZone&&(i.timeZone=o.timeZone);return i}(e.range,l,d,i);mi("GET",u,p,(function(e,r){var o,i;e.error?n({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:r}):t({rawEvents:(o=e.items,i=p.timeZone,o.map((function(e){return function(e,t){var n=e.htmlLink||null;n&&t&&(n=function(e,t){return e.replace(/(\?.*?)?(#|$)/,(function(e,n,r){return(n?n+"&":"?")+t+r}))}(n,"ctz="+t));return{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:n,location:e.location,description:e.description,attachments:e.attachments||[],extendedProps:(e.extendedProperties||{}).shared||{}}}(e,i)}))),xhr:r})}),(function(e,t){n({message:e,xhr:t})}))}else n({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}}],optionRefiners:{googleCalendarApiKey:String},eventSourceRefiners:{googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:hn}});return Si.push(Bs,vl,Ql,cu,pu,hu),e.BASE_OPTION_DEFAULTS=an,e.BASE_OPTION_REFINERS=on,e.BaseComponent=Mo,e.BgEvent=rs,e.BootstrapTheme=du,e.Calendar=vs,e.CalendarApi=Cr,e.CalendarContent=aa,e.CalendarDataManager=_i,e.CalendarDataProvider=Ui,e.CalendarRoot=ua,e.Component=mo,e.ContentHook=Fo,e.CustomContentRenderContext=Vo,e.DateComponent=Ho,e.DateEnv=Ir,e.DateProfileGenerator=Jo,e.DayCellContent=Qa,e.DayCellRoot=ts,e.DayGridView=fl,e.DayHeader=ma,e.DaySeriesM
8odel=Ea,e.DayTable=pl,e.DayTableModel=Sa,e.DayTableSlicer=dl,e.DayTimeCols=Yl,e.DayTimeColsSlicer=ql,e.DayTimeColsView=$l,e.DelayedRunner=Ci,e.Draggable=Vs,e.ElementDragging=$i,e.ElementScrollController=ho,e.Emitter=co,e.EventApi=wr,e.EventRoot=Za,e.EventSourceApi=ye,e.FeaturefulElementDragging=Ts,e.Fragment=Do,e.Interaction=Yi,e.ListView=au,e.MoreLinkRoot=us,e.MountHook=Bo,e.NamedTimeZoneImpl=Li,e.NowIndicatorRoot=$a,e.NowTimer=va,e.PointerDragging=Es,e.PositionCache=po,e.RefMap=Na,e.RenderHook=Wo,e.ScrollController=fo,e.ScrollResponder=_o,e.Scroller=Ia,e.SegHierarchy=Wi,e.SimpleScrollGrid=Ya,e.Slicer=Da,e.Splitter=Xr,e.StandardEvent=Xa,e.Table=ul,e.TableDateCell=fa,e.TableDowCell=ha,e.TableView=js,e.Theme=go,e.ThirdPartyDraggable=zs,e.TimeCols=jl,e.TimeColsSlatsCoords=wl,e.TimeColsView=bl,e.ViewApi=yr,e.ViewContextType=To,e.ViewRoot=Yo,e.WeekNumberRoot=is,e.WindowScrollController=vo,e.addDays=$e,e.addDurations=Pt,e.addMs=Je,e.addWeeks=Ke,e.allowContextMenu=Ve,e.allowSelection=Le,e.applyMutationToEventStore=vr,e.applyStyle=we,e.applyStyleProp=Re,e.asCleanDays=function(e){return e.years||e.months||e.milliseconds?0:e.days},e.asRoughMinutes=function(e){return Ht(e)/6e4},e.asRoughMs=Ht,e.asRoughSeconds=function(e){return Ht(e)/1e3},e.binarySearch=qi,e.buildClassNameNormalizer=jo,e.buildDayRanges=Zl,e.buildDayTableModel=hl,e.buildEntryKey=Fi,e.buildEventApis=_r,e.buildEventRangeKey=ir,e.buildHashFromArray=function(e,t){for(var n={},r=0;r<e.length;r+=1){var o=t(e[r],r);n[o[0]]=o[1]}return n},e.buildIsoString=Ut,e.buildNavLinkData=Qr,e.buildSegCompareObj=Jn,e.buildSegTimeText=nr,e.buildSlatMetas=Kl,e.buildTimeColsModel=Jl,e.collectFromHash=wt,e.combineEventUis=Rn,e.compareByFieldSpec=Be,e.compareByFieldSpecs=ze,e.compareNumbers=qe,e.compareObjs=bt,e.computeEarliestSegStart=ps,e.computeEdges=io,e.computeFallbackHeaderFormat=ca,e.computeHeightAndMargins=function(e){return e.getBoundingClientRect().height+function(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(e)},e.computeInnerRect=ao,e.computeRect=so,e.computeSegDraggable=Qn,e.computeSegEndResizable=tr,e.computeSegStartResizable=er,e.computeShrinkWidth=Ha,e.computeSmallestCellWidth=Ze,e.computeVisibleDayRange=On,e.config=Ji,e.constrainPoint=jr,e.createContext=bo,e.createDuration=xt,e.createElement=yo,e.createEmptyEventStore=yn,e.createEventInstance=ft,e.createEventUi=wn,e.createFormatter=rn,e.createPlugin=Oo,e.createPortal=Co,e.createRef=So,e.diffDates=Un,e.diffDayAndTime=tt,e.diffDays=et,e.diffPoints=qr,e.diffWeeks=Qe,e.diffWholeDays=rt,e.diffWholeWeeks=nt,e.disableCursor=Oe,e.elementClosest=Se,e.elementMatches=De,e.enableCursor=Ae,e.eventTupleToStore=gn,e.filterEventStoreDefs=Sn,e.filterHash=gt,e.findDirectChildren=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].children,a=0;a<i.length;a+=1){var s=i[a];t&&!De(s,t)||r.push(s)}return r},e.findElements=be,e.flexibleCompare=je,e.flushToDom=wo,e.formatDate=function(e,t){void 0===t&&(t={});var n=Lr(t),r=rn(t),o=n.createMarkerMeta(e);return o?n.format(o.marker,r,{forcedTzo:o.forcedTzo}):""},e.formatDayString=Lt,e.formatIsoTimeString=Wt,e.formatRange=function(e,t,n){var r=Lr("object"==typeof n&&n?n:{}),o=rn(n),i=r.createMarkerMeta(e),a=r.createMarkerMeta(t);return i&&a?r.formatRange(i.marker,a.marker,o,{forcedStartTzo:i.forcedTzo,forcedEndTzo:a.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:an.defaultRangeSeparator}):""},e.getAllowYScrolling=Aa,e.getCanVGrowWithinCell=Yr,e.getClippingParents=lo,e.getDateMeta=$r,e.getDayClassNames=Jr,e.getDefaultEventEnd=hr,e.getElRoot=Te,e.getElSeg=Zn,e.getEntrySpanEnd=Vi,e.getEventClassNames=or,e.getEventTargetViaRoot=_e,e.getIsRtlScrollbarOnLeft=no,e.getRectCenter=Gr,e.getRelevantEvents=mn,e.getScrollGridClassNames=za,e.getScrollbarWidths=ro,e.getSectionClassNames=Ba,e.getSectionHasLiquidHeight=Oa,e.getSegMeta=rr,e.getSlotClassNames=function(e,t){var n=["fc-slot","fc-slot-"+Xe[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n},e.getStickyFooterScrollbar=qa,e.getStickyHeaderDates=Ga,e.getUnequalProps=Dt,e.globalLocales=Nr,e.globalPlugins=Si,e.greatestDurationDenominator=At,e.groupIntersectingEntries=zi,e.guid=He,e.hasBgRendering=qn,e.hasShrinkWidth=Fa,e.identity=hn,e.interactionSettingsStore=Ki,e.interactionSettingsToStore=Xi,e.intersectRanges=Vn,e.intersectRects=Br,e.intersectSpans=ji,e.isArraysEqual=Ft,e.isColPropsEqual=La,e.isDateSelectionValid=wa,e.isDateSpansEqual=lr,e.isInt=Ye,e.isInteractionValid=Ca,e.isMultiDayRange=An,e.isPropsEqual=St,e.isPropsValid=_a,e.isValidDate=dt,e.joinSpans=Bi,e.listenBySelector=Me,e.mapHash=mt,e.memoize=zt,e.memoizeArraylike=function(e,t,n){var r=this,o=[],i=[];return function(a){for(var s=o.length,l=a.length,u=0;u<s;
8u+=1)if(a[u]){if(!Ft(o[u],a[u])){n&&n(i[u]);var c=e.apply(r,a[u]);t&&t(c,i[u])||(i[u]=c)}}else n&&n(i[u]);for(;u<l;u+=1)i[u]=e.apply(r,a[u]);return o=a,i.splice(l),i}},e.memoizeHashlike=function(e,t,n){var r=this,o={},i={};return function(a){var s={};for(var l in a)if(i[l])if(Ft(o[l],a[l]))s[l]=i[l];else{n&&n(i[l]);var u=e.apply(r,a[l]);s[l]=t&&t(u,i[l])?i[l]:u}else s[l]=e.apply(r,a[l]);return o=a,i=s,s}},e.memoizeObjArg=Bt,e.mergeEventStores=En,e.multiplyDuration=It,e.padStart=Ge,e.parseBusinessHours=Fr,e.parseClassNames=Dn,e.parseDragMeta=ea,e.parseEventDef=Nn,e.parseFieldSpecs=Fe,e.parseMarker=Pr,e.pointInsideRect=zr,e.preventContextMenu=We,e.preventDefault=ke,e.preventSelection=Ue,e.rangeContainsMarker=jn,e.rangeContainsRange=Bn,e.rangesEqual=Fn,e.rangesIntersect=zn,e.refineEventDef=Pn,e.refineProps=fn,e.removeElement=Ee,e.removeExact=function(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},e.render=Eo,e.renderChunkContent=Ua,e.renderFill=ns,e.renderMicroColGroup=Wa,e.renderScrollShim=ja,e.requestJson=mi,e.sanitizeShrinkWidth=Va,e.setElSeg=Yn,e.setRef=No,e.sliceEventStore=Gn,e.sliceEvents=function(e,t){return Gn(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.sortEventSegs=$n,e.startOfDay=ot,e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.triggerDateSelect=pr,e.unmountComponentAtNode=Ro,e.unpromisify=uo,e.version="5.9.0",e.whenTransitionDone=Ie,e.wholeDivideDurations=Ot,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
9var mecSingleEventDisplayer={getSinglePage:function(id,occurrence,time,ajaxurl,layout,image_popup)
10{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-modal-preloader');jQuery.ajax({url:ajaxurl,data:"action=mec_load_single_page&id="+id+(occurrence!=null?"&occurrence="+occurrence:"")+(time!=null?"&time="+time:"")+"&layout="+layout,type:"get",success:function(response)
11{jQuery('.mec-modal-result').removeClass("mec-modal-preloader");jQuery.featherlight(response);setTimeout(function()
12{if(typeof grecaptcha!=='undefined'&&jQuery('#g-recaptcha').length>0)
13{grecaptcha.render("g-recaptcha",{sitekey:mecdata.recapcha_key});}},1000);if(image_popup!=0)
14{if(jQuery('.featherlight-content .mec-events-content a img').length>0)
15{jQuery('.featherlight-content .mec-events-content a img').each(function()
16{jQuery(this).closest('a').attr('data-featherlight','image');});}}
17else
18{jQuery('.featherlight-content .mec-events-content a img').remove();jQuery('.featherlight-content .mec-events-content img').remove();}
19if(typeof mecdata.enableSingleFluent!='undefined'&&mecdata.enableSingleFluent)mecFluentSinglePage();},error:function(){}});}};var mec_search_callback1;var mec_search_callback2;(function($){$.fn.mecSearchForm=function(options){if(typeof settings!='undefined')console.log(settings.callback);var settings=$.extend({id:0,refine:0,ajax_url:'',search_form_element:'',atts:'',callback:function(){}},options);if(typeof mec_search_callback1==='undefined')mec_search_callback1=settings.callback;else if(typeof mec_search_callback2==='undefined')mec_search_callback2=settings.callback;var $event_cost_min=$("#mec_sf_event_cost_min_"+settings.id);var $event_cost_max=$("#mec_sf_event_cost_max_"+settings.id);var $time_start=$("#mec_sf_timepicker_start_"+settings.id);var $time_end=$("#mec_sf_timepicker_end_"+settings.id);var $s=$("#mec_sf_s_"+settings.id);var $address=$("#mec_sf_address_s_"+settings.id);var $date_start=$('#mec_sf_date_start_'+settings.id);var $date_end=$('#mec_sf_date_end_'+settings.id);var $event_type=$('#mec_sf_event_type_'+settings.id);var $event_type_2=$('#mec_sf_event_type_2_'+settings.id);var $attribute=$('#mec_sf_attribute_'+settings.id);var $reset=$("#mec_search_form_"+settings.id+'_reset');var last_field;trigger();$s.on('change',function(e){last_field='s';search();});$address.on('change',function(e){last_field='address';search();});$event_cost_min.on('change',function(e){last_field='cost-min';
19$event_cost_max.attr('min',$(this).val());search();});$event_cost_max.on('change',function(e){last_field='cost-max';$event_cost_min.attr('max',$(this).val());search();});if($time_start.length){var format=(($time_start.data('format')===12)?'hh:mm p':'HH:mm');$time_start.timepicker({timeFormat:format,minTime:new Date(0,0,0,0,0,0),maxTime:new Date(0,0,0,23,55,0),interval:5,dropdown:false,change:function(){last_field='time-start';search();}});$time_end.timepicker({timeFormat:format,minTime:new Date(0,0,0,0,0,0),maxTime:new Date(0,0,0,23,55,0),interval:5,dropdown:false,change:function(){last_field='time-end';search();}});}
20var $month=$("#mec_sf_month_"+settings.id);var $year=$("#mec_sf_year_"+settings.id);var $month_or_year=$("#mec_sf_month_"+settings.id+', '+"#mec_sf_year_"+settings.id);$month_or_year.on('change',function(e){last_field='date-dropdown';var mec_month_val=$month.val();var mec_year_val=$year.val();if((mec_month_val!=='none'&&mec_year_val!=='none')||((mec_month_val==='none'&&mec_year_val==='none')))search();});$date_end.on('change',function(){last_field='date-end';search();});$event_type.on('change',function(e){last_field='event-type';search();});$event_type_2.on('change',function(e){last_field='event-type-2';search();});$attribute.on('change',function(e){last_field='attribute';search();});if(settings.fields&&settings.fields.length>0){for(var k in settings.fields){$("#mec_sf_"+settings.fields[k]+'_'+settings.id).on('change',function(e){search();});}}
21if($reset.length){$reset.on('click',function(e){reset();});}
22function get_fields(){return['state','city','region','region','street','postal_code',];}
23function trigger(){$("#mec_sf_category_"+settings.id).off('change').on('change',function(e){last_field='category';search();});$("#mec_sf_location_"+settings.id).off('change').on('change',function(e){last_field='location';search();});$("#mec_sf_organizer_"+settings.id).off('change').on('change',function(e){last_field='organizer';search();});$("#mec_sf_speaker_"+settings.id).off('change').on('change',function(e){last_field='speaker';search();});$("#mec_sf_tag_"+settings.id).off('change').on('change',function(e){last_field='tag';search();});$("#mec_sf_label_"+settings.id).off('change').on('change',function(e){last_field='label';search();});var fields=get_fields();$.each(fields,function(i,field){$("#mec_sf_"+field+"_"+settings.id).off('change').on('change',function(e){last_field=field;search();});});}
24function search(){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);var s=$s.length?$s.val():'';var address=$address.length?$address.val():'';var location=$location.length?$location.val():'';var organizer=$organizer.length?$organizer.val():'';var speaker=$speaker.length?$speaker.val():'';var tag=$tag.length?$tag.val():'';var label=$label.length?$label.val():'';var month=$month.length?$month.val():'';var year=$year.length?$year.val():'';var event_type=$event_type.length?$event_type.val():'';var event_type_2=$event_type_2.length?$event_type_2.val():'';var attribute=$attribute.length?$attribute.val():'';var start=$date_start.length?$date_start.val():'';var end=$date_end.length?$date_end.val():'';var cost_min=$event_cost_min.length?$event_cost_min.val():'';var cost_max=$event_cost_max.length?$event_cost_max.val():'';var time_start=$time_start.length?$time_start.val():'';var time_end=$time_end.length?$time_end.val():'';var category;if($category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div'){category=[];$category.find($('select')).each(function(){category.push($(this).val());});category=category.join(',');}
25else category=$category.length?$category.val():'';if(year==='none'&&month==='none'){year='';month='';}
26if(!year)year='';var addation_attr='';if(settings.fields&&settings.fields.length>0){for(var k in settings.fields){var field='#mec_sf_'+settings.fields[k]+'_'+settings.id;var val=$(field).length?$(field).val():'';
26addation_attr+='&sf['+settings.fields[k]+']='+val;}}
27var sf='sf[s]='+s+'&sf[address]='+address+'&sf[cost-min]='+cost_min+'&sf[cost-max]='+cost_max+'&sf[time-start]='+time_start+'&sf[time-end]='+time_end+'&sf[month]='+month+'&sf[year]='+year+'&sf[start]='+start+'&sf[end]='+end+'&sf[category]='+category+'&sf[location]='+location+'&sf[organizer]='+organizer+'&sf[speaker]='+speaker+'&sf[tag]='+tag+'&sf[label]='+label+'&sf[event_type]='+event_type+'&sf[event_type_2]='+event_type_2+'&sf[attribute]='+attribute+addation_attr;var fields=get_fields();$.each(fields,function(i,field){if($("#mec_sf_"+field+"_"+settings.id).length){v=$("#mec_sf_"+field+"_"+settings.id).val();sf+='&sf['+field+']='+v;}});if(settings.refine)refine(sf);var atts=settings.atts+'&'+sf;if(typeof mec_search_callback1!=='undefined')mec_search_callback1(atts);if(typeof mec_search_callback2!=='undefined')mec_search_callback2(atts);}
28function reset(){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div'){$category.find($('select')).each(function(){$(this).val(null).trigger('change');});$category.find($('select')).select2();}
29else if($category.length){$category.val(null);jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select').niceSelect('update');}
30if($location.length)$location.val(null);if($organizer.length)$organizer.val(null);if($speaker.length)$speaker.val(null);if($tag.length)$tag.val(null);if($label.length)$label.val(null);if($s.length)$s.val(null);if($address.length)$address.val(null);if($month.length)$month.val(null);if($year.length)$year.val(null);if($event_cost_min.length)$event_cost_min.val(null);if($event_cost_max.length)$event_cost_max.val(null);if($date_start.length)$date_start.val(null);if($date_end.length)$date_end.val(null);if($time_start.length)$time_start.val(null);if($time_end.length)$time_end.val(null);var fields=get_fields();$.each(fields,function(i,field){if($("#mec_sf_"+field+"_"+settings.id).length){$("#mec_sf_"+field+"_"+settings.id).val(null);}});setTimeout(function(){search();},200);}
31function refine(sf){var $category=$("#mec_sf_category_"+settings.id);var $location=$("#mec_sf_location_"+settings.id);var $organizer=$("#mec_sf_organizer_"+settings.id);var $speaker=$("#mec_sf_speaker_"+settings.id);var $tag=$("#mec_sf_tag_"+settings.id);var $label=$("#mec_sf_label_"+settings.id);var category_type;if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div')category_type='checkboxes';else if($category.length)category_type='dropdown';$.ajax({url:settings.ajax_url,data:"action=mec_refine_search_items&"+sf+'&last_field='+last_field+'&category_type='+category_type+'&id='+settings.id,dataType:"json",type:"post",success:function(response){if(typeof response.categories!=='undefined'&&response.categories!==''){if($category.length&&$category.prop('tagName')&&$category.prop('tagName').toLowerCase()==='div'){$category.html(response.categories);}
32else if($category.length){$category.replaceWith(response.categories)}
33if(jQuery(".mec-searchbar-category-wrap select").length>0)jQuery(".mec-searchbar-category-wrap select").niceSelect();}
34if(typeof response.locations!=='undefined'&&response.locations!==''){$location.replaceWith(response.locations)}
35if(typeof response.organizers!=='undefined'&&response.organizers!==''){$organizer.replaceWith(response.organizers)}
36if(typeof response.speakers!=='undefined'&&response.speakers!==''){$speaker.replaceWith(response.speakers)}
37if(typeof response.labels!=='undefined'&&response.labels!==''){$label.replaceWith(response.labels)}
38if(typeof response.tags!=='undefined'&&response.tags!==''){$tag.replaceWith(response.tags)}
39trigger();},error:function(){}});}};}(jQuery));jQuery(document).ready(function($){if(jQuery(".mec-fes-form-cntt #mec-location select").length>0)jQuery(".mec-fes-form-cntt #mec-location select").select2();if(jQuery(".mec-fes-form-cntt #mec-organizer select").length>0)jQuery(".mec-fes-form-cntt #mec-organizer select").select2();if(jQuery("#mec_location_id").length>0)jQuery("#mec_location_id").select2();if(jQuery("#mec_organizer_id").length>0)jQuery("#mec_organizer_id").select2();if(jQuery(".mec-searchbar-category-wrap select").length>0)jQuery(".mec-searchbar-category-wrap select").select2();jQuery(".mec-search-form.mec-totalcal-box").find(".mec-search-reset-button").parents().eq(2).addClass("mec-there-reset-button");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-minmax-event-cost").parent().find(".mec-text-address-search").addClass("with-mec-cost");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-address-search").parent().find(".mec-minmax-event-cost").addClass("with-mec-address");
39jQuery(".mec-full-calendar-search-ends").find(".mec-text-input-search").parent().find(".mec-tab-loader").removeClass("col-md-12").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-input-search").parent().find(".mec-date-search").parent().find(".mec-text-input-search").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-text-input-search").parent().find(".mec-time-picker-search").parent().find(".mec-text-input-search").addClass("col-md-6");jQuery(".mec-full-calendar-search-ends").find(".mec-text-input-search").addClass("col-md-12").parent().find(".mec-time-picker-search").addClass("col-md-6");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-date-search").parent().find(".mec-time-picker-search").addClass("with-mec-date-search");jQuery(".mec-search-form.mec-totalcal-box").find(".mec-time-picker-search").parent().find(".mec-date-search").addClass("with-mec-time-picker");jQuery('#mec-gCalendar-wrap .openMonthFilter').on('click',function(e){jQuery(this).toggleClass('open');});jQuery('body').on('click',function(e){jQuery('#mec-gCalendar-wrap .openMonthFilter').removeClass('open');});});jQuery(window).on('load',function()
40{jQuery(".single-mec-events").find(".mejs-controls button").addClass("mejs")});(function($){$.fn.mecFullCalendar=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},skin:'',},options);setListeners();mecFluentCurrentTimePosition();mecFluentCustomScrollbar();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
41$("#mec_skin_"+settings.id+" .mec-totalcal-box .mec-totalcal-view span:not(.mec-fluent-more-views-icon):not(.mec-fluent-more-views-content)").on('click',function(e){e.preventDefault();var skin=$(this).data('skin');var mec_month_select=$('#mec_sf_month_'+settings.id);var mec_year_select=$('#mec_sf_year_'+settings.id);if(mec_year_select.val()=='none'){mec_year_select.find('option').each(function(){var option_val=$(this).val();if(option_val==mecdata.current_year)mec_year_select.val(option_val);});}
42if(mec_month_select.val()=='none'){mec_month_select.find('option').each(function(){var option_val=$(this).val();if(option_val==mecdata.current_month)mec_month_select.val(option_val);});}
43if(skin=='list'||skin=='grid'||skin=='agenda'){var mec_filter_none='<option class="mec-none-item" value="none">'+$('#mec-filter-none').val()+'</option>';if(mec_month_select.find('.mec-none-item').length==0)mec_month_select.prepend(mec_filter_none);if(mec_year_select.find('.mec-none-item').length==0)mec_year_select.prepend(mec_filter_none);}
44else{if(mec_month_select.find('.mec-none-item').length!=0)mec_month_select.find('.mec-none-item').remove();if(mec_year_select.find('.mec-none-item').length!=0)mec_year_select.find('.mec-none-item').remove();}
45$("#mec_skin_"+settings.id+" .mec-totalcal-box .mec-totalcal-view span").removeClass('mec-totalcalview-selected')
46$(this).addClass('mec-totalcalview-selected');if($(this).closest('.mec-fluent-more-views-content').length>0){$('.mec-fluent-more-views-icon').addClass('active');$('.mec-fluent-more-views-content').removeClass('active');}else{$('.mec-fluent-more-views-icon').removeClass('active');}
47loadSkin(skin);});}
48function loadSkin(skin){settings.skin=skin;if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_full_calendar_switch_skin&skin="+skin+"&"+settings.atts+"&apply_sf_date=1&sed="+settings.sed_method,dataType:"json",type:"post",success:function(response){$("#mec_full_calendar_container_"+settings.id).html(response);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFocusDay(settings);mecFluentCurrentTimePosition();mecFluentCustomScrollbar();jQuery(document).trigger('mec_load_skin_success',$("#mec_full_calendar_container_"+settings.id));},error:function(){}});}
49function search(){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_full_calendar_switch_skin&skin="+settings.skin+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(typeof response==='string'){$("#mec_full_calendar_container_"+settings.id).html(response);}
50$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFocusDay(settings);
50mec_focus_week(settings.id);mecFluentCurrentTimePosition();mecFluentCustomScrollbar();jQuery(document).trigger('mec_search_success',$("#mec_full_calendar_container_"+settings.id));},error:function(){}});}};}(jQuery));(function($){$.fn.mecYearlyView=function(options){var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',year_navigator:0,atts:'',next_year:{},sf:{},ajax_url:'',},options);mecFluentYearlyUI(settings.id,settings.year_id);if(settings.year_navigator)initYearNavigator();setListeners();$(document).on("click","#mec_skin_events_"+settings.id+" .mec-load-more-button",function(){var year=$(this).parent().parent().parent().data('year-id');loadMoreButton(year);});if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;active_year=$('.mec-yearly-view-wrap .mec-year-navigator').filter(function(){return $(this).css('display')=="block";});active_year=parseInt(active_year.find('h2').text());search(active_year);}});}
51function initYearNavigator(){$("#mec_skin_"+settings.id+" .mec-load-year").off("click").on("click",function(){var year=$(this).data("mec-year");setYear(year);});}
52function search(year){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_yearly_view_load_year&mec_year="+year+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_year=response.current_year.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-year-container" id="mec_yearly_view_year_'+settings.id+'_'+response.current_year.id+'" data-year-id="'+response.current_year.id+'">'+response.year+'</div>');$("#mec_skin_"+settings.id+" .mec-yearly-title-sec").append('<div class="mec-year-navigator" id="mec_year_navigator_'+settings.id+'_'+response.current_year.id+'">'+response.navigator+'</div>');initYearNavigator();setListeners();toggleYear(response.current_year.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentYearlyUI(settings.id,active_year);mecFluentCustomScrollbar();},error:function(){}});}
53function setYear(year,do_in_background){if(typeof do_in_background==="undefined")do_in_background=false;var year_id=year;active_year=year;if($("#mec_yearly_view_year_"+settings.id+"_"+year_id).length){toggleYear(year_id);mecFluentCustomScrollbar();}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');}
54$.ajax({url:settings.ajax_url,data:"action=mec_yearly_view_load_year&mec_year="+year+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-year-container" id="mec_yearly_view_year_'+settings.id+'_'+response.current_year.id+'" data-year-id="'+response.current_year.id+'">'+response.year+'</div>');$("#mec_skin_"+settings.id+" .mec-yearly-title-sec").append('<div class="mec-year-navigator" id="mec_year_navigator_'+settings.id+'_'+response.current_year.id+'">'+response.navigator+'</div>');initYearNavigator();setListeners();if(!do_in_background){toggleYear(response.current_year.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_year_"+settings.id).val(year);}else{$("#mec_yearly_view_year_"+settings.id+"_"+response.current_year.id).hide();$("#mec_year_navigator_"+settings.id+"_"+response.current_year.id).hide();}
55mecFluentYearlyUI(settings.id,year);if(!do_in_background){mecFluentCustomScrollbar();}},error:function(){}});}}
56function toggleYear(year_id){$("#mec_skin_"+settings.id+" .mec-year-navigator").hide();$("#mec_year_navigator_"+settings.id+"_"+year_id).show();$("#mec_skin_"+settings.id+" .mec-year-container").hide();$("#mec_yearly_view_year_"+settings.id+"_"+year_id).show();}
57var sf;function setListeners(){if(settings.sed_method!='0'){sed();}
58$("#mec_skin_"+settings.id+" .mec-has-event a").on('click',function(e){e.preventDefault();var des=$(this).attr('href');var visible=$(des).is(':visible');if(!visible){var year=$(des).parents('.mec-year-container').data('year-id');if(year){while(!visible){loadMoreButton(year);visible=$(des).is(':visible');}}}
59$('.mec-events-agenda').removeClass('mec-selected');$(des).closest('.mec-events-agenda').addClass('mec-selected');var scrollTopVal=$(des).closest('.mec-events-agenda').offset().top-35;if($(this).closest('.mec-fluent-wrap').length>0){var parent=jQuery(this).closest('.mec-fluent-wrap').find('.mec-yearly-agenda-sec');scrollTopVal=parent.scrollTop()+($(des).closest('.mec-events-agenda').offset().top-parent.offset().top);jQuery(this).closest('.mec-fluent-wrap').find('.mec-yearly-agenda-sec').getNiceScroll(0).doScrollTop(scrollTopVal-15,120);}
60else{$('html, body').animate({scrollTop:scrollTopVal},300);}});}
61function sed(){$("#mec_skin_"+settings.id+" .mec-agenda-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
62e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
63function loadMoreButton(year){var $max_count,$current_count=0;$max_count=$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-yearly-max").data('count');$current_count=$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").length;if($current_count>10){for(var i=0;i<10;i++){$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").slice(0,2).each(function(){$(this).removeClass('mec-util-hidden');});}}
64if($current_count<10&&$current_count!=0){for(var j=0;j<$current_count;j++){$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-util-hidden").slice(0,2).each(function(){$(this).removeClass('mec-util-hidden');$("#mec_yearly_view_year_"+settings.id+"_"+year+" .mec-load-more-wrap").css('display','none');});}}}};}(jQuery));(function($){$.fn.mecGeneralCalendarView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',},options);setListeners();function setListeners(){if(settings.sed_method!='0'){sed();}}
65function sed(){$("#mec_skin_"+settings.id+" .fc-daygrid-event").off('click').on('click',function(e){e.preventDefault();var sed_method=$(this).attr('target');if('_blank'===sed_method||'_self'===sed_method||'no'===sed_method){return;}
66e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecMonthlyView=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);if(settings.month_navigator)initMonthNavigator();active_month=settings.active_month.month;active_year=settings.active_month.year;setListeners();if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month);}});}
67function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off("click");$("#mec_skin_"+settings.id+" .mec-load-month").on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,false,true);});}
68function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_monthly_view_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_monthly_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-monthly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-events-side").html('<div class="mec-month-side" id="mec_month_side_'+settings.id+'_'+response.current_month.id+'">'+response.events_side+'</div>');initMonthNavigator();setListeners();toggleMonth(response.current_month.id);jQuery(document).trigger('load_calendar_data');$('.mec-modal-result').removeClass("mec-month-navigator-loading");},error:function(){}});}
69function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=false;navigator_click=navigator_click||false;var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year;}
70if($("#mec_monthly_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');}
71$.ajax({url:settings.ajax_url,data:"action=mec_monthly_view_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_monthly_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-monthly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-events-side").append('<div class="mec-month-side" id="mec_month_side_'+settings.id+'_'+response.current_month.id+'">'+response.events_side+'</div>');initMonthNavigator();setListeners();if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);}else{$("#mec_monthly_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_side_"+settings.id+"_"+response.current_month.id).hide();}
72if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').unbind('click');}}
73jQuery(document).trigger('load_calendar_data');},error:function(){}});}}
74function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_monthly_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_monthly_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_monthly_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");$("#mec_skin_"+settings.id+" .mec-month-side").hide();$("#mec_month_side_"+settings.id+"_"+month_id).show();}
75var sf;function setListeners(){$("#mec_skin_"+settings.id+" .mec-has-event").off("click");$("#mec_skin_"+settings.id+" .mec-has-event").on('click',function(e){var $this=$(this),data_mec_cell=$this.data('mec-cell'),month_i
75d=$this.data('month');if(settings.display_all==0){e.preventDefault();$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day');$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();}
76else{$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day');}});mec_tooltip();if(settings.sed_method!='0'){sed();}
77if(settings.style=='novel'){if($('.mec-single-event-novel').length>0){$('.mec-single-event-novel').colourBrightness();$('.mec-single-event-novel').each(function(){$(this).colourBrightness()});}}}
78function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a,#mec_skin_"+settings.id+" .event-single-link-novel,#mec_skin_"+settings.id+" .mec-monthly-tooltip").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
79e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
80function mec_tooltip(){if($('.mec-monthly-tooltip').length>=1){if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)>768){$('.mec-monthly-tooltip').tooltipster({theme:'tooltipster-shadow',interactive:true,delay:100,minWidth:350,maxWidth:350});if(settings.sed_method!='0'){sed();}}else{var touchtime=0;$(".mec-monthly-tooltip").on("click",function(event){event.preventDefault();if(touchtime==0){$('.mec-monthly-tooltip').tooltipster({theme:'tooltipster-shadow',interactive:true,delay:100,minWidth:350,maxWidth:350,trigger:"custom",triggerOpen:{click:true,tap:true},triggerClose:{click:true,tap:true}});touchtime=new Date().getTime();}else{if(((new Date().getTime())-touchtime)<200){var el=$(this);var link=el.attr("href");window.location=link;touchtime=0;}else{touchtime=new Date().getTime();}}});}}}};}(jQuery));(function($){$.fn.mecWeeklyView=function(options){var active_year;var active_month;var active_week;var active_week_number;var settings=$.extend({today:null,week:1,id:0,current_year:null,current_month:null,changeWeekElement:'.mec-load-week',month_navigator:0,atts:'',ajax_url:'',sf:{}},options);active_year=settings.current_year;active_month=settings.current_month;if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_week);}});}
81setThisWeek(settings.month_id+settings.week);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);function setListeners(){$(settings.changeWeekElement).off('click').on('click',function(e){var week=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-id');var max_weeks=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('max-weeks');var new_week_number=active_week_number;if($(this).hasClass('mec-previous-month')){week=parseInt(week)-1;new_week_number--;}else{week=parseInt(week)+1;new_week_number++;}
82if(new_week_number<=1||new_week_number>=max_weeks){$(this).css({'opacity':.6,'cursor':'default'});$(this).find('i').css({'opacity':.6,'cursor':'default'});}else{$('#mec_skin_'+settings.id+' .mec-load-week, #mec_skin_'+settings.id+' .mec-load-week i').css({'opacity':1,'cursor':'pointer'});}
83if(new_week_number===0||new_week_number>max_weeks){}else{setThisWeek(week);}});if(settings.sed_method!='0'){sed();}}
84function setThisWeek(week,auto_focus){if(typeof auto_focus==='undefined')auto_focus=false;if(!$('#mec_weekly_view_week_'+settings.id+'_'+week).length){return setThisWeek((parseInt(week)-1));}
85$('#mec_skin_'+settings.id+' .mec-weekly-view-week').removeClass('mec-weekly-view-week-active');$('#mec_weekly_view_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');$('#mec_weekly_view_top_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-date-events').addClass('mec-util-hidden');$('.mec-weekly-view-week-'+settings.id+'-'+week).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-calendar-row').addClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-calendar-row[data-week='+week%10+']').removeClass('mec-util-hidden');active_week=week;active_week_number=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-number');$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').find('span').remove();$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').append('<span>'+active_week_number+'</span>');if(active_week_number===1){$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').css({'opacity':.6,'cursor':'default'});$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').find('i').css({'opacity':.6,'cursor':'default'});}
86if(auto_focus)mec_focus_week(settings.id);mecFluentCustomScrollbar();}
87function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click');$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,active_week,true);});}
88function search(year,month,week,navigation_click){var week_number=(String(week).slice(-1));if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weekly_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_weekly_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id,true);mecFluentCustomScrollbar();},error:function(){}});}
89function setMonth(year,month,week,navigation_click){var month_id=''+year+month;var week_number=(String(week).slice(-1));active_month=month;active_year=year;navigation_click=navigation_click||false;if($("#mec_weekly_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);setThisWeek(''+month_id+week_number);mecFluentCustomScrollbar();}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weekly_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigation_click,dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('#mec_skin_'+settings.id+' .mec-calendar-d-top h3').after(response.topWeeks);$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_weekly_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id,true);$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);mecFluentCustomScrollbar();},error:function(){}});}}
90function toggleMonth(month_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_weekly_view_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);}
91function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
92e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecDailyView=function(options){var active_month;var active_year;var active_day;var settings=$.extend({today:null,id:0,changeDayElement:'.mec-daily-view-day',events_label:'Events',event_label:'Event',month_navigator:0,atts:'',ajax_url:'',sf:{},},options);active_month=settings.month;active_year=settings.year;active_day=settings.day;mecFluentCustomScrollbar();setToday(settings.today);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);initDaysSlider(settings.month_id);mecFocusDay(settings);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_day);}});}
93function setListeners(){$(settings.changeDayElement).on('click',function(){var today=$(this).data('day-id');setToday(today);mecFluentCustomScrollbar();});if(settings.sed_method!='0'){sed();}}
94var current_monthday;function setToday(today){if(!$('#mec_daily_view_day'+settings.id+'_'+today).length){setToday(parseInt(today)-1);return false;}
95$('.mec-daily-view-day').removeClass('mec-daily-view-day-active mec-color');$('#mec_daily_view_day'+settings.id+'_'+today).addClass('mec-daily-view-day-active mec-color');$('.mec-daily-view-date-events').addClass('mec-util-hidden');$('#mec_daily_view_date_events'+settings.id+'_'+today).removeClass('mec-util-hidden');$('.mec-daily-view-events').addClass('mec-util-hidden');$('#mec-daily-view-events'+settings.id+'_'+today).removeClass('mec-util-hidden');var weekday=$('#mec_daily_view_day'+settings.id+'_'+today).data('day-weekday');var monthday=$('#mec_daily_view_day'+settings.id+'_'+today).data('day-monthday');var count=$('#mec_daily_view_day'+settings.id+'_'+today).data('events-count');
95var month_id=$('#mec_daily_view_day'+settings.id+'_'+today).data('month-id');$('#mec_today_container'+settings.id+'_'+month_id).html('<h2>'+monthday+'</h2><h3>'+weekday+'</h3><div class="mec-today-count">'+count+' '+(count>1?settings.events_label:settings.event_label)+'</div>');if(monthday<=9)current_monthday='0'+monthday;else current_monthday=monthday;}
96function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click');$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,current_monthday,true);});}
97function initDaysSlider(month_id,day_id){mec_g_month_id=month_id;var owl_rtl=$('body').hasClass('rtl')?true:false;var owl=$("#mec-owl-calendar-d-table-"+settings.id+"-"+month_id);owl.owlCarousel({responsiveClass:true,responsive:{0:{items:owl.closest('.mec-fluent-wrap').length>0?3:2,},479:{items:4,},767:{items:7,},960:{items:14,},1000:{items:19,},1200:{items:22,}},dots:false,loop:false,rtl:owl_rtl,});$("#mec_daily_view_month_"+settings.id+"_"+month_id+" .mec-table-d-next").click(function(e){e.preventDefault();owl.trigger('next.owl.carousel');});$("#mec_daily_view_month_"+settings.id+"_"+month_id+" .mec-table-d-prev").click(function(e){e.preventDefault();owl.trigger('prev.owl.carousel');});if(typeof day_id==='undefined')day_id=$('.mec-daily-view-day-active').data('day-id');var today_str=day_id.toString().substring(6,8);var today_int=parseInt(today_str);owl.trigger('owl.goTo',[today_int]);}
98function search(year,month,day){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_daily_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_day="+day+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_daily_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-a-month.mec-clear").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();active_year=response.current_month.year;active_month=response.current_month.month;toggleMonth(response.current_month.id,''+active_year+active_month+active_day);setToday(''+active_year+active_month+active_day);mecFocusDay(settings);mecFluentCustomScrollbar();},error:function(){}});}
99function setMonth(year,month,day,navigation_click){var month_id=''+year+month;active_month=month;active_year=year;active_day=day;navigation_click=navigation_click||false;if($("#mec_daily_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);setToday(''+month_id+day);}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_daily_view_load_month&mec_year="+year+"&mec_month="+month+"&mec_day="+day+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigation_click,dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_daily_view_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-calendar-a-month.mec-clear").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id,''+year+month+'01');setToday(''+year+month+'01');$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);mecFluentCustomScrollbar();},error:function(){}});}}
100function toggleMonth(month_id,day_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_daily_view_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);initDaysSlider(month_id,day_id);mecFocusDay(settings);}
101function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
102e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecTimeTable=function(options){var active_year;var active_month;var active_week;var active_week_number;var active_day;var settings=$.extend({today:null,week:1,active_day:1,id:0,changeWeekElement:'.mec-load-week',month_navigator:0,atts:'',ajax_url:'',sf:{}},options);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month,active_week,active_day);}});}
103setThisWeek(settings.month_id+settings.week,settings.active_day);setListeners();if(settings.month_navigator)initMonthNavigator(settings.month_id);function setListeners(){$(settings.changeWeekElement).off('click').on('click',function(){var week=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-id');var max_weeks=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('max-weeks');var new_week_number=active_week_number;if($(this).hasClass('mec-previous-month')){week=parseInt(week)-1;new_week_number--;}else{week=parseInt(week)+1;new_week_number++;}
104if(new_week_number<=1||new_week_number>=max_weeks){$(this).css({'opacity':.6,'cursor':'default'});$(this).find('i').css({'opacity':.6,'cursor':'default'});}else{$('#mec_skin_'+settings.id+' .mec-load-week, #mec_skin_'+settings.id+' .mec-load-week i').css({'opacity':1,'cursor':'pointer'});}
105if(new_week_number===0||new_week_number>max_weeks){}else{setThisWeek(week);}});$('#mec_skin_'+settings.id+' .mec-weekly-view-week dt').not('.mec-timetable-has-no-event').off('click').on('click',function(){var day=$(this).data('date-id');setDay(day);});if(settings.sed_method!='0'){sed();}}
106function setThisWeek(week,day){if(!$('#mec_weekly_view_week_'+settings.id+'_'+week).length){return setThisWeek((parseInt(week)-1),day);}
107$('#mec_skin_'+settings.id+' .mec-weekly-view-week').removeClass('mec-weekly-view-week-active');$('#mec_weekly_view_week_'+settings.id+'_'+week).addClass('mec-weekly-view-week-active');setDay(day);active_week=week;active_week_number=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active').data('week-number');$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').find('span').remove();$('#mec_skin_'+settings.id+' .mec-calendar-d-top').find('.mec-current-week').append('<span>'+active_week_number+'</span>');if(active_week_number===1){$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').css({'opacity':.6,'cursor':'default'});$('#mec_skin_'+settings.id+' .mec-previous-month.mec-load-week').find('i').css({'opacity':.6,'cursor':'default'});}}
108function setDay(day){if(typeof day==='undefined'){day=$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active dt').not('.mec-timetable-has-no-event').first().data('date-id');}
109$('#mec_skin_'+settings.id+' dt').removeClass('mec-timetable-day-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-week-active dt[data-date-id="'+day+'"]').addClass('mec-timetable-day-active');$('#mec_skin_'+settings.id+' .mec-weekly-view-date-events').addClass('mec-util-hidden');$('.mec_weekly_view_date_events'+settings.id+'_'+day).removeClass('mec-util-hidden').show();}
110function initMonthNavigator(month_id){$('#mec_month_navigator'+settings.id+'_'+month_id+' .mec-load-month').off('click').on('click',function(){var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month,active_week);});}
111function search(year,month,week){var week_number=(String(week).slice(-1));if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');year=typeof year=='undefined'?'':year;month=typeof month=='undefined'?'':month;$('body').data('currentweek',$("#mec_skin_events_"+settings.id).find('.mec-current-week > span').html());$.ajax({url:settings.ajax_url,data:"action=mec_timetable_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_timetable_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id);
111mec_focus_week(settings.id,'timetable');mecFluentCustomScrollbar();},error:function(){}});}
112function setMonth(year,month,week){var month_id=''+year+month;var week_number=(String(week).slice(-1));active_month=month;active_year=year;if($("#mec_timetable_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);setThisWeek(''+month_id+week_number);}else{if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_timetable_load_month&mec_year="+year+"&mec_month="+month+"&mec_week="+week_number+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_timetable_month_'+settings.id+'_'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-weekly-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');setListeners();toggleMonth(response.current_month.id);setThisWeek(response.week_id);$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);},error:function(){}});}}
113function toggleMonth(month_id){$('#mec_skin_'+settings.id+' .mec-month-container').addClass('mec-util-hidden');$('#mec_timetable_month_'+settings.id+'_'+month_id).removeClass('mec-util-hidden');$('#mec_skin_'+settings.id+' .mec-month-navigator').addClass('mec-util-hidden');$('#mec_month_navigator'+settings.id+'_'+month_id).removeClass('mec-util-hidden');if(settings.month_navigator)initMonthNavigator(month_id);}
114function sed(){$("#mec_skin_"+settings.id+" .mec-timetable-event-title a").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecWeeklyProgram=function(options){var settings=$.extend({id:0,atts:'',sf:{}},options);if(settings.sf.container!==''){$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
115setListeners();function setListeners(){if(settings.sed_method!='0'){sed();}}
116function search(){var $modal=$('.mec-modal-result');if($modal.length===0)$('.mec-wrap').append('<div class="mec-modal-result"></div>');$modal.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_weeklyprogram_load&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){$modal.removeClass("mec-month-navigator-loading");$("#mec_skin_events_"+settings.id).html(response.date_events);setListeners();},error:function(){}});}
117function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
118e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecMasonryView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',},options);setListeners();initMasonry();if(typeof custom_dev!==undefined)var custom_dev;if(custom_dev=='yes'){$(".mec-wrap").css("height","1550");if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<768){$(".mec-wrap").css("height","5500");}
119if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<480){$(".mec-wrap").css("height","5000");}
120$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","none");$(".mec-load-more-button").on("click",function(){$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","block");$(".mec-wrap").css("height","auto");initMasonry();$(".mec-load-more-button").hide();})
121$(".mec-events-masonry-cats a:first-child").on("click",function(){$(".mec-wrap").css("height","auto");$(".mec-event-masonry .mec-masonry-item-wrap:nth-child(n+20)").css("display","block");$(".mec-load-more-button").hide();initMasonry();})
122$(".mec-events-masonry-cats a:not(:first-child)").on("click",function(){$(".mec-load-more-button").hide();$(".mec-wrap").css("height","auto");$(".mec-wrap").css("min-height","400");$(".mec-event-masonry .mec-masonry-item-wrap").css("display","block");var element=document.querySelector("#mec_skin_"+settings.id+" .mec-event-masonry");var selector=$(this).attr('data-group');var CustomShuffle=new Shuffle(element,{itemSelector:'.mec-masonry-item-wrap',});CustomShuffle.sort({by:element.getAttribute('data-created'),});CustomShuffle.filter(selector!='*'?selector:Shuffle.ALL_ITEMS);$(".mec-event-masonry .mec-masonry-item-wrap").css("visibility","visible");})}
123if(mecdata.elementor_edit_mode!='no')elementorFrontend.hooks.addAction('frontend/element_ready/global',initMasonry());function initMasonry(){var $container=$("#mec_skin_"+settings.id+" .mec-event-masonry");var data_sortAscending=$("#mec_skin_"+settings.id).data('sortascending');$container.imagesLoaded(function(){var $grid=$container.isotope({filter:'*',itemSelector:'.mec-masonry-item-wrap',getSortData:{date:'[data-sort-masonry]',},sortBy:'date',sortAscending:data_sortAscending,animationOptions:{duration:750,easing:'linear',queue:false},});
123if(settings.fit_to_row==1)$grid.isotope({layoutMode:'fitRows',sortAscending:data_sortAscending,});$('.elementor-tabs').find('.elementor-tab-title').click(function(){$grid.isotope({sortBy:'date',sortAscending:data_sortAscending,});});})
124$("#mec_skin_"+settings.id+" .mec-events-masonry-cats a").click(function(){var selector=$(this).attr('data-filter');var $grid_cat=$container.isotope({filter:selector,itemSelector:'.mec-masonry-item-wrap',getSortData:{date:'[data-sort-masonry]',},sortBy:'date',sortAscending:data_sortAscending,animationOptions:{duration:750,easing:'linear',queue:false},});if(settings.masonry_like_grid==1)$grid_cat.isotope({sortBy:'date',sortAscending:data_sortAscending,});return false;});var $optionSets=$("#mec_skin_"+settings.id+" .mec-events-masonry-cats"),$optionLinks=$optionSets.find('a');$optionLinks.click(function(){var $this=$(this);if($this.hasClass('selected'))return false;var $optionSet=$this.parents('.mec-events-masonry-cats');$optionSet.find('.mec-masonry-cat-selected').removeClass('mec-masonry-cat-selected');$this.addClass('mec-masonry-cat-selected');});}
125function setListeners(){if(settings.sed_method!='0'){sed();}}
126$("#mec_skin_"+settings.id+" .mec-events-masonry-cats > a").click(function(){var mec_load_more_btn=$("#mec_skin_"+settings.id+" .mec-load-more-button");var mec_filter_value=$(this).data('filter').replace('.mec-t','');if(mec_load_more_btn.hasClass('mec-load-more-loading'))mec_load_more_btn.removeClass('mec-load-more-loading');if(mec_load_more_btn.hasClass("mec-hidden-"+mec_filter_value))mec_load_more_btn.addClass("mec-util-hidden");else mec_load_more_btn.removeClass("mec-util-hidden");});$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});function sed(){$("#mec_skin_"+settings.id+" .mec-masonry-img a, #mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
127e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
128function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");var mec_cat_elem=$('#mec_skin_'+settings.id).find('.mec-masonry-cat-selected');var mec_filter_value=(mec_cat_elem&&mec_cat_elem.data('filter')!=undefined)?mec_cat_elem.data('filter').replace('.mec-t',''):'';var mec_filter_by=$('#mec_skin_'+settings.id).data('filterby');$.ajax({url:settings.ajax_url,data:"action=mec_masonry_load_more&mec_filter_by="+mec_filter_by+"&mec_filter_value="+mec_filter_value+"&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden mec-hidden-"+mec_filter_value);}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");var node=$("#mec_skin_"+settings.id+" .mec-event-masonry");var markup='',newItems=$(response.html).find('.mec-masonry-item-wrap');newItems.each(function(index){node.isotope().append(newItems[index]).isotope('appended',newItems[index]);});$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}};}(jQuery));(function($){$.fn.mecListView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},current_month_divider:'',end_date:'',offset:0,limit:0},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
129$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});if(settings.style==='accordion'){if(settings.toggle_month_divider){$('#mec_skin_'+settings.id+' .mec-month-divider:first-of-type').addClass('active');$('#mec_skin_'+settings.id+' .mec-month-divider:first-of-type').find('i').removeClass('mec-sl-arrow-down').addClass('mec-sl-arrow-up');
129toggle();}
130accordion();}
131if(settings.sed_method!='0'){sed();}}
132function toggle(){$('#mec_skin_'+settings.id+' .mec-month-divider').off("click").on("click",function(event){event.preventDefault();var status=$(this).hasClass('active');$('#mec_skin_'+settings.id+' .mec-month-divider').removeClass('active');$('#mec_skin_'+settings.id+' .mec-divider-toggle').slideUp('fast');if(status){$(this).removeClass('active');$('.mec-month-divider').find('i').removeClass('mec-sl-arrow-up').addClass('mec-sl-arrow-down');}else{$(this).addClass('active');$('.mec-month-divider').find('i').removeClass('mec-sl-arrow-up').addClass('mec-sl-arrow-down')
133$(this).find('i').removeClass('mec-sl-arrow-down').addClass('mec-sl-arrow-up');var month=$(this).data('toggle-divider');$('#mec_skin_'+settings.id+' .'+month).slideDown('fast');}});}
134function toggleLoadmore(){$('#mec_skin_'+settings.id+' .mec-month-divider:not(:last)').each(function(){if($(this).hasClass('active'))$(this).removeClass('active');var month=$(this).data('toggle-divider');$('#mec_skin_'+settings.id+' .'+month).slideUp('fast');});$('#mec_skin_'+settings.id+' .mec-month-divider:last').addClass('active');toggle();}
135function accordion(){$("#mec_skin_"+settings.id+" .mec-toggle-item-inner").off("click").on("click",function(event){event.preventDefault();var $this=$(this);$(this).parent().find(".mec-content-toggle").slideToggle("fast",function(){$this.children("i").toggleClass("mec-sl-arrow-down mec-sl-arrow-up");});var unique_id=$(this).parent().find(".mec-modal-wrap").data('unique-id');window['mec_init_gmap'+unique_id]();});}
136function sed(){$("#mec_skin_"+settings.id+" .mec-event-title > a, #mec_skin_"+settings.id+" .mec-booking-button, #mec_skin_"+settings.id+" .mec-detail-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
137function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=='0'){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed();}
138if(settings.style==='accordion'){if(settings.toggle_month_divider)toggleLoadmore();accordion();}}},error:function(){}});}
139function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');jQuery("#gmap-data").val("");$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_start_date="+sett
139ings.start_date+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_events_"+settings.id).html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden");}else{$("#mec_skin_events_"+settings.id).html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed();}
140if(settings.style==='accordion'){if(settings.toggle_month_divider)toggle();accordion();}}},error:function(){}});}};}(jQuery));(function($){$.fn.mecGridView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
141$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});if(settings.sed_method!='0'){sed();}}
142function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
143function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}
144function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');jQuery("#gmap-data").val("");$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_events_"+settings.id).html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden");}else{$("#mec_skin_events_"+settings.id).html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}};}(jQuery));(function($){$.fn.mecCustomView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
145$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});if(settings.sed_method!='0'){sed();}}
146function sed(){$("#mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
147function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_custom_load_more&mec_start_date="+sett
147ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");var html=$(response.html);if($('.mec-month-divider',html).length){var df=$('.mec-month-divider:first',html).data('toggle-divider');var dl=$("#mec_skin_events_"+settings.id+" .mec-month-divider:last").data('toggle-divider');if(df==dl){$(html).find('.mec-month-divider:first').remove();response.html=html;}}
148$("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if($('.mec-event-sd-countdown').length>0){$('.mec-event-sd-countdown').each(function(event){var dc=$(this).attr('data-date-custom');$(this).mecCountDown({date:dc,format:"off"},function(){});})}
149if(settings.sed_method!='0'){sed();}}},error:function(){}});}
150function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');jQuery("#gmap-data").val("");$.ajax({url:settings.ajax_url,data:"action=mec_custom_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_events_"+settings.id).html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden");}else{$("#mec_skin_events_"+settings.id).html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}};}(jQuery));(function($){$.fn.mecTimelineView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},end_date:'',offset:0,start_date:'',},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
151$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});if(settings.sed_method!='0'){sed();}}
152function sed(){$("#mec_skin_"+settings.id+" .mec-timeline-event-image a, #mec_skin_"+settings.id+" .mec-event-title a, #mec_skin_"+settings.id+" .mec-booking-button").off('click').on('click',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});$("#mec_skin_"+settings.id+" .mec-event-image a img").off('click').on('click',function(e){e.preventDefault();var href=$(this).parent().attr('href');var id=$(this).parent().data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
153function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_timeline_load_more&mec_start_date="+sett
153ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_events_"+settings.id).append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}
154function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_timeline_load_more&mec_start_date="+settings.start_date+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_events_"+settings.id).html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').addClass("mec-util-hidden");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden");}else{$("#mec_skin_events_"+settings.id).html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$('.mec-skin-map-container').removeClass("mec-util-hidden");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;if(settings.sed_method!='0'){sed();}}},error:function(){}});}};}(jQuery));(function($){$.fn.mecAgendaView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},current_month_divider:'',end_date:'',offset:0,},options);setListeners();var sf;function setListeners(){if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search();}});}
155$("#mec_skin_"+settings.id+" .mec-load-more-button").on("click",function(){loadMore();});if(settings.sed_method!='0'){sed();}}
156function sed(){$("#mec_skin_"+settings.id+" .mec-agenda-event-title a").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
157e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
158function loadMore(){$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_agenda_load_more&mec_start_date="+settings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");}else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").append(response.html);$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed();}
159mecFluentCustomScrollbar();}},error:function(){}});}
160function search(){$("#mec_skin_no_events_"+settings.id).addClass("mec-util-hidden");if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');mecFluentCustomScrollbar();$.ajax({url:settings.ajax_url,data:"action=mec_agenda_load_more&mec_start_date="+sett
160ings.start_date+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(response.count=="0"){$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").html('');$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");$("#mec_skin_no_events_"+settings.id).removeClass("mec-util-hidden");}else{$("#mec_skin_events_"+settings.id+" .mec-events-agenda-container").html(response.html);$('.mec-modal-result').removeClass("mec-month-navigator-loading");if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed();}}
161mecFluentCustomScrollbar();},error:function(){}});}};}(jQuery));(function($){$.fn.mecCarouselView=function(options){var settings=$.extend({id:0,atts:'',ajax_url:'',sf:{},items:3,items_mobile:1,items_tablet:2,loop:true,autoplay_status:true,autoplay:'',style:'type1',start_date:''},options);initSlider(settings);if(settings.sed_method!='0'){sed(settings);}
162function initSlider(settings){if($('body').hasClass('rtl')){var owl_rtl=true;}else{var owl_rtl=false;}
163if(settings.style==='type1'){var owl=$("#mec_skin_"+settings.id+" .mec-event-carousel-type1 .mec-owl-carousel");owl.owlCarousel({autoplay:settings.autoplay_status,autoplayTimeout:settings.autoplay,loop:settings.loop,items:settings.items,dots:true,nav:false,autoplayHoverPause:true,rtl:owl_rtl,responsiveClass:true,responsive:{0:{items:settings.items_mobile,},979:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){owl.bind("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay');});}}else if(settings.style==='type4'){$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:settings.autoplay_status,loop:settings.loop,autoplayTimeout:settings.autoplay,items:settings.items,dots:false,nav:true,autoplayHoverPause:true,navText:["<i class='mec-sl-arrow-left'></i>"," <i class='mec-sl-arrow-right'></i>"],rtl:owl_rtl,responsiveClass:true,responsive:{0:{items:settings.items_mobile,stagePadding:50,},979:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){$("#mec_skin_"+settings.id+" .mec-owl-carousel").bind("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay');});}}else{$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:settings.autoplay_status,loop:settings.loop,autoplayTimeout:settings.autoplay,items:settings.items,dots:typeof settings.dots_navigation!='undefined'?settings.dots_navigation:false,nav:typeof settings.navigation!='undefined'?settings.navigation:true,autoplayHoverPause:true,navText:typeof settings.navText!='undefined'?settings.navText:["<i class='mec-sl-arrow-left'></i>"," <i class='mec-sl-arrow-right'></i>"],rtl:owl_rtl,responsiveClass:true,responsive:{0:{items:settings.items_mobile,},979:{items:settings.items_tablet,},1199:{items:settings.items,}},});if(settings.autoplay_status){$("#mec_skin_"+settings.id+" .mec-owl-carousel").bind("mouseleave",function(event){$("#mec_skin_"+settings.id+" .mec-owl-carousel").trigger('play.owl.autoplay');});}}}};function sed(settings){$("#mec_skin_"+settings.id+" .mec-event-carousel-title a, #mec_skin_"+settings.id+" .mec-event-image a, #mec_skin_"+settings.id+" .mec-booking-button, #mec_skin_"+settings.id+" .mec-event-button").off('click').on('click',function(e){var sed_method=$(this).attr('target');if('_blank'===sed_method){return;}
164e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}}(jQuery));(function($){$.fn.mecSliderView=function(options){var settings=$.extend({id:0,atts:'',transition_time:250,autoplay:false,ajax_url:'',sf:{},start_date:''},options);var rtl=false;initSlider();
164function initSlider(){if($('body').hasClass('rtl'))rtl=true;$("#mec_skin_"+settings.id+" .mec-owl-carousel").owlCarousel({autoplay:true,smartSpeed:settings.transition_time,autoplayTimeout:settings.autoplay,loop:true,items:1,responsiveClass:true,responsive:{0:{items:1,},960:{items:1,},1200:{items:1,}},dots:false,nav:true,autoplayHoverPause:true,navText:typeof settings.navText!='undefined'?settings.navText:["<i class='mec-sl-arrow-left'></i>"," <i class='mec-sl-arrow-right'></i>"],rtl:rtl,});}};}(jQuery));(function($){$.fn.mecCountDown=function(options,callBack){var settings=$.extend({date:null,format:null},options);var callback=callBack;var selector=$(this);startCountdown();var interval=setInterval(startCountdown,1000);function startCountdown(){var eventDate=Date.parse(settings.date)/1000;var currentDate=Math.floor($.now()/1000);if(eventDate<=currentDate){callback.call(this);clearInterval(interval);}
165var seconds=eventDate-currentDate;var days=Math.floor(seconds/(60*60*24));seconds-=days*60*60*24;var hours=Math.floor(seconds/(60*60));seconds-=hours*60*60;var minutes=Math.floor(seconds/60);seconds-=minutes*60;if(days==1)selector.find(".mec-timeRefDays").text(mecdata.day);else selector.find(".mec-timeRefDays").text(mecdata.days);if(hours==1)selector.find(".mec-timeRefHours").text(mecdata.hour);else selector.find(".mec-timeRefHours").text(mecdata.hours);if(minutes==1)selector.find(".mec-timeRefMinutes").text(mecdata.minute);else selector.find(".mec-timeRefMinutes").text(mecdata.minutes);if(seconds==1)selector.find(".mec-timeRefSeconds").text(mecdata.second);else selector.find(".mec-timeRefSeconds").text(mecdata.seconds);if(settings.format==="on"){days=(String(days).length>=2)?days:"0"+days;hours=(String(hours).length>=2)?hours:"0"+hours;minutes=(String(minutes).length>=2)?minutes:"0"+minutes;seconds=(String(seconds).length>=2)?seconds:"0"+seconds;}
166if(!isNaN(eventDate)){selector.find(".mec-days").text(days);selector.find(".mec-hours").text(hours);selector.find(".mec-minutes").text(minutes);selector.find(".mec-seconds").text(seconds);}else{clearInterval(interval);}}};}(jQuery));(function($){$.fn.mecTileView=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:''},options);if(settings.month_navigator)initMonthNavigator();if(settings.load_method==='month')setMonth(settings.next_month.year,settings.next_month.month,true);active_month=settings.active_month.month;active_year=settings.active_month.year;setListeners();if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month);}});}
167function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off("click").on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,false,true);});}
168function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){if(settings.load_method==='month'){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_tile_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-tile-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();setListeners();toggleMonth(response.current_month.id);}
169else{$("#mec_skin_events_"+settings.id).html(response.html);
169if(response.count>=settings.limit)$("#mec_skin_"+settings.id+" .mec-load-more-button").removeClass("mec-util-hidden");else $("#mec_skin_"+settings.id+" .mec-load-more-button").addClass("mec-util-hidden");settings.end_date=response.end_date;settings.offset=response.offset;setListeners();}
170$('.mec-modal-result').removeClass("mec-month-navigator-loading");},error:function(){}});}
171function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=false;navigator_click=navigator_click||false;var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year;}
172if($("#mec_tile_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);}
173else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');}
174$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_tile_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-tile-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();setListeners();if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);}
175else{$("#mec_tile_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide();}},error:function(){}});}}
176function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_tile_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide().removeClass("mec-month-container-selected");$("#mec_tile_month_"+settings.id+"_"+month_id).show().addClass("mec-month-container-selected");}
177var sf;function setListeners(){$("#mec_skin_"+settings.id+" .mec-load-more-button").off("click").on("click",function(){loadMore();});$("#mec_skin_"+settings.id+" article").off("click").on("click",function(e){if(e.target.nodeName.toLowerCase()==='a')return;var href=$(this).data('href');if(!href)return;var target=$(this).data('target');if(target==='blank')window.open(href,'_blank');else if(target!=='m1')document.location.href=href;});$("#mec_skin_"+settings.id+" .mec-has-event").off("click").on('click',function(e){e.preventDefault();var $this=$(this),data_mec_cell=$this.data('mec-cell'),month_id=$this.data('month');$("#mec_monthly_view_month_"+settings.id+"_"+month_id+" .mec-calendar-day").removeClass('mec-selected-day');$this.addClass('mec-selected-day');$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_month_side_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec:not([data-mec-cell='+data_mec_cell+'])').slideUp();$('#mec_monthly_view_month_'+settings.id+'_'+month_id+' .mec-calendar-events-sec[data-mec-cell='+data_mec_cell+']').slideDown();});if(settings.sed_method!='0'){sed();}}
178function sed(){$("#mec_skin_"+settings.id+" .mec-event-content").off('click').on('click',function(e){var sed_method=$(this).parent().data('target');if('_blank'===sed_method){return;}
179e.preventDefault();var href=$(this).parent().data('href');var id=$(this).find('.mec-event-title a').data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}
180function loadMore(){var $load_more_button=$("#mec_skin_"+settings.id+" .mec-load-more-button");$load_more_button.addClass("mec-load-more-loading");$.ajax({url:settings.ajax_url,data:"action=mec_tile_load_more&mec_start_date="+sett
180ings.end_date+"&mec_offset="+settings.offset+"&"+settings.atts+"&current_month_divider="+settings.current_month_divider+"&apply_sf_date=0",dataType:"json",type:"post",success:function(response){if(response.count=='0'){$load_more_button.removeClass("mec-load-more-loading");$load_more_button.addClass("mec-util-hidden");}
181else{if(typeof response.has_more_event==='undefined'||(typeof response.has_more_event!=='undefined'&&response.has_more_event))$load_more_button.removeClass("mec-util-hidden");else $load_more_button.addClass("mec-util-hidden");$("#mec_skin_events_"+settings.id).append(response.html);$load_more_button.removeClass("mec-load-more-loading");settings.end_date=response.end_date;settings.offset=response.offset;settings.current_month_divider=response.current_month_divider;if(settings.sed_method!='0'){sed();}}},error:function(){}});}};}(jQuery));function mec_gateway_selected(gateway_id){jQuery('.mec-book-form-gateway-checkout').addClass('mec-util-hidden');jQuery('#mec_book_form_gateway_checkout'+gateway_id).removeClass('mec-util-hidden');}
182function mec_wrap_resize(){var $mec_wrap=jQuery('.mec-wrap'),mec_width=$mec_wrap.width();if(mec_width<959){$mec_wrap.addClass('mec-sm959');}else{$mec_wrap.removeClass('mec-sm959');}}
183function get_parameter_by_name(name,url){if(!url){url=window.location.href;}
184name=name.replace(/[\[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return'';return decodeURIComponent(results[2].replace(/\+/g," "));}
185var mec_g_month_id=null;function mecFocusDay(settings){if(mec_g_month_id!=null){setTimeout(function(){var id=settings.id,date=new Date(),mec_owl_year=mec_g_month_id.substr(0,4),mec_current_year=date.getFullYear(),mec_owl_month=mec_g_month_id.substr(4,6),mec_current_month=date.getMonth()+1,mec_current_day=date.getDate(),mec_owl_go=jQuery("#mec-owl-calendar-d-table-"+id+"-"+mec_g_month_id),mec_day_exist=false;mec_owl_go.find('.owl-stage > div').each(function(index){if(parseInt(jQuery(this).children('div').data("events-count"))>0){if((((mec_owl_year!=mec_current_year)&&(mec_owl_month!=mec_current_month))||(mec_owl_year==mec_current_year)&&(mec_owl_month!=mec_current_month))||parseInt(jQuery(this).children('div').text())>mec_current_day){var index_plus=index+1;jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+(index<10?'0'+index_plus:index_plus)).trigger('click');mec_owl_go.trigger('to.owl.carousel',index_plus);mec_day_exist=true;return false;}
186else{jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+mec_current_day).trigger('click');mec_owl_go.trigger('to.owl.carousel',mec_current_day);mec_day_exist=true;return false;}}});if(!mec_day_exist&&((mec_owl_year==mec_current_year)&&(mec_owl_month==mec_current_month))){
186jQuery('#mec_daily_view_day'+id+'_'+mec_g_month_id+mec_current_day).trigger('click');mec_owl_go.trigger('to.owl.carousel',mec_current_day);}},1000);}}
187function mec_focus_week(id,skin){skin=skin||'weekly';var wrap_elem=jQuery('.mec-weeks-container .mec-weekly-view-week-active').parent();var days=wrap_elem.find('dt');var week=wrap_elem.find('dl').length;var focus_week=false;var i=j=1;for(i=1;i<week;i++){setTimeout(function(){var event=new Event('click');jQuery('#mec_skin_'+id+' .mec-previous-month.mec-load-week')[0].dispatchEvent(event);},33);}
188days.each(function(i){if(jQuery(this).data('events-count')>0){if(focus_week===false){focus_week=parseInt(jQuery(this).parent().data('week-number'));}
189if(skin=='timetable'){if(parseInt(jQuery(this).parent().data('week-number'))==parseInt(jQuery('body').data('currentweek'))){focus_week=parseInt(jQuery(this).parent().data('week-number'));return false;}}
190else{return false;}}});if(focus_week!==false){for(j=1;j<focus_week;j++){setTimeout(function(){var event=new Event('click');jQuery('#mec_skin_'+id+' .mec-next-month.mec-load-week')[0].dispatchEvent(event);},33);}}}
191(function($){$(document).ready(function(){if($('body').hasClass('rtl')){var owl_rtl=true;}else{var owl_rtl=false;}
192$(".mec-widget .mec-event-grid-classic").each(function(){var loop_status=$(this).data('widget-loop');if(typeof loop_status==='undefined')loop_status=1;var autoplay_status=$(this).data('widget-autoplay');if(typeof autoplay_status==='undefined')autoplay_status=1;var autoplay_time=$(this).data('widget-autoplay-time');if(typeof autoplay_time==='undefined')autoplay_time=3000;$(this).addClass('mec-owl-carousel mec-owl-theme');$(this).owlCarousel({autoplay:(autoplay_status?true:false),autoplayTimeout:autoplay_time,autoplayHoverPause:true,loop:(loop_status?true:false),dots:false,nav:true,navText:["<i class='mec-sl-arrow-left'></i>"," <i class='mec-sl-arrow-right'></i>"],items:1,autoHeight:true,responsiveClass:true,rtl:owl_rtl,});});mec_wrap_resize();jQuery(window).bind('resize',function(){mec_wrap_resize();});$('.mec-event-sharing-wrap').hover(function(){$(this).find('.mec-event-sharing').show(0);},function(){$(this).find('.mec-event-sharing').hide(0);});$('a.simple-booking[href^="#mec-events-meta-group-booking"]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+this.hash.slice(1)+']');if(target.length){var scrollTopVal=target.offset().top-30;$('html, body').animate({scrollTop:scrollTopVal},600);return false;}}});if($('.single-mec-events .mec-single-event:not(".mec-single-modern")').length>0){if($('.single-mec-events .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox').length>0){var html=$('.single-mec-events .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox')[0].outerHTML;if(Math.max(document.documentElement.clientWidth,window.innerWidth||0)<960){$('.single-mec-events .col-md-4 .mec-event-info-desktop.mec-event-meta.mec-color-before.mec-frontbox').remove();$('.single-mec-events .mec-event-info-mobile').html(html)}}}});})(jQuery);(function($){function convertToC(value){return Math.round(((parseFloat(value)-32)*5/9));}
193function convertToF(value){return Math.round(((1.8*parseFloat(value))+32));}
194function MPHToKPH(value){return Math.round(1.609344*parseFloat(value));}
195function KPHToMPH(value){return Math.round((0.6214*parseFloat(value)));}
196$(document).ready(function($){var degree=$('.mec-weather-summary-temp');var weather_extra=$('.mec-weather-extras');var wind=weather_extra.children('.mec-weather-wind');var visibility=weather_extra.children('.mec-weather-visibility');var feelslike=weather_extra.children('.mec-weather-feels-like');$('.degrees-mode').on('click',function(){var degree_mode=degree.children('var').text().trim();var wind_text=wind.text().substring(5);var visibility_text=visibility.text().substring(11);var feelslike_text=feelslike.text().substring(12);if(degree_mode==degree.data('c').trim()){degree.html(convertToF(parseInt(degree.text()))+' <var>'+degree.data('f')+'</var>');feelslike.html('<span>Feels Like:</span> '+convertToF(parseInt(feelslike_text))+' <var>'+feelslike.data('f')+'</var>');
196wind.html('<span>Wind:</span> '+KPHToMPH(parseInt(wind_text))+'<var>'+wind.data('mph')+'</var>');visibility.html('<span>Visibility:</span> '+KPHToMPH(parseInt(visibility_text))+'<var>'+visibility.data('mph')+'</var>');$(this).text($(this).data('metric'));}
197else if(degree_mode==degree.data('f').trim()){degree.html(convertToC(parseInt(degree.text()))+' <var>'+degree.data('c')+'</var>');feelslike.html('<span>Feels Like:</span> '+convertToC(parseInt(feelslike_text))+' <var>'+feelslike.data('c')+'</var>');wind.html('<span>Wind:</span> '+MPHToKPH(parseInt(wind_text))+'<var>'+wind.data('kph')+'</var>');visibility.html('<span>Visibility:</span> '+MPHToKPH(parseInt(visibility_text))+'<var>'+visibility.data('kph')+'</var>');$(this).text($(this).data('imperial'));}});$('a').on('click',function(){});$('#mec_add_speaker_button').on('click',function(){var $this=this;var content=$($this).parent().find('input');var list=$('#mec-fes-speakers-list');var key=list.find('.mec-error').length;$($this).prop("disabled",true).css('cursor','wait');$.post(ajaxurl,{action:"speaker_adding",content:content.val(),key:key}).done(function(data){if($(data).hasClass('mec-error')){list.prepend(data);setTimeout(function(){$('#mec-speaker-error-${key}').remove();},1500);}else{list.html(data);content.val('');}
198$($this).prop("disabled",false).css('cursor','pointer');});});var owl_rtl=$('body').hasClass('rtl')?true:false;var fes_export_list=$('.mec-export-list-wrapper');fes_export_list.find('.mec-export-list-item').click(function(){$('.mec-export-list-item').removeClass('fes-export-date-active');$(this).addClass('fes-export-date-active');});var mec_bd_attendees_modules=$('.mec-attendees-list-details > ul > li');mec_bd_attendees_modules.click(function(){$(this).find('.mec-attendees-toggle').toggle();});$('.mec-event-export-csv, .mec-event-export-excel').click(function(){var mec_event_id=$(this).parent().parent().data('event-id');var time=$(this).parent().parent().find($('.fes-export-date-active')).data('time');if(typeof time==='undefined')time=0;var type=$(this).hasClass('mec-event-export-excel')?'ms-excel':'csv';var url=mecdata.ajax_url+"?action=mec_fes_csv_export&fes_nonce="+mecdata.fes_nonce+"&mec_event_id="+mec_event_id+"&timestamp="+time+"&type="+type;window.location=url;});});})(jQuery);function mec_book_form_submit(event,unique_id){event.preventDefault();window["mec_book_form_submit"+unique_id]();}
199function mec_book_form_back_btn_cache(context,unique_id){var id=jQuery(context).attr('id');var mec_form_data=jQuery('#mec_book_form'+unique_id).serializeArray();if(id=="mec-book-form-btn-step-1")jQuery('body').data('mec-book-form-step-1',jQuery('#mec_booking'+unique_id).html()).data('unique-id',unique_id).data('mec-book-form-data-step-1',mec_form_data);else if(id=="mec-book-form-btn-step-2")jQuery('body').data('mec-book-form-step-2',jQuery('#mec_booking'+unique_id).html()).data('mec-book-form-data-step-2',mec_form_data);}
200function mec_agreement_change(context){var status=jQuery(context).is(":checked");if(status)jQuery(context).prop("checked","checked");else jQuery(context).removeProp("checked");}
201function mec_book_form_back_btn_click(context,unique_id){var id=jQuery(context).attr('id');unique_id=jQuery('body').data('unique-id');jQuery('#mec_booking_message'+unique_id).hide();if(id=="mec-book-form-back-btn-step-2"){var mec_form_data_step_1=jQuery('body').data('mec-book-form-data-step-1');console.log(mec_form_data_step_1);jQuery('#mec_booking'+unique_id).html(jQuery('body').data('mec-book-form-step-1'));jQuery.each(mec_form_data_step_1,function(index,object_item)
202{if(object_item.name==='book[date][]')
203{jQuery('[value="'+object_item.value+'"]').prop('checked',true);}
204else jQuery('[name="'+object_item.name+'"]').val(object_item.value);});var recaptcha_check=jQuery('#mec_booking'+unique_id).find('#g-recaptcha').length;if(recaptcha_check!=0){jQuery('#g-recaptcha').html('');grecaptcha.render("g-recaptcha",{sitekey:mecdata.recapcha_key});}
205var event_id=jQuery('input[name="event_id"]').val();var date=jQuery('#mec_book_form_date'+unique_id).val();window['mec_get_tickets_availability'+unique_id](event_id,date);}
206else if(id=="mec-book-form-back-btn-step-3"){var mec_form_data_step_2=jQuery('body').data('mec-book-form-data-step-2');jQuery('#mec_booking'+unique_id).html(jQuery('body').data('mec-book-form-step-2'));jQuery.each(mec_form_data_step_2,function(index,object_item){var mec_elem=jQuery('[name="'+object_item.name+'"]');var mec_type=mec_elem.attr('type');if((mec_type=='checkbox'||mec_type=='radio')){var mec_elem_len=jQuery('[name="'+object_item.name+'"]').length;if(mec_elem_len>1){var id='#'+mec_elem.attr('id').match(/mec_book_reg_field_reg.*_/g)+object_item.value.toLowerCase();jQuery(id).prop('checked',true);}
207else{mec_elem.prop('checked',true);}}
208mec_elem.val(object_item.value);});}}
209function gmapSkin(NewJson){var gmap_temp=jQuery("#gmap-data");var beforeJson=gmap_temp.val();if(typeof beforeJson==='undefined')beforeJson='';var newJson=NewJson;var jsonPush=(typeof beforeJson!='undefined'&&beforeJson.trim()=="")?[]:JSON.parse(beforeJson);var pushState=jsonPush.length<1?false:true;
209for(var key in newJson){if(pushState){jsonPush.forEach(function(Item,Index){var render_location=jsonPush[Index].latitude+","+jsonPush[Index].longitude;if(key.trim()==render_location.trim()){newJson[key].count=newJson[key].count+jsonPush[Index].count;newJson[key].event_ids=newJson[key].event_ids.concat(jsonPush[Index].event_ids);var dom=jQuery(newJson[key].lightbox).find("div:nth-child(2)");var main_items=dom.html();var new_items=jQuery(jsonPush[Index].lightbox).find("div:nth-child(2)").html();var render_items=dom.html(main_items+new_items).html();var new_info_lightbox='<div><div class="mec-event-detail mec-map-view-event-detail"><i class="mec-sl-map-marker"></i> '+newJson[key].name+'</div><div>'+render_items+'</div></div>';newJson[key].lightbox=new_info_lightbox;var new_info_window='<div class="mec-marker-infowindow-wp"><div class="mec-marker-infowindow-count">'+newJson[key].count+'</div><div class="mec-marker-infowindow-content"><span>Event at this location</span><span>'+newJson[key].name+'</span></div></div>';newJson[key].infowindow=new_info_window;jsonPush.splice(Index,1);}});}
210jsonPush.push(newJson[key]);}
211gmap_temp.val(JSON.stringify(jsonPush));return jsonPush;}
212jQuery(document).ready(function(){if(jQuery('.mec-fluent-wrap').length<0){return;}
213jQuery(window).on('resize',mecFluentToggoleDisplayValueFilterContent);jQuery(document).on('click','.mec-fluent-wrap .mec-filter-icon',mecFluentToggleFilterContent);jQuery(document).on('click','.mec-fluent-wrap .mec-more-events-icon',mecFluentToggleMoreEvents);jQuery(document).on('click','.mec-fluent-wrap .mec-yearly-calendar',mecFluentYearlyCalendar);jQuery(document).on('click',mecFluentOutsideEvent);jQuery(document).on('click','.mec-fluent-more-views-icon',mecFluentMoreViewsContent);jQuery(document).on('change','.mec-fluent-wrap .mec-filter-content select, .mec-fluent-wrap .mec-filter-content input',mecFluentSmartFilterIcon);mecFluentTimeTableUI();mecFluentUI();mecFluentNiceSelect();mecFluentWrapperFullScreenWidth();jQuery(window).on('load',mecFluentWrapperFullScreenWidth);jQuery(window).on('load',mecFluentCurrentTimePosition);jQuery(window).on('resize',mecFluentWrapperFullScreenWidth);jQuery(window).on('resize',mecFluentTimeTableUI);mecFluentSliderUI();mecFluentFullCalendar();jQuery(window).on('resize',mecFluentFullCalendar);mecFluentCustomScrollbar();});function mecFluentSinglePage(){if(jQuery().niceScroll){jQuery('.mec-single-fluent-body .featherlight .mec-single-fluent-wrap').niceScroll({horizrailenabled:false,cursorcolor:'#C1C5C9',cursorwidth:'4px',cursorborderradius:'4px',cursorborder:'none',railoffset:{left:10,}});}}
214function mecFluentFullCalendar(){if(jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container').length>0){var widowWidth=jQuery(window).innerWidth();if(widowWidth<=767){jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-calendar-a-month, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-yearly-title-sec').css({paddingTop:jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container').children('.mec-totalcal-box').height()+40,});}else{jQuery('.mec-fluent-wrap.mec-skin-full-calendar-container .mec-skin-monthly-view-month-navigator-container, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-calendar-a-month, .mec-fluent-wrap.mec-skin-full-calendar-container .mec-yearly-title-sec').css({paddingTop:32,});}}}
215function mecFluentSmartFilterIcon(){var filterContent=jQuery(this).closest('.mec-filter-content');var hasValue=false;if(jQuery(this).closest('.mec-date-search').length>0){var yearValue=jQuery(this).closest('.mec-date-search').find('select[id*="mec_sf_year"]').val();var monthValue=jQuery(this).closest('.mec-date-search').find('select[id*="mec_sf_month"]').val();if((yearValue=='none'&&monthValue=='none')||(yearValue!='none'&&monthValue!='none')){filterContent.hide();if((yearValue!='none'&&monthValue!='none')){hasValue=true;}else{hasValue=false;}}else{return false;}}else{filterContent.hide();}
216if(!hasValue){filterContent.find(':not(.mec-date-search)').find('select, input:not([type="hidden"])').each(function(){if(jQuery(this).val()){hasValue=true;return false;}});}
217if(hasValue){jQuery(this).closest('.mec-search-form').find('.mec-filter-icon').addClass('active');}else{jQuery(this).closest('.mec-search-form').find('.mec-filter-icon').removeClass('active');}}
218function mecFluentMoreViewsContent(){jQuery(this).find('.mec-fluent-more-views-content').toggleClass('active');}
219function mecFluentWrapperFullScreenWidth(){if(jQuery('.mec-fluent-bg-wrap').length>0){jQuery('.mec-fluent-bg-wrap').css({maxWidth:jQuery('body').width()+8,});}}
220function mecFluentUI(){if(typeof mecdata!='undefined'&&typeof mecdata.enableSingleFluent!='undefined'&&mecdata.enableSingleFluent){jQuery('body').addClass('mec-single-fluent-body');}
221jQuery(window).on('load resize',function(){if(jQuery('.mec-filter-content').length>0){jQuery('.mec-filter-content').css({right:-(jQuery('.mec-calendar').width()-jQuery('.mec-search-form.mec-totalcal-box').position().left-jQuery('.mec-search-form.mec-totalcal-box').width()+40),left
221:-jQuery('.mec-search-form.mec-totalcal-box').position().left+40,});}
222if(jQuery('.mec-filter-icon').is(':visible')){var filterIconLeftPosition=parseInt(jQuery('.mec-search-form.mec-totalcal-box').position().left)+parseInt(jQuery('.mec-filter-icon').position().left)-25;jQuery('head').find('style[title="mecFluentFilterContentStyle"]').remove().end().append('<style title="mecFluentFilterContentStyle">.mec-fluent-wrap .mec-filter-content:before{left: '+filterIconLeftPosition+'px;}.mec-fluent-wrap .mec-filter-content:after{left: '+(filterIconLeftPosition+1)+'px;}</style>');}});if(jQuery('.mec-filter-content').is(':empty')){jQuery('.mec-filter-icon').hide();}
223jQuery(document).on('click','.mec-event-share-icon',function(e){e.preventDefault();});}
224function mecFluentCurrentTimePosition(){if(jQuery('.mec-fluent-wrap').length>0){jQuery('.mec-fluent-current-time').each(function(){var currentTimeMinutes=jQuery(this).data('time');var height=jQuery(this).closest('.mec-fluent-current-time-cell').height();jQuery(this).css({top:(currentTimeMinutes/60)*height,});});}}
225function mecFluentNiceSelect(){if(jQuery('.mec-fluent-wrap').length<0){return;}
226if(jQuery().niceSelect){jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select').niceSelect();}}
227function mecFluentCustomScrollbar(y){if(jQuery('.mec-fluent-wrap').length<0){return;}
228if(jQuery().niceScroll){jQuery('.mec-custom-scrollbar').niceScroll({cursorcolor:'#C7EBFB',cursorwidth:'4px',cursorborderradius:'4px',cursorborder:'none',railoffset:{left:-2,}});jQuery('.mec-custom-scrollbar').getNiceScroll().resize();jQuery('.mec-custom-scrollbar').each(function(){if(jQuery(this).find('.mec-fluent-current-time-cell').length>0){var parentTopOffset=jQuery(this).offset().top;var currentTimeCellOffset=jQuery(this).find('.mec-fluent-current-time-cell').offset().top;jQuery(this).getNiceScroll(0).doScrollTop(currentTimeCellOffset-parentTopOffset-16,120);jQuery(this).on('scroll',function(){if(jQuery(this).getNiceScroll(0).scroll.y!=0){jQuery(this).addClass('mec-scrolling');}else{jQuery(this).removeClass('mec-scrolling');}});}
229if(typeof y!='undefined'){if(jQuery(this).closest('.mec-skin-list-wrap').length>0||jQuery(this).closest('.mec-skin-grid-wrap').length>0){jQuery(this).getNiceScroll(0).doScrollTop(0,120);}}});}}
230function mecFluentTimeTableUI(){jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').css('min-height',0);var maxHeight=Math.max.apply(null,jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').map(function(){return jQuery(this).height();}).get());maxHeight=maxHeight>87?maxHeight:87;jQuery('.mec-fluent-wrap.mec-timetable-wrap .mec-cell').css('min-height',maxHeight+2);}
231function mecFluentSliderUI(){jQuery(window).on('load',function(){jQuery('.mec-fluent-wrap.mec-skin-slider-container .owl-next').prepend('<span>Next</span>');jQuery('.mec-fluent-wrap.mec-skin-slider-container .owl-prev').append('<span>Prev</span>');});}
232function mecFluentToggleFilterContent(e){e.preventDefault();if(jQuery('.mec-filter-content').is(':visible')){jQuery('.mec-filter-content').css({display:'none',});}else{const displayValue=jQuery(window).width()<=790?'block':'flex';jQuery('.mec-filter-content').css({display:displayValue,});}}
233function mecFluentToggoleDisplayValueFilterContent(){const displayValue=jQuery(window).width()<=767?'block':'flex';if(jQuery('.mec-filter-content').is(':visible')){jQuery('.mec-filter-content').css({display:displayValue,});}}
234function mecFluentToggleMoreEvents(e){e.preventDefault();const moreEventsWrap=jQuery(this).siblings('.mec-more-events-wrap');const moreEvents=moreEventsWrap.children('.mec-more-events');jQuery('.mec-more-events-wrap').removeClass('active');moreEventsWrap.addClass('active');jQuery('.mec-more-events-wrap:not(.active)').hide();if(moreEventsWrap.is(':visible')){moreEventsWrap.hide();}else{topElement=moreEventsWrap.closest('.mec-more-events-inner-controller').length>0?moreEventsWrap.closest('.mec-more-events-inner-controller'):moreEventsWrap.closest('.mec-more-events-controller');moreEventsWrap.show().css({top:topElement.offset().top-window.scrollY,left:moreEventsWra
234p.closest('.mec-more-events-controller').offset().left,width:moreEventsWrap.closest('.mec-more-events-controller').width(),});if(moreEventsWrap.width()>400){moreEvents.css({left:(moreEventsWrap.width()/2)-(moreEvents.width()/2),width:400,});}else{moreEvents.css({width:moreEventsWrap.width(),left:0,});}}}
235function mecFluentOutsideEvent(e){if(!jQuery(e.target).is('.mec-more-events-icon')&&!jQuery(e.target).closest('.mec-more-events-wrap').length){jQuery('.mec-more-events-wrap').hide();}
236if(!jQuery(e.target).is('.mec-filter-icon')&&!jQuery(e.target).closest('.mec-filter-content').length){jQuery('.mec-filter-content').hide();}
237if(!jQuery(e.target).is('.mec-fluent-more-views-icon')&&!jQuery(e.target).closest('.mec-fluent-more-views-content').length){jQuery('.mec-fluent-more-views-content').removeClass('active');}}
238function mecFluentYearlyCalendar(){const monthNum=jQuery(this).data('month');const monthName=jQuery(this).find('.mec-calendar-table-title').text();jQuery('.mec-fluent-wrap').find('.mec-yearly-calendar').removeClass('active');jQuery(this).addClass('active').closest('.mec-year-container').find('.mec-yearly-agenda-sec-title span').text(monthName).end().find('.mec-events-agenda').addClass('mec-util-hidden').end().find('.mec-events-agenda[data-month='+monthNum+']').removeClass('mec-util-hidden');mecFluentCustomScrollbar();}
239function mecFluentYearlyUI(eventID,yearID){var fluentWrap=jQuery('#mec_skin_'+eventID+'.mec-fluent-wrap');if(fluentWrap.length<0){return;}
240var monthNum=fluentWrap.find('.mec-year-container[data-year-id='+yearID+']').find('.mec-events-agenda:not(.mec-util-hidden)').data('month');var activeMonth=fluentWrap.find('.mec-year-container[data-year-id='+yearID+']').find('.mec-yearly-calendar[data-month='+monthNum+']');var activeMonthName=activeMonth.find('.mec-calendar-table-title').text();activeMonth.addClass('active');}
241(function($){$.fn.mecListViewFluent=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);mecFluentCustomScrollbar();initLoadMore('#mec_list_view_month_'+settings.id+'_'+settings.month_id);function initLoadMore(monthID){$(monthID).off().on('click','.mec-load-more-button',function(){loadMore(this);});}
242function loadMore(This){var currentLoadMore=$(This);currentLoadMore.addClass("mec-load-more-loading");var endDate=currentLoadMore.data('end-date');var maximumDate=currentLoadMore.data('maximum-date');var nextOffset=currentLoadMore.data('next-offset');var year=currentLoadMore.data('year');var month=currentLoadMore.data('month');$.ajax({url:settings.ajax_url,data:"action=mec_list_load_more&mec_year="+year+"&mec_month="+month+"&mec_maximum_date="+maximumDate+"&mec_start_date="+endDate+"&mec_offset="+nextOffset+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=0",dataType:"json",type:"post",success:function(response){currentLoadMore.parent().remove();if(response.count!='0'){$('#mec_list_view_month_'+settings.id+'_'+response.current_month.id).append(response.month);if(settings.sed_method!='0'){sed();}
243mecFluentCustomScrollbar();initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id);}},error:function(){}});}
244if(settings.month_navigator)initMonthNavigator();setMonth(settings.next_month.year,settings.next_month.month,true);var initMonth;var initYear;active_month=initMonth=settings.active_month.month;active_year=initYear=settings.active_month.year;if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month);}});}
245if(settings.sed_method!='0'){sed();}
246function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off().on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,false,true);});}
247function parseQuery(queryString){var query={};var pairs=(queryString[0]==='?'?queryString.substr(1):queryString).split('&');for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');query[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]||'');}
248return query;}
249function updateQueryStringParameter(uri,key,val){return uri.replace(RegExp("([?&]"+key+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+key+"="+encodeURIComponent(val)).replace(/^([^?&]+)&/,"$1?");}
250function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');var ObjAtts=parseQuery(settings.atts);if(!(ObjAtts['sf[month']||ObjAtts['sf[year]'])){settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[year]',initYear);settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[month]',initMonth);}
251$.ajax({url:settings.ajax_url,data:"action=mec_list_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_list_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-list-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();toggleMonth(response.current_month.id);initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentCustomScrollbar();$(document).trigger('mec_search_process_end',{r:response,settings_id:settings.id});},error:function(){}});}
252function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=false;navigator_click=navigator_click||false;
252var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year;}
253if($("#mec_list_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);mecFluentCustomScrollbar(0);}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');}
254$.ajax({url:settings.ajax_url,data:"action=mec_list_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_list_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-list-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();initLoadMore('#mec_list_view_month_'+settings.id+'_'+response.current_month.id);if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);}else{$("#mec_list_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide();}
255if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').unbind('click');}}
256if(!do_in_background){mecFluentCustomScrollbar(0);}
257jQuery('.mec-fluent-wrap').find('.mec-filter-content').find('select').niceSelect();$(document).trigger('mec_set_month_process_end',{r:response,settings_id:settings.id});},error:function(){}});}}
258function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_list_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_list_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_list_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");}
259var sf;function sed(){$(".mec-skin-list-wrap#mec_skin_"+settings.id).off('click').on('click','[data-event-id]',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($){$.fn.mecGridViewFluent=function(options){var active_month;var active_year;var settings=$.extend({today:null,id:0,events_label:'Events',event_label:'Event',month_navigator:0,atts:'',active_month:{},next_month:{},sf:{},ajax_url:'',},options);initLoadMore('#mec_grid_view_month_'+settings.id+'_'+settings.month_id);function initLoadMore(monthID){$(monthID).off().on('click','.mec-load-more-button',function(){loadMore(this);});}
260function loadMore(This){var currentLoadMore=$(This);currentLoadMore.addClass("mec-load-more-loading");var endDate=currentLoadMore.data('end-date');var maximumDate=currentLoadMore.data('maximum-date');var nextOffset=currentLoadMore.data('next-offset');var year=currentLoadMore.data('year');var month=currentLoadMore.data('month');$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_more&mec_year="+year+"&mec_month="+month+"&mec_maximum_date="+maximumDate+"&mec_start_date="+endDate+"&mec_offset="+nextOffset+"&"+settings.atts+"&current_month_divider=0&apply_sf_date=0",dataType:"json",type:"post",success:function(response){currentLoadMore.parent().remove();if(response.count!='0'){$('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id).append(response.month);if(settings.sed_method!='0'){sed();}
261mecFluentCustomScrollbar();initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id);}},error:function(){}});}
262if(settings.month_navigator)initMonthNavigator();setMonth(settings.next_month.year,settings.next_month.month,true);var initMonth;var initYear;active_month=initMonth=settings.active_month.month;active_year=initYear=settings.active_month.year;if(settings.sf.container!==''){sf=$(settings.sf.container).mecSearchForm({id:settings.id,refine:settings.sf.refine,ajax_url:settings.ajax_url,atts:settings.atts,callback:function(atts){settings.atts=atts;search(active_year,active_month);}});}
263if(settings.sed_method!='0'){sed();}
264function initMonthNavigator(){$("#mec_skin_"+settings.id+" .mec-load-month").off().on("click",function(){var year=$(this).data("mec-year");var month=$(this).data("mec-month");setMonth(year,month,false,true);});}
265function parseQuery(queryString){var query={};var pairs=(queryString[0]==='?'?queryString.substr(1):queryString).split('&');for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');query[decodeURIComponent(pair[0])]=decodeURIComponent(pair[1]||'');}
266return query;}
267function updateQueryStringParameter(uri,key,val){return uri.replace(RegExp("([?&]"+key+"(?=[=&#]|$)[^#&]*|(?=#|$))"),"&"+key+"="+encodeURIComponent(val)).replace(/^([^?&]+)&/,"$1?");}
268function search(year,month){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');var ObjAtts=parseQuery(settings.atts);if(!(ObjAtts['sf[month']||ObjAtts['sf[year]'])){settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[year]',initYear);settings.atts=updateQueryStringParameter(settings.atts.trim(),'sf[month]',initMonth);}
269$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=1",dataType:"json",type:"post",success:function(response){active_month=response.current_month.month;active_year=response.current_month.year;$("#mec_skin_events_"+settings.id).html('<div class="mec-month-container" id="mec_grid_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-grid-view-month-navigator-container").html('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();toggleMonth(response.current_month.id);initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");mecFluentCustomScrollbar();},error:function(){}});}
270function setMonth(year,month,do_in_background,navigator_click){if(typeof do_in_background==="undefined")do_in_background=false;navigator_click=navigator_click||false;var month_id=year+""+month;if(!do_in_background){active_month=month;active_year=year;}
271if($("#mec_grid_view_month_"+settings.id+"_"+month_id).length){toggleMonth(month_id);mecFluentCustomScrollbar();}else{if(!do_in_background){if(jQuery('.mec-modal-result').length===0)jQuery('.mec-wrap').append('<div class="mec-modal-result"></div>');jQuery('.mec-modal-result').addClass('mec-month-navigator-loading');}
272$.ajax({url:settings.ajax_url,data:"action=mec_grid_load_month&mec_year="+year+"&mec_month="+month+"&"+settings.atts+"&apply_sf_date=0"+"&navigator_click="+navigator_click,dataType:"json",type:"post",success:function(response){$("#mec_skin_events_"+settings.id).append('<div class="mec-month-container" id="mec_grid_view_month_'+settings.id+'_'+response.current_month.id+'" data-month-id="'+response.current_month.id+'">'+response.month+'</div>');$("#mec_skin_"+settings.id+" .mec-skin-grid-view-month-navigator-container").append('<div class="mec-month-navigator" id="mec_month_navigator_'+settings.id+'_'+response.current_month.id+'">'+response.navigator+'</div>');initMonthNavigator();initLoadMore('#mec_grid_view_month_'+settings.id+'_'+response.current_month.id);if(!do_in_background){toggleMonth(response.current_month.id);$('.mec-modal-result').removeClass("mec-month-navigator-loading");$("#mec_sf_month_"+settings.id).val(month);$("#mec_sf_year_"+settings.id).val(year);}else{$("#mec_grid_view_month_"+settings.id+"_"+response.current_month.id).hide();$("#mec_month_navigator_"+settings.id+"_"+response.current_month.id).hide();}
273if(typeof custom_month!==undefined)var custom_month;if(typeof custom_month!=undefined){if(custom_month=='true'){$(".mec-month-container .mec-calendar-day").removeClass('mec-has-event');$(".mec-month-container .mec-calendar-day").removeClass('mec-selected-day');$('.mec-calendar-day').unbind('click');}}
274if(!do_in_background){mecFluentCustomScrollbar();}},error:function(){}});}}
275function toggleMonth(month_id){var active_month=$("#mec_skin_"+settings.id+" .mec-month-container-selected").data("month-id");var active_day=$("#mec_grid_view_month_"+settings.id+"_"+active_month+" .mec-selected-day").data("day");if(active_day<=9)active_day="0"+active_day;$("#mec_skin_"+settings.id+" .mec-month-navigator").hide();$("#mec_month_navigator_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").hide();$("#mec_grid_view_month_"+settings.id+"_"+month_id).show();$("#mec_skin_"+settings.id+" .mec-month-container").removeClass("mec-month-container-selected");$("#mec_grid_view_month_"+settings.id+"_"+month_id).addClass("mec-month-container-selected");}
276var sf;function sed(){$(".mec-skin-grid-wrap#mec_skin_"+settings.id).off('click').on('click','[data-event-id]',function(e){e.preventDefault();var href=$(this).attr('href');var id=$(this).data('event-id');var occurrence=get_parameter_by_name('occurrence',href);var time=get_parameter_by_name('time',href);mecSingleEventDisplayer.getSinglePage(id,occurrence,time,settings.ajax_url,settings.sed_method,settings.image_popup);});}};}(jQuery));(function($)
277{$.fn.mecBookingCalendar=function(options)
278{var active_month;var active_year;var settings=$.extend({active_month:{},next_month:{},ajax_url:'',event_id:'',},options);initMonthNavigator();active_month=settings.active_month.month;active_year=settings.active_month.year;setListeners();function initMonthNavigator()
279{$("#mec_booking_calendar_"+settings.id+" .mec-load-month").off('click').on('click',function()
280{var year=$(this).data('mec-year');var month=$(this).data('mec-month');setMonth(year,month);});}
281function setMonth(year,month)
282{active_month=month;active_year=year;var $modal=$('.mec-modal-result');if($modal.length===0)$('.mec-wrap').append('<div class="mec-modal-result"></div>');$modal.addClass('mec-month-navigator-loading');$.ajax({url:settings.ajax_url,data:"action=mec_booking_calendar_load_month&event_id="+settings.event_id+"&uniqueid="+settings.id+"&year="+year+"&month="+month,dataType:"json",type:"post",success:function(response)
283{$('#mec_booking_calendar_wrapper'+settings.id).html(response.html);$('#mec_book_form'+settings.id+' .mec-ticket-unavailable-spots').addClass('mec-util-hidden');$('#mec_book_form_date'+settings.id).val('').trigger('change');$modal.removeClass("mec-month-navigator-loading");},error:function()
284{$modal.removeClass("mec-month-navigator-loading");}});}
285function setListeners()
286{$("#mec_booking_calendar_"+settings.id+" .mec-booking-calendar-date").off('click').on('click',function(e)
287{e.preventDefault();$("#mec_booking_calendar_"+settings.id+" .mec-booking-calendar-date").removeClass('mec-active');$("#mec_booking_calendar_"+settings.id+" .mec-calendar-day").removeClass('mec-wrap-active');$(this).addClass('mec-active');$(this).parents('.mec-calendar-day').addClass('mec-wrap-active');var timestamp=$(this).data('timestamp');$('#mec_book_form_date'+settings.id).val(timestamp).trigger('change');});$("#mec_booking_calendar_"+settings.id+" .mec-has-one-repeat-in-day").off('click').on('click',function(e)
288{e.preventDefault();var mec_date_value=$(this).attr('data-timestamp');$("#mec_booking_calendar_"+settings.id+" .mec-has-one-repeat-in-day").removeClass('mec-active');$("#mec_booking_calendar_"+settings.id+" [data-timestamp=\""+mec_date_value+"\"]").addClass('mec-active');var timestamp=$(this).data('timestamp');$('#mec_book_form_date'+settings.id).val(timestamp).trigger('change');});$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat .mec-calendar-novel-selected-day").off('click').on('click',function(e)
289{$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat").removeClass('mec-wrap-active').removeClass('mec-active');$(".mec-has-time-repeat").find('.mec-booking-calendar-date').hide();$(this).parents(".mec-has-time-repeat").find('.mec-booking-calendar-date').toggle();$(this).parents(".mec-has-time-repeat").addClass('mec-active');});$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat").on('mouseenter',function()
290{var moreTimeFinder=$(this).find(".mec-booking-calendar-date");if(moreTimeFinder.length>=1)
291{$(this).find(".mec-booking-tooltip").removeClass("multiple-time");$(this).find(".mec-booking-tooltip").addClass("multiple-time");}
292$(this).find(".mec-booking-calendar-date").css("display","block");});$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat").off('click').on('click',function()
293{$("#mec_booking_calendar_"+settings.id+" .mec-has-time-repeat").removeClass('mec-wrap-active').removeClass('mec-active');$(this).addClass("mec-active");var sendTimeToMessage=$(this).find(".multiple-time .mec-booking-calendar-date.mec-active").text();$(this).parents().eq(3).find(".mec-choosen-time-message").removeClass("disable");$(this).parents().eq(3).find(".mec-choosen-time-message .mec-choosen-time").empty();$(this).parents().eq(3).find(".mec-choosen-time-message .mec-choosen-time").append(sendTimeToMessage);});}};}(jQuery));(function($)
294{$.fn.mecCart=function(options)
295{var settings=$.extend({ajax_url:'',},options);setListeners();function setListeners()
296{$(".mec-cart-remove-transactions").off('click').on('click',function(e)
297{e.preventDefault();var transaction_id=$(this).data('transaction-id');remove(transaction_id);});$('#mec_cart_coupon_form').off('submit').on('submit',function(e)
298{e.preventDefault();coupon();});}
299function remove(transaction_id)
300{var $wrapper=$('.mec-cart');$wrapper.addClass('mec-loading');$.ajax({url:settings.ajax_url,data:"action=mec_cart_remove_transaction&transaction_id="+transaction_id,dataType:"json",type:"post",success:function(response)
301{$wrapper.removeClass('mec-loading');if(response.success)
302{$('#mec_cart_transactions_'+transaction_id).remove();if(!$('#mec_cart_transactions_table>tbody>tr').length)
303{$('#mec_cart_transactions_table').remove();$('.mec-cart-coupon-checkout-action').remove();$('.mec-cart-empty-wrapper').removeClass('mec-util-hidden');}
304$('#mec_cart_total_payable').html(response.total);}},error:function(){}});}
305function coupon()
306{var $wrapper=$('.mec-cart');var $message=$('#mec_cart_message');$wrapper.addClass('mec-loading');$message.html('');var coupon=$('#mec_cart_coupon_input').val();$.ajax({url:settings.ajax_url,data:"action=mec_cart_coupon&coupon="+coupon,dataType:"json",type:"post",success:function(response)
307{$wrapper.removeClass('mec-loading');if(response.success)
308{$message.html('<p class="mec-success">'+response.message+'</p>');setTimeout(function()
309{location.reload();},2000);}
310else
311{$message.html('<p class="mec-error">'+response.message+'</p>');}},error:function(){}});}};}(jQuery));(function($)
312{$.fn.mecCheckout=function(options)
313{var settings=$.extend({ajax_url:'',},options);setListeners();function setListeners()
314{$(".mec-checkout-gateways-radio").off('change').on('change',function(e)
315{e.preventDefault();var gateway_id=$('.mec-checkout-gateways-radio:checked').val();jQuery(".mec-checkout-form-gateway-checkout").addClass("mec-util-hidden");jQuery("#mec_checkout_form_gateway_checkout"+gateway_id).removeClass("mec-util-hidden");});$('#mec_checkout_form_free_booking').off('submit').on('submit',function(e)
316{e.preventDefault();free();});}
317function free()
318{var $wrapper=$('.mec-checkout');var $message=$('#mec_checkout_message');$wrapper.addClass('mec-loading');$message.html('');var data=$('#mec_checkout_form_free_booking').serialize();$.ajax({url:settings.ajax_url,data:data,dataType:"json",type:"post",success:function(response)
319{$wrapper.removeClass('mec-loading');if(response.success)
320{$message.html('<p class="mec-success">'+response.message+'</p>');$wrapper.slideUp().html('');}
321else
322{$message.html('<p class="mec-error">'+response.message+'</p>');}},error:function(){}});}};}(jQuery));jQuery(document).ready(function(){if(jQuery('.mec-booking-shortcode').length<0){return;}
323if(jQuery().niceSelect){jQuery('.mec-booking-shortcode').find('.mec-book-first').find('select').niceSelect();}
324if(jQuery("#gCalendarMonthFilterButton").length>0){jQuery("#gCalendarMonthFilterButton").datepicker({format:"yyyy-mm",viewM
324ode:"months",minViewMode:"months"})
325jQuery("#gCalendarMonthFilterButton").datepicker('hide')}});
326var datepicker_format='yy-mm-dd';jQuery(document).ready(function($)
327{$('.mec_upload_image_button').click(function(event)
328{event.preventDefault();var frame;if(frame)
329{frame.open();return;}
330frame=wp.media();frame.on('select',function()
331{var attachment=frame.state().get('selection').first();$('#mec_thumbnail_img').html('<img src="'+attachment.attributes.url+'" />');$('#mec_thumbnail').val(attachment.attributes.url);$('.mec_remove_image_button').toggleClass('mec-util-hidden');frame.close();});frame.open();});$('.mec_remove_image_button').click(function(event)
332{event.preventDefault();$('#mec_thumbnail_img').html('');$('#mec_thumbnail').val('');$('.mec_remove_image_button').toggleClass('mec-util-hidden');});$('.mec_location_upload_image_button').click(function(event)
333{event.preventDefault();var frame;if(frame)
334{frame.open();return;}
335frame=wp.media();frame.on('select',function()
336{var attachment=frame.state().get('selection').first();$('#mec_location_thumbnail_img').html('<img src="'+attachment.attributes.url+'" />');$('#mec_location_thumbnail').val(attachment.attributes.url);$('.mec_location_remove_image_button').toggleClass('mec-util-hidden');frame.close();});frame.open();});$('.mec_location_remove_image_button').click(function(event)
337{event.preventDefault();$('#mec_location_thumbnail_img').html('');$('#mec_location_thumbnail').val('');$('.mec_location_remove_image_button').toggleClass('mec-util-hidden');});$('.mec_organizer_upload_image_button').click(function(event)
338{event.preventDefault();var frame;if(frame)
339{frame.open();return;}
340frame=wp.media();frame.on('select',function()
341{var attachment=frame.state().get('selection').first();$('#mec_organizer_thumbnail_img').html('<img src="'+attachment.attributes.url+'" />');$('#mec_organizer_thumbnail').val(attachment.attributes.url);$('.mec_organizer_remove_image_button').toggleClass('mec-util-hidden');frame.close();});frame.open();});$('.mec_organizer_remove_image_button').click(function(event)
342{event.preventDefault();$('#mec_organizer_thumbnail_img').html('');$('#mec_organizer_thumbnail').val('');$('.mec_organizer_remove_image_button').toggleClass('mec-util-hidden');});$('#mec_fes_remove_image_button').click(function(event)
343{event.preventDefault();$('#mec_fes_thumbnail_img').html('');$('#mec_fes_thumbnail').val('');$('#mec_featured_image_file').val('');$('#mec_fes_remove_image_button').addClass('mec-util-hidden');});$('#mec_fes_location_remove_image_button').click(function(event)
344{event.preventDefault();$('#mec_fes_location_thumbnail_img').html('');$('#mec_fes_location_thumbnail').val('');$('#mec_fes_location_thumbnail_file').val('');$('#mec_fes_location_remove_image_button').addClass('mec-util-hidden');});$('#mec_fes_organizer_remove_image_button').click(function(event)
345{event.preventDefault();$('#mec_fes_organizer_thumbnail_img').html('');$('#mec_fes_organizer_thumbnail').val('');$('#mec_fes_organizer_thumbnail_file').val('');$('#mec_fes_organizer_remove_image_button').addClass('mec-util-hidden');});var date_splite;if(typeof mec_admin_localize!=='undefined')
346{date_splite=mec_admin_localize.datepicker_format.split('&');if(date_splite[0]!==undefined&&date_splite.length==2)datepicker_format=date_splite[0];}
347else if(typeof mecdata!=='undefined')
348{date_splite=mecdata.datepicker_format.split('&');if(date_splite[0]!==undefined&&date_splite.length==2)datepicker_format=date_splite[0];}
349$('[id^="mec-book-form-btn-step"]').on('click',function()
350{setTimeout(function()
351{if($.fn.datepicker)
352{if('date'!==$('.mec-date-picker').prop('type'))
353{$('.mec-date-picker').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});}}},1000);});if($.fn.datepicker)
354{$('.mec-date-picker').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});$('#mec_start_date').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});$('#mec_end_date').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});$('#mec_date_repeat_end_at_date').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});$('.mec_date_picker_dynamic_format').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});$('.mec_date_picker').datepicker({changeYear:true,changeMonth:true,dateFormat:'yy-mm-dd',gotoCurrent:true,yearRange:'c-3:c+5',});$('.mec_date_picker_dynamic_format_start').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-1:c+5',onSelect:function(date)
355{var selectedDate=new Date(date);var endDate=new Date(selectedDate.getTime());var $end_picker=$(this).next();$end_picker.datepicker("option","minDate",endDate);$end_picker.datepicker("option","maxDate",'+5y');}});$('.mec_date_picker_dynamic_format_end').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-1:c+5',});}
356$('#mec_location_id').on('change',function()
357{mec_location_toggle();});$('#mec_organizer_id').on('change',function()
358{mec_organizer_toggle();var mec_organizer_val=parseInt($(this).val());var mec_additional_organizer=$(this).parent().parent().find('#mec-additional-organizer-wrap');if(mec_organizer_val!=1)mec_additional_organizer.show();else mec_additional_organizer.hide();});mec_location_toggle();mec_organizer_toggle();$('#mec_repeat').on('change',function()
359{mec_repeat_toggle();});mec_repeat_toggle();$('#mec_repeat_type').on('change',function()
360{mec_repeat_type_toggle();});mec_repeat_type_toggle();$('#mec_bookings_limit_unlimited').on('change',function()
361{mec_bookings_unlimited_toggle();});$('#mec_add_in_days').on('click',function()
362{var allday=$(this).data('allday');var start=$('#mec_exceptions_in_days_start_date').val();if(start==='')return false;var end=$('#mec_exceptions_in_days_end_date').val();if(end==='')return false;var start_hour=$('#mec_exceptions_in_days_start_hour').val();if(start_hour.length===1)start_hour='0'+start_hour;var start_minutes=$('#mec_exceptions_in_days_start_minutes').val();if(start_minutes.length===1)start_minutes='0'+start_minutes;var start_ampm=$('#mec_exceptions_in_days_start_ampm').val();if(typeof start_ampm==='undefined')start_ampm='';var end_hour=$('#mec_exceptions_in_days_end_hour').val();if(end_hour.length===1)end_hour='0'+end_hour;var end_minutes=$('#mec_exceptions_in_days_end_minutes').val();if(end_minutes.length===1)end_minutes='0'+end_minutes;var end_ampm=$('#mec_exceptions_in_days_end_ampm').val();if(typeof end_ampm==='undefined')end_ampm='';var value=start+':'+end+':'+start_hour+'-'+start_minutes+'-'+start_ampm+':'+end_hour+'-'+end_minutes+'-'+end_ampm;var label=start+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+start_hour+':'+start_minutes+' '+start_ampm+'</span> - '+end+' <span class="mec-time-picker-label '+(allday?'mec-util-hidden':'')+'">'+end_hour+':'+end_minutes+' '+end_ampm+'</span>';if($('#mec_in_days input[value="'+value+'"]').length>0)return false;var $key=$('#mec_new_in_days_key');var key=$key.val();var html=$('#mec_new_in_days_raw').html().replace(/:i:/g,key).replace(/:val:/g,value).replace(/:label:/g,label);$('#mec_in_days').append(html);$key.val(parseInt(key)+1);});$('#mec_add_not_in_days').on('click',function()
363{var date=$('#mec_exceptions_not_in_days_date').val();if(date==='')return false;var key=$('#mec_new_not_in_days_key').val();var html=$('#mec_new_not_in_days_raw').html().replace(/:i:/g,key).replace(/:val:/g,date);$('#mec_not_in_days').append(html);$('#mec_new_not_in_days_key').val(parseInt(key)+1);});$('#mec_add_ticket_button').on('click',function()
364{var key=$('#mec_new_ticket_key').val();var html=$('#mec_new_ticket_raw').html().replace(/:i:/g,key);$('#mec_tickets').append(html);$('#mec_new_ticket_key').val(parseInt(key)+1);$('.mec_add_price_date_button').off('click').on('click',function()
365{mec_handle_add_price_date_button(this);});$.each($(".mec-select2"),function(i,v){if($(v).attr('name').search(":i:")>0){return;}
366if(typeof $(v).data('select2-id')=='undefined'){$(v).select2();}});});$('.mec_add_price_date_button').off('click').on('click',function()
367{mec_handle_add_price_date_button(this);});mec_hourly_schedule_add_day_listener();$('#mec_add_fee_button').on('click',function()
368{var key=$('#mec_new_fee_key').val();var html=$('#mec_new_fee_raw').html().replace(/:i:/g,key);$('#mec_fees_list').append(html);$('#mec_new_fee_key').val(parseInt(key)+1);});$('#mec_add_ticket_variation_button').on('click',function()
369{var key=$('#mec_new_ticket_variation_key').val();var html=$('#mec_new_ticket_variation_raw').html().replace(/:i:/g,key);$('#mec_ticket_variations_list').append(html);$('#mec_new_ticket_variation_key').val(parseInt(key)+1);});$('.mec-form-row.mec-available-color-row span').on('click',function()
370{$('.mec-form-row.mec-available-color-row span').removeClass('color-selected');$(this).addClass('color-selected');});$('#mec_reg_form_field_types button').on('click',function()
371{var type=$(this).data('type');if(type=='mec_email'){if($('#mec_reg_form_fields').find('input[value="mec_email"][type="hidden"]').length){return false;}}
372if(type=='name'){if($('#mec_reg_form_fields').find('input[value="name"][type="hidden"]').length){return false;}}
373var key=$('#mec_new_reg_field_key').val();var html=$('#mec_reg_field_'+type).html().replace(/:i:/g,key);$('#mec_reg_form_fields').append(html);$('#mec_new_reg_field_key').val(parseInt(key)+1);mec_reg_fields_option_listeners();});mec_reg_fields_option_listeners();$('#mec-advanced-wraper ul > ul > li').click(function()
374{if($(this).attr('class')=='')$(this).attr('class','mec-active');else $(this).attr('class','');$('#mec_date_repeat_advanced').val($('#mec-advanced-wraper div:first-child > ul').find('.mec-active').find('span').text().slice(0,-1));});$('#mec_event_form_field_types button').on('click',function()
375{var type=$(this).data('type');var key=$('#mec_new_event_field_key').val();var html=$('#mec_event_field_'+type).html().replace(/:i:/g,key);$('#mec_event_form_fields').append(html);$('#mec_new_event_field_key').val(parseInt(key)+1);mec_event_fields_option_listeners();});mec_event_fields_option_listeners();$('#mec_bfixed_form_field_types button').on('click',function()
376{var type=$(this).data('type');var key=$('#mec_new_bfixed_field_key').val();var html=$('#mec_bfixed_field_'+type).html().replace(/:i:/g,key);$('#mec_bfixed_form_fields').append(html);$('#mec_new_bfixed_field_key').val(parseInt(key)+1);mec_bfixed_fields_option_listeners();});mec_bfixed_fields_option_listeners();mec_additional_organizers_listeners();});
376function mec_location_toggle()
377{if(jQuery('#mec_location_id').val()!='0')jQuery('#mec_location_new_container').hide();else jQuery('#mec_location_new_container').show();}
378function mec_organizer_toggle()
379{if(jQuery('#mec_organizer_id').val()!='0')jQuery('#mec_organizer_new_container').hide();else jQuery('#mec_organizer_new_container').show();}
380function mec_repeat_toggle()
381{if(jQuery('#mec_repeat').is(':checked'))jQuery('.mec-form-repeating-event-row').show();else jQuery('.mec-form-repeating-event-row').hide();}
382function mec_repeat_type_toggle()
383{var repeat_type=jQuery('#mec_repeat_type').val();if(repeat_type=='certain_weekdays')
384{jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').show();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide();}
385else if(repeat_type=='custom_days')
386{jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').show();jQuery('#mec_end_wrapper').hide();jQuery('#mec-advanced-wraper').hide();}
387else if(repeat_type=='advanced')
388{jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').show();}
389else if(repeat_type!='daily'&&repeat_type!='weekly'&&repeat_type!='monthly')
390{jQuery('#mec_repeat_interval_container').hide();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide();}
391else
392{jQuery('#mec_repeat_interval_container').show();jQuery('#mec_repeat_certain_weekdays_container').hide();jQuery('#mec_exceptions_in_days_container').hide();jQuery('#mec_end_wrapper').show();jQuery('#mec-advanced-wraper').hide();}}
393function mec_in_days_remove(i)
394{jQuery('#mec_in_days_row'+i).remove();}
395function mec_not_in_days_remove(i)
396{jQuery('#mec_not_in_days_row'+i).remove();}
397function mec_bookings_unlimited_toggle()
398{jQuery('#mec_bookings_limit').toggleClass('mec-util-hidden');}
399function mec_hourly_schedule_add_day_listener()
400{jQuery('.mec-add-hourly-schedule-day-button').each(function()
401{jQuery(this).off('click').on('click',function()
402{var k=jQuery(this).data('key');var raw=jQuery(this).data('raw');var append=jQuery(this).data('append');var key=jQuery(k).val();var html=jQuery(raw).html().replace(/:d:/g,key).replace(/:dd:/g,parseInt(key)+1);jQuery(append).append(html);jQuery(k).val(parseInt(key)+1);mec_hourly_schedule_listeners();});mec_hourly_schedule_listeners();});}
403function mec_hourly_schedule_listeners()
404{jQuery('.mec-add-hourly-schedule-button').off('click').on('click',function()
405{var prefix=jQuery(this).data('prefix');var day=jQuery(this).data('day');var $key=jQuery('#'+prefix+'mec_new_hourly_schedule_key'+day);var key=$key.val();var html=jQuery('#'+prefix+'mec_new_hourly_schedule_raw'+day).html().replace(/:i:/g,key).replace(/:d:/g,day).replace();var g_field_id=prefix+"-hourly_schedules-"+day+"-schedules-:i:-description";var field_id=prefix+"-hourly_schedules-"+day+"-schedules-"+key+"-description";html=html.replace(g_field_id,field_id);html=html.replace(':k:',key);jQuery('#'+prefix+'mec_hourly_schedules'+day).append(html);$key.val(parseInt(key)+1);wp.editor.initialize("mec"+field_id,{tinymce:{wpautop:true,plugins:'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview',toolbar1:'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',toolbar2:'formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help'},quicktags:true,mediaButtons:false,});});}
406function mec_hourly_schedule_remove(day,i,prefix)
407{jQuery("#"+prefix+"mec_hourly_schedule_row"+day+'_'+i).remove();}
408function mec_hourly_schedule_day_remove(day,prefix)
409{jQuery("#"+prefix+"mec_meta_box_hourly_schedule_day_"+day).remove();}
410function mec_ticket_remove(i)
411{jQuery("#mec_ticket_row"+i).remove();}
412function mec_set_event_color(color)
413{try
414{jQuery("#mec_event_color").wpColorPicker('color','#'+color);}
415catch(e)
416{jQuery("#mec_event_color").val(color);}}
417function mec_remove_fee(key)
418{jQuery("#mec_fee_row"+key).remove();}
419function mec_remove_ticket_variation(key,id_prefix)
420{jQuery("#mec_"+id_prefix+"_row"+key).remove();}
421function add_variation_per_ticket(ticket_id)
422{var $input=jQuery('#mec_new_variation_per_ticket_key');var key=$input.val();var html=jQuery('#mec_new_variation_per_ticket_raw'+ticket_id).html().replace(/:v:/g,key);jQuery('#mec_ticket_variations_list'+ticket_id).append(html);$input.val(parseInt(key)+1);}
423function mec_reg_fields_option_listeners()
424{jQuery('button.mec-reg-field-add-option').off('click').on('click',function()
425{var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_reg_field_option_key_'+field_id).val();var html=jQuery('#mec_reg_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_reg_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_reg_field_option_key_'+field_id).val(parseInt(key)+1);});if(typeof jQuery.fn.sortable!=='undefined')
426{jQuery("#mec_reg_form_fields").sortable({handle:'.mec_reg_field_sort'});jQuery(".mec_reg_fields_options_container").sortable({handle:'.mec_reg_field_option_sort'});}}
427function mec_reg_fields_option_remove(field_key,key)
428{jQuery("#mec_reg_fields_option_"+field_key+"_"+key).remove();}
429function mec_reg_fields_remove(key)
430{jQuery("#mec_reg_fields_"+key).remove();}
431function mec_handle_add_price_date_button(e)
432{var key=jQuery(e).data('key');var p=jQuery('#mec_new_ticket_price_key_'+key).val();var html=jQuery('#mec_new_ticket_price_raw_'+key).html().replace(/:i:/g,key).replace(/:j:/g,p);jQuery('#mec-ticket-price-dates-'+key).append(html);jQuery('#mec_new_ticket_price_key_'+key).val(parseInt(p)+1);jQuery('#mec-ticket-price-dates-'+key+' .new_added').datepicker({changeYear:true,changeMonth:true,dateFormat:datepicker_format,gotoCurrent:true,yearRange:'c-3:c+5',});}
433function mec_ticket_price_remove(ticket_key,price_key)
434{jQuery("#mec_ticket_price_raw_"+ticket_key+"_"+price_key).remove();}
435function mec_event_fields_option_listeners()
436{jQuery('button.mec-event-field-add-option').off('click').on('click',function()
437{var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_event_field_option_key_'+field_id).val();var html=jQuery('#mec_event_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_event_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_event_field_option_key_'+field_id).val(parseInt(key)+1);});if(typeof jQuery.fn.sortable!=='undefined')
438{jQuery("#mec_event_form_fields").sortable({handle:'.mec_event_field_sort'});jQuery(".mec_event_fields_options_container").sortable({handle:'.mec_event_field_option_sort'});}}
439function mec_event_fields_option_remove(field_key,key)
440{jQuery("#mec_event_fields_option_"+field_key+"_"+key).remove();}
441function mec_event_fields_remove(key)
442{jQuery("#mec_event_fields_"+key).remove();}
443function mec_bfixed_fields_option_listeners()
444{jQuery('button.mec-bfixed-field-add-option').off('click').on('click',function()
445{var field_id=jQuery(this).data('field-id');var key=jQuery('#mec_new_bfixed_field_option_key_'+field_id).val();var html=jQuery('#mec_bfixed_field_option').html().replace(/:i:/g,key).replace(/:fi:/g,field_id);jQuery('#mec_bfixed_fields_'+field_id+'_options_container').append(html);jQuery('#mec_new_bfixed_field_option_key_'+field_id).val(parseInt(key)+1);});if(typeof jQuery.fn.sortable!=='undefined')
446{jQuery("#mec_bfixed_form_fields").sortable({handle:'.mec_bfixed_field_sort'});jQuery(".mec_bfixed_fields_options_container").sortable({handle:'.mec_bfixed_field_option_sort'});}}
447function mec_bfixed_fields_option_remove(field_key,key)
448{jQuery("#mec_bfixed_fields_option_"+field_key+"_"+key).remove();}
449function mec_bfixed_fields_remove(key)
450{jQuery("#mec_bfixed_fields_"+key).remove();}
451function mec_additional_organizers_listeners()
452{jQuery('#mec_additional_organizers_add').off('click').on('click',function()
453{var value=jQuery('.mec-additional-organizers select').val();var text=jQuery('.mec-additional-organizers select option:selected').text();var sortLabel=jQuery(this).data('sort-label');var removeLabel=jQuery(this).data('remove-label');jQuery('.mec-additional-organizers-list').append('<li><span class="mec-additional-organizer-sort">'+sortLabel+'</span> <span onclick="mec_additional_organizers_remove(this);" class="mec-additional-organizer-remove">'+removeLabel+'</span><input type="hidden" name="mec[additional_organizer_ids][]" value="'+value+'"><span class="mec_orgz_item_name">'+text+'</span></li>');mec_additional_organizers_listeners();});if(typeof jQuery.fn.sortable!=='undefined')
454{jQuery(".mec-additional-organizers-list").sortable({handle:'.mec-additional-organizer-sort'});}}
455function mec_additional_organizers_remove(element)
456{jQuery(element).parent().remove();};
457jQuery(document).ready(function(){jQuery('#scroll-up').hide();jQuery(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>1000){jQuery('#scroll-up').fadeIn();}else{jQuery('#scroll-up').fadeOut();}});jQuery('a#scroll-up').click(function(){jQuery('body, html').animate({scrollTop:0},800);return false;});});jQuery('.better-responsive-menu .menu-primary-container .menu-item-has-children').append('<span class="sub-toggle"> <span class="fa fa-caret-right"></span> </span>');jQuery('.better-responsive-menu .menu-primary-container .sub-toggle').click(function(){jQuery(this).parent('.menu-item-has-children').children('ul.sub-menu').first().slideToggle('1000');jQuery(this).children('.sub-toggle .fa').first().toggleClass('fa-caret-down fa-caret-right');});var hideSearchForm=function(){jQuery('.header-search-form').removeClass('show');};jQuery('#header-right-section .search, .bottom-menu .search').click(function(){jQuery(this).next('.header-search-form').toggleClass('show');setTimeout(function(){jQuery('.header-search-form.show input').focus();},200);
vendor: 7,124 bytes, lines 457-471
457jQuery(document).on('keyup',function(e){if(27===e.keyCode){if(jQuery('.header-search-form').hasClass('show')){hideSearchForm();}}});jQuery(document).on('click.outEvent',function(e){if(e.target.closest('.search-wrapper')){return;}
458hideSearchForm();jQuery(document).off('click.outEvent');});});});jQuery(window).on('load',function(){if(typeof jQuery.fn.cycle!=='undefined'){jQuery('.slider-cycle').cycle({fx:'fade',timeout:4000,speed:1000,slides:'> div',pager:'> #controllers',pagerActiveClass:'active',pagerTemplate:'<a></a>',pauseOnHover:true,autoHeight:'container',swipe:true,swipeFx:'scrollHorz',log:false});}});
459/*! jQuery UI - v1.14.2 - 2026-07-15
460* https://jqueryui.com
461* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js
462* Copyright OpenJS Foundation and other contributors; Licensed MIT */
463!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";x.ui=x.ui||{};x.ui.version="1.14.2";
464/*!
465 * jQuery UI Widget 1.14.2
466 * https://jqueryui.com
467 *
468 * Copyright OpenJS Foundation and other contributors
469 * Released under the MIT license.
470 * https://jquery.org/license
471 */var o,n,W,C,s,r,l,a,h,i,f=0,c=Array.prototype.hasOwnProperty,u=Array.prototype.slice;x.cleanData=(o=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");o(t)}),x.widget=function(t,i,e){var n,o,s,r,l={},a=t.split(".")[0];return"__proto__"===(t=t.split(".")[1])||"constructor"===t?x.error("Invalid widget name: "+t):(r=a+"-"+t,e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},n=x[a][t],o=x[a][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}l[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},l,{constructor:o,namespace:a,widgetName:t,widgetFullName:r}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o)},x.widget.extend=function(t){for(var e,i,n=u.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],c.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=u.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))}
vendor: 11,811 bytes, lines 471-509
471,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}}),x.widget;function E(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function P(t,e){return parseInt(x.css(t,e),10)||0}function H(t){return null!=t&&t===t.window}
472/*!
473 * jQuery UI Position 1.14.2
474 * https://jqueryui.com
475 *
476 * Copyright OpenJS Foundation and other contributors
477 * Released under the MIT license.
478 * https://jquery.org/license
479 *
480 * https://api.jqueryui.com/position/
481 */
482W=Math.max,C=Math.abs,s=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,h=/%$/,i=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=H(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(c){var u,d,p,g,m,v,w,y,b,_,t,e;return c&&c.of?(v="string"==typeof(c=x.extend({},c)).of?x(document).find(c.of):x(c.of),w=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(w),b=(c.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:H(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(c.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");(i=1===i.length?s.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=s.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],c[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?m.left+=d:"center"===c.at[0]&&(m.left+=d/2),"bottom"===c.at[1]?m.top+=p:"center"===c.at[1]&&(m.top+=p/2),u=E(_.at,d,p),m.left+=u[0],m.top+=u[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=P(this,"marginLeft"),n=P(this,"marginTop"),o=l+e+P(this,"marginRight")+y.width,s=a+n+P(this,"marginBottom")+y.height,h=x.extend({},m),f=E(_.my,r.outerWidth(),r.outerHeight());"right"===c.my[0]?h.left-=l:"center"===c.my[0]&&(h.left-=l/2),"bottom"===c.my[1]?h.top-=a:"center"===c.my[1]&&(h.top-=a/2),h.left+=f[0],h.top+=f[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[u[0]+f[0],u[1]+f[1]],my:c.my,at:c.at,within:w,elem:r})}),c.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",c.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):i.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var t,e;
483/*!
484 * jQuery UI :data 1.14.2
485 * https://jqueryui.com
486 *
487 * Copyright OpenJS Foundation and other contributors
488 * Released under the MIT license.
489 * https://jquery.org/license
490 */x.ui.position,x.extend(x.expr.pseudos,{data:x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}})}),x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
491/*!
492 * jQuery UI Focusable 1.14.2
493 * https://jqueryui.com
494 *
495 * Copyright OpenJS Foundation and other contributors
496 * Released under the MIT license.
497 * https://jquery.org/license
498 */
499x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&"visible"===x(t).css("visibility"))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.ui.focusable,x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=x(this.element.prop("form")),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},
500/*!
501 * jQuery UI Legacy jQuery Core patches 1.14.2
502 * https://jqueryui.com
503 *
504 * Copyright OpenJS Foundation and other contributors
505 * Released under the MIT license.
506 * https://jquery.org/license
507 *
508 */
509x.escapeSelector||(x.escapeSelector=function(t){return CSS.escape(t+"")}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+CSS.escape(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),x.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 6,810 bytes, lines 509-518
509)&&x(this).removeAttr("id")})}});x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}}});
510/*!
511 * jQuery UI Datepicker 1.14.2
512 * https://jqueryui.com
513 *
514 * Copyright OpenJS Foundation and other contributors
515 * Released under the MIT license.
516 * https://jquery.org/license
517 */
518!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.14.2"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>
518"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),V.datepicker._hideDatepicker(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}
vendor: 22,779 bytes, line 518
518))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,d<t.left+i&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,c<t.top+s&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&V.effects.effect[e]?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);
518var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.14.2",V.datepicker});
519!function(root,factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(root.jQuery);}}(this,function($){'use strict';$.fn.typeWatch=function(o){var _supportedInputTypes=['TEXT','TEXTAREA','PASSWORD','TEL','SEARCH','URL','EMAIL','DATETIME','DATE','MONTH','WEEK','TIME','DATETIME-LOCAL','NUMBER','RANGE','DIV'];var options=$.extend({wait:750,callback:function(){},highlight:true,captureLength:2,allowSubmit:false,inputTypes:_supportedInputTypes},o);function checkElement(timer,override){var value=timer.type==='DIV'?jQuery(timer.el).html():jQuery(timer.el).val();if((value.length>=options.captureLength&&value!=timer.text)||(override&&(value.length>=options.captureLength||options.allowSubmit))||(value.length==0&&timer.text))
520{timer.text=value;timer.cb.call(timer.el,value);}};function watchElement(elem){var elementType=(elem.type||elem.nodeName).toUpperCase();if(jQuery.inArray(elementType,options.inputTypes)>=0){var timer={timer:null,text:(elementType==='DIV')?jQuery(elem).html():jQuery(elem).val(),cb:options.callback,el:elem,type:elementType,wait:options.wait};if(options.highlight&&elementType!=='DIV')
521jQuery(elem).focus(function(){this.select();});var startWatch=function(evt){var timerWait=timer.wait;var overrideBool=false;var evtElementType=elementType;if(typeof evt.keyCode!='undefined'&&evt.keyCode==13&&evtElementType!=='TEXTAREA'&&elementType!=='DIV'){timerWait=1;overrideBool=true;}
522var timerCallbackFx=function(){checkElement(timer,overrideBool)}
523clearTimeout(timer.timer);timer.timer=setTimeout(timerCallbackFx,timerWait);};jQuery(elem).on('keydown paste cut input',startWatch);}};return this.each(function(){watchElement(this);});};});
524(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module==='object'&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=='undefined'){jQuery=require('jquery');}else{jQuery=require('jquery')(root);}}
525factory(jQuery);return jQuery;};}else{factory(jQuery);}})(function($){"use strict";if('undefined'===typeof $){if('console'in window){window.console.info('Too much lightness, Featherlight needs jQuery.');}
526return;}
527if($.fn.jquery.match(/-ajax/)){if('console'in window){window.console.info('Featherlight needs regular jQuery, not the slim version.');}
528return;}
529function Featherlight($content,config){if(this instanceof Featherlight){this.id=Featherlight.id++;this.setup($content,config);this.chainCallbacks(Featherlight._callbackChain);}else{var fl=new Featherlight($content,config);fl.open();return fl;}}
530var opened=[],pruneOpened=function(remove){opened=$.grep(opened,function(fl){return fl!==remove&&fl.$instance.closest('body').length>0;});return opened;};function slice(obj,set){var r={};for(var key in obj){if(key in set){r[key]=obj[key];delete obj[key];}}
531return r;}
532var iFrameAttributeSet={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1};function parseAttrs(obj,prefix){var attrs={},regex=new RegExp('^'+prefix+'([A-Z])(.*)');for(var key in obj){var match=key.match(regex);if(match){var dasherized=(match[1]+match[2].replace(/([A-Z])/g,'-$1')).toLowerCase();attrs[dasherized]=obj[key];}}
533return attrs;}
534var eventMap={keyup:'onKeyUp',resize:'onResize'};var globalEventHandler=function(event){$.each(Featherlight.opened().reverse(),function(){if(!event.isDefaultPrevented()){if
534(false===this[eventMap[event.type]](event)){event.preventDefault();event.stopPropagation();return false;}}});};var toggleGlobalEvents=function(set){if(set!==Featherlight._globalHandlerInstalled){Featherlight._globalHandlerInstalled=set;var events=$.map(eventMap,function(_,name){return name+'.'+Featherlight.prototype.namespace;}).join(' ');$(window)[set?'on':'off'](events,globalEventHandler);}};Featherlight.prototype={constructor:Featherlight,namespace:'featherlight',targetAttr:'data-featherlight',variant:null,resetCss:false,background:null,openTrigger:'click',closeTrigger:'click',filter:null,root:'body',openSpeed:250,closeSpeed:250,closeOnClick:'background',closeOnEsc:true,closeIcon:'&#10005;',loading:'',persist:false,otherClose:null,beforeOpen:$.noop,beforeContent:$.noop,beforeClose:$.noop,afterOpen:$.noop,afterContent:$.noop,afterClose:$.noop,onKeyUp:$.noop,onResize:$.noop,type:null,contentFilters:['jquery','image','html','ajax','iframe','text'],setup:function(target,config){if(typeof target==='object'&&target instanceof $===false&&!config){config=target;target=undefined;}
535var self=$.extend(this,config,{target:target}),css=!self.resetCss?self.namespace:self.namespace+'-reset',$background=$(self.background||['<div class="'+css+'-loading '+css+'">','<div class="'+css+'-content">','<button class="'+css+'-close-icon '+self.namespace+'-close" aria-label="Close">',self.closeIcon,'</button>','<div class="'+self.namespace+'-inner">'+self.loading+'</div>','</div>','</div>'].join('')),closeButtonSelector='.'+self.namespace+'-close'+(self.otherClose?','+self.otherClose:'');self.$instance=$background.clone().addClass(self.variant);self.$instance.on(self.closeTrigger+'.'+self.namespace,function(event){if(event.isDefaultPrevented()){return;}
536var $target=$(event.target);if(('background'===self.closeOnClick&&$target.is('.'+self.namespace))||'anywhere'===self.closeOnClick||$target.closest(closeButtonSelector).length){self.close(event);event.preventDefault();}});return this;},getContent:function(){if(this.persist!==false&&this.$content){return this.$content;}
537var self=this,filters=this.constructor.contentFilters,readTargetAttr=function(name){return self.$currentTarget&&self.$currentTarget.attr(name);},targetValue=readTargetAttr(self.targetAttr),data=self.target||targetValue||'';var filter=filters[self.type];if(!filter&&data in filters){filter=filters[data];data=self.target&&targetValue;}
538data=data||readTargetAttr('href')||'';if(!filter){for(var filterName in filters){if(self[filterName]){filter=filters[filterName];data=self[filterName];}}}
539if(!filter){var target=data;data=null;$.each(self.contentFilters,function(){filter=filters[this];if(filter.test){data=filter.test(target);}
540if(!data&&filter.regex&&target.match&&target.match(filter.regex)){data=target;}
541return!data;});if(!data){if('console'in window){window.console.error('Featherlight: no content filter found '+(target?' for "'+target+'"':' (no target specified)'));}
542return false;}}
543return filter.process.call(self,data);},setContent:function($content){this.$instance.removeClass(this.namespace+'-loading');this.$instance.toggleClass(this.namespace+'-iframe',$content.is('iframe'));this.$instance.find('.'+this.namespace+'-inner').not($content).slice(1).remove().end().replaceWith($.contains(this.$instance[0],$content[0])?'':$content);this.$content=$content.addClass(this.namespace+'-inner');return this;},open:function(event){var self=this;self.$instance.hide().appendTo(self.root);if((!event||!event.isDefaultPrevented())&&self.beforeOpen(event)!==false){if(event){event.preventDefault();}
544var $content=self.getContent();if($content){opened.push(self);toggleGlobalEvents(true);self.$instance.fadeIn(self.openSpeed);self.beforeContent(event);return $.when($content).always(function($openendContent){if($openendContent){self.setContent($openendContent);self.afterContent(event);}}).then(self.$instance.promise()).done(function(){self.afterOpen(event);});}}
545self.$instance.detach();return $.Deferred().reject().promise();},close:function(event){var self=this,deferred=$.Deferred();if(self.beforeClose(event)===false){deferred.reject();}else{if(0===pruneOpened(self).length){toggleGlobalEvents(false);}
546self.$instance.fadeOut(self.closeSpeed,function(){self.$instance.detach();self.afterClose(event);deferred.resolve();});}
547return deferred.promise();},resize:function(w,h){if(w&&h){this.$content.css('width','').css('height','');var ratio=Math.max(w/(this.$content.parent().width()-1),h/(this.$content.parent().height()-1));if(ratio>1){ratio=h/Math.floor(h/ratio);this.$content.css('width',''+w/ratio+'px').css('height',''+h/ratio+'px');}}}
547,chainCallbacks:function(chain){for(var name in chain){this[name]=$.proxy(chain[name],this,$.proxy(this[name],this));}}};$.extend(Featherlight,{id:0,autoBind:'[data-featherlight]',defaults:Featherlight.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(elem){return elem instanceof $&&elem;},process:function(elem){return this.persist!==false?$(elem):$(elem).clone(true);}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(url){var self=this,deferred=$.Deferred(),img=new Image(),$img=$('<img src="'+url+'" alt="" class="'+self.namespace+'-image" />');img.onload=function(){$img.naturalWidth=img.width;$img.naturalHeight=img.height;deferred.resolve($img);};img.onerror=function(){deferred.reject($img);};img.src=url;return deferred.promise();}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(html){return $(html);}},ajax:{regex:/./,process:function(url){var self=this,deferred=$.Deferred();var $container=$('<div></div>').load(url,function(response,status){if(status!=="error"){deferred.resolve($container.contents());}
548deferred.reject();});return deferred.promise();}},iframe:{process:function(url){var deferred=new $.Deferred();var $content=$('<iframe/>');var css=parseAttrs(this,'iframe');var attrs=slice(css,iFrameAttributeSet);$content.hide().attr('src',url).attr(attrs).css(css).on('load',function(){deferred.resolve($content.show());}).appendTo(this.$instance.find('.'+this.namespace+'-content'));return deferred.promise();}},text:{process:function(text){return $('<div>',{text:text});}}},functionAttributes:['beforeOpen','afterOpen','beforeContent','afterContent','beforeClose','afterClose'],readElementConfig:function(element,namespace){var Klass=this,regexp=new RegExp('^data-'+namespace+'-(.*)'),config={};if(element&&element.attributes){$.each(element.attributes,function(){var match=this.name.match(regexp);if(match){var val=this.value,name=$.camelCase(match[1]);if($.inArray(name,Klass.functionAttributes)>=0){val=new Function(val);}else{try{val=JSON.parse(val);}
549catch(e){}}
550config[name]=val;}});}
551return config;},extend:function(child,defaults){var Ctor=function(){this.constructor=child;};Ctor.prototype=this.prototype;child.prototype=new Ctor();child.__super__=this.prototype;$.extend(child,this,defaults);child.defaults=child.prototype;return child;},attach:function($source,$content,config){var Klass=this;if(typeof $content==='object'&&$content instanceof $===false&&!config){config=$content;$content=undefined;}
552config=$.extend({},config);var namespace=config.namespace||Klass.defaults.namespace,tempConfig=$.extend({},Klass.defaults,Klass.readElementConfig($source[0],namespace),config),sharedPersist;var handler=function(event){var $target=$(event.currentTarget);var elemConfig=$.extend({$source:$source,$currentTarget:$target},Klass.readElementConfig($source[0],tempConfig.namespace),Klass.readElementConfig(event.currentTarget,tempConfig.namespace),config);var fl=sharedPersist||$target.data('featherlight-persisted')||new Klass($content,elemConfig);if(fl.persist==='shared'){sharedPersist=fl;}else if(fl.persist!==false){$target.data('featherlight-persisted',fl);}
553if(elemConfig.$currentTarget.blur){elemConfig.$currentTarget.blur();}
554fl.open(event);};$source.on(tempConfig.openTrigger+'.'+tempConfig.namespace,tempConfig.filter,handler);return{filter:tempConfig.filter,handler:handler};},current:function(){var all=this.opened();return all[all.length-1]||null;},opened:function(){var klass=this;pruneOpened();return $.grep(opened,function(fl){return fl instanceof klass;});},close:function(event){var cur=this.current();if(cur){return cur.close(event);}},_onReady:function(){var Klass=this;if(Klass.autoBind){var $autobound=$(Klass.autoBind);$autobound.each(function(){Klass.attach($(this));});$(document).on('click',Klass.autoBind,function(evt){if(evt.isDefaultPrevented()){return;}
555var $cur=$(evt.currentTarget);var len=$autobound.length;$autobound=$autobound.add($cur);if(len===$autobound.length){return;}
556var data=Klass.attach($cur);if(!data.filter||$(evt.target).parentsUntil($cur,data.filter).length>0){data.handler(evt);}});}},_callbackChain:{onKeyUp:function(_super,event){if(27===event.keyCode){if(this.closeOnEsc){$.featherlight.close(event);}
557return false;}else{return _super(event);}},beforeOpen:function(_super,event){$(document.documentElement).addClass('with-featherlight');this._previouslyActive=document.activeElement;this._$previouslyTabbable=$("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not('[tabindex]').not(this.$instance.find('button'));this._$previouslyWithTabIndex=$('[tabindex]').not('[tabindex="-1"]');this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(_i,elem){return $(elem).attr('tabindex');});this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr('tabindex',-1);if(document.activeElement.blur){document.activeElement.blur();}
558return _super(event);},afterClose:function(_super,event){var r=_super(event);var self=this;this._$previouslyTabbable.removeAttr('tabindex');this._$previouslyWithTabIndex.each(function(i,elem){$(elem).attr('tabindex',self._previousWithTabIndices[i]);});this._previouslyActive.focus();if(Featherlight.opened().length===0){$(document.documentElement).removeClass('with-featherlight');}
559return r;},onResize:function(_super,event){this.resize(this.$content.naturalWi
vendor: 5,245 bytes, lines 559-561
559dth,this.$content.naturalHeight);return _super(event);},afterContent:function(_super,event){var r=_super(event);this.$instance.find('[autofocus]:not([disabled])').focus();this.onResize(event);return r;}}});$.featherlight=Featherlight;$.fn.featherlight=function($content,config){Featherlight.attach(this,$content,config);return this;};$(document).ready(function(){Featherlight._onReady();});});
560/*! Select2 4.0.10 | https://github.com/select2/select2/blob/master/LICENSE.md */
561!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(d){var e=function(){if(d&&d.fn&&d.fn.select2&&d.fn.select2.amd)var e=d.fn.select2.amd;var t,n,i,h,o,s,f,g,m,v,y,_,r,a,w,l;function b(e,t){return r.call(e,t)}function c(e,t){var n,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function S(e){if(b(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!b(m,e)&&!b(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function D(e){return e?u(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,w=/\.js$/,f=function(e,t){var n,i=u(e),r=i[0],o=t[1];return e=i[1],r&&(n=S(r=c(r,o))),r?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return c(e,t)}}(o)):c(e,o):(r=(i=u(e=c(e,o)))[0],e=i[1],r&&(n=S(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,i){var r,o,s,a,l,c,u,d=[],p=typeof n;if(c=D(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)r=d[l]=g.module(e);else if(b(m,o)||b(v,o)||b(_,o))d[l]=S(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(i,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):S(f(e,D(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(m,e)||b(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=d||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
561);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[r];t.setAttribute(r,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}
vendor: 4,850 bytes, line 561
561),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
561se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var t=r(this).parent(),n=l.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o);var s=i.title||i.text;s&&r.attr("title",s),l.StoreData(r[0],"data",i),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}
vendor: 9,230 bytes, line 561
561),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(r,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(var s=0;s<i.length;s++)if(o={data:i[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),i=r('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(i[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(i)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
561V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=l(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,l(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple")){if(r.selected=!1,l(r.element).is("option"))return r.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),i=this._normalizeItem(e);return i.element=t,a.StoreData(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=l(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return f.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(g(this)).id}).get(),r=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);
vendor: 10,993 bytes, line 561
561if(0<=g.inArray(a.id,i)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=i.option(t);n.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([n])}!function(e){i.trigger("select",{data:e})}(t)});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,r)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(i(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.
561select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,u=l>r.bottom+s,d={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=o.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,w,$,b,A,x,S,D,C,E,O,T,q,j,L,I,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=$:null!=e.data?e.dataAdapter=w:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=C;else{var i=y.Decorate(C,E);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,I)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var r=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptC
561ontainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=c.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,i=0;i<e.length;i++){var r=new s,o=e[i];if("string"==typeof o)try{r=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,r=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else r=c.isPlainObject(o)?new s(o):o;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var i=y._convertData(n);c.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,d,r,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=r.applyFromElement(this.options,t)),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var o=e[0].attributes[r].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(r,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._syncA),r.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
561,d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=r('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){return{syncCssClasses:function(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}
vendor: 2,672 bytes, line 561
561var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function i(e,t){var n=[];return e.selected||-1!==s.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,i(e.children,t)),n}for(var n=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];n.push.apply(n,i(o,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(e){s.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("change")},e.prototype.unselect=function(e,r){var o=this;r.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.id!=i.id&&t.push(i.id)}
vendor: 5,249 bytes, line 561
561o.$element.val(t.join(o._valueSeparator)),o.$element.trigger("change")})},e.prototype.query=function(e,t,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(t,o);null!==s&&i.push(s)}n({results:i})},e.prototype.addOptions=function(e,t){var n=s.map(t,function(e){return i.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(s){return function(o){return function(e,t){var n=s.extend(!0,{},t);if(null==e.term||""===s.trim(e.term))return n;if(t.children){for(var i=t.children.length-1;0<=i;i--){var r=t.children[i];o(e.term,r.text,r)||n.children.splice(i,1)}if(0<n.children.length)return n}return o(e.term,t.text,t)?n:null}}}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),l=function(p){var h,f,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var n=e.length;n;)p.event.fixHooks[e[--n]]=p.event.mouseHooks;var m=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i;p.data(this,"mousewheel-line-height",m.getLineHeight(this)),p.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function i(e){var t,n=e||window.event,i=g.call(arguments,1),r=0,o=0,s=0,a=0,l=0;if((e=p.event.fix(n)).type="mousewheel","detail"in n&&(s=-1*n.detail),"wheelDelta"in n&&(s=n.wheelDelta),"wheelDeltaY"in n&&(s=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*s,s=0),r=0===s?o:s,"deltaY"in n&&(r=s=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===s&&(r=-1*o)),0!==s||0!==o){if(1===n.deltaMode){var c=p.data(this,"mousewheel-line-height");r*=c,s*=c,o*=c}else if(2===n.deltaMode){var u=p.data(this,"mousewheel-page-height");r*=u,s*=u,o*=u}if(t=Math.max(Math.abs(s),Math.abs(o)),(!f||t<f)&&y(n,f=t)&&(f/=40),y(n,t)&&(r/=40,o/=40,s/=40),r=Math[1<=r?"floor":"ceil"](r/f),o=Math[1<=o?"floor":"ceil"](o/f),s=Math[1<=s?"floor":"ceil"](s/f),m.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=o,e.deltaY=s,e.deltaFactor=f,e.offsetX=a,e.offsetY=l,e.deltaMode=0,i.unshift(e,r,o,s),h&&clearTimeout(h),h=setTimeout(v,200),(p.event.dispatch||p.event.handle).apply(this,i)}}function v(){f=null}function y(e,t){return m.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],l):"object"==typeof exports?module.exports=l:l(d),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,s){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);
561var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<r.inArray(t,a)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return d.fn.select2.amd=e,t});
562/*! tooltipster v4.2.6 */
563!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.6
vendor: 28,893 bytes, line 563
563",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]))
vendor: 9,659 bytes, lines 563-567
563;var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});
564/*! Lity - v2.1.0 - 2016-09-19
565* http://sorgalla.com/lity/
566* Copyright (c) 2015-2016 Jan Sorgalla; Licensed MIT */
567!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a,require("jquery")):a.lity=b(
vendor: 4,762 bytes, line 567
567a,a.jQuery||a.Zepto)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a){var b=A();return L&&a.length?(a.one(L,b.resolve),setTimeout(b.resolve,500)):b.resolve(),b.promise()}function d(a,c,d){if(1===arguments.length)return b.extend({},a);if("string"==typeof c){if("undefined"==typeof d)return"undefined"==typeof a[c]?null:a[c];a[c]=d}else b.extend(a,c);return this}function e(a){for(var b,c=decodeURI(a.split("#")[0]).split("&"),d={},e=0,f=c.length;e<f;e++)c[e]&&(b=c[e].split("="),d[b[0]]=b[1]);return d}function f(a,c){return a+(a.indexOf("?")>-1?"&":"?")+b.param(c)}function g(a,b){var c=a.indexOf("#");return-1===c?b:(c>0&&(a=a.substr(c)),b+a)}function h(a){return b('<span class="lity-error"/>').append(a)}function i(a,c){var d=c.opener()&&c.opener().data("lity-desc")||"Image with no description",e=b('<img src="'+a+'" alt="'+d+'"/>'),f=A(),g=function(){f.reject(h("Failed loading image"))};return e.on("load",function(){return 0===this.naturalWidth?g():void f.resolve(e)}).on("error",g),f.promise()}function j(a,c){var d,e,f;try{d=b(a)}catch(a){return!1}return!!d.length&&(e=b('<i style="display:none !important"/>'),f=d.hasClass("lity-hide"),c.element().one("lity:remove",function(){e.before(d).remove(),f&&!d.closest(".lity-content").length&&d.addClass("lity-hide")}),d.removeClass("lity-hide").after(e))}function k(a){var c=I.exec(a);return!!c&&n(g(a,f("https://www.youtube"+(c[2]||"")+".com/embed/"+c[4],b.extend({autoplay:1},e(c[5]||"")))))}function l(a){var c=J.exec(a);return!!c&&n(g(a,f("https://player.vimeo.com/video/"+c[3],b.extend({autoplay:1},e(c[4]||"")))))}function m(a){var b=K.exec(a);return!!b&&n(g(a,f("https://www.google."+b[3]+"/maps?"+b[6],{output:b[6].indexOf("layer=c")>0?"svembed":"embed"})))}function n(a){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+a+'"/></div>'}function o(){return y.documentElement.clientHeight?y.documentElement.clientHeight:Math.round(z.height())}function p(a){var b=u();b&&(27===a.keyCode&&b.close(),9===a.keyCode&&q(a,b))}function q(a,b){var c=b.element().find(F),d=c.index(y.activeElement);a.shiftKey&&d<=0?(c.get(c.length-1).focus(),a.preventDefault()):a.shiftKey||d!==c.length-1||(c.get(0).focus(),a.preventDefault())}function r(){b.each(C,function(a,b){b.resize()})}function s(a){1===C.unshift(a)&&(B.addClass("lity-active"),z.on({resize:r,keydown:p})),b("body > *").not(a.element()).addClass("lity-hidden").each(function(){var a=b(this);void 0===a.data(E)&&a.data(E,a.attr(D)||null)}).attr(D,"true")}function t(a){var c;a.element().attr(D,"true"),1===C.length&&(B.removeClass("lity-active"),z.off({resize:r,keydown:p})),C=b.grep(C,function(b){return a!==b}),c=C.length?C[0].element():b(".lity-hidden"),c.removeClass("lity-hidden").each(function(){var a=b(this),c=a.data(E);c?a.attr(D,c):a.removeAttr(D),a.removeData(E)})}function u(){return 0===C.length?null:C[0]}function v(a,c,d,e){var f,g="inline",h=b.extend({},d);return e&&h[e]?(f=h[e](a,c),g=e):(b.each(["inline","iframe"],function(a,b){delete h[b],h[b]=d[b]}),b.each(h,function(b,d){return!d||(!(!d.test||d.test(a,c))||(f=d(a,c),!1!==f?(g=b,!1):void 0))})),{handler:g,content:f||""}}function w(a,e,f,g){function h(a){k=b(a).css("max-height",o()+"px"),j.find(".lity-loader").each(function(){var a=b(this);c(a).always(function(){a.remove()})}),j.removeClass("lity-loading").find(".lity-content").empty().append(k),m=!0,k.trigger("lity:ready",[l])}var i,j,k,l=this,m=!1,n=!1;e=b.extend({},G,e),j=b(e.template),l.element=function(){return j},l.opener=function(){return f},l.options=b.proxy(d,l,e),l.handlers=b.proxy(d,l,e.handlers),l.resize=function(){m&&!n&&k.css("max-height",o()+"px").trigger("lity:resize",[l])},l.close=function(){if(m&&!n){n=!0,t(l);var a=A();return g&&b.contains(j,y.activeElement)&&g.focus(),k.trigger("lity:close",[l]),j.removeClass("lity-opened").addClass("lity-closed"),c(k.add(j)).always(function(){k.trigger("lity:remove",[l]),j.remove(),j=void 0,a.resolve()}),a.promise()}},i=v(a,l,e.handlers,e.handler),j.attr(D,"false").addClass("lity-loading lity-opened lity-"+i.handler).appendTo("body").focus().on("click","[data-lity-close]",function(a){b(a.target).is("[data-lity-close]")&&l.close()}).trigger("lity:open",[l]),s(l),b.when(i.content).always(h)}function x(a,c,d){a.preventDefault?(a.preventDefault(),d=b(this),a=d.data("lity-target")||d.attr("href")||d.attr("src")):d=b(d);var e=new w(a,b.extend({},d.data("lity-options")||d.data("lity"),c),d,y.activeElement);if(!a.preventDefault)return e}var y=a.document,z=b(a),A=b.Deferred,B=b("html"),C=[],D="aria-hidden",E="lity-"+D,F='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
567([tabindex^="-"])',G={handler:null,handlers:{image:i,inline:j,youtube:k,vimeo:l,iframe:n},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},H=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,I=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,J=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,K=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,L=function(){var a=y.createElement("div"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return b[c];return!1}();return i.test=function(a){return H.test(a)},x.version="2.1.0",x.options=b.proxy(d,x,G),x.handlers=b.proxy(d,x,G.handlers),x.current=u,b(y).on("click.lity","[data-lity]",x),x});
568
569!function(r){r.fn.colourBrightness=function(){function r(r){for(var t="";"html"!=r[0].tagName.toLowerCase()&&(t=r.css("background-color"),"rgba(0, 0, 0, 0)"==t||"transparent"==t);)r=r.parent();return t}var t,a,s,e,n=r(this);return n.match(/^rgb/)?(n=n.match(/rgba?\(([^)]+)\)/)[1],n=n.split(/ *, */).map(Number),t=n[0],a=n[1],s=n[2]):"#"==n[0]&&7==n.length?(t=parseInt(n.slice(1,3),16),a=parseInt(n.slice(3,5),16),s=parseInt(n.slice(5,7),16)):"#"==n[0]&&4==n.length&&(t=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16),s=parseInt(n[3]+n[3],16)),e=(299*t+587*a+114*s)/1e3,125>e?this.removeClass("light").addClass("dark"):this.removeClass("dark").addClass("light"),this}}(jQuery);
570
571/**
572 * Owl carousel
vendor: 102,262 bytes, lines 573-3445
573 * @version 2.3.4
574 * @author Bartosz Wojciechowski
575 * @author David Deutsch
576 * @license The MIT License (MIT)
577 * @todo Lazy Load Icon
578 * @todo prevent animationend bubling
579 * @todo itemsScaleUp
580 * @todo Test Zepto
581 * @todo stagePadding calculate wrong active classes
582 */
583; (function ($, window, document, undefined) {
584	/**
585	 * Creates a carousel.
586	 * @class The Owl Carousel.
587	 * @public
588	 * @param {HTMLElement|jQuery} element - The element to create the carousel for.
589	 * @param {Object} [options] - The options
590	 */
591    function Owl(element, options) {
592		/**
593		 * Current settings for the carousel.
594		 * @public
595		 */
596        this.settings = null;
597		/**
598		 * Current options set by the caller including defaults.
599		 * @public
600		 */
601        this.options = $.extend({}, Owl.Defaults, options);
602		/**
603		 * Plugin element.
604		 * @public
605		 */
606        this.$element = $(element);
607		/**
608		 * Proxied event handlers.
609		 * @protected
610		 */
611        this._handlers = {};
612		/**
613		 * References to the running plugins of this carousel.
614		 * @protected
615		 */
616        this._plugins = {};
617		/**
618		 * Currently suppressed events to prevent them from being retriggered.
619		 * @protected
620		 */
621        this._supress = {};
622		/**
623		 * Absolute current position.
624		 * @protected
625		 */
626        this._current = null;
627		/**
628		 * Animation speed in milliseconds.
629		 * @protected
630		 */
631        this._speed = null;
632		/**
633		 * Coordinates of all items in pixel.
634		 * @todo The name of this member is missleading.
635		 * @protected
636		 */
637        this._coordinates = [];
638		/**
639		 * Current breakpoint.
640		 * @todo Real media queries would be nice.
641		 * @protected
642		 */
643        this._breakpoint = null;
644		/**
645		 * Current width of the plugin element.
646		 */
647        this._width = null;
648		/**
649		 * All real items.
650		 * @protected
651		 */
652        this._items = [];
653		/**
654		 * All cloned items.
655		 * @protected
656		 */
657        this._clones = [];
658		/**
659		 * Merge values of all items.
660		 * @todo Maybe this could be part of a plugin.
661		 * @protected
662		 */
663        this._mergers = [];
664		/**
665		 * Widths of all items.
666		 */
667        this._widths = [];
668		/**
669		 * Invalidated parts within the update process.
670		 * @protected
671		 */
672        this._invalidated = {};
673		/**
674		 * Ordered list of workers for the update process.
675		 * @protected
676		 */
677        this._pipe = [];
678		/**
679		 * Current state information for the drag operation.
680		 * @todo #261
681		 * @protected
682		 */
683        this._drag = {
684            time: null,
685            target: null,
686            pointer: null,
687            stage: {
688                start: null,
689                current: null
690            },
691            direction: null
692        };
693		/**
694		 * Current state information and their tags.
695		 * @type {Object}
696		 * @protected
697		 */
698        this._states = {
699            current: {},
700            tags: {
701                'initializing': ['busy'],
702                'animating': ['busy'],
703                'dragging': ['interacting']
704            }
705        };
706        $.each(['onResize', 'onThrottledResize'], $.proxy(function (i, handler) {
707            this._handlers[handler] = $.proxy(this[handler], this);
708        }, this));
709        $.each(Owl.Plugins, $.proxy(function (key, plugin) {
710            this._plugins[key.charAt(0).toLowerCase() + key.slice(1)]
711                = new plugin(this);
712        }, this));
713        $.each(Owl.Workers, $.proxy(function (priority, worker) {
714            this._pipe.push({
715                'filter': worker.filter,
716                'run': $.proxy(worker.run, this)
717            });
718        }, this));
719        this.setup();
720        this.initialize();
721    }
722	/**
723	 * Default options for the carousel.
724	 * @public
725	 */
726    Owl.Defaults = {
727        items: 3,
728        loop: false,
729        center: false,
730        rewind: false,
731        checkVisibility: true,
732        mouseDrag: true,
733        touchDrag: true,
734        pullDrag: true,
735        freeDrag: false,
736        margin: 0,
737        stagePadding: 0,
738        merge: false,
739        mergeFit: true,
740        autoWidth: false,
741        startPosition: 0,
742        rtl: false,
743        smartSpeed: 250,
744        fluidSpeed: false,
745        dragEndSpeed: false,
746        responsive: {},
747        responsiveRefreshRate: 200,
748        responsiveBaseElement: window,
749        fallbackEasing: 'swing',
750        slideTransition: '',
751        info: false,
752        nestedItemSelector: false,
753        itemElement: 'div',
754        stageElement: 'div',
755        refreshClass: 'owl-refresh',
756        loadedClass: 'owl-loaded',
757        loadingClass: 'owl-loading',
758        rtlClass: 'owl-rtl',
759        responsiveClass: 'owl-responsive',
760        dragClass: 'owl-drag',
761        itemClass: 'owl-item',
762        stageClass: 'owl-stage',
763        stageOuterClass: 'owl-stage-outer',
764        grabClass: 'owl-grab'
765    };
766	/**
767	 * Enumeration for width.
768	 * @public
769	 * @readonly
770	 * @enum {String}
771	 */
772    Owl.Width = {
773        Default: 'default',
774        Inner: 'inner',
775        Outer: 'outer'
776    };
777	/**
778	 * Enumeration for types.
779	 * @public
780	 * @readonly
781	 * @enum {String}
782	 */
783    Owl.Type = {
784        Event: 'event',
785        State: 'state'
786    };
787	/**
788	 * Contains all registered plugins.
789	 * @public
790	 */
791    Owl.Plugins = {};
792	/**
793	 * List of workers involved in the update process.
794	 */
795    Owl.Workers = [{
796        filter: ['width', 'settings'],
797        run: function () {
798            this._width = this.$element.width();
799        }
800    }, {
801        filter: ['width', 'items', 'settings'],
802        run: function (cache) {
803            cache.current = this._items && this._items[this.relative(this._current)];
804        }
805    }, {
806        filter: ['items', 'settings'],
807        run: function () {
808            this.$stage.children('.cloned').remove();
809        }
810    }, {
811        filter: ['width', 'items', 'settings'],
812        run: function (cache) {
813            var margin = this.settings.margin || '',
814                grid = !this.settings.autoWidth,
815                rtl = this.settings.rtl,
816                css = {
817                    'width': 'auto',
818                    'margin-left': rtl ? margin : '',
819                    'margin-right': rtl ? '' : margin
820                };
821            !grid && this.$stage.children().css(css);
822            cache.css = css;
823        }
824    }, {
825        filter: ['width', 'items', 'settings'],
826        run: function (cache) {
827            var width = (this.width() / this.settings.items).toFixed(3) - this.settings.margin,
828                merge = null,
829                iterator = this._items.length,
830                grid = !this.settings.autoWidth,
831                widths = [];
832            cache.items = {
833                merge: false,
834                width: width
835            };
836            while (iterator--) {
837                merge = this._mergers[iterator];
838                merge = this.settings.mergeFit && Math.min(merge, this.settings.items) || merge;
839                cache.items.merge = merge > 1 || cache.items.merge;
840                widths[iterator] = !grid ? this._items[iterator].width() : width * merge;
841            }
842            this._widths = widths;
843        }
844    }, {
845        filter: ['items', 'settings'],
846        run: function () {
847            var clones = [],
848                items = this._items,
849                settings = this.settings,
850                view = Math.max(settings.items * 2, 4),
851                size = Math.ceil(items.length / 2) * 2,
852                repeat = settings.loop && items.length ? settings.rewind ? view : Math.max(view, size) : 0,
853                append = '',
854                prepend = '';
855            repeat /= 2;
856            while (repeat > 0) {
857                clones.push(this.normalize(clones.length / 2, true));
858                append = append + items[clones[clones.length - 1]][0].outerHTML;
859                clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
860                prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
861                repeat -= 1;
862            }
863            this._clones = clones;
864            $(append).addClass('cloned').appendTo(this.$stage);
865            $(prepend).addClass('cloned').prependTo(this.$stage);
866        }
867    }, {
868        filter: ['width', 'items', 'settings'],
869        run: function () {
870            var rtl = this.settings.rtl ? 1 : -1,
871                size = this._clones.length + this._items.length,
872                iterator = -1,
873                previous = 0,
874                current = 0,
875                coordinates = [];
876            while (++iterator < size) {
877                previous = coordinates[iterator - 1] || 0;
878                current = this._widths[this.relative(iterator)] + this.settings.margin;
879                coordinates.push(previous + current * rtl);
880            }
881            this._coordinates = coordinates;
882        }
883    }, {
884        filter: ['width', 'items', 'settings'],
885        run: function () {
886            var padding = this.settings.stagePadding,
887                coordinates = this._coordinates,
888                css = {
889                    'width': Math.ceil(Math.abs(coordinates[coordinates.length - 1])) + padding * 2,
890                    'padding-left': padding || '',
891                    'padding-right': padding || ''
892                };
893            this.$stage.css(css);
894        }
895    }, {
896        filter: ['width', 'items', 'settings'],
897        run: function (cache) {
898            var iterator = this._coordinates.length,
899                grid = !this.settings.autoWidth,
900                items = this.$stage.children();
901            if (grid && cache.items.merge) {
902                while (iterator--) {
903                    cache.css.width = this._widths[this.relative(iterator)];
904                    items.eq(iterator).css(cache.css);
905                }
906            } else if (grid) {
907                cache.css.width = cache.items.width;
908                items.css(cache.css);
909            }
910        }
911    }, {
912        filter: ['items'],
913        run: function () {
914            this._coordinates.length < 1 && this.$stage.removeAttr('style');
915        }
916    }, {
917        filter: ['width', 'items', 'settings'],
918        run: function (cache) {
919            cache.current = cache.current ? this.$stage.children().index(cache.current) : 0;
920            cache.current = Math.max(this.minimum(), Math.min(this.maximum(), cache.current));
921            this.reset(cache.current);
922        }
923    }, {
924        filter: ['position'],
925        run: function () {
926            this.animate(this.coordinates(this._current));
927        }
928    }, {
929        filter: ['width', 'position', 'items', 'settings'],
930        run: function () {
931            var rtl = this.settings.rtl ? 1 : -1,
932                padding = this.settings.stagePadding * 2,
933                begin = this.coordinates(this.current()) + padding,
934                end = begin + this.width() * rtl,
935                inner, outer, matches = [], i, n;
936            for (i = 0, n = this._coordinates.length; i < n; i++) {
937                inner = this._coordinates[i - 1] || 0;
938                outer = Math.abs(this._coordinates[i]) + padding * rtl;
939                if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end)))
940                    || (this.op(outer, '<', begin) && this.op(outer, '>', end))) {
941                    matches.push(i);
942                }
943            }
944            this.$stage.children('.active').removeClass('active');
945            this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');
946            this.$stage.children('.center').removeClass('center');
947            if (this.settings.center) {
948                this.$stage.children().eq(this.current()).addClass('center');
949            }
950        }
951    }];
952	/**
953	 * Create the stage DOM element
954	 */
955    Owl.prototype.initializeStage = function () {
956        this.$stage = this.$element.find('.' + this.settings.stageClass);
957        if (this.$stage.length) {
958            return;
959        }
960        this.$element.addClass(this.options.loadingClass);
961        this.$stage = $('<' + this.settings.stageElement + '>', {
962            "class": this.settings.stageClass
963        }).wrap($('<div/>', {
964            "class": this.settings.stageOuterClass
965        }));
966        this.$element.append(this.$stage.parent());
967    };
968	/**
969	 * Create item DOM elements
970	 */
971    Owl.prototype.initializeItems = function () {
972        var $items = this.$element.find('.owl-item');
973        if ($items.length) {
974            this._items = $items.get().map(function (item) {
975                return $(item);
976            });
977            this._mergers = this._items.map(function () {
978                return 1;
979            });
980            this.refresh();
981            return;
982        }
983        this.replace(this.$element.children().not(this.$stage.parent()));
984        if (this.isVisible()) {
985            this.refresh();
986        } else {
987            this.invalidate('width');
988        }
989        this.$element
990            .removeClass(this.options.loadingClass)
991            .addClass(this.options.loadedClass);
992    };
993	/**
994	 * Initializes the carousel.
995	 * @protected
996	 */
997    Owl.prototype.initialize = function () {
998        this.enter('initializing');
999        this.trigger('initialize');
1000        this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl);
1001        if (this.settings.autoWidth && !this.is('pre-loading')) {
1002            var imgs, nestedSelector, width;
1003            imgs = this.$element.find('img');
1004            nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
1005            width = this.$element.children(nestedSelector).width();
1006            if (imgs.length && width <= 0) {
1007                this.preloadAutoWidthImages(imgs);
1008            }
1009        }
1010        this.initializeStage();
1011        this.initializeItems();
1012        this.registerEventHandlers();
1013        this.leave('initializing');
1014        this.trigger('initialized');
1015    };
1016	/**
1017	 * @returns {Boolean} visibility of $element
1018	 *                    if you know the carousel will always be visible you can set `checkVisibility` to `false` to
1019	 *                    prevent the expensive browser layout forced reflow the $element.is(':visible') does
1020	 */
1021    Owl.prototype.isVisible = function () {
1022        return this.settings.checkVisibility
1023            ? this.$element.is(':visible')
1024            : true;
1025    };
1026	/**
1027	 * Setups the current settings.
1028	 * @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
1029	 * @todo Support for media queries by using `matchMedia` would be nice.
1030	 * @public
1031	 */
1032    Owl.prototype.setup = function () {
1033        var viewport = this.viewport(),
1034            overwrites = this.options.responsive,
1035            match = -1,
1036            settings = null;
1037        if (!overwrites) {
1038            settings = $.extend({}, this.options);
1039        } else {
1040            $.each(overwrites, function (breakpoint) {
1041                if (breakpoint <= viewport && breakpoint > match) {
1042                    match = Number(breakpoint);
1043                }
1044            });
1045            settings = $.extend({}, this.options, overwrites[match]);
1046            if (typeof settings.stagePadding === 'function') {
1047                settings.stagePadding = settings.stagePadding();
1048            }
1049            delete settings.responsive;
1050            if (settings.responsiveClass) {
1051                this.$element.attr('class',
1052                    this.$element.attr('class').replace(new RegExp('(' + this.options.responsiveClass + '-)\\S+\\s', 'g'), '$1' + match)
1053                );
1054            }
1055        }
1056        this.trigger('change', { property: { name: 'settings', value: settings } });
1057        this._breakpoint = match;
1058        this.settings = settings;
1059        this.invalidate('settings');
1060        this.trigger('changed', { property: { name: 'settings', value: this.settings } });
1061    };
1062	/**
1063	 * Updates option logic if necessery.
1064	 * @protected
1065	 */
1066    Owl.prototype.optionsLogic = function () {
1067        if (this.settings.autoWidth) {
1068            this.settings.stagePadding = false;
1069            this.settings.merge = false;
1070        }
1071    };
1072	/**
1073	 * Prepares an item before add.
1074	 * @todo Rename event parameter `content` to `item`.
1075	 * @protected
1076	 * @returns {jQuery|HTMLElement} - The item container.
1077	 */
1078    Owl.prototype.prepare = function (item) {
1079        var event = this.trigger('prepare', { content: item });
1080        if (!event.data) {
1081            event.data = $('<' + this.settings.itemElement + '/>')
1082                .addClass(this.options.itemClass).append(item)
1083        }
1084        this.trigger('prepared', { content: event.data });
1085        return event.data;
1086    };
1087	/**
1088	 * Updates the view.
1089	 * @public
1090	 */
1091    Owl.prototype.update = function () {
1092        var i = 0,
1093            n = this._pipe.length,
1094            filter = $.proxy(function (p) { return this[p] }, this._invalidated),
1095            cache = {};
1096        while (i < n) {
1097            if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) {
1098                this._pipe[i].run(cache);
1099            }
1100            i++;
1101        }
1102        this._invalidated = {};
1103        !this.is('valid') && this.enter('valid');
1104    };
1105	/**
1106	 * Gets the width of the view.
1107	 * @public
1108	 * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return.
1109	 * @returns {Number} - The width of the view in pixel.
1110	 */
1111    Owl.prototype.width = function (dimension) {
1112        dimension = dimension || Owl.Width.Default;
1113        switch (dimension) {
1114            case Owl.Width.Inner:
1115            case Owl.Width.Outer:
1116                return this._width;
1117            default:
1118                return this._width - this.settings.stagePadding * 2 + this.settings.margin;
1119        }
1120    };
1121	/**
1122	 * Refreshes the carousel primarily for adaptive purposes.
1123	 * @public
1124	 */
1125    Owl.prototype.refresh = function () {
1126        this.enter('refreshing');
1127        this.trigger('refresh');
1128        this.setup();
1129        this.optionsLogic();
1130        this.$element.addClass(this.options.refreshClass);
1131        this.update();
1132        this.$element.removeClass(this.options.refreshClass);
1133        this.leave('refreshing');
1134        this.trigger('refreshed');
1135    };
1136	/**
1137	 * Checks window `resize` event.
1138	 * @protected
1139	 */
1140    Owl.prototype.onThrottledResize = function () {
1141        window.clearTimeout(this.resizeTimer);
1142        this.resizeTimer = window.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate);
1143    };
1144	/**
1145	 * Checks window `resize` event.
1146	 * @protected
1147	 */
1148    Owl.prototype.onResize = function () {
1149        if (!this._items.length) {
1150            return false;
1151        }
1152        if (this._width === this.$element.width()) {
1153            return false;
1154        }
1155        if (!this.isVisible()) {
1156            return false;
1157        }
1158        this.enter('resizing');
1159        if (this.trigger('resize').isDefaultPrevented()) {
1160            this.leave('resizing');
1161            return false;
1162        }
1163        this.invalidate('width');
1164        this.refresh();
1165        this.leave('resizing');
1166        this.trigger('resized');
1167    };
1168	/**
1169	 * Registers event handlers.
1170	 * @todo Check `msPointerEnabled`
1171	 * @todo #261
1172	 * @protected
1173	 */
1174    Owl.prototype.registerEventHandlers = function () {
1175        if ($.support.transition) {
1176            this.$stage.on($.support.transition.end + '.owl.core', $.proxy(this.onTransitionEnd, this));
1177        }
1178        if (this.settings.responsive !== false) {
1179            this.on(window, 'resize', this._handlers.onThrottledResize);
1180        }
1181        if (this.settings.mouseDrag) {
1182            this.$element.addClass(this.options.dragClass);
1183            this.$stage.on('mousedown.owl.core', $.proxy(this.onDragStart, this));
1184            this.$stage.on('dragstart.owl.core selectstart.owl.core', function () { return false });
1185        }
1186        if (this.settings.touchDrag) {
1187            this.$stage.on('touchstart.owl.core', $.proxy(this.onDragStart, this));
1188            this.$stage.on('touchcancel.owl.core', $.proxy(this.onDragEnd, this));
1189        }
1190    };
1191	/**
1192	 * Handles `touchstart` and `mousedown` events.
1193	 * @todo Horizontal swipe threshold as option
1194	 * @todo #261
1195	 * @protected
1196	 * @param {Event} event - The event arguments.
1197	 */
1198    Owl.prototype.onDragStart = function (event) {
1199        var stage = null;
1200        if (event.which === 3) {
1201            return;
1202        }
1203        if ($.support.transform) {
1204            stage = this.$stage.css('transform').replace(/.*\(|\)| /g, '').split(',');
1205            stage = {
1206                x: stage[stage.length === 16 ? 12 : 4],
1207                y: stage[stage.length === 16 ? 13 : 5]
1208            };
1209        } else {
1210            stage = this.$stage.position();
1211            stage = {
1212                x: this.settings.rtl ?
1213                    stage.left + this.$stage.width() - this.width() + this.settings.margin :
1214                    stage.left,
1215                y: stage.top
1216            };
1217        }
1218        if (this.is('animating')) {
1219            $.support.transform ? this.animate(stage.x) : this.$stage.stop()
1220            this.invalidate('position');
1221        }
1222        this.$element.toggleClass(this.options.grabClass, event.type === 'mousedown');
1223        this.speed(0);
1224        this._drag.time = new Date().getTime();
1225        this._drag.target = $(event.target);
1226        this._drag.stage.start = stage;
1227        this._drag.stage.current = stage;
1228        this._drag.pointer = this.pointer(event);
1229        $(document).on('mouseup.owl.core touchend.owl.core', $.proxy(this.onDragEnd, this));
1230        $(document).one('mousemove.owl.core touchmove.owl.core', $.proxy(function (event) {
1231            var delta = this.difference(this._drag.pointer, this.pointer(event));
1232            $(document).on('mousemove.owl.core touchmove.owl.core', $.proxy(this.onDragMove, this));
1233            if (Math.abs(delta.x) < Math.abs(delta.y) && this.is('valid')) {
1234                return;
1235            }
1236            event.preventDefault();
1237            this.enter('dragging');
1238            this.trigger('drag');
1239        }, this));
1240    };
1241	/**
1242	 * Handles the `touchmove` and `mousemove` events.
1243	 * @todo #261
1244	 * @protected
1245	 * @param {Event} event - The event arguments.
1246	 */
1247    Owl.prototype.onDragMove = function (event) {
1248        var minimum = null,
1249            maximum = null,
1250            pull = null,
1251            delta = this.difference(this._drag.pointer, this.pointer(event)),
1252            stage = this.difference(this._drag.stage.start, delta);
1253        if (!this.is('dragging')) {
1254            return;
1255        }
1256        event.preventDefault();
1257        if (this.settings.loop) {
1258            minimum = this.coordinates(this.minimum());
1259            maximum = this.coordinates(this.maximum() + 1) - minimum;
1260            stage.x = (((stage.x - minimum) % maximum + maximum) % maximum) + minimum;
1261        } else {
1262            minimum = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum());
1263            maximum = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum());
1264            pull = this.settings.pullDrag ? -1 * delta.x / 5 : 0;
1265            stage.x = Math.max(Math.min(stage.x, minimum + pull), maximum + pull);
1266        }
1267        this._drag.stage.current = stage;
1268        this.animate(stage.x);
1269    };
1270	/**
1271	 * Handles the `touchend` and `mouseup` events.
1272	 * @todo #261
1273	 * @todo Threshold for click event
1274	 * @protected
1275	 * @param {Event} event - The event arguments.
1276	 */
1277    Owl.prototype.onDragEnd = function (event) {
1278        var delta = this.difference(this._drag.pointer, this.pointer(event)),
1279            stage = this._drag.stage.current,
1280            direction = delta.x > 0 ^ this.settings.rtl ? 'left' : 'right';
1281        $(document).off('.owl.core');
1282        this.$element.removeClass(this.options.grabClass);
1283        if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) {
1284            this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed);
1285            this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction));
1286            this.invalidate('position');
1287            this.update();
1288            this._drag.direction = direction;
1289            if (Math.abs(delta.x) > 3 || new Date().getTime() - this._drag.time > 300) {
1290                this._drag.target.one('click.owl.core', function () { return false; });
1291            }
1292        }
1293        if (!this.is('dragging')) {
1294            return;
1295        }
1296        this.leave('dragging');
1297        this.trigger('dragged');
1298    };
1299	/**
1300	 * Gets absolute position of the closest item for a coordinate.
1301	 * @todo Setting `freeDrag` makes `closest` not reusable. See #165.
1302	 * @protected
1303	 * @param {Number} coordinate - The coordinate in pixel.
1304	 * @param {String} direction - The direction to check for the closest item. Ether `left` or `right`.
1305	 * @return {Number} - The absolute position of the closest item.
1306	 */
1307    Owl.prototype.closest = function (coordinate, direction) {
1308        var position = -1,
1309            pull = 30,
1310            width = this.width(),
1311            coordinates = this.coordinates();
1312        if (!this.settings.freeDrag) {
1313            $.each(coordinates, $.proxy(function (index, value) {
1314                if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) {
1315                    position = index;
1316                } else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
1317                    position = index + 1;
1318                } else if (this.op(coordinate, '<', value)
1319                    && this.op(coordinate, '>', coordinates[index + 1] !== undefined ? coordinates[index + 1] : value - width)) {
1320                    position = direction === 'left' ? index + 1 : index;
1321                }
1322                return position === -1;
1323            }, this));
1324        }
1325        if (!this.settings.loop) {
1326            if (this.op(coordinate, '>', coordinates[this.minimum()])) {
1327                position = coordinate = this.minimum();
1328            } else if (this.op(coordinate, '<', coordinates[this.maximum()])) {
1329                position = coordinate = this.maximum();
1330            }
1331        }
1332        return position;
1333    };
1334	/**
1335	 * Animates the stage.
1336	 * @todo #270
1337	 * @public
1338	 * @param {Number} coordinate - The coordinate in pixels.
1339	 */
1340    Owl.prototype.animate = function (coordinate) {
1341        var animate = this.speed() > 0;
1342        this.is('animating') && this.onTransitionEnd();
1343        if (animate) {
1344            this.enter('animating');
1345            this.trigger('translate');
1346        }
1347        if ($.support.transform3d && $.support.transition) {
1348            this.$stage.css({
1349                transform: 'translate3d(' + coordinate + 'px,0px,0px)',
1350                transition: (this.speed() / 1000) + 's' + (
1351                    this.settings.slideTransition ? ' ' + this.settings.slideTransition : ''
1352                )
1353            });
1354        } else if (animate) {
1355            this.$stage.animate({
1356                left: coordinate + 'px'
1357            }, this.speed(), this.settings.fallbackEasing, $.proxy(this.onTransitionEnd, this));
1358        } else {
1359            this.$stage.css({
1360                left: coordinate + 'px'
1361            });
1362        }
1363    };
1364	/**
1365	 * Checks whether the carousel is in a specific state or not.
1366	 * @param {String} state - The state to check.
1367	 * @returns {Boolean} - The flag which indicates if the carousel is busy.
1368	 */
1369    Owl.prototype.is = function (state) {
1370        return this._states.current[state] && this._states.current[state] > 0;
1371    };
1372	/**
1373	 * Sets the absolute position of the current item.
1374	 * @public
1375	 * @param {Number} [position] - The new absolute position or nothing to leave it unchanged.
1376	 * @returns {Number} - The absolute position of the current item.
1377	 */
1378    Owl.prototype.current = function (position) {
1379        if (position === undefined) {
1380            return this._current;
1381        }
1382        if (this._items.length === 0) {
1383            return undefined;
1384        }
1385        position = this.normalize(position);
1386        if (this._current !== position) {
1387            var event = this.trigger('change', { property: { name: 'position', value: position } });
1388            if (event.data !== undefined) {
1389                position = this.normalize(event.data);
1390            }
1391            this._current = position;
1392            this.invalidate('position');
1393            this.trigger('changed', { property: { name: 'position', value: this._current } });
1394        }
1395        return this._current;
1396    };
1397	/**
1398	 * Invalidates the given part of the update routine.
1399	 * @param {String} [part] - The part to invalidate.
1400	 * @returns {Array.<String>} - The invalidated parts.
1401	 */
1402    Owl.prototype.invalidate = function (part) {
1403        if ($.type(part) === 'string') {
1404            this._invalidated[part] = true;
1405            this.is('valid') && this.leave('valid');
1406        }
1407        return $.map(this._invalidated, function (v, i) { return i });
1408    };
1409	/**
1410	 * Resets the absolute position of the current item.
1411	 * @public
1412	 * @param {Number} position - The absolute position of the new item.
1413	 */
1414    Owl.prototype.reset = function (position) {
1415        position = this.normalize(position);
1416        if (position === undefined) {
1417            return;
1418        }
1419        this._speed = 0;
1420        this._current = position;
1421        this.suppress(['translate', 'translated']);
1422        this.animate(this.coordinates(position));
1423        this.release(['translate', 'translated']);
1424    };
1425	/**
1426	 * Normalizes an absolute or a relative position of an item.
1427	 * @public
1428	 * @param {Number} position - The absolute or relative position to normalize.
1429	 * @param {Boolean} [relative=false] - Whether the given position is relative or not.
1430	 * @returns {Number} - The normalized position.
1431	 */
1432    Owl.prototype.normalize = function (position, relative) {
1433        var n = this._items.length,
1434            m = relative ? 0 : this._clones.length;
1435        if (!this.isNumeric(position) || n < 1) {
1436            position = undefined;
1437        } else if (position < 0 || position >= n + m) {
1438            position = ((position - m / 2) % n + n) % n + m / 2;
1439        }
1440        return position;
1441    };
1442	/**
1443	 * Converts an absolute position of an item into a relative one.
1444	 * @public
1445	 * @param {Number} position - The absolute position to convert.
1446	 * @returns {Number} - The converted position.
1447	 */
1448    Owl.prototype.relative = function (position) {
1449        position -= this._clones.length / 2;
1450        return this.normalize(position, true);
1451    };
1452	/**
1453	 * Gets the maximum position for the current item.
1454	 * @public
1455	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1456	 * @returns {Number}
1457	 */
1458    Owl.prototype.maximum = function (relative) {
1459        var settings = this.settings,
1460            maximum = this._coordinates.length,
1461            iterator,
1462            reciprocalItemsWidth,
1463            elementWidth;
1464        if (settings.loop) {
1465            maximum = this._clones.length / 2 + this._items.length - 1;
1466        } else if (settings.autoWidth || settings.merge) {
1467            iterator = this._items.length;
1468            if (iterator) {
1469                reciprocalItemsWidth = this._items[--iterator].width();
1470                elementWidth = this.$element.width();
1471                while (iterator--) {
1472                    reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin;
1473                    if (reciprocalItemsWidth > elementWidth) {
1474                        break;
1475                    }
1476                }
1477            }
1478            maximum = iterator + 1;
1479        } else if (settings.center) {
1480            maximum = this._items.length - 1;
1481        } else {
1482            maximum = this._items.length - settings.items;
1483        }
1484        if (relative) {
1485            maximum -= this._clones.length / 2;
1486        }
1487        return Math.max(maximum, 0);
1488    };
1489	/**
1490	 * Gets the minimum position for the current item.
1491	 * @public
1492	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1493	 * @returns {Number}
1494	 */
1495    Owl.prototype.minimum = function (relative) {
1496        return relative ? 0 : this._clones.length / 2;
1497    };
1498	/**
1499	 * Gets an item at the specified relative position.
1500	 * @public
1501	 * @param {Number} [position] - The relative position of the item.
1502	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1503	 */
1504    Owl.prototype.items = function (position) {
1505        if (position === undefined) {
1506            return this._items.slice();
1507        }
1508        position = this.normalize(position, true);
1509        return this._items[position];
1510    };
1511	/**
1512	 * Gets an item at the specified relative position.
1513	 * @public
1514	 * @param {Number} [position] - The relative position of the item.
1515	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1516	 */
1517    Owl.prototype.mergers = function (position) {
1518        if (position === undefined) {
1519            return this._mergers.slice();
1520        }
1521        position = this.normalize(position, true);
1522        return this._mergers[position];
1523    };
1524	/**
1525	 * Gets the absolute positions of clones for an item.
1526	 * @public
1527	 * @param {Number} [position] - The relative position of the item.
1528	 * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given.
1529	 */
1530    Owl.prototype.clones = function (position) {
1531        var odd = this._clones.length / 2,
1532            even = odd + this._items.length,
1533            map = function (index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 };
1534        if (position === undefined) {
1535            return $.map(this._clones, function (v, i) { return map(i) });
1536        }
1537        return $.map(this._clones, function (v, i) { return v === position ? map(i) : null });
1538    };
1539	/**
1540	 * Sets the current animation speed.
1541	 * @public
1542	 * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged.
1543	 * @returns {Number} - The current animation speed in milliseconds.
1544	 */
1545    Owl.prototype.speed = function (speed) {
1546        if (speed !== undefined) {
1547            this._speed = speed;
1548        }
1549        return this._speed;
1550    };
1551	/**
1552	 * Gets the coordinate of an item.
1553	 * @todo The name of this method is missleanding.
1554	 * @public
1555	 * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`.
1556	 * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
1557	 */
1558    Owl.prototype.coordinates = function (position) {
1559        var multiplier = 1,
1560            newPosition = position - 1,
1561            coordinate;
1562        if (position === undefined) {
1563            return $.map(this._coordinates, $.proxy(function (coordinate, index) {
1564                return this.coordinates(index);
1565            }, this));
1566        }
1567        if (this.settings.center) {
1568            if (this.settings.rtl) {
1569                multiplier = -1;
1570                newPosition = position + 1;
1571            }
1572            coordinate = this._coordinates[position];
1573            coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier;
1574        } else {
1575            coordinate = this._coordinates[newPosition] || 0;
1576        }
1577        coordinate = Math.ceil(coordinate);
1578        return coordinate;
1579    };
1580	/**
1581	 * Calculates the speed for a translation.
1582	 * @protected
1583	 * @param {Number} from - The absolute position of the start item.
1584	 * @param {Number} to - The absolute position of the target item.
1585	 * @param {Number} [factor=undefined] - The time factor in milliseconds.
1586	 * @returns {Number} - The time in milliseconds for the translation.
1587	 */
1588    Owl.prototype.duration = function (from, to, factor) {
1589        if (factor === 0) {
1590            return 0;
1591        }
1592        return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
1593    };
1594	/**
1595	 * Slides to the specified item.
1596	 * @public
1597	 * @param {Number} position - The position of the item.
1598	 * @param {Number} [speed] - The time in milliseconds for the transition.
1599	 */
1600    Owl.prototype.to = function (position, speed) {
1601        var current = this.current(),
1602            revert = null,
1603            distance = position - this.relative(current),
1604            direction = (distance > 0) - (distance < 0),
1605            items = this._items.length,
1606            minimum = this.minimum(),
1607            maximum = this.maximum();
1608        if (this.settings.loop) {
1609            if (!this.settings.rewind && Math.abs(distance) > items / 2) {
1610                distance += direction * -1 * items;
1611            }
1612            position = current + distance;
1613            revert = ((position - minimum) % items + items) % items + minimum;
1614            if (revert !== position && revert - distance <= maximum && revert - distance > 0) {
1615                current = revert - distance;
1616                position = revert;
1617                this.reset(current);
1618            }
1619        } else if (this.settings.rewind) {
1620            maximum += 1;
1621            position = (position % maximum + maximum) % maximum;
1622        } else {
1623            position = Math.max(minimum, Math.min(maximum, position));
1624        }
1625        this.speed(this.duration(current, position, speed));
1626        this.current(position);
1627        if (this.isVisible()) {
1628            this.update();
1629        }
1630    };
1631	/**
1632	 * Slides to the next item.
1633	 * @public
1634	 * @param {Number} [speed] - The time in milliseconds for the transition.
1635	 */
1636    Owl.prototype.next = function (speed) {
1637        speed = speed || false;
1638        this.to(this.relative(this.current()) + 1, speed);
1639    };
1640	/**
1641	 * Slides to the previous item.
1642	 * @public
1643	 * @param {Number} [speed] - The time in milliseconds for the transition.
1644	 */
1645    Owl.prototype.prev = function (speed) {
1646        speed = speed || false;
1647        this.to(this.relative(this.current()) - 1, speed);
1648    };
1649	/**
1650	 * Handles the end of an animation.
1651	 * @protected
1652	 * @param {Event} event - The event arguments.
1653	 */
1654    Owl.prototype.onTransitionEnd = function (event) {
1655        if (event !== undefined) {
1656            event.stopPropagation();
1657            if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) {
1658                return false;
1659            }
1660        }
1661        this.leave('animating');
1662        this.trigger('translated');
1663    };
1664	/**
1665	 * Gets viewport width.
1666	 * @protected
1667	 * @return {Number} - The width in pixel.
1668	 */
1669    Owl.prototype.viewport = function () {
1670        var width;
1671        if (this.options.responsiveBaseElement !== window) {
1672            width = $(this.options.responsiveBaseElement).width();
1673        } else if (window.innerWidth) {
1674            width = window.innerWidth;
1675        } else if (document.documentElement && document.documentElement.clientWidth) {
1676            width = document.documentElement.clientWidth;
1677        } else {
1678            console.warn('Can not detect viewport width.');
1679        }
1680        return width;
1681    };
1682	/**
1683	 * Replaces the current content.
1684	 * @public
1685	 * @param {HTMLElement|jQuery|String} content - The new content.
1686	 */
1687    Owl.prototype.replace = function (content) {
1688        this.$stage.empty();
1689        this._items = [];
1690        if (content) {
1691            content = (content instanceof jQuery) ? content : $(content);
1692        }
1693        if (this.settings.nestedItemSelector) {
1694            content = content.find('.' + this.settings.nestedItemSelector);
1695        }
1696        content.filter(function () {
1697            return this.nodeType === 1;
1698        }).each($.proxy(function (index, item) {
1699            item = this.prepare(item);
1700            this.$stage.append(item);
1701            this._items.push(item);
1702            this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1703        }, this));
1704        this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);
1705        this.invalidate('items');
1706    };
1707	/**
1708	 * Adds an item.
1709	 * @todo Use `item` instead of `content` for the event arguments.
1710	 * @public
1711	 * @param {HTMLElement|jQuery|String} content - The item content to add.
1712	 * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end.
1713	 */
1714    Owl.prototype.add = function (content, position) {
1715        var current = this.relative(this._current);
1716        position = position === undefined ? this._items.length : this.normalize(position, true);
1717        content = content instanceof jQuery ? content : $(content);
1718        this.trigger('add', { content: content, position: position });
1719        content = this.prepare(content);
1720        if (this._items.length === 0 || position === this._items.length) {
1721            this._items.length === 0 && this.$stage.append(content);
1722            this._items.length !== 0 && this._items[position - 1].after(content);
1723            this._items.push(content);
1724            this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1725        } else {
1726            this._items[position].before(content);
1727            this._items.splice(position, 0, content);
1728            this._mergers.splice(position, 0, content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1729        }
1730        this._items[current] && this.reset(this._items[current].index());
1731        this.invalidate('items');
1732        this.trigger('added', { content: content, position: position });
1733    };
1734	/**
1735	 * Removes an item by its position.
1736	 * @todo Use `item` instead of `content` for the event arguments.
1737	 * @public
1738	 * @param {Number} position - The relative position of the item to remove.
1739	 */
1740    Owl.prototype.remove = function (position) {
1741        position = this.normalize(position, true);
1742        if (position === undefined) {
1743            return;
1744        }
1745        this.trigger('remove', { content: this._items[position], position: position });
1746        this._items[position].remove();
1747        this._items.splice(position, 1);
1748        this._mergers.splice(position, 1);
1749        this.invalidate('items');
1750        this.trigger('removed', { content: null, position: position });
1751    };
1752	/**
1753	 * Preloads images with auto width.
1754	 * @todo Replace by a more generic approach
1755	 * @protected
1756	 */
1757    Owl.prototype.preloadAutoWidthImages = function (images) {
1758        images.each($.proxy(function (i, element) {
1759            this.enter('pre-loading');
1760            element = $(element);
1761            $(new Image()).one('load', $.proxy(function (e) {
1762                element.attr('src', e.target.src);
1763                element.css('opacity', 1);
1764                this.leave('pre-loading');
1765                !this.is('pre-loading') && !this.is('initializing') && this.refresh();
1766            }, this)).attr('src', element.attr('src') || element.attr('data-src') || element.attr('data-src-retina'));
1767        }, this));
1768    };
1769	/**
1770	 * Destroys the carousel.
1771	 * @public
1772	 */
1773    Owl.prototype.destroy = function () {
1774        this.$element.off('.owl.core');
1775        this.$stage.off('.owl.core');
1776        $(document).off('.owl.core');
1777        if (this.settings.responsive !== false) {
1778            window.clearTimeout(this.resizeTimer);
1779            this.off(window, 'resize', this._handlers.onThrottledResize);
1780        }
1781        for (var i in this._plugins) {
1782            this._plugins[i].destroy();
1783        }
1784        this.$stage.children('.cloned').remove();
1785        this.$stage.unwrap();
1786        this.$stage.children().contents().unwrap();
1787        this.$stage.children().unwrap();
1788        this.$stage.remove();
1789        this.$element
1790            .removeClass(this.options.refreshClass)
1791            .removeClass(this.options.loadingClass)
1792            .removeClass(this.options.loadedClass)
1793            .removeClass(this.options.rtlClass)
1794            .removeClass(this.options.dragClass)
1795            .removeClass(this.options.grabClass)
1796            .attr('class', this.$element.attr('class').replace(new RegExp(this.options.responsiveClass + '-\\S+\\s', 'g'), ''))
1797            .removeData('owl.carousel');
1798    };
1799	/**
1800	 * Operators to calculate right-to-left and left-to-right.
1801	 * @protected
1802	 * @param {Number} [a] - The left side operand.
1803	 * @param {String} [o] - The operator.
1804	 * @param {Number} [b] - The right side operand.
1805	 */
1806    Owl.prototype.op = function (a, o, b) {
1807        var rtl = this.settings.rtl;
1808        switch (o) {
1809            case '<':
1810                return rtl ? a > b : a < b;
1811            case '>':
1812                return rtl ? a < b : a > b;
1813            case '>=':
1814                return rtl ? a <= b : a >= b;
1815            case '<=':
1816                return rtl ? a >= b : a <= b;
1817            default:
1818                break;
1819        }
1820    };
1821	/**
1822	 * Attaches to an internal event.
1823	 * @protected
1824	 * @param {HTMLElement} element - The event source.
1825	 * @param {String} event - The event name.
1826	 * @param {Function} listener - The event handler to attach.
1827	 * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not.
1828	 */
1829    Owl.prototype.on = function (element, event, listener, capture) {
1830        if (element.addEventListener) {
1831            element.addEventListener(event, listener, capture);
1832        } else if (element.attachEvent) {
1833            element.attachEvent('on' + event, listener);
1834        }
1835    };
1836	/**
1837	 * Detaches from an internal event.
1838	 * @protected
1839	 * @param {HTMLElement} element - The event source.
1840	 * @param {String} event - The event name.
1841	 * @param {Function} listener - The attached event handler to detach.
1842	 * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not.
1843	 */
1844    Owl.prototype.off = function (element, event, listener, capture) {
1845        if (element.removeEventListener) {
1846            element.removeEventListener(event, listener, capture);
1847        } else if (element.detachEvent) {
1848            element.detachEvent('on' + event, listener);
1849        }
1850    };
1851	/**
1852	 * Triggers a public event.
1853	 * @todo Remove `status`, `relatedTarget` should be used instead.
1854	 * @protected
1855	 * @param {String} name - The event name.
1856	 * @param {*} [data=null] - The event data.
1857	 * @param {String} [namespace=carousel] - The event namespace.
1858	 * @param {String} [state] - The state which is associated with the event.
1859	 * @param {Boolean} [enter=false] - Indicates if the call enters the specified state or not.
1860	 * @returns {Event} - The event arguments.
1861	 */
1862    Owl.prototype.trigger = function (name, data, namespace, state, enter) {
1863        var status = {
1864            item: { count: this._items.length, index: this.current() }
1865        }, handler = $.camelCase(
1866            $.grep(['on', name, namespace], function (v) { return v })
1867                .join('-').toLowerCase()
1868        ), event = $.Event(
1869            [name, 'owl', namespace || 'carousel'].join('.').toLowerCase(),
1870            $.extend({ relatedTarget: this }, status, data)
1871        );
1872        if (!this._supress[name]) {
1873            $.each(this._plugins, function (name, plugin) {
1874                if (plugin.onTrigger) {
1875                    plugin.onTrigger(event);
1876                }
1877            });
1878            this.register({ type: Owl.Type.Event, name: name });
1879            this.$element.trigger(event);
1880            if (this.settings && typeof this.settings[handler] === 'function') {
1881                this.settings[handler].call(this, event);
1882            }
1883        }
1884        return event;
1885    };
1886	/**
1887	 * Enters a state.
1888	 * @param name - The state name.
1889	 */
1890    Owl.prototype.enter = function (name) {
1891        $.each([name].concat(this._states.tags[name] || []), $.proxy(function (i, name) {
1892            if (this._states.current[name] === undefined) {
1893                this._states.current[name] = 0;
1894            }
1895            this._states.current[name]++;
1896        }, this));
1897    };
1898	/**
1899	 * Leaves a state.
1900	 * @param name - The state name.
1901	 */
1902    Owl.prototype.leave = function (name) {
1903        $.each([name].concat(this._states.tags[name] || []), $.proxy(function (i, name) {
1904            this._states.current[name]--;
1905        }, this));
1906    };
1907	/**
1908	 * Registers an event or state.
1909	 * @public
1910	 * @param {Object} object - The event or state to register.
1911	 */
1912    Owl.prototype.register = function (object) {
1913        if (object.type === Owl.Type.Event) {
1914            if (!$.event.special[object.name]) {
1915                $.event.special[object.name] = {};
1916            }
1917            if (!$.event.special[object.name].owl) {
1918                var _default = $.event.special[object.name]._default;
1919                $.event.special[object.name]._default = function (e) {
1920                    if (_default && _default.apply && (!e.namespace || e.namespace.indexOf('owl') === -1)) {
1921                        return _default.apply(this, arguments);
1922                    }
1923                    return e.namespace && e.namespace.indexOf('owl') > -1;
1924                };
1925                $.event.special[object.name].owl = true;
1926            }
1927        } else if (object.type === Owl.Type.State) {
1928            if (!this._states.tags[object.name]) {
1929                this._states.tags[object.name] = object.tags;
1930            } else {
1931                this._states.tags[object.name] = this._states.tags[object.name].concat(object.tags);
1932            }
1933            this._states.tags[object.name] = $.grep(this._states.tags[object.name], $.proxy(function (tag, i) {
1934                return $.inArray(tag, this._states.tags[object.name]) === i;
1935            }, this));
1936        }
1937    };
1938	/**
1939	 * Suppresses events.
1940	 * @protected
1941	 * @param {Array.<String>} events - The events to suppress.
1942	 */
1943    Owl.prototype.suppress = function (events) {
1944        $.each(events, $.proxy(function (index, event) {
1945            this._supress[event] = true;
1946        }, this));
1947    };
1948	/**
1949	 * Releases suppressed events.
1950	 * @protected
1951	 * @param {Array.<String>} events - The events to release.
1952	 */
1953    Owl.prototype.release = function (events) {
1954        $.each(events, $.proxy(function (index, event) {
1955            delete this._supress[event];
1956        }, this));
1957    };
1958	/**
1959	 * Gets unified pointer coordinates from event.
1960	 * @todo #261
1961	 * @protected
1962	 * @param {Event} - The `mousedown` or `touchstart` event.
1963	 * @returns {Object} - Contains `x` and `y` coordinates of current pointer position.
1964	 */
1965    Owl.prototype.pointer = function (event) {
1966        var result = { x: null, y: null };
1967        event = event.originalEvent || event || window.event;
1968        event = event.touches && event.touches.length ?
1969            event.touches[0] : event.changedTouches && event.changedTouches.length ?
1970                event.changedTouches[0] : event;
1971        if (event.pageX) {
1972            result.x = event.pageX;
1973            result.y = event.pageY;
1974        } else {
1975            result.x = event.clientX;
1976            result.y = event.clientY;
1977        }
1978        return result;
1979    };
1980	/**
1981	 * Determines if the input is a Number or something that can be coerced to a Number
1982	 * @protected
1983	 * @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested
1984	 * @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number
1985	 */
1986    Owl.prototype.isNumeric = function (number) {
1987        return !isNaN(parseFloat(number));
1988    };
1989	/**
1990	 * Gets the difference of two vectors.
1991	 * @todo #261
1992	 * @protected
1993	 * @param {Object} - The first vector.
1994	 * @param {Object} - The second vector.
1995	 * @returns {Object} - The difference.
1996	 */
1997    Owl.prototype.difference = function (first, second) {
1998        return {
1999            x: first.x - second.x,
2000            y: first.y - second.y
2001        };
2002    };
2003	/**
2004	 * The jQuery Plugin for the Owl Carousel
2005	 * @todo Navigation plugin `next` and `prev`
2006	 * @public
2007	 */
2008    $.fn.owlCarousel = function (option) {
2009        var args = Array.prototype.slice.call(arguments, 1);
2010        return this.each(function () {
2011            var $this = $(this),
2012                data = $this.data('owl.carousel');
2013            if (!data) {
2014                data = new Owl(this, typeof option == 'object' && option);
2015                $this.data('owl.carousel', data);
2016                $.each([
2017                    'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove'
2018                ], function (i, event) {
2019                    data.register({ type: Owl.Type.Event, name: event });
2020                    data.$element.on(event + '.owl.carousel.core', $.proxy(function (e) {
2021                        if (e.namespace && e.relatedTarget !== this) {
2022                            this.suppress([event]);
2023                            data[event].apply(this, [].slice.call(arguments, 1));
2024                            this.release([event]);
2025                        }
2026                    }, data));
2027                });
2028            }
2029            if (typeof option == 'string' && option.charAt(0) !== '_') {
2030                data[option].apply(data, args);
2031            }
2032        });
2033    };
2034	/**
2035	 * The constructor for the jQuery Plugin
2036	 * @public
2037	 */
2038    $.fn.owlCarousel.Constructor = Owl;
2039})(window.Zepto || window.jQuery, window, document);
2040/**
2041 * AutoRefresh Plugin
2042 * @version 2.3.4
2043 * @author Artus Kolanowski
2044 * @author David Deutsch
2045 * @license The MIT License (MIT)
2046 */
2047; (function ($, window, document, undefined) {
2048	/**
2049	 * Creates the auto refresh plugin.
2050	 * @class The Auto Refresh Plugin
2051	 * @param {Owl} carousel - The Owl Carousel
2052	 */
2053    var AutoRefresh = function (carousel) {
2054		/**
2055		 * Reference to the core.
2056		 * @protected
2057		 * @type {Owl}
2058		 */
2059        this._core = carousel;
2060		/**
2061		 * Refresh interval.
2062		 * @protected
2063		 * @type {number}
2064		 */
2065        this._interval = null;
2066		/**
2067		 * Whether the element is currently visible or not.
2068		 * @protected
2069		 * @type {Boolean}
2070		 */
2071        this._visible = null;
2072		/**
2073		 * All event handlers.
2074		 * @protected
2075		 * @type {Object}
2076		 */
2077        this._handlers = {
2078            'initialized.owl.carousel': $.proxy(function (e) {
2079                if (e.namespace && this._core.settings.autoRefresh) {
2080                    this.watch();
2081                }
2082            }, this)
2083        };
2084        this._core.options = $.extend({}, AutoRefresh.Defaults, this._core.options);
2085        this._core.$element.on(this._handlers);
2086    };
2087	/**
2088	 * Default options.
2089	 * @public
2090	 */
2091    AutoRefresh.Defaults = {
2092        autoRefresh: true,
2093        autoRefreshInterval: 500
2094    };
2095	/**
2096	 * Watches the element.
2097	 */
2098    AutoRefresh.prototype.watch = function () {
2099        if (this._interval) {
2100            return;
2101        }
2102        this._visible = this._core.isVisible();
2103        this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
2104    };
2105	/**
2106	 * Refreshes the element.
2107	 */
2108    AutoRefresh.prototype.refresh = function () {
2109        if (this._core.isVisible() === this._visible) {
2110            return;
2111        }
2112        this._visible = !this._visible;
2113        this._core.$element.toggleClass('owl-hidden', !this._visible);
2114        this._visible && (this._core.invalidate('width') && this._core.refresh());
2115    };
2116	/**
2117	 * Destroys the plugin.
2118	 */
2119    AutoRefresh.prototype.destroy = function () {
2120        var handler, property;
2121        window.clearInterval(this._interval);
2122        for (handler in this._handlers) {
2123            this._core.$element.off(handler, this._handlers[handler]);
2124        }
2125        for (property in Object.getOwnPropertyNames(this)) {
2126            typeof this[property] != 'function' && (this[property] = null);
2127        }
2128    };
2129    $.fn.owlCarousel.Constructor.Plugins.AutoRefresh = AutoRefresh;
2130})(window.Zepto || window.jQuery, window, document);
2131/**
2132 * Lazy Plugin
2133 * @version 2.3.4
2134 * @author Bartosz Wojciechowski
2135 * @author David Deutsch
2136 * @license The MIT License (MIT)
2137 */
2138; (function ($, window, document, undefined) {
2139	/**
2140	 * Creates the lazy plugin.
2141	 * @class The Lazy Plugin
2142	 * @param {Owl} carousel - The Owl Carousel
2143	 */
2144    var Lazy = function (carousel) {
2145		/**
2146		 * Reference to the core.
2147		 * @protected
2148		 * @type {Owl}
2149		 */
2150        this._core = carousel;
2151		/**
2152		 * Already loaded items.
2153		 * @protected
2154		 * @type {Array.<jQuery>}
2155		 */
2156        this._loaded = [];
2157		/**
2158		 * Event handlers.
2159		 * @protected
2160		 * @type {Object}
2161		 */
2162        this._handlers = {
2163            'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function (e) {
2164                if (!e.namespace) {
2165                    return;
2166                }
2167                if (!this._core.settings || !this._core.settings.lazyLoad) {
2168                    return;
2169                }
2170                if ((e.property && e.property.name == 'position') || e.type == 'initialized') {
2171                    var settings = this._core.settings,
2172                        n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
2173                        i = ((settings.center && n * -1) || 0),
2174                        position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
2175                        clones = this._core.clones().length,
2176                        load = $.proxy(function (i, v) { this.load(v) }, this);
2177                    if (settings.lazyLoadEager > 0) {
2178                        n += settings.lazyLoadEager;
2179                        if (settings.loop) {
2180                            position -= settings.lazyLoadEager;
2181                            n++;
2182                        }
2183                    }
2184                    while (i++ < n) {
2185                        this.load(clones / 2 + this._core.relative(position));
2186                        clones && $.each(this._core.clones(this._core.relative(position)), load);
2187                        position++;
2188                    }
2189                }
2190            }, this)
2191        };
2192        this._core.options = $.extend({}, Lazy.Defaults, this._core.options);
2193        this._core.$element.on(this._handlers);
2194    };
2195	/**
2196	 * Default options.
2197	 * @public
2198	 */
2199    Lazy.Defaults = {
2200        lazyLoad: false,
2201        lazyLoadEager: 0
2202    };
2203	/**
2204	 * Loads all resources of an item at the specified position.
2205	 * @param {Number} position - The absolute position of the item.
2206	 * @protected
2207	 */
2208    Lazy.prototype.load = function (position) {
2209        var $item = this._core.$stage.children().eq(position),
2210            $elements = $item && $item.find('.owl-lazy');
2211        if (!$elements || $.inArray($item.get(0), this._loaded) > -1) {
2212            return;
2213        }
2214        $elements.each($.proxy(function (index, element) {
2215            var $element = $(element), image,
2216                url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src') || $element.attr('data-srcset');
2217            this._core.trigger('load', { element: $element, url: url }, 'lazy');
2218            if ($element.is('img')) {
2219                $element.one('load.owl.lazy', $.proxy(function () {
2220                    $element.css('opacity', 1);
2221                    this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
2222                }, this)).attr('src', url);
2223            } else if ($element.is('source')) {
2224                $element.one('load.owl.lazy', $.proxy(function () {
2225                    this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
2226                }, this)).attr('srcset', url);
2227            } else {
2228                image = new Image();
2229                image.onload = $.proxy(function () {
2230                    $element.css({
2231                        'background-image': 'url("' + url + '")',
2232                        'opacity': '1'
2233                    });
2234                    this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
2235                }, this);
2236                image.src = url;
2237            }
2238        }, this));
2239        this._loaded.push($item.get(0));
2240    };
2241	/**
2242	 * Destroys the plugin.
2243	 * @public
2244	 */
2245    Lazy.prototype.destroy = function () {
2246        var handler, property;
2247        for (handler in this.handlers) {
2248            this._core.$element.off(handler, this.handlers[handler]);
2249        }
2250        for (property in Object.getOwnPropertyNames(this)) {
2251            typeof this[property] != 'function' && (this[property] = null);
2252        }
2253    };
2254    $.fn.owlCarousel.Constructor.Plugins.Lazy = Lazy;
2255})(window.Zepto || window.jQuery, window, document);
2256/**
2257 * AutoHeight Plugin
2258 * @version 2.3.4
2259 * @author Bartosz Wojciechowski
2260 * @author David Deutsch
2261 * @license The MIT License (MIT)
2262 */
2263; (function ($, window, document, undefined) {
2264	/**
2265	 * Creates the auto height plugin.
2266	 * @class The Auto Height Plugin
2267	 * @param {Owl} carousel - The Owl Carousel
2268	 */
2269    var AutoHeight = function (carousel) {
2270		/**
2271		 * Reference to the core.
2272		 * @protected
2273		 * @type {Owl}
2274		 */
2275        this._core = carousel;
2276        this._previousHeight = null;
2277		/**
2278		 * All event handlers.
2279		 * @protected
2280		 * @type {Object}
2281		 */
2282        this._handlers = {
2283            'initialized.owl.carousel refreshed.owl.carousel': $.proxy(function (e) {
2284                if (e.namespace && this._core.settings.autoHeight) {
2285                    this.update();
2286                }
2287            }, this),
2288            'changed.owl.carousel': $.proxy(function (e) {
2289                if (e.namespace && this._core.settings.autoHeight && e.property.name === 'position') {
2290                    this.update();
2291                }
2292            }, this),
2293            'loaded.owl.lazy': $.proxy(function (e) {
2294                if (e.namespace && this._core.settings.autoHeight
2295                    && e.element.closest('.' + this._core.settings.itemClass).index() === this._core.current()) {
2296                    this.update();
2297                }
2298            }, this)
2299        };
2300        this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options);
2301        this._core.$element.on(this._handlers);
2302        this._intervalId = null;
2303        var refThis = this;
2304        $(window).on('load', function () {
2305            if (refThis._core.settings.autoHeight) {
2306                refThis.update();
2307            }
2308        });
2309        $(window).resize(function () {
2310            if (refThis._core.settings.autoHeight) {
2311                if (refThis._intervalId != null) {
2312                    clearTimeout(refThis._intervalId);
2313                }
2314                refThis._intervalId = setTimeout(function () {
2315                    refThis.update();
2316                }, 250);
2317            }
2318        });
2319    };
2320	/**
2321	 * Default options.
2322	 * @public
2323	 */
2324    AutoHeight.Defaults = {
2325        autoHeight: false,
2326        autoHeightClass: 'owl-height'
2327    };
2328	/**
2329	 * Updates the view.
2330	 */
2331    AutoHeight.prototype.update = function () {
2332        var start = this._core._current,
2333            end = start + this._core.settings.items,
2334            lazyLoadEnabled = this._core.settings.lazyLoad,
2335            visible = this._core.$stage.children().toArray().slice(start, end),
2336            heights = [],
2337            maxheight = 0;
2338        $.each(visible, function (index, item) {
2339            heights.push($(item).height());
2340        });
2341        maxheight = Math.max.apply(null, heights);
2342        if (maxheight <= 1 && lazyLoadEnabled && this._previousHeight) {
2343            maxheight = this._previousHeight;
2344        }
2345        this._previousHeight = maxheight;
2346        this._core.$stage.parent()
2347            .height(maxheight)
2348            .addClass(this._core.settings.autoHeightClass);
2349    };
2350    AutoHeight.prototype.destroy = function () {
2351        var handler, property;
2352        for (handler in this._handlers) {
2353            this._core.$element.off(handler, this._handlers[handler]);
2354        }
2355        for (property in Object.getOwnPropertyNames(this)) {
2356            typeof this[property] !== 'function' && (this[property] = null);
2357        }
2358    };
2359    $.fn.owlCarousel.Constructor.Plugins.AutoHeight = AutoHeight;
2360})(window.Zepto || window.jQuery, window, document);
2361/**
2362 * Video Plugin
2363 * @version 2.3.4
2364 * @author Bartosz Wojciechowski
2365 * @author David Deutsch
2366 * @license The MIT License (MIT)
2367 */
2368; (function ($, window, document, undefined) {
2369	/**
2370	 * Creates the video plugin.
2371	 * @class The Video Plugin
2372	 * @param {Owl} carousel - The Owl Carousel
2373	 */
2374    var Video = function (carousel) {
2375		/**
2376		 * Reference to the core.
2377		 * @protected
2378		 * @type {Owl}
2379		 */
2380        this._core = carousel;
2381		/**
2382		 * Cache all video URLs.
2383		 * @protected
2384		 * @type {Object}
2385		 */
2386        this._videos = {};
2387		/**
2388		 * Current playing item.
2389		 * @protected
2390		 * @type {jQuery}
2391		 */
2392        this._playing = null;
2393		/**
2394		 * All event handlers.
2395		 * @todo The cloned content removale is too late
2396		 * @protected
2397		 * @type {Object}
2398		 */
2399        this._handlers = {
2400            'initialized.owl.carousel': $.proxy(function (e) {
2401                if (e.namespace) {
2402                    this._core.register({ type: 'state', name: 'playing', tags: ['interacting'] });
2403                }
2404            }, this),
2405            'resize.owl.carousel': $.proxy(function (e) {
2406                if (e.namespace && this._core.settings.video && this.isInFullScreen()) {
2407                    e.preventDefault();
2408                }
2409            }, this),
2410            'refreshed.owl.carousel': $.proxy(function (e) {
2411                if (e.namespace && this._core.is('resizing')) {
2412                    this._core.$stage.find('.cloned .owl-video-frame').remove();
2413                }
2414            }, this),
2415            'changed.owl.carousel': $.proxy(function (e) {
2416                if (e.namespace && e.property.name === 'position' && this._playing) {
2417                    this.stop();
2418                }
2419            }, this),
2420            'prepared.owl.carousel': $.proxy(function (e) {
2421                if (!e.namespace) {
2422                    return;
2423                }
2424                var $element = $(e.content).find('.owl-video');
2425                if ($element.length) {
2426                    $element.css('display', 'none');
2427                    this.fetch($element, $(e.content));
2428                }
2429            }, this)
2430        };
2431        this._core.options = $.extend({}, Video.Defaults, this._core.options);
2432        this._core.$element.on(this._handlers);
2433        this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function (e) {
2434            this.play(e);
2435        }, this));
2436    };
2437	/**
2438	 * Default options.
2439	 * @public
2440	 */
2441    Video.Defaults = {
2442        video: false,
2443        videoHeight: false,
2444        videoWidth: false
2445    };
2446	/**
2447	 * Gets the video ID and the type (YouTube/Vimeo/vzaar only).
2448	 * @protected
2449	 * @param {jQuery} target - The target containing the video data.
2450	 * @param {jQuery} item - The item containing the video.
2451	 */
2452    Video.prototype.fetch = function (target, item) {
2453        var type = (function () {
2454            if (target.attr('data-vimeo-id')) {
2455                return 'vimeo';
2456            } else if (target.attr('data-vzaar-id')) {
2457                return 'vzaar'
2458            } else {
2459                return 'youtube';
2460            }
2461        })(),
2462            id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'),
2463            width = target.attr('data-width') || this._core.settings.videoWidth,
2464            height = target.attr('data-height') || this._core.settings.videoHeight,
2465            url = target.attr('href');
2466        if (url) {
2467			/*
2468					Parses the id's out of the following urls (and probably more):
2469					https://www.youtube.com/watch?v=:id
2470					https://youtu.be/:id
2471					https://vimeo.com/:id
2472					https://vimeo.com/channels/:channel/:id
2473					https://vimeo.com/groups/:group/videos/:id
2474					https://app.vzaar.com/videos/:id
2475					Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
2476			*/
2477            id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
2478            if (id[3].indexOf('youtu') > -1) {
2479                type = 'youtube';
2480            } else if (id[3].indexOf('vimeo') > -1) {
2481                type = 'vimeo';
2482            } else if (id[3].indexOf('vzaar') > -1) {
2483                type = 'vzaar';
2484            } else {
2485                throw new Error('Video URL not supported.');
2486            }
2487            id = id[6];
2488        } else {
2489            throw new Error('Missing video URL.');
2490        }
2491        this._videos[url] = {
2492            type: type,
2493            id: id,
2494            width: width,
2495            height: height
2496        };
2497        item.attr('data-video', url);
2498        this.thumbnail(target, this._videos[url]);
2499    };
2500	/**
2501	 * Creates video thumbnail.
2502	 * @protected
2503	 * @param {jQuery} target - The target containing the video data.
2504	 * @param {Object} info - The video info object.
2505	 * @see `fetch`
2506	 */
2507    Video.prototype.thumbnail = function (target, video) {
2508        var tnLink,
2509            icon,
2510            path,
2511            dimensions = video.width && video.height ? 'width:' + video.width + 'px;height:' + video.height + 'px;' : '',
2512            customTn = target.find('img'),
2513            srcType = 'src',
2514            lazyClass = '',
2515            settings = this._core.settings,
2516            create = function (path) {
2517                icon = '<div class="owl-video-play-icon"></div>';
2518                if (settings.lazyLoad) {
2519                    tnLink = $('<div/>', {
2520                        "class": 'owl-video-tn ' + lazyClass,
2521                        "srcType": path
2522                    });
2523                } else {
2524                    tnLink = $('<div/>', {
2525                        "class": "owl-video-tn",
2526                        "style": 'opacity:1;background-image:url(' + path + ')'
2527                    });
2528                }
2529                target.after(tnLink);
2530                target.after(icon);
2531            };
2532        target.wrap($('<div/>', {
2533            "class": "owl-video-wrapper",
2534            "style": dimensions
2535        }));
2536        if (this._core.settings.lazyLoad) {
2537            srcType = 'data-src';
2538            lazyClass = 'owl-lazy';
2539        }
2540        if (customTn.length) {
2541            create(customTn.attr(srcType));
2542            customTn.remove();
2543            return false;
2544        }
2545        if (video.type === 'youtube') {
2546            path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
2547            create(path);
2548        } else if (video.type === 'vimeo') {
2549            $.ajax({
2550                type: 'GET',
2551                url: '//vimeo.com/api/v2/video/' + video.id + '.json',
2552                jsonp: 'callback',
2553                dataType: 'jsonp',
2554                success: function (data) {
2555                    path = data[0].thumbnail_large;
2556                    create(path);
2557                }
2558            });
2559        } else if (video.type === 'vzaar') {
2560            $.ajax({
2561                type: 'GET',
2562                url: '//vzaar.com/api/videos/' + video.id + '.json',
2563                jsonp: 'callback',
2564                dataType: 'jsonp',
2565                success: function (data) {
2566                    path = data.framegrab_url;
2567                    create(path);
2568                }
2569            });
2570        }
2571    };
2572	/**
2573	 * Stops the current video.
2574	 * @public
2575	 */
2576    Video.prototype.stop = function () {
2577        this._core.trigger('stop', null, 'video');
2578        this._playing.find('.owl-video-frame').remove();
2579        this._playing.removeClass('owl-video-playing');
2580        this._playing = null;
2581        this._core.leave('playing');
2582        this._core.trigger('stopped', null, 'video');
2583    };
2584	/**
2585	 * Starts the current video.
2586	 * @public
2587	 * @param {Event} event - The event arguments.
2588	 */
2589    Video.prototype.play = function (event) {
2590        var target = $(event.target),
2591            item = target.closest('.' + this._core.settings.itemClass),
2592            video = this._videos[item.attr('data-video')],
2593            width = video.width || '100%',
2594            height = video.height || this._core.$stage.height(),
2595            html,
2596            iframe;
2597        if (this._playing) {
2598            return;
2599        }
2600        this._core.enter('playing');
2601        this._core.trigger('play', null, 'video');
2602        item = this._core.items(this._core.relative(item.index()));
2603        this._core.reset(item.index());
2604        html = $('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>');
2605        html.attr('height', height);
2606        html.attr('width', width);
2607        if (video.type === 'youtube') {
2608            html.attr('src', '//www.youtube.com/embed/' + video.id + '?autoplay=1&rel=0&v=' + video.id);
2609        } else if (video.type === 'vimeo') {
2610            html.attr('src', '//player.vimeo.com/video/' + video.id + '?autoplay=1');
2611        } else if (video.type === 'vzaar') {
2612            html.attr('src', '//view.vzaar.com/' + video.id + '/player?autoplay=true');
2613        }
2614        iframe = $(html).wrap('<div class="owl-video-frame" />').insertAfter(item.find('.owl-video'));
2615        this._playing = item.addClass('owl-video-playing');
2616    };
2617	/**
2618	 * Checks whether an video is currently in full screen mode or not.
2619	 * @todo Bad style because looks like a readonly method but changes members.
2620	 * @protected
2621	 * @returns {Boolean}
2622	 */
2623    Video.prototype.isInFullScreen = function () {
2624        var element = document.fullscreenElement || document.mozFullScreenElement ||
2625            document.webkitFullscreenElement;
2626        return element && $(element).parent().hasClass('owl-video-frame');
2627    };
2628	/**
2629	 * Destroys the plugin.
2630	 */
2631    Video.prototype.destroy = function () {
2632        var handler, property;
2633        this._core.$element.off('click.owl.video');
2634        for (handler in this._handlers) {
2635            this._core.$element.off(handler, this._handlers[handler]);
2636        }
2637        for (property in Object.getOwnPropertyNames(this)) {
2638            typeof this[property] != 'function' && (this[property] = null);
2639        }
2640    };
2641    $.fn.owlCarousel.Constructor.Plugins.Video = Video;
2642})(window.Zepto || window.jQuery, window, document);
2643/**
2644 * Animate Plugin
2645 * @version 2.3.4
2646 * @author Bartosz Wojciechowski
2647 * @author David Deutsch
2648 * @license The MIT License (MIT)
2649 */
2650; (function ($, window, document, undefined) {
2651	/**
2652	 * Creates the animate plugin.
2653	 * @class The Navigation Plugin
2654	 * @param {Owl} scope - The Owl Carousel
2655	 */
2656    var Animate = function (scope) {
2657        this.core = scope;
2658        this.core.options = $.extend({}, Animate.Defaults, this.core.options);
2659        this.swapping = true;
2660        this.previous = undefined;
2661        this.next = undefined;
2662        this.handlers = {
2663            'change.owl.carousel': $.proxy(function (e) {
2664                if (e.namespace && e.property.name == 'position') {
2665                    this.previous = this.core.current();
2666                    this.next = e.property.value;
2667                }
2668            }, this),
2669            'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function (e) {
2670                if (e.namespace) {
2671                    this.swapping = e.type == 'translated';
2672                }
2673            }, this),
2674            'translate.owl.carousel': $.proxy(function (e) {
2675                if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) {
2676                    this.swap();
2677                }
2678            }, this)
2679        };
2680        this.core.$element.on(this.handlers);
2681    };
2682	/**
2683	 * Default options.
2684	 * @public
2685	 */
2686    Animate.Defaults = {
2687        animateOut: false,
2688        animateIn: false
2689    };
2690	/**
2691	 * Toggles the animation classes whenever an translations starts.
2692	 * @protected
2693	 * @returns {Boolean|undefined}
2694	 */
2695    Animate.prototype.swap = function () {
2696        if (this.core.settings.items !== 1) {
2697            return;
2698        }
2699        if (!$.support.animation || !$.support.transition) {
2700            return;
2701        }
2702        this.core.speed(0);
2703        var left,
2704            clear = $.proxy(this.clear, this),
2705            previous = this.core.$stage.children().eq(this.previous),
2706            next = this.core.$stage.children().eq(this.next),
2707            incoming = this.core.settings.animateIn,
2708            outgoing = this.core.settings.animateOut;
2709        if (this.core.current() === this.previous) {
2710            return;
2711        }
2712        if (outgoing) {
2713            left = this.core.coordinates(this.previous) - this.core.coordinates(this.next);
2714            previous.one($.support.animation.end, clear)
2715                .css({ 'left': left + 'px' })
2716                .addClass('animated owl-animated-out')
2717                .addClass(outgoing);
2718        }
2719        if (incoming) {
2720            next.one($.support.animation.end, clear)
2721                .addClass('animated owl-animated-in')
2722                .addClass(incoming);
2723        }
2724    };
2725    Animate.prototype.clear = function (e) {
2726        $(e.target).css({ 'left': '' })
2727            .removeClass('animated owl-animated-out owl-animated-in')
2728            .removeClass(this.core.settings.animateIn)
2729            .removeClass(this.core.settings.animateOut);
2730        this.core.onTransitionEnd();
2731    };
2732	/**
2733	 * Destroys the plugin.
2734	 * @public
2735	 */
2736    Animate.prototype.destroy = function () {
2737        var handler, property;
2738        for (handler in this.handlers) {
2739            this.core.$element.off(handler, this.handlers[handler]);
2740        }
2741        for (property in Object.getOwnPropertyNames(this)) {
2742            typeof this[property] != 'function' && (this[property] = null);
2743        }
2744    };
2745    $.fn.owlCarousel.Constructor.Plugins.Animate = Animate;
2746})(window.Zepto || window.jQuery, window, document);
2747/**
2748 * Autoplay Plugin
2749 * @version 2.3.4
2750 * @author Bartosz Wojciechowski
2751 * @author Artus Kolanowski
2752 * @author David Deutsch
2753 * @author Tom De Caluwé
2754 * @license The MIT License (MIT)
2755 */
2756; (function ($, window, document, undefined) {
2757	/**
2758	 * Creates the autoplay plugin.
2759	 * @class The Autoplay Plugin
2760	 * @param {Owl} scope - The Owl Carousel
2761	 */
2762    var Autoplay = function (carousel) {
2763		/**
2764		 * Reference to the core.
2765		 * @protected
2766		 * @type {Owl}
2767		 */
2768        this._core = carousel;
2769		/**
2770		 * The autoplay timeout id.
2771		 * @type {Number}
2772		 */
2773        this._call = null;
2774		/**
2775		 * Depending on the state of the plugin, this variable contains either
2776		 * the start time of the timer or the current timer value if it's
2777		 * paused. Since we start in a paused state we initialize the timer
2778		 * value.
2779		 * @type {Number}
2780		 */
2781        this._time = 0;
2782		/**
2783		 * Stores the timeout currently used.
2784		 * @type {Number}
2785		 */
2786        this._timeout = 0;
2787		/**
2788		 * Indicates whenever the autoplay is paused.
2789		 * @type {Boolean}
2790		 */
2791        this._paused = true;
2792		/**
2793		 * All event handlers.
2794		 * @protected
2795		 * @type {Object}
2796		 */
2797        this._handlers = {
2798            'changed.owl.carousel': $.proxy(function (e) {
2799                if (e.namespace && e.property.name === 'settings') {
2800                    if (this._core.settings.autoplay) {
2801                        this.play();
2802                    } else {
2803                        this.stop();
2804                    }
2805                } else if (e.namespace && e.property.name === 'position' && this._paused) {
2806                    this._time = 0;
2807                }
2808            }, this),
2809            'initialized.owl.carousel': $.proxy(function (e) {
2810                if (e.namespace && this._core.settings.autoplay) {
2811                    this.play();
2812                }
2813            }, this),
2814            'play.owl.autoplay': $.proxy(function (e, t, s) {
2815                if (e.namespace) {
2816                    this.play(t, s);
2817                }
2818            }, this),
2819            'stop.owl.autoplay': $.proxy(function (e) {
2820                if (e.namespace) {
2821                    this.stop();
2822                }
2823            }, this),
2824            'mouseover.owl.autoplay': $.proxy(function () {
2825                if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2826                    this.pause();
2827                }
2828            }, this),
2829            'mouseleave.owl.autoplay': $.proxy(function () {
2830                if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2831                    this.play();
2832                }
2833            }, this),
2834            'touchstart.owl.core': $.proxy(function () {
2835                if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2836                    this.pause();
2837                }
2838            }, this),
2839            'touchend.owl.core': $.proxy(function () {
2840                if (this._core.settings.autoplayHoverPause) {
2841                    this.play();
2842                }
2843            }, this)
2844        };
2845        this._core.$element.on(this._handlers);
2846        this._core.options = $.extend({}, Autoplay.Defaults, this._core.options);
2847    };
2848	/**
2849	 * Default options.
2850	 * @public
2851	 */
2852    Autoplay.Defaults = {
2853        autoplay: false,
2854        autoplayTimeout: 5000,
2855        autoplayHoverPause: false,
2856        autoplaySpeed: false
2857    };
2858	/**
2859	 * Transition to the next slide and set a timeout for the next transition.
2860	 * @private
2861	 * @param {Number} [speed] - The animation speed for the animations.
2862	 */
2863    Autoplay.prototype._next = function (speed) {
2864        this._call = window.setTimeout(
2865            $.proxy(this._next, this, speed),
2866            this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()
2867        );
2868        if (this._core.is('interacting') || document.hidden) {
2869            return;
2870        }
2871        this._core.next(speed || this._core.settings.autoplaySpeed);
2872    }
2873	/**
2874	 * Reads the current timer value when the timer is playing.
2875	 * @public
2876	 */
2877    Autoplay.prototype.read = function () {
2878        return new Date().getTime() - this._time;
2879    };
2880	/**
2881	 * Starts the autoplay.
2882	 * @public
2883	 * @param {Number} [timeout] - The interval before the next animation starts.
2884	 * @param {Number} [speed] - The animation speed for the animations.
2885	 */
2886    Autoplay.prototype.play = function (timeout, speed) {
2887        var elapsed;
2888        if (!this._core.is('rotating')) {
2889            this._core.enter('rotating');
2890        }
2891        timeout = timeout || this._core.settings.autoplayTimeout;
2892        elapsed = Math.min(this._time % (this._timeout || timeout), timeout);
2893        if (this._paused) {
2894            this._time = this.read();
2895            this._paused = false;
2896        } else {
2897            window.clearTimeout(this._call);
2898        }
2899        this._time += this.read() % timeout - elapsed;
2900        this._timeout = timeout;
2901        this._call = window.setTimeout($.proxy(this._next, this, speed), timeout - elapsed);
2902    };
2903	/**
2904	 * Stops the autoplay.
2905	 * @public
2906	 */
2907    Autoplay.prototype.stop = function () {
2908        if (this._core.is('rotating')) {
2909            this._time = 0;
2910            this._paused = true;
2911            window.clearTimeout(this._call);
2912            this._core.leave('rotating');
2913        }
2914    };
2915	/**
2916	 * Pauses the autoplay.
2917	 * @public
2918	 */
2919    Autoplay.prototype.pause = function () {
2920        if (this._core.is('rotating') && !this._paused) {
2921            this._time = this.read();
2922            this._paused = true;
2923            window.clearTimeout(this._call);
2924        }
2925    };
2926	/**
2927	 * Destroys the plugin.
2928	 */
2929    Autoplay.prototype.destroy = function () {
2930        var handler, property;
2931        this.stop();
2932        for (handler in this._handlers) {
2933            this._core.$element.off(handler, this._handlers[handler]);
2934        }
2935        for (property in Object.getOwnPropertyNames(this)) {
2936            typeof this[property] != 'function' && (this[property] = null);
2937        }
2938    };
2939    $.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay;
2940})(window.Zepto || window.jQuery, window, document);
2941/**
2942 * Navigation Plugin
2943 * @version 2.3.4
2944 * @author Artus Kolanowski
2945 * @author David Deutsch
2946 * @license The MIT License (MIT)
2947 */
2948; (function ($, window, document, undefined) {
2949    'use strict';
2950	/**
2951	 * Creates the navigation plugin.
2952	 * @class The Navigation Plugin
2953	 * @param {Owl} carousel - The Owl Carousel.
2954	 */
2955    var Navigation = function (carousel) {
2956		/**
2957		 * Reference to the core.
2958		 * @protected
2959		 * @type {Owl}
2960		 */
2961        this._core = carousel;
2962		/**
2963		 * Indicates whether the plugin is initialized or not.
2964		 * @protected
2965		 * @type {Boolean}
2966		 */
2967        this._initialized = false;
2968		/**
2969		 * The current paging indexes.
2970		 * @protected
2971		 * @type {Array}
2972		 */
2973        this._pages = [];
2974		/**
2975		 * All DOM elements of the user interface.
2976		 * @protected
2977		 * @type {Object}
2978		 */
2979        this._controls = {};
2980		/**
2981		 * Markup for an indicator.
2982		 * @protected
2983		 * @type {Array.<String>}
2984		 */
2985        this._templates = [];
2986		/**
2987		 * The carousel element.
2988		 * @type {jQuery}
2989		 */
2990        this.$element = this._core.$element;
2991		/**
2992		 * Overridden methods of the carousel.
2993		 * @protected
2994		 * @type {Object}
2995		 */
2996        this._overrides = {
2997            next: this._core.next,
2998            prev: this._core.prev,
2999            to: this._core.to
3000        };
3001		/**
3002		 * All event handlers.
3003		 * @protected
3004		 * @type {Object}
3005		 */
3006        this._handlers = {
3007            'prepared.owl.carousel': $.proxy(function (e) {
3008                if (e.namespace && this._core.settings.dotsData) {
3009                    this._templates.push('<div class="' + this._core.settings.dotClass + '">' +
3010                        $(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '</div>');
3011                }
3012            }, this),
3013            'added.owl.carousel': $.proxy(function (e) {
3014                if (e.namespace && this._core.settings.dotsData) {
3015                    this._templates.splice(e.position, 0, this._templates.pop());
3016                }
3017            }, this),
3018            'remove.owl.carousel': $.proxy(function (e) {
3019                if (e.namespace && this._core.settings.dotsData) {
3020                    this._templates.splice(e.position, 1);
3021                }
3022            }, this),
3023            'changed.owl.carousel': $.proxy(function (e) {
3024                if (e.namespace && e.property.name == 'position') {
3025                    this.draw();
3026                }
3027            }, this),
3028            'initialized.owl.carousel': $.proxy(function (e) {
3029                if (e.namespace && !this._initialized) {
3030                    this._core.trigger('initialize', null, 'navigation');
3031                    this.initialize();
3032                    this.update();
3033                    this.draw();
3034                    this._initialized = true;
3035                    this._core.trigger('initialized', null, 'navigation');
3036                }
3037            }, this),
3038            'refreshed.owl.carousel': $.proxy(function (e) {
3039                if (e.namespace && this._initialized) {
3040                    this._core.trigger('refresh', null, 'navigation');
3041                    this.update();
3042                    this.draw();
3043                    this._core.trigger('refreshed', null, 'navigation');
3044                }
3045            }, this)
3046        };
3047        this._core.options = $.extend({}, Navigation.Defaults, this._core.options);
3048        this.$element.on(this._handlers);
3049    };
3050	/**
3051	 * Default options.
3052	 * @public
3053	 * @todo Rename `slideBy` to `navBy`
3054	 */
3055    Navigation.Defaults = {
3056        nav: false,
3057        navText: [
3058            '<span aria-label="' + 'Previous' + '">&#x2039;</span>',
3059            '<span aria-label="' + 'Next' + '">&#x203a;</span>'
3060        ],
3061        navSpeed: false,
3062        navElement: 'button type="button" role="presentation"',
3063        navContainer: false,
3064        navContainerClass: 'owl-nav',
3065        navClass: [
3066            'owl-prev',
3067            'owl-next'
3068        ],
3069        slideBy: 1,
3070        dotClass: 'owl-dot',
3071        dotsClass: 'owl-dots',
3072        dots: true,
3073        dotsEach: false,
3074        dotsData: false,
3075        dotsSpeed: false,
3076        dotsContainer: false
3077    };
3078	/**
3079	 * Initializes the layout of the plugin and extends the carousel.
3080	 * @protected
3081	 */
3082    Navigation.prototype.initialize = function () {
3083        var override,
3084            settings = this._core.settings;
3085        this._controls.$relative = (settings.navContainer ? $(settings.navContainer)
3086            : $('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');
3087        this._controls.$previous = $('<' + settings.navElement + '>')
3088            .addClass(settings.navClass[0])
3089            .html(settings.navText[0])
3090            .prependTo(this._controls.$relative)
3091            .on('click', $.proxy(function (e) {
3092                this.prev(settings.navSpeed);
3093            }, this));
3094        this._controls.$next = $('<' + settings.navElement + '>')
3095            .addClass(settings.navClass[1])
3096            .html(settings.navText[1])
3097            .appendTo(this._controls.$relative)
3098            .on('click', $.proxy(function (e) {
3099                this.next(settings.navSpeed);
3100            }, this));
3101        if (!settings.dotsData) {
3102            this._templates = [$('<button role="button">')
3103                .addClass(settings.dotClass)
3104                .append($('<span>'))
3105                .prop('outerHTML')];
3106        }
3107        this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
3108            : $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');
3109        this._controls.$absolute.on('click', 'button', $.proxy(function (e) {
3110            var index = $(e.target).parent().is(this._controls.$absolute)
3111                ? $(e.target).index() : $(e.target).parent().index();
3112            e.preventDefault();
3113            this.to(index, settings.dotsSpeed);
3114        }, this));
3115		/*$el.on('focusin', function() {
3116			$(document).off(".carousel");
3117			$(document).on('keydown.carousel', function(e) {
3118				if(e.keyCode == 37) {
3119					$el.trigger('prev.owl')
3120				}
3121				if(e.keyCode == 39) {
3122					$el.trigger('next.owl')
3123				}
3124			});
3125		});*/
3126        for (override in this._overrides) {
3127            this._core[override] = $.proxy(this[override], this);
3128        }
3129    };
3130	/**
3131	 * Destroys the plugin.
3132	 * @protected
3133	 */
3134    Navigation.prototype.destroy = function () {
3135        var handler, control, property, override, settings;
3136        settings = this._core.settings;
3137        for (handler in this._handlers) {
3138            this.$element.off(handler, this._handlers[handler]);
3139        }
3140        for (control in this._controls) {
3141            if (control === '$relative' && settings.navContainer) {
3142                this._controls[control].html('');
3143            } else {
3144                this._controls[control].remove();
3145            }
3146        }
3147        for (override in this.overides) {
3148            this._core[override] = this._overrides[override];
3149        }
3150        for (property in Object.getOwnPropertyNames(this)) {
3151            typeof this[property] != 'function' && (this[property] = null);
3152        }
3153    };
3154	/**
3155	 * Updates the internal state.
3156	 * @protected
3157	 */
3158    Navigation.prototype.update = function () {
3159        var i, j, k,
3160            lower = this._core.clones().length / 2,
3161            upper = lower + this._core.items().length,
3162            maximum = this._core.maximum(true),
3163            settings = this._core.settings,
3164            size = settings.center || settings.autoWidth || settings.dotsData
3165                ? 1 : settings.dotsEach || settings.items;
3166        if (settings.slideBy !== 'page') {
3167            settings.slideBy = Math.min(settings.slideBy, settings.items);
3168        }
3169        if (settings.dots || settings.slideBy == 'page') {
3170            this._pages = [];
3171            for (i = lower, j = 0, k = 0; i < upper; i++) {
3172                if (j >= size || j === 0) {
3173                    this._pages.push({
3174                        start: Math.min(maximum, i - lower),
3175                        end: i - lower + size - 1
3176                    });
3177                    if (Math.min(maximum, i - lower) === maximum) {
3178                        break;
3179                    }
3180                    j = 0, ++k;
3181                }
3182                j += this._core.mergers(this._core.relative(i));
3183            }
3184        }
3185    };
3186	/**
3187	 * Draws the user interface.
3188	 * @todo The option `dotsData` wont work.
3189	 * @protected
3190	 */
3191    Navigation.prototype.draw = function () {
3192        var difference,
3193            settings = this._core.settings,
3194            disabled = this._core.items().length <= settings.items,
3195            index = this._core.relative(this._core.current()),
3196            loop = settings.loop || settings.rewind;
3197        this._controls.$relative.toggleClass('disabled', !settings.nav || disabled);
3198        if (settings.nav) {
3199            this._controls.$previous.toggleClass('disabled', !loop && index <= this._core.minimum(true));
3200            this._controls.$next.toggleClass('disabled', !loop && index >= this._core.maximum(true));
3201        }
3202        this._controls.$absolute.toggleClass('disabled', !settings.dots || disabled);
3203        if (settings.dots) {
3204            difference = this._pages.length - this._controls.$absolute.children().length;
3205            if (settings.dotsData && difference !== 0) {
3206                this._controls.$absolute.html(this._templates.join(''));
3207            } else if (difference > 0) {
3208                this._controls.$absolute.append(new Array(difference + 1).join(this._templates[0]));
3209            } else if (difference < 0) {
3210                this._controls.$absolute.children().slice(difference).remove();
3211            }
3212            this._controls.$absolute.find('.active').removeClass('active');
3213            this._controls.$absolute.children().eq($.inArray(this.current(), this._pages)).addClass('active');
3214        }
3215    };
3216	/**
3217	 * Extends event data.
3218	 * @protected
3219	 * @param {Event} event - The event object which gets thrown.
3220	 */
3221    Navigation.prototype.onTrigger = function (event) {
3222        var settings = this._core.settings;
3223        event.page = {
3224            index: $.inArray(this.current(), this._pages),
3225            count: this._pages.length,
3226            size: settings && (settings.center || settings.autoWidth || settings.dotsData
3227                ? 1 : settings.dotsEach || settings.items)
3228        };
3229    };
3230	/**
3231	 * Gets the current page position of the carousel.
3232	 * @protected
3233	 * @returns {Number}
3234	 */
3235    Navigation.prototype.current = function () {
3236        var current = this._core.relative(this._core.current());
3237        return $.grep(this._pages, $.proxy(function (page, index) {
3238            return page.start <= current && page.end >= current;
3239        }, this)).pop();
3240    };
3241	/**
3242	 * Gets the current succesor/predecessor position.
3243	 * @protected
3244	 * @returns {Number}
3245	 */
3246    Navigation.prototype.getPosition = function (successor) {
3247        var position, length,
3248            settings = this._core.settings;
3249        if (settings.slideBy == 'page') {
3250            position = $.inArray(this.current(), this._pages);
3251            length = this._pages.length;
3252            successor ? ++position : --position;
3253            position = this._pages[((position % length) + length) % length].start;
3254        } else {
3255            position = this._core.relative(this._core.current());
3256            length = this._core.items().length;
3257            successor ? position += settings.slideBy : position -= settings.slideBy;
3258        }
3259        return position;
3260    };
3261	/**
3262	 * Slides to the next item or page.
3263	 * @public
3264	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
3265	 */
3266    Navigation.prototype.next = function (speed) {
3267        $.proxy(this._overrides.to, this._core)(this.getPosition(true), speed);
3268    };
3269	/**
3270	 * Slides to the previous item or page.
3271	 * @public
3272	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
3273	 */
3274    Navigation.prototype.prev = function (speed) {
3275        $.proxy(this._overrides.to, this._core)(this.getPosition(false), speed);
3276    };
3277	/**
3278	 * Slides to the specified item or page.
3279	 * @public
3280	 * @param {Number} position - The position of the item or page.
3281	 * @param {Number} [speed] - The time in milliseconds for the transition.
3282	 * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not.
3283	 */
3284    Navigation.prototype.to = function (position, speed, standard) {
3285        var length;
3286        if (!standard && this._pages.length) {
3287            length = this._pages.length;
3288            $.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
3289        } else {
3290            $.proxy(this._overrides.to, this._core)(position, speed);
3291        }
3292    };
3293    $.fn.owlCarousel.Constructor.Plugins.Navigation = Navigation;
3294})(window.Zepto || window.jQuery, window, document);
3295/**
3296 * Hash Plugin
3297 * @version 2.3.4
3298 * @author Artus Kolanowski
3299 * @author David Deutsch
3300 * @license The MIT License (MIT)
3301 */
3302; (function ($, window, document, undefined) {
3303    'use strict';
3304	/**
3305	 * Creates the hash plugin.
3306	 * @class The Hash Plugin
3307	 * @param {Owl} carousel - The Owl Carousel
3308	 */
3309    var Hash = function (carousel) {
3310		/**
3311		 * Reference to the core.
3312		 * @protected
3313		 * @type {Owl}
3314		 */
3315        this._core = carousel;
3316		/**
3317		 * Hash index for the items.
3318		 * @protected
3319		 * @type {Object}
3320		 */
3321        this._hashes = {};
3322		/**
3323		 * The carousel element.
3324		 * @type {jQuery}
3325		 */
3326        this.$element = this._core.$element;
3327		/**
3328		 * All event handlers.
3329		 * @protected
3330		 * @type {Object}
3331		 */
3332        this._handlers = {
3333            'initialized.owl.carousel': $.proxy(function (e) {
3334                if (e.namespace && this._core.settings.startPosition === 'URLHash') {
3335                    $(window).trigger('hashchange.owl.navigation');
3336                }
3337            }, this),
3338            'prepared.owl.carousel': $.proxy(function (e) {
3339                if (e.namespace) {
3340                    var hash = $(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');
3341                    if (!hash) {
3342                        return;
3343                    }
3344                    this._hashes[hash] = e.content;
3345                }
3346            }, this),
3347            'changed.owl.carousel': $.proxy(function (e) {
3348                if (e.namespace && e.property.name === 'position') {
3349                    var current = this._core.items(this._core.relative(this._core.current())),
3350                        hash = $.map(this._hashes, function (item, hash) {
3351                            return item === current ? hash : null;
3352                        }).join();
3353                    if (!hash || window.location.hash.slice(1) === hash) {
3354                        return;
3355                    }
3356                    window.location.hash = hash;
3357                }
3358            }, this)
3359        };
3360        this._core.options = $.extend({}, Hash.Defaults, this._core.options);
3361        this.$element.on(this._handlers);
3362        $(window).on('hashchange.owl.navigation', $.proxy(function (e) {
3363            var hash = window.location.hash.substring(1),
3364                items = this._core.$stage.children(),
3365                position = this._hashes[hash] && items.index(this._hashes[hash]);
3366            if (position === undefined || position === this._core.current()) {
3367                return;
3368            }
3369            this._core.to(this._core.relative(position), false, true);
3370        }, this));
3371    };
3372	/**
3373	 * Default options.
3374	 * @public
3375	 */
3376    Hash.Defaults = {
3377        URLhashListener: false
3378    };
3379	/**
3380	 * Destroys the plugin.
3381	 * @public
3382	 */
3383    Hash.prototype.destroy = function () {
3384        var handler, property;
3385        $(window).off('hashchange.owl.navigation');
3386        for (handler in this._handlers) {
3387            this._core.$element.off(handler, this._handlers[handler]);
3388        }
3389        for (property in Object.getOwnPropertyNames(this)) {
3390            typeof this[property] != 'function' && (this[property] = null);
3391        }
3392    };
3393    $.fn.owlCarousel.Constructor.Plugins.Hash = Hash;
3394})(window.Zepto || window.jQuery, window, document);
3395/**
3396 * Support Plugin
3397 *
3398 * @version 2.3.4
3399 * @author Vivid Planet Software GmbH
3400 * @author Artus Kolanowski
3401 * @author David Deutsch
3402 * @license The MIT License (MIT)
3403 */
3404; (function ($, window, document, undefined) {
3405    var style = $('<support>').get(0).style,
3406        prefixes = 'Webkit Moz O ms'.split(' '),
3407        events = {
3408            transition: {
3409                end: {
3410                    WebkitTransition: 'webkitTransitionEnd',
3411                    MozTransition: 'transitionend',
3412                    OTransition: 'oTransitionEnd',
3413                    transition: 'transitionend'
3414                }
3415            },
3416            animation: {
3417                end: {
3418                    WebkitAnimation: 'webkitAnimationEnd',
3419                    MozAnimation: 'animationend',
3420                    OAnimation: 'oAnimationEnd',
3421                    animation: 'animationend'
3422                }
3423            }
3424        },
3425        tests = {
3426            csstransforms: function () {
3427                return !!test('transform');
3428            },
3429            csstransforms3d: function () {
3430                return !!test('perspective');
3431            },
3432            csstransitions: function () {
3433                return !!test('transition');
3434            },
3435            cssanimations: function () {
3436                return !!test('animation');
3437            }
3438        };
3439    function test(property, prefixed) {
3440        var result = false,
3441            upper = property.charAt(0).toUpperCase() + property.slice(1);
3442        $.each((property + ' ' + prefixes.join(upper + ' ') + upper).split(' '), function (i, property) {
3443            if (style[property] !== undefined) {
3444                result = prefixed ? property : true;
3445                return false;
3446            }
3447        });
3448        return result;
3449    }
3450    function prefixed(property) {
3451        return test(property, true);
3452    }
3453    if (tests.csstransitions()) {
3454        /* jshint -W053 */
3455        $.support.transition = new String(prefixed('transition'))
3456        $.support.transition.end = events.transition.end[$.support.transition];
3457    }
3458    if (tests.cssanimations()) {
3459        /* jshint -W053 */
3460        $.support.animation = new String(prefixed('animation'))
3461        $.support.animation.end = events.animation.end[$.support.animation];
3462    }
3463    if (tests.csstransforms()) {
3464        /* jshint -W053 */
3465        $.support.transform = new String(prefixed('transform'));
3466        $.support.transform3d = tests.csstransforms3d();
3467    }
3468})(window.Zepto || window.jQuery, window, document);
3469(function(){'use strict';function applyHoneypotRefill(form,honeypotData){if(!form||!honeypotData||typeof honeypotData!=='object'){return;}
3470Object.keys(honeypotData).forEach(function(fieldName){const token=honeypotData[fieldName];if(!token||!token.random_hash||!token.field_name){return;}
3471const wrapper=form.querySelector('[data-cf7apps-honeypot="'+fieldName+'"]')||form.querySelector('.wpcf7-form-control-wrap.'+fieldName+'-wrap');if(!wrapper){return;}
3472const hashInput=form.querySelector('input[name="'+fieldName+'-random-hash"]');if(hashInput){hashInput.value=token.random_hash;}
3473const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(honeypotInput){honeypotInput.setAttribute('name',token.field_name);honeypotInput.value='';}});}
3474function syncHoneypotInputValues(form){if(!form){return;}
3475form.querySelectorAll('[data-cf7apps-honeypot]').forEach(function(wrapper){const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(!honeypotInput){return;}
3476const attributeValue=honeypotInput.getAttribute('value');if(attributeValue&&!honeypotInput.value){honeypotInput.value=attributeValue;}});}
3477function bindHoneypotRefillEvents(form){if(!form||form.dataset.cf7appsHoneypotBound){return;}
3478if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
3479form.dataset.cf7appsHoneypotBound='1';form.addEventListener('submit',function(){syncHoneypotInputValues(form);},true);form.addEventListener('wpcf7reset',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});form.addEventListener('wpcf7submit',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});}
3480function initHoneypotRefill(){if(typeof wpcf7==='undefined'){return;}
3481if(typeof wpcf7.submit==='function'&&!wpcf7.__cf7appsHoneypotSubmitWrapped){const originalSubmit=wpcf7.submit;wpcf7.submit=function(form,options){if(form instanceof HTMLFormElement){syncHoneypotInputValues(form);}
3482return originalSubmit.call(this,form,options);};wpcf7.__cf7appsHoneypotSubmitWrapped=true;}
3483const forms=document.querySelectorAll('.wpcf7 > form');forms.forEach(function(form){bindHoneypotRefillEvents(form);if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
3484const forceRefill=(typeof wpcf7!=='undefined'&&wpcf7.cached)||(typeof cf7appsHoneypotRefill!=='undefined'&&cf7appsHoneypotRefill.forceRefillOnInit);if(forceRefill&&typeof wpcf7.reset==='function'){wpcf7.reset(form);}});}
3485if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initHoneypotRefill);}else{initHoneypotRefill();}})();
3486!function(t){var a,e,n;function o(){a=[],e=0,t(".document-gallery img[data-id]").each(function(){var e=t(this).data("id");-1===t.inArray(e,a)&&a.push(e)}),d()}function i(a,e,n){void 0===a.id&&(a.id=wp.media.dgDefaults.id),t.post(ajaxurl,{action:"dg_generate_gallery",atts:a},function(a){var i=t(t.parseHTML(a)),d=e.attr("id");i.attr("id",d),e.replaceWith(i),e=t("#"+d),o(),void 0!==n&&n(e)})}function d(){for(var n=[];e<a.length&&4!==n.length;e++)n.push(a[e]);0!==n.length&&t.ajax({type:"POST",url:ajaxurl,dataType:"json",data:{action:"dg_generate_icons",ids:n},success:r,error:function(t){console.error(t.responseText)}})}function r(a){for(var e in a)if(a.hasOwnProperty(e)){var n=t('.document-gallery img[data-id="'+e+'"]');n.removeAttr("data-id"),function(e,n){var o="fast";n.fadeOut(o,function(){t(this).attr("src",a[e]),t(this).fadeIn(o)})}
3486(e,n)}d()}t(document).ready(function(){n="undefined"!=typeof tinymce,o(),n&&tinymce.PluginManager.add("dg",function(a,e){a.on("LoadContent update.dg undo",function(a){t(a.target.contentDocument).find('[data-wpview-type="dg"] [data-shortcode]').each(function(){i("object"==typeof t(this).data("shortcode")?t(this).data("shortcode"):JSON.parse(decodeURIComponent(t(this).data("shortcode"))),t(this))})})}),t("body").delegate(".dg-paginate-wrapper .paginate a","click",function(a){var e=t(this).closest(".dg-paginate-wrapper"),n=e.data("shortcode");n.skip=0;var o=t(this).attr("href").split("#")[1].split("=");o.length>=2&&(n.skip=n.limit*(o.pop()-1)),i(n,e,function(a){var e=t("#wpadminbar").height()||0,n=a.offset().top-e;t(document).scrollTop()>n&&t("html, body").animate({scrollTop:n-20},"slow")}),a.preventDefault()})})}(jQuery);
3487!function(a){"use strict";"ontouchend"in document;a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind("touchstart",function(c){function g(b){if(f){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(f.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e,d=c.originalEvent.touches?c.originalEvent.touches[0]:c,f={time:(new Date).getTime(),coords:[d.pageX,d.pageY],origin:a(c.target)};b.bind("touchmove",g).one("touchend",function(c){b.unbind("touchmove",g),f&&e&&e.time-f.time<a.event.special.swipe.durationThreshold&&Math.abs(f.coords[0]-e.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(f.coords[1]-e.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&f.origin.trigger("swipe").trigger(f.coords[0]>e.coords[0]?"swipeleft":"swiperight"),f=e=void 0})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind("swipe",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft}(jQuery);
3488/*!
3489* jQuery Cycle2; version: 2.1.6 build: 20141007
3490* http://jquery.malsup.com/cycle2/
3491* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL
3492*/
3493!function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)}
vendor: 17,533 bytes, lines 3493-3500
3493)),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found.  Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */
3494function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),/*! caption plugin for Cycle2;  version: 20130306 */
3495function(a){"use strict";a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),/*! command plugin for Cycle2;  version: 20140415 */
3496function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide<d.nextSlide,d._tempFx=b,d.API.prepareTx(!0,c)}},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){for(var c,d,e=this.opts(),f=[],g=1,h=0;h<e.slides.length;h++)c=e.slides[h],h==b?d=c:(f.push(c),a(c).data("cycle.opts").slideNum=g,g++);d&&(e.slides=a(f),e.slideCount--,a(d).remove(),b==e.currSlide?e.API.advanceSlide(1):b<e.currSlide?e.currSlide--:e.currSlide++,e.API.trigger("cycle-slide-removed",[e,b,d]).log("cycle-slide-removed"),e.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),/*! hash plugin for Cycle2;  version: 20130905 */
3497function(a){"use strict";function b(b,c){var d;return b._hashFence?void(b._hashFence=!1):(d=window.location.hash.substring(1),void b.slides.each(function(e){if(a(this).data("cycle-hash")==d){if(c===!0)b.startingSlide=e;else{var f=b.currSlide<e;b.nextSlide=e,b.API.prepareTx(!0,f)}return!1}}))}a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&"#"+c.hash!=window.location.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),/*! loader plugin for Cycle2;  version: 20131121 */
3498function(a){"use strict";a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function d(b,d){function f(b){var f;"wait"==c.loader?(h.push(b),0===j&&(h.sort(g),e.apply(c.API,[h,d]),c.container.removeClass("cycle-loading"))):(f=a(c.slides[c.currSlide]),e.apply(c.API,[b,d]),f.show(),c.container.removeClass("cycle-loading"))}function g(a,b){return a.data("index")-b.data("index")}var h=[];if("string"==a.type(b))b=a.trim(b);else if("array"===a.type(b))for(var i=0;i<b.length;i++)b[i]=a(b[i])[0];b=a(b);var j=b.length;j&&(b.css("visibility","hidden").appendTo("body").each(function(b){function g(){0===--i&&(--j,f(k))}var i=0,k=a(this),l=k.is("img")?k:k.find("img");return k.data("index",b),l=l.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),l.length?(i=l.length,void l.each(function(){this.complete?g():a(this).load(function(){g()}).on("error",function(){0===--i&&(c.API.log("slide skipped; img not loaded:",this.src),0===--j&&"wait"==c.loader&&e.apply(c.API,[h,d]))})})):(--j,void h.push(k))}),j&&c.container.addClass("cycle-loading"))}var e;c.loader&&(e=c.API.add,c.API.add=d)})}(jQuery),/*! pager plugin for Cycle2;  version: 20140415 */
3499function(a){"use strict";function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){b.pagerEventBubble||a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(!c.busy||c.manualTrump){var d=a.children().index(b),e=d,f=c.currSlide<e;c.currSlide!=e&&(c.nextSlide=e,c._tempFx=c.pagerFx,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b]))}}a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),/*! prevnext plugin for Cycle2;  version: 20140408 */
3500function(a){"use strict";a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}
3500),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),/*! progressive loader plugin for Cycle2;  version: 20130315 */
3501function(a){"use strict";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),/*! tmpl plugin for Cycle2;  version: 20121227 */
3502function(a){"use strict";a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++)if(g=e[d]){if(i.length>1)for(h=g,f=0;f<i.length;f++)g=h,h=h[i[f]]||c;else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(void 0!==h&&null!==h&&h!=c)return h}return c})}})}(jQuery);
3503(function(){var container,button,menu,links,i,len;container=document.getElementById('site-navigation');if(!container){return;}
3504button=container.getElementsByClassName('menu-toggle')[0];if('undefined'===typeof button){return;}
3505menu=container.getElementsByTagName('ul')[0];if('undefined'===typeof menu){button.style.display='none';return;}
3506if(-1===menu.className.indexOf('nav-menu')){menu.className+=' nav-menu';}
3507button.onclick=function(){if(-1!==container.className.indexOf('main-small-navigation')){container.className=container.className.replace('main-small-navigation','main-navigation');}else{container.className=container.className.replace('main-navigation','main-small-navigation');}};links=menu.getElementsByTagName('a');for(i=0,len=links.length;i<len;i++){links[i].addEventListener('focus',toggleFocus,true);links[i].addEventListener('blur',toggleFocus,true);}
3508function toggleFocus(){var self=this;
3508while(-1===self.className.indexOf('nav-menu')){if('li'===self.tagName.toLowerCase()){if(-1!==self.className.indexOf('focus')){self.className=self.className.replace(' focus','');}else{self.className+=' focus';}}
3509self=self.parentElement;}}})();(function(){var container;container=document.getElementById('site-navigation');(function(container){var touchStartFn,i,parentLink=container.querySelectorAll('.menu-item-has-children > a, .page_item_has_children > a');if(('ontouchstart'in window)&&(window.matchMedia("( min-width: 768px ) ").matches)){touchStartFn=function(e){var menuItem=this.parentNode,i;if(!menuItem.classList.contains('focus')){e.preventDefault();for(i=0;i<menuItem.parentNode.children.length;++i){if(menuItem===menuItem.parentNode.children[i]){continue;}
3510menuItem.parentNode.children[i].classList.remove('focus');}
3511menuItem.classList.add('focus');}else{menuItem.classList.remove('focus');}};for(i=0;i<parentLink.length;++i){parentLink[i].addEventListener('touchstart',touchStartFn,false);}}}(container));})();(function(){var subMenu;jQuery('.main-navigation ul li.menu-item-has-children a, .main-navigation ul li.page_item_has_children a').on({'mouseover touchstart':function(){function isElementInViewport(subMenu){if('function'===typeof jQuery&&subMenu instanceof jQuery){subMenu=subMenu[0];}
3512if('function'===typeof subMenu.getBoundingClientRect){var rect=subMenu.getBoundingClientRect();if(rect.right+2>(window.innerWidth||document.documentElement.clientWidth)){return'spacious-menu--left';}else if(rect.left<0){return'spacious-menu--right';}else{return false;}}}
3513subMenu=jQuery(this).next('.sub-menu, .children');if(subMenu.length>0){var viewportClass=isElementInViewport(subMenu);if(false!==viewportClass){subMenu.addClass(viewportClass);}}}});})();(function(){jQuery(document).ready(function(){var mainWrapper=document.querySelector('#header-text-nav-container .inner-wrap'),branding=document.getElementById('header-left-section'),headerAction=document.querySelector('.header-action'),navigation=document.getElementById('site-navigation'),mainWidth=mainWrapper?mainWrapper.offsetWidth:0,brandWidth=branding?branding.offsetWidth:0,navWidth=navigation?navigation.offsetWidth:0,headerActionWidth=headerAction?headerAction.offsetWidth:0,isExtra=(brandWidth+navWidth+headerActionWidth)>mainWidth,more=navigation?navigation.getElementsByClassName('tg-menu-extras-wrap')[0]:'',headerDisplayTypeFour=document.getElementsByClassName('spacious-header-display-four')[0];if(headerDisplayTypeFour){isExtra=(navWidth+headerActionWidth)>=mainWidth;}
3514if(!navigation.classList.contains('tg-extra-menus')){return;}
3515function Dimension(el){var elWidth;if(document.all){elWidth=el.currentStyle.width+parseInt(el.currentStyle.marginLeft,10)+parseInt(el.currentStyle.marginRight,10)+parseInt(el.currentStyle.paddingLeft,10)+parseInt(el.currentStyle.paddingRight,10);}else{elWidth=parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('width'))+parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('margin-left'))+parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('margin-right'));}
3516return elWidth;}
3517if(!isExtra){more.parentNode.removeChild(more);}else{var widthToBe,buttons,buttonWidth,moreWidth;widthToBe=mainWidth-headerActionWidth;if(!headerDisplayTypeFour){widthToBe=widthToBe-brandWidth;}
3518buttons=navigation.getElementsByClassName('tg-header-button-wrap')[0];buttonWidth=buttons?Dimension(buttons):0;moreWidth=more?Dimension(more):0;newNavWidth=widthToBe-(buttonWidth+moreWidth);navigation.style.visibility='none';navigation.style.width=newNavWidth+'px';function getChildNodes(node){var children=[];for(var child in node.childNodes){if(typeof node!=='undefined'){if(1===node.childNodes[child].nodeType){children.push(node.childNodes[child]);}}}
3519return children;}
3520var navUl=navigation.getElementsByClassName('nav-menu')[0],navLi=getChildNodes(navUl);function offset(el){var rect=el.getBoundingClientRect(),scrollLeft=window.pageXOffset||document.documentElement.scrollLeft,scrollTop=window.pageYOffset||document.documentElement.scrollTop;return{top:rect.top+scrollTop,left:rect.left+scrollLeft}}
3521var extraLi=[];for(var liCount=0;liCount<navLi.length;liCount++){var initialPos,li,posTop;li=navLi[liCount];posTop=offset(li).top;if(0===liCount){initialPos=posTop;}
3522if(posTop>initialPos){if(!li.classList.contains('header-action')&&!li.classList.contains('tg-menu
3522-extras-wrap')&&!li.classList.contains('tg-header-button-wrap')){extraLi.push(li);}}}
3523var newNavWidth=newNavWidth+(buttonWidth+moreWidth),extraWrap=document.getElementById('tg-menu-extras');if(!headerDisplayTypeFour){newNavWidth=newNavWidth-30;}
3524navigation.style.width=newNavWidth+'px';if(null!==extraWrap){extraLi.forEach(function(item,index,arr){extraWrap.appendChild(item);});}}});}());
3525(function(){var isIe=/(trident|msie)/i.test(navigator.userAgent);if(isIe&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var id=location.hash.substring(1),element;if(!(/^[A-z0-9_-]+$/.test(id))){return;}
3526element=document.getElementById(id);if(element){if(!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))){element.tabIndex=-1;}
3527element.focus();}},false);}})();
3528/*! This file is auto-generated */
3529!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t
3529={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
3530/*! Max Mega Menu jQuery Plugin */
3531(function($){"use strict";let instanceCounter=0;$.maxmegamenu=function(menu,options){const plugin=this;const $menu=$(menu);const $wrap=$menu.parent();const $toggle_bar=$menu.siblings(".mega-menu-toggle");const menuId=$menu.attr("id");const instanceId=menuId+'-'+(++instanceCounter);const docEventNamespace='.megamenu-'+instanceId;const items_with_submenus=$(["li.mega-menu-megamenu.mega-menu-item-has-children","li.mega-menu-flyout.mega-menu-item-has-children","li.mega-menu-tabbed > ul.mega-sub-menu > li.mega-menu-item-has-children","li.mega-menu-flyout li.mega-menu-item-has-children"].join(","),$menu);const collapse_children_parents=$("li.mega-menu-megamenu li.mega-menu-item-has-children.mega-collapse-children > a.mega-menu-link",$menu);const focusable_selector="a.mega-menu-link, button.mega-menu-link, .mega-search span[role=button]";const tab_key="Tab";const escape_key="Escape";const enter_key="Enter";const space_key=" ";const left_arrow_key="ArrowLeft";const up_arrow_key="ArrowUp";const right_arrow_key="ArrowRight";const down_arrow_key="ArrowDown";const defaults={event:$menu.attr("data-event"),effect:$menu.attr("data-effect"),effect_speed:parseInt($menu.attr("data-effect-speed")),effect_mobile:$menu.attr("data-effect-mobile"),effect_speed_mobile:parseInt($menu.attr("data-effect-speed-mobile")),panel_width:$menu.attr("data-panel-width"),panel_inner_width:$menu.attr("data-panel-inner-width"),mobile_force_width:$menu.attr("data-mobile-force-width"),mobile_overlay:$menu.attr("data-mobile-overlay"),mobile_state:$menu.attr("data-mobile-state"),mobile_direction:$menu.attr("data-mobile-direction"),second_click:$menu.attr("data-second-click"),vertical_behaviour:$menu.attr("data-vertical-behaviour"),document_click:$menu.attr("data-document-click"),breakpoint:$menu.attr("data-breakpoint"),unbind_events:$menu.attr("data-unbind"),hover_intent_timeout:$menu.attr("data-hover-intent-timeout")??300,hover_intent_interval:$menu.attr("data-hover-intent-interval")??100};plugin.settings={};let html_body_class_timeout;plugin.addAnimatingClass=function(element){if(plugin.settings.effect==="disabled"){return;}
3532$(".mega-animating",$wrap).removeClass("mega-animating");const timeout=plugin.settings.effect_speed+parseInt(plugin.settings.hover_intent_timeout,10);element.addClass("mega-animating");setTimeout(function(){element.removeClass("mega-animating");},timeout);};plugin.hideAllPanels=function(){$(".mega-toggle-on > a.mega-menu-link",$menu).each(function(){plugin.hidePanel($(this),false);});};plugin.expandMobileSubMenus=function(){if(plugin.settings.mobile_direction!=='vertical'){return;}
3533$(".mega-menu-item-has-children.mega-expand-on-mobile > a.mega-menu-link",$menu).each(function(){plugin.showPanel($(this),true);});if(plugin.settings.mobile_state==='expand_all'){$(".mega-menu-item-has-children:not(.mega-toggle-on) > a.mega-menu-link",$menu).each(function(){plugin.showPanel($(this),true);});}
3534if(plugin.settings.mobile_state==='expand_active'){const activeItemSelectors=["li.mega-current-menu-ancestor.mega-menu-item-has-children > a.mega-menu-link","li.mega-current-menu-item.mega-menu-item-has-children > a.mega-menu-link","li.mega-current-menu-parent.mega-menu-item-has-children > a.mega-menu-link","li.mega-current_page_ancestor.mega-menu-item-has-children > a.mega-menu-link","li.mega-current_page_item.mega-menu-item-has-children > a.mega-menu-link"];$menu.find(activeItemSelectors.join(', ')).each(function(){plugin.showPanel($(this),true);});}};plugin.hideSiblingPanels=function(anchor,immediate){anchor.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function(){plugin.hidePanel($(this),immediate);});};plugin.isDesktopView=function(){const width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return width>plugin.settings.breakpoint;};plugin.isMobileView=function(){return!plugin.isDesktopView();};plugin.isHorizontalMobileSubmenuMode=function(){return plugin.isMobileView()&&plugin.isMobileOffCanvas()&&plugin.settings.mobile_direction==="horizontal";};const getBackLink=function($submenu){return $submenu.find("> li.mega-mobile-back:visible > button.mega-mobile-back-link").first();};const getDeepestOpenPanel=function(){return $("li.mega-toggle-on:not(.mega-collapse-children) > ul.mega-sub-menu",$menu).last();};plugin.getFocusableItemsInSubmenu=function($submenu){return $submenu.find(focusable_selector).not(".mega-mobile-back-link").filter(function(){return $(this).is(":visible")&&window.getComputedStyle(this).visibility!=='hidden';});};plugin.focusFirstItemInOpenedSubmenu=function($item){if(!plugin.isHorizontalMobileSubmenuMode()||!$wrap.hasClass("mega-keyboard-navigation")){return;}
3535const $submenu=$item.children("ul.mega-sub-menu");if(!$submenu.length){return;}
3536const $firstFocusable=$submenu.find(focusable_selector).not(".mega-mobile-back-link").filter(":visible").first();if($firstFocusable.length){$firstFocusable.trigger("focus");}else{getBackLink($submenu).trigger("focus");}};plugin.deferFocusFirstItemInOpenedSubmenu=function($item){const delay=Math.min(120,parseInt(plugin.settings.effect_speed_mobile,10)||0);setTimeout(function(){plugin.focusFirstItemInOpenedSubmenu($item);setTimeout(function(){const focusedInSubmenu=$item.find("ul.mega-sub-menu").has(document.activeElement).length!==0;if(!focusedInSubmenu){plugin.focusFirstItemInOpenedSubmenu($item);}},40);},delay);};const resolveAnchor=function(anchor){if(typeof anchor==='number'||(typeof anchor==='string'&&anchor.trim()!==''&&!isNaN(anchor))){return $("li.mega-menu-item-"+anchor,$menu).find("a.mega-menu-link").first();}
3537if(anchor.is("li.mega-menu-item")){return anchor.find("a.mega-menu-link").first();}
3538return anchor;};plugin.showPanel=function(anchor,immediate){anchor=resolveAnchor(anchor);const $item=anchor.parent();const isDesktop=plugin.isDesktopView();const isMobile=!isDesktop;$item.triggerHandler("before_open_panel");$item.find("[aria-expanded]").first().attr("aria-expanded","true");$(".mega-animating",$wrap).removeClass("mega-animating");if(isMobile&&$item.hasClass("mega-hide-sub-menu-on-mobile")){return;}
3539if(isDesktop&&($menu.hasClass("mega-menu-horizontal")||$menu.hasClass("mega-menu-vertical"))&&!$item.hasClass("mega-collapse-children")){plugin.hideSiblingPanels(anchor,true);}
3540if((isMobile&&$wrap.hasClass("mega-keyboard-navigation"))||plugin.settings.vertical_behaviour==="accordion"){plugin.hideSiblingPanels(anchor,fal
3540se);}
3541plugin.calculateDynamicSubmenuWidths(anchor);if(plugin.shouldUseSlideAnimation(anchor,immediate)){const speed=isMobile?plugin.settings.effect_speed_mobile:plugin.settings.effect_speed;anchor.siblings(".mega-sub-menu").css("display","none").animate({"height":"show","paddingTop":"show","paddingBottom":"show","minHeight":"show"},speed,function(){$(this).css("display","");});}
3542$item.addClass("mega-toggle-on").triggerHandler("open_panel");plugin.deferFocusFirstItemInOpenedSubmenu($item);};plugin.shouldUseSlideAnimation=function(anchor,immediate){if(immediate===true){return false;}
3543if(anchor.parent().hasClass("mega-collapse-children")){return true;}
3544const isDesktop=plugin.isDesktopView();if(isDesktop&&plugin.settings.effect==="slide"){return true;}
3545if(!isDesktop){if(plugin.settings.effect_mobile==="slide"){return true;}
3546if(plugin.isMobileOffCanvas()){return plugin.settings.mobile_direction!=="horizontal";}}
3547return false;};plugin.hidePanel=function(anchor,immediate){anchor=resolveAnchor(anchor);const $item=anchor.parent();const $submenu=anchor.siblings(".mega-sub-menu");const isMobile=plugin.isMobileView();$item.triggerHandler("before_close_panel");$item.find("[aria-expanded]").first().attr("aria-expanded","false");if(plugin.shouldUseSlideAnimation(anchor)){const speed=isMobile?plugin.settings.effect_speed_mobile:plugin.settings.effect_speed;$submenu.animate({"height":"hide","paddingTop":"hide","paddingBottom":"hide","minHeight":"hide"},speed,function(){$submenu.css("display","");$item.removeClass("mega-toggle-on").triggerHandler("close_panel");});return;}
3548if(immediate){$submenu.css("display","none").delay(plugin.settings.effect_speed).queue(function(){$(this).css("display","").dequeue();});}
3549$submenu.find(".widget_media_video video").each(function(){if(this.player){this.player.pause();}});$item.removeClass("mega-toggle-on").triggerHandler("close_panel");plugin.addAnimatingClass($item);};const resolveWidthEl=function(val){return val==='$menu'?$menu:val==='$wrap'?$wrap:$(val);};plugin.calculateDynamicSubmenuWidths=function(anchor){const $item=anchor.parent();const $submenu=anchor.siblings(".mega-sub-menu");const isDesktop=plugin.isDesktopView();const isTopLevelMegamenu=$item.hasClass("mega-menu-megamenu")&&$item.parent().hasClass("max-mega-menu");if(isTopLevelMegamenu&&plugin.settings.panel_width){if(isDesktop){const submenu_offset=$menu.offset();if(plugin.settings.panel_width==='100vw'){const target_offset=$('body').offset();$submenu.css({left:(target_offset.left-submenu_offset.left)+"px"});}else{const $panel_width_el=resolveWidthEl(plugin.settings.panel_width);if($panel_width_el.length>0){$submenu.css({width:$panel_width_el.outerWidth(),left:($panel_width_el.offset().left-submenu_offset.left)+"px"});}}}else{$submenu.css({width:"",left:""});}}
3550if(isTopLevelMegamenu&&plugin.settings.panel_inner_width){const $panel_inner_width_el=resolveWidthEl(plugin.settings.panel_inner_width);if($panel_inner_width_el.length>0){const target_width=parseInt($panel_inner_width_el.width(),10);$submenu.css({"paddingLeft":"","paddingRight":""});const submenu_width=parseInt($submenu.innerWidth(),10);if(isDesktop&&target_width>0&&target_width<submenu_width){$submenu.css({"paddingLeft":(submenu_width-target_width)/2+"px","paddingRight":(submenu_width-target_width)/2+"px"});}}}};const recalculateSubmenuWidths=function(){plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link",$menu));};plugin.bindClickEvents=function(){plugin.unbindClickEvents();let dragging=false;$(document).on({["touchmove"+docEventNamespace]:function(){dragging=true;},["touchstart"+docEventNamespace]:function(){dragging=false;}});$(document).on("click"+docEventNamespace+" touchend"+docEventNamespace,function(e){if(!dragging&&plugin.settings.document_click==="collapse"&&!$(e.target).closest(".mega-menu-wrap").length){plugin.hideAllPanels();plugin.hideMobileMenu();}
3551dragging=false;});collapse_children_parents.off("click.megamenu touchend.megamenu");const clickable_parents=$("> a.mega-menu-link",items_with_submenus).add(collapse_children_parents);clickable_parents.on("touchend.megamenu",function(e){if(plugin.settings.event==="hover_intent"){plugin.unbindHoverIntentEvents();}
3552if(plugin.settings.event==="hover"){plugin.unbindHoverEvents();}});clickable_parents.on("click.megamenu",function(e){if($(e.target).hasClass('mega-indicator')){return;}
3553if(plugin.isDesktopView()&&$(this).parent().hasClass("mega-toggle-on")&&$(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")){if(plugin.settings.second_click==="go"){return;}else{e.preventDefault();return;}}
3554if(dragging){return;}
3555if(plugin.isMobileView()&&$(this).parent().hasClass("mega-hide-sub-menu-on-mobile")){return;}
3556if((plugin.settings.second_click==="go"||$(this).parent().hasClass("mega-click-click-go"))&&$(this).attr("href")!==undefined){if(!$(this).parent().hasClass("mega-toggle-on")){e.preventDefault();plugin.showPanel($(this));}}else{e.preventDefault();if($(this).parent().hasClass("mega-toggle-on")){plugin.hidePanel($(this),false);}else{plugin.showPanel($(this));}}});if(plugin.settings.second_click==="disabled"){clickable_parents.off("click.megamenu");}
3557$(".mega-close-after-click:not(.mega-menu-item-has-children) > a.mega-menu-link",$menu).on("click.megamenu",function(){plugin.hideAllPanels();plugin.hideMobileMenu();});$("button.mega-close",$wrap).on("click.megamenu",function(e){plugin.hideMobileMenu();});};plugin.bindHoverEvents=function(){items_with_submenus.on({"mouseenter.megamenu":function(){plugin.unbindClickEvents();if(!$(this).hasClass("mega-toggle-on")){plugin.showPanel($(this).children("a.mega-menu-link"));}},"mouseleave.megamenu":function(){if($(this).hasClass("mega-toggle-on")&&!$(this).hasClass("mega-disable-collapse")&&!$(this).parent().parent().hasClass("mega-menu-tabbed")){plugin.hidePanel($(this).children("a.mega-menu-link"),false);}}});};plugin.bindHoverIntentEvents=function(){items_with_submenus.hoverIntent({over:function(){plugin.unbindClickEvents();if(!$(this).hasClass("mega-toggle-on")){plugin.showPanel($(this).children("a.mega-menu-link"));}},out:function(){if($(this).hasClass("mega-toggle-on")&&!$(this).hasClass("mega-disable-collapse")&&!$(this).parent().parent().hasClass("mega-menu-tabbed")){plugin.hidePanel($(this).children("a.mega-menu-link"),false);}},timeout:plugin.settings.hover_intent_timeout,interval:plugin.settings.hover_intent_interval});};plugin.isMobileOffCanvas=function(){return plugin.settings.effect_mobile==='slide_left'||plugin.settings.effect_mobile==='slide_right';};plugin.shouldGoToNextTopLevelItem=function(key){return((key===right_arrow_key&&plugin.isDesktopView())||(key===down_arrow_key&&plugin.isMobileView()))&&$menu.hasClass("mega-menu-horizontal");};plugin.shouldGoToPreviousTopLevelItem=function(key){return((key===left_arrow_key&&plugin.isDesktopView())||(key===up_arrow_key&&plugin.isMobileView()))&&$menu.hasClass("mega-menu-horizontal");};plugin.bindKeyboardEvents=function(){const $firstFocusable=$menu.find("a.mega-menu-link").first();const $lastFocusable=$wrap.find("button.mega-close").first();const focusableLinkSelector=focusable_selector.split(", ").map(s=>"> "+s).join(", ");const togglePanelForAnchor=function(anchor){if(!anchor||!anchor.length)return;if(anchor.parent().hasClass("mega-toggle-on")&&!anchor.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")){plugin.hidePanel(anchor);}else{plugin.showPanel(anchor);}};const closeNearestOpenPanelAndRefocus=function(){const $focused=$menu[0].contains(document.activeElement)?$(document.activeElement):$();const $parentAnchor=$("> a.mega-menu-link",$focused.closest(".mega-toggle-on"));if($parentAnchor.length){plugin.hidePanel($parentAnchor);$parentAnchor.trigger("focus");return true;}
3558return false;};const handleTabKey=function(e,$active,isOffCanvasHorizontal,isMobileOffCanvas){
3558if($active.is($lastFocusable)&&isMobileOffCanvas){if(!e.shiftKey){e.preventDefault();const $backLink=isOffCanvasHorizontal?getBackLink(getDeepestOpenPanel()):$();($backLink.length?$backLink:$firstFocusable).trigger('focus');}else if(isOffCanvasHorizontal){const $last=plugin.getFocusableItemsInSubmenu(getDeepestOpenPanel()).last();if($last.length){e.preventDefault();$last.trigger('focus');}}
3559return;}
3560if(isMobileOffCanvas&&e.shiftKey&&$active.is($firstFocusable)){e.preventDefault();$lastFocusable.trigger('focus');return;}
3561if(isOffCanvasHorizontal){const $deepestPanel=getDeepestOpenPanel();if($deepestPanel.length&&!$deepestPanel.has($active).length){e.preventDefault();if(!e.shiftKey){const $backLink=getBackLink($deepestPanel);($backLink.length?$backLink:plugin.getFocusableItemsInSubmenu($deepestPanel).first()).trigger('focus');}else{$lastFocusable.trigger('focus');}
3562return;}
3563const $submenu=$active.parentsUntil($menu,"ul.mega-sub-menu").filter(function(){const $p=$(this).parent();return $p.hasClass("mega-toggle-on")&&!$p.hasClass("mega-collapse-children");}).first();if($submenu.length){if(!e.shiftKey){const $items=plugin.getFocusableItemsInSubmenu($submenu);if($items.length&&$active.is($items.last())){e.preventDefault();$lastFocusable.trigger('focus');}}else if($active.hasClass("mega-mobile-back-link")){e.preventDefault();$lastFocusable.trigger('focus');}else{const $items=plugin.getFocusableItemsInSubmenu($submenu);const $backLink=getBackLink($submenu);if($items.length&&$backLink.length&&$active.is($items.first())){e.preventDefault();$backLink.trigger('focus');}}}}};const handleToggleBarTrigger=function(e){e.preventDefault();if($toggle_bar.hasClass("mega-menu-open")){plugin.hideMobileMenu();}else{plugin.showMobileMenu();html_body_class_timeout=setTimeout(function(){$menu.find("a.mega-menu-link").first().trigger('focus');},plugin.settings.effect_speed_mobile);}};const handleSpaceKey=function(e,$active){if($active.is("a.mega-menu-link")){e.preventDefault();if($active.parent().is(items_with_submenus))togglePanelForAnchor($active);}else if($active.is(".mega-indicator")){e.preventDefault();togglePanelForAnchor($active.parent());}};const handleEscapeKey=function(){const submenu_open=$(".mega-toggle-on",$menu).length!==0;if(submenu_open&&closeNearestOpenPanelAndRefocus())return;if(plugin.isMobileView()&&!submenu_open)plugin.hideMobileMenu();};const handleEnterKey=function(e,$active){if($active.is(".mega-indicator")){togglePanelForAnchor($active.parent());return;}
3564if($active.parent().is(items_with_submenus)){if(plugin.isMobileView()&&$active.parent().is(".mega-hide-sub-menu-on-mobile"))return;if(!$active.is("[href]")){togglePanelForAnchor($active);return;}
3565if($active.parent().hasClass("mega-toggle-on")&&!$active.closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed"))return;e.preventDefault();plugin.showPanel($active);}};const handleArrowUpDown=function(e,goingDown){e.preventDefault();const $activeSubmenu=getDeepestOpenPanel();if($activeSubmenu.length){const $backLink=getBackLink($activeSubmenu);const $items=plugin.getFocusableItemsInSubmenu($activeSubmenu);const focusOrder=[];if($backLink.length)focusOrder.push($backLink[0]);$items.each(function(){focusOrder.push(this);});if($lastFocusable.length)focusOrder.push($lastFocusable[0]);const idx=focusOrder.indexOf(document.activeElement);const nextIdx=(idx<0)?(goingDown?0:focusOrder.length-1):(idx+(goingDown?1:-1)+focusOrder.length)%focusOrder.length;$(focusOrder[nextIdx]).trigger('focus');}else{const $topLinks=$menu.children("li.mega-menu-item:visible").find(focusableLinkSelector);const idx=$topLinks.index(document.activeElement);if(idx>=0){const nextIdx=(idx+(goingDown?1:-1)+$topLinks.length)%$topLinks.length;$topLinks.eq(nextIdx).trigger('focus');}}};const handleArrowLeftRight=function(e,goingToNext){e.preventDefault();const $topLinks=$menu.children("li.mega-menu-item:visible").find(focusableLinkSelector);const $topLink=$(document.activeElement).closest($menu.children("li.mega-menu-item")).find(focusableLinkSelector).first();const idx=$topLinks.index($topLink);const nextIdx=goingToNext?idx+1:idx-1;if(idx>=0&&nextIdx>=0){plugin.hideAllPanels();$topLinks.eq(nextIdx).trigger('focus');}};$wrap.on("keyup.megamenu",".max-mega-menu, .mega-menu-toggle",function(e){if(e.key!==tab_key)return;$wrap.addClass("mega-keyboard-navigation");plugin.bindClickEvents();const $target=$(e.target);if(plugin.isDesktopView()&&$target.is(".mega-menu-link")&&$target.parent().parent().hasClass('max-mega-menu')){plugin.hideAllPanels();}});$wrap.on("keydown.megamenu","a.mega-menu-link, button.mega-menu-link, button.mega-mobile-back-link, .mega-indicator, .mega-menu-toggle-block, .mega-menu-toggle-animated-block button, button.mega-close",function(e){if(!$wrap.hasClass("mega-keyboard-navigation"))return;const key=e.key;const $active=$(e.target);const isOffCanvasHorizontal=plugin.isHorizontalMobileSubmenuMode();const isMobileOffCanvas=plugin.isMobileView()&&plugin.isMobileOffCanvas();switch(key){case tab_key:handleTabKey(e,$active,isOffCanvasHorizontal,isMobileOffCanvas);break;case space_key:if($active.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")){handleToggleBarTrigger(e);}else{handleSpaceKey(e,$active);}
3566break;case enter_key:if($active.is(".mega-menu-toggle-block button, .mega-menu-toggle-animated-block button")){handleToggleBarTrigger(e);}else{handleEnterKey(e,$active);}
3567break;case escape_key:handleEscapeKey();break;case up_arrow_key:case down_arrow_key:if(isOffCanvasHorizontal){handleArrowUpDown(e,key===down_arrow_key);}
3568break;case left_arrow_key:case right_arrow_key:const goingToNext=plugin.shouldGoToNextTopLevelItem(key);const goingToPrev=plugin.shouldGoToPreviousTopLevelItem(key);if(goingToNext||goingToPrev){handleArrowLeftRight(e,goingToNext);}
3569break;}});$wrap.on("focusout.megamenu",function(e){if($wrap.hasClass("mega-keyboard-navigation")){setTimeout(function(){if(!$wrap[0].c
3569ontains(document.activeElement)){$wrap.removeClass("mega-keyboard-navigation");plugin.hideAllPanels();plugin.hideMobileMenu();}},10);}});};plugin.unbindAllEvents=function(){$(document).off(docEventNamespace);$("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator",$menu).off();};plugin.unbindClickEvents=function(){if($wrap.hasClass('mega-keyboard-navigation')){return;}
3570$(document).off(docEventNamespace);$("> a.mega-menu-link",items_with_submenus).not(collapse_children_parents).off("click.megamenu touchend.megamenu");};plugin.unbindHoverEvents=function(){items_with_submenus.off("mouseenter.megamenu mouseleave.megamenu");};plugin.unbindHoverIntentEvents=function(){items_with_submenus.off("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s");};plugin.unbindKeyboardEvents=function(){$wrap.off("keyup.megamenu keydown.megamenu focusout.megamenu");};plugin.unbindMegaMenuEvents=function(){if(plugin.settings.event==="hover_intent"){plugin.unbindHoverIntentEvents();}
3571if(plugin.settings.event==="hover"){plugin.unbindHoverEvents();}
3572plugin.unbindClickEvents();plugin.unbindKeyboardEvents();};plugin.bindMegaMenuEvents=function(){plugin.unbindMegaMenuEvents();const isDesktop=plugin.isDesktopView();if(isDesktop&&plugin.settings.event==="hover_intent"){plugin.bindHoverIntentEvents();}
3573if(isDesktop&&plugin.settings.event==="hover"){plugin.bindHoverEvents();}
3574plugin.bindClickEvents();plugin.bindKeyboardEvents();};plugin.checkWidth=function(){if(plugin.isMobileView()&&$menu.data("view")==="desktop"){plugin.switchToMobile();}
3575if(plugin.isDesktopView()&&$menu.data("view")==="mobile"){plugin.switchToDesktop();}
3576recalculateSubmenuWidths();};plugin.reverseRightAlignedItems=function(){if(!$("body").hasClass("rtl")&&$menu.hasClass("mega-menu-horizontal")&&$menu.css("display")!=='flex'){$menu.append($menu.children("li.mega-item-align-right").get().reverse());}};plugin.addClearClassesToMobileItems=function(){$(".mega-menu-row",$menu).each(function(){$("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)",$(this)).filter(":even").addClass("mega-menu-clear");});};plugin.initDesktop=function(){$menu.data("view","desktop");plugin.bindMegaMenuEvents();plugin.initIndicators();$menu.trigger("mmm:switchToDesktop");};plugin.initMobile=function(){plugin.switchToMobile();};plugin.switchToDesktop=function(){$menu.data("view","desktop");plugin.bindMegaMenuEvents();plugin.reverseRightAlignedItems();plugin.hideAllPanels();plugin.hideMobileMenu(true);$menu.removeAttr('role');$menu.removeAttr('aria-modal');$menu.removeAttr('aria-hidden');$menu.trigger("mmm:switchToDesktop");};plugin.switchToMobile=function(){$menu.data("view","mobile");if(plugin.isMobileOffCanvas()&&$toggle_bar.is(":visible")){$menu.attr('role','dialog');$menu.attr('aria-modal','true');$menu.attr('aria-hidden','true');}
3577plugin.bindMegaMenuEvents();plugin.initIndicators();plugin.reverseRightAlignedItems();plugin.addClearClassesToMobileItems();plugin.hideAllPanels();plugin.expandMobileSubMenus();$menu.trigger("mmm:switchToMobile");};plugin.initToggleBar=function(){$toggle_bar.on("click",function(e){const isToggleTrigger=$(e.target).closest(".mega-menu-toggle-block, button.mega-toggle-animated, .mega-menu-toggle-custom-block",this).length;if(isToggleTrigger){e.preventDefault();if($(this).hasClass("mega-menu-open")){plugin.hideMobileMenu();}else{plugin.showMobileMenu();}}else if(e.target===this&&plugin.isMobileOffCanvas()){plugin.hideMobileMenu();}});};plugin.initIndicators=function(){$menu.off('click.megamenu','.mega-indicator');$menu.on('click.megamenu','.mega-indicator',function(e){e.preventDefault();e.stopPropagation();if($(this).closest(".mega-menu-item").hasClass("mega-toggle-on")){if(!$(this).closest("ul.mega-sub-menu").parent().hasClass("mega-menu-tabbed")||plugin.isMobileView()){plugin.hidePanel($(this).parent(),false);}}else{plugin.showPanel($(this).parent(),false);}});};plugin.hideMobileMenu=function(force=false){if(!$toggle_bar.is(":visible")&&!force){return;}
3578$menu.attr("aria-hidden","true");clearTimeout(html_body_class_timeout);html_body_class_timeout=setTimeout(function(){$("body").removeClass(menuId+"-mobile-open");$("html").removeClass(menuId+"-off-canvas-open");},plugin.settings.effect_speed_mobile);if($wrap.hasClass("mega-keyboard-navigation")){$(".mega-menu-toggle-block button, button.mega-toggle-animated",$toggle_bar).first().trigger('focus');}
3579$(".mega-toggle-label, .mega-toggle-animated",$toggle_bar).attr("aria-expanded","fal
3579se");const resetMenuStyles=function(){$menu.css({width:"",left:"",display:""});$toggle_bar.removeClass("mega-menu-open");};if(plugin.settings.effect_mobile==="slide"&&!force){$menu.animate({"height":"hide"},plugin.settings.effect_speed_mobile,resetMenuStyles);}else{resetMenuStyles();}
3580$menu.triggerHandler("mmm:hideMobileMenu");};plugin.showMobileMenu=function(){if(!$toggle_bar.is(":visible")){return;}
3581clearTimeout(html_body_class_timeout);$("body").addClass(menuId+"-mobile-open");plugin.expandMobileSubMenus();if(plugin.isMobileOffCanvas()){$("html").addClass(menuId+"-off-canvas-open");}
3582if(plugin.settings.effect_mobile==="slide"){$menu.animate({"height":"show"},plugin.settings.effect_speed_mobile,function(){$(this).css("display","");});}
3583$(".mega-toggle-label, .mega-toggle-animated",$toggle_bar).attr("aria-expanded","true");$toggle_bar.addClass("mega-menu-open");plugin.toggleBarForceWidth();$menu.attr("aria-hidden","false");$menu.triggerHandler("mmm:showMobileMenu");};plugin.toggleBarForceWidth=function(){const $force_width_el=$(plugin.settings.mobile_force_width);if($force_width_el.length&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="disabled")){const submenu_offset=$toggle_bar.offset();const target_offset=$force_width_el.offset();$menu.css({width:$force_width_el.outerWidth(),left:(target_offset.left-submenu_offset.left)+"px"});}};plugin.doConsoleChecks=function(){if(plugin.settings.mobile_force_width!=="false"&&!$(plugin.settings.mobile_force_width).length&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="disabled")){console.warn('Max Mega Menu #'+$wrap.attr('id')+': Mobile Force Width element ('+plugin.settings.mobile_force_width+') not found');}
3584const cssWidthRegex=/^((\d+(\.\d+)?(px|%|em|rem|vw|vh|ch|ex|cm|mm|in|pt|pc))|auto)$/i;if(plugin.settings.panel_width!==undefined&&!cssWidthRegex.test(plugin.settings.panel_width)&&!resolveWidthEl(plugin.settings.panel_width).length){console.warn('Max Mega Menu #'+$wrap.attr('id')+': Panel Width (Outer) element ('+plugin.settings.panel_width+') not found');}
3585if(plugin.settings.panel_inner_width!==undefined&&!cssWidthRegex.test(plugin.settings.panel_inner_width)&&!resolveWidthEl(plugin.settings.panel_inner_width).length){console.warn('Max Mega Menu #'+$wrap.attr('id')+': Panel Width (Inner) element ('+plugin.settings.panel_inner_width+') not found');}};plugin.init=function(){$menu.triggerHandler("before_mega_menu_init");plugin.settings=$.extend({},defaults,options);if(window.console){plugin.doConsoleChecks();}
3586$menu.removeClass("mega-no-js");plugin.initToggleBar();if(plugin.settings.unbind_events==="true"){plugin.unbindAllEvents();}
3587if(document.readyState==='complete'){recalculateSubmenuWidths();}else{$(window).on("load",recalculateSubmenuWidths);}
3588if(plugin.isDesktopView()){plugin.initDesktop();}else{plugin.initMobile();}
3589$(window).on("resize",function(){plugin.checkWidth();});$menu.triggerHandler("after_mega_menu_init");};plugin.init();};$.fn.maxmegamenu=function(options){return this.each(function(){if(undefined===$(this).data("maxmegamenu")){const plugin=new $.maxmegamenu(this,options);$(this).data("maxmegamenu",plugin);}});};$(function(){$(".max-mega-menu").maxmegamenu();});}(jQuery));
3590(function($){"use strict";$(function(){$('body').on('edd_cart_item_added',function(event,data){$('.mega-menu-edd-cart-total').html(data.total);$('.mega-menu-edd-cart-count').html(data.cart_quantity);});});$(".max-mega-menu").on("after_mega_menu_init",function(){$('li.mega-menu-megamenu').on('open_panel',function(){var placeholder=$(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder");var default_src=placeholder.attr('data-default-src');var default_alt=placeholder.attr('data-default-alt');placeholder.attr('src',default_src);placeholder.attr('alt',default_alt);$('.mega-sub-menu [data-image-swap-url]',$(this)).not(['data-preloaded']).each(function(){$('<img/>')[0].src=$(this).attr('data-image-swap-url');$(this).attr('data-preloaded','true');});});if(typeof $.fn.hoverIntent!=="function"){return;}
3591$('.mega-sub-menu [data-image-swap-url]').hoverIntent({over:function(){var placeholder=$(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder");var new_src=$(this).attr('data-image-swap-url');var new_alt=$(this).is("[data-image-swap-alt]")?$(this).attr('data-image-swap-alt'):"";placeholder.attr('src',new_src);placeholder.attr('alt',new_alt);},out:function(){}});});})(jQuery);(function($){"use strict";var menuSupportsSideToSide=function($menu){return $menu.attr("data-mobile-direction")==="horizontal"&&$menu.attr("data-effect-mobile").indexOf("slide_")===0;};var getMenuItemTitle=function($item){var $link=$item.children("a.mega-menu-link").first();var clone=$link.clone();clone.find(".mega-indicator").remove();return $.trim(clone.text());};var getBackLabel=function($menu,parentTitle){var template=$menu.attr("data-mobile-back-text")||"Back to {parent_title}";var safeParentTitle=parentTitle||"";if(template.indexOf("{parent_title}")!==-1){return template.split("{parent_title}").join(safeParentTitle);}
3592return template;};var addBackLinks=function($menu){$("li.mega-menu-item-has-children > ul.mega-sub-menu",$menu).each(function(){if($("> li.mega-mobile-back",this).length){return;}
3593var $submenu=$(this);var $item=$submenu.parent("li.mega-menu-item-has-children");var title=getMenuItemTitle($item);var backLabel=getBackLabel($menu,title);var backHtml="<li class='mega-menu-item mega-mobile-back'><a href='#' class='mega-menu-link mega-mobile-back-link'>"+backLabel+"</a></li>";$submenu.prepend(backHtml);});};$(".max-mega-menu").on("after_mega_menu_init",function(){var $menu=$(this);if(!menuSupportsSideToSide($menu)){return;}
3594addBackLinks($menu);$menu.on("click.megamenu",".mega-mobile-back-link",function(e){var menuPlugin;var $submenu;var $parentItem;var $parentLink;e.preventDefault();e.stopPropagation();$submenu=$(this).closest("ul.mega-sub-menu");$parentItem=$submenu.parent("li.mega-menu-item-has-children");$parentLink=$parentItem.children("a.mega-menu-link").first();menuPlugin=$menu.data("maxmegamenu");if(menuPlugin&&typeof menuPlugin.hidePanel==="function"){menuPlugin.hidePanel($parentLink,false);}else{$parentItem.removeClass("mega-toggle-on");}
3595$parentLink.trigger("focus");});});})(jQuery);(function($){"use strict";$.maxmegamenu_searchbox=function(form,options){var plugin=this;var form=$(form);var $menu=form.parents('.max-mega-menu');var $wrap=$menu.parent();var breakpoint=$menu.attr('data-breakpoint');var input=$('input[type=text]',form);var icon=$('.search-icon',form);plugin.isDesktopView=function(){return Math.max(window.outerWidth,$(window).width())>=breakpoint;};plugin.monitorView=function(){if(typeof $menu.data("view")==='undefined'){if(plugin.isDesktopView()){$menu.data("view","desktop");}else{$menu.data("view","mobile");}}
3596plugin.checkWidth();$(window).on('resize',function(){plugin.checkWidth();});};plugin.checkWidth=function(){var expanding_search=$("li.mega-menu-item .mega-search.expand-to-left input[type=text], li.mega-menu-item .mega-search.expand-to-right input[type=text]",$menu);
3596if($menu.data("view")==="mobile"){var placeholder=expanding_search.attr('data-placeholder');expanding_search.attr('placeholder',placeholder);expanding_search.attr('aria-hidden','false');}
3597if($menu.data("view")==="desktop"){expanding_search.attr('placeholder','');expanding_search.attr('aria-hidden','true');}};plugin.close_search=function(moveFocus=true){$menu.triggerHandler("mmm:closeSearch");input.val("");input.attr('placeholder','');input.attr('tabindex','-1');input.attr('aria-hidden','true');form.removeClass('mega-search-open');form.addClass('mega-search-closed');icon.attr('aria-expanded','false');if(moveFocus){icon.trigger("focus");}}
3598plugin.open_search=function(){$menu.triggerHandler("mmm:openSearch");input.attr('placeholder',input.attr('data-placeholder'));input.attr('tabindex','0');input.attr('aria-hidden','false');form.removeClass('mega-search-closed');form.addClass('mega-search-open');icon.attr('aria-expanded','true');input.trigger("focus");}
3599plugin.detect_background_click=function(){var dragging=false;$(document).on({"touchmove":function(e){dragging=true;},"touchstart":function(e){dragging=false;}});$(document).on("click touchend",function(e){if(form.parent().hasClass('mega-static')){return;}
3600if(!dragging&&!$(e.target).closest(".max-mega-menu li").length&&!$(e.target).closest(".mega-menu-toggle").length){plugin.close_search(false);}
3601dragging=false;});}
3602plugin.init_replacements_search=function(){if($menu.data("view")==="mobile"){input.attr('tabindex','0');$(".search-icon",$menu).on('click',function(e){$(this).parents(".mega-search").submit();});}
3603if($menu.data("view")==="desktop"){input.on('blur',function(e){if($menu.parent().hasClass("mega-keyboard-navigation")&&input.val()==''&&!form.parent().hasClass('mega-static')&&form.hasClass('mega-search-open')){plugin.close_search();}});icon.on('keypress click',function(e){var enter_key=13;var space_key=32;if(e.which===enter_key||e.which===space_key||e.type==='click'){e.preventDefault();if(form.parent().hasClass('mega-static')){form.submit();return;}
3604if(input.val()!=''){form.submit();return;}
3605if(form.hasClass('mega-search-open')){plugin.close_search();return;}
3606if(form.hasClass('mega-search-closed')){plugin.open_search();return;}};});icon.on('blur',function(){if(!form.parent().hasClass('mega-static')&&form.hasClass('mega-search-open')&&$wrap.hasClass('mega-keyboard-navigation')){setTimeout(function(){if(form.find(":focus").length==0){plugin.close_search(false);}},100);}});$menu.on('keydown',function(e){var escape_key=27;if(e.which===escape_key){if(!form.parent().hasClass('mega-static')&&form.hasClass('mega-search-open')){plugin.close_search();return;}}});}};plugin.monitorView();plugin.init_replacements_search();plugin.detect_background_click();};$.fn.maxmegamenu_searchbox=function(options){return this.each(function(){if(undefined===$(this).data('maxmegamenu_searchbox')){var plugin=new $.maxmegamenu_searchbox(this,options);$(this).data('maxmegamenu_searchbox',plugin);}});};$(".max-mega-menu").on("after_mega_menu_init",function(){$(".mega-search",this).maxmegamenu_searchbox();});})(jQuery);(function($){"use strict";$.maxmegamenu_toggle_searchbox=function(form,options){var plugin=this;var form=$(form);var $wrap=form.parents('.mega-menu-wrap');var input=$("input[type=text]",form);var icon=$(".search-icon",form);plugin.open_search=function(){input.attr('placeholder',input.attr('data-placeholder'));form.removeClass('mega-search-closed');form.addClass('mega-search-open');}
3607plugin.close_search=function(){input.attr('placeholder','');form.removeClass('mega-search-open');form.addClass('mega-search-closed');}
3608plugin.init_toggle_search=function(){input.val("");input.on('focus',function(e){if(!form.parent().hasClass('mega-static')&&form.hasClass('mega-search-closed')&&$wrap.hasClass('mega-keyboard-navigation')){plugin.open_search();}});input.on('blur',function(e){if(!form.parent().hasClass('mega-static')&&form.hasClass('mega-search-open')&&$wrap.hasClass('mega-keyboard-navigation')){plugin.close_search();}});icon.on('click',function(e){if(form.hasClass('static')){if(input.attr('required')=='required'&&input.val()==""){return;}else{form.submit();}}else if(form.hasClass('mega-search-closed')){input.focus();plugin.open_search();}else if(input.val()==''){plugin.close_search();}else{form.submit();}});};plugin.init_toggle_search();};$.fn.maxmegamenu_toggle_searchbox=function(options){return this.each(function(){if(undefined===$(this).data('maxmegamenu_toggle_searchbox')){var plugin=new $.maxmegamenu_toggle_searchbox(this,options);$(this).data('maxmegamenu_toggle_searchbox',plugin);}});};$(function(){$(".mega-menu-toggle .mega-search").maxmegamenu_toggle_searchbox();});})(jQuery);(function($){"use strict";$.maxmegamenu_sticky=function(menu,options){var plugin=this;var $menu=$(menu);var $wrap=$menu.parent();var breakpoint=$menu.attr('data-breakpoint');var sticky_on_mobile=$menu.attr('data-sticky-mobile');var sticky_on_desktop=$menu.attr('data-sticky-desktop');var sticky_expand=$menu.attr('data-sticky-expand');var sticky_expand_mobile=$menu.attr('data-sticky-expand-mobile');var sticky_offset=isNaN(parseInt($menu.attr('data-sticky-offset')))?0:parseInt($menu.attr('data-sticky-offset'));var sticky_hide_until_scroll_up=$menu.attr('data-sticky-hide');var sticky_hide_until_scroll_up_tolerance=isNaN(parseInt($menu.attr('data-sticky-hide-tolerance')))?0:parseInt($menu.attr('data-sticky-hide-tolerance'));var sticky_hide_until_scroll_up_offset=isNaN(parseInt($menu.attr('data-sticky-hide-offset')))?0:parseInt($menu.attr('data-sticky-hide-offset'));var sticky_transition=$menu.attr('data-sticky-transition');var sticky_menu_offset_top;var sticky_menu_offset_left;var sticky_menu_width;var sticky_menu_width_round_up;var sticky_menu_height;var is_stuck=false;var admin_bar_height=0;var last_scroll_top=0;var saved_scroll_top=0;var is_vertical=$menu.hasClass('mega-menu-vertical')||$menu.hasClass('mega-menu-accordion');plugin.isDesktopView=function(){var width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);return width>breakpoint;};var sticky_hide_until_scroll_up_enabled=function(){return $menu.hasClass('mega-menu-horizontal')&&sticky_hide_until_scroll_up=="true";}
3609var sticky_enabled=function(){if(plugin.isDesktopView()){return sticky_on_desktop==='true';}else{return sticky_on_mobile==='true';}
3610return false;};plugin.calculate_menu_position=function(){sticky_menu_offset_top=$wrap.offset().top;if($('body').hasClass('admin-bar')&&$("#wpadminbar").is(":visible")&&$("#wpadminbar").css('top')=='0px'&&$("#wpadminbar").css('position')=='fixed'){admin_bar_height=$('#wpadminbar').height();sticky_menu_offset_top=sticky_menu_offset_top-admin_bar_height;}
3611if(sticky_offset<0){sticky_menu_offset_top=sticky_menu_offset_top+sticky_offset;}else{sticky_menu_offset_top=sticky_menu_offset_top-sticky_offset;}
3612sticky_menu_offset_left=$menu.parent().offset().left;sticky_menu_width=window.getComputedStyle($wrap[0]).width;sticky_menu_width_round_up=Math.ceil(parseFloat(sticky_menu_width));sticky_menu_height=$wrap.height();};plugin.stick_menu=function(){is_stuck=true;var total_offset=parseInt(admin_bar_height,10)+parseInt(sticky_offset,10);if(sticky_offset<0){total_offset=parseInt(admin_bar_height,10);}
3613var placeholder=$("<div />").addClass("mega-sticky-wrapper").css({'height':sticky_menu_height+'px','position':'static'});$wrap.addClass('mega-sticky').wrap(placeholder).css({'margin-top':total_offset+'px'});$("body").addClass($menu.attr("id")+"-mega-sticky");$menu.css({'max-width':sticky_menu_width_round_up+'px'});if(sticky_menu_offset_left>0){$menu.css({'margin-left':sticky_menu_offset_left+'px'});}
3614if(is_vertical||sticky_expand==='false'){$wrap.css({'margin-left':'0','margin-right':'0','width':sticky_menu_width_round_up+'px','left':sticky_menu_offset_left+'px'});$menu.css({'margin-left':'0'});}
3615if($(window).width()<=breakpoint){$wrap.css({'width':sticky_menu_width_round_up+'px'});if(sticky_expand_mobile==='true'){$wrap.css({'margin-left':'','margin-right':'','width':'','left':''});$menu.css({'max-width':'','margin-left':'','width':'','left':''});}}
3616$wrap.delay(0).queue(function(next){$(this).addClass('mega-stuck');next();});};plugin.unstick_menu=function(doing_resize){doing_resize=doing_resize||false;is_stuck=false;$wrap.removeClass('mega-sticky').removeClass('mega-hide').css({'margin':'','width':'','left':''});$("body").removeClass($menu.attr("id")+"-mega-sticky");if(!doing_resize){$wrap.delay(0).queue(function(next){$(this).removeClass('mega-stuck');next();});}
3617$menu.css({'margin-left':'','max-width':'','left':'','width':''});if($(window).width()<=breakpoint){$menu.data('maxmegamenu').toggleBarForceWidth();}
3618if(sticky_transition=='true'&&!doing_resize){var delay=250;}else{var delay=0;}
3619$wrap.delay(delay).queue(function(next){$(this).unwrap();next();});};plugin.mega_sticky_on_scroll=function(){if(!sticky_enabled()){return;}
3620var scroll_top=$(window).scrollTop();if(scroll_top>sticky_menu_offset_top){if(!is_stuck){plugin.stick_menu();}}else{if(is_stuck){plugin.unstick_menu();}}};var mega_hide_on_scroll_up=function(){if(sticky_hide_until_scroll_up_enabled()){if($menu.data("view")==="mobile"&&$('.mega-menu-toggle',$wrap).hasClass('mega-menu-open')){return;}
3621var scroll_top=$(window).scrollTop();if(scroll_top<sticky_hide_until_scroll_up_offset){$wrap.removeClass('mega-hide');$("body").removeClass($menu.attr("id")+"-mega-hide");}
3622saved_scroll_top=last_scroll_top;if(scroll_top<last_scroll_top){if(saved_scroll_top-scroll_top>sticky_hide_until_scroll_up_tolerance){$wrap.removeClass('mega-hide');$("body").removeClass($menu.attr("id")+"-mega-hide");}}else{if(is_stuck&&scroll_top-saved_scroll_top>sticky_hide_until_scroll_up_tolerance){$wrap.addClass('mega-hide');$("body").addClass($menu.attr("id")+"-mega-hide");}}
3623last_scroll_top=scroll_top;}}
3624plugin.mega_sticky_on_resize=function(){if($('input',$wrap).is(':focus')){return;}
3625if(sticky_enabled()){if(is_stuck){plugin.unstick_menu(true);plugin.calculate_menu_position();plugin.stick_menu();}else{plugin.calculate_menu_position();plugin.mega_sticky_on_scroll();}}else{if(is_stuck){plugin.unstick_menu();}}};plugin.init=function(){plugin.calculate_menu_position();plugin.mega_sticky_on_scroll();$('.mega-menu-accordion li.mega-menu-item').on('open_panel',function(){plugin.calculate_menu_position();});var $window=$(window);$window.scroll(function(){plugin.mega_sticky_on_scroll();mega_hide_on_scroll_up();});var windowWidth=$window.width();var resizeTimer;$window.on('resize',function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){windowWidth=$window.width();plugin.mega_sticky_on_resize();},100);});};plugin.init();};$.fn.maxmegamenu_sticky=function(options){return this.each(function(){if(undefined===$(this).data('maxmegamenu_sticky')){var plugin=new $.maxmegamenu_sticky(this,options);$(this).data('maxmegamenu_sticky',plugin);}});};$(window).on('load',function(e){$(".max-mega-menu[data-sticky-enabled]").maxmegamenu_sticky();});})(jQuery);(function($){$(function(){var calculate_tabbed_sub_menu_widths=function(menu_item){var menu=menu_item.parents('.max-mega-menu');if($(menu.attr('data-panel-inner-width')).length>0){if(menu.data("view")==="desktop"){$('> ul.mega-sub-menu',menu_item).each(function(){var tab_content=$(this);var parent_submenu_content_width=parseInt(tab_content.width());var parent_submenu_left_padding=parseInt(tab_content.css('paddingLeft'));var tabs_width=$(this).find('a.mega-menu-link').first().outerWidth();$('> li.mega-menu-item > ul.mega-sub-menu',$(this)).each(function(){$(this).css('width',parent_submenu_content_width-tabs_width+'px');$(this).css('left',parent_submenu_left_padding+tabs_width+'px');});});}else{$('> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu',menu_item).each(function(){$(this).css('width','');$(this).css('left','');});}}}
3626var calculate_tabbed_sub_menu_heights=function(menu_item){var menu=menu_item.parents('.max-mega-menu');var max_height=0;if(menu.data("view")==="desktop"){$('> ul.mega-sub-menu',menu_item).css('minHeight','');$('> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu',menu_item).each(function(){var tab_content=$(this);var this_height=parseInt(tab_content.css('height'));if(this_height>
3626max_height){max_height=this_height;}});var border_top_width=parseInt($('> ul.mega-sub-menu',menu_item).css('borderTopWidth'),10);var border_bottom_width=parseInt($('> ul.mega-sub-menu',menu_item).css('borderBottomWidth'),10);$('> ul.mega-sub-menu',menu_item).css('minHeight',max_height+border_bottom_width+border_top_width);}else{$('> ul.mega-sub-menu',menu_item).css('minHeight','');}}
3627var $window=$(window);var windowWidth=$window.width();$window.on('resize',function(){if($window.width()!=windowWidth){calculate_tabbed_sub_menu_widths($('li.mega-menu-tabbed'));calculate_tabbed_sub_menu_heights($('li.mega-menu-tabbed'));}});$('li.mega-menu-tabbed, li.mega-menu-tabbed li.mega-collapse-children').on('open_panel',function(){var menu=$(this).parents('.max-mega-menu');var menu_item=$(this).closest(".mega-menu-tabbed");calculate_tabbed_sub_menu_widths(menu_item);$("> ul.mega-sub-menu",$(this)).promise().done(function(){calculate_tabbed_sub_menu_heights(menu_item);});if(menu.data('view')=='desktop'){if($('> ul.mega-sub-menu > li.mega-menu-item-has-children.mega-toggle-on',menu_item).length==0){if($('> ul.mega-sub-menu > li.mega-current-menu-item:visible',menu_item).length){$('> ul.mega-sub-menu > li.mega-current-menu-item:visible',menu_item).first().addClass('mega-toggle-on');}else if($('> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible',menu_item).length){$('> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible',menu_item).first().addClass('mega-toggle-on');}
3628if($('> ul.mega-sub-menu > li.mega-toggle-on',menu_item).length==0){$('> ul.mega-sub-menu > li.mega-menu-item-has-children:visible',menu_item).first().addClass('mega-toggle-on');}}
3629$('li.mega-menu-tabbed',menu).on('close_panel',function(){$('li.mega-menu-tabbed .mega-toggle-on',menu).removeClass('mega-toggle-on');});}
3630$('li.mega-menu-tabbed li.mega-collapse-children').on('close_panel',function(){var menu_item=$(this).closest('.mega-menu-tabbed');$("> ul.mega-sub-menu",$(this)).promise().done(function(){calculate_tabbed_sub_menu_heights(menu_item);});});});});})(jQuery);
3631
3632/* global window, document, define, jQuery, setInterval, clearInterval */
3633!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(a){"use strict";var o,r=window.Slick||{};o=0,(r=function(i,e){var t=this;t.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(i),appendDots:a(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},t.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(t,t.initials),t.activeBreakpoint=null,t.animType=null,t.animProp=null,t.breakpoints=[],t.breakpointSettings=[],t.cssTransitions=!1,t.focussed=!1,t.interrupted=!1,t.hidden="hidden",t.paused=!0,t.positionProp=null,t.respondTo=null,t.rowCount=1,t.shouldClick=!0,t.$slider=a(i),t.$slidesCache=null,t.transformType=null,t.transitionType=null,t.visibilityChange="visibilitychange",t.windowWidth=0,t.windowTimer=null,i=a(i).data("slick")||{},t.options=a.extend({},t.defaults,e,i),t.currentSlide=t.options.initialSlide,t.originalSettings=t.options,void 0!==document.mozHidden?(t.hidden="mozHidden",t.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(t.hidden="webkitHidden",t.visibilityChange="webkitvisibilitychange"),t.autoPlay=a.proxy(t.autoPlay,t),t.autoPlayClear=a.proxy(t.autoPlayClear,t),t.autoPlayIterator=a.proxy(t.autoPlayIterator,t),t.changeSlide=a.proxy(t.changeSlide,t),t.clickHandler=a.proxy(t.clickHandler,t),t.selectHandler=a.proxy(t.selectHandler,t),t.setPosition=a.proxy(t.setPosition,t),t.swipeHandler=a.proxy(t.swipeHandler,t),t.dragHandler=a.proxy(t.dragHandler,t),t.keyHandler=a.proxy(t.keyHandler,t),t.instanceUid=o++,t.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,t.registerBreakpoints(),t.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(i,e,t){var o=this;if("boolean"==typeof e)t=e,e=null;else if(e<0||e>=o.slideCount)return!1;o.unload(),"number"==typeof e?0===e&&0===o.$slides.length?a(i).appendTo(o.$slideTrack):t?a(i).insertBefore(o.$slides.eq(e)):a(i).insertAfter(o.$slides.eq(e)):!0===t?a(i).prependTo(o.$slideTrack):a(i).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(i,e){a(e).attr("data-slick-index",i)}),o.$slidesCache=o.$slides,o.reinit()},r.prototype.animateHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$
vendor: 6,888 bytes, line 3633
3633slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:i},e.options.speed))},r.prototype.animateSlide=function(i,e){var t={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(i=-i),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:i},o.options.speed,o.options.easing,e):o.$slideTrack.animate({top:i},o.options.speed,o.options.easing,e):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),a({animStart:o.currentLeft}).animate({animStart:i},{duration:o.options.speed,easing:o.options.easing,step:function(i){i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate("+i+"px, 0px)":t[o.animType]="translate(0px,"+i+"px)",o.$slideTrack.css(t)},complete:function(){e&&e.call()}})):(o.applyTransition(),i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate3d("+i+"px, 0px, 0px)":t[o.animType]="translate3d(0px,"+i+"px, 0px)",o.$slideTrack.css(t),e&&setTimeout(function(){o.disableTransition(),e.call()},o.options.speed))},r.prototype.getNavTarget=function(){var i=this.options.asNavFor;return i&&null!==i&&(i=a(i).not(this.$slider)),i},r.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=a(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},r.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(i)).css(t)},r.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},r.prototype.buildArrows=function(){var i=this;!0===i.options.arrows&&(i.$prevArrow=a(i.options.prevArrow).addClass("slick-arrow"),i.$nextArrow=a(i.options.nextArrow).addClass("slick-arrow"),i.slideCount>i.options.slidesToShow?(i.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.prependTo(i.options.appendArrows),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.appendTo(i.options.appendArrows),!0!==i.options.infinite&&i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):i.$prevArrow.add(i.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var i,e,t=this;if(!0===t.options.dots&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),e=a("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)e.append(a("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=e.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},r.prototype.buildOut=function(){var i=this;i.$slides=i.$slider.children(i.options.slide+":not(.slick-cloned)").addClass("slick-slide"),i.slideCount=i.$slides.length,i.$slides.each(function(i,e){a(e).attr("data-slick-index",i).data("originalStyling",a(e).attr("style")||"")}),i.$slider.addClass("slick-slider"),i.$slideTrack=0===i.slideCount?a('<div class="slick-track"/>').appendTo(i.$slider):i.$slides.wrapAll('<div class="slick-track"/>').parent(),i.$list=i.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),i.$slideTrack.css("opacity",0),!0!==i.options.centerMode&&!0!==i.options.swipeToSlide||(i.options.slidesToScroll=1),a("img[data-lazy]",i.$slider).not("[src]").addClass("slick-loading"),i.setupInfinite(),i.buildArrows(),i.buildDots(),i.updateDots(),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),!0===i.options.draggable&&i.$list.addClass("draggable")},r.prototype.buildRows=function(){var i,e,t,o=this,s=document.createDocumentFragment(),n=o.$slider.children();if(1<o.options.rows){for(t=o.options.slidesPerRow*o.options.rows,e=Math.ceil(n.length/t),i=0;i<e;i++){for(var r=document.createElement("div"),l=0;l<o.options.rows;l++){for(var d=document.createElement("div"),a=0;a<o.options.slidesPerRow;a++){var c=i*t+(l*o.options.slidesPerRow+a);n.get(c)&&d.appendChild(n.get(c))}r.appendChild(d)}s.appendChild(r)}o.$slider.empty().append(s),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(i,e){var t,o,s,n=this,r=!1,l=n.$slider.width(),d=window.innerWidth||a(window).width();if("window"===n.respondTo?s=d:"slider"===n.respondTo?s=l:"min"===n.respondTo&&(s=Math.min(d,l)),n.options.responsive&&n.options.responsive.length&&null!==n.options.responsive){for(t in o=null,n.breakpoints)n.breakpoints.hasOwnProperty(t)&&(!1===n.originalSettings.mobileFirst?s<n.breakpoints[t]&&(o=n.breakpoints[t]):s>n.breakpoints[t]&&(o=n.breakpoints[t]));null!==o?null!==n.activeBreakpoint&&o===n.activeBreakpoint&&!e||(n.activeBreakpoint=o,"unslick"===n.breakpointSettings[o]?n.unslick(o):(n.options=a.extend({},n.originalSettings,n.breakpointSettings[o]),!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i)),r=o):null!==n.activeBreakpoint&&(n.activeBreakpoint=null,n.options=n.originalSettings,!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i),r=o),i||!1===r||n.$slider.trigger("breakpoint",[n,r])}},r.prototype.changeSlide=function(i,e){var t,o=this,s=a(i.currentTarget);switch(s.is("a")&&i.preventDefault(),s.is("li")||(s=s.closest("li")),t=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,i.data.message){case"previous":n=0==t?o.options.slidesToScroll:o.options.slidesToShow-t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0==t?o.options.slidesToScroll:t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var n=0===i.data.index?0:i.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(n),!1,e),s.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(i){var e=this.getNavigableIndexes(),t=0;if(i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},r.prototype.cleanUpEvents=function(){var i=this;i.options.dots&&null!==i.$dots&&a("li",i.$dots).off("click.slick",i.changeSlide).off("mouseenter.slick",a.proxy(i.interrupt,i,!0)).off("mouseleave.
3633slick",a.proxy(i.interrupt,i,!1)),i.$slider.off("focus.slick blur.slick"),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow&&i.$prevArrow.off("click.slick",i.changeSlide),i.$nextArrow&&i.$nextArrow.off("click.slick",i.changeSlide)),i.$list.off("touchstart.slick mousedown.slick",i.swipeHandler),i.$list.off("touchmove.slick mousemove.slick",i.swipeHandler),i.$list.off("touchend.slick mouseup.slick",i.swipeHandler),i.$list.off("touchcancel.slick mouseleave.slick",i.swipeHandler),i.$list.off("click.slick",i.clickHandler),a(document).off(i.visibilityChange,i.visibility),i.cleanUpSlideEvents(),!0===i.options.accessibility&&i.$list.off("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().off("click.slick",i.selectHandler),a(window).off("orientationchange.slick.slick-"+i.instanceUid,i.orientationChange),a(window).off("resize.slick.slick-"+i.instanceUid,i.resize),a("[draggable!=true]",i.$slideTrack).off("dragstart",i.preventDefault),a(window).off("load.slick.slick-"+i.instanceUid,i.setPosition)},r.prototype.cleanUpSlideEvents=function(){var i=this;i.$list.off("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.off("mouseleave.slick",a.proxy(i.interrupt,i,!1))},r.prototype.cleanUpRows=function(){var i;1<this.options.rows&&((i=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(i))},r.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},r.prototype.destroy=function(i){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),a(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,i||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(i){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(i)).css(e)},r.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},r.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},r.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var e=a(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=e.is(":focus"),t.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},r.prototype.getLeft=function(i){var e,t=this,o=0;return t.slideOffset=0,e=t.$slides.first().outerHeight(!0),!0===t.options.infinite?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,o=e*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&i+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(o=i>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(i-t.slideCount))*t.slideWidth*-1,(t.options.slidesToShow-(i-t.slideCount))*e*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,t.slideCount%t.options.slidesToScroll*e*-1))):i+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(i+t.options.slidesToShow-t.slideCount)*t.slideWidth,o=(i+t.options.slidesToShow-t.slideCount)*e),t.slideCount<=t.options.slidesToShow&&(o=t.slideOffset=0),!0===t.options.centerMode&&!0===t.options.infinite?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:!0===t.options.centerMode&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),e=!1===t.options.vertical?i*t.slideWidth*-1+t.slideOffset:i*e*-1+o,!0===t.options.variableWidth&&(o=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(i):t.$slideTrack.children(".slick-slide").eq(i+t.options.slidesToShow),e=!0===t.options.rtl?o[0]?-1*(t.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===t.options.centerMode&&(o=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(i):t.$slideTrack.children(".slick-slide").eq(i+t.options.slidesToShow+1),e=!0===t.options.rtl?o[0]?-1*(t.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(t.$list.width()-o.outerWidth())/2)),e},r.prototype.getOption=r.prototype.slickGetOption=function(i){return this.options[i]},r.prototype.getNavigableIndexes=function(){for(var i=this,e=0,t=0,o=[],s=!1===i.options.infinite?i.slideCount:(e=-1*i.options.slidesToScroll,t=-1*i.options.slidesToScroll,2*i.slideCount);e<s;)o.push(e),e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;return o},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var t,o=this,s=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0;return!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(i,e){if(e.offsetLeft-s+a(e).outerWidth()/2>-1*o.swipeLeft)return t=e,!1}
3633),Math.abs(a(t).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},r.prototype.init=function(i){var e=this;a(e.$slider).hasClass("slick-initialized")||(a(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),i&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){a(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},r.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide))},r.prototype.initDotEvents=function(){var i=this;!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&a("li",i.$dots).on("click.slick",{message:"index"},i.changeSlide),!0===i.options.dots&&!0===i.options.pauseOnDotsHover&&a("li",i.$dots).on("mouseenter.slick",a.proxy(i.interrupt,i,!0)).on("mouseleave.slick",a.proxy(i.interrupt,i,!1))},r.prototype.initSlideEvents=function(){var i=this;i.options.pauseOnHover&&(i.$list.on("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.on("mouseleave.slick",a.proxy(i.interrupt,i,!1)))},r.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.initSlideEvents(),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"}
3633,i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.$list.on("click.slick",i.clickHandler),a(document).on(i.visibilityChange,a.proxy(i.visibility,i)),!0===i.options.accessibility&&i.$list.on("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),a(window).on("orientationchange.slick.slick-"+i.instanceUid,a.proxy(i.orientationChange,i)),a(window).on("resize.slick.slick-"+i.instanceUid,a.proxy(i.resize,i)),a("[draggable!=true]",i.$slideTrack).on("dragstart",i.preventDefault),a(window).on("load.slick.slick-"+i.instanceUid,i.setPosition)},r.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},r.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){var i,e,o=this;function t(i){a("img[data-lazy]",i).each(function(){var i=a(this),e=a(this).attr("data-lazy"),t=document.createElement("img");t.onload=function(){i.animate({opacity:0}
vendor: 6,493 bytes, line 3633
3633,100,function(){i.attr("src",e).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,i,e])})},t.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,e])},t.src=e})}!0===o.options.centerMode?e=!0===o.options.infinite?(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,e=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(0<i&&i--,e<=o.slideCount&&e++)),t(o.$slider.find(".slick-slide").slice(i,e)),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},r.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},r.prototype.postSlide=function(i){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,i]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(i){i.preventDefault()},r.prototype.progressiveLazyLoad=function(i){i=i||1;var e,t,o=this,s=a("img[data-lazy]",o.$slider);s.length?(e=s.first(),t=e.attr("data-lazy"),(s=document.createElement("img")).onload=function(){e.attr("src",t).removeAttr("data-lazy").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,t]),o.progressiveLazyLoad()},s.onerror=function(){i<3?setTimeout(function(){o.progressiveLazyLoad(i+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,t]),o.progressiveLazyLoad())},s.src=t):o.$slider.trigger("allImagesLoaded",[o])},r.prototype.refresh=function(i){var e=this,t=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>t&&(e.currentSlide=t),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),t=e.currentSlide,e.destroy(!0),a.extend(e,e.initials,{currentSlide:t}),e.init(),i||e.changeSlide({data:{message:"index",index:t}},!1)},r.prototype.registerBreakpoints=function(){var i,e,t,o=this,s=o.options.responsive||null;if(!0===Array.isArray(s)&&s.length){for(i in o.respondTo=o.options.respondTo||"window",s)if(t=o.breakpoints.length-1,e=s[i].breakpoint,s.hasOwnProperty(i)){for(;0<=t;)o.breakpoints[t]&&o.breakpoints[t]===e&&o.breakpoints.splice(t,1),t--;o.breakpoints.push(e),o.breakpointSettings[e]=s[i].settings}o.breakpoints.sort(function(i,e){return o.options.mobileFirst?i-e:e-i})}},r.prototype.reinit=function(){var i=this;i.$slides=i.$slideTrack.children(i.options.slide).addClass("slick-slide"),i.slideCount=i.$slides.length,i.currentSlide>=i.slideCount&&0!==i.currentSlide&&(i.currentSlide=i.currentSlide-i.options.slidesToScroll),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),i.registerBreakpoints(),i.setProps(),i.setupInfinite(),i.buildArrows(),i.updateArrows(),i.initArrowEvents(),i.buildDots(),i.updateDots(),i.initDotEvents(),i.cleanUpSlideEvents(),i.initSlideEvents(),i.checkResponsive(!1,!0),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),i.setPosition(),i.focusHandler(),i.paused=!i.options.autoplay,i.autoPlay(),i.$slider.trigger("reInit",[i])},r.prototype.resize=function(){var i=this;a(window).width()!==i.windowWidth&&(clearTimeout(i.windowDelay),i.windowDelay=window.setTimeout(function(){i.windowWidth=a(window).width(),i.checkResponsive(),i.unslicked||i.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),(!0===t?o.$slideTrack.children():o.$slideTrack.children(this.options.slide).eq(i)).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},r.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled||(!(s={})===o.cssTransitions?s[o.animType]="translate("+e+", "+t+")":s[o.animType]="translate3d("+e+", "+t+", 0px)"),o.$slideTrack.css(s)},r.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},r.prototype.setFade=function(){var t,o=this;o.$slides.each(function(i,e){t=o.slideWidth*i*-1,!0===o.options.rtl?a(e).css({position:"relative",right:t,top:0,zIndex:o.options.zIndex-2,opacity:0}
3633):a(e).css({position:"relative",left:t,top:0,zIndex:o.options.zIndex-2,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:o.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",i))},r.prototype.setOption=r.prototype.slickSetOption=function(){var i,e,t,o,s,n=this,r=!1;if("object"===a.type(arguments[0])?(t=arguments[0],r=arguments[1],s="multiple"):"string"===a.type(arguments[0])&&(t=arguments[0],o=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)n.options[t]=o;else if("multiple"===s)a.each(t,function(i,e){n.options[i]=e});else if("responsive"===s)for(e in o)if("array"!==a.type(n.options.responsive))n.options.responsive=[o[e]];else{for(i=n.options.responsive.length-1;0<=i;)n.options.responsive[i].breakpoint===o[e].breakpoint&&n.options.responsive.splice(i,1),i--;n.options.responsive.push(o[e])}r&&(n.unload(),n.reinit())},r.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},r.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},r.prototype.setSlideClasses=function(i){var e,t,o=this,s=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");o.$slides.eq(i).addClass("slick-current"),!0===o.options.centerMode?(t=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t<=i&&i<=o.slideCount-1-t?o.$slides.slice(i-t,i+t+1).addClass("slick-active").attr("aria-hidden","false"):(e=o.options.slidesToShow+i,s.slice(e-t+1,e+t+2).addClass("slick-active").attr("aria-hidden","false")),0===i?s.eq(s.length-1-o.options.slidesToShow).addClass("slick-center"):i===o.slideCount-1&&s.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(i).addClass("slick-center")):0<=i&&i<=o.slideCount-o.options.slidesToShow?o.$slides.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):s.length<=o.options.slidesToShow?s.addClass("slick-active").attr("aria-hidden","false"):(t=o.slideCount%o.options.slidesToShow,e=!0===o.options.infinite?o.options.slidesToShow+i:i,(o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-i<o.options.slidesToShow?s.slice(e-(o.options.slidesToShow-t),e+t):s.slice(e,e+o.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},r.prototype.setupInfinite=function(){var i,e,t,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(e=null,o.slideCount>o.options.slidesToShow)){for(t=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,i=o.slideCount;i>o.slideCount-t;--i)e=i-1,a(o.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(i=0;i<t;i+=1)e=i,a(o.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},r.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},r.prototype.selectHandler=function(i){var e=this,i=a(i.target).is(".slick-slide")?a(i.target):a(i.target).parents(".slick-slide"),i=(i=parseInt(i.attr("data-slick-index")))||0;if(e.slideCount<=e.options.slidesToShow)return e.setSlideClasses(i),void e.asNavFor(i);e.slideHandler(i)},r.prototype.slideHandler=function(i,e,t){var o,s,n,r,l=this;if(e=e||!1,(!0!==l.animating||!0!==l.options.waitForAnimate)&&!(!0===l.options.fade&&l.currentSlide===i||l.slideCount<=l.options.slidesToShow))if(!1===e&&l.asNavFor(i),o=i,n=l.getLeft(o),e=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?e:l.swipeLeft,!1===l.options.infinite&&!1===l.options.centerMode&&(i<0||i>l.getDotCount()*l.options.slidesToScroll))!1===l.options.fade&&(o=l.currentSlide,!0!==t?l.animateSlide(e,function(){l.postSlide(o)}):l.postSlide(o));else if(!1===l.options.infinite&&!0===l.options.centerMode&&(i<0||i>l.slideCount-l.options.slidesToScroll))!1===l.options.fade&&(o=l.currentSlide,!0!==t?l.animateSlide(e,function(){l.postSlide(o)}):l.postSlide(o));else{if(l.options.autoplay&&clearInterval(l.autoPlayTimer),s=o<0?l.slideCount%l.options.slidesToScroll!=0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+
vendor: 4,879 bytes, line 3633
3633o:o>=l.slideCount?l.slideCount%l.options.slidesToScroll!=0?0:o-l.slideCount:o,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,s]),e=l.currentSlide,l.currentSlide=s,l.setSlideClasses(l.currentSlide),l.options.asNavFor&&(r=(r=l.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade)return!0!==t?(l.fadeSlideOut(e),l.fadeSlide(s,function(){l.postSlide(s)})):l.postSlide(s),void l.animateHeight();!0!==t?l.animateSlide(n,function(){l.postSlide(s)}):l.postSlide(s)}},r.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var i=this,e=i.touchObject.startX-i.touchObject.curX,t=i.touchObject.startY-i.touchObject.curY,e=Math.atan2(t,e),e=Math.round(180*e/Math.PI);return e<0&&(e=360-Math.abs(e)),e<=45&&0<=e||e<=360&&315<=e?!1===i.options.rtl?"left":"right":135<=e&&e<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.interrupted=!1,o.shouldClick=!(10<o.touchObject.swipeLength),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},r.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},r.prototype.swipeMove=function(i){var e,t,o=this,s=void 0!==i.originalEvent?i.originalEvent.touches:null;return!(!o.dragging||s&&1!==s.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:i.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:i.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),"vertical"!==(t=o.swipeDirection())?(void 0!==i.originalEvent&&4<o.touchObject.swipeLength&&i.preventDefault(),s=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(s=o.touchObject.curY>o.touchObject.startY?1:-1),i=o.touchObject.swipeLength,(o.touchObject.edgeHit=!1)===o.options.infinite&&(0===o.currentSlide&&"right"===t||o.currentSlide>=o.getDotCount()&&"left"===t)&&(i=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+i*s:o.swipeLeft=e+i*(o.$list.height()/o.listWidth)*s,!0===o.options.verticalSwiping&&(o.swipeLeft=e+i*s),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},r.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return!(t.touchObject={});void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},r.prototype.unload=function(){var i=this;a(".slick-cloned",i.$slider).remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove(),i.$nextArrow&&i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove(),i.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
3633,r.prototype.unslick=function(i){this.$slider.trigger("unslick",[this,i]),this.destroy()},r.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2);!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode||i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode)&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},a.fn.slick=function(){for(var i,e=this,t=arguments[0],o=Array.prototype.slice.call(arguments,1),s=e.length,n=0;n<s;n++)if("object"==typeof t||void 0===t?e[n].slick=new r(e[n],t):i=e[n].slick[t].apply(e[n].slick,o),void 0!==i)return i;return e}});
3634var wprpsp_next_arrow='<span class="slick-next slick-arrow" data-role="none" tabindex="0" role="button"><svg fill="currentColor" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M69.8437,43.3876,33.8422,13.3863a6.0035,6.0035,0,0,0-7.6878,9.223l30.47,25.39-30.47,25.39a6.0035,6.0035,0,0,0,7.6878,9.2231L69.8437,52.6106a6.0091,6.0091,0,0,0,0-9.223Z"/></svg></span>',wprpsp_prev_arrow='<span class="slick-prev slick-arrow" data-role="none" tabindex="0" role="button"><svg fill="currentColor" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><title/><path d="M39.3756,48.0022l30.47-25.39a6.0035,6.0035,0,0,0-7.6878-9.223L26.1563,43.3906a6.0092,6.0092,0,0,0,0,9.2231L62.1578,82.615a6.0035,6.0035,0,0,0,7.6878-9.2231Z"/></svg></span>';function wprpsp_post_slider_init(){jQuery(".wprpsp-post-slider").each(function(i){var e,o,s,t;jQuery(this).hasClass("slick-initialized")||(e=null,o=jQuery(this).attr("id"),s=jQuery(this).attr("data-slider-nav-for"),t=JSON.parse(jQuery(this).closest(".wprpsp-pro-slider-wrp").attr("data-conf")),1==Wprpsp.is_avada&&jQuery(this).closest(".fusion-flex-container").addClass("wprpsp-fusion-flex"),void 0!==s&&""!=s&&(e="."+s),void 0!==o&&""!=o&&(""!=e&&jQuery(e).on("init",function(i,s){var t=jQuery(e+" .slick-list").innerHeight();jQuery("#"+o+" .wprpsp-post-image-wrap").css("height",t)}),jQuery("#"+o).slick({slidesToShow:1,slidesToScroll:1,asNavFor:e,lazyLoad:t.lazyload,speed:parseInt(t.speed),autoplaySpeed:parseInt(t.autoplay_interval),dots:"true"==t.dots,fade:"true"==t.fade,infinite:"true"==t.infinite,arrows:"true"==t.arrows,autoplay:"true"==t.autoplay,pauseOnHover:"true"==t.hover_pause,pauseOnFocus:"false"!=t.focus_pause,rtl:"true"==t.rtl,centerMode:0<t.centerpadding,centerPadding:t.centerpadding?parseInt(t.centerpadding)+"px":0,nextArrow:wprpsp_next_arrow,prevArrow:wprpsp_prev_arrow})),void 0!==s&&jQuery("."+s).slick({slidesToScroll:1,dots:!1,arrows:!1,centerMode:!1,focusOnSelect:!0,vertical:!0,verticalSwiping:!0,asNavFor:"#"+o,slidesToShow:parseInt(t.nav_slides),responsive:[{breakpoint:736,settings:{slidesToShow:2,slidesToScroll:1,infinite:!0,vertical:!1,centerMode:!0}},{breakpoint:569,settings:{slidesToShow:1,slidesToScroll:1,vertical:!1,centerMode:!0}},{breakpoint:319,settings:{slidesToShow:1,slidesToScroll:1,vertical:!1,centerMode:!0}},{breakpoint:220,settings:{slidesToShow:1,slidesToScroll:1,vertical:!1,centerMode:!0}}]}))})}function wprpsp_post_carousel_slider_init(){jQuery(".wprpsp-recent-post-carousel").each(function(i){var s,t;jQuery(this).hasClass("slick-initialized")||(s=jQuery(this).attr("id"),t=JSON.parse(jQuery(this).closest(".wprpsp-carousel-pro-slider-wrp").attr("data-conf")),1==Wprpsp.is_avada&&jQuery(this).closest(".fusion-flex-container").addClass("wprpsp-fusion-flex"),jQuery("#"+s).slick({lazyLoad:t.lazyload,speed:parseInt(t.speed),autoplaySpeed:parseInt(t.auto
3634play_interval),slidesToShow:parseInt(t.slides_to_show),slidesToScroll:parseInt(t.slides_to_scroll),dots:"true"==t.dots,infinite:"true"==t.infinite,arrows:"true"==t.arrows,autoplay:"true"==t.autoplay,centerMode:"true"==t.centermode,pauseOnHover:"true"==t.hover_pause,pauseOnFocus:"false"!=t.focus_pause,rtl:"true"==t.rtl,mobileFirst:1==Wprpsp.is_mobile,centerPadding:t.centerpadding?parseInt(t.centerpadding)+"px":0,nextArrow:wprpsp_next_arrow,prevArrow:wprpsp_prev_arrow,responsive:[{breakpoint:1023,settings:{slidesToShow:3<parseInt(t.slides_to_show)?3:parseInt(t.slides_to_show),slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:2<parseInt(t.slides_to_show)?2:parseInt(t.slides_to_show),slidesToScroll:1}},{breakpoint:479,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}},{breakpoint:319,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}},{breakpoint:220,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}))})}function wprpsp_post_gridbox_slider_init(){jQuery(".wprpsp-gridbox-slider").each(function(i){var s,t;jQuery(this).hasClass("slick-initialized")||(s=jQuery(this).attr("id"),t=JSON.parse(jQuery(this).closest(".wprpsp-gridbox-slider-wrp").attr("data-conf")),1==Wprpsp.is_avada&&jQuery(this).closest(".fusion-flex-container").addClass("wprpsp-fusion-flex"),void 0!==s&&""!=s&&null!=t&&jQuery("#"+s).slick({slidesToShow:1,slidesToScroll:1,lazyLoad:t.lazyload,speed:parseInt(t.speed),autoplaySpeed:parseInt(t.autoplay_interval),dots:"true"==t.dots,infinite:"true"==t.infinite,fade:"true"==t.fade,arrows:"true"==t.arrows,autoplay:"true"==t.autoplay,pauseOnHover:"true"==t.hover_pause,pauseOnFocus:"false"!=t.focus_pause,rtl:"true"==t.rtl,nextArrow:wprpsp_next_arrow,prevArrow:wprpsp_prev_arrow}))})}function wprpsp_widget_post_slider_init(){jQuery(".wprpsp-post-slider-widget").each(function(i){var s,t;jQuery(this).hasClass("slick-initialized")||(s=jQuery(this).attr("id"),t=JSON.parse(jQuery(this).closest(".wprpsp-post-widget-wrp").attr("data-conf")),1==Wprpsp.is_avada&&jQuery(this).closest(".fusion-flex-container").addClass("wprpsp-fusion-flex"),void 0!==s&&""!=s&&null!=t&&jQuery("#"+s).slick({slidesToShow:1,slidesToScroll:1,infinite:!0,lazyLoad:t.lazyload,speed:parseInt(t.speed),autoplaySpeed:parseInt(t.autoplay_interval),dots:"true"==t.dots,arrows:"true"==t.arrows,autoplay:"true"==t.autoplay,pauseOnHover:"true"==t.hover_pause,pauseOnFocus:"false"!=t.focus_pause,rtl:1==Wprpsp.is_rtl,nextArrow:wprpsp_next_arrow,prevArrow:wprpsp_prev_arrow}))})}!function(e){"use strict";wprpsp_post_slider_init(),wprpsp_post_carousel_slider_init(),wprpsp_post_gridbox_slider_init(),wprpsp_widget_post_slider_init(),1==Wprpsp.is_old_browser&&e(".wprpsp-image-fit .wprpsp-post-slides").each(function(i){var s,t=e(this).find(".wprpsp-post-img");void 0!==t&&(s=t.attr("src"),t.closest(".wprpsp-post-image-bg").css({background:"url("+s+") no-repeat top center","background-size":"cover"}),t.hide())}),e(document).on("click",".vc_toggle",function(){var i=e(this).find(".vc_toggle_content .wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");void 0!==s&&""!=s&&e(this).hasClass("slick-initialized")&&e("#"+s).slick("setPosition");s=e(this).attr("data-slider-nav-for");void 0!==s&&""!=s&&e("."+s).slick("setPosition")})}),e(document).on("click",".vc_tta-panel-title",function(){var i=e(this).closest(".vc_tta-panel").find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");void 0!==s&&""!=s&&e(this).hasClass("slick-initialized")&&e("#"+s).slick("setPosition");s=e(this).attr("data-slider-nav-for");void 0!==s&&""!=s&&e("."+s).slick("setPosition")})}),0==Wprpsp.elementor_preview&&e(window).on("elementor/frontend/init",function(){e(".wprpsp-post-slider-init").each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}))},350);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1})},350))})}),e(document).on("click",".elementor-tab-title",function(){var i=e(this).attr("aria-controls"),i=e("#"+i).find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}
3634),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}))},350);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1})},350))})}),e(document).on("click",".sow-accordion-panel",function(){var i=e(this).attr("data-anchor"),i=e("#accordion-content-"+i).find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");void 0!==s&&""!=s&&e("#"+s).slick("setPosition");s=e(this).attr("data-slider-nav-for");void 0!==s&&""!=s&&e("."+s).slick("setPosition")})}),e(document).on("click focus",".sow-tabs-tab",function(){var i=e(this).index(),i=e(this).closest(".sow-tabs").find(".sow-tabs-panel").eq(i).find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}))},300);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1})},300))})}),e(document).on("click",".fl-accordion-button, .fl-tabs-label",function(){var i=e(this).attr("aria-controls"),i=e("#"+i).find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}))},300);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1})},300))})}),e(document).on("click",".et_pb_toggle",function(){var i=e(this).find(".et_pb_toggle_content").find(".wprpsp-post-slider-init");e(i).each(function(i){var s=e(this).attr("id");void 0!==s&&""!=s&&e("#"+s).slick("setPosition");s=e(this).attr("data-slider-nav-for");void 0!==s&&""!=s&&e("."+s).slick("setPosition")})}),e(".et_pb_tabs_controls li a").on("click",function(){var i=e(this).closest(".et_pb_tabs"),s=e(this).closest("li").attr("class"),s=i.find(".et_pb_all_tabs ."+s).find(".wprpsp-post-slider-init");e(s).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}))},550);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1})},550))})}),e(document).on("click",".fusion-tabs li .tab-link",function(){var i=e(this).closest(".fusion-tabs"),s=e(this).attr("href"),s=i.find(s).find(".wprpsp-post-slider-init");e(s).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}),e("#"+s).slick("setPosition"))},200);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1}),e("."+t).slick("setPosition")},200))})}),e(document).on("click",".fusion-accordian .panel-heading a",function(){var i=e(this).closest(".fusion-accordian"),s=e(this).attr("href"),s=i.find(s).find(".wprpsp-post-slider-init");e(s).each(function(i){var s=e(this).attr("id");e("#"+s).css({visibility:"hidden",opacity:0}),setTimeout(function(){void 0!==s&&""!=s&&(e("#"+s).slick("setPosition"),e("#"+s).css({visibility:"visible",opacity:1}),e("#"+s).slick("setPosition"))},200);var t=e(this).attr("data-slider-nav-for");void 0!==t&&""!=t&&(e("."+t).css({visibility:"hidden",opacity:0}),setTimeout(function(){e("."+t).slick("setPosition"),e("."+t).css({visibility:"visible",opacity:1}),e("."+t).slick("setPosition")},200))})})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.