if(!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Tether=e()}(this,function(){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t){var e,n,i,o=t.getBoundingClientRect(),r={};for(e in o)r[e]=o[e];try{t.ownerDocument!==document&&(n=t.ownerDocument.defaultView.frameElement)&&(i=s(n),r.top+=i.top,r.bottom+=i.top,r.left+=i.left,r.right+=i.left)}catch(t){}return r}function r(t){var e=(getComputedStyle(t)||{}).position,n=[];if("fixed"===e)return[t];for(var i=t;(i=i.parentNode)&&1===i.nodeType;){var o=void 0;try{o=getComputedStyle(i)}catch(t){}if(null==o)return n.push(i),n;var r=o,s=r.overflow,a=r.overflowX,r=r.overflowY;/(auto|scroll|overlay)/.test(s+r+a)&&("absolute"!==e||0<=["relative","absolute","fixed"].indexOf(o.position))&&n.push(i)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function o(){h&&document.body.removeChild(h),h=null}function S(t){var e,n=void 0,i=(t===document?t=(n=document).documentElement:n=t.ownerDocument,n.documentElement),t=s(t),o=((o=h)&&document.body.contains(o)||((o=document.createElement("div")).setAttribute("data-tether-id",p()),_(o.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(o),h=o),e=o.getAttribute("data-tether-id"),void 0===f[e]&&(f[e]=s(o),M(function(){delete f[e]})),f[e]);return t.top-=o.top,t.left-=o.left,void 0===t.width&&(t.width=document.body.scrollWidth-t.left-t.right),void 0===t.height&&(t.height=document.body.scrollHeight-t.top-t.bottom),t.top=t.top-i.clientTop,t.left=t.left-i.clientLeft,t.right=n.body.clientWidth-t.width-t.left,t.bottom=n.body.clientHeight-t.height-t.top,t}function T(t){return t.offsetParent||document.documentElement}function D(){var t,e,n;return F||((e=document.createElement("div")).style.width="100%",e.style.height="200px",n=document.createElement("div"),_(n.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n),t=e.offsetWidth,n.style.overflow="scroll",t===(e=e.offsetWidth)&&(e=n.clientWidth),document.body.removeChild(n),F={width:n=t-e,height:n})}function _(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach(function(t){if(t)for(var e in t)!{}.hasOwnProperty.call(t,e)||(n[e]=t[e])}),n}function a(e,t){void 0!==e.classList?t.split(" ").forEach(function(t){t.trim()&&e.classList.remove(t)}):(t=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),t=n(e).replace(t," "),u(e,t))}function l(e,t){void 0!==e.classList?t.split(" ").forEach(function(t){t.trim()&&e.classList.add(t)}):(a(e,t),t=n(e)+" "+t,u(e,t))}function d(t,e){return void 0!==t.classList?t.classList.contains(e):(t=n(t),new RegExp("(^| )"+e+"( |$)","gi").test(t))}function n(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function u(t,e){t.setAttribute("class",e)}function C(e,n,t){t.forEach(function(t){-1===n.indexOf(t)&&d(e,t)&&a(e,t)}),n.forEach(function(t){d(e,t)||l(e,t)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}function E(){for(var n={top:0,left:0},t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.forEach(function(t){var e=t.top,t=t.left;"string"==typeof e&&(e=parseFloat(e,10)),"string"==typeof t&&(t=parseFloat(t,10)),n.top+=e,n.left+=t}),n}function k(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}var x=void 0;function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}void 0===x&&(x={modules:[]});var e,h=null,p=(e=0,function(){return++e}),f={},F=null,N=[],M=function(t){N.push(t)},I=function(){for(var t=void 0;t=N.pop();)t()},L=((z=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t})(g,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,n=arguments.length,i=Array(1<n?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,r=r.once,a=void 0===a?this:a;s.apply(a,i),r?this.bindings[t].splice(e,1):++e}}}}]),g);function g(){i(this,g)}x.Utils={getActualBoundingClientRect:s,getScrollParents:r,getBounds:S,getOffsetParent:T,extend:_,addClass:l,removeClass:a,hasClass:d,updateClasses:C,defer:M,flush:I,uniqueId:p,Evented:L,getScrollBarSize:D,removeUtilElements:o};var R=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],o=!0,e=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(t){e=!0,r=t}finally{try{!o&&a.return&&a.return()}finally{if(e)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},z=function(t,e,n){return e&&j(t.prototype,e),n&&j(t,n),t};function j(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}if(void 0===x)throw new Error("You must include the utils.js file before tether.js");function Y(){w.forEach(function(t){t.position(!1)}),I()}var m,v,y,r=(A=x.Utils).getScrollParents,S=A.getBounds,T=A.getOffsetParent,_=A.extend,l=A.addClass,a=A.removeClass,C=A.updateClasses,M=A.defer,I=A.flush,D=A.getScrollBarSize,o=A.removeUtilElements,b=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var i=e[n];if(void 0!==t.style[i])return i}}(),w=[];function B(){return void 0!==v&&16<v?(v=Math.min(v-16,250),void(y=setTimeout(B,250))):void(void 0!==m&&t()-m<10||(null!=y&&(clearTimeout(y),y=null),m=t(),Y(),v=t()-m))}y=v=m=null,"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,B)});function $(t){var e=t.left,n=t.top;return{left:e=void 0!==P[t.left]?P[t.left]:e,top:n=void 0!==P[t.top]?P[t.top]:n}}function O(t){return t=t.split(" "),{top:(t=R(t,2))[0],left:t[1]}}var W={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},P={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},V=O,H=function(){function n(t){var e=this;i(this,n),function(t,e,n){for(var i=!0;i;){var o=t,r=e,s=n,i=!1,a=(null===o&&(o=Function.prototype),Object.getOwnPropertyDescriptor(o,r));if(void 0!==a)return"value"in a?a.value:void 0===(a=a.get)?void 0:a.call(s);a=Object.getPrototypeOf(o);if(null===a)return;t=a,e=r,n=s,i=!0}}(Object.getPrototypeOf(n.prototype),"constructor",this).call(this),this.position=this.position.bind(this),w.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(e)}),this.position()}var t=n,e=L;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),z(n,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],t=(this.options=_({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t),this.options),i=t.element,o=t.target,t=t.targetModifier;if(this.element=i,this.target=o,this.targetModifier=t,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),l(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&l(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=V(this.options.targetAttachment),this.attachment=V(this.options.attachment),this.offset=O(this.options.offset),this.targetOffset=O(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){var t,e,n,i,o,r;return void 0===this.targetModifier?S(this.target):"visible"===this.targetModifier?this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(t=S(this.target)).height,width:t.width,top:t.top,left:t.left}).height=Math.min(i.height,t.height-(pageYOffset-t.top)),i.height=Math.min(i.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,t.width-(pageXOffset-t.left)),i.width=Math.min(i.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i):"scroll-handle"===this.targetModifier?(t=void 0,t=(r=this.target)===document.body?(r=document.documentElement,{left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):S(r),e=getComputedStyle(r),n=0,(r.scrollWidth>r.clientWidth||0<=[e.overflow,e.overflowX].indexOf("scroll")||this.target!==document.body)&&(n=15),i={width:15,height:.975*(n=t.height-parseFloat(e.borderTopWidth)-parseFloat(e.borderBottomWidth)-n)*(n/r.scrollHeight),left:t.left+t.width-parseFloat(e.borderLeftWidth)-15},o=0,n<408&&this.target===document.body&&(o=-11e-5*Math.pow(n,2)-.00727*n+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24)),r=this.target.scrollTop/(r.scrollHeight-n),i.top=r*(n-i.height-o)+t.top+parseFloat(e.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i):void 0}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&l(this.target,this.getClass("enabled")),l(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)}),t&&this.position()}},{key:"disable",value:function(){var e=this;a(this.target,this.getClass("enabled")),a(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.position)})}},{key:"destroy",value:function(){var n=this;this.disable(),w.forEach(function(t,e){t===n&&w.splice(e,1)}),0===w.length&&o()}},{key:"updateAttachClasses",value:function(t,e){var n=this,i=(t=t||this.attachment,e=e||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]),this._addAttachClasses),o=(t.top&&i.push(this.getClass("element-attached")+"-"+t.top),t.left&&i.push(this.getClass("element-attached")+"-"+t.left),e.top&&i.push(this.getClass("target-attached")+"-"+e.top),e.left&&i.push(this.getClass("target-attached")+"-"+e.left),[]);["left","top","bottom","right","middle","center"].forEach(function(t){o.push(n.getClass("element-attached")+"-"+t),o.push(n.getClass("target-attached")+"-"+t)}),M(function(){void 0!==n._addAttachClasses&&(C(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&C(n.target,n._addAttachClasses,o),delete n._addAttachClasses)})}},{key:"position",value:function(){var t,e,n,i=this,o=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();u=this.targetAttachment,l=this.attachment,a=u.left,u=u.top;for(var r={left:a="auto"===a?W[l.left]:a,top:u="auto"===u?U[l.top]:u},s=(this.updateAttachClasses(this.attachment,r),this.cache("element-bounds",function(){return S(i.element)})),a=s.width,l=s.height,d=(0===a&&0===l&&void 0!==this.lastSize?(a=(u=this.lastSize).width,l=u.height):this.lastSize={width:a,height:l},this.cache("target-bounds",function(){return i.getTargetBounds()})),u=d,c=k($(this.attachment),{width:a,height:l}),h=k($(r),u),p=k(this.offset,{width:a,height:l}),f=k(this.targetOffset,u),c=E(c,p),h=E(h,f),g=d.left+h.left-c.left,m=d.top+h.top-c.top,v=0;v<x.modules.length;++v){var y=x.modules[v].position.call(this,{left:g,top:m,targetAttachment:r,targetPos:d,elementPos:s,offset:c,targetOffset:h,manualOffset:p,manualTargetOffset:f,scrollbarSize:_,attachment:this.attachment});if(!1===y)return!1;void 0!==y&&"object"==typeof y&&(m=y.top,g=y.left)}var u={page:{top:m,left:g},viewport:{top:m-pageYOffset,bottom:pageYOffset-m-l+innerHeight,left:g-pageXOffset,right:pageXOffset-g-a+innerWidth}},b=this.target.ownerDocument,w=b.defaultView,_=void 0;return w.innerHeight>b.documentElement.clientHeight&&(_=this.cache("scrollbar-size",D),u.viewport.bottom-=_.height),w.innerWidth>b.documentElement.clientWidth&&(_=this.cache("scrollbar-size",D),u.viewport.right-=_.width),-1!==["","static"].indexOf(b.body.style.position)&&-1!==["","static"].indexOf(b.body.parentElement.style.position)||(u.page.bottom=b.body.scrollHeight-m-l,u.page.right=b.body.scrollWidth-g-a),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&(t=i.cache("target-offsetparent",function(){return T(i.target)}),w=i.cache("target-offsetparent-bounds",function(){return S(t)}),e=getComputedStyle(t),l=w,n={},["Top","Left","Bottom","Right"].forEach(function(t){n[t.toLowerCase()]=parseFloat(e["border"+t+"Width"])}),w.right=b.body.scrollWidth-w.left-l.width+n.right,w.bottom=b.body.scrollHeight-w.top-l.height+n.bottom,u.page.top>=w.top+n.top&&u.page.bottom>=w.bottom&&u.page.left>=w.left+n.left&&u.page.right>=w.right&&(l=t.scrollTop,a=t.scrollLeft,u.offset={top:u.page.top-w.top+l-n.top,left:u.page.left-w.left+a-n.left})),this.move(u),this.history.unshift(u),3<this.history.length&&this.history.pop(),o&&I(),!0}}},{key:"move",value:function(t){var e,n,i,o=this;if(void 0!==this.element.parentNode){var r,s={};for(r in t)for(var a in s[r]={},t[r]){for(var l=!1,d=0;d<this.history.length;++d){var u=this.history[d];if(void 0!==u[r]&&!function(t,e,n){return e<=t+(n=arguments.length<=2||void 0===n?1:n)&&t-n<=e}(u[r][a],t[r][a])){l=!0;break}}l||(s[r][a]=!0)}var c={top:"",left:"",right:"",bottom:""},h=function(t,e){var n,i;!1!==(void 0!==o.options.optimizations?o.options.optimizations.gpu:null)?(i=n=void 0,n=t.top?(c.top=0,e.top):(c.bottom=0,-e.bottom),i=t.left?(c.left=0,e.left):(c.right=0,-e.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,n=Math.round(n*devicePixelRatio)/devicePixelRatio),c[b]="translateX("+i+"px) translateY("+n+"px)","msTransform"!==b&&(c[b]+=" translateZ(0)")):(t.top?c.top=e.top+"px":c.bottom=e.bottom+"px",t.left?c.left=e.left+"px":c.right=e.right+"px")},p=!1;if((s.page.top||s.page.bottom)&&(s.page.left||s.page.right)?(c.position="absolute",h(s.page,t.page)):(s.viewport.top||s.viewport.bottom)&&(s.viewport.left||s.viewport.right)?(c.position="fixed",h(s.viewport,t.viewport)):void 0!==s.offset&&s.offset.top&&s.offset.left?(c.position="absolute",i=o.cache("target-offsetparent",function(){return T(o.target)}),T(o.element)!==i&&M(function(){o.element.parentNode.removeChild(o.element),i.appendChild(o.element)}),h(s.offset,t.offset),p=!0):(c.position="absolute",h({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=!0,g=this.element.parentNode;g&&1===g.nodeType&&"BODY"!==g.tagName&&(n=void 0,((n=(e=g).ownerDocument).fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)!==e);){if("static"!==getComputedStyle(g).position){f=!1;break}g=g.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},v=!1;for(a in c){var y=c[a];this.element.style[a]!==y&&(v=!0,m[a]=y)}v&&M(function(){_(o.element.style,m),o.trigger("repositioned")})}}}]),n}(),H=(H.modules=[],x.position=Y,_(H,x)),R=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],o=!0,e=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(t){e=!0,r=t}finally{try{!o&&a.return&&a.return()}finally{if(e)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=(A=x.Utils).getBounds,_=A.extend,C=A.updateClasses,M=A.defer,q=["left","top","right","bottom"];x.modules.push({position:function(t){var u,c,h,p,n,f,g,m,v=this,y=t.top,b=t.left,w=t.targetAttachment;return!this.options.constraints||(t=this.cache("element-bounds",function(){return S(v.element)}),c=t.height,0===(u=t.width)&&0===c&&void 0!==this.lastSize&&(t=this.lastSize,u=t.width,c=t.height),t=this.cache("target-bounds",function(){return v.getTargetBounds()}),h=t.height,p=t.width,n=[this.getClass("pinned"),this.getClass("out-of-bounds")],this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,t=t.pinnedClass;e&&n.push(e),t&&n.push(t)}),n.forEach(function(e){["left","top","right","bottom"].forEach(function(t){n.push(e+"-"+t)})}),f=[],g=_({},w),m=_({},this.attachment),this.options.constraints.forEach(function(t){var e,n,i,o,r,s=t.to,a=t.attachment,t=t.pin,l=void 0,d=void 0,s=(l=0<=(a=void 0===a?"":a).indexOf(" ")?(e=a.split(" "),d=(e=R(e,2))[0],e[1]):d=a,e=v,"scrollParent"===(n=s)?n=e.scrollParents[0]:"window"===n&&(n=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),void 0!==(n=n===document?n.documentElement:n).nodeType&&(a=S(e=n),s=a,i=getComputedStyle(n),n=[s.left,s.top,a.width+s.left,a.height+s.top],e.ownerDocument!==document&&(a=e.ownerDocument.defaultView,n[0]+=a.pageXOffset,n[1]+=a.pageYOffset,n[2]+=a.pageXOffset,n[3]+=a.pageYOffset),q.forEach(function(t,e){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?n[e]+=parseFloat(i["border"+t+"Width"]):n[e]-=parseFloat(i["border"+t+"Width"])})),n),a=("target"!==d&&"both"!==d||(y<s[1]&&"top"===g.top&&(y+=h,g.top="bottom"),y+c>s[3]&&"bottom"===g.top&&(y-=h,g.top="top")),"together"===d&&("top"===g.top&&("bottom"===m.top&&y<s[1]?(y+=h,g.top="bottom",y+=c,m.top="top"):"top"===m.top&&y+c>s[3]&&y-(c-h)>=s[1]&&(y-=c-h,g.top="bottom",m.top="bottom")),"bottom"===g.top&&("top"===m.top&&y+c>s[3]?(y-=h,g.top="top",y-=c,m.top="bottom"):"bottom"===m.top&&y<s[1]&&y+(2*c-h)<=s[3]&&(y+=c-h,g.top="top",m.top="top")),"middle"===g.top)&&(y+c>s[3]&&"top"===m.top?(y-=c,m.top="bottom"):y<s[1]&&"bottom"===m.top&&(y+=c,m.top="top")),"target"!==l&&"both"!==l||(b<s[0]&&"left"===g.left&&(b+=p,g.left="right"),b+u>s[2]&&"right"===g.left&&(b-=p,g.left="left")),"together"===l&&(b<s[0]&&"left"===g.left?"right"===m.left?(b+=p,g.left="right",b+=u,m.left="left"):"left"===m.left&&(b+=p,g.left="right",b-=u,m.left="right"):b+u>s[2]&&"right"===g.left?"left"===m.left?(b-=p,g.left="left",b-=u,m.left="right"):"right"===m.left&&(b-=p,g.left="left",b+=u,m.left="left"):"center"===g.left&&(b+u>s[2]&&"left"===m.left?(b-=u,m.left="right"):b<s[0]&&"right"===m.left&&(b+=u,m.left="left"))),"element"!==d&&"both"!==d||(y<s[1]&&"bottom"===m.top&&(y+=c,m.top="top"),y+c>s[3]&&"top"===m.top&&(y-=c,m.top="bottom")),"element"!==l&&"both"!==l||(b<s[0]&&("right"===m.left?(b+=u,m.left="left"):"center"===m.left&&(b+=u/2,m.left="left")),b+u>s[2]&&("left"===m.left?(b-=u,m.left="right"):"center"===m.left&&(b-=u/2,m.left="right"))),"string"==typeof t?t=t.split(",").map(function(t){return t.trim()}):!0===t&&(t=["top","left","right","bottom"]),t=t||[],[]),d=[];y<s[1]&&(0<=t.indexOf("top")?(y=s[1],a):d).push("top"),y+c>s[3]&&(0<=t.indexOf("bottom")?(y=s[3]-c,a):d).push("bottom"),b<s[0]&&(0<=t.indexOf("left")?(b=s[0],a):d).push("left"),b+u>s[2]&&(0<=t.indexOf("right")?(b=s[2]-u,a):d).push("right"),a.length&&(r=void 0!==v.options.pinnedClass?v.options.pinnedClass:v.getClass("pinned"),f.push(r),a.forEach(function(t){f.push(r+"-"+t)})),d.length&&(o=void 0!==v.options.outOfBoundsClass?v.options.outOfBoundsClass:v.getClass("out-of-bounds"),f.push(o),d.forEach(function(t){f.push(o+"-"+t)})),(0<=a.indexOf("left")||0<=a.indexOf("right"))&&(m.left=g.left=!1),(0<=a.indexOf("top")||0<=a.indexOf("bottom"))&&(m.top=g.top=!1),g.top===w.top&&g.left===w.left&&m.top===v.attachment.top&&m.left===v.attachment.left||(v.updateAttachClasses(m,g),v.trigger("update",{attachment:m,targetAttachment:g}))}),M(function(){!1!==v.options.addTargetClasses&&C(v.target,f,n),C(v.element,f,n)}),{top:y,left:b})}});var A,S=(A=x.Utils).getBounds,C=A.updateClasses,M=A.defer,R=(x.modules.push({position:function(t){var e=this,n=t.top,i=t.left,t=this.cache("element-bounds",function(){return S(e.element)}),o=t.height,t=t.width,r=this.getTargetBounds(),s=n+o,a=i+t,l=[],d=(n<=r.bottom&&s>=r.top&&["left","right"].forEach(function(t){var e=r[t];e!==i&&e!==a||l.push(t)}),i<=r.right&&a>=r.left&&["top","bottom"].forEach(function(t){var e=r[t];e!==n&&e!==s||l.push(t)}),[]),u=[];return d.push(this.getClass("abutted")),["left","top","right","bottom"].forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),l.length&&u.push(this.getClass("abutted")),l.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),M(function(){!1!==e.options.addTargetClasses&&C(e.target,u,d),C(e.element,u,d)}),!0}}),function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],o=!0,e=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!n||i.length!==n);o=!0);}catch(t){e=!0,r=t}finally{try{!o&&a.return&&a.return()}finally{if(e)throw r}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")});return x.modules.push({position:function(t){var e,n,i,o,r=t.top,t=t.left;if(this.options.shift)return e=this.options.shift,o=i=void 0,o="string"==typeof(e="function"==typeof this.options.shift?this.options.shift.call(this,{top:r,left:t}):e)?((e=e.split(" "))[1]=e[1]||e[0],i=(n=R(e,2))[0],o=n[1],i=parseFloat(i,10),parseFloat(o,10)):(i=e.top,e.left),{top:r+=i,left:t+=o}}}),H}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function setCookie(t,e,n){var i;!1===n?document.cookie=t+"="+e+"; path=/;":((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),n="expires="+i.toUTCString(),document.cookie=t+"="+e+"; path=/;"+n)}function getCookie(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return!1}!function(){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){"use strict";var w=function(t,e,n){return e&&F(t.prototype,e),n&&F(t,n),t};function F(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i=jQuery,e=!1,N={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},o={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){new Function("bs","return bs")(t.offsetHeight)},triggerTransitionEnd:function(t){i(t).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},typeCheckConfig:function(t,e,n){for(var i in n)if(n.hasOwnProperty(i)){var o=n[i],r=e[i],s=void 0,s=r&&((a=r)[0]||a).nodeType?"element":{}.toString.call(r).match(/\s([a-zA-Z]+)/)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a}},e=function(){if(!window.QUnit){var t,e=document.createElement("bootstrap");for(t in N)if(void 0!==e.style[t])return{end:N[t]}}return!1}(),i.fn.emulateTransitionEnd=L,o.supportsTransitionEnd()&&(i.event.special[o.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}});var i,e,N,o,S=o;function L(t){var e=this,n=!1;return i(this).one(o.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||o.triggerTransitionEnd(e)},t),this}var r,t,z,j,Y,B,$,W,U;r=jQuery,t="alert",O="."+(z="bs.alert"),j=r.fn[t],Y={CLOSE:"close"+O,CLOSED:"closed"+O,CLICK_DATA_API:"click"+O+".data-api"},B="alert",$="fade",W="in",w(V,[{key:"close",value:function(t){t=t||this._element;t=this._getRootElement(t);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)}},{key:"dispose",value:function(){r.removeData(this._element,z),this._element=null}},{key:"_getRootElement",value:function(t){var e=S.getSelectorFromElement(t),n=!1;return n=(n=e?r(e)[0]:n)||r(t).closest("."+B)[0]}},{key:"_triggerCloseEvent",value:function(t){var e=r.Event(Y.CLOSE);return r(t).trigger(e),e}},{key:"_removeElement",value:function(t){r(t).removeClass(W),S.supportsTransitionEnd()&&r(t).hasClass($)?r(t).one(S.TRANSITION_END,r.proxy(this._destroyElement,this,t)).emulateTransitionEnd(150):this._destroyElement(t)}},{key:"_destroyElement",value:function(t){r(t).detach().trigger(Y.CLOSED).remove()}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var t=r(this),e=t.data(z);e||(e=new V(this),t.data(z,e)),"close"===n&&e[n](this)})}},{key:"_handleDismiss",value:function(e){return function(t){t&&t.preventDefault(),e.close(this)}}},{key:"VERSION",get:function(){return"4.0.0-alpha"}}]),U=V,r(document).on(Y.CLICK_DATA_API,'[data-dismiss="alert"]',U._handleDismiss(new U)),r.fn[t]=U._jQueryInterface,r.fn[t].Constructor=U,r.fn[t].noConflict=function(){return r.fn[t]=j,U._jQueryInterface};function V(t){_(this,V),this._element=t}var s,q,G,Q,X,Z,K,J,tt,et,nt,it;s=jQuery,q="button",O="."+(G="bs.button"),x=".data-api",Q=s.fn[q],X="active",Z="btn",v='[data-toggle^="button"]',J='[data-toggle="buttons"]',tt="input",et=".active",nt=".btn",O={CLICK_DATA_API:"click"+O+x,FOCUS_BLUR_DATA_API:(K="focus")+O+x+" blur"+O+x},w(ot,[{key:"toggle",value:function(){var t,e=!0,n=s(this._element).closest(J)[0];n?(t=s(this._element).find(tt)[0])&&("radio"===t.type&&(t.checked&&s(this._element).hasClass(X)?e=!1:(n=s(n).find(et)[0])&&s(n).removeClass(X)),e)&&(t.checked=!s(this._element).hasClass(X),s(this._element).trigger("change")):this._element.setAttribute("aria-pressed",!s(this._element).hasClass(X)),e&&s(this._element).toggleClass(X)}},{key:"dispose",value:function(){s.removeData(this._element,G),this._element=null}}],[{key:"_jQueryInterface",value:function(e){return this.each(function(){var t=s(this).data(G);t||(t=new ot(this),s(this).data(G,t)),"toggle"===e&&t[e]()})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}}]),it=ot,s(document).on(O.CLICK_DATA_API,v,function(t){t.preventDefault();t=t.target;s(t).hasClass(Z)||(t=s(t).closest(nt)),it._jQueryInterface.call(s(t),"toggle")}).on(O.FOCUS_BLUR_DATA_API,v,function(t){var e=s(t.target).closest(nt)[0];s(e).toggleClass(K,/^focus(in)?$/.test(t.type))}),s.fn[q]=it._jQueryInterface,s.fn[q].Constructor=it,s.fn[q].noConflict=function(){return s.fn[q]=Q,it._jQueryInterface};function ot(t){_(this,ot),this._element=t}var a,n,rt,l,st,at,lt,dt,ut,d,ct,u,ht,pt,ft,gt,mt,vt,yt,bt,wt,_t;a=jQuery,n="carousel",l="."+(rt="bs.carousel"),x=".data-api",st=a.fn[n],at={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},lt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},d={SLIDE:"slide"+l,SLID:"slid"+l,KEYDOWN:"keydown"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l,LOAD_DATA_API:"load"+l+x,CLICK_DATA_API:"click"+l+x},ct="carousel",u="active",ht="slide",pt="right",ft="left",gt=".active",mt=".active.carousel-item",vt=".carousel-item",yt=".next, .prev",bt=".carousel-indicators",x="[data-slide], [data-slide-to]",wt='[data-ride="carousel"]',w(St,[{key:dt="next",value:function(){this._isSliding||this._slide(dt)}},{key:"nextWhenVisible",value:function(){document.hidden||this.next()}},{key:ut="prev",value:function(){this._isSliding||this._slide(ut)}},{key:"pause",value:function(t){t||(this._isPaused=!0),a(this._element).find(yt)[0]&&S.supportsTransitionEnd()&&(S.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(a.proxy(document.visibilityState?this.nextWhenVisible:this.next,this),this._config.interval))}},{key:"to",value:function(t){var e=this,n=(this._activeElement=a(this._element).find(mt)[0],this._getItemIndex(this._activeElement));t>this._items.length-1||t<0||(this._isSliding?a(this._element).one(d.SLID,function(){return e.to(t)}):n===t?(this.pause(),this.cycle()):(n=n<t?dt:ut,this._slide(n,this._items[t])))}},{key:"dispose",value:function(){a(this._element).off(l),a.removeData(this._element,rt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}},{key:"_getConfig",value:function(t){return t=a.extend({},at,t),S.typeCheckConfig(n,t,lt),t}},{key:"_addEventListeners",value:function(){this._config.keyboard&&a(this._element).on(d.KEYDOWN,a.proxy(this._keydown,this)),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on(d.MOUSEENTER,a.proxy(this.pause,this)).on(d.MOUSELEAVE,a.proxy(this.cycle,this))}},{key:"_keydown",value:function(t){if(t.preventDefault(),!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}}},{key:"_getItemIndex",value:function(t){return this._items=a.makeArray(a(t).parent().find(vt)),this._items.indexOf(t)}},{key:"_getItemByDirection",value:function(t,e){var n=t===dt,i=t===ut,o=this._getItemIndex(e),r=this._items.length-1;return(i&&0===o||n&&o===r)&&!this._config.wrap?e:-1==(i=(o+(t===ut?-1:1))%this._items.length)?this._items[this._items.length-1]:this._items[i]}},{key:"_triggerSlideEvent",value:function(t,e){t=a.Event(d.SLIDE,{relatedTarget:t,direction:e});return a(this._element).trigger(t),t}},{key:"_setActiveIndicatorElement",value:function(t){this._indicatorsElement&&(a(this._indicatorsElement).find(gt).removeClass(u),t=this._indicatorsElement.children[this._getItemIndex(t)])&&a(t).addClass(u)}},{key:"_slide",value:function(t,e){var n,i=this,o=a(this._element).find(mt)[0],r=e||o&&this._getItemByDirection(t,o),e=Boolean(this._interval),s=t===dt?ft:pt;r&&a(r).hasClass(u)?this._isSliding=!1:this._triggerSlideEvent(r,s).isDefaultPrevented()||o&&r&&(this._isSliding=!0,e&&this.pause(),this._setActiveIndicatorElement(r),n=a.Event(d.SLID,{relatedTarget:r,direction:s}),S.supportsTransitionEnd()&&a(this._element).hasClass(ht)?(a(r).addClass(t),S.reflow(r),a(o).addClass(s),a(r).addClass(s),a(o).one(S.TRANSITION_END,function(){a(r).removeClass(s).removeClass(t),a(r).addClass(u),a(o).removeClass(u).removeClass(t).removeClass(s),i._isSliding=!1,setTimeout(function(){return a(i._element).trigger(n)},0)}).emulateTransitionEnd(600)):(a(o).removeClass(u),a(r).addClass(u),this._isSliding=!1,a(this._element).trigger(n)),e)&&this.cycle()}}],[{key:"_jQueryInterface",value:function(i){return this.each(function(){var t=a(this).data(rt),e=a.extend({},at,a(this).data()),n=("object"==typeof i&&a.extend(e,i),"string"==typeof i?i:e.slide);if(t||(t=new St(this,e),a(this).data(rt,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})}},{key:"_dataApiClickHandler",value:function(t){var e,n,i=S.getSelectorFromElement(this);i&&(i=a(i)[0])&&a(i).hasClass(ct)&&(e=a.extend({},a(i).data(),a(this).data()),(n=this.getAttribute("data-slide-to"))&&(e.interval=!1),St._jQueryInterface.call(a(i),e),n&&a(i).data(rt).to(n),t.preventDefault())}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return at}}]),_t=St,a(document).on(d.CLICK_DATA_API,x,_t._dataApiClickHandler),a(window).on(d.LOAD_DATA_API,function(){a(wt).each(function(){var t=a(this);_t._jQueryInterface.call(t,t.data())})}),a.fn[n]=_t._jQueryInterface,a.fn[n].Constructor=_t,a.fn[n].noConflict=function(){return a.fn[n]=st,_t._jQueryInterface};function St(t,e){_(this,St),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(e),this._element=a(t)[0],this._indicatorsElement=a(this._element).find(bt)[0],this._addEventListeners()}var c,h,p,Tt,Dt,Ct,Et,f,kt,xt,Mt,It,Rt,Ot,Pt;c=jQuery,h="collapse",O="."+(p="bs.collapse"),Tt=c.fn[h],Dt={toggle:!0,parent:""},Ct={toggle:"boolean",parent:"string"},Et={SHOW:"show"+O,SHOWN:"shown"+O,HIDE:"hide"+O,HIDDEN:"hidden"+O,CLICK_DATA_API:"click"+O+".data-api"},f="in",kt="collapse",xt="collapsing",Mt="collapsed",It="width",Rt="height",Ot=".panel > .in, .panel > .collapsing",O='[data-toggle="collapse"]',w(Ht,[{key:"toggle",value:function(){c(this._element).hasClass(f)?this.hide():this.show()}},{key:"show",value:function(){var t,e,n,i,o=this;this._isTransitioning||c(this._element).hasClass(f)||(i=t=void 0,(t=!this._parent||(t=c.makeArray(c(Ot))).length?t:null)&&(i=c(t).data(p))&&i._isTransitioning)||(n=c.Event(Et.SHOW),c(this._element).trigger(n),n.isDefaultPrevented())||(t&&(Ht._jQueryInterface.call(c(t),"hide"),i||c(t).data(p,null)),e=this._getDimension(),c(this._element).removeClass(kt).addClass(xt),this._element.style[e]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&c(this._triggerArray).removeClass(Mt).attr("aria-expanded",!0),this.setTransitioning(!0),n=function(){c(o._element).removeClass(xt).addClass(kt).addClass(f),o._element.style[e]="",o.setTransitioning(!1),c(o._element).trigger(Et.SHOWN)},S.supportsTransitionEnd()?(i="scroll"+(e[0].toUpperCase()+e.slice(1)),c(this._element).one(S.TRANSITION_END,n).emulateTransitionEnd(600),this._element.style[e]=this._element[i]+"px"):n())}},{key:"hide",value:function(){var t,e,n=this;this._isTransitioning||!c(this._element).hasClass(f)||(t=c.Event(Et.HIDE),c(this._element).trigger(t),t.isDefaultPrevented())||(e=(t=this._getDimension())===It?"offsetWidth":"offsetHeight",this._element.style[t]=this._element[e]+"px",S.reflow(this._element),c(this._element).addClass(xt).removeClass(kt).removeClass(f),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&c(this._triggerArray).addClass(Mt).attr("aria-expanded",!1),this.setTransitioning(!0),e=function(){n.setTransitioning(!1),c(n._element).removeClass(xt).addClass(kt).trigger(Et.HIDDEN)},this._element.style[t]=0,S.supportsTransitionEnd()?c(this._element).one(S.TRANSITION_END,e).emulateTransitionEnd(600):e())}},{key:"setTransitioning",value:function(t){this._isTransitioning=t}},{key:"dispose",value:function(){c.removeData(this._element,p),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(t){return(t=c.extend({},Dt,t)).toggle=Boolean(t.toggle),S.typeCheckConfig(h,t,Ct),t}},{key:"_getDimension",value:function(){return c(this._element).hasClass(It)?It:Rt}},{key:"_getParent",value:function(){var n=this,t=c(this._config.parent)[0],e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return c(t).find(e).each(function(t,e){n._addAriaAndCollapsedClass(Ht._getTargetFromElement(e),[e])}),t}},{key:"_addAriaAndCollapsedClass",value:function(t,e){var n;t&&(n=c(t).hasClass(f),t.setAttribute("aria-expanded",n),e.length)&&c(e).toggleClass(Mt,!n).attr("aria-expanded",n)}}],[{key:"_getTargetFromElement",value:function(t){t=S.getSelectorFromElement(t);return t?c(t)[0]:null}},{key:"_jQueryInterface",value:function(i){return this.each(function(){var t=c(this),e=t.data(p),n=c.extend({},Dt,t.data(),"object"==typeof i&&i);if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new Ht(this,n),t.data(p,e)),"string"==typeof i){if(void 0===e[i])throw new Error('No method named "'+i+'"');e[i]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return Dt}}]),Pt=Ht,c(document).on(Et.CLICK_DATA_API,O,function(t){t.preventDefault();var t=Pt._getTargetFromElement(this),e=c(t).data(p)?"toggle":c(this).data();Pt._jQueryInterface.call(c(t),e)}),c.fn[h]=Pt._jQueryInterface,c.fn[h].Constructor=Pt,c.fn[h].noConflict=function(){return c.fn[h]=Tt,Pt._jQueryInterface};function Ht(t,e){_(this,Ht),this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=c.makeArray(c('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var g,At,Ft,m,v,Nt,y,Lt,zt,jt,Yt,Bt,$t,Wt,b;g=jQuery,At="dropdown",m="."+(Ft="bs.dropdown"),v=".data-api",Nt=g.fn[At],y={HIDE:"hide"+m,HIDDEN:"hidden"+m,SHOW:"show"+m,SHOWN:"shown"+m,CLICK:"click"+m,CLICK_DATA_API:"click"+m+v,KEYDOWN_DATA_API:"keydown"+m+v},Lt="dropdown-backdrop",zt="disabled",jt="open",Yt=".dropdown-backdrop",Bt='[data-toggle="dropdown"]',v=".dropdown form",x='[role="menu"]',O='[role="listbox"]',$t=".navbar-nav",Wt='[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a',w(T,[{key:"toggle",value:function(){var t,e,n;return this.disabled||g(this).hasClass(zt)||(t=T._getParentFromElement(this),e=g(t).hasClass(jt),T._clearMenus(),e)||("ontouchstart"in document.documentElement&&!g(t).closest($t).length&&((e=document.createElement("div")).className=Lt,g(e).insertBefore(this),g(e).on("click",T._clearMenus)),n=g.Event(y.SHOW,e={relatedTarget:this}),g(t).trigger(n),n.isDefaultPrevented())||(this.focus(),this.setAttribute("aria-expanded","true"),g(t).toggleClass(jt),g(t).trigger(g.Event(y.SHOWN,e))),!1}},{key:"dispose",value:function(){g.removeData(this._element,Ft),g(this._element).off(m),this._element=null}},{key:"_addEventListeners",value:function(){g(this._element).on(y.CLICK,this.toggle)}}],[{key:"_jQueryInterface",value:function(e){return this.each(function(){var t=g(this).data(Ft);if(t||g(this).data(Ft,t=new T(this)),"string"==typeof e){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e].call(this)}})}},{key:"_clearMenus",value:function(t){if(!t||3!==t.which)for(var e=g(Yt)[0],n=(e&&e.parentNode.removeChild(e),g.makeArray(g(Bt))),i=0;i<n.length;i++){var o,r=T._getParentFromElement(n[i]),s={relatedTarget:n[i]};!g(r).hasClass(jt)||t&&"click"===t.type&&/input|textarea/i.test(t.target.tagName)&&g.contains(r,t.target)||(o=g.Event(y.HIDE,s),g(r).trigger(o),o.isDefaultPrevented())||(n[i].setAttribute("aria-expanded","false"),g(r).removeClass(jt).trigger(g.Event(y.HIDDEN,s)))}}},{key:"_getParentFromElement",value:function(t){var e=void 0,n=S.getSelectorFromElement(t);return(e=n?g(n)[0]:e)||t.parentNode}},{key:"_dataApiKeydownHandler",value:function(t){var e,n;!/(38|40|27|32)/.test(t.which)||/input|textarea/i.test(t.target.tagName)||(t.preventDefault(),t.stopPropagation(),this.disabled)||g(this).hasClass(zt)||(n=T._getParentFromElement(this),!(e=g(n).hasClass(jt))&&27!==t.which||e&&27===t.which?(27===t.which&&(e=g(n).find(Bt)[0],g(e).trigger("focus")),g(this).trigger("click")):(n=(n=g.makeArray(g(Wt))).filter(function(t){return t.offsetWidth||t.offsetHeight})).length&&(e=n.indexOf(t.target),38===t.which&&0<e&&e--,40===t.which&&e<n.length-1&&e++,n[e=~e?e:0].focus()))}},{key:"VERSION",get:function(){return"4.0.0-alpha"}}]),b=T,g(document).on(y.KEYDOWN_DATA_API,Bt,b._dataApiKeydownHandler).on(y.KEYDOWN_DATA_API,x,b._dataApiKeydownHandler).on(y.KEYDOWN_DATA_API,O,b._dataApiKeydownHandler).on(y.CLICK_DATA_API,b._clearMenus).on(y.CLICK_DATA_API,Bt,b.prototype.toggle).on(y.CLICK_DATA_API,v,function(t){t.stopPropagation()}),g.fn[At]=b._jQueryInterface,g.fn[At].Constructor=b,g.fn[At].noConflict=function(){return g.fn[At]=Nt,b._jQueryInterface};function T(t){_(this,T),this._element=t,this._addEventListeners()}var D,C,Ut,E,Vt,qt,Gt,k,Qt,Xt,Zt,Kt,Jt,te,x,ee,ne,ie;D=jQuery,C="modal",E="."+(Ut="bs.modal"),Vt=D.fn[C],qt={backdrop:!0,keyboard:!0,focus:!0,show:!0},Gt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},k={HIDE:"hide"+E,HIDDEN:"hidden"+E,SHOW:"show"+E,SHOWN:"shown"+E,FOCUSIN:"focusin"+E,RESIZE:"resize"+E,CLICK_DISMISS:"click.dismiss"+E,KEYDOWN_DISMISS:"keydown.dismiss"+E,MOUSEUP_DISMISS:"mouseup.dismiss"+E,MOUSEDOWN_DISMISS:"mousedown.dismiss"+E,CLICK_DATA_API:"click"+E+".data-api"},Qt="modal-scrollbar-measure",Xt="modal-backdrop",Zt="modal-open",Kt="fade",Jt="in",te=".modal-dialog",x='[data-toggle="modal"]',ee='[data-dismiss="modal"]',ne=".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed",w(oe,[{key:"toggle",value:function(t){return this._isShown?this.hide():this.show(t)}},{key:"show",value:function(t){var e=this,n=D.Event(k.SHOW,{relatedTarget:t});D(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),D(document.body).addClass(Zt),this._setEscapeEvent(),this._setResizeEvent(),D(this._element).on(k.CLICK_DISMISS,ee,D.proxy(this.hide,this)),D(this._dialog).on(k.MOUSEDOWN_DISMISS,function(){D(e._element).one(k.MOUSEUP_DISMISS,function(t){D(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(D.proxy(this._showElement,this,t)))}},{key:"hide",value:function(t){t&&t.preventDefault();t=D.Event(k.HIDE);D(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),D(document).off(k.FOCUSIN),D(this._element).removeClass(Jt),D(this._element).off(k.CLICK_DISMISS),D(this._dialog).off(k.MOUSEDOWN_DISMISS),S.supportsTransitionEnd()&&D(this._element).hasClass(Kt)?D(this._element).one(S.TRANSITION_END,D.proxy(this._hideModal,this)).emulateTransitionEnd(300):this._hideModal())}},{key:"dispose",value:function(){D.removeData(this._element,Ut),D(window).off(E),D(document).off(E),D(this._element).off(E),D(this._backdrop).off(E),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null}},{key:"_getConfig",value:function(t){return t=D.extend({},qt,t),S.typeCheckConfig(C,t,Gt),t}},{key:"_showElement",value:function(t){function e(){n._config.focus&&n._element.focus(),D(n._element).trigger(o)}var n=this,i=S.supportsTransitionEnd()&&D(this._element).hasClass(Kt),o=(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.scrollTop=0,i&&S.reflow(this._element),D(this._element).addClass(Jt),this._config.focus&&this._enforceFocus(),D.Event(k.SHOWN,{relatedTarget:t}));i?D(this._dialog).one(S.TRANSITION_END,e).emulateTransitionEnd(300):e()}},{key:"_enforceFocus",value:function(){var e=this;D(document).off(k.FOCUSIN).on(k.FOCUSIN,function(t){e._element===t.target||D(e._element).has(t.target).length||e._element.focus()})}},{key:"_setEscapeEvent",value:function(){var e=this;this._isShown&&this._config.keyboard?D(this._element).on(k.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||D(this._element).off(k.KEYDOWN_DISMISS)}},{key:"_setResizeEvent",value:function(){this._isShown?D(window).on(k.RESIZE,D.proxy(this._handleUpdate,this)):D(window).off(k.RESIZE)}},{key:"_hideModal",value:function(){var t=this;this._element.style.display="none",this._showBackdrop(function(){D(document.body).removeClass(Zt),t._resetAdjustments(),t._resetScrollbar(),D(t._element).trigger(k.HIDDEN)})}},{key:"_removeBackdrop",value:function(){this._backdrop&&(D(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(t){var e,n=this,i=D(this._element).hasClass(Kt)?Kt:"";this._isShown&&this._config.backdrop?(e=S.supportsTransitionEnd()&&i,this._backdrop=document.createElement("div"),this._backdrop.className=Xt,i&&D(this._backdrop).addClass(i),D(this._backdrop).appendTo(document.body),D(this._element).on(k.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),e&&S.reflow(this._backdrop),D(this._backdrop).addClass(Jt),t&&(e?D(this._backdrop).one(S.TRANSITION_END,t).emulateTransitionEnd(150):t())):!this._isShown&&this._backdrop?(D(this._backdrop).removeClass(Jt),i=function(){n._removeBackdrop(),t&&t()},S.supportsTransitionEnd()&&D(this._element).hasClass(Kt)?D(this._backdrop).one(S.TRANSITION_END,i).emulateTransitionEnd(150):i()):t&&t()}},{key:"_handleUpdate",value:function(){this._adjustDialog()}},{key:"_adjustDialog",value:function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px~")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this._isBodyOverflowing=document.body.clientWidth<e,this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var t=parseInt(D(ne).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=t+this._scrollbarWidth+"px")}},{key:"_resetScrollbar",value:function(){document.body.style.paddingRight=this._originalBodyPadding}},{key:"_getScrollbarWidth",value:function(){var t=document.createElement("div"),e=(t.className=Qt,document.body.appendChild(t),t.offsetWidth-t.clientWidth);return document.body.removeChild(t),e}}],[{key:"_jQueryInterface",value:function(n,i){return this.each(function(){var t=D(this).data(Ut),e=D.extend({},oe.Default,D(this).data(),"object"==typeof n&&n);if(t||(t=new oe(this,e),D(this).data(Ut,t)),"string"==typeof n){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return qt}}]),ie=oe,D(document).on(k.CLICK_DATA_API,x,function(t){var e=this,n=void 0,i=S.getSelectorFromElement(this),i=(i&&(n=D(i)[0]),D(n).data(Ut)?"toggle":D.extend({},D(n).data(),D(this).data())),o=("A"===this.tagName&&t.preventDefault(),D(n).one(k.SHOW,function(t){t.isDefaultPrevented()||o.one(k.HIDDEN,function(){D(e).is(":visible")&&e.focus()})}));ie._jQueryInterface.call(D(n),i,this)}),D.fn[C]=ie._jQueryInterface,D.fn[C].Constructor=ie,D.fn[C].noConflict=function(){return D.fn[C]=Vt,ie._jQueryInterface};function oe(t,e){_(this,oe),this._config=this._getConfig(e),this._element=t,this._dialog=D(t).find(te)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var M,I,re,se,ae,le,de,ue,ce,he,pe,fe,ge,me,ve,ye,be,we,_e,Se;M=jQuery,I="scrollspy",se="."+(re="bs.scrollspy"),ae=M.fn[I],le={offset:10,method:"auto",target:""},de={offset:"number",method:"string",target:"(string|element)"},ue={ACTIVATE:"activate"+se,SCROLL:"scroll"+se,LOAD_DATA_API:"load"+se+".data-api"},ce="dropdown-item",he="active",pe='[data-spy="scroll"]',fe=".active",ge="li",me=".nav-link",ve=".dropdown",ye=".dropdown-item",be=".dropdown-toggle",we="offset",_e="position",w(Te,[{key:"refresh",value:function(){var e=this,t=this._scrollElement!==this._scrollElement.window?_e:we,n="auto"===this._config.method?t:this._config.method,i=n===_e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),M.makeArray(M(this._selector)).map(function(t){var e=void 0,t=S.getSelectorFromElement(t);if((e=t?M(t)[0]:e)&&(e.offsetWidth||e.offsetHeight))return[M(e)[n]().top+i,t]}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})}},{key:"dispose",value:function(){M.removeData(this._element,re),M(this._scrollElement).off(se),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function(t){var e;return"string"!=typeof(t=M.extend({},le,t)).target&&((e=M(t.target).attr("id"))||(e=S.getUID(I),M(t.target).attr("id",e)),t.target="#"+e),S.typeCheckConfig(I,t,de),t}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_process",value:function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._scrollElement.offsetHeight;if(this._scrollHeight!==e&&this.refresh(),n<=t&&(e=this._targets[this._targets.length-1],this._activeTarget!==e)&&this._activate(e),this._activeTarget&&t<this._offsets[0])this._activeTarget=null,this._clear();else for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}},{key:"_activate",value:function(e){this._activeTarget=e,this._clear();var t=(t=this._selector.split(",")).map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),t=M(t.join(","));(t.hasClass(ce)?(t.closest(ve).find(be).addClass(he),t):t.parents(ge).find(me)).addClass(he),M(this._scrollElement).trigger(ue.ACTIVATE,{relatedTarget:e})}},{key:"_clear",value:function(){M(this._selector).filter(fe).removeClass(he)}}],[{key:"_jQueryInterface",value:function(e){return this.each(function(){var t=M(this).data(re);if(t||(t=new Te(this,"object"==typeof e&&e||null),M(this).data(re,t)),"string"==typeof e){if(void 0===t[e])throw new Error('No method named "'+e+'"');t[e]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return le}}]),Se=Te,M(window).on(ue.LOAD_DATA_API,function(){for(var t=M.makeArray(M(pe)),e=t.length;e--;){var n=M(t[e]);Se._jQueryInterface.call(n,n.data())}}),M.fn[I]=Se._jQueryInterface,M.fn[I].Constructor=Se,M.fn[I].noConflict=function(){return M.fn[I]=ae,Se._jQueryInterface};function Te(t,e){_(this,Te),this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+me+","+this._config.target+" "+ye,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,M(this._scrollElement).on(ue.SCROLL,M.proxy(this._process,this)),this.refresh(),this._process()}var R,De,O,Ce,Ee,ke,xe,Me,Ie,Re,Oe,Pe,He,Ae,Fe,Ne,Le;R=jQuery,O="."+(De="bs.tab"),Ce=R.fn.tab,Ee={HIDE:"hide"+O,HIDDEN:"hidden"+O,SHOW:"show"+O,SHOWN:"shown"+O,CLICK_DATA_API:"click"+O+".data-api"},ke="dropdown-menu",xe="active",Me="fade",Ie="in",Re=".dropdown",Oe="ul:not(.dropdown-menu)",Pe="> .nav-item .fade, > .fade",He=".active",Ae="> .nav-item > .active, > .active",O='[data-toggle="tab"], [data-toggle="pill"]',Fe=".dropdown-toggle",Ne="> .dropdown-menu .active",w(ze,[{key:"show",value:function(){var t,n,e,i,o,r,s=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&R(this._element).hasClass(xe)||(n=t=void 0,e=R(this._element).closest(Oe)[0],i=S.getSelectorFromElement(this._element),e&&(n=(n=R.makeArray(R(e).find(He)))[n.length-1]),o=R.Event(Ee.HIDE,{relatedTarget:this._element}),r=R.Event(Ee.SHOW,{relatedTarget:n}),n&&R(n).trigger(o),R(this._element).trigger(r),r.isDefaultPrevented())||o.isDefaultPrevented()||(i&&(t=R(i)[0]),this._activate(this._element,e),r=function(){var t=R.Event(Ee.HIDDEN,{relatedTarget:s._element}),e=R.Event(Ee.SHOWN,{relatedTarget:n});R(n).trigger(t),R(s._element).trigger(e)},t?this._activate(t,t.parentNode,r):r())}},{key:"dispose",value:function(){R.removeClass(this._element,De),this._element=null}},{key:"_activate",value:function(t,e,n){var i=R(e).find(Ae)[0],e=n&&S.supportsTransitionEnd()&&(i&&R(i).hasClass(Me)||Boolean(R(e).find(Pe)[0])),t=R.proxy(this._transitionComplete,this,t,i,e,n);i&&e?R(i).one(S.TRANSITION_END,t).emulateTransitionEnd(150):t(),i&&R(i).removeClass(Ie)}},{key:"_transitionComplete",value:function(t,e,n,i){var o;e&&(R(e).removeClass(xe),(o=R(e).find(Ne)[0])&&R(o).removeClass(xe),e.setAttribute("aria-expanded",!1)),R(t).addClass(xe),t.setAttribute("aria-expanded",!0),n?(S.reflow(t),R(t).addClass(Ie)):R(t).removeClass(Me),t.parentNode&&R(t.parentNode).hasClass(ke)&&((o=R(t).closest(Re)[0])&&R(o).find(Fe).addClass(xe),t.setAttribute("aria-expanded",!0)),i&&i()}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var t=R(this),e=t.data(De);if(e||(e=new ze(this),t.data(De,e)),"string"==typeof n){if(void 0===e[n])throw new Error('No method named "'+n+'"');e[n]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}}]),Le=ze,R(document).on(Ee.CLICK_DATA_API,O,function(t){t.preventDefault(),Le._jQueryInterface.call(R(this),"show")}),R.fn.tab=Le._jQueryInterface,R.fn.tab.Constructor=Le,R.fn.tab.noConflict=function(){return R.fn.tab=Ce,Le._jQueryInterface};function ze(t){_(this,ze),this._element=t}var P,H,je,A,Ye,Be,$e,We,Ue,Ve,qe,Ge,Qe,Xe=function(r){if(void 0===window.Tether)throw new Error("Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)");var e="tooltip",i="bs.tooltip",t="."+i,n=r.fn[e],o={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[]},s={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array"},a={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},l="in",d="out",u={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t},c="fade",h="in",p=".tooltip-inner",f={element:!1,enabled:!1},g="hover",m="focus",v="manual",y=(w(b,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(t){var e,n;t?(e=this.constructor.DATA_KEY,(n=r(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):r(this.getTipElement()).hasClass(h)?this._leave(null,this):this._enter(null,this)}},{key:"dispose",value:function(){clearTimeout(this._timeout),this.cleanupTether(),r.removeData(this.element,this.constructor.DATA_KEY),r(this.element).off(this.constructor.EVENT_KEY),this.tip&&r(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null}},{key:"show",value:function(){var t,e=this,n=r.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(r(this.element).trigger(n),t=r.contains(this.element.ownerDocument.documentElement,this.element),!n.isDefaultPrevented())&&t&&(n=this.getTipElement(),t=S.getUID(this.constructor.NAME),n.setAttribute("id",t),this.element.setAttribute("aria-describedby",t),this.setContent(),this.config.animation&&r(n).addClass(c),t="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,t=this._getAttachment(t),r(n).data(this.constructor.DATA_KEY,this).appendTo(document.body),r(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:t,element:n,target:this.element,classes:f,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),S.reflow(n),this._tether.position(),r(n).addClass(h),t=function(){var t=e._hoverState;e._hoverState=null,r(e.element).trigger(e.constructor.Event.SHOWN),t===d&&e._leave(null,e)},S.supportsTransitionEnd()&&r(this.tip).hasClass(c)?r(this.tip).one(S.TRANSITION_END,t).emulateTransitionEnd(b._TRANSITION_DURATION):t())}},{key:"hide",value:function(t){function e(){n._hoverState!==l&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),r(n.element).trigger(n.constructor.Event.HIDDEN),n.cleanupTether(),t&&t()}var n=this,i=this.getTipElement(),o=r.Event(this.constructor.Event.HIDE);r(this.element).trigger(o),o.isDefaultPrevented()||(r(i).removeClass(h),S.supportsTransitionEnd()&&r(this.tip).hasClass(c)?r(i).one(S.TRANSITION_END,e).emulateTransitionEnd(150):e(),this._hoverState="")}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){return this.tip=this.tip||r(this.config.template)[0]}},{key:"setContent",value:function(){var t=r(this.getTipElement());this.setElementContent(t.find(p),this.getTitle()),t.removeClass(c).removeClass(h),this.cleanupTether()}},{key:"setElementContent",value:function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?r(e).parent().is(t)||t.empty().append(e):t.text(r(e).text()):t[n?"html":"text"](e)}},{key:"getTitle",value:function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)}},{key:"cleanupTether",value:function(){this._tether&&this._tether.destroy()}},{key:"_getAttachment",value:function(t){return a[t.toUpperCase()]}},{key:"_setListeners",value:function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?r(n.element).on(n.constructor.Event.CLICK,n.config.selector,r.proxy(n.toggle,n)):t!==v&&(e=t===g?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===g?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,r(n.element).on(e,n.config.selector,r.proxy(n._enter,n)).on(t,n.config.selector,r.proxy(n._leave,n)))}),this.config.selector?this.config=r.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?m:g]=!0),r(e.getTipElement()).hasClass(h)||e._hoverState===l?e._hoverState=l:(clearTimeout(e._timeout),e._hoverState=l,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===l&&e.show()},e.config.delay.show):e.show())}},{key:"_leave",value:function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?m:g]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=d,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===d&&e.hide()},e.config.delay.hide):e.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}},{key:"_getConfig",value:function(t){return(t=r.extend({},this.constructor.Default,r(this.element).data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),S.typeCheckConfig(e,t,this.constructor.DefaultType),t}},{key:"_getDelegateConfig",value:function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var t=r(this).data(i),e="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new b(this,e),r(this).data(i,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return o}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return i}},{key:"Event",get:function(){return u}},{key:"EVENT_KEY",get:function(){return t}},{key:"DefaultType",get:function(){return s}}]),b);function b(t,e){_(this,b),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return r.fn[e]=y._jQueryInterface,r.fn[e].Constructor=y,r.fn[e].noConflict=function(){return r.fn[e]=n,y._jQueryInterface},y}(jQuery);P=jQuery,H="popover",A="."+(je="bs.popover"),Ye=P.fn[H],Be=P.extend({},Xe.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),$e=P.extend({},Xe.DefaultType,{content:"(string|element|function)"}),We="fade",Ue="in",Ve=".popover-title",qe=".popover-content",Ge={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,INSERTED:"inserted"+A,CLICK:"click"+A,FOCUSIN:"focusin"+A,FOCUSOUT:"focusout"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A},Qe=function(){var t=i,e=Xe;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(){_(this,i),function(t,e,n){for(var i=!0;i;){var o=t,r=e,s=n,i=!1,a=(null===o&&(o=Function.prototype),Object.getOwnPropertyDescriptor(o,r));if(void 0!==a)return"value"in a?a.value:void 0===(l=a.get)?void 0:l.call(s);var l=Object.getPrototypeOf(o);if(null===l)return;t=l,e=r,n=s,i=!0,a=void 0}}(Object.getPrototypeOf(i.prototype),"constructor",this).apply(this,arguments)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),w(i,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip=this.tip||P(this.config.template)[0]}},{key:"setContent",value:function(){var t=P(this.getTipElement());this.setElementContent(t.find(Ve),this.getTitle()),this.setElementContent(t.find(qe),this._getContent()),t.removeClass(We).removeClass(Ue),this.cleanupTether()}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)}}],[{key:"_jQueryInterface",value:function(n){return this.each(function(){var t=P(this).data(je),e="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,e),P(this).data(je,t)),"string"==typeof n)){if(void 0===t[n])throw new Error('No method named "'+n+'"');t[n]()}})}},{key:"VERSION",get:function(){return"4.0.0-alpha"}},{key:"Default",get:function(){return Be}},{key:"NAME",get:function(){return H}},{key:"DATA_KEY",get:function(){return je}},{key:"Event",get:function(){return Ge}},{key:"EVENT_KEY",get:function(){return A}},{key:"DefaultType",get:function(){return $e}}]),i}(),P.fn[H]=Qe._jQueryInterface,P.fn[H].Constructor=Qe,P.fn[H].noConflict=function(){return P.fn[H]=Ye,Qe._jQueryInterface}}(jQuery),function(Et,t,kt){"use strict";function xt(s,t,N){function L(t){var l,d,u,c,h,p,e,n=M.length;if(S.old=Et.extend({},S),w=v?0:y[g.horizontal?"width":"height"](),C=T[g.horizontal?"width":"height"](),_=v?s:b[g.horizontal?"outerWidth":"outerHeight"](),M.length=0,S.start=0,S.end=oe(_-w,0),A&&(R.length,I=b.children(g.itemSelector),R.length=0,d=Pt(b,g.horizontal?"paddingLeft":"paddingTop"),u=Pt(b,g.horizontal?"paddingRight":"paddingBottom"),e="border-box"===Et(I).css("boxSizing"),c="none"!==I.css("float"),h=0,p=I.length-1,_=0,I.each(function(t,e){var n=Et(e),i=e.getBoundingClientRect(),i=Kt(g.horizontal?i.width||i.right-i.left:i.height||i.bottom-i.top),o=Pt(n,g.horizontal?"marginLeft":"marginTop"),n=Pt(n,g.horizontal?"marginRight":"marginBottom"),r=i+o+n,s=!o||!n,a={};a.el=e,a.size=s?i:r,a.half=a.size/2,a.start=_+(s?o:0),a.center=a.start-Kt(w/2-a.size/2),a.end=a.start-w+a.size,t||(_+=d),_+=r,g.horizontal||c||n&&o&&0<t&&(_-=Jt(o,n)),t===p&&(a.end+=u,_+=u,h=s?n:0),R.push(a),l=a}),b[0].style[g.horizontal?"width":"height"]=(e?_:_-d-u)+"px",_-=h,R.length?(S.start=R[0][P?"center":"start"],S.end=P?l.center:w<_?l.end:S.start):S.start=S.end=0),S.center=Kt(S.end/2+S.start/2),q(),D.length&&0<C&&(g.dynamicHandle?(E=Ht(E=S.start===S.end?C:Kt(C*w/_),g.minHandleSize,C),D[0].style[g.horizontal?"width":"height"]=E+"px"):E=D[g.horizontal?"outerWidth":"outerHeight"](),k.end=C-E,Tt||j()),!v&&0<w){var i=S.start,o="";if(A)Et.each(R,function(t,e){P?M.push(e.center):e.start+e.size>i&&i<=S.end&&(i=e.start,M.push(i),(i+=w)>S.end)&&i<S.end+w&&M.push(S.end)});else for(;i-w<S.end;)M.push(i),i+=w;if(x[0]&&n!==M.length){for(var r=0;r<M.length;r++)o+=g.pageBuilder.call(m,r);(ft=x.html(o).children()).eq(O.activePage).addClass(g.activeClass)}}O.slideeSize=_,O.frameSize=w,O.sbSize=C,O.handleSize=E,A?(t&&null!=g.startAt&&(U(g.startAt),m[H?"toCenter":"toStart"](g.startAt)),e=R[O.activeItem],a(H&&e?e.center:Ht(S.dest,S.start,S.end))):t?null!=g.startAt&&a(g.startAt,1):a(Ht(S.dest,S.start,S.end)),f("load")}function a(t,e,n){var i;A&&h.released&&!n&&(n=V(t),i=t>S.start&&t<S.end,H?(i&&(t=R[n.centerItem].center),P&&g.activateMiddle&&U(n.centerItem)):i&&(t=R[n.firstItem].start)),h.init&&h.slidee&&g.elasticBounds?t>S.end?t=S.end+(t-S.end)/6:t<S.start&&(t=S.start+(t-S.start)/6):t=Ht(t,S.start,S.end),c.start=+new Date,c.time=0,c.from=S.cur,c.to=t,c.delta=t-S.cur,c.tweesing=h.tweese||h.init&&!h.slidee,c.immediate=!c.tweesing&&(e||h.init&&h.slidee||!g.speed),h.tweese=0,t!==S.dest&&(S.dest=t,f("change"),Tt||z()),Z(),q(),G(),ft[0]&&u.page!==O.activePage&&(u.page=O.activePage,ft.removeClass(g.activeClass).eq(O.activePage).addClass(g.activeClass),f("activePage",u.page))}function z(){m.initialized&&(Tt?(c.immediate?S.cur=c.to:c.tweesing?(c.tweeseDelta=c.to-S.cur,Xt(c.tweeseDelta)<.1?S.cur=c.to:S.cur+=c.tweeseDelta*(h.released?g.swingSpeed:g.syncSpeed)):(c.time=Jt(+new Date-c.start,g.speed),S.cur=c.from+c.delta*Et.easing[g.easing](c.time/g.speed,c.time,0,1,g.speed)),c.to===S.cur?(S.cur=c.to,h.tweese=Tt=0):Tt=Yt(z),f("move"),v||(Ft?b[0].style[Ft]=Nt+(g.horizontal?"translateX":"translateY")+"("+-S.cur+"px)":b[0].style[g.horizontal?"left":"top"]=-Kt(S.cur)+"px"),!Tt&&h.released&&f("moveEnd"),j()):(Tt=Yt(z),h.released&&f("moveStart")))}function j(){D.length&&(k.cur=S.start===S.end?0:((h.init&&!h.slidee?S.dest:S.cur)-S.start)/(S.end-S.start)*k.end,k.cur=Ht(Kt(k.cur),k.start,k.end),u.hPos!==k.cur)&&(u.hPos=k.cur,Ft?D[0].style[Ft]=Nt+(g.horizontal?"translateX":"translateY")+"("+k.cur+"px)":D[0].style[g.horizontal?"left":"top"]=k.cur+"px")}function Y(){e.speed&&S.cur!==(0<e.speed?S.end:S.start)||m.stop(),Ct=h.init?Yt(Y):0,e.now=+new Date,e.pos=S.cur+(e.now-e.lastTime)/1e3*e.speed,a(h.init?e.pos:Kt(e.pos)),h.init||S.cur!==S.dest||f("moveEnd"),e.lastTime=e.now}function B(t,e,n){"boolean"===Mt(e)&&(n=e,e=kt),e===kt?a(S[t],n):H&&"center"!==t||(e=m.getPos(e))&&a(e[t],n,!H)}function $(t){return null!=t?Ot(t)?0<=t&&t<R.length?t:-1:I.index(t):-1}function W(t){return $(Ot(t)&&t<0?t+R.length:t)}function U(t,e){t=$(t);return!(!A||t<0)&&(u.active===t&&!e||(I.eq(O.activeItem).removeClass(g.activeClass),I.eq(t).addClass(g.activeClass),u.active=O.activeItem=t,G(),f("active",t)),t)}function V(t){t=Ht(Ot(t)?t:S.dest,S.start,S.end);var e={},n=P?0:w/2;if(!v)for(var i=0,o=M.length;i<o;i++){if(t>=S.end||i===M.length-1){e.activePage=M.length-1;break}if(t<=M[i]+n){e.activePage=i;break}}if(A){for(var r=!1,s=!1,a=!1,l=0,d=R.length;l<d;l++)if(!1===r&&t<=R[l].start+R[l].half&&(r=l),!1===a&&t<=R[l].center+R[l].half&&(a=l),l===d-1||t<=R[l].end+R[l].half){s=l;break}e.firstItem=Ot(r)?r:0,e.centerItem=Ot(a)?a:e.firstItem,e.lastItem=Ot(s)?s:e.centerItem}return e}function q(t){Et.extend(O,V(t))}function G(){var t=S.dest<=S.start,e=S.dest>=S.end,n=(t?1:0)|(e?2:0);u.slideePosState!==n&&(u.slideePosState=n,l.is("button,input")&&l.prop("disabled",t),St.is("button,input")&&St.prop("disabled",e),l.add(_t)[t?"addClass":"removeClass"](g.disabledClass),St.add(i)[e?"addClass":"removeClass"](g.disabledClass)),u.fwdbwdState!==n&&h.released&&(u.fwdbwdState=n,_t.is("button,input")&&_t.prop("disabled",t),i.is("button,input"))&&i.prop("disabled",e),A&&null!=O.activeItem&&(n=0===O.activeItem,t=O.activeItem>=R.length-1,u.itemsButtonState!==(e=(n?1:0)|(t?2:0)))&&(u.itemsButtonState=e,o.is("button,input")&&o.prop("disabled",n),r.is("button,input")&&r.prop("disabled",t),o[n?"addClass":"removeClass"](g.disabledClass),r[t?"addClass":"removeClass"](g.disabledClass))}function Q(t,e,n){var i,o,r;t=W(t),e=W(e),!(-1<t&&-1<e&&t!==e)||n&&e===t-1||!n&&e===t+1||(I.eq(t)[n?"insertAfter":"insertBefore"](R[e].el),i=t<e?t:n?e:e-1,o=e<t?t:n?e+1:e,r=e<t,null!=O.activeItem&&(t===O.activeItem?u.active=O.activeItem=n?r?e+1:e:r?e:e-1:O.activeItem>i&&O.activeItem<o&&(u.active=O.activeItem+=r?1:-1)),L())}function X(t,e){for(var n=0,i=d[t].length;n<i;n++)if(d[t][n]===e)return n;return-1}function Z(){h.released&&!m.isPaused&&m.resume()}function K(t){return Kt(Ht(t,k.start,k.end)/k.end*(S.end-S.start))+S.start}function J(){h.history[0]=h.history[1],h.history[1]=h.history[2],h.history[2]=h.history[3],h.history[3]=h.delta}function tt(t){h.released=0,h.source=t,h.slidee="slidee"===t}function et(t){var e="touchstart"===t.type,n=t.data.source,i="slidee"===n;h.init||!e&&ot(t.target)||("handle"!==n||g.dragHandle&&k.start!==k.end)&&(!i||(e?g.touchDragging:g.mouseDragging&&t.which<2))&&(e||It(t),tt(n),h.init=0,h.$source=Et(t.target),h.touch=e,h.pointer=e?t.originalEvent.touches[0]:t,h.initX=h.pointer.pageX,h.initY=h.pointer.pageY,h.initPos=(i?S:k).cur,h.start=+new Date,h.time=0,h.path=0,h.delta=0,h.locked=0,h.history=[0,0,0,0],h.pathToLock=i?e?30:10:0,Bt.on(e?Ut:Wt,nt),m.pause(1),(i?b:D).addClass(g.draggedClass),f("moveStart"),i)&&(Dt=setInterval(J,10))}function nt(t){if(h.released="mouseup"===t.type||"touchend"===t.type,h.pointer=h.touch?t.originalEvent[h.released?"changedTouches":"touches"][0]:t,h.pathX=h.pointer.pageX-h.initX,h.pathY=h.pointer.pageY-h.initY,h.path=ie(Zt(h.pathX,2)+Zt(h.pathY,2)),h.delta=g.horizontal?h.pathX:h.pathY,h.released||!(h.path<1)){if(!h.init){if(h.path<g.dragThreshold)return h.released?it():kt;if(!(g.horizontal?Xt(h.pathX)>Xt(h.pathY):Xt(h.pathX)<Xt(h.pathY)))return it();h.init=1}It(t),!h.locked&&h.path>h.pathToLock&&h.slidee&&(h.locked=1,h.$source.on(qt,Rt)),h.released&&(it(),g.releaseSwing)&&h.slidee&&(h.swing=(h.delta-h.history[0])/40*300,h.delta+=h.swing,h.tweese=10<Xt(h.swing)),a(h.slidee?Kt(h.initPos-h.delta):K(h.initPos+h.delta))}}function it(){clearInterval(Dt),h.released=!0,Bt.off(h.touch?Ut:Wt,nt),(h.slidee?b:D).removeClass(g.draggedClass),setTimeout(function(){h.$source.off(qt,Rt)}),S.cur===S.dest&&h.init&&f("moveEnd"),m.resume(1),h.init=0}function ot(t){return~Et.inArray(t.nodeName,ne)||Et(t).is(g.interactive)}function rt(){m.stop(),Bt.off("mouseup",rt)}function st(t){switch(It(t),this){case i[0]:case _t[0]:m.moveBy(i.is(this)?g.moveBy:-g.moveBy),Bt.on("mouseup",rt);break;case o[0]:m.prev();break;case r[0]:m.next();break;case l[0]:m.prevPage();break;case St[0]:m.nextPage()}}function at(t){t.originalEvent.sly=m;var e=+new Date;te+g.scrollHijack>e&&bt[0]!==document&&bt[0]!==window?te=e:g.scrollBy&&S.start!==S.end&&(e=t.originalEvent,p.curDelta=(g.horizontal?e.deltaY||e.deltaX:e.deltaY)||-e.wheelDelta,p.curDelta/=1===e.deltaMode?3:100,e=A?(Lt=+new Date,p.last<Lt-p.resetTime&&(p.delta=0),p.last=Lt,p.delta+=p.curDelta,Xt(p.delta)<1?p.finalDelta=0:(p.finalDelta=Kt(+p.delta),p.delta%=1),p.finalDelta):p.curDelta,(g.scrollTrap||0<e&&S.dest<S.end||e<0&&S.dest>S.start)&&It(t,1),m.slideBy(g.scrollBy*e))}function lt(t){g.clickBar&&t.target===T[0]&&(It(t),a(K((g.horizontal?t.pageX-T.offset().left:t.pageY-T.offset().top)-E/2)))}function dt(t){if(g.keyboardNavBy)switch(t.which){case g.horizontal?37:38:It(t),m["pages"===g.keyboardNavBy?"prevPage":"prev"]();break;case g.horizontal?39:40:It(t),m["pages"===g.keyboardNavBy?"nextPage":"next"]()}}function ut(t){return ot(this)?void(t.originalEvent.slyignore=!0):void(this.parentNode!==b[0]||t.originalEvent.slyignore||m.activate(this))}function ct(){this.parentNode===x[0]&&m.activatePage(ft.index(this))}function ht(t){g.pauseOnHover&&m["mouseenter"===t.type?"pause":"resume"](2)}function f(t,e){if(d[t]){for(pt=d[t].length,n=Qt.length=0;n<pt;n++)Qt.push(d[t][n]);for(n=0;n<pt;n++)Qt[n].call(m,t,e)}}if(!(this instanceof xt))return new xt(s,t,N);var n,pt,g=Et.extend({},xt.defaults,t),m=this,v=Ot(s),y=Et(s),b=(g.slidee?Et(g.slidee):y.children()).eq(0),w=0,_=0,S={start:0,center:0,end:0,cur:0,dest:0},T=Et(g.scrollBar).eq(0),D=T.children().eq(0),C=0,E=0,k={start:0,end:0,cur:0},x=Et(g.pagesBar),ft=0,M=[],I=0,R=[],O={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},gt=new At(y[0]),mt=new At(b[0]),vt=new At(T[0]),yt=new At(D[0]),t="basic"===g.itemNav,P="forceCentered"===g.itemNav,H="centered"===g.itemNav||P,A=!v&&(t||H||P),bt=g.scrollSource?Et(g.scrollSource):y,wt=g.dragSource?Et(g.dragSource):y,i=Et(g.forward),_t=Et(g.backward),o=Et(g.prev),r=Et(g.next),l=Et(g.prevPage),St=Et(g.nextPage),d={},u={},c={},e={},h={released:1},p={last:0,delta:0,resetTime:200},Tt=0,Dt=0,F=0,Ct=0;v||(s=y[0]),m.initialized=0,m.frame=s,m.slidee=b[0],m.pos=S,m.rel=O,m.items=R,m.pages=M,m.isPaused=0,m.options=g,m.dragging=h,m.reload=function(){L()},m.getPos=function(t){var e;return A?-1!==(e=$(t))&&R[e]:!!(e=b.find(t).eq(0))[0]&&(t=g.horizontal?e.offset().left-b.offset().left:e.offset().top-b.offset().top,e=e[g.horizontal?"outerWidth":"outerHeight"](),{start:t,center:t-w/2+e/2,end:t-w+e,size:e})},m.moveBy=function(t){e.speed=t,!h.init&&e.speed&&S.cur!==(0<e.speed?S.end:S.start)&&(e.lastTime=+new Date,e.startPos=S.cur,tt("button"),h.init=1,f("moveStart"),jt(Ct),Y())},m.stop=function(){"button"===h.source&&(h.init=0,h.released=1)},m.prev=function(){m.activate(null==O.activeItem?0:O.activeItem-1)},m.next=function(){m.activate(null==O.activeItem?0:O.activeItem+1)},m.prevPage=function(){m.activatePage(O.activePage-1)},m.nextPage=function(){m.activatePage(O.activePage+1)},m.slideBy=function(t,e){t&&(A?m[H?"toCenter":"toStart"](Ht((H?O.centerItem:O.firstItem)+g.scrollBy*t,0,R.length)):a(S.dest+t,e))},m.slideTo=function(t,e){a(t,e)},m.toStart=function(t,e){B("start",t,e)},m.toEnd=function(t,e){B("end",t,e)},m.toCenter=function(t,e){B("center",t,e)},m.getIndex=$,m.activate=function(t,e){t=U(t);g.smart&&!1!==t&&(H?m.toCenter(t,e):t>=O.lastItem?m.toStart(t,e):t<=O.firstItem?m.toEnd(t,e):Z())},m.activatePage=function(t,e){Ot(t)&&a(M[Ht(t,0,M.length-1)],e)},m.resume=function(t){g.cycleBy&&g.cycleInterval&&("items"!==g.cycleBy||R[0]&&null!=O.activeItem)&&!(t<m.isPaused)&&(m.isPaused=0,F?F=clearTimeout(F):f("resume"),F=setTimeout(function(){switch(f("cycle"),g.cycleBy){case"items":m.activate(O.activeItem>=R.length-1?0:O.activeItem+1);break;case"pages":m.activatePage(O.activePage>=M.length-1?0:O.activePage+1)}},g.cycleInterval))},m.pause=function(t){t<m.isPaused||(m.isPaused=t||100,F&&(F=clearTimeout(F),f("pause")))},m.toggle=function(){m[F?"pause":"resume"]()},m.set=function(t,e){Et.isPlainObject(t)?Et.extend(g,t):g.hasOwnProperty(t)&&(g[t]=e)},m.add=function(t,e){t=Et(t);A?(null==e||!R[0]||e>=R.length?t.appendTo(b):R.length&&t.insertBefore(R[e].el),null!=O.activeItem&&e<=O.activeItem&&(u.active=O.activeItem+=t.length)):b.append(t),L()},m.remove=function(t){var e,n;A?-1<(e=W(t))&&(I.eq(e).remove(),n=e===O.activeItem,null!=O.activeItem&&e<O.activeItem&&(u.active=--O.activeItem),L(),n)&&(u.active=null,m.activate(O.activeItem)):(Et(t).remove(),L())},m.moveAfter=function(t,e){Q(t,e,1)},m.moveBefore=function(t,e){Q(t,e)},m.on=function(t,e){if("object"===Mt(t))for(var n in t)t.hasOwnProperty(n)&&m.on(n,t[n]);else if("function"===Mt(e))for(var i=t.split(" "),o=0,r=i.length;o<r;o++)d[i[o]]=d[i[o]]||[],-1===X(i[o],e)&&d[i[o]].push(e);else if("array"===Mt(e))for(var s=0,a=e.length;s<a;s++)m.on(t,e[s])},m.one=function(e,n){m.on(e,function t(){n.apply(m,arguments),m.off(e,t)})},m.off=function(t,e){if(e instanceof Array)for(var n=0,i=e.length;n<i;n++)m.off(t,e[n]);else for(var o=t.split(" "),r=0,s=o.length;r<s;r++){var a;d[o[r]]=d[o[r]]||[],null==e?d[o[r]].length=0:-1!==(a=X(o[r],e))&&d[o[r]].splice(a,1)}},m.destroy=function(){return xt.removeInstance(s),bt.add(D).add(T).add(x).add(i).add(_t).add(o).add(r).add(l).add(St).off(".sly"),Bt.off("keydown",dt),o.add(r).add(l).add(St).removeClass(g.disabledClass),I&&null!=O.activeItem&&I.eq(O.activeItem).removeClass(g.activeClass),x.empty(),v||(y.off(".sly"),gt.restore(),mt.restore(),vt.restore(),yt.restore(),Et.removeData(s,zt)),R.length=M.length=0,u={},m.initialized=0,m},m.init=function(){if(!m.initialized){if(xt.getInstance(s))throw new Error("There is already a Sly instance on this element");xt.storeInstance(s,m),m.on(N);var t=["overflow","position"],e=["position","webkitTransform","msTransform","transform","left","top","width","height"],t=(gt.save.apply(gt,t),vt.save.apply(vt,t),mt.save.apply(mt,e),yt.save.apply(yt,e),D);return v||(t=t.add(b),y.css("overflow","hidden"),Ft)||"static"!==y.css("position")||y.css("position","relative"),Ft?Nt&&t.css(Ft,Nt):("static"===T.css("position")&&T.css("position","relative"),t.css({position:"absolute"})),g.forward&&i.on(Gt,st),g.backward&&_t.on(Gt,st),g.prev&&o.on(qt,st),g.next&&r.on(qt,st),g.prevPage&&l.on(qt,st),g.nextPage&&St.on(qt,st),bt.on(Vt,at),T[0]&&T.on(qt,lt),A&&g.activateOn&&y.on(g.activateOn+"."+zt,"*",ut),x[0]&&g.activatePageOn&&x.on(g.activatePageOn+"."+zt,"*",ct),wt.on($t,{source:"slidee"},et),D&&D.on($t,{source:"handle"},et),Bt.on("keydown",dt),v||(y.on("mouseenter.sly mouseleave.sly",ht),y.on("scroll.sly",ee)),m.initialized=1,L(!0),g.cycleBy&&!v&&m[g.startPaused?"pause":"resume"](),m}}}function Mt(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof t}function It(t,e){t.preventDefault(),e&&t.stopPropagation()}function Rt(t){It(t,1),Et(this).off(t.type,Rt)}function ee(){this.scrollLeft=0,this.scrollTop=0}function Ot(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Pt(t,e){return 0|Kt(String(t.css(e)).replace(/[^\-0-9.]/g,""))}function Ht(t,e,n){return t<e?e:n<t?n:t}function At(e){var n={style:{},save:function(){if(e&&e.nodeType){for(var t=0;t<arguments.length;t++)n.style[arguments[t]]=e.style[arguments[t]];return n}},restore:function(){if(e&&e.nodeType){for(var t in n.style)n.style.hasOwnProperty(t)&&(e.style[t]=n.style[t]);return n}}};return n}var Ft,Nt,Lt,o,r,e,i,n,zt="sly",jt=t.cancelAnimationFrame||t.cancelRequestAnimationFrame,Yt=t.requestAnimationFrame,Bt=Et(document),$t="touchstart.sly mousedown.sly",Wt="mousemove.sly mouseup.sly",Ut="touchmove.sly touchend.sly",Vt=(document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+zt,qt="click.sly",Gt="mousedown.sly",ne=["INPUT","SELECT","BUTTON","TEXTAREA"],Qt=[],Xt=Math.abs,ie=Math.sqrt,Zt=Math.pow,Kt=Math.round,oe=Math.max,Jt=Math.min,te=0;function s(t){for(var e=0,n=o.length;e<n;e++){var i=o[e]?o[e]+t.charAt(0).toUpperCase()+t.slice(1):t;if(null!=r.style[i])return i}}Bt.on(Vt,function(t){var t=t.originalEvent.sly,e=+new Date;(!t||t.options.scrollHijack<e-te)&&(te=e)}),xt.getInstance=function(t){return Et.data(t,zt)},xt.storeInstance=function(t,e){return Et.data(t,zt,e)},xt.removeInstance=function(t){return Et.removeData(t,zt)},e=window,Yt=e.requestAnimationFrame||e.webkitRequestAnimationFrame||function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-i)),t=setTimeout(t,n);return i=e,t},i=(new Date).getTime(),n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout,jt=function(t){n.call(e,t)},o=["","Webkit","Moz","ms","O"],r=document.createElement("div"),Ft=s("transform"),Nt=s("perspective")?"translateZ(0) ":"",t.Sly=xt,Et.fn.sly=function(i,o){var r,s;return Et.isPlainObject(i)||("string"!==Mt(i)&&!1!==i||(r=!1===i?"destroy":i,s=Array.prototype.slice.call(arguments,1)),i={}),this.each(function(t,e){var n=xt.getInstance(e);n||r?n&&r&&n[r]&&n[r].apply(n,s):new xt(e,i,o).init()})},xt.defaults={slidee:null,horizontal:!1,itemNav:null,itemSelector:null,smart:!1,activateOn:null,activateMiddle:!1,scrollSource:null,scrollBy:0,scrollHijack:300,scrollTrap:!1,dragSource:null,mouseDragging:!1,touchDragging:!1,releaseSwing:!1,swingSpeed:.2,elasticBounds:!1,dragThreshold:3,interactive:null,scrollBar:null,dragHandle:!1,dynamicHandle:!1,minHandleSize:50,clickBar:!1,syncSpeed:.5,pagesBar:null,activatePageOn:null,pageBuilder:function(t){return"<li>"+(t+1)+"</li>"},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"}}(jQuery,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(I){"use strict";var g={},R=(g.fileapi=void 0!==I("<input type='file'/>").get(0).files,g.formdata=void 0!==window.FormData,!!I.fn.prop);function n(t){var e=t.data;t.isDefaultPrevented()||(t.preventDefault(),I(t.target).ajaxSubmit(e))}function i(t){var e=t.target,n=I(e);if(!n.is("[type=submit],[type=image]")){var i=n.closest("[type=submit]");if(0===i.length)return;e=i[0]}var o=this;"image"==(o.clk=e).type&&(void 0!==t.offsetX?(o.clk_x=t.offsetX,o.clk_y=t.offsetY):"function"==typeof I.fn.offset?(i=n.offset(),o.clk_x=t.pageX-i.left,o.clk_y=t.pageY-i.top):(o.clk_x=t.pageX-e.offsetLeft,o.clk_y=t.pageY-e.offsetTop)),setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function O(){var t;I.fn.ajaxSubmit.debug&&(t="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t))}I.fn.attr2=function(){var t;return R&&((t=this.prop.apply(this,arguments))&&t.jquery||"string"==typeof t)?t:this.attr.apply(this,arguments)},I.fn.ajaxSubmit=function(l){if(this.length){var k,x=this,t=("function"==typeof l?l={success:l}:void 0===l&&(l={}),k=l.type||this.attr2("method"),t=(t=(t="string"==typeof(t=l.url||this.attr2("action"))?I.trim(t):"")||window.location.href||"")&&(t.match(/^([^#]+)/)||[])[1],l=I.extend(!0,{url:t,success:I.ajaxSettings.success,type:k||I.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},l),{});if(this.trigger("form-pre-serialize",[this,l,t]),t.veto)O("ajaxSubmit: submit vetoed via form-pre-serialize trigger");else if(l.beforeSerialize&&!1===l.beforeSerialize(this,l))O("ajaxSubmit: submit aborted via beforeSerialize callback");else{var e=l.traditional,M=(void 0===e&&(e=I.ajaxSettings.traditional),[]),n=this.formToArray(l.semantic,M);if(l.data&&(l.extraData=l.data,d=I.param(l.data,e)),l.beforeSubmit&&!1===l.beforeSubmit(n,this,l))O("ajaxSubmit: submit aborted via beforeSubmit callback");else if(this.trigger("form-submit-validate",[n,this,l,t]),t.veto)O("ajaxSubmit: submit vetoed via form-submit-validate trigger");else{var i,o,r,t=I.param(n,e),s=(d&&(t=t?t+"&"+d:d),"GET"==l.type.toUpperCase()?(l.url+=(0<=l.url.indexOf("?")?"&":"?")+t,l.data=null):l.data=t,[]);l.resetForm&&s.push(function(){x.resetForm()}),l.clearForm&&s.push(function(){x.clearForm(l.includeHidden)}),!l.dataType&&l.target?(i=l.success||function(){},s.push(function(t){var e=l.replaceTarget?"replaceWith":"html";I(l.target)[e](t).each(i,arguments)})):l.success&&s.push(l.success),l.success=function(t,e,n){for(var i=l.context||this,o=0,r=s.length;o<r;o++)s[o].apply(i,[t,e,n||x,x])},l.error&&(o=l.error,l.error=function(t,e,n){var i=l.context||this;o.apply(i,[t,e,n,x])}),l.complete&&(r=l.complete,l.complete=function(t,e){var n=l.context||this;r.apply(n,[t,e,x])});var a,e=0<I("input[type=file]:enabled",this).filter(function(){return""!==I(this).val()}).length,d="multipart/form-data",t=x.attr("enctype")==d||x.attr("encoding")==d,d=g.fileapi&&g.formdata;O("fileAPI :"+d),!1!==l.iframe&&(l.iframe||(e||t)&&!d)?l.closeKeepAlive?I.get(l.closeKeepAlive,function(){a=c(n)}):a=c(n):a=(e||t)&&d?function(t){for(var n=new FormData,e=0;e<t.length;e++)n.append(t[e].name,t[e].value);if(l.extraData){var i=function(t){var e,n,i=I.param(t,l.traditional).split("&"),o=i.length,r=[];for(e=0;e<o;e++)i[e]=i[e].replace(/\+/g," "),n=i[e].split("="),r.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return r}(l.extraData);for(e=0;e<i.length;e++)i[e]&&n.append(i[e][0],i[e][1])}l.data=null;var o=I.extend(!0,{},I.ajaxSettings,l,{contentType:!1,processData:!1,cache:!1,type:k||"POST"});l.uploadProgress&&(o.xhr=function(){var t=I.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(t){var e=0,n=t.loaded||t.position,i=t.total;t.lengthComputable&&(e=Math.ceil(n/i*100)),l.uploadProgress(t,n,i,e)},!1),t});o.data=null;var r=o.beforeSend;return o.beforeSend=function(t,e){l.formData?e.data=l.formData:e.data=n,r&&r.call(this,t,e)},I.ajax(o)}(n):I.ajax(l),x.removeData("jqxhr").data("jqxhr",a);for(var u=0;u<M.length;u++)M[u]=null;this.trigger("form-submit-notify",[this,l])}}}else O("ajaxSubmit: skipping submit process - no element selected");return this;function c(t){var e,n,d,u,o,c,h,p,f,g,m,v,i,y,b,w,_,S,r,T,s=x[0],D=I.Deferred();if(D.abort=function(t){p.abort(t)},t)for(n=0;n<M.length;n++)e=I(M[n]),R?e.prop("disabled",!1):e.removeAttr("disabled");return(d=I.extend(!0,{},I.ajaxSettings,l)).context=d.context||d,o="jqFormIO"+(new Date).getTime(),d.iframeTarget?(i=(c=I(d.iframeTarget)).attr2("name"))?o=i:c.attr2("name",o):(c=I('<iframe name="'+o+'" src="'+d.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),h=c[0],p={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var e="timeout"===t?"timeout":"aborted";O("aborting upload... "+e),this.aborted=1;try{h.contentWindow.document.execCommand&&h.contentWindow.document.execCommand("Stop")}catch(t){}c.attr("src",d.iframeSrc),p.error=e,d.error&&d.error.call(d.context,p,e,t),u&&I.event.trigger("ajaxError",[p,d,e]),d.complete&&d.complete.call(d.context,p,e)}},(u=d.global)&&0==I.active++&&I.event.trigger("ajaxStart"),u&&I.event.trigger("ajaxSend",[p,d]),d.beforeSend&&!1===d.beforeSend.call(d.context,p,d)?(d.global&&I.active--,D.reject()):p.aborted?D.reject():((t=s.clk)&&(i=t.name)&&!t.disabled&&(d.extraData=d.extraData||{},d.extraData[i]=t.value,"image"==t.type)&&(d.extraData[i+".x"]=s.clk_x,d.extraData[i+".y"]=s.clk_y),m=1,v=2,t=I("meta[name=csrf-token]").attr("content"),(i=I("meta[name=csrf-param]").attr("content"))&&t&&(d.extraData=d.extraData||{},d.extraData[i]=t),d.forceSync?a():setTimeout(a,10),w=50,S=I.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},r=I.parseJSON||function(t){return window.eval("("+t+")")},T=function(t,e,n){var i=t.getResponseHeader("content-type")||"",o="xml"===e||!e&&0<=i.indexOf("xml"),t=o?t.responseXML:t.responseText;return o&&"parsererror"===t.documentElement.nodeName&&I.error&&I.error("parsererror"),"string"==typeof(t=n&&n.dataFilter?n.dataFilter(t,e):t)&&("json"===e||!e&&0<=i.indexOf("json")?t=r(t):("script"===e||!e&&0<=i.indexOf("javascript"))&&I.globalEval(t)),t}),D;function C(e){var n=null;try{e.contentWindow&&(n=e.contentWindow.document)}catch(t){O("cannot get iframe.contentWindow document: "+t)}if(!n)try{n=e.contentDocument||e.document}catch(t){O("cannot get iframe.contentDocument: "+t),n=e.document}return n}function a(){var t=x.attr2("target"),e=x.attr2("action");s.setAttribute("target",o),k&&!/post/i.test(k)||s.setAttribute("method","POST"),e!=d.url&&s.setAttribute("action",d.url),d.skipEncodingOverride||k&&!/post/i.test(k)||x.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),d.timeout&&(g=setTimeout(function(){f=!0,E(m)},d.timeout));var n=[];try{if(d.extraData)for(var i in d.extraData)d.extraData.hasOwnProperty(i)&&(I.isPlainObject(d.extraData[i])&&d.extraData[i].hasOwnProperty("name")&&d.extraData[i].hasOwnProperty("value")?n.push(I('<input type="hidden" name="'+d.extraData[i].name+'">').val(d.extraData[i].value).appendTo(s)[0]):n.push(I('<input type="hidden" name="'+i+'">').val(d.extraData[i]).appendTo(s)[0]));d.iframeTarget||c.appendTo("body"),h.attachEvent?h.attachEvent("onload",E):h.addEventListener("load",E,!1),setTimeout(function t(){try{var e=C(h).readyState;O("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(t){O("Server abort: ",t," (",t.name,")"),E(v),g&&clearTimeout(g),g=void 0}},15);try{s.submit()}catch(t){document.createElement("form").submit.apply(s)}}finally{s.setAttribute("action",e),t?s.setAttribute("target",t):x.removeAttr("target"),I(n).remove()}}function E(e){if(!p.aborted&&!_)if((b=C(h))||(O("cannot access response document"),e=v),e===m&&p)p.abort("timeout"),D.reject(p,"timeout");else if(e==v&&p)p.abort("server abort"),D.reject(p,"error","server abort");else if(b&&b.location.href!=d.iframeSrc||f){h.detachEvent?h.detachEvent("onload",E):h.removeEventListener("load",E,!1);var n,e="success";try{if(f)throw"timeout";var t="xml"==d.dataType||b.XMLDocument||I.isXMLDoc(b);if(O("isXml="+t),!t&&window.opera&&(null===b.body||!b.body.innerHTML)&&--w)return O("requeing onLoad callback, DOM not available"),void setTimeout(E,250);var i,o,r,s=b.body||b.documentElement,a=(p.responseText=s?s.innerHTML:null,p.responseXML=b.XMLDocument||b,t&&(d.dataType="xml"),p.getResponseHeader=function(t){return{"content-type":d.dataType}[t.toLowerCase()]},s&&(p.status=Number(s.getAttribute("status"))||p.status,p.statusText=s.getAttribute("statusText")||p.statusText),(d.dataType||"").toLowerCase()),l=/(json|script|text)/.test(a);l||d.textarea?(i=b.getElementsByTagName("textarea")[0])?(p.responseText=i.value,p.status=Number(i.getAttribute("status"))||p.status,p.statusText=i.getAttribute("statusText")||p.statusText):l&&(o=b.getElementsByTagName("pre")[0],r=b.getElementsByTagName("body")[0],o?p.responseText=o.textContent||o.innerText:r&&(p.responseText=r.textContent||r.innerText)):"xml"==a&&!p.responseXML&&p.responseText&&(p.responseXML=S(p.responseText));try{y=T(p,a,d)}catch(t){e="parsererror",p.error=n=t||e}}catch(t){O("error caught: ",t),e="error",p.error=n=t||e}p.aborted&&(O("upload aborted"),e=null),"success"===(e=p.status?200<=p.status&&p.status<300||304===p.status?"success":"error":e)?(d.success&&d.success.call(d.context,y,"success",p),D.resolve(p.responseText,"success",p),u&&I.event.trigger("ajaxSuccess",[p,d])):e&&(void 0===n&&(n=p.statusText),d.error&&d.error.call(d.context,p,e,n),D.reject(p,"error",n),u)&&I.event.trigger("ajaxError",[p,d,n]),u&&I.event.trigger("ajaxComplete",[p,d]),u&&!--I.active&&I.event.trigger("ajaxStop"),d.complete&&d.complete.call(d.context,p,e),_=!0,d.timeout&&clearTimeout(g),setTimeout(function(){d.iframeTarget?c.attr("src",d.iframeSrc):c.remove(),p.responseXML=null},100)}}}},I.fn.ajaxForm=function(t){var e;return(t=t||{}).delegation=t.delegation&&I.isFunction(I.fn.on),t.delegation||0!==this.length?t.delegation?(I(document).off("submit.form-plugin",this.selector,n).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,t,n).on("click.form-plugin",this.selector,t,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",t,n).bind("click.form-plugin",t,i):(e={s:this.selector,c:this.context},!I.isReady&&e.s?(O("DOM not ready, queuing ajaxForm"),I(function(){I(e.s,e.c).ajaxForm(t)})):O("terminating; zero elements found by selector"+(I.isReady?"":" (DOM not ready)")),this)},I.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},I.fn.formToArray=function(t,e){var n=[];if(0!==this.length){var i=this[0],o=t?i.getElementsByTagName("*"):i.elements;if(o){for(var r,s,a,l,d,u,c,h=0,p=o.length;h<p;h++)if((c=(a=o[h]).name)&&!a.disabled)if(t&&i.clk&&"image"==a.type)i.clk==a&&(n.push({name:c,value:I(a).val(),type:a.type}),n.push({name:c+".x",value:i.clk_x},{name:c+".y",value:i.clk_y}));else if((s=I.fieldValue(a,!0))&&s.constructor==Array)for(e&&e.push(a),r=0,l=s.length;r<l;r++)n.push({name:c,value:s[r]});else if(g.fileapi&&"file"==a.type){e&&e.push(a);var f=a.files;if(f.length)for(r=0;r<f.length;r++)n.push({name:c,value:f[r],type:a.type});else n.push({name:c,value:"",type:a.type})}else null!=s&&(e&&e.push(a),n.push({name:c,value:s,type:a.type,required:a.required}));!t&&i.clk&&(c=(u=(d=I(i.clk))[0]).name)&&!u.disabled&&"image"==u.type&&(n.push({name:c,value:d.val()}),n.push({name:c+".x",value:i.clk_x},{name:c+".y",value:i.clk_y}))}}return n},I.fn.formSerialize=function(t){return I.param(this.formToArray(t))},I.fn.fieldSerialize=function(o){var r=[];return this.each(function(){var t=this.name;if(t){var e=I.fieldValue(this,o);if(e&&e.constructor==Array)for(var n=0,i=e.length;n<i;n++)r.push({name:t,value:e[n]});else null!=e&&r.push({name:this.name,value:e})}}),I.param(r)},I.fn.fieldValue=function(t){for(var e=[],n=0,i=this.length;n<i;n++){var o=this[n],o=I.fieldValue(o,t);null==o||o.constructor==Array&&!o.length||(o.constructor==Array?I.merge(e,o):e.push(o))}return e},I.fieldValue=function(t,e){var n=t.name,i=t.type,o=t.tagName.toLowerCase();if((e=void 0===e?!0:e)&&(!n||t.disabled||"reset"==i||"button"==i||("checkbox"==i||"radio"==i)&&!t.checked||("submit"==i||"image"==i)&&t.form&&t.form.clk!=t||"select"==o&&-1==t.selectedIndex))return null;if("select"!=o)return I(t).val();e=t.selectedIndex;if(e<0)return null;for(var r=[],s=t.options,a="select-one"==i,l=a?e+1:s.length,d=a?e:0;d<l;d++){var u=s[d];if(u.selected){var c=(c=u.value)||(u.attributes&&u.attributes.value&&!u.attributes.value.specified?u.text:u.value);if(a)return c;r.push(c)}}return r},I.fn.clearForm=function(t){return this.each(function(){I("input,select,textarea",this).clearFields(t)})},I.fn.clearFields=I.fn.clearInputs=function(n){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,e=this.tagName.toLowerCase();i.test(t)||"textarea"==e?this.value="":"checkbox"==t||"radio"==t?this.checked=!1:"select"==e?this.selectedIndex=-1:"file"==t?/MSIE/.test(navigator.userAgent)?I(this).replaceWith(I(this).clone(!0)):I(this).val(""):n&&(!0===n&&/hidden/.test(t)||"string"==typeof n&&I(this).is(n))&&(this.value="")})},I.fn.resetForm=function(){return this.each(function(){"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset()})},I.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},I.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var t=this.type;"checkbox"==t||"radio"==t?this.checked=e:"option"==this.tagName.toLowerCase()&&(t=I(this).parent("select"),e&&t[0]&&"select-one"==t[0].type&&t.find("option").selected(!1),this.selected=e)})},I.fn.ajaxSubmit.debug=!1}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.postscribe=e():t.postscribe=e()}(this,function(){return i=[function(t,e,n){"use strict";var n=n(1),n=(n=n)&&n.__esModule?n:{default:n};t.exports=n.default},function(t,e,n){"use strict";function a(){}function l(){var t,e=s.shift();e&&((t=o.last(e)).afterDequeue(),e.stream=function(t,e,i){function o(t){t=i.beforeWrite(t),p.write(t),i.afterWrite(t)}(p=new c.default(t,i)).id=h++,p.name=i.name||p.id,d.streams[p.name]=p;var n=t.ownerDocument,r={close:n.close,open:n.open,write:n.write,writeln:n.writeln},s=(u(n,{close:a,open:a,write:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o(e.join("")+"\n")}}),p.win.onerror||a);return p.win.onerror=function(t,e,n){i.error({msg:t+" - "+e+": "+n}),s.apply(p.win,[t,e,n])},p.write(e,function(){u(n,r),p.win.onerror=s,i.done(),p=null,l()}),p}.apply(void 0,e),t.afterStreamStart())}function d(t,e,n){if(o.isFunction(n))n={done:n};else if("clear"===n)return s=[],p=null,void(h=0);n=o.defaults(n,r);var i=[t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t,e,n];return t.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=a}},n.beforeEnqueue(i),s.push(i),p||l(),t.postscribe}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},e=(e.default=d,n(2)),c=(e=e)&&e.__esModule?e:{default:e},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(4)),r={afterAsync:a,afterDequeue:a,afterStreamStart:a,afterWrite:a,autoFix:!0,beforeEnqueue:a,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:a,error:function(t){throw new Error(t.msg)},releaseAsync:!1},h=0,s=[],p=null;u(d,{streams:{},queue:s,WriteStream:c.default})},function(t,e,n){"use strict";function i(t,e){t=t.getAttribute(u+e);return l.existy(t)?String(t):t}function o(t,e,n){n=2<arguments.length&&void 0!==n?n:null,e=u+e;l.existy(n)&&""!==n?t.setAttribute(e,n):t.removeAttribute(e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=n(3),s=(r=r)&&r.__esModule?r:{default:r},l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(4)),u="data-ps-",c="ps-style",h="ps-script";function d(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this,i=d;if(!(n instanceof i))throw new TypeError("Cannot call a class as a function");this.root=t,this.options=e,this.doc=t.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new s.default("",{autoFix:e.autoFix}),this.actuals=[t],this.proxyHistory="",this.proxyRoot=this.doc.createElement(t.nodeName),this.scriptStack=[],this.writeQueue=[],o(this.proxyRoot,"proxyof",0)}d.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();l.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},d.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},d.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,n=void 0,i=void 0,o=[];(e=this.parser.readToken())&&!(n=l.isScript(e))&&!(i=l.isStyle(e));)(e=this.options.beforeWriteToken(e))&&o.push(e);0<o.length&&this._writeStaticTokens(o),n&&this._handleScriptToken(e),i&&this._handleStyleToken(e)},d.prototype._writeStaticTokens=function(t){t=this._buildChunk(t);return t.actual?(t.html=this.proxyHistory+t.actual,this.proxyHistory+=t.proxy,this.proxyRoot.innerHTML=t.html,this._walkChunk(),t):null},d.prototype._buildChunk=function(t){for(var e=this.actuals.length,n=[],i=[],o=[],r=t.length,s=0;s<r;s++){var a,l=t[s],d=l.toString();n.push(d),l.attrs?/^noscript$/i.test(l.tagName)||(a=e++,i.push(d.replace(/(\/?>)/," "+u+"id="+a+" $1")),l.attrs.id!==h&&l.attrs.id!==c&&o.push("atomicTag"===l.type?"":"<"+l.tagName+" "+u+"proxyof="+a+(l.unary?" />":">"))):(i.push(d),o.push("endTag"===l.type?d:""))}return{tokens:t,raw:n.join(""),actual:i.join(""),proxy:o.join("")}},d.prototype._walkChunk=function(){for(var t,e=[this.proxyRoot];l.existy(t=e.shift());){var n=1===t.nodeType;!(n&&i(t,"proxyof"))&&(n&&o(this.actuals[i(t,"id")]=t,"id"),n=t.parentNode&&i(t.parentNode,"proxyof"))&&this.actuals[n].appendChild(t),e.unshift.apply(e,l.toArray(t.childNodes))}},d.prototype._handleScriptToken=function(t){var e=this,n=this.parser.clear();n&&this.writeQueue.unshift(n),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},d.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",(t=this.options.beforeWriteToken(t))&&this._writeStyleToken(t),e&&this.write()},d.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,c),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},d.prototype._buildStyle=function(t){var n=this.doc.createElement(t.tagName);return n.setAttribute("type",t.type),l.eachKey(t.attrs,function(t,e){n.setAttribute(t,e)}),n},d.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');e=this.doc.getElementById(e);e&&e.parentNode.replaceChild(t,e)},d.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},d.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},d.prototype._writeScriptToken=function(t,e){var n=this._buildScript(t),i=this._shouldRelease(n),o=this.options.afterAsync;t.src&&(n.src=t.src,this._scriptLoadHandler(n,i?o:function(){e(),o()}));try{this._insertCursor(n,h),n.src&&!i||e()}catch(t){this.options.error(t),e()}},d.prototype._buildScript=function(t){var n=this.doc.createElement(t.tagName);return l.eachKey(t.attrs,function(t,e){n.setAttribute(t,e)}),t.content&&(n.text=t.content),n},d.prototype._scriptLoadHandler=function(e,n){function i(){e=e.onload=e.onreadystatechange=e.onerror=null}function t(){i(),null!=n&&n(),n=null}function o(t){i(),s(t),null!=n&&n(),n=null}function r(t,e){var n=t["on"+e];null!=n&&(t["_on"+e]=n)}var s=this.options.error;r(e,"load"),r(e,"error"),a(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){o({msg:"onload handler failed "+t+" @ "+e.src})}t()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(t){return void o({msg:"onerror handler failed "+t+" @ "+e.src})}o({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&t()}})},d.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},e.default=d},function(t,e,n){function i(t){var e;return(r[t]||(e=r[t]={exports:{},id:t,loaded:!1},o[t].call(e.exports,e,e.exports,i),e.loaded=!0,e)).exports}var o,r;t.exports=(o=[function(t,e,n){"use strict";var n=n(1),n=(n=n)&&n.__esModule?n:{default:n};t.exports=n.default},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var o,l=i(n(2)),r=i(n(3)),s=n(6),d=(s=s)&&s.__esModule?s:{default:s},a=n(5),u={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},c=(h.prototype.append=function(t){this.stream+=t},h.prototype.prepend=function(t){this.stream=t+this.stream},h.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},h.prototype._peekTokenImpl=function(){for(var t in u)if(u.hasOwnProperty(t)&&u[t].test(this.stream)){t=r[t](this.stream);if(t)return"startTag"===t.type&&/script|style/i.test(t.tagName)?null:(t.text=this.stream.substr(0,t.length),t)}},h.prototype.peekToken=function(){return this._peekToken()},h.prototype.readToken=function(){return this._readToken()},h.prototype.readTokens=function(t){for(var e;e=this.readToken();)if(t[e.type]&&!1===t[e.type](e))return},h.prototype.clear=function(){var t=this.stream;return this.stream="",t},h.prototype.rest=function(){return this.stream},h);function h(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=this,o=h;if(!(i instanceof o))throw new TypeError("Cannot call a class as a function");this.stream=e;var r,s=!1,a={};for(r in l)l.hasOwnProperty(r)&&(n.autoFix&&(a[r+"Fix"]=!0),s=s||a[r+"Fix"]);s?(this._readToken=(0,d.default)(this,a,function(){return t._readTokenImpl()}),this._peekToken=(0,d.default)(this,a,function(){return t._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}for(o in(e.default=c).tokenToString=function(t){return t.toString()},c.escapeAttributes=function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=(0,a.escapeQuotes)(t[e],null));return n},c.supports=l)l.hasOwnProperty(o)&&(c.browserHasFlaw=c.browserHasFlaw||!l[o]&&o)},function(t,e){"use strict";var n=!(e.__esModule=!0),i=!1,o=window.document.createElement("div");try{var r="<P><I></P></I>";o.innerHTML=r,e.tagSoup=n=o.innerHTML!==r}catch(t){e.tagSoup=n=!1}try{o.innerHTML="<P><i><P></P></i></P>",e.selfClose=i=2===o.childNodes.length}catch(t){e.selfClose=i=!1}o=null,e.tagSoup=n,e.selfClose=i},function(t,e,n){"use strict";function i(t){var n,i,o;if(-1!==t.indexOf(">")){t=t.match(a.startTag);if(t){n={},i={},o=t[2],t[2].replace(a.attr,function(t,e){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(n[arguments[5]]="",i[arguments[5]]=!0):n[e]=arguments[2]||arguments[3]||arguments[4]||a.fillAttr.test(e)&&e||"":n[e]="",o=o.replace(t,"")});t={v:new s.StartTagToken(t[1],t[0].length,n,i,!!t[3],o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))};if("object"===(void 0===t?"undefined":r(t)))return t.v}}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=(e.comment=function(t){var e=t.indexOf("--\x3e");if(0<=e)return new s.CommentToken(t.substr(4,e-1),e+3)},e.chars=function(t){var e=t.indexOf("<");return new s.CharsToken(0<=e?e:t.length)},e.startTag=i,e.atomicTag=function(t){var e=i(t);if(e){t=t.slice(e.length);if(t.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){t=t.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(t)return new s.AtomicTagToken(e.tagName,t[0].length+e.length,e.attrs,e.booleanAttrs,t[1])}}},e.endTag=function(t){if(t=t.match(a.endTag))return new s.EndTagToken(t[1],t[0].length)},n(4)),a={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,n){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var r=n(5),i=(e.Token=function t(e,n){s(this,t),this.type=e,this.length=n,this.text=""},e.CommentToken=(l.prototype.toString=function(){return"\x3c!--"+this.content},l),e.CharsToken=(o.prototype.toString=function(){return this.text},o),e.TagToken=(a.formatTag=function(t){var e,n,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o="<"+t.tagName;for(e in t.attrs)t.attrs.hasOwnProperty(e)&&(o+=" "+e,n=t.attrs[e],void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[e]||(o+='="'+(0,r.escapeQuotes)(n)+'"'));return t.rest&&(o+=" "+t.rest),o+=t.unary&&!t.html5Unary?"/>":">",null!=i&&(o+=i+"</"+t.tagName+">"),o},a));function a(t,e,n,i,o){s(this,a),this.type=t,this.length=n,this.text="",this.tagName=e,this.attrs=i,this.booleanAttrs=o,this.unary=!1,this.html5Unary=!1}function o(t){s(this,o),this.type="chars",this.length=t,this.text=""}function l(t,e){s(this,l),this.type="comment",this.length=e||(t?t.length:0),this.text="",this.content=t}function d(t,e){s(this,d),this.type="endTag",this.length=e,this.text="",this.tagName=t}function u(t,e,n,i,o){s(this,u),this.type="atomicTag",this.length=e,this.text="",this.tagName=t,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=o}function c(t,e,n,i,o,r){s(this,c),this.type="startTag",this.length=e,this.text="",this.tagName=t,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=o,this.rest=r}e.StartTagToken=(c.prototype.toString=function(){return i.formatTag(this)},c),e.AtomicTagToken=(u.prototype.toString=function(){return i.formatTag(this,this.content)},u),e.EndTagToken=(d.prototype.toString=function(){return"</"+this.tagName+">"},d)},function(t,e){"use strict";e.__esModule=!0,e.escapeQuotes=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}},function(t,e){"use strict";function l(t){return t&&"startTag"===t.type&&(t.unary=n.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function d(t,e){e=e.pop();t.prepend("</"+e.tagName+">")}e.__esModule=!0,e.default=function(i,n,o){function r(){var t,e,n;e=o,n=(t=i).stream,e=l(o()),t.stream=n,e&&a[e.type]&&a[e.type](e)}(t=[]).last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,n=0;e=this[n];n++)if(e.tagName===t)return!0;return!1};var t,s=t,a={startTag:function(t){var e=t.tagName;"TR"===e.toUpperCase()&&s.lastTagNameEq("TABLE")?(i.prepend("<TBODY>"),r()):n.selfCloseFix&&u.test(e)&&s.containsTagName(e)?s.lastTagNameEq(e)?d(i,s):(i.prepend("</"+t.tagName+">"),r()):t.unary||s.push(t)},endTag:function(t){s.last()?n.tagSoupFix&&!s.lastTagNameEq(t.tagName)?d(i,s):s.pop():n.tagSoupFix&&(o(),r())}};return function(){return r(),l(o())}};var n=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,u=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}],r={},i.m=o,i.c=r,i.p="",i(0))},function(t,e){"use strict";function i(t){return null!=t}function o(t,e,n){for(var i=void 0,o=t&&t.length||0,i=0;i<o;i++)e.call(n,t[i],i)}function r(t,e,n){for(var i in t)t.hasOwnProperty(i)&&e.call(n,i,t[i])}function n(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(e))}e.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.existy=i,e.isFunction=function(t){return"function"==typeof t},e.each=o,e.eachKey=r,e.defaults=function(n,t){return n=n||{},r(t,function(t,e){i(n[t])||(n[t]=e)}),n},e.toArray=function(e){try{return Array.prototype.slice.call(e)}catch(t){n=[],o(e,function(t){n.push(t)});e={v:n};if("object"===(void 0===e?"undefined":s(e)))return e.v}var n},e.last=function(t){return t[t.length-1]},e.isTag=n,e.isScript=function(t){return n(t,"script")},e.isStyle=function(t){return n(t,"style")}}],o={},n.m=i,n.c=o,n.p="",n(0);function n(t){var e;return(o[t]||(e=o[t]={exports:{},id:t,loaded:!1},i[t].call(e.exports,e,e.exports,n),e.loaded=!0,e)).exports}var i,o}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(d){"use strict";var i,s=window.Slick||{};i=0,(s=function(t,e){var n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:d(t),appendDots:d(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return d('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!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},n.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,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},d.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=d(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,t=d(t).data("slick")||{},n.options=d.extend({},n.defaults,e,t),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=d.proxy(n.autoPlay,n),n.autoPlayClear=d.proxy(n.autoPlayClear,n),n.autoPlayIterator=d.proxy(n.autoPlayIterator,n),n.changeSlide=d.proxy(n.changeSlide,n),n.clickHandler=d.proxy(n.clickHandler,n),n.selectHandler=d.proxy(n.selectHandler,n),n.setPosition=d.proxy(n.setPosition,n),n.swipeHandler=d.proxy(n.swipeHandler,n),n.dragHandler=d.proxy(n.dragHandler,n),n.keyHandler=d.proxy(n.keyHandler,n),n.instanceUid=i++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(t,e,n){var i=this;if("boolean"==typeof e)n=e,e=null;else if(e<0||e>=i.slideCount)return!1;i.unload(),"number"==typeof e?0===e&&0===i.$slides.length?d(t).appendTo(i.$slideTrack):n?d(t).insertBefore(i.$slides.eq(e)):d(t).insertAfter(i.$slides.eq(e)):!0===n?d(t).prependTo(i.$slideTrack):d(t).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(t,e){d(e).attr("data-slick-index",t)}),i.$slidesCache=i.$slides,i.reinit()},s.prototype.animateHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:t},e.options.speed))},s.prototype.animateSlide=function(t,e){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(t=-t),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,e):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,e):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),d({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(t){t=Math.ceil(t),!1===i.options.vertical?n[i.animType]="translate("+t+"px, 0px)":n[i.animType]="translate(0px,"+t+"px)",i.$slideTrack.css(n)},complete:function(){e&&e.call()}})):(i.applyTransition(),t=Math.ceil(t),!1===i.options.vertical?n[i.animType]="translate3d("+t+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+t+"px, 0px)",i.$slideTrack.css(n),e&&setTimeout(function(){i.disableTransition(),e.call()},i.options.speed))},s.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?d(t).not(this.$slider):t},s.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=d(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},s.prototype.applyTransition=function(t){var e=this,n={};!1===e.options.fade?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(n)},s.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0)&&(t.direction=1)),t.slideHandler(e))},s.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=d(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=d(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var t,e,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),e=d("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)e.append(d("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=e.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){d(e).attr("data-slick-index",t).data("originalStyling",d(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?d('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),d("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},s.prototype.buildRows=function(){var t,e,n,i=this,o=document.createDocumentFragment(),r=i.$slider.children();if(0<i.options.rows){for(n=i.options.slidesPerRow*i.options.rows,e=Math.ceil(r.length/n),t=0;t<e;t++){for(var s=document.createElement("div"),a=0;a<i.options.rows;a++){for(var l=document.createElement("div"),d=0;d<i.options.slidesPerRow;d++){var u=t*n+(a*i.options.slidesPerRow+d);r.get(u)&&l.appendChild(r.get(u))}s.appendChild(l)}o.appendChild(s)}i.$slider.empty().append(o),i.$slider.children().children().children().css({width:100/i.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(t,e){var n,i,o,r=this,s=!1,a=r.$slider.width(),l=window.innerWidth||d(window).width();if("window"===r.respondTo?o=l:"slider"===r.respondTo?o=a:"min"===r.respondTo&&(o=Math.min(l,a)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in i=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?o<r.breakpoints[n]&&(i=r.breakpoints[n]):o>r.breakpoints[n]&&(i=r.breakpoints[n]));null!==i?null!==r.activeBreakpoint&&i===r.activeBreakpoint&&!e||(r.activeBreakpoint=i,"unslick"===r.breakpointSettings[i]?r.unslick(i):(r.options=d.extend({},r.originalSettings,r.breakpointSettings[i]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),s=i):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),s=i),t||!1===s||r.$slider.trigger("breakpoint",[r,s])}},s.prototype.changeSlide=function(t,e){var n,i=this,o=d(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),n=i.slideCount%i.options.slidesToScroll!=0?0:(i.slideCount-i.currentSlide)%i.options.slidesToScroll,t.data.message){case"previous":r=0==n?i.options.slidesToScroll:i.options.slidesToShow-n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide-r,!1,e);break;case"next":r=0==n?i.options.slidesToScroll:n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide+r,!1,e);break;case"index":var r=0===t.data.index?0:t.data.index||o.index()*i.options.slidesToScroll;i.slideHandler(i.checkNavigable(r),!1,e),o.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),n=0;if(t>e[e.length-1])t=e[e.length-1];else for(var i in e){if(t<e[i]){t=n;break}n=e[i]}return t},s.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(d("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",d.proxy(t.interrupt,t,!0)).off("mouseleave.slick",d.proxy(t.interrupt,t,!1)),!0===t.options.accessibility)&&t.$dots.off("keydown.slick",t.keyHandler),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow)&&t.$nextArrow.off("keydown.slick",t.keyHandler),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),d(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&d(t.$slideTrack).children().off("click.slick",t.selectHandler),d(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),d(window).off("resize.slick.slick-"+t.instanceUid,t.resize),d("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),d(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},s.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",d.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",d.proxy(t.interrupt,t,!1))},s.prototype.cleanUpRows=function(){var t;0<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},s.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},s.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),d(".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(){d(this).attr("style",d(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,t||e.$slider.trigger("destroy",[e])},s.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},s.prototype.fadeSlide=function(t,e){var n=this;!1===n.cssTransitions?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout(function(){n.disableTransition(t),e.call()},n.options.speed))},s.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},s.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=d(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=e.is(":focus"),n.autoPlay())},0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){return this.currentSlide},s.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++i;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)i=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else i=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return i-1},s.prototype.getLeft=function(t){var e,n,i=this,o=0;return i.slideOffset=0,e=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,n=-1,!0===i.options.vertical&&!0===i.options.centerMode&&(2===i.options.slidesToShow?n=-1.5:1===i.options.slidesToShow&&(n=-2)),o=e*i.options.slidesToShow*n),i.slideCount%i.options.slidesToScroll!=0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(o=t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(t-i.slideCount))*e*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*e*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,o=(t+i.options.slidesToShow-i.slideCount)*e),i.slideCount<=i.options.slidesToShow&&(o=i.slideOffset=0),!0===i.options.centerMode&&i.slideCount<=i.options.slidesToShow?i.slideOffset=i.slideWidth*Math.floor(i.options.slidesToShow)/2-i.slideWidth*i.slideCount/2:!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),n=!1===i.options.vertical?t*i.slideWidth*-1+i.slideOffset:t*e*-1+o,!0===i.options.variableWidth&&(e=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),n=!0===i.options.rtl?e[0]?-1*(i.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===i.options.centerMode)&&(e=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),n=!0===i.options.rtl?e[0]?-1*(i.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,n+=(i.$list.width()-e.outerWidth())/2),n},s.prototype.getOption=s.prototype.slickGetOption=function(t){return this.options[t]},s.prototype.getNavigableIndexes=function(){for(var t=this,e=0,n=0,i=[],o=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,2*t.slideCount);e<o;)i.push(e),e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var n,i=this,o=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0;return!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-o+d(e).outerWidth()/2>-1*i.swipeLeft)return n=e,!1}),Math.abs(d(n).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},s.prototype.init=function(t){var e=this;d(e.$slider).hasClass("slick-initialized")||(d(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()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},s.prototype.initADA=function(){var n=this,i=Math.ceil(n.slideCount/n.options.slidesToShow),o=n.getNavigableIndexes().filter(function(t){return 0<=t&&t<n.slideCount});n.$slides.add(n.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==n.$dots&&(n.$slides.not(n.$slideTrack.find(".slick-cloned")).each(function(t){var e=o.indexOf(t);d(this).attr({role:"tabpanel",id:"slick-slide"+n.instanceUid+t,tabindex:-1}),-1!==e&&(t="slick-slide-control"+n.instanceUid+e,d("#"+t).length)&&d(this).attr({"aria-describedby":t})}),n.$dots.attr("role","tablist").find("li").each(function(t){var e=o[t];d(this).attr({role:"presentation"}),d(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+n.instanceUid+t,"aria-controls":"slick-slide"+n.instanceUid+e,"aria-label":t+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(n.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=n.currentSlide,e=t+n.options.slidesToShow;t<e;t++)n.options.focusOnChange?n.$slides.eq(t).attr({tabindex:"0"}):n.$slides.eq(t).removeAttr("tabindex");n.activateADA()},s.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler))},s.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(d("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility)&&t.$dots.on("keydown.slick",t.keyHandler),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&d("li",t.$dots).on("mouseenter.slick",d.proxy(t.interrupt,t,!0)).on("mouseleave.slick",d.proxy(t.interrupt,t,!1))},s.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",d.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",d.proxy(t.interrupt,t,!1)))},s.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),d(document).on(t.visibilityChange,d.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&d(t.$slideTrack).children().on("click.slick",t.selectHandler),d(window).on("orientationchange.slick.slick-"+t.instanceUid,d.proxy(t.orientationChange,t)),d(window).on("resize.slick.slick-"+t.instanceUid,d.proxy(t.resize,t)),d("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),d(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),d(t.setPosition)},s.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},s.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},s.prototype.lazyLoad=function(){var t,e,n,r=this;function i(t){d("img[data-lazy]",t).each(function(){var t=d(this),e=d(this).attr("data-lazy"),n=d(this).attr("data-srcset"),i=d(this).attr("data-sizes")||r.$slider.attr("data-sizes"),o=document.createElement("img");o.onload=function(){t.animate({opacity:0},100,function(){n&&(t.attr("srcset",n),i)&&t.attr("sizes",i),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,e])})},o.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,e])},o.src=e})}if(!0===r.options.centerMode?n=!0===r.options.infinite?(e=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(e=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),r.options.slidesToShow/2+1+2+r.currentSlide):(e=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,n=Math.ceil(e+r.options.slidesToShow),!0===r.options.fade&&(0<e&&e--,n<=r.slideCount)&&n++),t=r.$slider.find(".slick-slide").slice(e,n),"anticipated"===r.options.lazyLoad)for(var o=e-1,s=n,a=r.$slider.find(".slick-slide"),l=0;l<r.options.slidesToScroll;l++)o<0&&(o=r.slideCount-1),t=(t=t.add(a.eq(o))).add(a.eq(s)),o--,s++;i(t),r.slideCount<=r.options.slidesToShow?i(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?i(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&i(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},s.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},s.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange)&&d(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus())},s.prototype.prev=s.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(t){t.preventDefault()},s.prototype.progressiveLazyLoad=function(t){t=t||1;var e,n,i,o,r=this,s=d("img[data-lazy]",r.$slider);s.length?(e=s.first(),n=e.attr("data-lazy"),i=e.attr("data-srcset"),o=e.attr("data-sizes")||r.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){i&&(e.attr("srcset",i),o)&&e.attr("sizes",o),e.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,e,n]),r.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){r.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,n]),r.progressiveLazyLoad())},s.src=n):r.$slider.trigger("allImagesLoaded",[r])},s.prototype.refresh=function(t){var e=this,n=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>n&&(e.currentSlide=n),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),n=e.currentSlide,e.destroy(!0),d.extend(e,e.initials,{currentSlide:n}),e.init(),t||e.changeSlide({data:{message:"index",index:n}},!1)},s.prototype.registerBreakpoints=function(){var t,e,n,i=this,o=i.options.responsive||null;if("array"===d.type(o)&&o.length){for(t in i.respondTo=i.options.respondTo||"window",o)if(n=i.breakpoints.length-1,o.hasOwnProperty(t)){for(e=o[t].breakpoint;0<=n;)i.breakpoints[n]&&i.breakpoints[n]===e&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(e),i.breakpointSettings[e]=o[t].settings}i.breakpoints.sort(function(t,e){return i.options.mobileFirst?t-e:e-t})}},s.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&d(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},s.prototype.resize=function(){var t=this;d(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=d(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(t,e,n){var i=this;if(t="boolean"==typeof t?!0===(e=t)?0:i.slideCount-1:!0===e?--t:t,i.slideCount<1||t<0||t>i.slideCount-1)return!1;i.unload(),(!0===n?i.$slideTrack.children():i.$slideTrack.children(this.options.slide).eq(t)).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},s.prototype.setCSS=function(t){var e,n,i=this,o={};!0===i.options.rtl&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",o[i.positionProp]=t,!1!==i.transformsEnabled&&(!(o={})===i.cssTransitions?o[i.animType]="translate("+e+", "+n+")":o[i.animType]="translate3d("+e+", "+n+", 0px)"),i.$slideTrack.css(o)},s.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},s.prototype.setFade=function(){var n,i=this;i.$slides.each(function(t,e){n=i.slideWidth*t*-1,!0===i.options.rtl?d(e).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):d(e).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",t))},s.prototype.setOption=s.prototype.slickSetOption=function(){var t,e,n,i,o,r=this,s=!1;if("object"===d.type(arguments[0])?(n=arguments[0],s=arguments[1],o="multiple"):"string"===d.type(arguments[0])&&(n=arguments[0],i=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===d.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)r.options[n]=i;else if("multiple"===o)d.each(n,function(t,e){r.options[t]=e});else if("responsive"===o)for(e in i)if("array"!==d.type(r.options.responsive))r.options.responsive=[i[e]];else{for(t=r.options.responsive.length-1;0<=t;)r.options.responsive[t].breakpoint===i[e].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(i[e])}s&&(r.unload(),r.reinit())},s.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},s.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty)&&void 0===e.MozPerspective&&(t.animType=!1),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform)&&(t.animType=!1),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},s.prototype.setSlideClasses=function(t){var e,n,i,o=this,r=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode?(n=o.options.slidesToShow%2==0?1:0,i=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&((i<=t&&t<=o.slideCount-1-i?o.$slides.slice(t-i+n,t+i+1):(e=o.options.slidesToShow+t,r.slice(e-i+1+n,e+i+2))).addClass("slick-active").attr("aria-hidden","false"),0===t?r.eq(r.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&r.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):(0<=t&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow):r.length<=o.options.slidesToShow?r:(n=o.slideCount%o.options.slidesToShow,e=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?r.slice(e-(o.options.slidesToShow-n),e+n):r.slice(e,e+o.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},s.prototype.setupInfinite=function(){var t,e,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(e=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,t=i.slideCount;t>i.slideCount-n;--t)d(i.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(t=0;t<n+i.slideCount;t+=1)e=t,d(i.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){d(this).attr("id","")})}},s.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},s.prototype.selectHandler=function(t){t=d(t.target).is(".slick-slide")?d(t.target):d(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)},s.prototype.slideHandler=function(t,e,n){var i,o,r,s=this;e=e||!1,!0===s.animating&&!0===s.options.waitForAnimate||!0===s.options.fade&&s.currentSlide===t||(!1===e&&s.asNavFor(t),i=t,e=s.getLeft(i),r=s.getLeft(s.currentSlide),s.currentLeft=null===s.swipeLeft?r:s.swipeLeft,!1===s.options.infinite&&!1===s.options.centerMode&&(t<0||t>s.getDotCount()*s.options.slidesToScroll)||!1===s.options.infinite&&!0===s.options.centerMode&&(t<0||t>s.slideCount-s.options.slidesToScroll)?!1===s.options.fade&&(i=s.currentSlide,!0!==n&&s.slideCount>s.options.slidesToShow?s.animateSlide(r,function(){s.postSlide(i)}):s.postSlide(i)):(s.options.autoplay&&clearInterval(s.autoPlayTimer),o=i<0?s.slideCount%s.options.slidesToScroll!=0?s.slideCount-s.slideCount%s.options.slidesToScroll:s.slideCount+i:i>=s.slideCount?s.slideCount%s.options.slidesToScroll!=0?0:i-s.slideCount:i,s.animating=!0,s.$slider.trigger("beforeChange",[s,s.currentSlide,o]),t=s.currentSlide,s.currentSlide=o,s.setSlideClasses(s.currentSlide),s.options.asNavFor&&(r=(r=s.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(s.currentSlide),s.updateDots(),s.updateArrows(),!0===s.options.fade?(!0!==n?(s.fadeSlideOut(t),s.fadeSlide(o,function(){s.postSlide(o)})):s.postSlide(o),s.animateHeight()):!0!==n&&s.slideCount>s.options.slidesToShow?s.animateSlide(e,function(){s.postSlide(o)}):s.postSlide(o)))},s.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var t=this,e=t.touchObject.startX-t.touchObject.curX,n=t.touchObject.startY-t.touchObject.curY,n=Math.atan2(n,e),e=Math.round(180*n/Math.PI);return(e=e<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===t.options.rtl?"left":"right":135<=e&&e<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(t){var e,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1;if(i.interrupted=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(e),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},s.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},s.prototype.swipeMove=function(t){var e,n,i=this,o=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!i.dragging||i.scrolling||o&&1!==o.length)&&(e=i.getLeft(i.currentSlide),i.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,i.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2))),!i.options.verticalSwiping&&!i.swiping&&4<o?!(i.scrolling=!0):(!0===i.options.verticalSwiping&&(i.touchObject.swipeLength=o),o=i.swipeDirection(),void 0!==t.originalEvent&&4<i.touchObject.swipeLength&&(i.swiping=!0,t.preventDefault()),t=(!1===i.options.rtl?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),!0===i.options.verticalSwiping&&(t=i.touchObject.curY>i.touchObject.startY?1:-1),n=i.touchObject.swipeLength,(i.touchObject.edgeHit=!1)===i.options.infinite&&(0===i.currentSlide&&"right"===o||i.currentSlide>=i.getDotCount()&&"left"===o)&&(n=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),!1===i.options.vertical?i.swipeLeft=e+n*t:i.swipeLeft=e+n*(i.$list.height()/i.listWidth)*t,!0===i.options.verticalSwiping&&(i.swipeLeft=e+n*t),!0!==i.options.fade&&!1!==i.options.touchMove&&(!0===i.animating?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft))))},s.prototype.swipeStart=function(t){var e,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return!(n.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,n.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},s.prototype.unload=function(){var t=this;d(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},s.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},s.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},d.fn.slick=function(){for(var t,e=this,n=arguments[0],i=Array.prototype.slice.call(arguments,1),o=e.length,r=0;r<o;r++)if("object"==typeof n||void 0===n?e[r].slick=new s(e[r],n):t=e[r].slick[n].apply(e[r].slick,i),void 0!==t)return t;return e}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var F;function g(){return F.apply(null,arguments)}function m(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function N(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function L(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(v(t,e))return;return 1}function y(t){return void 0===t}function b(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function z(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function j(t,e){for(var n=[],i=t.length,o=0;o<i;++o)n.push(e(t[o],o));return n}function Y(t,e){for(var n in e)v(e,n)&&(t[n]=e[n]);return v(e,"toString")&&(t.toString=e.toString),v(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return Me(t,e,n,i,!0).utc()}function w(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function B(t){var e,n,i=t._d&&!isNaN(t._d.getTime());return i&&(e=w(t),n=W.call(e.parsedDateParts,function(t){return null!=t}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict)&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t)?i:(t._isValid=i,t._isValid)}function $(t){var e=d(NaN);return null!=t?Y(w(e),t):w(e).userInvalidated=!0,e}var W=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},U=g.momentProperties=[],V=!1;function q(t,e){var n,i,o,r=U.length;if(y(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),y(e._i)||(t._i=e._i),y(e._f)||(t._f=e._f),y(e._l)||(t._l=e._l),y(e._strict)||(t._strict=e._strict),y(e._tzm)||(t._tzm=e._tzm),y(e._isUTC)||(t._isUTC=e._isUTC),y(e._offset)||(t._offset=e._offset),y(e._pf)||(t._pf=w(e)),y(e._locale)||(t._locale=e._locale),0<r)for(n=0;n<r;n++)y(o=e[i=U[n]])||(t[i]=o);return t}function G(t){q(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,g.updateOffset(this),V=!1)}function _(t){return t instanceof G||null!=t&&null!=t._isAMomentObject}function Q(t){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(r,s){var a=!0;return Y(function(){if(null!=g.deprecationHandler&&g.deprecationHandler(null,r),a){for(var t,e,n=[],i=arguments.length,o=0;o<i;o++){if(t="","object"==typeof arguments[o]){for(e in t+="\n["+o+"] ",arguments[0])v(arguments[0],e)&&(t+=e+": "+arguments[0][e]+", ");t=t.slice(0,-2)}else t=arguments[o];n.push(t)}Q(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var X={};function Z(t,e){null!=g.deprecationHandler&&g.deprecationHandler(t,e),X[t]||(Q(e),X[t]=!0)}function s(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function K(t,e){var n,i=Y({},t);for(n in e)v(e,n)&&(N(t[n])&&N(e[n])?(i[n]={},Y(i[n],t[n]),Y(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)v(t,n)&&!v(e,n)&&N(t[n])&&(i[n]=Y({},i[n]));return i}function J(t){null!=t&&this.set(t)}g.suppressDeprecationWarnings=!1,g.deprecationHandler=null;var tt=Object.keys||function(t){var e,n=[];for(e in t)v(t,e)&&n.push(e);return n};function r(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var et=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,it={},ot={};function i(t,e,n,i){var o="string"==typeof i?function(){return this[i]()}:i;t&&(ot[t]=o),e&&(ot[e[0]]=function(){return r(o.apply(this,arguments),e[1],e[2])}),n&&(ot[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function rt(t,e){return t.isValid()?(e=st(e,t.localeData()),it[e]=it[e]||function(i){for(var t,o=i.match(et),e=0,r=o.length;e<r;e++)ot[o[e]]?o[e]=ot[o[e]]:o[e]=(t=o[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<r;n++)e+=s(o[n])?o[n].call(t,i):o[n];return e}}(e),it[e](t)):t.localeData().invalidDate()}function st(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(nt.lastIndex=0;0<=n&&nt.test(t);)t=t.replace(nt,i),nt.lastIndex=0,--n;return t}var at={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function a(t){return"string"==typeof t?at[t]||at[t.toLowerCase()]:void 0}function lt(t){var e,n,i={};for(n in t)v(t,n)&&(e=a(n))&&(i[e]=t[n]);return i}var dt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},ut=/\d/,e=/\d\d/,ct=/\d{3}/,ht=/\d{4}/,pt=/[+-]?\d{6}/,n=/\d\d?/,ft=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,vt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,wt=/[+-]?\d+/,_t=/Z|[+-]\d\d:?\d\d/gi,St=/Z|[+-]\d\d(?::?\d\d)?/gi,Tt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,o=/^[1-9]\d?/,l=/^([1-9]\d|\d)/;function u(t,n,i){Dt[t]=s(n)?n:function(t,e){return t&&i?i:n}}function S(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function h(t){return 0!=(t=+t)&&isFinite(t)?c(t):0}var Dt={},Ct={};function p(t,n){var e,i,o=n;for("string"==typeof t&&(t=[t]),b(n)&&(o=function(t,e){e[n]=h(t)}),i=t.length,e=0;e<i;e++)Ct[t[e]]=o}function Et(t,o){p(t,function(t,e,n,i){n._w=n._w||{},o(t,n._w,n,i)})}function kt(t){return t%4==0&&t%100!=0||t%400==0}var T=0,f=1,D=2,C=3,E=4,k=5,xt=6,Mt=7,It=8;function Rt(t){return kt(t)?366:365}i("Y",0,0,function(){var t=this.year();return t<=9999?r(t,4):"+"+t}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),u("Y",wt),u("YY",n,e),u("YYYY",vt,ht),u("YYYYY",yt,pt),u("YYYYYY",yt,pt),p(["YYYYY","YYYYYY"],T),p("YYYY",function(t,e){e[T]=2===t.length?g.parseTwoDigitYear(t):h(t)}),p("YY",function(t,e){e[T]=g.parseTwoDigitYear(t)}),p("Y",function(t,e){e[T]=parseInt(t,10)}),g.parseTwoDigitYear=function(t){return h(t)+(68<h(t)?1900:2e3)};var x,Ot=Pt("FullYear",!0);function Pt(e,n){return function(t){return null!=t?(At(this,e,t),g.updateOffset(this,n),this):Ht(this,e)}}function Ht(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function At(t,e,n){var i,o,r;if(t.isValid()&&!isNaN(n)){switch(i=t._d,o=t._isUTC,e){case"Milliseconds":return o?i.setUTCMilliseconds(n):i.setMilliseconds(n);case"Seconds":return o?i.setUTCSeconds(n):i.setSeconds(n);case"Minutes":return o?i.setUTCMinutes(n):i.setMinutes(n);case"Hours":return o?i.setUTCHours(n):i.setHours(n);case"Date":return o?i.setUTCDate(n):i.setDate(n);case"FullYear":break;default:return}e=n,r=t.month(),t=29!==(t=t.date())||1!==r||kt(e)?t:28,o?i.setUTCFullYear(e,r,t):i.setFullYear(e,r,t)}}function Ft(t,e){return isNaN(t)||isNaN(e)?NaN:(t+=(e-(e=(e%12+12)%12))/12,1==e?kt(t)?29:28:31-e%7%2)}x=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),u("M",n,o),u("MM",n,e),u("MMM",function(t,e){return e.monthsShortRegex(t)}),u("MMMM",function(t,e){return e.monthsRegex(t)}),p(["M","MM"],function(t,e){e[f]=h(t)-1}),p(["MMM","MMMM"],function(t,e,n,i){null!=(i=n._locale.monthsParse(t,i,n._strict))?e[f]=i:w(n).invalidMonth=t});var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Lt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),zt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt=Tt,Yt=Tt;function Bt(t,e){if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=h(e);else if(!b(e=t.localeData().monthsParse(e)))return;var n=(n=t.date())<29?n:Math.min(n,Ft(t.year(),e));t._isUTC?t._d.setUTCMonth(e,n):t._d.setMonth(e,n)}}function $t(t){return null!=t?(Bt(this,t),g.updateOffset(this,!0),this):Ht(this,"Month")}function Wt(){function t(t,e){return e.length-t.length}for(var e,n,i=[],o=[],r=[],s=0;s<12;s++)n=d([2e3,s]),e=S(this.monthsShort(n,"")),n=S(this.months(n,"")),i.push(e),o.push(n),r.push(n),r.push(e);i.sort(t),o.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ut(t,e,n,i,o,r,s){var a;return t<100&&0<=t?(a=new Date(t+400,e,n,i,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,o,r,s),a}function Vt(t){var e;return t<100&&0<=t?((e=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,e)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function qt(t,e,n){return(n=7+e-n)-(7+Vt(t,0,n).getUTCDay()-e)%7-1}function Gt(t,e,n,i,o){var r,n=(e=1+7*(e-1)+(7+n-i)%7+qt(t,i,o))<=0?Rt(r=t-1)+e:e>Rt(t)?(r=t+1,e-Rt(t)):(r=t,e);return{year:r,dayOfYear:n}}function Qt(t,e,n){var i,o,r=qt(t.year(),e,n);return(r=Math.floor((t.dayOfYear()-r-1)/7)+1)<1?i=r+M(o=t.year()-1,e,n):r>M(t.year(),e,n)?(i=r-M(t.year(),e,n),o=t.year()+1):(o=t.year(),i=r),{week:i,year:o}}function M(t,e,n){var i=qt(t,e,n),e=qt(t+1,e,n);return(Rt(t)-i+e)/7}function Xt(t,e){return t.slice(e,7).concat(t.slice(0,e))}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),u("w",n,o),u("ww",n,e),u("W",n,o),u("WW",n,e),Et(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=h(t)}),i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),u("d",n),u("e",n),u("E",n),u("dd",function(t,e){return e.weekdaysMinRegex(t)}),u("ddd",function(t,e){return e.weekdaysShortRegex(t)}),u("dddd",function(t,e){return e.weekdaysRegex(t)}),Et(["dd","ddd","dddd"],function(t,e,n,i){null!=(i=n._locale.weekdaysParse(t,i,n._strict))?e.d=i:w(n).invalidWeekday=t}),Et(["d","e","E"],function(t,e,n,i){e[i]=h(t)});var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),te=Tt,ee=Tt,ne=Tt;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,o=[],r=[],s=[],a=[],l=0;l<7;l++)i=d([2e3,1]).day(l),e=S(this.weekdaysMin(i,"")),n=S(this.weekdaysShort(i,"")),i=S(this.weekdays(i,"")),o.push(e),r.push(n),s.push(i),a.push(e),a.push(n),a.push(i);o.sort(t),r.sort(t),s.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function oe(){return this.hours()%12||12}function re(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function se(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,oe),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+oe.apply(this)+r(this.minutes(),2)}),i("hmmss",0,0,function(){return""+oe.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),re("a",!0),re("A",!1),u("a",se),u("A",se),u("H",n,l),u("h",n,o),u("k",n,o),u("HH",n,e),u("hh",n,e),u("kk",n,e),u("hmm",ft),u("hmmss",gt),u("Hmm",ft),u("Hmmss",gt),p(["H","HH"],C),p(["k","kk"],function(t,e,n){t=h(t),e[C]=24===t?0:t}),p(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),p(["h","hh"],function(t,e,n){e[C]=h(t),w(n).bigHour=!0}),p("hmm",function(t,e,n){var i=t.length-2;e[C]=h(t.substr(0,i)),e[E]=h(t.substr(i)),w(n).bigHour=!0}),p("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[C]=h(t.substr(0,i)),e[E]=h(t.substr(i,2)),e[k]=h(t.substr(o)),w(n).bigHour=!0}),p("Hmm",function(t,e,n){var i=t.length-2;e[C]=h(t.substr(0,i)),e[E]=h(t.substr(i))}),p("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[C]=h(t.substr(0,i)),e[E]=h(t.substr(i,2)),e[k]=h(t.substr(o))});var ae,Tt=Pt("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Lt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Jt,weekdaysShort:Kt,meridiemParse:/[ap]\.?m?\.?/i},I={},de={};function ue(t){return t&&t.toLowerCase().replace("_","-")}function ce(t){var e;if(void 0===I[t]&&"undefined"!=typeof module&&module&&module.exports&&t&&t.match("^[^/\\\\]*$"))try{e=ae._abbr,require("./locale/"+t),he(e)}catch(e){I[t]=null}return I[t]}function he(t,e){return t&&((e=y(e)?R(t):pe(t,e))?ae=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function pe(t,e){if(null===e)return delete I[t],null;var n,i=le;if(e.abbr=t,null!=I[t])Z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=I[t]._config;else if(null!=e.parentLocale)if(null!=I[e.parentLocale])i=I[e.parentLocale]._config;else{if(null==(n=ce(e.parentLocale)))return de[e.parentLocale]||(de[e.parentLocale]=[]),de[e.parentLocale].push({name:t,config:e}),null;i=n._config}return I[t]=new J(K(i,e)),de[t]&&de[t].forEach(function(t){pe(t.name,t.config)}),he(t),I[t]}function R(t){var e;if(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t){if(!m(t)){if(e=ce(t))return e;t=[t]}for(var n,i,o,r,s=t,a=0;a<s.length;){for(n=(r=ue(s[a]).split("-")).length,i=(i=ue(s[a+1]))?i.split("-"):null;0<n;){if(o=ce(r.slice(0,n).join("-")))return o;if(i&&i.length>=n&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(r,i)>=n-1)break;n--}a++}}return ae}function fe(t){var e=t._a;return e&&-2===w(t).overflow&&(e=e[f]<0||11<e[f]?f:e[D]<1||e[D]>Ft(e[T],e[f])?D:e[C]<0||24<e[C]||24===e[C]&&(0!==e[E]||0!==e[k]||0!==e[xt])?C:e[E]<0||59<e[E]?E:e[k]<0||59<e[k]?k:e[xt]<0||999<e[xt]?xt:-1,w(t)._overflowDayOfYear&&(e<T||D<e)&&(e=D),w(t)._overflowWeeks&&-1===e&&(e=Mt),w(t)._overflowWeekday&&-1===e&&(e=It),w(t).overflow=e),t}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((-?\d+)/i,_e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Te(t){var e,n,i,o,r,s,a=t._i,l=ge.exec(a)||me.exec(a),a=ye.length,d=be.length;if(l){for(w(t).iso=!0,e=0,n=a;e<n;e++)if(ye[e][1].exec(l[1])){o=ye[e][0],i=!1!==ye[e][2];break}if(null==o)t._isValid=!1;else{if(l[3]){for(e=0,n=d;e<n;e++)if(be[e][1].exec(l[3])){r=(l[2]||" ")+be[e][0];break}if(null==r)return t._isValid=!1}if(i||null==r){if(l[4]){if(!ve.exec(l[4]))return t._isValid=!1;s="Z"}t._f=o+(r||"")+(s||""),ke(t)}else t._isValid=!1}}else t._isValid=!1}function De(t){var e,n,i,o,r,s,a,l=_e.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));l?(e=l[4],n=l[3],i=l[2],o=l[5],r=l[6],s=l[7],e=[(a=parseInt(e,10))<=49?2e3+a:a<=999?1900+a:a,Lt.indexOf(n),parseInt(i,10),parseInt(o,10),parseInt(r,10)],s&&e.push(parseInt(s,10)),a=e,n=l[1],i=a,o=t,n&&Kt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(w(o).weekdayMismatch=!0,o._isValid=!1):(t._a=a,t._tzm=(a=l[8],r=l[9],l=l[10],a?Se[a]:r?0:((a=parseInt(l,10))-(r=a%100))/100*60+r),t._d=Vt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),w(t).rfc2822=!0)):t._isValid=!1}function Ce(t,e,n){return null!=t?t:null!=e?e:n}function Ee(t){var e,n,i,o,r,s,a,l,d,u,c,h=[];if(!t._d){for(i=t,o=new Date(g.now()),n=i._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],t._w&&null==t._a[D]&&null==t._a[f]&&(null!=(o=(i=t)._w).GG||null!=o.W||null!=o.E?(l=1,d=4,r=Ce(o.GG,i._a[T],Qt(O(),1,4).year),s=Ce(o.W,1),((a=Ce(o.E,1))<1||7<a)&&(u=!0)):(l=i._locale._week.dow,d=i._locale._week.doy,c=Qt(O(),l,d),r=Ce(o.gg,i._a[T],c.year),s=Ce(o.w,c.week),null!=o.d?((a=o.d)<0||6<a)&&(u=!0):null!=o.e?(a=o.e+l,(o.e<0||6<o.e)&&(u=!0)):a=l),s<1||s>M(r,l,d)?w(i)._overflowWeeks=!0:null!=u?w(i)._overflowWeekday=!0:(c=Gt(r,s,a,l,d),i._a[T]=c.year,i._dayOfYear=c.dayOfYear)),null!=t._dayOfYear&&(o=Ce(t._a[T],n[T]),(t._dayOfYear>Rt(o)||0===t._dayOfYear)&&(w(t)._overflowDayOfYear=!0),u=Vt(o,0,t._dayOfYear),t._a[f]=u.getUTCMonth(),t._a[D]=u.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=h[e]=n[e];for(;e<7;e++)t._a[e]=h[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[C]&&0===t._a[E]&&0===t._a[k]&&0===t._a[xt]&&(t._nextDay=!0,t._a[C]=0),t._d=(t._useUTC?Vt:Ut).apply(null,h),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[C]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(w(t).weekdayMismatch=!0)}}function ke(t){if(t._f===g.ISO_8601)Te(t);else if(t._f===g.RFC_2822)De(t);else{t._a=[],w(t).empty=!0;for(var e,n,i,o=""+t._i,r=o.length,s=0,a=st(t._f,t._locale).match(et)||[],l=a.length,d=0;d<l;d++)e=a[d],(f=(o.match((f=t,v(Dt,p=e)?Dt[p](f._strict,f._locale):new RegExp(S(p.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o})))))||[])[0])&&(0<(n=o.substr(0,o.indexOf(f))).length&&w(t).unusedInput.push(n),o=o.slice(o.indexOf(f)+f.length),s+=f.length),ot[e]?(f?w(t).empty=!1:w(t).unusedTokens.push(e),n=e,p=t,null!=(i=f)&&v(Ct,n)&&Ct[n](i,p._a,p,n)):t._strict&&!f&&w(t).unusedTokens.push(e);w(t).charsLeftOver=r-s,0<o.length&&w(t).unusedInput.push(o),t._a[C]<=12&&!0===w(t).bigHour&&0<t._a[C]&&(w(t).bigHour=void 0),w(t).parsedDateParts=t._a.slice(0),w(t).meridiem=t._meridiem,t._a[C]=(u=t._locale,c=t._a[C],null==(h=t._meridiem)?c:null!=u.meridiemHour?u.meridiemHour(c,h):null==u.isPM||((u=u.isPM(h))&&c<12&&(c+=12),u)||12!==c?c:0),null!==(r=w(t).era)&&(t._a[T]=t._locale.erasConvertYear(r,t._a[T])),Ee(t),fe(t)}var u,c,h,p,f}function xe(t){var e,n,i,o=t._i,r=t._f;if(t._locale=t._locale||R(t._l),null===o||void 0===r&&""===o)return $({nullInput:!0});if("string"==typeof o&&(t._i=o=t._locale.preparse(o)),_(o))return new G(fe(o));if(z(o))t._d=o;else if(m(r)){var s,a,l,d,u,c,h=t,p=!1,f=h._f.length;if(0===f)w(h).invalidFormat=!0,h._d=new Date(NaN);else{for(d=0;d<f;d++)u=0,c=!1,s=q({},h),null!=h._useUTC&&(s._useUTC=h._useUTC),s._f=h._f[d],ke(s),B(s)&&(c=!0),u=(u+=w(s).charsLeftOver)+10*w(s).unusedTokens.length,w(s).score=u,p?u<l&&(l=u,a=s):(null==l||u<l||c)&&(l=u,a=s,c)&&(p=!0);Y(h,a||s)}}else r?ke(t):y(r=(o=t)._i)?o._d=new Date(g.now()):z(r)?o._d=new Date(r.valueOf()):"string"==typeof r?(n=o,null!==(e=we.exec(n._i))?n._d=new Date(+e[1]):(Te(n),!1===n._isValid&&(delete n._isValid,De(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:g.createFromInputFallback(n)))):m(r)?(o._a=j(r.slice(0),function(t){return parseInt(t,10)}),Ee(o)):N(r)?(e=o)._d||(i=void 0===(n=lt(e._i)).day?n.date:n.day,e._a=j([n.year,n.month,i,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),Ee(e)):b(r)?o._d=new Date(r):g.createFromInputFallback(o);return B(t)||(t._d=null),t}function Me(t,e,n,i,o){var r={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(N(t)&&L(t)||m(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=n,r._i=t,r._f=e,r._strict=i,(o=new G(fe(xe(o=r))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function O(t,e,n,i){return Me(t,e,n,i,!1)}function Ie(t,e){var n,i;if(!(e=1===e.length&&m(e[0])?e[0]:e).length)return O();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}g.createFromInputFallback=t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),g.ISO_8601=function(){},g.RFC_2822=function(){};var ft=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=O.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:$()}),gt=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=O.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:$()}),Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Oe(t){var e=(t=lt(t)).year||0,n=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,r=t.day||0,s=t.hour||0,a=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=function(t){var e,n,i=!1,o=Re.length;for(e in t)if(v(t,e)&&(-1===x.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<o;++n)if(t[Re[n]]){if(i)return!1;parseFloat(t[Re[n]])!==h(t[Re[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*l+6e4*a+1e3*s*60*60,this._days=+r+7*o,this._months=+i+3*n+12*e,this._data={},this._locale=R(),this._bubble()}function Pe(t){return t instanceof Oe}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+r(~~(t/60),2)+n+r(~~t%60,2)})}Ae("Z",":"),Ae("ZZ",""),u("Z",St),u("ZZ",St),p(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ne(St,t)});var Fe=/([\+\-]|\d\d)/gi;function Ne(t,e){return null===(e=(e||"").match(t))?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Fe)||["-",0,0])[1]+h(t[2]))?0:"+"===t[0]?e:-e}function Le(t,e){var n;return e._isUTC?(e=e.clone(),n=(_(t)||z(t)?t:O(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),g.updateOffset(e,!1),e):O(t).local()}function ze(t){return-Math.round(t._d.getTimezoneOffset())}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}g.updateOffset=function(){};var Ye=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Be=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function P(t,e){var n,i,o,r,s=t;return Pe(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:b(t)||!isNaN(+t)?(s={},e?s[e]=+t:s.milliseconds=+t):(e=Ye.exec(t))?(n="-"===e[1]?-1:1,s={y:0,d:h(e[D])*n,h:h(e[C])*n,m:h(e[E])*n,s:h(e[k])*n,ms:h(He(1e3*e[xt]))*n}):(e=Be.exec(t))?(n="-"===e[1]?-1:1,s={y:$e(e[2],n),M:$e(e[3],n),w:$e(e[4],n),d:$e(e[5],n),h:$e(e[6],n),m:$e(e[7],n),s:$e(e[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=O(s.from),o=O(s.to),e=i.isValid()&&o.isValid()?(o=Le(o,i),i.isBefore(o)?r=We(i,o):((r=We(o,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(s={}).ms=e.milliseconds,s.M=e.months),n=new Oe(s),Pe(t)&&v(t,"_locale")&&(n._locale=t._locale),Pe(t)&&v(t,"_isValid")&&(n._isValid=t._isValid),n}function $e(t,e){return t=t&&parseFloat(t.replace(",",".")),(isNaN(t)?0:t)*e}function We(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ue(i,o){return function(t,e){var n;return null===e||isNaN(+e)||(Z(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ve(this,P(t,e),i),this}}function Ve(t,e,n,i){var o=e._milliseconds,r=He(e._days),e=He(e._months);t.isValid()&&(i=null==i||i,e&&Bt(t,Ht(t,"Month")+e*n),r&&At(t,"Date",Ht(t,"Date")+r*n),o&&t._d.setTime(t._d.valueOf()+o*n),i)&&g.updateOffset(t,r||e)}function qe(t){return"string"==typeof t||t instanceof String}function Ge(t,e){var n,i;return t.date()<e.date()?-Ge(e,t):-((n=12*(e.year()-t.year())+(e.month()-t.month()))+(e-(i=t.clone().add(n,"months"))<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i)))||0}function Qe(t){return void 0===t?this._locale._abbr:(null!=(t=R(t))&&(this._locale=t),this)}function Xe(){return this._locale}P.fn=Oe.prototype,P.invalid=function(){return P(NaN)},Nt=Ue(1,"add"),Zt=Ue(-1,"subtract"),g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",g.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Jt=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),Ze=126227808e5;function Ke(t,e){return(t%e+e)%e}function Je(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-Ze:new Date(t,e,n).valueOf()}function tn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-Ze:Date.UTC(t,e,n)}function en(t,e){return e.erasAbbrRegex(t)}function nn(){for(var t,e,n,i=[],o=[],r=[],s=[],a=this.eras(),l=0,d=a.length;l<d;++l)t=S(a[l].name),e=S(a[l].abbr),n=S(a[l].narrow),o.push(t),i.push(e),r.push(n),s.push(t),s.push(e),s.push(n);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function on(t,e){i(0,[t,t.length],0,e)}function rn(t,e,n,i,o){var r;return null==t?Qt(this,i,o).year:(r=M(t,i,o),function(t,e,n,i,o){return e=Vt((t=Gt(t,e,n,i,o)).year,0,t.dayOfYear),this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=r<e?r:e,n,i,o))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),u("N",en),u("NN",en),u("NNN",en),u("NNNN",function(t,e){return e.erasNameRegex(t)}),u("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),p(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){(i=n._locale.erasParse(t,i,n._strict))?w(n).era=i:w(n).invalidEra=t}),u("y",bt),u("yy",bt),u("yyy",bt),u("yyyy",bt),u("yo",function(t,e){return e._eraYearOrdinalRegex||bt}),p(["y","yy","yyy","yyyy"],T),p(["yo"],function(t,e,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[T]=n._locale.eraYearOrdinalParse(t,o):e[T]=parseInt(t,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),u("G",wt),u("g",wt),u("GG",n,e),u("gg",n,e),u("GGGG",vt,ht),u("gggg",vt,ht),u("GGGGG",yt,pt),u("ggggg",yt,pt),Et(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=h(t)}),Et(["gg","GG"],function(t,e,n,i){e[i]=g.parseTwoDigitYear(t)}),i("Q",0,"Qo","quarter"),u("Q",ut),p("Q",function(t,e){e[f]=3*(h(t)-1)}),i("D",["DD",2],"Do","date"),u("D",n,o),u("DD",n,e),u("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),p(["D","DD"],D),p("Do",function(t,e){e[D]=h(t.match(n)[0])}),vt=Pt("Date",!0),i("DDD",["DDDD",3],"DDDo","dayOfYear"),u("DDD",mt),u("DDDD",ct),p(["DDD","DDDD"],function(t,e,n){n._dayOfYear=h(t)}),i("m",["mm",2],0,"minute"),u("m",n,l),u("mm",n,e),p(["m","mm"],E);var sn,ht=Pt("Minutes",!1),yt=(i("s",["ss",2],0,"second"),u("s",n,l),u("ss",n,e),p(["s","ss"],k),Pt("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),u("S",mt,ut),u("SS",mt,e),u("SSS",mt,ct),sn="SSSS";sn.length<=9;sn+="S")u(sn,bt);function an(t,e){e[xt]=h(1e3*("0."+t))}for(sn="S";sn.length<=9;sn+="S")p(sn,an);function ln(t){return t}function dn(t,e,n,i){var o=R(),i=d().set(i,e);return o[n](i,t)}function un(t,e,n){if(b(t)&&(e=t,t=void 0),t=t||"",null!=e)return dn(t,e,n,"month");for(var i=[],o=0;o<12;o++)i[o]=dn(t,o,n,"month");return i}function cn(t,e,n,i){"boolean"==typeof t?b(e)&&(n=e,e=void 0):(e=t,t=!1,b(n=e)&&(n=e,e=void 0)),e=e||"";var o,r=R(),s=t?r._week.dow:0,a=[];if(null!=n)return dn(e,(n+s)%7,i,"day");for(o=0;o<7;o++)a[o]=dn(e,(o+s)%7,i,"day");return a}pt=Pt("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName"),(o=G.prototype).add=Nt,o.calendar=function(t,e){1===arguments.length&&(arguments[0]?_(n=arguments[0])||z(n)||qe(n)||b(n)||(r=m(i=n),o=!1,r&&(o=0===i.filter(function(t){return!b(t)&&qe(i)}).length),r&&o)||function(t){for(var e=N(t)&&!L(t),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=i.length,r=0;r<o;r+=1)n=n||v(t,i[r]);return e&&n}(n)||null==n?(t=arguments[0],e=void 0):function(t){for(var e=N(t)&&!L(t),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<i.length;o+=1)n=n||v(t,i[o]);return e&&n}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n,i,o,t=t||O(),r=Le(t,this).startOf("day"),r=g.calendarFormat(this,r)||"sameElse",e=e&&(s(e[r])?e[r].call(this,t):e[r]);return this.format(e||this.localeData().calendar(r,this,O(t)))},o.clone=function(){return new G(this)},o.diff=function(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=Le(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=a(e)){case"year":r=Ge(this,i)/12;break;case"month":r=Ge(this,i);break;case"quarter":r=Ge(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:c(r)},o.endOf=function(t){var e,n;if(void 0!==(t=a(t))&&"millisecond"!==t&&this.isValid()){switch(n=this._isUTC?tn:Je,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ke(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ke(e,1e3)-1}this._d.setTime(e),g.updateOffset(this,!0)}return this},o.format=function(t){return t=t||(this.isUtc()?g.defaultFormatUtc:g.defaultFormat),t=rt(this,t),this.localeData().postformat(t)},o.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||O(t).isValid())?P({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},o.fromNow=function(t){return this.from(O(),t)},o.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||O(t).isValid())?P({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},o.toNow=function(t){return this.to(O(),t)},o.get=function(t){return s(this[t=a(t)])?this[t]():this},o.invalidAt=function(){return w(this).overflow},o.isAfter=function(t,e){return t=_(t)?t:O(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},o.isBefore=function(t,e){return t=_(t)?t:O(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},o.isBetween=function(t,e,n,i){return t=_(t)?t:O(t),e=_(e)?e:O(e),!!(this.isValid()&&t.isValid()&&e.isValid())&&("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},o.isSame=function(t,e){t=_(t)?t:O(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=a(e)||"millisecond")?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},o.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},o.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},o.isValid=function(){return B(this)},o.lang=Jt,o.locale=Qe,o.localeData=Xe,o.max=gt,o.min=ft,o.parsingFlags=function(){return Y({},w(this))},o.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)v(t,e)&&n.push({unit:e,priority:dt[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=lt(t)),i=n.length,o=0;o<i;o++)this[n[o].unit](t[n[o].unit]);else if(s(this[t=a(t)]))return this[t](e);return this},o.startOf=function(t){var e,n;if(void 0!==(t=a(t))&&"millisecond"!==t&&this.isValid()){switch(n=this._isUTC?tn:Je,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ke(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ke(e,1e3)}this._d.setTime(e),g.updateOffset(this,!0)}return this},o.subtract=Zt,o.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},o.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},o.toDate=function(){return new Date(this.valueOf())},o.toISOString=function(t){var e;return this.isValid()?(e=(t=!0!==t)?this.clone().utc():this).year()<0||9999<e.year()?rt(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):s(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",rt(e,"Z")):rt(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},o.inspect=function(){var t,e,n;return this.isValid()?(e="moment",t="",this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},o.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},o.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].name;if(e[n].until<=t&&t<=e[n].since)return e[n].name}return""},o.eraNarrow=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].narrow;if(e[n].until<=t&&t<=e[n].since)return e[n].narrow}return""},o.eraAbbr=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;n<i;++n){if(t=this.clone().startOf("day").valueOf(),e[n].since<=t&&t<=e[n].until)return e[n].abbr;if(e[n].until<=t&&t<=e[n].since)return e[n].abbr}return""},o.eraYear=function(){for(var t,e,n=this.localeData().eras(),i=0,o=n.length;i<o;++i)if(t=n[i].since<=n[i].until?1:-1,e=this.clone().startOf("day").valueOf(),n[i].since<=e&&e<=n[i].until||n[i].until<=e&&e<=n[i].since)return(this.year()-g(n[i].since).year())*t+n[i].offset;return this.year()},o.year=Ot,o.isLeapYear=function(){return kt(this.year())},o.weekYear=function(t){return rn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},o.isoWeekYear=function(t){return rn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},o.quarter=o.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},o.month=$t,o.daysInMonth=function(){return Ft(this.year(),this.month())},o.week=o.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},o.isoWeek=o.isoWeeks=function(t){var e=Qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},o.weeksInYear=function(){var t=this.localeData()._week;return M(this.year(),t.dow,t.doy)},o.weeksInWeekYear=function(){var t=this.localeData()._week;return M(this.weekYear(),t.dow,t.doy)},o.isoWeeksInYear=function(){return M(this.year(),1,4)},o.isoWeeksInISOWeekYear=function(){return M(this.isoWeekYear(),1,4)},o.date=vt,o.day=o.days=function(t){var e,n,i;return this.isValid()?(e=Ht(this,"Day"),null!=t?(n=t,i=this.localeData(),t="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(t-e,"d")):e):null!=t?this:NaN},o.weekday=function(t){var e;return this.isValid()?(e=(this.day()+7-this.localeData()._week.dow)%7,null==t?e:this.add(t-e,"d")):null!=t?this:NaN},o.isoWeekday=function(t){var e,n;return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN},o.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},o.hour=o.hours=Tt,o.minute=o.minutes=ht,o.second=o.seconds=yt,o.millisecond=o.milliseconds=pt,o.utcOffset=function(t,e,n){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:ze(this);if("string"==typeof t){if(null===(t=Ne(St,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=ze(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!e||this._changeInProgress?Ve(this,P(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this},o.utc=function(t){return this.utcOffset(0,t)},o.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(ze(this),"m"),this},o.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ne(_t,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},o.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?O(t).utcOffset():0,(this.utcOffset()-t)%60==0)},o.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},o.isLocal=function(){return!!this.isValid()&&!this._isUTC},o.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},o.isUtc=je,o.isUTC=je,o.zoneAbbr=function(){return this._isUTC?"UTC":""},o.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},o.dates=t("dates accessor is deprecated. Use date instead.",vt),o.months=t("months accessor is deprecated. Use month instead",$t),o.years=t("years accessor is deprecated. Use year instead",Ot),o.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),o.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return y(this._isDSTShifted)&&(q(t={},this),(t=xe(t))._a?(e=(t._isUTC?d:O)(t._a),this._isDSTShifted=this.isValid()&&0<function(t,e){for(var n=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0,r=0;r<n;r++)h(t[r])!==h(e[r])&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted}),(l=J.prototype).calendar=function(t,e,n){return s(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},l.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(et).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},l.invalidDate=function(){return this._invalidDate},l.ordinal=function(t){return this._ordinal.replace("%d",t)},l.preparse=ln,l.postformat=ln,l.relativeTime=function(t,e,n,i){var o=this._relativeTime[n];return s(o)?o(t,e,n,i):o.replace(/%d/i,t)},l.pastFuture=function(t,e){return s(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},l.set=function(t){var e,n;for(n in t)v(t,n)&&(s(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},l.eras=function(t,e){for(var n,i=this._eras||R("en")._eras,o=0,r=i.length;o<r;++o)switch("string"==typeof i[o].since&&(n=g(i[o].since).startOf("day"),i[o].since=n.valueOf()),typeof i[o].until){case"undefined":i[o].until=1/0;break;case"string":n=g(i[o].until).startOf("day").valueOf(),i[o].until=n.valueOf()}return i},l.erasParse=function(t,e,n){var i,o,r,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,o=l.length;i<o;++i)if(r=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(r===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if(0<=[r,s,a].indexOf(t))return l[i]},l.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?g(t.since).year():g(t.since).year()+(e-t.offset)*n},l.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||nn.call(this),t?this._erasAbbrRegex:this._erasRegex},l.erasNameRegex=function(t){return v(this,"_erasNameRegex")||nn.call(this),t?this._erasNameRegex:this._erasRegex},l.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||nn.call(this),t?this._erasNarrowRegex:this._erasRegex},l.months=function(t,e){return t?(m(this._months)?this._months:this._months[(this._months.isFormat||zt).test(e)?"format":"standalone"])[t.month()]:m(this._months)?this._months:this._months.standalone},l.monthsShort=function(t,e){return t?(m(this._monthsShort)?this._monthsShort:this._monthsShort[zt.test(e)?"format":"standalone"])[t.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},l.monthsParse=function(t,e,n){var i,o;if(this._monthsParseExact)return function(t,e,n){var i,o,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(o=x.call(this._shortMonthsParse,t))?o:null:-1!==(o=x.call(this._longMonthsParse,t))?o:null:"MMM"===e?-1!==(o=x.call(this._shortMonthsParse,t))||-1!==(o=x.call(this._longMonthsParse,t))?o:null:-1!==(o=x.call(this._longMonthsParse,t))||-1!==(o=x.call(this._shortMonthsParse,t))?o:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},l.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Wt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=Yt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},l.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Wt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},l.week=function(t){return Qt(t,this._week.dow,this._week.doy).week},l.firstDayOfYear=function(){return this._week.doy},l.firstDayOfWeek=function(){return this._week.dow},l.weekdays=function(t,e){return e=m(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"],!0===t?Xt(e,this._week.dow):t?e[t.day()]:e},l.weekdaysMin=function(t){return!0===t?Xt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},l.weekdaysShort=function(t){return!0===t?Xt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},l.weekdaysParse=function(t,e,n){var i,o;if(this._weekdaysParseExact)return function(t,e,n){var i,o,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=x.call(this._weekdaysParse,t))?o:null:"ddd"===e?-1!==(o=x.call(this._shortWeekdaysParse,t))?o:null:-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:"dddd"===e?-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._shortWeekdaysParse,t))||-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:"ddd"===e?-1!==(o=x.call(this._shortWeekdaysParse,t))||-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._minWeekdaysParse,t))?o:null:-1!==(o=x.call(this._minWeekdaysParse,t))||-1!==(o=x.call(this._weekdaysParse,t))||-1!==(o=x.call(this._shortWeekdaysParse,t))?o:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},l.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},l.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},l.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},l.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},l.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},he("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===h(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),g.lang=t("moment.lang is deprecated. Use moment.locale instead.",he),g.langData=t("moment.langData is deprecated. Use moment.localeData instead.",R);var H=Math.abs;function hn(t,e,n,i){return e=P(e,n),t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function pn(t){return t<0?Math.floor(t):Math.ceil(t)}function fn(t){return 4800*t/146097}function gn(t){return 146097*t/4800}function mn(t){return function(){return this.as(t)}}function vn(t){return function(){return this.isValid()?this._data[t]:NaN}}ut=mn("ms"),e=mn("s"),mt=mn("m"),ct=mn("h"),Nt=mn("d"),gt=mn("w"),ft=mn("M"),Zt=mn("Q"),Tt=mn("y"),ht=ut;var yt=vn("milliseconds"),pt=vn("seconds"),vt=vn("minutes"),Ot=vn("hours"),l=vn("days"),yn=vn("months"),bn=vn("years"),wn=Math.round,_n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var Sn=Math.abs;function Tn(t){return(0<t)-(t<0)||+t}function Dn(){var t,e,n,i,o,r,s,a,l,d,u;return this.isValid()?(t=Sn(this._milliseconds)/1e3,e=Sn(this._days),n=Sn(this._months),(a=this.asSeconds())?(i=c(t/60),o=c(i/60),t%=60,i%=60,r=c(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=Tn(this._months)!==Tn(a)?"-":"",d=Tn(this._days)!==Tn(a)?"-":"",u=Tn(this._milliseconds)!==Tn(a)?"-":"",(a<0?"-":"")+"P"+(r?l+r+"Y":"")+(n?l+n+"M":"")+(e?d+e+"D":"")+(o||i||t?"T":"")+(o?u+o+"H":"")+(i?u+i+"M":"")+(t?u+s+"S":"")):"P0D"):this.localeData().invalidDate()}var A=Oe.prototype;return A.isValid=function(){return this._isValid},A.abs=function(){var t=this._data;return this._milliseconds=H(this._milliseconds),this._days=H(this._days),this._months=H(this._months),t.milliseconds=H(t.milliseconds),t.seconds=H(t.seconds),t.minutes=H(t.minutes),t.hours=H(t.hours),t.months=H(t.months),t.years=H(t.years),this},A.add=function(t,e){return hn(this,t,e,1)},A.subtract=function(t,e){return hn(this,t,e,-1)},A.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=a(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(gn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},A.asMilliseconds=ut,A.asSeconds=e,A.asMinutes=mt,A.asHours=ct,A.asDays=Nt,A.asWeeks=gt,A.asMonths=ft,A.asQuarters=Zt,A.asYears=Tt,A.valueOf=ht,A._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*pn(gn(n)+e),n=e=0),i.milliseconds=t%1e3,t=c(t/1e3),i.seconds=t%60,t=c(t/60),i.minutes=t%60,t=c(t/60),i.hours=t%24,e+=c(t/24),n+=t=c(fn(e)),e-=pn(gn(t)),t=c(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},A.clone=function(){return P(this)},A.get=function(t){return t=a(t),this.isValid()?this[t+"s"]():NaN},A.milliseconds=yt,A.seconds=pt,A.minutes=vt,A.hours=Ot,A.days=l,A.weeks=function(){return c(this.days()/7)},A.months=yn,A.years=bn,A.humanize=function(t,e){var n,i,o,r,s,a,l,d,u,c,h,p;return this.isValid()?(n=!1,r=_n,"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(r=Object.assign({},_n,e),null!=e.s)&&null==e.ss&&(r.ss=e.s-1),t=this.localeData(),o=!n,r=r,s=t,a=P(i=this).abs(),l=wn(a.as("s")),d=wn(a.as("m")),u=wn(a.as("h")),c=wn(a.as("d")),h=wn(a.as("M")),p=wn(a.as("w")),a=wn(a.as("y")),l=(l<=r.ss?["s",l]:l<r.s&&["ss",l])||(d<=1?["m"]:d<r.m&&["mm",d])||(u<=1?["h"]:u<r.h&&["hh",u])||(c<=1?["d"]:c<r.d&&["dd",c]),(l=(l=null!=r.w?l||(p<=1?["w"]:p<r.w&&["ww",p]):l)||(h<=1?["M"]:h<r.M&&["MM",h])||(a<=1?["y"]:["yy",a]))[2]=o,l[3]=0<+i,l[4]=s,e=function(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}.apply(null,l),n&&(e=t.pastFuture(+this,e)),t.postformat(e)):this.localeData().invalidDate()},A.toISOString=Dn,A.toString=Dn,A.toJSON=Dn,A.locale=Qe,A.localeData=Xe,A.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dn),A.lang=Jt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),u("x",wt),u("X",/[+-]?\d+(\.\d{1,3})?/),p("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),p("x",function(t,e,n){n._d=new Date(h(t))}),g.version="2.30.1",F=O,g.fn=o,g.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},g.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=d,g.unix=function(t){return O(1e3*t)},g.months=function(t,e){return un(t,e,"months")},g.isDate=z,g.locale=he,g.invalid=$,g.duration=P,g.isMoment=_,g.weekdays=function(t,e,n){return cn(t,e,n,"weekdays")},g.parseZone=function(){return O.apply(null,arguments).parseZone()},g.localeData=R,g.isDuration=Pe,g.monthsShort=function(t,e){return un(t,e,"monthsShort")},g.weekdaysMin=function(t,e,n){return cn(t,e,n,"weekdaysMin")},g.defineLocale=pe,g.updateLocale=function(t,e){var n,i;return null!=e?(i=le,null!=I[t]&&null!=I[t].parentLocale?I[t].set(K(I[t]._config,e)):(e=K(i=null!=(n=ce(t))?n._config:i,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=I[t],I[t]=i),he(t)):null!=I[t]&&(null!=I[t].parentLocale?(I[t]=I[t].parentLocale,t===he()&&he(t)):null!=I[t]&&delete I[t]),I[t]},g.locales=function(){return tt(I)},g.weekdaysShort=function(t,e,n){return cn(t,e,n,"weekdaysShort")},g.normalizeUnits=a,g.relativeTimeRounding=function(t){return void 0===t?wn:"function"==typeof t&&(wn=t,!0)},g.relativeTimeThreshold=function(t,e){return void 0!==_n[t]&&(void 0===e?_n[t]:(_n[t]=e,"s"===t&&(_n.ss=e-1),!0))},g.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},g.prototype=o,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("jquery")):"function"==typeof define&&define.amd?define(["moment","jquery"],e):"object"==typeof exports?exports.FullCalendar=e(require("moment"),require("jquery")):t.FullCalendar=e(t.moment,t.jQuery)}("undefined"!=typeof self?self:this,function(n,i){return r=[function(t,e){t.exports=n},,function(t,e){var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])});e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e){t.exports=i},function(t,a,e){function n(t){t.height("")}function r(t){var e=t[0].offsetWidth-t[0].clientWidth,n=t[0].offsetHeight-t[0].clientHeight,e=i(e),n={left:0,right:0,top:0,bottom:i(n)};return(y=null===y?function(){var t=v("<div><div></div></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),e=t.children().offset().left>t.offset().left;return t.remove(),e}():y)&&"rtl"===t.css("direction")?n.left=e:n.right=e,n}function i(t){return t=Math.max(0,t),Math.round(t)}function s(t,e){return parseFloat(t.css(e))||0}function o(t){t.preventDefault()}function l(t,e,n,i,o){return n.func?n.func(t,e):(t=t[n.field],e=e[n.field],d(t=null==t&&i?i[n.field]:t,e=null==e&&o?o[n.field]:e)*(n.order||1))}function d(t,e){return t||e?null==e?-1:null==t?1:"string"===v.type(t)||"string"===v.type(e)?String(t).localeCompare(String(e)):t-e:0}function u(t,e){for(var n,i,o,r,s=0;s<a.unitsDesc.length&&(n=a.unitsDesc[s],i=n,o=t,!(1<=(r=null!=(r=e)?r.diff(o,i,!0):m.isDuration(o)?o.as(i):o.end.diff(o.start,i,!0))&&g(r)));s++);return n}function c(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=window.console;if(n&&n.log)return n.log.apply(n,t)}function p(t,e){return b.call(t,e)}function f(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br>")}function g(t){return t%1==0}Object.defineProperty(a,"__esModule",{value:!0});var m=e(0),v=e(3),y=(a.compensateScroll=function(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})},a.uncompensateScroll=function(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})},a.disableCursor=function(){v("body").addClass("fc-not-allowed")},a.enableCursor=function(){v("body").removeClass("fc-not-allowed")},a.distributeHeight=function(i,t,e){var o=Math.floor(t/i.length),r=Math.floor(t-o*(i.length-1)),s=[],a=[],l=[],d=0;n(i),i.each(function(t,e){var t=t===i.length-1?r:o,n=v(e).outerHeight(!0);n<t?(s.push(e),a.push(n),l.push(v(e).height())):d+=n}),e&&(t-=d,o=Math.floor(t/s.length),r=Math.floor(t-o*(s.length-1))),v(s).each(function(t,e){var n=t===s.length-1?r:o,i=a[t],t=n-(i-l[t]);i<n&&v(e).height(t)})},a.undistributeHeight=n,a.matchCellWidths=function(t){var n=0;return t.find("> *").each(function(t,e){e=v(e).outerWidth();n<e&&(n=e)}),n++,t.width(n),n},a.subtractInnerElHeight=function(t,e){var n=t.add(e);return n.css({position:"relative",left:-1}),t=t.outerHeight()-e.outerHeight(),n.css({position:"",left:""}),t},a.getScrollParent=function(t){var e=t.css("position"),n=t.parents().filter(function(){var t=v(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:v(t[0].ownerDocument||document)},a.getOuterRect=function(t,e){var n=(i=t.offset()).left-(e?e.left:0),i=i.top-(e?e.top:0);return{left:n,right:n+t.outerWidth(),top:i,bottom:i+t.outerHeight()}},a.getClientRect=function(t,e){var n=t.offset(),i=r(t),o=n.left+s(t,"border-left-width")+i.left-(e?e.left:0),n=n.top+s(t,"border-top-width")+i.top-(e?e.top:0);return{left:o,right:o+t[0].clientWidth,top:n,bottom:n+t[0].clientHeight}},a.getContentRect=function(t,e){var n=(i=t.offset()).left+s(t,"border-left-width")+s(t,"padding-left")-(e?e.left:0),i=i.top+s(t,"border-top-width")+s(t,"padding-top")-(e?e.top:0);return{left:n,right:n+t.width(),top:i,bottom:i+t.height()}},a.getScrollbarWidths=r,null),b=(a.isPrimaryMouseButton=function(t){return 1===t.which&&!t.ctrlKey},a.getEvX=function(t){var e=t.originalEvent.touches;return(e&&e.length?e[0]:t).pageX},a.getEvY=function(t){var e=t.originalEvent.touches;return(e&&e.length?e[0]:t).pageY},a.getEvIsTouch=function(t){return/^touch/.test(t.type)},a.preventSelection=function(t){t.addClass("fc-unselectable").on("selectstart",o)},a.allowSelection=function(t){t.removeClass("fc-unselectable").off("selectstart",o)},a.preventDefault=o,a.intersectRects=function(t,e){return(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}).left<t.right&&t.top<t.bottom&&t},a.constrainPoint=function(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}},a.getRectCenter=function(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}},a.diffPoints=function(t,e){return{left:t.left-e.left,top:t.top-e.top}},a.parseFieldSpecs=function(t){var e,n,i=[],o=[];for("string"==typeof t?o=t.split(/\s*,\s*/):"function"==typeof t?o=[t]:v.isArray(t)&&(o=t),e=0;e<o.length;e++)"string"==typeof(n=o[e])?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i},a.compareByFieldSpecs=function(t,e,n,i,o){for(var r,s=0;s<n.length;s++)if(r=l(t,e,n[s],i,o))return r;return 0},a.compareByFieldSpec=l,a.flexibleCompare=d,a.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],a.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],a.diffDayTime=function(t,e){return m.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days"),ms:t.time()-e.time()})},a.diffDay=function(t,e){return m.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days")})},a.diffByUnit=function(t,e,n){return m.duration(Math.round(t.diff(e,n,!0)),n)},a.computeGreatestUnit=u,a.computeDurationGreatestUnit=function(t,e){return t="week"===(t=u(t))&&"object"==typeof e&&e.days?"day":t},a.divideRangeByDuration=function(t,e,n){var i;return c(n)?(e-t)/n:(i=n.asMonths(),1<=Math.abs(i)&&g(i)?e.diff(t,"months",!0)/i:e.diff(t,"days",!0)/n.asDays())},a.divideDurationByDuration=function(t,e){var n,i;return c(t)||c(e)?t/e:(n=t.asMonths(),i=e.asMonths(),1<=Math.abs(n)&&g(n)&&1<=Math.abs(i)&&g(i)?n/i:t.asDays()/e.asDays())},a.multiplyDuration=function(t,e){var n;return c(t)?m.duration(t*e):(n=t.asMonths(),1<=Math.abs(n)&&g(n)?m.duration({months:n*e}):m.duration({days:t.asDays()*e}))},a.durationHasTime=c,a.isNativeDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date},a.isTimeString=function(t){return"string"==typeof t&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)},a.log=h,a.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=window.console;return n&&n.warn?n.warn.apply(n,t):h.apply(null,t)},{}.hasOwnProperty);a.mergeProps=function t(e,n){var i,o,r,s,a,l,d={};if(n)for(i=0;i<n.length;i++){for(o=n[i],r=[],s=e.length-1;0<=s;s--)if("object"==typeof(a=e[s][o]))r.unshift(a);else if(void 0!==a){d[o]=a;break}r.length&&(d[o]=t(r))}for(i=e.length-1;0<=i;i--)for(o in l=e[i])o in d||(d[o]=l[o]);return d},a.copyOwnProps=function(t,e){for(var n in t)p(t,n)&&(e[n]=t[n])},a.hasOwnProp=p,a.applyAll=function(t,e,n){if(t=v.isFunction(t)?[t]:t){for(var i=void 0,o=void 0,i=0;i<t.length;i++)o=t[i].apply(e,n)||o;return o}},a.removeMatching=function(t,e){for(var n=0,i=0;i<t.length;)e(t[i])?(t.splice(i,1),n++):i++;return n},a.removeExact=function(t,e){for(var n=0,i=0;i<t.length;)t[i]===e?(t.splice(i,1),n++):i++;return n},a.isArraysEqual=function(t,e){var n,i=t.length;if(null==i||i!==e.length)return!1;for(n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0},a.firstDefined=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if(void 0!==t[n])return t[n]},a.htmlEscape=f,a.stripHtmlEntities=function(t){return t.replace(/&.*?;/g,"")},a.cssToStr=function(t){var n=[];return v.each(t,function(t,e){null!=e&&n.push(t+":"+e)}),n.join(";")},a.attrsToStr=function(t){var n=[];return v.each(t,function(t,e){null!=e&&n.push(t+'="'+f(e)+'"')}),n.join(" ")},a.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},a.compareNumbers=function(t,e){return t-e},a.isInt=g,a.proxy=function(t,e){var n=t[e];return function(){return n.apply(t,arguments)}},a.debounce=function(e,n,i){function o(){var t=+new Date-l;t<n?r=setTimeout(o,n-t):(r=null,i||(d=e.apply(a,s),a=s=null))}var r,s,a,l,d;return void 0===i&&(i=!1),function(){a=this,s=arguments,l=+new Date;var t=i&&!r;return r=r||setTimeout(o,n),t&&(d=e.apply(a,s),a=s=null),d}}},function(t,e,n){function s(t,e){return t.startMs-e.startMs}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(11);function a(t,e){this.isStart=!0,this.isEnd=!0,i.isMoment(t)&&(t=t.clone().stripZone()),i.isMoment(e)&&(e=e.clone().stripZone()),t&&(this.startMs=t.valueOf()),e&&(this.endMs=e.valueOf())}a.invertRanges=function(t,e){var n,i,o=[],r=e.startMs;for(t.sort(s),n=0;n<t.length;n++)(i=t[n]).startMs>r&&o.push(new a(r,i.startMs)),i.endMs>r&&(r=i.endMs);return r<e.endMs&&o.push(new a(r,e.endMs)),o},a.prototype.intersect=function(t){var e=this.startMs,n=this.endMs,i=null;return null!=t.startMs&&(e=null==e?t.startMs:Math.max(e,t.startMs)),null!=t.endMs&&(n=null==n?t.endMs:Math.min(n,t.endMs)),(null==e||null==n||e<n)&&((i=new a(e,n)).isStart=this.isStart&&e===this.startMs,i.isEnd=this.isEnd&&n===this.endMs),i},a.prototype.intersectsWith=function(t){return(null==this.endMs||null==t.startMs||this.endMs>t.startMs)&&(null==this.startMs||null==t.endMs||this.startMs<t.endMs)},a.prototype.containsRange=function(t){return(null==this.startMs||null!=t.startMs&&t.startMs>=this.startMs)&&(null==this.endMs||null!=t.endMs&&t.endMs<=this.endMs)},a.prototype.containsDate=function(t){t=t.valueOf();return(null==this.startMs||t>=this.startMs)&&(null==this.endMs||t<this.endMs)},a.prototype.constrainDate=function(t){t=t.valueOf();return null!=this.startMs&&t<this.startMs&&(t=this.startMs),t=null!=this.endMs&&t>=this.endMs?this.endMs-1:t},a.prototype.equals=function(t){return this.startMs===t.startMs&&this.endMs===t.endMs},a.prototype.clone=function(){var t=new a(this.startMs,this.endMs);return t.isStart=this.isStart,t.isEnd=this.isEnd,t},a.prototype.getStart=function(){return null!=this.startMs?o.default.utc(this.startMs).stripZone():null},a.prototype.getEnd=function(){return null!=this.endMs?o.default.utc(this.endMs).stripZone():null},a.prototype.as=function(t){return i.utc(this.endMs).diff(i.utc(this.startMs),t,!0)},e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(52),a=n(35),l=n(36),n=(i=a.default,o.__extends(d,i),d.parse=function(t,e){e=new this(e);return!("object"!=typeof t||!e.applyProps(t))&&e},d.normalizeId=function(t){return t?String(t):null},d.prototype.fetch=function(t,e,n){},d.prototype.removeEventDefsById=function(t){},d.prototype.removeAllEventDefs=function(){},d.prototype.getPrimitive=function(t){},d.prototype.parseEventDefs=function(t){for(var e,n=[],i=0;i<t.length;i++)(e=this.parseEventDef(t[i]))&&n.push(e);return n},d.prototype.parseEventDef=function(t){var e=this.calendar.opt("eventDataTransform"),n=this.eventDataTransform;return e&&(t=e(t,this.calendar)),n&&(t=n(t,this.calendar)),l.default.parse(t,this)},d.prototype.applyManualStandardProps=function(t){return null!=t.id&&(this.id=d.normalizeId(t.id)),r.isArray(t.className)?this.className=t.className:"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},d.uuid=0,d.defineStandardProps=s.default.defineStandardProps,d.copyVerbatimStandardProps=s.default.copyVerbatimStandardProps,d);function d(t){var e=i.call(this)||this;return e.calendar=t,e.className=[],e.uid=String(d.uuid++),e}e.default=n,s.default.mixInto(n),n.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),n=n(15),s=0,n=(i=n.default,o.__extends(a,i),a.prototype.listenTo=function(t,e,n){if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&this.listenTo(t,i,e[i]);else"string"==typeof e&&t.on(e+"."+this.getListenerNamespace(),r.proxy(n,this))},a.prototype.stopListeningTo=function(t,e){t.off((e||"")+"."+this.getListenerNamespace())},a.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=s++),"_listener"+this.listenerId},a);function a(){return null!==i&&i.apply(this,arguments)||this}e.default=n},,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(37),s=n(53),a=n(16),n=(i=r.default,o.__extends(l,i),l.prototype.buildInstances=function(){return[this.buildInstance()]},l.prototype.buildInstance=function(){return new s.default(this,this.dateProfile)},l.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},l.prototype.clone=function(){var t=i.prototype.clone.call(this);return t.dateProfile=this.dateProfile,t},l.prototype.rezone=function(){var t=this.source.calendar,e=this.dateProfile;this.dateProfile=new a.default(t.moment(e.start),e.end?t.moment(e.end):null,t)},l.prototype.applyManualStandardProps=function(t){var e=i.prototype.applyManualStandardProps.call(this,t),n=a.default.parse(t,this.source);return!!n&&(this.dateProfile=n,null!=t.date&&(this.miscProps.date=t.date),e)},l);function l(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},,function(t,e,n){function i(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i,o,r,s,a=t[0],l=1===t.length&&"string"==typeof a;return d.isMoment(a)||c.isNativeDate(a)||void 0===a?s=d.apply(null,t):(o=i=!1,l?h.test(a)?(t=[a+="-01"],o=i=!0):(r=p.exec(a))&&(i=!r[5],o=!0):u.isArray(a)&&(o=!0),s=e||i?d.utc.apply(d,t):d.apply(null,t),i?(s._ambigTime=!0,s._ambigZone=!0):n&&(o?s._ambigZone=!0:l&&s.utcOffset(a))),s._fullCalendar=!0,s}Object.defineProperty(e,"__esModule",{value:!0});function o(){return i(arguments)}var d=n(0),u=n(3),c=n(4),h=/^\s*\d{4}-\d\d$/,p=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,n=d.fn,r=(e.newMomentProto=n,u.extend({},n)),s=(e.oldMomentProto=r,d.momentProperties);s.push("_fullCalendar"),s.push("_ambigTime"),s.push("_ambigZone"),e.oldMomentFormat=function(t,e){return r.format.call(t,e)};(e.default=o).utc=function(){var t=i(arguments,!0);return t.hasTime()&&t.utc(),t},o.parseZone=function(){return i(arguments,!0,!0)},n.week=n.weeks=function(t){var e=this._locale._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):("ISO"===e?r.isoWeek:r.week).apply(this,arguments)},n.time=function(t){if(!this._fullCalendar)return r.time.apply(this,arguments);if(null==t)return d.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,d.isDuration(t)||d.isMoment(t)||(t=d.duration(t));var e=0;return d.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},n.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},n.hasTime=function(){return!this._ambigTime},n.stripZone=function(){var t;return this._ambigZone||(t=this._ambigTime,this.utc(!0),this._ambigTime=t||!1,this._ambigZone=!0),this},n.hasZone=function(){return!this._ambigZone},n.local=function(t){return r.local.call(this,this._ambigZone||t),this._ambigTime=!1,this._ambigZone=!1,this},n.utc=function(t){return r.utc.call(this,t),this._ambigTime=!1,this._ambigZone=!1,this},n.utcOffset=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),r.utcOffset.apply(this,arguments)}},function(t,e){function n(t,e){this.isAllDay=!1,this.unzonedRange=t,this.isAllDay=e}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.toLegacy=function(t){return{start:t.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:t.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),n=n(15),n=(i=n.default,o.__extends(s,i),s.prototype.on=function(t,e){return r(this).on(t,this._prepareIntercept(e)),this},s.prototype.one=function(t,e){return r(this).one(t,this._prepareIntercept(e)),this},s.prototype._prepareIntercept=function(n){function t(t,e){return n.apply(e.context||this,e.args||[])}return n.guid||(n.guid=r.guid++),t.guid=n.guid,t},s.prototype.off=function(t,e){return r(this).off(t,e),this},s.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return r(this).triggerHandler(t,{args:e}),this},s.prototype.triggerWith=function(t,e,n){return r(this).triggerHandler(t,{context:e,args:n}),this},s.prototype.hasHandlers=function(t){var e=r._data(this,"events");return e&&e[t]&&0<e[t].length},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e){function n(t){this.view=t._getView(),this.component=t}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.opt=function(t){return this.view.opt(t)},n.prototype.end=function(){},e.default=n},function(t,e){function n(){}Object.defineProperty(e,"__esModule",{value:!0}),n.mixInto=function(e){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(t){e.prototype[t]||(e.prototype[t]=n.prototype[t])})},n.mixOver=function(e){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(t){e.prototype[t]=n.prototype[t]})},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(5);function s(t,e,n){this.start=t,this.end=e||null,this.unzonedRange=this.buildUnzonedRange(n)}s.parse=function(t,e){var n,i,o=t.start||t.date,r=t.end;return!!o&&(o=(n=e.calendar).moment(o),r=r?n.moment(r):null,t=t.allDay,i=n.opt("forceEventDuration"),!!o.isValid())&&(!0===(t=null==t&&null==(t=e.allDayDefault)?n.opt("allDayDefault"):t)?(o.stripTime(),r&&r.stripTime()):!1===t&&(o.hasTime()||o.time(0),r)&&!r.hasTime()&&r.time(0),!(r=!r||r.isValid()&&r.isAfter(o)?r:null)&&i&&(r=n.getDefaultEventEnd(!o.hasTime(),o)),new s(o,r,n))},s.isStandardProp=function(t){return"start"===t||"date"===t||"end"===t||"allDay"===t},s.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},s.prototype.buildUnzonedRange=function(t){var e=this.start.clone().stripZone().valueOf(),t=this.getEnd(t).stripZone().valueOf();return new i.default(e,t)},s.prototype.getEnd=function(t){return this.end?this.end.clone():t.getDefaultEventEnd(this.isAllDay(),this.start)},e.default=s},function(t,e,n){function i(t,e){return!t&&!e||!(!t||!e)&&t.component===e.component&&o(t,e)&&o(e,t)}function o(t,e){for(var n in t)if(!/^(component|left|right|top|bottom)$/.test(n)&&t[n]!==e[n])return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0});var r,s=n(2),a=n(4),n=n(59),n=(r=n.default,s.__extends(l,r),l.prototype.handleInteractionStart=function(t){var e,n,i,o=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),t?(i=n={left:a.getEvX(t),top:a.getEvY(t)},o&&(e=a.getOuterRect(o),i=a.constrainPoint(i,e)),this.origHit=this.queryHit(i.left,i.top),o&&this.options.subjectCenter&&(this.origHit&&(e=a.intersectRects(this.origHit,e)||e),i=a.getRectCenter(e)),this.coordAdjust=a.diffPoints(i,n)):(this.origHit=null,this.coordAdjust=null),r.prototype.handleInteractionStart.call(this,t)},l.prototype.handleDragStart=function(t){r.prototype.handleDragStart.call(this,t),(t=this.queryHit(a.getEvX(t),a.getEvY(t)))&&this.handleHitOver(t)},l.prototype.handleDrag=function(t,e,n){r.prototype.handleDrag.call(this,t,e,n),i(t=this.queryHit(a.getEvX(n),a.getEvY(n)),this.hit)||(this.hit&&this.handleHitOut(),t&&this.handleHitOver(t))},l.prototype.handleDragEnd=function(t){this.handleHitDone(),r.prototype.handleDragEnd.call(this,t)},l.prototype.handleHitOver=function(t){var e=i(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},l.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},l.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},l.prototype.handleInteractionEnd=function(t,e){r.prototype.handleInteractionEnd.call(this,t,e),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},l.prototype.handleScrollEnd=function(){r.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},l.prototype.queryHit=function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)},l);function l(t,e){e=r.call(this,e)||this;return e.component=t,e}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.version="3.10.5",e.internalApiVersion=12;var i=n(4),i=(e.applyAll=i.applyAll,e.debounce=i.debounce,e.isInt=i.isInt,e.htmlEscape=i.htmlEscape,e.cssToStr=i.cssToStr,e.proxy=i.proxy,e.capitaliseFirstLetter=i.capitaliseFirstLetter,e.getOuterRect=i.getOuterRect,e.getClientRect=i.getClientRect,e.getContentRect=i.getContentRect,e.getScrollbarWidths=i.getScrollbarWidths,e.preventDefault=i.preventDefault,e.parseFieldSpecs=i.parseFieldSpecs,e.compareByFieldSpecs=i.compareByFieldSpecs,e.compareByFieldSpec=i.compareByFieldSpec,e.flexibleCompare=i.flexibleCompare,e.computeGreatestUnit=i.computeGreatestUnit,e.divideRangeByDuration=i.divideRangeByDuration,e.divideDurationByDuration=i.divideDurationByDuration,e.multiplyDuration=i.multiplyDuration,e.durationHasTime=i.durationHasTime,e.log=i.log,e.warn=i.warn,e.removeExact=i.removeExact,e.intersectRects=i.intersectRects,e.allowSelection=i.allowSelection,e.attrsToStr=i.attrsToStr,e.compareNumbers=i.compareNumbers,e.compensateScroll=i.compensateScroll,e.computeDurationGreatestUnit=i.computeDurationGreatestUnit,e.constrainPoint=i.constrainPoint,e.copyOwnProps=i.copyOwnProps,e.diffByUnit=i.diffByUnit,e.diffDay=i.diffDay,e.diffDayTime=i.diffDayTime,e.diffPoints=i.diffPoints,e.disableCursor=i.disableCursor,e.distributeHeight=i.distributeHeight,e.enableCursor=i.enableCursor,e.firstDefined=i.firstDefined,e.getEvIsTouch=i.getEvIsTouch,e.getEvX=i.getEvX,e.getEvY=i.getEvY,e.getRectCenter=i.getRectCenter,e.getScrollParent=i.getScrollParent,e.hasOwnProp=i.hasOwnProp,e.isArraysEqual=i.isArraysEqual,e.isNativeDate=i.isNativeDate,e.isPrimaryMouseButton=i.isPrimaryMouseButton,e.isTimeString=i.isTimeString,e.matchCellWidths=i.matchCellWidths,e.mergeProps=i.mergeProps,e.preventSelection=i.preventSelection,e.removeMatching=i.removeMatching,e.stripHtmlEntities=i.stripHtmlEntities,e.subtractInnerElHeight=i.subtractInnerElHeight,e.uncompensateScroll=i.uncompensateScroll,e.undistributeHeight=i.undistributeHeight,e.dayIDs=i.dayIDs,e.unitsDesc=i.unitsDesc,n(49)),i=(e.formatDate=i.formatDate,e.formatRange=i.formatRange,e.queryMostGranularFormatUnit=i.queryMostGranularFormatUnit,n(32)),i=(e.datepickerLocale=i.datepickerLocale,e.locale=i.locale,e.getMomentLocaleData=i.getMomentLocaleData,e.populateInstanceComputableOptions=i.populateInstanceComputableOptions,n(19)),i=(e.eventDefsToEventInstances=i.eventDefsToEventInstances,e.eventFootprintToComponentFootprint=i.eventFootprintToComponentFootprint,e.eventInstanceToEventRange=i.eventInstanceToEventRange,e.eventInstanceToUnzonedRange=i.eventInstanceToUnzonedRange,e.eventRangeToEventFootprint=i.eventRangeToEventFootprint,n(11)),i=(e.moment=i.default,n(13)),i=(e.EmitterMixin=i.default,n(7)),i=(e.ListenerMixin=i.default,n(51)),i=(e.Model=i.default,n(217)),i=(e.Constraints=i.default,n(55)),i=(e.DateProfileGenerator=i.default,n(5)),i=(e.UnzonedRange=i.default,n(12)),i=(e.ComponentFootprint=i.default,n(218)),i=(e.BusinessHourGenerator=i.default,n(219)),i=(e.EventPeriod=i.default,n(220)),i=(e.EventManager=i.default,n(37)),i=(e.EventDef=i.default,n(39)),i=(e.EventDefMutation=i.default,n(36)),i=(e.EventDefParser=i.default,n(53)),i=(e.EventInstance=i.default,n(50)),i=(e.EventRange=i.default,n(54)),i=(e.RecurringEventDef=i.default,n(9)),i=(e.SingleEventDef=i.default,n(40)),i=(e.EventDefDateMutation=i.default,n(16)),i=(e.EventDateProfile=i.default,n(38)),i=(e.EventSourceParser=i.default,n(6)),i=(e.EventSource=i.default,n(57)),i=(e.defineThemeSystem=i.defineThemeSystem,e.getThemeSystemClass=i.getThemeSystemClass,n(20)),i=(e.EventInstanceGroup=i.default,n(56)),i=(e.ArrayEventSource=i.default,n(223)),i=(e.FuncEventSource=i.default,n(224)),i=(e.JsonFeedEventSource=i.default,n(34)),i=(e.EventFootprint=i.default,n(35)),i=(e.Class=i.default,n(15)),i=(e.Mixin=i.default,n(58)),i=(e.CoordCache=i.default,n(225)),i=(e.Iterator=i.default,n(59)),i=(e.DragListener=i.default,n(17)),i=(e.HitDragListener=i.default,n(226)),i=(e.MouseFollower=i.default,n(52)),i=(e.ParsableModelMixin=i.default,n(227)),i=(e.Popover=i.default,n(21)),i=(e.Promise=i.default,n(228)),i=(e.TaskQueue=i.default,n(229)),i=(e.RenderQueue=i.default,n(41)),i=(e.Scroller=i.default,n(22)),i=(e.Theme=i.default,n(230)),i=(e.Component=i.default,n(231)),i=(e.DateComponent=i.default,n(42)),i=(e.InteractiveDateComponent=i.default,n(232)),i=(e.Calendar=i.default,n(43)),i=(e.View=i.default,n(24)),i=(e.defineView=i.defineView,e.getViewConfig=i.getViewConfig,n(60)),i=(e.DayTableMixin=i.default,n(61)),i=(e.BusinessHourRenderer=i.default,n(44)),i=(e.EventRenderer=i.default,n(62)),i=(e.FillRenderer=i.default,n(63)),i=(e.HelperRenderer=i.default,n(233)),i=(e.ExternalDropping=i.default,n(234)),i=(e.EventResizing=i.default,n(64)),i=(e.EventPointing=i.default,n(235)),i=(e.EventDragging=i.default,n(236)),i=(e.DateSelecting=i.default,n(237)),i=(e.DateClicking=i.default,n(14)),i=(e.Interaction=i.default,n(65)),i=(e.StandardInteractionsMixin=i.default,n(238)),i=(e.AgendaView=i.default,n(239)),i=(e.TimeGrid=i.default,n(240)),i=(e.TimeGridEventRenderer=i.default,n(242)),i=(e.TimeGridFillRenderer=i.default,n(241)),i=(e.TimeGridHelperRenderer=i.default,n(66)),i=(e.DayGrid=i.default,n(243)),i=(e.DayGridEventRenderer=i.default,n(245)),i=(e.DayGridFillRenderer=i.default,n(244)),i=(e.DayGridHelperRenderer=i.default,n(67)),i=(e.BasicView=i.default,n(68)),i=(e.BasicViewDateProfileGenerator=i.default,n(246)),i=(e.MonthView=i.default,n(247)),i=(e.MonthViewDateProfileGenerator=i.default,n(248)),i=(e.ListView=i.default,n(250)),i=(e.ListEventPointing=i.default,n(249));e.ListEventRenderer=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(50),o=n(34),r=n(12);e.eventDefsToEventInstances=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push.apply(n,t[i].buildInstances(e));return n},e.eventInstanceToEventRange=function(t){return new i.default(t.dateProfile.unzonedRange,t.def,t)},e.eventRangeToEventFootprint=function(t){return new o.default(new r.default(t.unzonedRange,t.eventDef.isAllDay()),t.eventDef,t.eventInstance)},e.eventInstanceToUnzonedRange=function(t){return t.dateProfile.unzonedRange},e.eventFootprintToComponentFootprint=function(t){return t.componentFootprint}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=n(19),s=n(50);function r(t){this.eventInstances=t||[]}r.prototype.getAllEventRanges=function(t){return t?this.sliceNormalRenderRanges(t):this.eventInstances.map(o.eventInstanceToEventRange)},r.prototype.sliceRenderRanges=function(t){return this.isInverse()?this.sliceInverseRenderRanges(t):this.sliceNormalRenderRanges(t)},r.prototype.sliceNormalRenderRanges=function(t){for(var e,n,i=this.eventInstances,o=[],r=0;r<i.length;r++)(n=(e=i[r]).dateProfile.unzonedRange.intersect(t))&&o.push(new s.default(n,e.def,e));return o},r.prototype.sliceInverseRenderRanges=function(t){var e=this.eventInstances.map(o.eventInstanceToUnzonedRange),n=this.getEventDef();return(e=i.default.invertRanges(e,t)).map(function(t){return new s.default(t,n)})},r.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},r.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},e.default=r},function(t,e,n){function i(e,n){e.then=function(t){return"function"==typeof t?s.resolve(t(n)):e}}function o(n){n.then=function(t,e){return"function"==typeof e&&e(),n}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),s={construct:function(t){var e=r.Deferred(),n=e.promise();return"function"==typeof t&&t(function(t){e.resolve(t),i(n,t)},function(){e.reject(),o(n)}),n},resolve:function(t){var e=r.Deferred().resolve(t).promise();return i(e,t),e},reject:function(){var t=r.Deferred().reject().promise();return o(t),t}};e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),n=(o.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},o.prototype.setIconOverride=function(t){var e,n;if(i.isPlainObject(t)){for(n in e=i.extend({},this.iconClasses),t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})},o.prototype.applyIconOverridePrefix=function(t){var e=this.iconOverridePrefix;return t=e&&0!==t.indexOf(e)?e+t:t},o.prototype.getClass=function(t){return this.classes[t]||""},o.prototype.getIconClass=function(t){t=this.iconClasses[t];return t?this.baseIconClass+" "+t:""},o.prototype.getCustomButtonIconClass=function(t){return this.iconOverrideCustomButtonOption&&(t=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},o);function o(t){this.optionsManager=t,this.processIconOverride()}(e.default=n).prototype.classes={},n.prototype.iconClasses={},n.prototype.baseIconClass="",n.prototype.iconOverridePrefix=""},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(18),r=n(13),n=n(7),s=(o.touchMouseIgnoreWait=500,null),a=0,l=(d.get=function(){return s||(s=new d).bind(),s},d.needed=function(){d.get(),a++},d.unneeded=function(){--a||(s.unbind(),s=null)},d.prototype.bind=function(){var e=this;this.listenTo(i(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(t){e.handleTouchMove(i.Event(t))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(t){e.handleScroll(i.Event(t))},!0)},d.prototype.unbind=function(){this.stopListeningTo(i(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy,{passive:!1}),window.removeEventListener("scroll",this.handleScrollProxy,!0)},d.prototype.handleTouchStart=function(t){this.stopTouch(t,!0),this.isTouching=!0,this.trigger("touchstart",t)},d.prototype.handleTouchMove=function(t){this.isTouching&&this.trigger("touchmove",t)},d.prototype.handleTouchCancel=function(t){this.isTouching&&(this.trigger("touchcancel",t),this.stopTouch(t))},d.prototype.handleTouchEnd=function(t){this.stopTouch(t)},d.prototype.handleMouseDown=function(t){this.shouldIgnoreMouse()||this.trigger("mousedown",t)},d.prototype.handleMouseMove=function(t){this.shouldIgnoreMouse()||this.trigger("mousemove",t)},d.prototype.handleMouseUp=function(t){this.shouldIgnoreMouse()||this.trigger("mouseup",t)},d.prototype.handleClick=function(t){this.shouldIgnoreMouse()||this.trigger("click",t)},d.prototype.handleSelectStart=function(t){this.trigger("selectstart",t)},d.prototype.handleContextMenu=function(t){this.trigger("contextmenu",t)},d.prototype.handleScroll=function(t){this.trigger("scroll",t)},d.prototype.stopTouch=function(t,e){void 0===e&&(e=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",t),e||this.startTouchMouseIgnore())},d.prototype.startTouchMouseIgnore=function(){var t=this,e=o.touchMouseIgnoreWait;e&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},e))},d.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},d);function d(){this.isTouching=!1,this.mouseIgnoreDepth=0}e.default=l,n.default.mixInto(l),r.default.mixInto(l)},function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0});e=e(18);n.viewHash={},e.views=n.viewHash,n.defineView=function(t,e){n.viewHash[t]=e},n.getViewConfig=function(t){return n.viewHash[t]}},,,,,,,,function(t,r,e){function n(t,e){var n,i=r.localeOptionHash[t]||(r.localeOptionHash[t]={});e&&(i=r.localeOptionHash[t]=l.mergeOptions([i,e])),n=o(t),s.each(c,function(t,e){null==i[t]&&(i[t]=e(n,i))}),l.globalDefaults.locale=t}function o(t){return i.localeData(t)||i.localeData("en")}Object.defineProperty(r,"__esModule",{value:!0});var s=e(3),i=e(0),a=e(18),l=e(33),d=e(4),u=(r.localeOptionHash={},a.locales=r.localeOptionHash,{buttonText:function(t){return{prev:d.stripHtmlEntities(t.prevText),next:d.stripHtmlEntities(t.nextText),today:d.stripHtmlEntities(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}}),c={dayOfMonthFormat:function(t,e){t=(t=t.longDateFormat("l")).replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,"");return e.isRTL?t+=" ddd":t="ddd "+t,t},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},h={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};r.populateInstanceComputableOptions=function(n){s.each(h,function(t,e){null==n[t]&&(n[t]=e(n))})},r.datepickerLocale=function(t,e,n){var i=r.localeOptionHash[t]||(r.localeOptionHash[t]={}),o=(i.isRTL=n.isRTL,i.weekNumberTitle=n.weekHeader,s.each(u,function(t,e){i[t]=e(n)}),s.datepicker);o&&(o.regional[e]=o.regional[t]=n,o.regional.en=o.regional[""],o.setDefaults(n))},r.locale=n,r.getMomentLocaleData=o,n("en",l.englishDefaults)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=(e.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},e.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},e.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},["header","footer","buttonText","buttonIcons","themeButtonIcons"]);e.mergeOptions=function(t){return i.mergeProps(t,o)}},function(t,e){function n(t,e,n){this.componentFootprint=t,this.eventDef=e,n&&(this.eventInstance=n)}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4);function i(){}i.extend=function(t){e=this,o.__extends(i,e);var e,n=i;function i(){return null!==e&&e.apply(this,arguments)||this}return r.copyOwnProps(t,n.prototype),n},i.mixin=function(t){r.copyOwnProps(t,this.prototype)},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(9),s=n(54);e.default={parse:function(t,e){return(o.isTimeString(t.start)||i.isDuration(t.start)||o.isTimeString(t.end)||i.isDuration(t.end)?s:r).default.parse(t,e)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),n=n(52),o=(r.parse=function(t,e){e=new this(e);return!!e.applyProps(t)&&e},r.normalizeId=function(t){return String(t)},r.generateId=function(){return"_fc"+r.uuid++},r.prototype.clone=function(){var t=new this.constructor(this.source);return t.id=this.id,t.rawId=this.rawId,t.uid=this.uid,r.copyVerbatimStandardProps(this,t),t.className=this.className.slice(),t.miscProps=i.extend({},this.miscProps),t},r.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},r.prototype.hasBgRendering=function(){var t=this.getRendering();return"inverse-background"===t||"background"===t},r.prototype.getRendering=function(){return(null!=this.rendering?this:this.source).rendering},r.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},r.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},r.prototype.isStartExplicitlyEditable=function(){return(null!=this.startEditable?this:this.source).startEditable},r.prototype.isDurationExplicitlyEditable=function(){return(null!=this.durationEditable?this:this.source).durationEditable},r.prototype.isExplicitlyEditable=function(){return(null!=this.editable?this:this.source).editable},r.prototype.toLegacy=function(){var t=i.extend({},this.miscProps);return t._id=this.uid,t.source=this.source,t.className=this.className.slice(),t.allDay=this.isAllDay(),null!=this.rawId&&(t.id=this.rawId),r.copyVerbatimStandardProps(this,t),t},r.prototype.applyManualStandardProps=function(t){return null!=t.id?this.id=r.normalizeId(this.rawId=t.id):this.id=r.generateId(),null!=t._id?this.uid=String(t._id):this.uid=r.generateId(),i.isArray(t.className)&&(this.className=t.className),"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},r.prototype.applyMiscProps=function(t){i.extend(this.miscProps,t)},r.uuid=0,r.defineStandardProps=n.default.defineStandardProps,r.copyVerbatimStandardProps=n.default.copyVerbatimStandardProps,r);function r(t){this.source=t,this.className=[],this.miscProps={}}e.default=o,n.default.mixInto(o),o.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={sourceClasses:[],registerClass:function(t){this.sourceClasses.unshift(t)},parse:function(t,e){for(var n,i=this.sourceClasses,o=0;o<i.length;o++)if(n=i[o].parse(t,e))return n}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var p=n(4),f=n(16),g=n(37),m=n(40),i=n(9);function v(){}v.createFromRawProps=function(t,e,n){var i,o,r,s=t.def,a={},l={},d={},u={},c=null,h=null;for(i in e)f.default.isStandardProp(i)?a[i]=e[i]:s.isStandardProp(i)?l[i]=e[i]:s.miscProps[i]!==e[i]&&(d[i]=e[i]);return(o=f.default.parse(a,s.source))&&(r=m.default.createFromDiff(t.dateProfile,o,n)),l.id!==s.id&&(c=l.id),p.isArraysEqual(l.className,s.className)||(h=l.className),g.default.copyVerbatimStandardProps(l,u),(t=new v).eventDefId=c,t.className=h,t.verbatimStandardProps=u,t.miscProps=d,r&&(t.dateMutation=r),t},v.prototype.mutateSingle=function(t){var e;return this.dateMutation&&(e=t.dateProfile,t.dateProfile=this.dateMutation.buildNewDateProfile(e,t.source.calendar)),null!=this.eventDefId&&(t.id=g.default.normalizeId(t.rawId=this.eventDefId)),this.className&&(t.className=this.className),this.verbatimStandardProps&&i.default.copyVerbatimStandardProps(this.verbatimStandardProps,t),this.miscProps&&t.applyMiscProps(this.miscProps),e?function(){t.dateProfile=e}:function(){}},v.prototype.setDateMutation=function(t){t&&!t.isEmpty()?this.dateMutation=t:this.dateMutation=null},v.prototype.isEmpty=function(){return!this.dateMutation},e.default=v},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var d=n(4),r=n(16);function u(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}u.createFromDiff=function(t,n,i){function e(t,e){return i?d.diffByUnit(t,e,i):n.isAllDay()?d.diffDay(t,e):d.diffDayTime(t,e)}var o,r=t.end&&!n.end,s=t.isAllDay()&&!n.isAllDay(),a=!t.isAllDay()&&n.isAllDay(),l=e(n.start,t.start);return n.end&&(o=e(n.unzonedRange.getEnd(),t.unzonedRange.getEnd()).subtract(l)),(t=new u).clearEnd=r,t.forceTimed=s,t.forceAllDay=a,t.setDateDelta(l),t.setEndDelta(o),t},u.prototype.buildNewDateProfile=function(t,e){var n=t.start.clone(),i=null,o=!1;return t.end&&!this.clearEnd?i=t.end.clone():this.endDelta&&!i&&(i=e.getDefaultEventEnd(t.isAllDay(),n)),this.forceTimed?(o=!0,n.hasTime()||n.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(n.hasTime()&&n.stripTime(),i)&&i.hasTime()&&i.stripTime(),this.dateDelta&&(o=!0,n.add(this.dateDelta),i)&&i.add(this.dateDelta),this.endDelta&&(o=!0,i.add(this.endDelta)),this.startDelta&&(o=!0,n.add(this.startDelta)),o&&(n=e.applyTimezone(n),i=i&&e.applyTimezone(i)),!i&&e.opt("forceEventDuration")&&(i=e.getDefaultEventEnd(t.isAllDay(),n)),new r.default(n,i,e)},u.prototype.setDateDelta=function(t){t&&t.valueOf()?this.dateDelta=t:this.dateDelta=null},u.prototype.setStartDelta=function(t){t&&t.valueOf()?this.startDelta=t:this.startDelta=null},u.prototype.setEndDelta=function(t){t&&t.valueOf()?this.endDelta=t:this.endDelta=null},u.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(4),n=n(35),n=(i=n.default,o.__extends(a,i),a.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},a.prototype.renderEl=function(){return this.scrollEl=r('<div class="fc-scroller"></div>')},a.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},a.prototype.destroy=function(){this.el.remove()},a.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},a.prototype.lockOverflow=function(t){var e=this.overflowX,n=this.overflowY;t=t||this.getScrollbarWidths(),"auto"===e&&(e=t.top||t.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=t.left||t.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":e,"overflow-y":n})},a.prototype.setHeight=function(t){this.scrollEl.height(t)},a.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},a.prototype.setScrollTop=function(t){this.scrollEl.scrollTop(t)},a.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},a.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},a.prototype.getScrollbarWidths=function(){return s.getScrollbarWidths(this.scrollEl)},a);function a(t){var e=i.call(this)||this;return e.overflowX=(t=t||{}).overflowX||t.overflow||"auto",e.overflowY=t.overflowY||t.overflow||"auto",e}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(4),a=n(231),l=n(23),n=(i=a.default,o.__extends(d,i),d.prototype.setElement=function(t){i.prototype.setElement.call(this,t),this.dateClicking&&this.dateClicking.bindToEl(t),this.dateSelecting&&this.dateSelecting.bindToEl(t),this.bindAllSegHandlersToEl(t)},d.prototype.removeElement=function(){this.endInteractions(),i.prototype.removeElement.call(this)},d.prototype.executeEventUnrender=function(){this.endInteractions(),i.prototype.executeEventUnrender.call(this)},d.prototype.bindGlobalHandlers=function(){i.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},d.prototype.unbindGlobalHandlers=function(){i.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},d.prototype.bindDateHandlerToEl=function(t,e,n){var i=this;this.el.on(e,function(t){if(!r(t.target).is(i.segSelector+":not(.fc-helper),"+i.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return n.call(i,t)})},d.prototype.bindAllSegHandlersToEl=function(e){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.bindToEl(e)})},d.prototype.bindSegHandlerToEl=function(t,e,n){var i=this;t.on(e,this.segSelector,function(t){var e=r(t.currentTarget);if(!e.is(".fc-helper")){e=e.data("fc-seg");if(e&&!i.shouldIgnoreEventPointing())return n.call(i,e,t)}})},d.prototype.shouldIgnoreMouse=function(){return l.default.get().shouldIgnoreMouse()},d.prototype.shouldIgnoreTouch=function(){var t=this._getView();return t.isSelected||t.selectedEvent},d.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},d.prototype.canStartSelection=function(t,e){return s.getEvIsTouch(e)&&!this.canStartResize(t,e)&&(this.isEventDefDraggable(t.footprint.eventDef)||this.isEventDefResizable(t.footprint.eventDef))},d.prototype.canStartDrag=function(t,e){return!this.canStartResize(t,e)&&this.isEventDefDraggable(t.footprint.eventDef)},d.prototype.canStartResize=function(t,e){var n=this._getView(),t=t.footprint.eventDef;return(!s.getEvIsTouch(e)||n.isEventDefSelected(t))&&this.isEventDefResizable(t)&&r(e.target).is(".fc-resizer")},d.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.end()})},d.prototype.isEventDefDraggable=function(t){return this.isEventDefStartEditable(t)},d.prototype.isEventDefStartEditable=function(t){var e=t.isStartExplicitlyEditable();return e=null==e&&null==(e=this.opt("eventStartEditable"))?this.isEventDefGenerallyEditable(t):e},d.prototype.isEventDefGenerallyEditable=function(t){t=t.isExplicitlyEditable();return t=null==t?this.opt("editable"):t},d.prototype.isEventDefResizableFromStart=function(t){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(t)},d.prototype.isEventDefResizableFromEnd=function(t){return this.isEventDefResizable(t)},d.prototype.isEventDefResizable=function(t){var e=t.isDurationExplicitlyEditable();return e=null==e&&null==(e=this.opt("eventDurationEditable"))?this.isEventDefGenerallyEditable(t):e},d.prototype.diffDates=function(t,e){return this.largeUnit?s.diffByUnit(t,e,this.largeUnit):s.diffDayTime(t,e)},d.prototype.isEventInstanceGroupAllowed=function(t){for(var e=this._getView(),n=this.dateProfile,i=this.eventRangesToEventFootprints(t.getAllEventRanges()),o=0;o<i.length;o++)if(!n.validUnzonedRange.containsRange(i[o].componentFootprint.unzonedRange))return!1;return e.calendar.constraints.isEventInstanceGroupAllowed(t)},d.prototype.isExternalInstanceGroupAllowed=function(t){for(var e=this._getView(),n=this.dateProfile,i=this.eventRangesToEventFootprints(t.getAllEventRanges()),o=0;o<i.length;o++)if(!n.validUnzonedRange.containsRange(i[o].componentFootprint.unzonedRange))return!1;for(o=0;o<i.length;o++)if(!e.calendar.constraints.isSelectionFootprintAllowed(i[o].componentFootprint))return!1;return!0},d);function d(t,e){t=i.call(this,t,e)||this;return t.segSelector=".fc-event-container > *",t.dateSelectingClass&&(t.dateClicking=new t.dateClickingClass(t)),t.dateSelectingClass&&(t.dateSelecting=new t.dateSelectingClass(t)),t.eventPointingClass&&(t.eventPointing=new t.eventPointingClass(t)),t.eventDraggingClass&&t.eventPointing&&(t.eventDragging=new t.eventDraggingClass(t,t.eventPointing)),t.eventResizingClass&&t.eventPointing&&(t.eventResizing=new t.eventResizingClass(t,t.eventPointing)),t.externalDroppingClass&&(t.externalDropping=new t.externalDroppingClass(t)),t}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(0),a=n(4),l=n(229),d=n(55),u=n(42),c=n(23),h=n(5),n=(i=u.default,o.__extends(p,i),p.prototype._getView=function(){return this},p.prototype.opt=function(t){return this.options[t]},p.prototype.initRenderQueue=function(){this.renderQueue=new l.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},p.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},p.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},p.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},p.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},p.prototype.requestRender=function(t,e,n){this.renderQueue.queue(t,e,n)},p.prototype.whenSizeUpdated=function(t){this.renderQueue.isRunning?this.renderQueue.one("stop",t.bind(this)):t.call(this)},p.prototype.computeTitle=function(t){var e=/^(year|month)$/.test(t.currentRangeUnit)?t.currentUnzonedRange:t.activeUnzonedRange;return this.formatRange({start:this.calendar.msToMoment(e.startMs,t.isRangeAllDay),end:this.calendar.msToMoment(e.endMs,t.isRangeAllDay)},t.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(t),this.opt("titleRangeSeparator"))},p.prototype.computeTitleFormat=function(t){var e=t.currentRangeUnit;return"year"===e?"YYYY":"month"===e?this.opt("monthYearFormat"):1<t.currentUnzonedRange.as("days")?"ll":"LL"},p.prototype.setDate=function(t){var e=this.get("dateProfile"),t=this.dateProfileGenerator.build(t,void 0,!0);e&&e.activeUnzonedRange.equals(t.activeUnzonedRange)||this.set("dateProfile",t)},p.prototype.unsetDate=function(){this.unset("dateProfile")},p.prototype.fetchInitialEvents=function(t){var e=this.calendar,n=t.isRangeAllDay&&!this.usesMinMaxTime;return e.requestEvents(e.msToMoment(t.activeUnzonedRange.startMs,n),e.msToMoment(t.activeUnzonedRange.endMs,n))},p.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},p.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},p.prototype.setEvents=function(t){this.set("currentEvents",t),this.set("hasEvents",!0)},p.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},p.prototype.resetEvents=function(t){this.startBatchRender(),this.unsetEvents(),this.setEvents(t),this.stopBatchRender()},p.prototype.requestDateRender=function(t){var e=this;this.requestRender(function(){e.executeDateRender(t)},"date","init")},p.prototype.requestDateUnrender=function(){var t=this;this.requestRender(function(){t.executeDateUnrender()},"date","destroy")},p.prototype.executeDateRender=function(t){i.prototype.executeDateRender.call(this,t),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},p.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),i.prototype.executeDateUnrender.call(this)},p.prototype.bindBaseRenderHandlers=function(){var t=this;this.on("datesRendered",function(){t.whenSizeUpdated(t.triggerViewRender)}),this.on("before:datesUnrendered",function(){t.triggerViewDestroy()})},p.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},p.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},p.prototype.requestEventsRender=function(t){var e=this;this.requestRender(function(){e.executeEventRender(t),e.whenSizeUpdated(e.triggerAfterEventsRendered)},"event","init")},p.prototype.requestEventsUnrender=function(){var t=this;this.requestRender(function(){t.triggerBeforeEventsDestroyed(),t.executeEventUnrender()},"event","destroy")},p.prototype.requestBusinessHoursRender=function(t){var e=this;this.requestRender(function(){e.renderBusinessHours(t)},"businessHours","init")},p.prototype.requestBusinessHoursUnrender=function(){var t=this;this.requestRender(function(){t.unrenderBusinessHours()},"businessHours","destroy")},p.prototype.bindGlobalHandlers=function(){i.prototype.bindGlobalHandlers.call(this),this.listenTo(c.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},p.prototype.unbindGlobalHandlers=function(){i.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(c.default.get())},p.prototype.startNowIndicator=function(){var t,e,n,i=this;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit())&&(e=a.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){i.nowIndicatorTimeoutID=null,e(),n=+s.duration(1,t),n=Math.max(100,n),i.nowIndicatorIntervalID=setInterval(e,n)},n))},p.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},p.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},p.prototype.updateSize=function(t,e,n){this.setHeight?this.setHeight(t,e):i.prototype.updateSize.call(this,t,e,n),this.updateNowIndicator()},p.prototype.addScroll=function(t){var e=this.queuedScroll||(this.queuedScroll={});r.extend(e,t)},p.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},p.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},p.prototype.queryScroll=function(){var t={};return this.isDatesRendered&&r.extend(t,this.queryDateScroll()),t},p.prototype.applyScroll=function(t){t.isDateInit&&this.isDatesRendered&&r.extend(t,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(t)},p.prototype.computeInitialDateScroll=function(){return{}},p.prototype.queryDateScroll=function(){return{}},p.prototype.applyDateScroll=function(t){},p.prototype.reportEventDrop=function(t,e,n,i){var o=this.calendar.eventManager.mutateEventsWithId(t.def.id,e),e=e.dateMutation;e&&(t.dateProfile=e.buildNewDateProfile(t.dateProfile,this.calendar)),this.triggerEventDrop(t,e&&e.dateDelta||s.duration(),o,n,i)},p.prototype.triggerEventDrop=function(t,e,n,i,o){this.publiclyTrigger("eventDrop",{context:i[0],args:[t.toLegacy(),e,n,o,{},this]})},p.prototype.reportExternalDrop=function(t,e,n,i,o,r){e&&this.calendar.eventManager.addEventDef(t,n),this.triggerExternalDrop(t,e,i,o,r)},p.prototype.triggerExternalDrop=function(t,e,n,i,o){this.publiclyTrigger("drop",{context:n[0],args:[t.dateProfile.start.clone(),i,o,this]}),e&&this.publiclyTrigger("eventReceive",{context:this,args:[t.buildInstance().toLegacy(),this]})},p.prototype.reportEventResize=function(t,e,n,i){var o=this.calendar.eventManager.mutateEventsWithId(t.def.id,e),e=(t.dateProfile=e.dateMutation.buildNewDateProfile(t.dateProfile,this.calendar),e.dateMutation.endDelta||e.dateMutation.startDelta);this.triggerEventResize(t,e,o,n,i)},p.prototype.triggerEventResize=function(t,e,n,i,o){this.publiclyTrigger("eventResize",{context:i[0],args:[t.toLegacy(),e,n,o,{},this]})},p.prototype.select=function(t,e){this.unselect(e),this.renderSelectionFootprint(t),this.reportSelection(t,e)},p.prototype.renderSelectionFootprint=function(t){this.renderSelection?this.renderSelection(t.toLegacy(this.calendar)):i.prototype.renderSelectionFootprint.call(this,t)},p.prototype.reportSelection=function(t,e){this.isSelected=!0,this.triggerSelect(t,e)},p.prototype.triggerSelect=function(t,e){t=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("select",{context:this,args:[t.start,t.end,e,this]})},p.prototype.unselect=function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[t,this]}))},p.prototype.selectEventInstance=function(e){this.selectedEventInstance&&this.selectedEventInstance===e||(this.unselectEventInstance(),this.getEventSegs().forEach(function(t){t.footprint.eventInstance===e&&t.el&&t.el.addClass("fc-selected")}),this.selectedEventInstance=e)},p.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(t){t.el&&t.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},p.prototype.isEventDefSelected=function(t){return this.selectedEventInstance&&this.selectedEventInstance.def.id===t.id},p.prototype.handleDocumentMousedown=function(t){a.isPrimaryMouseButton(t)&&this.processUnselect(t)},p.prototype.processUnselect=function(t){this.processRangeUnselect(t),this.processEventUnselect(t)},p.prototype.processRangeUnselect=function(t){var e;this.isSelected&&this.opt("unselectAuto")&&((e=this.opt("unselectCancel"))&&r(t.target).closest(e).length||this.unselect(t))},p.prototype.processEventUnselect=function(t){!this.selectedEventInstance||r(t.target).closest(".fc-selected").length||this.unselectEventInstance()},p.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},p.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},p.prototype.triggerDayClick=function(t,e,n){t=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("dayClick",{context:e,args:[t.start,n,this]})},p.prototype.isDateInOtherMonth=function(t,e){return!1},p.prototype.getUnzonedRangeOption=function(t){var e=this.opt(t);if(e="function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):e)return this.calendar.parseUnzonedRange(e)},p.prototype.initHiddenDays=function(){var t,e=this.opt("hiddenDays")||[],n=[],i=0;for(!1===this.opt("weekends")&&e.push(0,6),t=0;t<7;t++)(n[t]=-1!==r.inArray(t,e))||i++;if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},p.prototype.trimHiddenDays=function(t){var e=t.getStart(),t=t.getEnd(),e=e&&this.skipHiddenDays(e),t=t&&this.skipHiddenDays(t,-1,!0);return null===e||null===t||e<t?new h.default(e,t):null},p.prototype.isHiddenDay=function(t){return s.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},p.prototype.skipHiddenDays=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var i=t.clone();this.isHiddenDayHash[(i.day()+(n?e:0)+7)%7];)i.add(e,"days");return i},p);function p(t,e){var n=i.call(this,null,e.options)||this;return n.batchRenderDepth=0,n.isSelected=!1,n.calendar=t,n.viewSpec=e,n.type=e.type,n.name=n.type,n.initRenderQueue(),n.initHiddenDays(),n.dateProfileGenerator=new n.dateProfileGeneratorClass(n),n.bindBaseRenderHandlers(),n.eventOrderSpecs=a.parseFieldSpecs(n.opt("eventOrder")),n.initialize&&n.initialize(),n}(e.default=n).prototype.usesMinMaxTime=!1,n.prototype.dateProfileGeneratorClass=d.default,n.watch("displayingDates",["isInDom","dateProfile"],function(t){this.requestDateRender(t.dateProfile)},function(){this.requestDateUnrender()}),n.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(t){this.requestBusinessHoursRender(t.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),n.watch("initialEvents",["dateProfile"],function(t){return this.fetchInitialEvents(t.dateProfile)}),n.watch("bindingEvents",["initialEvents"],function(t){this.setEvents(t.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),n.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),n.watch("title",["dateProfile"],function(t){return this.title=this.computeTitle(t.dateProfile)}),n.watch("legacyDateProps",["dateProfile"],function(t){var e=this.calendar,t=t.dateProfile;this.start=e.msToMoment(t.activeUnzonedRange.startMs,t.isRangeAllDay),this.end=e.msToMoment(t.activeUnzonedRange.endMs,t.isRangeAllDay),this.intervalStart=e.msToMoment(t.currentUnzonedRange.startMs,t.isRangeAllDay),this.intervalEnd=e.msToMoment(t.currentUnzonedRange.endMs,t.isRangeAllDay)})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var a=n(3),s=n(4);function i(t,e){this.view=t._getView(),this.component=t,this.fillRenderer=e}i.prototype.opt=function(t){return this.view.opt(t)},i.prototype.rangeUpdated=function(){var t,e;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),null==(t=this.opt("displayEventTime"))&&(t=this.computeDisplayEventTime()),null==(e=this.opt("displayEventEnd"))&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},i.prototype.render=function(t){var e,n,i,o=this.component._getDateProfile(),r=[],s=[];for(e in t)n=t[e],i=n.sliceRenderRanges(o.activeUnzonedRange),n.getEventDef().hasBgRendering()?r.push.apply(r,i):s.push.apply(s,i);this.renderBgRanges(r),this.renderFgRanges(s)},i.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},i.prototype.renderFgRanges=function(t){t=this.component.eventRangesToEventFootprints(t),t=this.component.eventFootprintsToSegs(t),t=this.renderFgSegEls(t);!1!==this.renderFgSegs(t)&&(this.fgSegs=t)},i.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},i.prototype.renderBgRanges=function(t){t=this.component.eventRangesToEventFootprints(t),t=this.component.eventFootprintsToSegs(t);!1!==this.renderBgSegs(t)&&(this.bgSegs=t)},i.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},i.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},i.prototype.renderFgSegs=function(t){return!1},i.prototype.unrenderFgSegs=function(t){},i.prototype.renderBgSegs=function(t){var n=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",t,{getClasses:function(t){return n.getBgClasses(t.footprint.eventDef)},getCss:function(t){return{"background-color":n.getBgColor(t.footprint.eventDef)}},filterEl:function(t,e){return n.filterEventRenderEl(t.footprint,e)}})},i.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},i.prototype.renderFgSegEls=function(n,t){var i=this;void 0===t&&(t=!1);var e,o=this.view.hasPublicHandlers("eventRender"),r="",s=[];if(n.length){for(e=0;e<n.length;e++)this.beforeFgSegHtml(n[e]),r+=this.fgSegHtml(n[e],t);a(r).each(function(t,e){t=n[t],e=a(e);(e=o?i.filterEventRenderEl(t.footprint,e):e)&&(e.data("fc-seg",t),t.el=e,s.push(t))})}return s},i.prototype.beforeFgSegHtml=function(t){},i.prototype.fgSegHtml=function(t,e){},i.prototype.getSegClasses=function(t,e,n){var i=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(t.footprint.eventDef));return e&&i.push("fc-draggable"),n&&i.push("fc-resizable"),this.view.isEventDefSelected(t.footprint.eventDef)&&i.push("fc-selected"),i},i.prototype.filterEventRenderEl=function(t,e){t=t.getEventLegacy(),t=this.view.publiclyTrigger("eventRender",{context:t,args:[t,e,this.view]});return!1===t?e=null:t&&!0!==t&&(e=a(t)),e},i.prototype.getTimeText=function(t,e,n){return this._getTimeText(t.eventInstance.dateProfile.start,t.eventInstance.dateProfile.end,t.componentFootprint.isAllDay,e,n)},i.prototype._getTimeText=function(t,e,n,i,o){return null==i&&(i=this.eventTimeFormat),null==o&&(o=this.displayEventEnd),this.displayEventTime&&!n?o&&e?this.view.formatRange({start:t,end:e},!1,i):t.format(i):""},i.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},i.prototype.computeDisplayEventTime=function(){return!0},i.prototype.computeDisplayEventEnd=function(){return!0},i.prototype.getBgClasses=function(t){t=this.getClasses(t);return t.push("fc-bgevent"),t},i.prototype.getClasses=function(t){for(var e=this.getStylingObjs(t),n=[],i=0;i<e.length;i++)n.push.apply(n,e[i].eventClassName||e[i].className||[]);return n},i.prototype.getSkinCss=function(t){return{"background-color":this.getBgColor(t),"border-color":this.getBorderColor(t),color:this.getTextColor(t)}},i.prototype.getBgColor=function(t){for(var e,n=this.getStylingObjs(t),i=0;i<n.length&&!e;i++)e=n[i].eventBackgroundColor||n[i].eventColor||n[i].backgroundColor||n[i].color;return e=e||this.opt("eventBackgroundColor")||this.opt("eventColor")},i.prototype.getBorderColor=function(t){for(var e,n=this.getStylingObjs(t),i=0;i<n.length&&!e;i++)e=n[i].eventBorderColor||n[i].eventColor||n[i].borderColor||n[i].color;return e=e||this.opt("eventBorderColor")||this.opt("eventColor")},i.prototype.getTextColor=function(t){for(var e,n=this.getStylingObjs(t),i=0;i<n.length&&!e;i++)e=n[i].eventTextColor||n[i].textColor;return e=e||this.opt("eventTextColor")},i.prototype.getStylingObjs=function(t){var e=this.getFallbackStylingObjs(t);return e.unshift(t),e},i.prototype.getFallbackStylingObjs=function(t){return[t.source]},i.prototype.sortEventSegs=function(t){t.sort(s.proxy(this,"compareEventSegs"))},i.prototype.compareEventSegs=function(t,e){var t=t.footprint,e=e.footprint,n=t.componentFootprint,i=e.componentFootprint,o=n.unzonedRange,r=i.unzonedRange;return o.startMs-r.startMs||r.endMs-r.startMs-(o.endMs-o.startMs)||i.isAllDay-n.isAllDay||s.compareByFieldSpecs(t.eventDef,e.eventDef,this.view.eventOrderSpecs,t.eventDef.miscProps,e.eventDef.miscProps)},e.default=i},,,,,function(t,e,n){function i(t){return"en"!==t.locale()?t.clone().locale("en"):t}function o(t,e){return b(y(v(e).fakeFormatString,t).join(""))}function v(t){return p[t]||(p[t]=function(t){t=r(t);return{fakeFormatString:function t(e){var n,i,o=[];for(n=0;n<e.length;n++)i=e[n],"string"==typeof i?o.push("["+i+"]"):i.token?i.token in c?o.push(l+"["+i.token+"]"):o.push(i.token):i.maybe&&o.push(d+t(i.maybe)+d);return o.join(a)}(t),sameUnits:function t(e){var n,i,o,r=[];for(n=0;n<e.length;n++)i=e[n],i.token?(o=h[i.token.charAt(0)],r.push(o?o.unit:"second")):i.maybe?r.push.apply(r,t(i.maybe)):r.push(null);return r}(t)}}(t))}function r(t){for(var e,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=i.exec(t);)e[1]?n.push.apply(n,s(e[1])):e[2]?n.push({maybe:r(e[2])}):e[3]?n.push({token:e[3]}):e[5]&&n.push.apply(n,s(e[5]));return n}function s(t){return". "===t?["."," "]:[t]}function y(t,e){for(var n,i=[],o=w.oldMomentFormat(e,t).split(a),r=0;r<o.length;r++)(n=o[r]).charAt(0)===l?i.push(c[n.substring(1)](e)):i.push(n);return i}function b(t){return t.replace(u,function(t,e){return e.match(/[1-9]/)?e:""})}Object.defineProperty(e,"__esModule",{value:!0});var w=n(11),a=(w.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?o(this,arguments[0]):this._ambigTime?w.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?w.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?w.oldMomentFormat(i(this)):w.oldMomentProto.format.apply(this,arguments)},w.newMomentProto.toISOString=function(){return this._ambigTime?w.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?w.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?w.oldMomentProto.toISOString.apply(i(this),arguments):w.oldMomentProto.toISOString.apply(this,arguments)},"\v"),l="",d="",u=new RegExp(d+"([^"+d+"]*)"+d,"g"),c={t:function(t){return w.oldMomentFormat(t,"a").charAt(0)},T:function(t){return w.oldMomentFormat(t,"A").charAt(0)}},h={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}},p=(e.formatDate=o,e.formatRange=function(t,e,n,i,o){t=w.default.parseZone(t),e=w.default.parseZone(e);var r,s,a,n=v(n=t.localeData().longDateFormat(n)||n),i=i||" - ",l=n.sameUnits,d=t.clone().stripZone(),u=e.clone().stripZone(),c=y(n.fakeFormatString,t),h=y(n.fakeFormatString,e),p="",f="",g="",m="",t="";for(r=0;r<l.length&&(!l[r]||d.isSame(u,l[r]));r++)p+=c[r];for(s=l.length-1;r<s&&(!l[s]||d.isSame(u,l[s]))&&(s-1!==r||"."!==c[s]);s--)f=c[s]+f;for(a=r;a<=s;a++)g+=c[a],m+=h[a];return b(p+(t=g||m?o?m+i+g:g+i+m:t)+f)},{});e.queryMostGranularFormatUnit=function(t){for(var e,n,i=r(t),o=0;o<i.length;o++)(e=i[o]).token&&(e=h[e.token.charAt(0)])&&(!n||e.value>n.value)&&(n=e);return n?n.unit:null}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){this.unzonedRange=t,this.eventDef=e,n&&(this.eventInstance=n)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(35),s=n(13),n=n(7),r=(i=r.default,o.__extends(a,i),a.watch=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[t]=e},a.prototype.constructed=function(){},a.prototype.applyGlobalWatchers=function(){var t,e=this._globalWatchArgs;for(t in e)this.watch.apply(this,[t].concat(e[t]))},a.prototype.has=function(t){return t in this._props},a.prototype.get=function(t){return void 0===t?this._props:this._props[t]},a.prototype.set=function(t,e){var n;"string"==typeof t?(n={})[t]=void 0===e?null:e:n=t,this.setProps(n)},a.prototype.reset=function(t){var e,n={};for(e in this._props)n[e]=void 0;for(e in t)n[e]=t[e];this.setProps(n)},a.prototype.unset=function(t){for(var e={},n="string"==typeof t?[t]:t,i=0;i<n.length;i++)e[n[i]]=void 0;this.setProps(e)},a.prototype.setProps=function(t){var e,n,i={},o=0;for(e in t)"object"!=typeof(n=t[e])&&n===this._props[e]||(i[e]=n,o++);if(o){for(e in this.trigger("before:batchChange",i),i)n=i[e],this.trigger("before:change",e,n),this.trigger("before:change:"+e,n);for(e in i)n=i[e],void 0===n?delete this._props[e]:this._props[e]=n,this.trigger("change:"+e,n),this.trigger("change",e,n);this.trigger("batchChange",i)}},a.prototype.watch=function(e,t,n,i){var o=this;this.unwatch(e),this._watchers[e]=this._watchDeps(t,function(t){t=n.call(o,t);t&&t.then?(o.unset(e),t.then(function(t){o.set(e,t)})):o.set(e,t)},function(t){o.unset(e),i&&i.call(o,t)})},a.prototype.unwatch=function(t){var e=this._watchers[t];e&&(delete this._watchers[t],e.teardown())},a.prototype._watchDeps=function(t,r,e){function n(t,e){i.on(t,e),o.push([t,e])}var i=this,s=0,a=t.length,l=0,d={},o=[],u=!1;return t.forEach(function(i){var o=!1;"?"===i.charAt(0)&&(i=i.substring(1),o=!0),n("before:change:"+i,function(t){1==++s&&l===a&&(u=!0,e(d),u=!1)}),n("change:"+i,function(t){var e,n;e=i,n=o,void 0===(t=t)?(n||void 0===d[e]||l--,delete d[e]):(n||void 0!==d[e]||l++,d[e]=t),--s||l!==a||u||r(d)})}),t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),i.has(t)?(d[t]=i.get(t),l++):e&&l++}),l===a&&r(d),{teardown:function(){for(var t=0;t<o.length;t++)i.off(o[t][0],o[t][1]);o=null,l===a&&e()},flash:function(){l===a&&(e(),r(d))}}},a.prototype.flash=function(t){t=this._watchers[t];t&&t.flash()},a);function a(){var t=i.call(this)||this;return t._watchers={},t._props={},t.applyGlobalWatchers(),t.constructed(),t}(e.default=r).prototype._globalWatchArgs={},s.default.mixInto(r),n.default.mixInto(r)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(4),n=n(15),n=(i=n.default,o.__extends(s,i),s.defineStandardProps=function(t){var e=this.prototype;e.hasOwnProperty("standardPropMap")||(e.standardPropMap=Object.create(e.standardPropMap)),r.copyOwnProps(t,e.standardPropMap)},s.copyVerbatimStandardProps=function(t,e){var n,i=this.prototype.standardPropMap;for(n in i)null!=t[n]&&!0===i[n]&&(e[n]=t[n])},s.prototype.applyProps=function(t){var e,n=this.standardPropMap,i={},o={};for(e in t)!0===n[e]?this[e]=t[e]:!1===n[e]?i[e]=t[e]:o[e]=t[e];return this.applyMiscProps(o),this.applyManualStandardProps(i)},s.prototype.applyManualStandardProps=function(t){return!0},s.prototype.applyMiscProps=function(t){},s.prototype.isStandardProp=function(t){return t in this.standardPropMap},s);function s(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.standardPropMap={}},function(t,e){function n(t,e){this.def=t,this.dateProfile=e}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.toLegacy=function(){var t=this.dateProfile,e=this.def.toLegacy();return e.start=t.start.clone(),e.end=t.end?t.end.clone():null,e},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(0),a=n(37),l=n(53),d=n(16),n=(i=a.default,o.__extends(u,i),u.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},u.prototype.buildInstances=function(t){for(var e,n,i,o=this.source.calendar,r=t.getStart(),s=t.getEnd(),a=[];r.isBefore(s);)this.dowHash&&!this.dowHash[r.day()]||(n=(e=o.applyTimezone(r)).clone(),i=null,this.startTime?n.time(this.startTime):n.stripTime(),this.endTime&&(i=e.clone().time(this.endTime)),a.push(new l.default(this,new d.default(n,i,o)))),r.add(1,"days");return a},u.prototype.setDow=function(t){this.dowHash||(this.dowHash={});for(var e=0;e<t.length;e++)this.dowHash[t[e]]=!0},u.prototype.clone=function(){var t=i.prototype.clone.call(this);return t.startTime&&(t.startTime=s.duration(this.startTime)),t.endTime&&(t.endTime=s.duration(this.endTime)),this.dowHash&&(t.dowHash=r.extend({},this.dowHash)),t},u);function u(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.applyProps=function(t){var e=a.default.prototype.applyProps.call(this,t);return t.start&&(this.startTime=s.duration(t.start)),t.end&&(this.endTime=s.duration(t.end)),t.dow&&this.setDow(t.dow),e},n.defineStandardProps({start:!1,end:!1,dow:!1})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var c=n(0),h=n(4),p=n(5);function i(t){this._view=t}i.prototype.opt=function(t){return this._view.opt(t)},i.prototype.trimHiddenDays=function(t){return this._view.trimHiddenDays(t)},i.prototype.msToUtcMoment=function(t,e){return this._view.calendar.msToUtcMoment(t,e)},i.prototype.buildPrev=function(t){t=t.date.clone().startOf(t.currentRangeUnit).subtract(t.dateIncrement);return this.build(t,-1)},i.prototype.buildNext=function(t){t=t.date.clone().startOf(t.currentRangeUnit).add(t.dateIncrement);return this.build(t,1)},i.prototype.build=function(t,e,n){void 0===n&&(n=!1);var i,o,r,s,a=!t.hasTime(),l=this.buildValidRange();return l=this.trimHiddenDays(l),n&&(t=this.msToUtcMoment(l.constrainDate(t),a)),n=this.buildCurrentRangeInfo(t,e),e=/^(year|month|week|day)$/.test(n.unit),i=this.buildRenderRange(this.trimHiddenDays(n.unzonedRange),n.unit,e),o=(i=this.trimHiddenDays(i)).clone(),this.opt("showNonCurrentDates")||(o=o.intersect(n.unzonedRange)),r=c.duration(this.opt("minTime")),s=c.duration(this.opt("maxTime")),(o=(o=this.adjustActiveRange(o,r,s)).intersect(l))&&(t=this.msToUtcMoment(o.constrainDate(t),a)),a=n.unzonedRange.intersectsWith(l),{validUnzonedRange:l,currentUnzonedRange:n.unzonedRange,currentRangeUnit:n.unit,isRangeAllDay:e,activeUnzonedRange:o,renderUnzonedRange:i,minTime:r,maxTime:s,isValid:a,date:t,dateIncrement:this.buildDateIncrement(n.duration)}},i.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new p.default},i.prototype.buildCurrentRangeInfo=function(t,e){var n=this._view.viewSpec,i=null,o=null,r=null;return n.duration?(i=n.duration,o=n.durationUnit,r=this.buildRangeFromDuration(t,e,i,o)):(n=this.opt("dayCount"))?(o="day",r=this.buildRangeFromDayCount(t,e,n)):(r=this.buildCustomVisibleRange(t))?o=h.computeGreatestUnit(r.getStart(),r.getEnd()):(i=this.getFallbackDuration(),o=h.computeGreatestUnit(i),r=this.buildRangeFromDuration(t,e,i,o)),{duration:i,unit:o,unzonedRange:r}},i.prototype.getFallbackDuration=function(){return c.duration({days:1})},i.prototype.adjustActiveRange=function(t,e,n){var i=t.getStart(),t=t.getEnd();return this._view.usesMinMaxTime&&(e<0&&i.time(0).add(e),864e5<n)&&t.time(n-864e5),new p.default(i,t)},i.prototype.buildRangeFromDuration=function(t,e,n,i){function o(){a=t.clone().startOf(u),l=a.clone().add(n),d=new p.default(a,l)}var r,s,a,l,d,u=this.opt("dateAlignment");return u||(r=this.opt("dateIncrement"),u=r&&(s=c.duration(r))<n?h.computeDurationGreatestUnit(s,r):i),n.as("days")<=1&&this._view.isHiddenDay(a)&&(a=this._view.skipHiddenDays(a,e)).startOf("day"),o(),this.trimHiddenDays(d)||(t=this._view.skipHiddenDays(t,e),o()),d},i.prototype.buildRangeFromDayCount=function(t,e,n){var i,o,r=this.opt("dateAlignment"),s=0;if(r||-1!==e)for(i=t.clone(),r&&i.startOf(r),i.startOf("day"),o=(i=this._view.skipHiddenDays(i)).clone();o.add(1,"day"),this._view.isHiddenDay(o)||s++,s<n;);else for(o=t.clone().startOf("day").add(1,"day"),i=(o=this._view.skipHiddenDays(o,-1,!0)).clone();i.add(-1,"day"),this._view.isHiddenDay(i)||s++,s<n;);return new p.default(i,o)},i.prototype.buildCustomVisibleRange=function(t){t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(t));return!t||null!=t.startMs&&null!=t.endMs?t:null},i.prototype.buildRenderRange=function(t,e,n){return t.clone()},i.prototype.buildDateIncrement=function(t){var e=this.opt("dateIncrement");return e?c.duration(e):(e=this.opt("dateAlignment"))?c.duration(1,e):t||c.duration({days:1})},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(4),a=n(21),l=n(6),d=n(9),n=(i=l.default,o.__extends(u,i),u.parse=function(t,e){var n;return r.isArray(t.events)?n=t:r.isArray(t)&&(n={events:t}),!!n&&l.default.parse.call(this,n,e)},u.prototype.setRawEventDefs=function(t){this.rawEventDefs=t,this.eventDefs=this.parseEventDefs(t)},u.prototype.fetch=function(t,e,n){var i,o=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==n)for(i=0;i<o.length;i++)o[i]instanceof d.default&&o[i].rezone();return this.currentTimezone=n,a.default.resolve(o)},u.prototype.addEventDef=function(t){this.eventDefs.push(t)},u.prototype.removeEventDefsById=function(e){return s.removeMatching(this.eventDefs,function(t){return t.id===e})},u.prototype.removeAllEventDefs=function(){this.eventDefs=[]},u.prototype.getPrimitive=function(){return this.rawEventDefs},u.prototype.applyManualStandardProps=function(t){var e=i.prototype.applyManualStandardProps.call(this,t);return this.setRawEventDefs(t.events),e},u);function u(t){t=i.call(this,t)||this;return t.eventDefs=[],t}(e.default=n).defineStandardProps({events:!1})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(221),o=n(222),r={};e.defineThemeSystem=function(t,e){r[t]=e},e.getThemeSystemClass=function(t){return t?!0===t?o.default:r[t]:i.default}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(4);function o(t){this.isHorizontal=!1,this.isVertical=!1,this.els=r(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?r(t.offsetParent):null}o.prototype.build=function(){var t=this.forcedOffsetParentEl;!t&&0<this.els.length&&(t=this.els.eq(0).offsetParent()),this.origin=t?t.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},o.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},o.prototype.ensureBuilt=function(){this.origin||this.build()},o.prototype.buildElHorizontals=function(){var i=[],o=[];this.els.each(function(t,e){var e=r(e),n=e.offset().left,e=e.outerWidth();i.push(n),o.push(n+e)}),this.lefts=i,this.rights=o},o.prototype.buildElVerticals=function(){var i=[],o=[];this.els.each(function(t,e){var e=r(e),n=e.offset().top,e=e.outerHeight();i.push(n),o.push(n+e)}),this.tops=i,this.bottoms=o},o.prototype.getHorizontalIndex=function(t){this.ensureBuilt();for(var e=this.lefts,n=this.rights,i=e.length,o=0;o<i;o++)if(t>=e[o]&&t<n[o])return o},o.prototype.getVerticalIndex=function(t){this.ensureBuilt();for(var e=this.tops,n=this.bottoms,i=e.length,o=0;o<i;o++)if(t>=e[o]&&t<n[o])return o},o.prototype.getLeftOffset=function(t){return this.ensureBuilt(),this.lefts[t]},o.prototype.getLeftPosition=function(t){return this.ensureBuilt(),this.lefts[t]-this.origin.left},o.prototype.getRightOffset=function(t){return this.ensureBuilt(),this.rights[t]},o.prototype.getRightPosition=function(t){return this.ensureBuilt(),this.rights[t]-this.origin.left},o.prototype.getWidth=function(t){return this.ensureBuilt(),this.rights[t]-this.lefts[t]},o.prototype.getTopOffset=function(t){return this.ensureBuilt(),this.tops[t]},o.prototype.getTopPosition=function(t){return this.ensureBuilt(),this.tops[t]-this.origin.top},o.prototype.getBottomOffset=function(t){return this.ensureBuilt(),this.bottoms[t]},o.prototype.getBottomPosition=function(t){return this.ensureBuilt(),this.bottoms[t]-this.origin.top},o.prototype.getHeight=function(t){return this.ensureBuilt(),this.bottoms[t]-this.tops[t]},o.prototype.queryBoundingRect=function(){var t;return 0<this.els.length&&!(t=i.getScrollParent(this.els.eq(0))).is(document)&&!t.is("html,body")?i.getClientRect(t):null},o.prototype.isPointInBounds=function(t,e){return this.isLeftInBounds(t)&&this.isTopInBounds(e)},o.prototype.isLeftInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.left&&t<this.boundingRect.right},o.prototype.isTopInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.top&&t<this.boundingRect.bottom},e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),l=n(4),o=n(7),r=n(23),n=(s.prototype.startInteraction=function(t,e){if(void 0===e&&(e={}),"mousedown"===t.type){if(r.default.get().shouldIgnoreMouse())return;if(!l.isPrimaryMouseButton(t))return;t.preventDefault()}this.isInteracting||(this.delay=l.firstDefined(e.delay,this.options.delay,0),this.minDistance=l.firstDefined(e.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,l.preventSelection(i("body")),this.isInteracting=!0,this.isTouch=l.getEvIsTouch(t),this.isGeneric="dragstart"===t.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=l.getEvX(t),this.originY=l.getEvY(t),this.scrollEl=l.getScrollParent(i(t.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(t),this.startDelay(t),this.minDistance)||this.handleDistanceSurpassed(t)},s.prototype.handleInteractionStart=function(t){this.trigger("interactionStart",t)},s.prototype.endInteraction=function(t,e){this.isInteracting&&(this.endDrag(t),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(t,e),l.allowSelection(i("body")))},s.prototype.handleInteractionEnd=function(t,e){this.trigger("interactionEnd",t,e||!1)},s.prototype.bindHandlers=function(){var t=r.default.get();this.isGeneric?this.listenTo(i(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(t,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(t,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(t,{selectstart:l.preventDefault,contextmenu:l.preventDefault})},s.prototype.unbindHandlers=function(){this.stopListeningTo(r.default.get()),this.stopListeningTo(i(document))},s.prototype.startDrag=function(t,e){this.startInteraction(t,e),this.isDragging||(this.isDragging=!0,this.handleDragStart(t))},s.prototype.handleDragStart=function(t){this.trigger("dragStart",t)},s.prototype.handleMove=function(t){var e=l.getEvX(t)-this.originX,n=l.getEvY(t)-this.originY,i=this.minDistance;this.isDistanceSurpassed||i*i<=e*e+n*n&&this.handleDistanceSurpassed(t),this.isDragging&&this.handleDrag(e,n,t)},s.prototype.handleDrag=function(t,e,n){this.trigger("drag",t,e,n),this.updateAutoScroll(n)},s.prototype.endDrag=function(t){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(t))},s.prototype.handleDragEnd=function(t){this.trigger("dragEnd",t)},s.prototype.startDelay=function(t){var e=this;this.delay?this.delayTimeoutId=setTimeout(function(){e.handleDelayEnd(t)},this.delay):this.handleDelayEnd(t)},s.prototype.handleDelayEnd=function(t){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(t)},s.prototype.handleDistanceSurpassed=function(t){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(t)},s.prototype.handleTouchMove=function(t){this.isDragging&&this.shouldCancelTouchScroll&&t.preventDefault(),this.handleMove(t)},s.prototype.handleMouseMove=function(t){this.handleMove(t)},s.prototype.handleTouchScroll=function(t){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(t,!0)},s.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.options[t]&&this.options[t].apply(this,e),this["_"+t]&&this["_"+t].apply(this,e)},s.prototype.initAutoScroll=function(){var t=this.scrollEl;this.isAutoScroll=this.options.scroll&&t&&!t.is(window)&&!t.is(document),this.isAutoScroll&&this.listenTo(t,"scroll",l.debounce(this.handleDebouncedScroll,100))},s.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},s.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=l.getOuterRect(this.scrollEl))},s.prototype.updateAutoScroll=function(t){var e,n,i,o=this.scrollSensitivity,r=this.scrollBounds,s=0,a=0;r&&(e=(o-(l.getEvY(t)-r.top))/o,n=(o-(r.bottom-l.getEvY(t)))/o,i=(o-(l.getEvX(t)-r.left))/o,r=(o-(r.right-l.getEvX(t)))/o,0<=e&&e<=1?s=e*this.scrollSpeed*-1:0<=n&&n<=1&&(s=n*this.scrollSpeed),0<=i&&i<=1?a=i*this.scrollSpeed*-1:0<=r&&r<=1&&(a=r*this.scrollSpeed)),this.setScrollVel(s,a)},s.prototype.setScrollVel=function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(l.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},s.prototype.constrainScrollVel=function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):0<this.scrollTopVel&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):0<this.scrollLeftVel&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},s.prototype.scrollIntervalFunc=function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},s.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},s.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},s.prototype.handleScrollEnd=function(){},s);function s(t){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=t||{}}e.default=n,o.default.mixInto(n)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),l=n(4),n=n(15),n=(i=n.default,o.__extends(r,i),r.prototype.updateDayTable=function(){for(var t,e,n,i=this.view,o=i.calendar,r=o.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0),s=o.msToUtcMoment(this.dateProfile.renderUnzonedRange.endMs,!0),a=-1,l=[],d=[];r.isBefore(s);)i.isHiddenDay(r)?l.push(a+.5):(l.push(++a),d.push(r.clone())),r.add(1,"days");if(this.breakOnWeeks){for(e=d[0].day(),t=1;t<d.length&&d[t].day()!==e;t++);n=Math.ceil(d.length/t)}else n=1,t=d.length;this.dayDates=d,this.dayIndices=l,this.daysPerRow=t,this.rowCnt=n,this.updateDayTableCols()},r.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},r.prototype.computeColCnt=function(){return this.daysPerRow},r.prototype.getCellDate=function(t,e){return this.dayDates[this.getCellDayIndex(t,e)].clone()},r.prototype.getCellRange=function(t,e){t=this.getCellDate(t,e);return{start:t,end:t.clone().add(1,"days")}},r.prototype.getCellDayIndex=function(t,e){return t*this.daysPerRow+this.getColDayIndex(e)},r.prototype.getColDayIndex=function(t){return this.isRTL?this.colCnt-1-t:t},r.prototype.getDateDayIndex=function(t){var e=this.dayIndices,t=t.diff(this.dayDates[0],"days");return t<0?e[0]-1:t>=e.length?e[e.length-1]+1:e[t]},r.prototype.computeColHeadFormat=function(){return 1<this.rowCnt||10<this.colCnt?"ddd":1<this.colCnt?this.opt("dayOfMonthFormat"):"dddd"},r.prototype.sliceRangeByRow=function(t){for(var e,n,i,o=this.daysPerRow,t=this.view.computeDayRange(t),r=this.getDateDayIndex(t.start),s=this.getDateDayIndex(t.end.clone().subtract(1,"days")),a=[],l=0;l<this.rowCnt;l++)i=(e=l*o)+o-1,n=Math.max(r,e),i=Math.min(s,i),(n=Math.ceil(n))<=(i=Math.floor(i))&&a.push({row:l,firstRowDayIndex:n-e,lastRowDayIndex:i-e,isStart:n===r,isEnd:i===s});return a},r.prototype.sliceRangeByDay=function(t){for(var e,n,i,o,r,s=this.daysPerRow,t=this.view.computeDayRange(t),a=this.getDateDayIndex(t.start),l=this.getDateDayIndex(t.end.clone().subtract(1,"days")),d=[],u=0;u<this.rowCnt;u++)for(n=(e=u*s)+s-1,i=e;i<=n;i++)o=Math.max(a,i),r=Math.min(l,i),(o=Math.ceil(o))<=(r=Math.floor(r))&&d.push({row:u,firstRowDayIndex:o-e,lastRowDayIndex:r-e,isStart:o===a,isEnd:r===l});return d},r.prototype.renderHeadHtml=function(){var t=this.view.calendar.theme;return'<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},r.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},r.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},r.prototype.renderHeadDateCellsHtml=function(){for(var t,e=[],n=0;n<this.colCnt;n++)t=this.getCellDate(0,n),e.push(this.renderHeadDateCellHtml(t));return e.join("")},r.prototype.renderHeadDateCellHtml=function(t,e,n){var i=this,o=i.view,r=i.dateProfile.activeUnzonedRange.containsDate(t),s=["fc-day-header",o.calendar.theme.getClass("widgetHeader")],a="function"==typeof i.opt("columnHeaderHtml")?i.opt("columnHeaderHtml")(t):"function"==typeof i.opt("columnHeaderText")?l.htmlEscape(i.opt("columnHeaderText")(t)):l.htmlEscape(t.format(i.colHeadFormat));return 1===i.rowCnt?s=s.concat(i.getDayClasses(t,!0)):s.push("fc-"+l.dayIDs[t.day()]),'<th class="'+s.join(" ")+'"'+(1===(r&&i.rowCnt)?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(1<e?' colspan="'+e+'"':"")+(n?" "+n:"")+">"+(r?o.buildGotoAnchorHtml({date:t,forceOff:1<i.rowCnt||1===i.colCnt},a):a)+"</th>"},r.prototype.renderBgTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+"</tr>"},r.prototype.renderBgIntroHtml=function(t){return this.renderIntroHtml()},r.prototype.renderBgCellsHtml=function(t){for(var e,n=[],i=0;i<this.colCnt;i++)e=this.getCellDate(t,i),n.push(this.renderBgCellHtml(e));return n.join("")},r.prototype.renderBgCellHtml=function(t,e){var n=this.view,i=this.dateProfile.activeUnzonedRange.containsDate(t),o=this.getDayClasses(t);return o.unshift("fc-day",n.calendar.theme.getClass("widgetContent")),'<td class="'+o.join(" ")+'"'+(i?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e?" "+e:"")+"></td>"},r.prototype.renderIntroHtml=function(){},r.prototype.bookendCells=function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e){function n(t,e){this.component=t,this.fillRenderer=e}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.render=function(t){var e=this.component,n=e._getDateProfile().activeUnzonedRange,t=t.buildEventInstanceGroup(e.hasAllDayBusinessHours,n),e=t?e.eventRangesToEventFootprints(t.sliceRenderRanges(n)):[];this.renderEventFootprints(e)},n.prototype.renderEventFootprints=function(t){t=this.component.eventFootprintsToSegs(t);this.renderSegs(t),this.segs=t},n.prototype.renderSegs=function(t){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",t,{getClasses:function(t){return["fc-nonbusiness","fc-bgevent"]}})},n.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},n.prototype.getSegs=function(){return this.segs||[]},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var a=n(3),o=n(4);function i(t){this.fillSegTag="div",this.component=t,this.elsByFill={}}i.prototype.renderFootprint=function(t,e,n){this.renderSegs(t,this.component.componentFootprintToSegs(e),n)},i.prototype.renderSegs=function(t,e,n){return e=this.buildSegEls(t,e,n),(n=this.attachSegEls(t,e))&&this.reportEls(t,n),e},i.prototype.unrender=function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},i.prototype.buildSegEls=function(t,n,i){var e,o=this,r="",s=[];if(n.length){for(e=0;e<n.length;e++)r+=this.buildSegHtml(t,n[e],i);a(r).each(function(t,e){t=n[t],e=a(e);(e=i.filterEl?i.filterEl(t,e):e)&&(e=a(e)).is(o.fillSegTag)&&(t.el=e,s.push(t))})}return s},i.prototype.buildSegHtml=function(t,e,n){var i=n.getClasses?n.getClasses(e):[],n=o.cssToStr(n.getCss?n.getCss(e):{});return"<"+this.fillSegTag+(i.length?' class="'+i.join(" ")+'"':"")+(n?' style="'+n+'"':"")+"></"+this.fillSegTag+">"},i.prototype.attachSegEls=function(t,e){},i.prototype.reportEls=function(t,e){this.elsByFill[t]?this.elsByFill[t]=this.elsByFill[t].add(e):this.elsByFill[t]=a(e)},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),o=n(34),r=n(6);function s(t,e){this.view=t._getView(),this.component=t,this.eventRenderer=e}s.prototype.renderComponentFootprint=function(t){this.renderEventFootprints([this.fabricateEventFootprint(t)])},s.prototype.renderEventDraggingFootprints=function(t,e,n){this.renderEventFootprints(t,e,"fc-dragging",n?null:this.view.opt("dragOpacity"))},s.prototype.renderEventResizingFootprints=function(t,e,n){this.renderEventFootprints(t,e,"fc-resizing")},s.prototype.renderEventFootprints=function(t,e,n,i){for(var o=this.component.eventFootprintsToSegs(t),r="fc-helper "+(n||""),o=this.eventRenderer.renderFgSegEls(o),s=0;s<o.length;s++)o[s].el.addClass(r);if(null!=i)for(s=0;s<o.length;s++)o[s].el.css("opacity",i);this.helperEls=this.renderSegs(o,e)},s.prototype.renderSegs=function(t,e){},s.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},s.prototype.fabricateEventFootprint=function(t){var e=this.view.calendar,n=e.footprintToDateProfile(t),e=new i.default(new r.default(e));return e.dateProfile=n,n=e.buildInstance(),new o.default(t,e,n)},e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(23),n=n(14),n=(i=n.default,o.__extends(s,i),s.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"click",this.handleClick.bind(this)),e.bindSegHandlerToEl(t,"mouseenter",this.handleMouseover.bind(this)),e.bindSegHandlerToEl(t,"mouseleave",this.handleMouseout.bind(this))},s.prototype.handleClick=function(t,e){!1===this.component.publiclyTrigger("eventClick",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]})&&e.preventDefault()},s.prototype.handleMouseover=function(t,e){r.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=t,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]}))},s.prototype.handleMouseout=function(t,e){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:t.el[0],args:[t.footprint.getEventLegacy(),e||{},this.view]}))},s.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(15),s=n(237),a=n(236),l=n(64),d=n(235),u=n(234),n=n(233),r=(i=r.default,o.__extends(c,i),c);function c(){return null!==i&&i.apply(this,arguments)||this}(e.default=r).prototype.dateClickingClass=s.default,r.prototype.dateSelectingClass=a.default,r.prototype.eventPointingClass=l.default,r.prototype.eventDraggingClass=d.default,r.prototype.eventResizingClass=u.default,r.prototype.externalDroppingClass=n.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),S=n(3),a=n(4),s=n(58),l=n(227),d=n(5),u=n(12),c=n(34),r=n(61),h=n(65),p=n(42),f=n(60),g=n(243),m=n(244),n=n(245),p=(i=p.default,o.__extends(v,i),v.prototype.componentFootprintToSegs=function(t){for(var e,n=this.sliceRangeByRow(t.unzonedRange),i=0;i<n.length;i++)e=n[i],this.isRTL?(e.leftCol=this.daysPerRow-1-e.lastRowDayIndex,e.rightCol=this.daysPerRow-1-e.firstRowDayIndex):(e.leftCol=e.firstRowDayIndex,e.rightCol=e.lastRowDayIndex);return n},v.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderGrid()},v.prototype.unrenderDates=function(){this.removeSegPopover()},v.prototype.renderGrid=function(){var t,e,n=this.view,i=this.rowCnt,o=this.colCnt,r="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),t=0;t<i;t++)r+=this.renderDayRowHtml(t,this.isRigid);for(this.el.html(r),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new s.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new s.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<i;t++)for(e=0;e<o;e++)this.publiclyTrigger("dayRender",{context:n,args:[this.getCellDate(t,e),this.getCellEl(t,e),n]})},v.prototype.renderDayRowHtml=function(t,e){var n=this.view.calendar.theme,i=["fc-row","fc-week",n.getClass("dayRow")];return e&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+this.renderBgTrHtml(t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},v.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},v.prototype.getIsDayNumbersVisible=function(){return 1<this.rowCnt},v.prototype.renderNumberTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+"</tr>"},v.prototype.renderNumberIntroHtml=function(t){return this.renderIntroHtml()},v.prototype.renderNumberCellsHtml=function(t){for(var e,n=[],i=0;i<this.colCnt;i++)e=this.getCellDate(t,i),n.push(this.renderNumberCellHtml(e));return n.join("")},v.prototype.renderNumberCellHtml=function(t){var e,n,i=this.view,o="",r=this.dateProfile.activeUnzonedRange.containsDate(t),s=this.getIsDayNumbersVisible()&&r;return s||this.cellWeekNumbersVisible?((e=this.getDayClasses(t)).unshift("fc-day-top"),this.cellWeekNumbersVisible&&(n="ISO"===t._locale._fullCalendar_weekCalc?1:t._locale.firstDayOfWeek()),o+='<td class="'+e.join(" ")+'"'+(r?' data-date="'+t.format()+'"':"")+">",this.cellWeekNumbersVisible&&t.day()===n&&(o+=i.buildGotoAnchorHtml({date:t,type:"week"},{class:"fc-week-number"},t.format("w"))),s&&(o+=i.buildGotoAnchorHtml(t,{class:"fc-day-number"},t.format("D"))),o+"</td>"):"<td></td>"},v.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},v.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},v.prototype.queryHit=function(t,e){if(this.colCoordCache.isLeftInBounds(t)&&this.rowCoordCache.isTopInBounds(e)){t=this.colCoordCache.getHorizontalIndex(t),e=this.rowCoordCache.getVerticalIndex(e);if(null!=e&&null!=t)return this.getCellHit(e,t)}},v.prototype.getHitFootprint=function(t){t=this.getCellRange(t.row,t.col);return new u.default(new d.default(t.start,t.end),!0)},v.prototype.getHitEl=function(t){return this.getCellEl(t.row,t.col)},v.prototype.getCellHit=function(t,e){return{row:t,col:e,component:this,left:this.colCoordCache.getLeftOffset(e),right:this.colCoordCache.getRightOffset(e),top:this.rowCoordCache.getTopOffset(t),bottom:this.rowCoordCache.getBottomOffset(t)}},v.prototype.getCellEl=function(t,e){return this.cellEls.eq(t*this.colCnt+e)},v.prototype.executeEventUnrender=function(){this.removeSegPopover(),i.prototype.executeEventUnrender.call(this)},v.prototype.getOwnEventSegs=function(){return i.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},v.prototype.renderDrag=function(t,e,n){for(var i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint);if(t.length&&e&&e.component!==this)return this.helperRenderer.renderEventDraggingFootprints(t,e,n),!0},v.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},v.prototype.renderEventResize=function(t,e,n){for(var i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint);this.helperRenderer.renderEventResizingFootprints(t,e,n)},v.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},v.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},v.prototype.limitRows=function(t){for(var e,n=this.eventRenderer.rowStructs||[],i=0;i<n.length;i++)this.unlimitRow(i),!1!==(e=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(i)))&&this.limitRow(i,e)},v.prototype.computeRowLevelLimit=function(t){function e(t,e){i=Math.max(i,S(e).outerHeight())}for(var n,i,o=this.rowEls.eq(t).height(),r=this.eventRenderer.rowStructs[t].tbodyEl.children(),s=0;s<r.length;s++)if(n=r.eq(s).removeClass("fc-limited"),i=0,n.find("> td > :first-child").each(e),n.position().top+i>o)return s;return!1},v.prototype.limitRow=function(e,n){function t(t){for(;_<t;)(l=y.getCellSegs(e,_,n)).length&&(c=o[n-1][_],v=y.renderMoreLink(e,_,l),m=S("<div>").append(v),c.append(m),w.push(m[0])),_++}var i,o,r,s,a,l,d,u,c,h,p,f,g,m,v,y=this,b=this.eventRenderer.rowStructs[e],w=[],_=0;if(n&&n<b.segLevels.length){for(i=b.segLevels[n-1],o=b.cellMatrix,r=b.tbodyEl.children().slice(n).addClass("fc-limited").get(),s=0;s<i.length;s++){for(t((a=i[s]).leftCol),u=[],d=0;_<=a.rightCol;)l=this.getCellSegs(e,_,n),u.push(l),d+=l.length,_++;if(d){for(h=(c=o[n-1][a.leftCol]).attr("rowspan")||1,p=[],f=0;f<u.length;f++)g=S('<td class="fc-more-cell">').attr("rowspan",h),l=u[f],v=this.renderMoreLink(e,a.leftCol+f,[a].concat(l)),m=S("<div>").append(v),g.append(m),p.push(g[0]),w.push(g[0]);c.addClass("fc-limited").after(S(p)),r.push(c[0])}}t(this.colCnt),b.moreEls=S(w),b.limitedEls=S(r)}},v.prototype.unlimitRow=function(t){t=this.eventRenderer.rowStructs[t];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},v.prototype.renderMoreLink=function(a,l,d){var u=this,c=this.view;return S('<a class="fc-more">').text(this.getMoreLinkText(d.length)).on("click",function(t){var e=u.opt("eventLimitClick"),n=u.getCellDate(a,l),i=S(t.currentTarget),o=u.getCellEl(a,l),r=u.getCellSegs(a,l),r=u.resliceDaySegs(r,n),s=u.resliceDaySegs(d,n);"popover"===(e="function"==typeof e?u.publiclyTrigger("eventLimitClick",{context:c,args:[{date:n.clone(),dayEl:o,moreEl:i,segs:r,hiddenSegs:s},t,c]}):e)?u.showSegPopover(a,l,i,r):"string"==typeof e&&c.calendar.zoomTo(n,e)})},v.prototype.showSegPopover=function(t,e,n,i){var o=this,r=this.view,n=n.parent(),s=1===this.rowCnt?r.el:this.rowEls.eq(t),t={className:"fc-more-popover "+r.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(t,e,i),parentEl:r.el,top:s.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){o.popoverSegs&&o.triggerBeforeEventSegsDestroyed(o.popoverSegs),o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}};this.isRTL?t.right=n.offset().left+n.outerWidth()+1:t.left=n.offset().left-1,this.segPopover=new l.default(t),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(i)},v.prototype.renderSegPopoverContent=function(t,e,n){var i,o=this.view.calendar.theme,r=this.getCellDate(t,e).format(this.opt("dayPopoverFormat")),r=S('<div class="fc-header '+o.getClass("popoverHeader")+'"><span class="fc-close '+o.getIconClass("close")+'"></span><span class="fc-title">'+a.htmlEscape(r)+'</span><div class="fc-clear"></div></div><div class="fc-body '+o.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),s=r.find(".fc-event-container");for(n=this.eventRenderer.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i<n.length;i++)this.hitsNeeded(),n[i].hit=this.getCellHit(t,e),this.hitsNotNeeded(),s.append(n[i].el);return r},v.prototype.resliceDaySegs=function(t,e){for(var n,i,e=e.clone(),o=e.clone().add(1,"days"),r=new d.default(e,o),s=[],a=0;a<t.length;a++)(i=(n=t[a]).footprint.componentFootprint.unzonedRange.intersect(r))&&s.push(S.extend({},n,{footprint:new c.default(new u.default(i,n.footprint.componentFootprint.isAllDay),n.footprint.eventDef,n.footprint.eventInstance),isStart:n.isStart&&i.isStart,isEnd:n.isEnd&&i.isEnd}));return this.eventRenderer.sortEventSegs(s),s},v.prototype.getMoreLinkText=function(t){var e=this.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},v.prototype.getCellSegs=function(t,e,n){for(var i,o=this.eventRenderer.rowStructs[t].segMatrix,r=n||0,s=[];r<o.length;)(i=o[r][e])&&s.push(i),r++;return s},v);function v(t){t=i.call(this,t)||this;return t.cellWeekNumbersVisible=!1,t.bottomCoordPadding=0,t.isRigid=!1,t.hasAllDayBusinessHours=!0,t}(e.default=p).prototype.eventRendererClass=g.default,p.prototype.businessHourRendererClass=r.default,p.prototype.helperRendererClass=m.default,p.prototype.fillRendererClass=n.default,h.default.mixInto(p),f.default.mixInto(p)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(2),o=n(3),a=n(4),r=n(41),l=n(43),d=n(68),u=n(66),n=(s=l.default,i.__extends(c,s),c.prototype.instantiateDayGrid=function(){return e=this.dayGridClass,n=e,i.__extends(t,n),t.prototype.renderHeadIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+t.calendar.theme.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+a.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},t.prototype.renderNumberIntroHtml=function(t){var e=this.view,t=this.getCellDate(t,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+">"+e.buildGotoAnchorHtml({date:t,type:"week",forceOff:1===this.colCnt},t.format("w"))+"</td>":""},t.prototype.renderBgIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+t.calendar.theme.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},t.prototype.renderIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},t.prototype.getIsNumbersVisible=function(){return u.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},new t(this);function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.colWeekNumbersVisible=!1,t}var e,n},c.prototype.executeDateRender=function(t){this.dayGrid.breakOnWeeks=/year|month|week/.test(t.currentRangeUnit),s.prototype.executeDateRender.call(this,t)},c.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-day-grid-container"),e=o('<div class="fc-day-grid">').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(e)},c.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},c.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},c.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},c.prototype.hasRigidRows=function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},c.prototype.updateSize=function(t,e,n){var i,o=this.opt("eventLimit"),r=this.dayGrid.headContainerEl.find(".fc-row");this.dayGrid.rowEls?(s.prototype.updateSize.call(this,t,e,n),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=a.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),a.uncompensateScroll(r),this.dayGrid.removeSegPopover(),o&&"number"==typeof o&&this.dayGrid.limitRows(o),i=this.computeScrollerHeight(t),this.setGridHeight(i,e),o&&"number"!=typeof o&&this.dayGrid.limitRows(o),e||(this.scroller.setHeight(i),((n=this.scroller.getScrollbarWidths()).left||n.right)&&(a.compensateScroll(r,n),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(n))):e||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},c.prototype.computeScrollerHeight=function(t){return t-a.subtractInnerElHeight(this.el,this.scroller.el)},c.prototype.setGridHeight=function(t,e){e?a.undistributeHeight(this.dayGrid.rowEls):a.distributeHeight(this.dayGrid.rowEls,t,!0)},c.prototype.computeInitialDateScroll=function(){return{top:0}},c.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},c.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},c);function c(t,e){t=s.call(this,t,e)||this;return t.dayGrid=t.instantiateDayGrid(),t.dayGrid.isRigid=t.hasRigidRows(),t.opt("weekNumbers")&&(t.opt("weekNumbersWithinDays")?(t.dayGrid.cellWeekNumbersVisible=!0,t.dayGrid.colWeekNumbersVisible=!1):(t.dayGrid.cellWeekNumbersVisible=!1,t.dayGrid.colWeekNumbersVisible=!0)),t.addChild(t.dayGrid),t.scroller=new r.default({overflowX:"hidden",overflowY:"auto"}),t}(e.default=n).prototype.dateProfileGeneratorClass=d.default,n.prototype.dayGridClass=u.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o,i=n(2),r=n(5),n=n(55),n=(o=n.default,i.__extends(s,o),s.prototype.buildRenderRange=function(t,e,n){var t=o.prototype.buildRenderRange.call(this,t,e,n),i=this.msToUtcMoment(t.startMs,n),t=this.msToUtcMoment(t.endMs,n);return/^(year|month)$/.test(e)&&(i.startOf("week"),t.weekday())&&t.add(1,"week").startOf("week"),new r.default(i,t)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.default=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=n(12),r=n(36),s=n(6),l=n(19);function a(t,e){this.eventManager=t,this._calendar=e}a.prototype.opt=function(t){return this._calendar.opt(t)},a.prototype.isEventInstanceGroupAllowed=function(t){for(var e=t.getEventDef(),n=this.eventRangesToEventFootprints(t.getAllEventRanges()),t=this.getPeerEventInstances(e).map(l.eventInstanceToEventRange),i=this.eventRangesToEventFootprints(t),o=e.getConstraint(),r=e.getOverlap(),s=this.opt("eventAllow"),a=0;a<n.length;a++)if(!this.isFootprintAllowed(n[a].componentFootprint,i,o,r,n[a].eventInstance))return!1;if(s)for(a=0;a<n.length;a++)if(!1===s(n[a].componentFootprint.toLegacy(this._calendar),n[a].getEventLegacy()))return!1;return!0},a.prototype.getPeerEventInstances=function(t){return this.eventManager.getEventInstancesWithoutId(t.id)},a.prototype.isSelectionFootprintAllowed=function(t){var e=this.eventManager.getEventInstances().map(l.eventInstanceToEventRange),e=this.eventRangesToEventFootprints(e);return!(!this.isFootprintAllowed(t,e,this.opt("selectConstraint"),this.opt("selectOverlap"))||(e=this.opt("selectAllow"))&&!1===e(t.toLegacy(this._calendar)))},a.prototype.isFootprintAllowed=function(t,e,n,i,o){if(null!=n&&(n=this.constraintValToFootprints(n,t.isAllDay),!this.isFootprintWithinConstraints(t,n)))return!1;if(n=this.collectOverlapEventFootprints(e,t),!1===i){if(n.length)return!1}else if("function"==typeof i&&!function(t,e,n){for(var i=0;i<t.length;i++)if(!e(t[i].eventInstance.toLegacy(),n?n.toLegacy():null))return;return 1}(n,i,o))return!1;return!(o&&!function(t,e){for(var n,i,o=e.toLegacy(),r=0;r<t.length;r++){if(!1===(i=(n=t[r].eventInstance).def.getOverlap()))return;if("function"==typeof i&&!i(n.toLegacy(),o))return}return 1}(n,o))},a.prototype.isFootprintWithinConstraints=function(t,e){for(var n=0;n<e.length;n++)if(this.footprintContainsFootprint(e[n],t))return!0;return!1},a.prototype.constraintValToFootprints=function(t,e){var n;return"businessHours"===t?this.buildCurrentBusinessFootprints(e):"object"==typeof t?(n=this.parseEventDefToInstances(t))?this.eventInstancesToFootprints(n):this.parseFootprints(t):null!=t?(n=this.eventManager.getEventInstancesWithId(t),this.eventInstancesToFootprints(n)):void 0},a.prototype.buildCurrentBusinessFootprints=function(t){var e=this._calendar.view,n=e.get("businessHourGenerator"),e=e.dateProfile.activeUnzonedRange,n=n.buildEventInstanceGroup(t,e);return n?this.eventInstancesToFootprints(n.eventInstances):[]},a.prototype.eventInstancesToFootprints=function(t){t=t.map(l.eventInstanceToEventRange);return this.eventRangesToEventFootprints(t).map(l.eventFootprintToComponentFootprint)},a.prototype.collectOverlapEventFootprints=function(t,e){for(var n=[],i=0;i<t.length;i++)this.footprintsIntersect(e,t[i].componentFootprint)&&n.push(t[i]);return n},a.prototype.parseEventDefToInstances=function(t){var e=this.eventManager,t=r.default.parse(t,new s.default(this._calendar));return!!t&&t.buildInstances(e.currentPeriod.unzonedRange)},a.prototype.eventRangesToEventFootprints=function(t){for(var e=[],n=0;n<t.length;n++)e.push.apply(e,this.eventRangeToEventFootprints(t[n]));return e},a.prototype.eventRangeToEventFootprints=function(t){return[l.eventRangeToEventFootprint(t)]},a.prototype.parseFootprints=function(t){var e,n;return t.start&&((e=this._calendar.moment(t.start)).isValid()||(e=null)),t.end&&((n=this._calendar.moment(t.end)).isValid()||(n=null)),[new o.default(new i.default(e,n),e&&!e.hasTime()||n&&!n.hasTime())]},a.prototype.footprintContainsFootprint=function(t,e){return t.unzonedRange.containsRange(e.unzonedRange)},a.prototype.footprintsIntersect=function(t,e){return t.unzonedRange.intersectsWith(e.unzonedRange)},e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(3),i=n(19),o=n(20),r=n(54),a=n(6),l={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};function d(t,e){this.rawComplexDef=t,this.calendar=e}d.prototype.buildEventInstanceGroup=function(t,e){t=this.buildEventDefs(t);if(t.length)return(e=new o.default(i.eventDefsToEventInstances(t,e))).explicitEventDef=t[0],e},d.prototype.buildEventDefs=function(t){var e,n=this.rawComplexDef,i=[],o=!1,r=[];for(!0===n?i=[{}]:s.isPlainObject(n)?i=[n]:s.isArray(n)&&(i=n,o=!0),e=0;e<i.length;e++)o&&!i[e].dow||r.push(this.buildEventDef(t,i[e]));return r},d.prototype.buildEventDef=function(t,e){e=s.extend({},l,e);return t&&(e.start=null,e.end=null),r.default.parse(e,new a.default(this.calendar))},e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(21),s=n(13),a=n(5),l=n(20),n=(d.prototype.isWithinRange=function(t,e){return!t.isBefore(this.start)&&!e.isAfter(this.end)},d.prototype.requestSources=function(t){this.freeze();for(var e=0;e<t.length;e++)this.requestSource(t[e]);this.thaw()},d.prototype.requestSource=function(t){var e=this,n={source:t,status:"pending",eventDefs:null};this.requestsByUid[t.uid]=n,this.pendingCnt+=1,t.fetch(this.start,this.end,this.timezone).then(function(t){"cancelled"!==n.status&&(n.status="completed",n.eventDefs=t,e.addEventDefs(t),e.pendingCnt--,e.tryRelease())},function(){"cancelled"!==n.status&&(n.status="failed",e.pendingCnt--,e.tryRelease())})},d.prototype.purgeSource=function(t){var e=this.requestsByUid[t.uid];e&&(delete this.requestsByUid[t.uid],"pending"===e.status?(e.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===e.status&&e.eventDefs.forEach(this.removeEventDef.bind(this)))},d.prototype.purgeAllSources=function(){var t,e,n=this.requestsByUid,i=0;for(t in n)e=n[t],"pending"===e.status?e.status="cancelled":"completed"===e.status&&i++;this.requestsByUid={},this.pendingCnt=0,i&&this.removeAllEventDefs()},d.prototype.getEventDefByUid=function(t){return this.eventDefsByUid[t]},d.prototype.getEventDefsById=function(t){t=this.eventDefsById[t];return t?t.slice():[]},d.prototype.addEventDefs=function(t){for(var e=0;e<t.length;e++)this.addEventDef(t[e])},d.prototype.addEventDef=function(t){var e,n=this.eventDefsById,i=t.id,n=n[i]||(n[i]=[]),o=t.buildInstances(this.unzonedRange);for(n.push(t),this.eventDefsByUid[t.uid]=t,e=0;e<o.length;e++)this.addEventInstance(o[e],i)},d.prototype.removeEventDefsById=function(t){var e=this;this.getEventDefsById(t).forEach(function(t){e.removeEventDef(t)})},d.prototype.removeAllEventDefs=function(){var t=i.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},t||this.tryRelease()},d.prototype.removeEventDef=function(t){var e=this.eventDefsById,n=e[t.id];delete this.eventDefsByUid[t.uid],n&&(o.removeExact(n,t),n.length||delete e[t.id],this.removeEventInstancesForDef(t))},d.prototype.getEventInstances=function(){var t,e=this.eventInstanceGroupsById,n=[];for(t in e)n.push.apply(n,e[t].eventInstances);return n},d.prototype.getEventInstancesWithId=function(t){t=this.eventInstanceGroupsById[t];return t?t.eventInstances.slice():[]},d.prototype.getEventInstancesWithoutId=function(t){var e,n=this.eventInstanceGroupsById,i=[];for(e in n)e!==t&&i.push.apply(i,n[e].eventInstances);return i},d.prototype.addEventInstance=function(t,e){var n=this.eventInstanceGroupsById;(n[e]||(n[e]=new l.default)).eventInstances.push(t),this.tryRelease()},d.prototype.removeEventInstancesForDef=function(e){var t,n=this.eventInstanceGroupsById,i=n[e.id];i&&(t=o.removeMatching(i.eventInstances,function(t){return t.def===e}),i.eventInstances.length||delete n[e.id],t)&&this.tryRelease()},d.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},d.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},d.prototype.whenReleased=function(){var e=this;return this.releaseCnt?r.default.resolve(this.eventInstanceGroupsById):r.default.construct(function(t){e.one("release",t)})},d.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},d.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},d);function d(t,e,n){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=t,this.end=e,this.timezone=n,this.unzonedRange=new a.default(t.clone().stripZone(),e.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}e.default=n,s.default.mixInto(n)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),i=n(4),r=n(219),s=n(56),a=n(6),l=n(38),d=n(9),u=n(20),c=n(13),n=n(7),h=(p.prototype.requestEvents=function(t,e,n,i){return!i&&this.currentPeriod&&this.currentPeriod.isWithinRange(t,e)&&n===this.currentPeriod.timezone||this.setPeriod(new r.default(t,e,n)),this.currentPeriod.whenReleased()},p.prototype.addSource=function(t){this.otherSources.push(t),this.currentPeriod&&this.currentPeriod.requestSource(t)},p.prototype.removeSource=function(t){i.removeExact(this.otherSources,t),this.currentPeriod&&this.currentPeriod.purgeSource(t)},p.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},p.prototype.refetchSource=function(t){var e=this.currentPeriod;e&&(e.freeze(),e.purgeSource(t),e.requestSource(t),e.thaw())},p.prototype.refetchAllSources=function(){var t=this.currentPeriod;t&&(t.freeze(),t.purgeAllSources(),t.requestSources(this.getSources()),t.thaw())},p.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},p.prototype.multiQuerySources=function(t){t?o.isArray(t)||(t=[t]):t=[];for(var e=[],n=0;n<t.length;n++)e.push.apply(e,this.querySources(t[n]));return e},p.prototype.querySources=function(e){for(var t,n=this.otherSources,i=0;i<n.length;i++)if((t=n[i])===e)return[t];return(t=this.getSourceById(a.default.normalizeId(e)))?[t]:(e=l.default.parse(e,this.calendar))?o.grep(n,function(t){return t=t,e.getPrimitive()===t.getPrimitive()}):void 0},p.prototype.getSourceById=function(e){return o.grep(this.otherSources,function(t){return t.id&&t.id===e})[0]},p.prototype.setPeriod=function(t){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=t,this.bindPeriod(t),t.requestSources(this.getSources())},p.prototype.bindPeriod=function(t){this.listenTo(t,"release",function(t){this.trigger("release",t)})},p.prototype.unbindPeriod=function(t){this.stopListeningTo(t)},p.prototype.getEventDefByUid=function(t){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(t)},p.prototype.addEventDef=function(t,e){e&&this.stickySource.addEventDef(t),this.currentPeriod&&this.currentPeriod.addEventDef(t)},p.prototype.removeEventDefsById=function(e){this.getSources().forEach(function(t){t.removeEventDefsById(e)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(e)},p.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(t){t.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},p.prototype.mutateEventsWithId=function(t,e){var n,i=this.currentPeriod,o=[];return i?(i.freeze(),(n=i.getEventDefsById(t)).forEach(function(t){i.removeEventDef(t),o.push(e.mutateSingle(t)),i.addEventDef(t)}),i.thaw(),function(){i.freeze();for(var t=0;t<n.length;t++)i.removeEventDef(n[t]),o[t](),i.addEventDef(n[t]);i.thaw()}):function(){}},p.prototype.buildMutatedEventInstanceGroup=function(t,e){for(var n,i=this.getEventDefsById(t),o=[],r=0;r<i.length;r++)(n=i[r].clone())instanceof d.default&&(e.mutateSingle(n),o.push.apply(o,n.buildInstances()));return new u.default(o)},p.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},p.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},p.prototype.getEventDefsById=function(t){return this.currentPeriod.getEventDefsById(t)},p.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},p.prototype.getEventInstancesWithId=function(t){return this.currentPeriod.getEventInstancesWithId(t)},p.prototype.getEventInstancesWithoutId=function(t){return this.currentPeriod.getEventInstancesWithoutId(t)},p);function p(t){this.calendar=t,this.stickySource=new s.default(t),this.otherSources=[]}e.default=h,c.default.mixInto(h),n.default.mixInto(h)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(22),n=(i=n.default,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},n.prototype.baseIconClass="fc-icon",n.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},n.prototype.iconOverrideOption="buttonIcons",n.prototype.iconOverrideCustomButtonOption="icon",n.prototype.iconOverridePrefix="fc-icon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(22),n=(i=n.default,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},n.prototype.baseIconClass="ui-icon",n.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},n.prototype.iconOverrideOption="themeButtonIcons",n.prototype.iconOverrideCustomButtonOption="themeIcon",n.prototype.iconOverridePrefix="ui-icon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(21),a=n(6),n=(i=a.default,o.__extends(l,i),l.parse=function(t,e){var n;return r.isFunction(t.events)?n=t:r.isFunction(t)&&(n={events:t}),!!n&&a.default.parse.call(this,n,e)},l.prototype.fetch=function(t,n,i){var o=this;return this.calendar.pushLoading(),s.default.construct(function(e){o.func.call(o.calendar,t.clone(),n.clone(),i,function(t){o.calendar.popLoading(),e(o.parseEventDefs(t))})})},l.prototype.getPrimitive=function(){return this.func},l.prototype.applyManualStandardProps=function(t){var e=i.prototype.applyManualStandardProps.call(this,t);return this.func=t.events,e},l);function l(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).defineStandardProps({events:!1})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),u=n(3),c=n(4),h=n(21),r=n(6),n=(i=r.default,o.__extends(p,i),p.parse=function(t,e){var n;return"string"==typeof t.url?n=t:"string"==typeof t&&(n={url:t}),!!n&&r.default.parse.call(this,n,e)},p.prototype.fetch=function(t,e,n){var r=this,s=this.ajaxSettings,a=s.success,l=s.error,d=this.buildRequestParams(t,e,n);return this.calendar.pushLoading(),h.default.construct(function(i,o){u.ajax(u.extend({},p.AJAX_DEFAULTS,s,{url:r.url,data:d,success:function(t,e,n){r.calendar.popLoading(),t?(e=c.applyAll(a,r,[t,e,n]),u.isArray(e)&&(t=e),i(r.parseEventDefs(t))):o()},error:function(t,e,n){r.calendar.popLoading(),c.applyAll(l,r,[t,e,n]),o()}}))})},p.prototype.buildRequestParams=function(t,e,n){var i,o,r=this.calendar,s=this.ajaxSettings,a={},l=this.startParam;return null==l&&(l=r.opt("startParam")),null==(i=this.endParam)&&(i=r.opt("endParam")),null==(o=this.timezoneParam)&&(o=r.opt("timezoneParam")),r=u.isFunction(s.data)?s.data():s.data||{},u.extend(a,r),a[l]=t.format(),a[i]=e.format(),n&&"local"!==n&&(a[o]=n),a},p.prototype.getPrimitive=function(){return this.url},p.prototype.applyMiscProps=function(t){this.ajaxSettings=t},p.AJAX_DEFAULTS={dataType:"json",cache:!1},p);function p(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(t,e){function n(t){this.items=t||[]}Object.defineProperty(e,"__esModule",{value:!0}),n.prototype.proxyCall=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var i=[];return this.items.forEach(function(t){i.push(t[e].apply(t,n))}),i},e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(4),n=n(7),o=(s.prototype.start=function(t){this.isFollowing||(this.isFollowing=!0,this.y0=i.getEvY(t),this.x0=i.getEvX(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),i.getEvIsTouch(t)?this.listenTo(r(document),"touchmove",this.handleMove):this.listenTo(r(document),"mousemove",this.handleMove))},s.prototype.stop=function(t,e){function n(){i.isAnimating=!1,i.removeElement(),i.top0=i.left0=null,e&&e()}var i=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(r(document)),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:n})):n())},s.prototype.getEl=function(){var t=this.el;return t||((t=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex})).addClass("fc-unselectable"),t.appendTo(this.parentEl)),t},s.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},s.prototype.updatePosition=function(){var t,e;this.getEl(),null==this.top0&&(t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},s.prototype.handleMove=function(t){this.topDelta=i.getEvY(t)-this.y0,this.leftDelta=i.getEvX(t)-this.x0,this.isHidden||this.updatePosition()},s.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},s.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},s);function s(t,e){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?r(e.parentEl):t.parent()}e.default=o,n.default.mixInto(o)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var u=n(3),c=n(4),n=n(7),i=(o.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},o.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},o.prototype.render=function(){var t=this,e=this.options;this.el=u('<div class="fc-popover">').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&this.listenTo(u(document),"mousedown",this.documentMousedown)},o.prototype.documentMousedown=function(t){this.el&&!u(t.target).closest(this.el).length&&this.hide()},o.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(u(document),"mousedown")},o.prototype.position=function(){var t,e=this.options,n=this.el.offsetParent().offset(),i=this.el.outerWidth(),o=this.el.outerHeight(),r=u(window),s=c.getScrollParent(this.el),a=e.top||0,l=void 0!==e.left?e.left:void 0!==e.right?e.right-i:0,d=s.is(window)||s.is(document)?(s=r,t=0):(t=(d=s.offset()).top,d.left);t+=r.scrollTop(),d+=r.scrollLeft(),!1!==e.viewportConstrain&&(a=Math.min(a,t+s.outerHeight()-o-this.margin),a=Math.max(a,t+this.margin),l=Math.min(l,d+s.outerWidth()-i-this.margin),l=Math.max(l,d+this.margin)),this.el.css({top:a-n.top,left:l-n.left})},o.prototype.trigger=function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},o);function o(t){this.isHidden=!0,this.margin=10,this.options=t||{}}e.default=i,n.default.mixInto(i)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var n=n(13),i=(o.prototype.queue=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.q.push.apply(this.q,t),this.tryStart()},o.prototype.pause=function(){this.isPaused=!0},o.prototype.resume=function(){this.isPaused=!1,this.tryStart()},o.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},o.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},o.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},o.prototype.runRemaining=function(){var t,e=this;do{if(t=this.q.shift(),(t=this.runTask(t))&&t.then)return void t.then(function(){e.canRunNext()&&e.runRemaining()})}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},o.prototype.runTask=function(t){return t()},o);function o(){this.q=[],this.isPaused=!1,this.isRunning=!1}e.default=i,n.default.mixInto(i)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(228),n=(i=n.default,o.__extends(r,i),r.prototype.queue=function(t,e,n){var i,t={func:t,namespace:e,type:n};e&&(i=this.waitsByNamespace[e]),this.waitNamespace&&(e===this.waitNamespace&&null!=i?this.delayWait(i):(this.clearWait(),this.tryStart())),this.compoundTask(t)&&(this.waitNamespace||null==i?this.tryStart():this.startWait(e,i))},r.prototype.startWait=function(t,e){this.waitNamespace=t,this.spawnWait(e)},r.prototype.delayWait=function(t){clearTimeout(this.waitId),this.spawnWait(t)},r.prototype.spawnWait=function(t){var e=this;this.waitId=setTimeout(function(){e.waitNamespace=null,e.tryStart()},t)},r.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},r.prototype.canRunNext=function(){if(!i.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var t=this.q,e=0;e<t.length;e++)if(t[e].namespace!==this.waitNamespace)return!0;return!1}return!0},r.prototype.runTask=function(t){t.func()},r.prototype.compoundTask=function(t){var e,n,i=this.q,o=!0;if(t.namespace&&"destroy"===t.type)for(e=i.length-1;0<=e;e--)if((n=i[e]).namespace===t.namespace)switch(n.type){case"init":o=!1;case"add":case"remove":i.splice(e,1)}return o&&i.push(t),o},r);function r(t){var e=i.call(this)||this;return e.waitsByNamespace=t||{},e}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(51),n=(i=n.default,o.__extends(r,i),r.prototype.setElement=function(t){this.el=t,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},r.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},r.prototype.bindGlobalHandlers=function(){},r.prototype.unbindGlobalHandlers=function(){},r.prototype.renderSkeleton=function(){},r.prototype.unrenderSkeleton=function(){},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),s=n(3),r=n(0),a=n(4),l=n(11),d=n(49),u=n(230),c=n(19),n=(i=u.default,o.__extends(h,i),h.prototype.addChild=function(t){return!this.childrenByUid[t.uid]&&(this.childrenByUid[t.uid]=t,!0)},h.prototype.removeChild=function(t){return!!this.childrenByUid[t.uid]&&(delete this.childrenByUid[t.uid],!0)},h.prototype.updateSize=function(t,e,n){this.callChildren("updateSize",arguments)},h.prototype.opt=function(t){return this._getView().opt(t)},h.prototype.publiclyTrigger=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getCalendar();return n.publiclyTrigger.apply(n,t)},h.prototype.hasPublicHandlers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getCalendar();return n.hasPublicHandlers.apply(n,t)},h.prototype.executeDateRender=function(t){this.dateProfile=t,this.renderDates(t),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},h.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},h.prototype.renderDates=function(t){},h.prototype.unrenderDates=function(){},h.prototype.getNowIndicatorUnit=function(){},h.prototype.renderNowIndicator=function(t){this.callChildren("renderNowIndicator",arguments)},h.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},h.prototype.renderBusinessHours=function(t){this.businessHourRenderer&&this.businessHourRenderer.render(t),this.callChildren("renderBusinessHours",arguments)},h.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},h.prototype.executeEventRender=function(t){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(t)):this.renderEvents&&this.renderEvents(function(t){var e,n,i,o=[];for(e in t)for(n=t[e].eventInstances,i=0;i<n.length;i++)o.push(n[i].toLegacy());return o}(t)),this.callChildren("executeEventRender",arguments)},h.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},h.prototype.getBusinessHourSegs=function(){var e=this.getOwnBusinessHourSegs();return this.iterChildren(function(t){e.push.apply(e,t.getBusinessHourSegs())}),e},h.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},h.prototype.getEventSegs=function(){var e=this.getOwnEventSegs();return this.iterChildren(function(t){e.push.apply(e,t.getEventSegs())}),e},h.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},h.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},h.prototype.triggerAfterEventSegsRendered=function(t){var n=this;this.hasPublicHandlers("eventAfterRender")&&t.forEach(function(t){var e;t.el&&(e=t.footprint.getEventLegacy(),n.publiclyTrigger("eventAfterRender",{context:e,args:[e,t.el,n]}))})},h.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},h.prototype.triggerBeforeEventSegsDestroyed=function(t){var n=this;this.hasPublicHandlers("eventDestroy")&&t.forEach(function(t){var e;t.el&&(e=t.footprint.getEventLegacy(),n.publiclyTrigger("eventDestroy",{context:e,args:[e,t.el,n]}))})},h.prototype.showEventsWithId=function(e){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===e&&t.el&&t.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},h.prototype.hideEventsWithId=function(e){this.getEventSegs().forEach(function(t){t.footprint.eventDef.id===e&&t.el&&t.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},h.prototype.renderDrag=function(e,n,i){var o=!1;return this.iterChildren(function(t){t.renderDrag(e,n,i)&&(o=!0)}),o},h.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},h.prototype.renderEventResize=function(t,e,n){this.callChildren("renderEventResize",arguments)},h.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},h.prototype.renderSelectionFootprint=function(t){this.renderHighlight(t),this.callChildren("renderSelectionFootprint",arguments)},h.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},h.prototype.renderHighlight=function(t){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",t,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},h.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},h.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},h.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},h.prototype.prepareHits=function(){},h.prototype.releaseHits=function(){},h.prototype.queryHit=function(t,e){var n,i,o=this.childrenByUid;for(n in o)if(i=o[n].queryHit(t,e))break;return i},h.prototype.getSafeHitFootprint=function(t){t=this.getHitFootprint(t);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},h.prototype.getHitFootprint=function(t){},h.prototype.getHitEl=function(t){},h.prototype.eventRangesToEventFootprints=function(t){for(var e=[],n=0;n<t.length;n++)e.push.apply(e,this.eventRangeToEventFootprints(t[n]));return e},h.prototype.eventRangeToEventFootprints=function(t){return[c.eventRangeToEventFootprint(t)]},h.prototype.eventFootprintsToSegs=function(t){for(var e=[],n=0;n<t.length;n++)e.push.apply(e,this.eventFootprintToSegs(t[n]));return e},h.prototype.eventFootprintToSegs=function(t){for(var e,n=t.componentFootprint.unzonedRange,i=this.componentFootprintToSegs(t.componentFootprint),o=0;o<i.length;o++)e=i[o],n.isStart||(e.isStart=!1),n.isEnd||(e.isEnd=!1),e.footprint=t;return i},h.prototype.componentFootprintToSegs=function(t){return[]},h.prototype.callChildren=function(e,n){this.iterChildren(function(t){t[e].apply(t,n)})},h.prototype.iterChildren=function(t){var e,n=this.childrenByUid;for(e in n)t(n[e])},h.prototype._getCalendar=function(){return this.calendar||this.view.calendar},h.prototype._getView=function(){return this.view},h.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},h.prototype.buildGotoAnchorHtml=function(t,e,n){var i,o,r;return s.isPlainObject(t)?(i=t.date,o=t.type,r=t.forceOff):i=t,t={date:(i=l.default(i)).format("YYYY-MM-DD"),type:o||"day"},"string"==typeof e&&(n=e,e=null),e=e?" "+a.attrsToStr(e):"",n=n||"",!r&&this.opt("navLinks")?"<a"+e+' data-goto="'+a.htmlEscape(JSON.stringify(t))+'">'+n+"</a>":"<span"+e+">"+n+"</span>"},h.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||a.htmlEscape(this.opt("allDayText"))},h.prototype.getDayClasses=function(t,e){var n,i=this._getView(),o=[];return this.dateProfile.activeUnzonedRange.containsDate(t)?(o.push("fc-"+a.dayIDs[t.day()]),i.isDateInOtherMonth(t,this.dateProfile)&&o.push("fc-other-month"),n=i.calendar.getNow(),t.isSame(n,"day")?(o.push("fc-today"),!0!==e&&o.push(i.calendar.theme.getClass("today"))):o.push(t<n?"fc-past":"fc-future")):o.push("fc-disabled-day"),o},h.prototype.formatRange=function(t,e,n,i){var o=t.end;return e&&(o=o.clone().subtract(1)),d.formatRange(t.start,o,n,i,this.isRTL)},h.prototype.currentRangeAs=function(t){return this._getDateProfile().currentUnzonedRange.as(t)},h.prototype.computeDayRange=function(t){var e=this._getCalendar(),n=e.msToUtcMoment(t.startMs,!0),e=e.msToUtcMoment(t.endMs),t=+e.time(),e=e.clone().stripTime();return t&&t>=this.nextDayThreshold&&e.add(1,"days"),e<=n&&(e=n.clone().add(1,"days")),{start:n,end:e}},h.prototype.isMultiDayRange=function(t){t=this.computeDayRange(t);return 1<t.end.diff(t.start,"days")},h.guid=0,h);function h(t,e){var n=i.call(this)||this;return n.isRTL=!1,n.hitsNeededDepth=0,n.hasAllDayBusinessHours=!1,n.isDatesRendered=!1,t&&(n.view=t),e&&(n.options=e),n.uid=String(h.guid++),n.childrenByUid={},n.nextDayThreshold=r.duration(n.opt("nextDayThreshold")),n.isRTL=n.opt("isRTL"),n.fillRendererClass&&(n.fillRenderer=new n.fillRendererClass(n)),n.eventRendererClass&&(n.eventRenderer=new n.eventRendererClass(n,n.fillRenderer)),n.helperRendererClass&&n.eventRenderer&&(n.helperRenderer=new n.helperRendererClass(n,n.eventRenderer)),n.businessHourRendererClass&&n.fillRenderer&&(n.businessHourRenderer=new n.businessHourRendererClass(n,n.fillRenderer)),n}e.default=n},function(t,e,n){function r(t,e){return null==e?t:s.isFunction(e)?t.filter(e):(e+="",t.filter(function(t){return t.id==e||t._id===e}))}Object.defineProperty(e,"__esModule",{value:!0});var s=n(3),i=n(0),a=n(4),o=n(33),l=n(225),d=n(23),u=n(13),c=n(7),h=n(257),p=n(258),f=n(259),g=n(217),m=n(32),v=n(11),y=n(5),b=n(12),w=n(16),_=n(220),S=n(218),T=n(38),D=n(36),C=n(9),E=n(39),k=n(6),x=n(57),n=(M.prototype.constructed=function(){},M.prototype.getView=function(){return this.view},M.prototype.publiclyTrigger=function(t,e){var n,i,o=this.opt(t);if(s.isPlainObject(e)?(n=e.context,i=e.args):s.isArray(e)&&(i=e),null==n&&(n=this.el[0]),this.triggerWith(t,n,i=i||[]),o)return o.apply(n,i)},M.prototype.hasPublicHandlers=function(t){return this.hasHandlers(t)||this.opt(t)},M.prototype.option=function(t,e){var n;if("string"==typeof t){if(void 0===e)return this.optionsManager.get(t);(n={})[t]=e,this.optionsManager.add(n)}else"object"==typeof t&&this.optionsManager.add(t)},M.prototype.opt=function(t){return this.optionsManager.get(t)},M.prototype.instantiateView=function(t){var e=this.viewSpecManager.getViewSpec(t);if(e)return new e.class(this,e);throw new Error('View type "'+t+'" is not valid')},M.prototype.isValidViewType=function(t){return Boolean(this.viewSpecManager.getViewSpec(t))},M.prototype.changeView=function(t,e){e&&(e.start&&e.end?this.optionsManager.recordOverrides({visibleRange:e}):this.currentDate=this.moment(e).stripZone()),this.renderView(t)},M.prototype.zoomTo=function(t,e){e=this.viewSpecManager.getViewSpec(e=e||"day")||this.viewSpecManager.getUnitViewSpec(e);this.currentDate=t.clone(),this.renderView(e?e.type:null)},M.prototype.initCurrentDate=function(){var t=this.opt("defaultDate");this.currentDate=null!=t?this.moment(t).stripZone():this.getNow()},M.prototype.prev=function(){var t=this.view,t=t.dateProfileGenerator.buildPrev(t.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},M.prototype.next=function(){var t=this.view,t=t.dateProfileGenerator.buildNext(t.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},M.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},M.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},M.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},M.prototype.gotoDate=function(t){this.currentDate=this.moment(t).stripZone(),this.renderView()},M.prototype.incrementDate=function(t){this.currentDate.add(i.duration(t)),this.renderView()},M.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},M.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},M.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},M.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},M.prototype.initialRender=function(){var o=this,n=this.el;n.addClass("fc"),n.on("click.fc","a[data-goto]",function(t){var e=s(t.currentTarget).data("goto"),n=o.moment(e.date),e=e.type,i=o.view.opt("navLink"+a.capitaliseFirstLetter(e)+"Click");"function"==typeof i?i(n,t):o.zoomTo(n,e="string"==typeof i?i:e)}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(t){var t=new(x.getThemeSystemClass(t.themeSystem||t.theme))(o.optionsManager),e=t.getClass("widget");o.theme=t,e&&n.addClass(e)},function(){var t=o.theme.getClass("widget");o.theme=null,t&&n.removeClass(t)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(t){o.businessHourGenerator=new S.default(t.businessHours,o),o.view&&o.view.set("businessHourGenerator",o.businessHourGenerator)},function(){o.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(t){n.toggleClass("fc-ltr",!t.isRTL),n.toggleClass("fc-rtl",t.isRTL)}),this.contentEl=s("<div class='fc-view-container'>").prependTo(n),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&s(window).resize(this.windowResizeProxy=a.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},M.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(s(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),d.default.unneeded()},M.prototype.elementVisible=function(){return this.el.is(":visible")},M.prototype.bindViewHandlers=function(e){var n=this;e.watch("titleForCalendar",["title"],function(t){e===n.view&&n.setToolbarsTitle(t.title)}),e.watch("dateProfileForCalendar",["dateProfile"],function(t){e===n.view&&(n.currentDate=t.dateProfile.date,n.updateToolbarButtons(t.dateProfile))})},M.prototype.unbindViewHandlers=function(t){t.unwatch("titleForCalendar"),t.unwatch("dateProfileForCalendar")},M.prototype.renderView=function(t){var e,n=this.view;this.freezeContentHeight(),n&&t&&n.type!==t&&this.clearView(),!this.view&&t&&(e=this.view=this.viewsByType[t]||(this.viewsByType[t]=this.instantiateView(t)),this.bindViewHandlers(e),e.startBatchRender(),e.setElement(s("<div class='fc-view fc-"+t+"-view'>").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",t)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),e)&&e.stopBatchRender(),this.thawContentHeight()},M.prototype.clearView=function(){var t=this.view;this.toolbarsManager.proxyCall("deactivateButton",t.type),this.unbindViewHandlers(t),t.removeElement(),t.unsetDate(),this.view=null},M.prototype.reinitView=function(){var t=this.view,e=t.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(t.type),this.view.applyScroll(e),this.thawContentHeight()},M.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},M.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},M.prototype.updateViewSize=function(t){void 0===t&&(t=!1);var e,n=this.view;if(!this.ignoreUpdateViewSize&&n)return t&&(this.calcSize(),e=n.queryScroll()),this.ignoreUpdateViewSize++,n.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),t),this.ignoreUpdateViewSize--,t&&n.applyScroll(e),!0},M.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},M.prototype._calcSize=function(){var t=this.opt("contentHeight"),e=this.opt("height");this.suggestedViewHeight="number"==typeof t?t:"function"==typeof t?t():"number"==typeof e?e-this.queryToolbarsHeight():"function"==typeof e?e()-this.queryToolbarsHeight():"parent"===e?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},M.prototype.windowResize=function(t){t.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},M.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},M.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},M.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},M.prototype.initToolbars=function(){this.header=new h.default(this,this.computeHeaderOptions()),this.footer=new h.default(this,this.computeFooterOptions()),this.toolbarsManager=new l.default([this.header,this.footer])},M.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},M.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},M.prototype.renderHeader=function(){var t=this.header;t.setToolbarOptions(this.computeHeaderOptions()),t.render(),t.el&&this.el.prepend(t.el)},M.prototype.renderFooter=function(){var t=this.footer;t.setToolbarOptions(this.computeFooterOptions()),t.render(),t.el&&this.el.append(t.el)},M.prototype.setToolbarsTitle=function(t){this.toolbarsManager.proxyCall("updateTitle",t)},M.prototype.updateToolbarButtons=function(t){var e=this.getNow(),n=this.view,i=n.dateProfileGenerator.build(e),o=n.dateProfileGenerator.buildPrev(n.get("dateProfile")),n=n.dateProfileGenerator.buildNext(n.get("dateProfile"));this.toolbarsManager.proxyCall(i.isValid&&!t.currentUnzonedRange.containsDate(e)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(o.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(n.isValid?"enableButton":"disableButton","next")},M.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(t,e){return t+(e.el?e.el.outerHeight(!0):0)},0)},M.prototype.select=function(t,e){this.view.select(this.buildSelectFootprint.apply(this,arguments))},M.prototype.unselect=function(){this.view&&this.view.unselect()},M.prototype.buildSelectFootprint=function(t,e){t=this.moment(t).stripZone(),e=e?this.moment(e).stripZone():t.hasTime()?t.clone().add(this.defaultTimedEventDuration):t.clone().add(this.defaultAllDayEventDuration);return new b.default(new y.default(t,e),!t.hasTime())},M.prototype.initMomentInternals=function(){var o=this;this.defaultAllDayEventDuration=i.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=i.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(t){var e=t.weekNumberCalculation,n=t.firstDay,i=("iso"===e&&(e="ISO"),Object.create(m.getMomentLocaleData(t.locale)));t.monthNames&&(i._months=t.monthNames),t.monthNamesShort&&(i._monthsShort=t.monthNamesShort),t.dayNames&&(i._weekdays=t.dayNames),t.dayNamesShort&&(i._weekdaysShort=t.dayNamesShort),null!=(n=null==n&&"ISO"===e?1:n)&&((t=Object.create(i._week)).dow=n,i._week=t),"ISO"!==e&&"local"!==e&&"function"!=typeof e||(i._fullCalendar_weekCalc=e),o.localeData=i,o.currentDate&&o.localizeMoment(o.currentDate)})},M.prototype.moment=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"local"===this.opt("timezone")?(t=v.default.apply(null,e)).hasTime()&&t.local():t=("UTC"===this.opt("timezone")?v.default.utc:v.default.parseZone).apply(null,e),this.localizeMoment(t),t},M.prototype.msToMoment=function(t,e){t=v.default.utc(t);return e?t.stripTime():t=this.applyTimezone(t),this.localizeMoment(t),t},M.prototype.msToUtcMoment=function(t,e){t=v.default.utc(t);return e&&t.stripTime(),this.localizeMoment(t),t},M.prototype.localizeMoment=function(t){t._locale=this.localeData},M.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},M.prototype.applyTimezone=function(t){var e,n;return t.hasTime()?(e=this.moment(t.toArray()),(n=t.time().asMilliseconds()-e.time().asMilliseconds())&&(n=e.clone().add(n),t.time().asMilliseconds()-n.time().asMilliseconds()==0)?n:e):t.clone()},M.prototype.footprintToDateProfile=function(t,e){void 0===e&&(e=!1);var n,i=v.default.utc(t.unzonedRange.startMs);return e||(n=v.default.utc(t.unzonedRange.endMs)),t.isAllDay?(i.stripTime(),n&&n.stripTime()):(i=this.applyTimezone(i),n=n&&this.applyTimezone(n)),this.localizeMoment(i),n&&this.localizeMoment(n),new w.default(i,n,this)},M.prototype.getNow=function(){var t=this.opt("now");return"function"==typeof t&&(t=t()),this.moment(t).stripZone()},M.prototype.humanizeDuration=function(t){return t.locale(this.opt("locale")).humanize()},M.prototype.parseUnzonedRange=function(t){var e=null,n=null;return t.start&&(e=this.moment(t.start).stripZone()),t.end&&(n=this.moment(t.end).stripZone()),!e&&!n||e&&n&&n.isBefore(e)?null:new y.default(e,n)},M.prototype.initEventManager=function(){var e=this,n=new _.default(this),t=this.opt("eventSources")||[],i=this.opt("events");this.eventManager=n,i&&t.unshift(i),n.on("release",function(t){e.trigger("eventsReset",t)}),n.freeze(),t.forEach(function(t){t=T.default.parse(t,e);t&&n.addSource(t)}),n.thaw()},M.prototype.requestEvents=function(t,e){return this.eventManager.requestEvents(t,e,this.opt("timezone"),!this.opt("lazyFetching"))},M.prototype.getEventEnd=function(t){return t.end?t.end.clone():this.getDefaultEventEnd(t.allDay,t.start)},M.prototype.getDefaultEventEnd=function(t,e){e=e.clone();return t?e.stripTime().add(this.defaultAllDayEventDuration):e.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&e.stripZone(),e},M.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},M.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},M.prototype.renderEvents=function(t,e){this.eventManager.freeze();for(var n=0;n<t.length;n++)this.renderEvent(t[n],e);this.eventManager.thaw()},M.prototype.renderEvent=function(t,e){void 0===e&&(e=!1);var n=this.eventManager,t=D.default.parse(t,t.source||n.stickySource);t&&n.addEventDef(t,e)},M.prototype.removeEvents=function(t){var e,n=this.eventManager,i=[],o={};if(null==t)n.removeAllEventDefs();else{for(n.getEventInstances().forEach(function(t){i.push(t.toLegacy())}),i=r(i,t),e=0;e<i.length;e++)o[this.eventManager.getEventDefByUid(i[e]._id).id]=!0;for(e in n.freeze(),o)n.removeEventDefsById(e);n.thaw()}},M.prototype.clientEvents=function(t){var e=[];return this.eventManager.getEventInstances().forEach(function(t){e.push(t.toLegacy())}),r(e,t)},M.prototype.updateEvents=function(t){this.eventManager.freeze();for(var e=0;e<t.length;e++)this.updateEvent(t[e]);this.eventManager.thaw()},M.prototype.updateEvent=function(t){var e,n=this.eventManager.getEventDefByUid(t._id);n instanceof C.default&&(e=n.buildInstance(),e=E.default.createFromRawProps(e,t,null),this.eventManager.mutateEventsWithId(n.id,e))},M.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},M.prototype.getEventSourceById=function(t){return this.eventManager.getSourceById(k.default.normalizeId(t))},M.prototype.addEventSource=function(t){t=T.default.parse(t,this);t&&this.eventManager.addSource(t)},M.prototype.removeEventSources=function(t){var e,n,i=this.eventManager;if(null==t)this.eventManager.removeAllSources();else{for(e=i.multiQuerySources(t),i.freeze(),n=0;n<e.length;n++)i.removeSource(e[n]);i.thaw()}},M.prototype.removeEventSource=function(t){var e,n=this.eventManager,i=n.querySources(t);for(n.freeze(),e=0;e<i.length;e++)n.removeSource(i[e]);n.thaw()},M.prototype.refetchEventSources=function(t){var e,n=this.eventManager,i=n.multiQuerySources(t);for(n.freeze(),e=0;e<i.length;e++)n.refetchSource(i[e]);n.thaw()},M.defaults=o.globalDefaults,M.englishDefaults=o.englishDefaults,M.rtlDefaults=o.rtlDefaults,M);function M(t,e){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,d.default.needed(),this.el=t,this.viewsByType={},this.optionsManager=new p.default(this,e),this.viewSpecManager=new f.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new g.default(this.eventManager,this),this.constructed()}e.default=n,u.default.mixInto(n),c.default.mixInto(n)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),f=n(3),g=n(0),m=n(18),v=n(4),r=n(11),s=n(7),y=n(17),a=n(9),b=n(20),l=n(6),n=n(14),n=(i=n.default,o.__extends(d,i),d.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},d.prototype.bindToDocument=function(){this.listenTo(f(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},d.prototype.unbindFromDocument=function(){this.stopListeningTo(f(document))},d.prototype.handleDragStart=function(t,e){var n,i;this.opt("droppable")&&(n=f((e?e.item:null)||t.target),i=this.opt("dropAccept"),f.isFunction(i)?i.call(n[0],n):n.is(i))&&(this.isDragging||this.listenToExternalDrag(n,t,e))},d.prototype.listenToExternalDrag=function(e,t,n){var i,o,r,s,a,l,d,u=this,c=this.component,h=this.view,p=(o=e,(d=m.dataAttrPrefix)&&(d+="-"),(r=o.data(d+"event")||null)&&(null==(s=(r="object"==typeof r?f.extend({},r):{}).start)&&(s=r.time),a=r.duration,l=r.stick,delete r.start,delete r.time,delete r.duration,delete r.stick),null==(s=null==s?o.data(d+"start"):s)&&(s=o.data(d+"time")),null==a&&(a=o.data(d+"duration")),null==l&&(l=o.data(d+"stick")),{eventProps:r,startTime:s=null!=s?g.duration(s):null,duration:a=null!=a?g.duration(a):null,stick:l=Boolean(l)});(this.dragListener=new y.default(c,{interactionStart:function(){u.isDragging=!0},hitOver:function(t){var e,t=t.component.getSafeHitFootprint(t);!!t&&!!(i=u.computeExternalDrop(t,p))&&(e=new b.default(i.buildInstances()),p.eventProps?c.isEventInstanceGroupAllowed(e):c.isExternalInstanceGroupAllowed(e))||(i=null,v.disableCursor()),i&&c.renderDrag(c.eventRangesToEventFootprints(e.sliceRenderRanges(c.dateProfile.renderUnzonedRange,h.calendar)))},hitOut:function(){i=null},hitDone:function(){v.enableCursor(),c.unrenderDrag()},interactionEnd:function(t){i&&h.reportExternalDrop(i,Boolean(p.eventProps),Boolean(p.stick),e,t,n),u.isDragging=!1,u.dragListener=null}})).startDrag(t)},d.prototype.computeExternalDrop=function(t,e){var n,i=this.view.calendar,o=r.default.utc(t.unzonedRange.startMs).stripZone();return t.isAllDay&&(e.startTime?o.time(e.startTime):o.stripTime()),e.duration&&(n=o.clone().add(e.duration)),o=i.applyTimezone(o),n=n&&i.applyTimezone(n),a.default.parse(f.extend({},e.eventProps,{start:o,end:n}),new l.default(i))},d);function d(){var t=null!==i&&i.apply(this,arguments)||this;return t.isDragging=!1,t}e.default=n,s.default.mixInto(n),m.dataAttrPrefix=""},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),p=n(4),s=n(39),a=n(40),f=n(17),n=n(14),n=(i=n.default,o.__extends(l,i),l.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},l.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMouseDown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},l.prototype.handleMouseDown=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,r(e.target).is(".fc-start-resizer")).startInteraction(e,{distance:5})},l.prototype.handleTouchStart=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,r(e.target).is(".fc-start-resizer")).startInteraction(e)},l.prototype.buildDragListener=function(o,r){var e,s,a=this,l=this.component,d=this.view,u=d.calendar,c=u.eventManager,n=o.el,h=o.footprint.eventDef,i=o.footprint.eventInstance;return this.dragListener=new f.default(l,{scroll:this.opt("dragScroll"),subjectEl:n,interactionStart:function(){e=!1},dragStart:function(t){e=!0,a.eventPointing.handleMouseout(o,t),a.segResizeStart(o,t)},hitOver:function(t,e,n){var i,n=l.getSafeHitFootprint(n),t=l.getSafeHitFootprint(t);!(!n||!t||!(s=r?a.computeEventStartResizeMutation(n,t,o.footprint):a.computeEventEndResizeMutation(n,t,o.footprint)))&&(i=c.buildMutatedEventInstanceGroup(h.id,s),l.isEventInstanceGroupAllowed(i))?s.isEmpty()&&(s=null):(s=null,p.disableCursor()),s&&(d.hideEventsWithId(o.footprint.eventDef.id),d.renderEventResize(l.eventRangesToEventFootprints(i.sliceRenderRanges(l.dateProfile.renderUnzonedRange,u)),o))},hitOut:function(){s=null},hitDone:function(){d.unrenderEventResize(o),d.showEventsWithId(o.footprint.eventDef.id),p.enableCursor()},interactionEnd:function(t){e&&a.segResizeStop(o,t),s&&d.reportEventResize(i,s,n,t),a.dragListener=null}})},l.prototype.segResizeStart=function(t,e){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},l.prototype.segResizeStop=function(t,e){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},l.prototype.computeEventStartResizeMutation=function(t,e,n){var n=n.componentFootprint.unzonedRange,e=this.component.diffDates(e.unzonedRange.getStart(),t.unzonedRange.getStart());return n.getStart().add(e)<n.getEnd()&&((t=new a.default).setStartDelta(e),(n=new s.default).setDateMutation(t),n)},l.prototype.computeEventEndResizeMutation=function(t,e,n){var n=n.componentFootprint.unzonedRange,e=this.component.diffDates(e.unzonedRange.getEnd(),t.unzonedRange.getEnd());return n.getEnd().add(e)>n.getStart()&&((t=new a.default).setEndDelta(e),(n=new s.default).setDateMutation(t),n)},l);function l(t,e){t=i.call(this,t)||this;return t.isResizing=!1,t.eventPointing=e,t}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),f=n(4),r=n(39),a=n(40),s=n(59),g=n(17),m=n(226),n=n(14),n=(i=n.default,o.__extends(l,i),l.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},l.prototype.getSelectionDelay=function(){var t=this.opt("eventLongPressDelay");return t=null==t?this.opt("longPressDelay"):t},l.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMousedown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},l.prototype.handleMousedown=function(t,e){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(t,e)&&this.buildDragListener(t).startInteraction(e,{distance:5})},l.prototype.handleTouchStart=function(t,e){var n=this.component,i={delay:this.view.isEventDefSelected(t.footprint.eventDef)?0:this.getSelectionDelay()};n.canStartDrag(t,e)?this.buildDragListener(t).startInteraction(e,i):n.canStartSelection(t,e)&&this.buildSelectListener(t).startInteraction(e,i)},l.prototype.buildSelectListener=function(t){var e,n=this,i=this.view,o=t.footprint.eventDef,r=t.footprint.eventInstance;return this.dragListener||(e=this.dragListener=new s.default({dragStart:function(t){e.isTouch&&!i.isEventDefSelected(o)&&r&&i.selectEventInstance(r)},interactionEnd:function(t){n.dragListener=null}}))},l.prototype.buildDragListener=function(o){var e,r,s,a,l=this,d=this.component,u=this.view,c=u.calendar,h=c.eventManager,n=o.el,p=o.footprint.eventDef,i=o.footprint.eventInstance;return this.dragListener||(a=this.dragListener=new g.default(u,{scroll:this.opt("dragScroll"),subjectEl:n,subjectCenter:!0,interactionStart:function(t){o.component=d,e=!1,(r=new m.default(o.el,{additionalClass:"fc-dragging",parentEl:u.el,opacity:a.isTouch?null:l.opt("dragOpacity"),revertDuration:l.opt("dragRevertDuration"),zIndex:2})).hide(),r.start(t)},dragStart:function(t){a.isTouch&&!u.isEventDefSelected(p)&&i&&u.selectEventInstance(i),e=!0,l.eventPointing.handleMouseout(o,t),l.segDragStart(o,t),u.hideEventsWithId(o.footprint.eventDef.id)},hitOver:function(t,e,n){var i,n=(n=o.hit?o.hit:n).component.getSafeHitFootprint(n),t=t.component.getSafeHitFootprint(t);n&&t&&(s=l.computeEventDropMutation(n,t,p))&&(i=h.buildMutatedEventInstanceGroup(p.id,s),d.isEventInstanceGroupAllowed(i))||(s=null,f.disableCursor()),s&&u.renderDrag(d.eventRangesToEventFootprints(i.sliceRenderRanges(d.dateProfile.renderUnzonedRange,c)),o,a.isTouch)?r.hide():r.show(),e&&(s=null)},hitOut:function(){u.unrenderDrag(o),r.show(),s=null},hitDone:function(){f.enableCursor()},interactionEnd:function(t){delete o.component,r.stop(!s,function(){e&&(u.unrenderDrag(o),l.segDragStop(o,t)),u.showEventsWithId(o.footprint.eventDef.id),s&&u.reportEventDrop(i,s,n,t)}),l.dragListener=null}}))},l.prototype.segDragStart=function(t,e){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},l.prototype.segDragStop=function(t,e){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},l.prototype.computeEventDropMutation=function(t,e,n){var i=new r.default;return i.setDateMutation(this.computeEventDateMutation(t,e)),i},l.prototype.computeEventDateMutation=function(t,e){var n=t.unzonedRange.getStart(),i=e.unzonedRange.getStart(),o=!1,r=!1,s=!1;return t.isAllDay!==e.isAllDay&&(o=!0,e.isAllDay?(s=!0,n.stripTime()):r=!0),t=this.component.diffDates(i,n),(e=new a.default).clearEnd=o,e.forceTimed=r,e.forceAllDay=s,e.setDateDelta(t),e},l);function l(t,e){t=i.call(this,t)||this;return t.isDragging=!1,t.eventPointing=e,t}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),s=n(4),a=n(17),r=n(12),l=n(5),n=n(14),n=(i=n.default,o.__extends(d,i),d.prototype.end=function(){this.dragListener.endInteraction()},d.prototype.getDelay=function(){var t=this.opt("selectLongPressDelay");return t=null==t?this.opt("longPressDelay"):t},d.prototype.bindToEl=function(t){var e=this,n=this.component,i=this.dragListener;n.bindDateHandlerToEl(t,"mousedown",function(t){e.opt("selectable")&&!n.shouldIgnoreMouse()&&i.startInteraction(t,{distance:e.opt("selectMinDistance")})}),n.bindDateHandlerToEl(t,"touchstart",function(t){e.opt("selectable")&&!n.shouldIgnoreTouch()&&i.startInteraction(t,{delay:e.getDelay()})}),s.preventSelection(t)},d.prototype.buildDragListener=function(){var i,o=this,r=this.component;return new a.default(r,{scroll:this.opt("dragScroll"),interactionStart:function(){i=null},dragStart:function(t){o.view.unselect(t)},hitOver:function(t,e,n){n&&(n=r.getSafeHitFootprint(n),t=r.getSafeHitFootprint(t),(i=n&&t?o.computeSelection(n,t):null)?r.renderSelectionFootprint(i):!1===i&&s.disableCursor())},hitOut:function(){i=null,r.unrenderSelection()},hitDone:function(){s.enableCursor()},interactionEnd:function(t,e){!e&&i&&o.view.reportSelection(i,t)}})},d.prototype.computeSelection=function(t,e){t=this.computeSelectionFootprint(t,e);return!(t&&!this.isSelectionFootprintAllowed(t))&&t},d.prototype.computeSelectionFootprint=function(t,e){e=[t.unzonedRange.startMs,t.unzonedRange.endMs,e.unzonedRange.startMs,e.unzonedRange.endMs];return e.sort(s.compareNumbers),new r.default(new l.default(e[0],e[3]),t.isAllDay)},d.prototype.isSelectionFootprintAllowed=function(t){return this.component.dateProfile.validUnzonedRange.containsRange(t.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(t)},d);function d(t){t=i.call(this,t)||this;return t.dragListener=t.buildDragListener(),t}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(17),n=n(14),n=(i=n.default,o.__extends(s,i),s.prototype.end=function(){this.dragListener.endInteraction()},s.prototype.bindToEl=function(t){var e=this.component,n=this.dragListener;e.bindDateHandlerToEl(t,"mousedown",function(t){e.shouldIgnoreMouse()||n.startInteraction(t)}),e.bindDateHandlerToEl(t,"touchstart",function(t){e.shouldIgnoreTouch()||n.startInteraction(t)})},s.prototype.buildDragListener=function(){var i,n=this,o=this.component,t=new r.default(o,{scroll:this.opt("dragScroll"),interactionStart:function(){i=t.origHit},hitOver:function(t,e,n){e||(i=null)},hitOut:function(){i=null},interactionEnd:function(t,e){!e&&i&&(e=o.getSafeHitFootprint(i))&&n.view.triggerDayClick(e,o.getHitEl(i),t)}});return t.shouldCancelTouchScroll=!1,t.scrollAlwaysKills=!0,t},s);function s(t){t=i.call(this,t)||this;return t.dragListener=t.buildDragListener(),t}e.default=n},function(t,e,n){function o(t){for(var e=[],n=[],i=0;i<t.length;i++)(t[i].componentFootprint.isAllDay?e:n).push(t[i]);return{allDay:e,timed:n}}Object.defineProperty(e,"__esModule",{value:!0});var i,r,s,a=n(2),l=n(0),d=n(3),u=n(4),c=n(41),h=n(43),p=n(239),n=n(66),h=(s=h.default,a.__extends(f,s),f.prototype.instantiateTimeGrid=function(){var t=new this.timeGridClass(this);return u.copyOwnProps(i,t),t},f.prototype.instantiateDayGrid=function(){var t=new this.dayGridClass(this);return u.copyOwnProps(r,t),t},f.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-time-grid-container"),e=d('<div class="fc-time-grid">').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(e),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},f.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},f.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'"></hr>':"")+"</td></tr></tbody></table>"},f.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},f.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},f.prototype.updateSize=function(t,e,n){var i,o;s.prototype.updateSize.call(this,t,e,n),this.axisWidth=u.matchCellWidths(this.el.find(".fc-axis")),this.timeGrid.colEls?(n=this.el.find(".fc-row:not(.fc-scroller *)"),this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),u.uncompensateScroll(n),this.dayGrid&&(this.dayGrid.removeSegPopover(),o=(o=this.opt("eventLimit"))&&"number"!=typeof o?5:o)&&this.dayGrid.limitRows(o),e||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(u.compensateScroll(n,o),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&this.timeGrid.bottomRuleEl.show())):e||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},f.prototype.computeScrollerHeight=function(t){return t-u.subtractInnerElHeight(this.el,this.scroller.el)},f.prototype.computeInitialDateScroll=function(){var t=l.duration(this.opt("scrollTime")),t=this.timeGrid.computeTimeTop(t);return(t=Math.ceil(t))&&t++,{top:t}},f.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},f.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},f.prototype.getHitFootprint=function(t){return t.component.getHitFootprint(t)},f.prototype.getHitEl=function(t){return t.component.getHitEl(t)},f.prototype.executeEventRender=function(t){var e,n,i={},o={};for(e in t)n=t[e],n.getEventDef().isAllDay()?i[e]=n:o[e]=n;this.timeGrid.executeEventRender(o),this.dayGrid&&this.dayGrid.executeEventRender(i)},f.prototype.renderDrag=function(t,e,n){var t=o(t),i=!1,i=this.timeGrid.renderDrag(t.timed,e,n);return i=this.dayGrid?this.dayGrid.renderDrag(t.allDay,e,n)||i:i},f.prototype.renderEventResize=function(t,e,n){t=o(t);this.timeGrid.renderEventResize(t.timed,e,n),this.dayGrid&&this.dayGrid.renderEventResize(t.allDay,e,n)},f.prototype.renderSelectionFootprint=function(t){t.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(t):this.timeGrid.renderSelectionFootprint(t)},f);function f(t,e){t=s.call(this,t,e)||this;return t.usesMinMaxTime=!0,t.timeGrid=t.instantiateTimeGrid(),t.addChild(t.timeGrid),t.opt("allDaySlot")&&(t.dayGrid=t.instantiateDayGrid(),t.addChild(t.dayGrid)),t.scroller=new c.default({overflowX:"hidden",overflowY:"auto"}),t}(e.default=h).prototype.timeGridClass=p.default,h.prototype.dayGridClass=n.default,i={renderHeadIntroHtml:function(){var t,e=this.view,n=e.calendar,i=n.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(t=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+">"+e.buildGotoAnchorHtml({date:i,type:"week",forceOff:1<this.colCnt},u.htmlEscape(t))+"</th>"):'<th class="fc-axis '+n.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},r={renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"><span>"+t.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),c=n(0),h=n(4),s=n(42),a=n(61),l=n(65),d=n(60),u=n(58),p=n(5),f=n(12),g=n(240),m=n(241),n=n(242),v=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],s=(i=s.default,o.__extends(y,i),y.prototype.componentFootprintToSegs=function(t){for(var e=this.sliceRangeByTimes(t.unzonedRange),n=0;n<e.length;n++)this.isRTL?e[n].col=this.daysPerRow-1-e[n].dayIndex:e[n].col=e[n].dayIndex;return e},y.prototype.sliceRangeByTimes=function(t){for(var e,n=[],i=0;i<this.daysPerRow;i++)(e=t.intersect(this.dayRanges[i]))&&n.push({startMs:e.startMs,endMs:e.endMs,isStart:e.isStart,isEnd:e.isEnd,dayIndex:i});return n},y.prototype.processOptions=function(){var t=this.opt("slotDuration"),e=this.opt("snapDuration"),t=c.duration(t),e=e?c.duration(e):t;this.slotDuration=t,this.snapDuration=e,this.snapsPerSlot=t/e,e=this.opt("slotLabelFormat"),r.isArray(e)&&(e=e[e.length-1]),this.labelFormat=e||this.opt("smallTimeFormat"),e=this.opt("slotLabelInterval"),this.labelInterval=e?c.duration(e):this.computeLabelInterval(t)},y.prototype.computeLabelInterval=function(t){for(var e,n,i=v.length-1;0<=i;i--)if(e=c.duration(v[i]),n=h.divideDurationByDuration(e,t),h.isInt(n)&&1<n)return e;return c.duration(t)},y.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderSlats(),this.renderColumns()},y.prototype.unrenderDates=function(){this.unrenderColumns()},y.prototype.renderSkeleton=function(){var t=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" style="display:none"></hr>'),this.bottomRuleEl=this.el.find("hr")},y.prototype.renderSlats=function(){var t=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new u.default({els:this.slatEls,isVertical:!0})},y.prototype.renderSlatRowHtml=function(){for(var t,e,n,i=this.view,o=i.calendar,r=o.theme,s=this.isRTL,a=this.dateProfile,l="",d=c.duration(+a.minTime),u=c.duration(0);d<a.maxTime;)t=o.msToUtcMoment(a.renderUnzonedRange.startMs).time(d),e=h.isInt(h.divideDurationByDuration(u,this.labelInterval)),n='<td class="fc-axis fc-time '+r.getClass("widgetContent")+'" '+i.axisStyleAttr()+">"+(e?"<span>"+h.htmlEscape(t.format(this.labelFormat))+"</span>":"")+"</td>",l+='<tr data-time="'+t.format("HH:mm:ss")+'"'+(e?"":' class="fc-minor"')+">"+(s?"":n)+'<td class="'+r.getClass("widgetContent")+'"></td>'+(s?n:"")+"</tr>",d.add(this.slotDuration),u.add(this.slotDuration);return l},y.prototype.renderColumns=function(){var e=this.dateProfile,t=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(t){return new p.default(t.clone().add(e.minTime),t.clone().add(e.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new u.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},y.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},y.prototype.renderContentSkeleton=function(){for(var t,e="",n=0;n<this.colCnt;n++)e+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';t=this.contentSkeletonEl=r('<div class="fc-content-skeleton"><table><tr>'+e+"</tr></table></div>"),this.colContainerEls=t.find(".fc-content-col"),this.helperContainerEls=t.find(".fc-helper-container"),this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=t.find(".fc-bgevent-container"),this.highlightContainerEls=t.find(".fc-highlight-container"),this.businessContainerEls=t.find(".fc-business-container"),this.bookendCells(t.find("tr")),this.el.append(t)},y.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},y.prototype.groupSegsByCol=function(t){for(var e=[],n=0;n<this.colCnt;n++)e.push([]);for(n=0;n<t.length;n++)e[t[n].col].push(t[n]);return e},y.prototype.attachSegsByCol=function(t,e){for(var n,i,o=0;o<this.colCnt;o++)for(n=t[o],i=0;i<n.length;i++)e.eq(o).append(n[i].el)},y.prototype.getNowIndicatorUnit=function(){return"minute"},y.prototype.renderNowIndicator=function(t){if(this.colContainerEls){for(var e=this.componentFootprintToSegs(new f.default(new p.default(t,t.valueOf()+1),!1)),n=this.computeDateTop(t,t),i=[],o=0;o<e.length;o++)i.push(r('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",n).appendTo(this.colContainerEls.eq(e[o].col))[0]);0<e.length&&i.push(r('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",n).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=r(i)}},y.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},y.prototype.updateSize=function(t,e,n){i.prototype.updateSize.call(this,t,e,n),this.slatCoordCache.build(),n&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},y.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},y.prototype.computeDateTop=function(t,e){return this.computeTimeTop(c.duration(t-e.clone().stripTime()))},y.prototype.computeTimeTop=function(t){var e,n=this.slatEls.length,t=(t-this.dateProfile.minTime)/this.slotDuration,t=Math.max(0,t);return t=Math.min(n,t),e=Math.floor(t),t=t-(e=Math.min(e,n-1)),this.slatCoordCache.getTopPosition(e)+this.slatCoordCache.getHeight(e)*t},y.prototype.updateSegVerticals=function(t){this.computeSegVerticals(t),this.assignSegVerticals(t)},y.prototype.computeSegVerticals=function(t){for(var e,n,i=this.opt("agendaEventMinHeight"),o=0;o<t.length;o++)e=t[o],n=this.dayDates[e.dayIndex],e.top=this.computeDateTop(e.startMs,n),e.bottom=Math.max(e.top+i,this.computeDateTop(e.endMs,n))},y.prototype.assignSegVerticals=function(t){for(var e,n=0;n<t.length;n++)(e=t[n]).el.css(this.generateSegVerticalCss(e))},y.prototype.generateSegVerticalCss=function(t){return{top:t.top,bottom:-t.bottom}},y.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},y.prototype.releaseHits=function(){this.colCoordCache.clear()},y.prototype.queryHit=function(t,e){var n=this.snapsPerSlot,i=this.colCoordCache,o=this.slatCoordCache;if(i.isLeftInBounds(t)&&o.isTopInBounds(e)){var r,s,t=i.getHorizontalIndex(t),a=o.getVerticalIndex(e);if(null!=t&&null!=a)return s=o.getTopOffset(a),o=o.getHeight(a),r=s+(e=Math.floor((e-s)/o*n))/n*o,s=s+(e+1)/n*o,{col:t,snap:a*n+e,component:this,left:i.getLeftOffset(t),right:i.getRightOffset(t),top:r,bottom:s}}},y.prototype.getHitFootprint=function(t){var e=this.getCellDate(0,t.col),t=this.computeSnapTime(t.snap);return e.time(t),t=e.clone().add(this.snapDuration),new f.default(new p.default(e,t),!1)},y.prototype.computeSnapTime=function(t){return c.duration(this.dateProfile.minTime+this.snapDuration*t)},y.prototype.getHitEl=function(t){return this.colEls.eq(t.col)},y.prototype.renderDrag=function(t,e,n){var i;if(e){if(t.length)return this.helperRenderer.renderEventDraggingFootprints(t,e,n),!0}else for(i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint)},y.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},y.prototype.renderEventResize=function(t,e,n){this.helperRenderer.renderEventResizingFootprints(t,e,n)},y.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},y.prototype.renderSelectionFootprint=function(t){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(t):this.renderHighlight(t)},y.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},y);function y(t){t=i.call(this,t)||this;return t.processOptions(),t}(e.default=s).prototype.eventRendererClass=g.default,s.prototype.businessHourRendererClass=a.default,s.prototype.helperRendererClass=m.default,s.prototype.fillRendererClass=n.default,l.default.mixInto(s),d.default.mixInto(s)},function(t,e,n){function d(t,e,n){void 0===n&&(n=[]);for(var i,o,r=0;r<e.length;r++)i=t,o=e[r],i.bottom>o.top&&i.top<o.bottom&&n.push(e[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),h=n(4),n=n(44),n=(i=n.default,o.__extends(r,i),r.prototype.renderFgSegs=function(t){this.renderFgSegsIntoContainers(t,this.timeGrid.fgContainerEls)},r.prototype.renderFgSegsIntoContainers=function(t,e){for(var n=this.timeGrid.groupSegsByCol(t),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(n[i]);this.timeGrid.attachSegsByCol(n,e)},r.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(t){t.el.remove()})},r.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},r.prototype.computeDisplayEventEnd=function(){return!0},r.prototype.fgSegHtml=function(t,e){var n,i,o,r=this.view,s=r.calendar,a=t.footprint.componentFootprint,l=a.isAllDay,d=t.footprint.eventDef,u=r.isEventDefDraggable(d),c=!e&&t.isStart&&r.isEventDefResizableFromStart(d),e=!e&&t.isEnd&&r.isEventDefResizableFromEnd(d),u=this.getSegClasses(t,u,c||e),c=h.cssToStr(this.getSkinCss(d));return u.unshift("fc-time-grid-event","fc-v-event"),r.isMultiDayRange(a.unzonedRange)?(t.isStart||t.isEnd)&&(r=s.msToMoment(t.startMs),a=s.msToMoment(t.endMs),n=this._getTimeText(r,a,l),i=this._getTimeText(r,a,l,"LT"),o=this._getTimeText(r,a,l,null,!1)):(n=this.getTimeText(t.footprint),i=this.getTimeText(t.footprint,"LT"),o=this.getTimeText(t.footprint,null,!1)),'<a class="'+u.join(" ")+'"'+(d.url?' href="'+h.htmlEscape(d.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+h.htmlEscape(o)+'" data-full="'+h.htmlEscape(i)+'"><span>'+h.htmlEscape(n)+"</span></div>":"")+(d.title?'<div class="fc-title">'+h.htmlEscape(d.title)+"</div>":"")+'</div><div class="fc-bg"></div>'+(e?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},r.prototype.updateFgSegCoords=function(t){this.timeGrid.computeSegVerticals(t),this.computeFgSegHorizontals(t),this.timeGrid.assignSegVerticals(t),this.assignFgSegHorizontals(t)},r.prototype.computeFgSegHorizontals=function(t){this.sortEventSegs(t);for(var e,n,i,o,r,s,a=t=function(t){for(var e,n,i=[],o=0;o<t.length;o++){for(e=t[o],n=0;n<i.length&&d(e,i[n]).length;n++);(i[e.level=n]||(i[n]=[])).push(e)}return i}(t),l=0;l<a.length;l++)for(i=a[l],o=0;o<i.length;o++)for((r=i[o]).forwardSegs=[],s=l+1;s<a.length;s++)d(r,a[s],r.forwardSegs);if(e=t[0]){for(n=0;n<e.length;n++)!function t(e){var n,i,o=e.forwardSegs,r=0;if(void 0===e.forwardPressure){for(n=0;n<o.length;n++)t(i=o[n]),r=Math.max(r,1+i.forwardPressure);e.forwardPressure=r}}(e[n]);for(n=0;n<e.length;n++)this.computeFgSegForwardBack(e[n],0,0)}},r.prototype.computeFgSegForwardBack=function(t,e,n){var i,o=t.forwardSegs;if(void 0===t.forwardCoord)for(o.length?(this.sortForwardSegs(o),this.computeFgSegForwardBack(o[0],e+1,n),t.forwardCoord=o[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),i=0;i<o.length;i++)this.computeFgSegForwardBack(o[i],0,t.forwardCoord)},r.prototype.sortForwardSegs=function(t){t.sort(h.proxy(this,"compareForwardSegs"))},r.prototype.compareForwardSegs=function(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||this.compareEventSegs(t,e)},r.prototype.assignFgSegHorizontals=function(t){for(var e,n=0;n<t.length;n++)(e=t[n]).el.css(this.generateFgSegHorizontalCss(e)),e.footprint.eventDef.title&&e.bottom-e.top<30&&e.el.addClass("fc-short")},r.prototype.generateFgSegHorizontalCss=function(t){var e,n=this.opt("slotEventOverlap"),i=t.backwardCoord,o=t.forwardCoord,r=this.timeGrid.generateSegVerticalCss(t),s=this.timeGrid.isRTL;return n&&(o=Math.min(1,i+2*(o-i))),i=s?(e=1-o,i):(e=i,1-o),r.zIndex=t.level+1,r.left=100*e+"%",r.right=100*i+"%",n&&t.forwardPressure&&(r[s?"marginLeft":"marginRight"]=20),r},r);function r(t,e){e=i.call(this,t,e)||this;return e.timeGrid=t,e}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),s=n(3),n=n(63),n=(i=n.default,o.__extends(r,i),r.prototype.renderSegs=function(t,e){var n,i,o,r=[];for(this.eventRenderer.renderFgSegsIntoContainers(t,this.component.helperContainerEls),n=0;n<t.length;n++)i=t[n],e&&e.col===i.col&&(o=e.el,i.el.css({left:o.css("left"),right:o.css("right"),"margin-left":o.css("margin-left"),"margin-right":o.css("margin-right")})),r.push(i.el[0]);return s(r)},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(62),n=(i=n.default,o.__extends(r,i),r.prototype.attachSegEls=function(t,e){var n,i=this.component;return"bgEvent"===t?n=i.bgContainerEls:"businessHours"===t?n=i.businessContainerEls:"highlight"===t&&(n=i.highlightContainerEls),i.updateSegVerticals(e),i.attachSegsByCol(i.groupSegsByCol(e),n),e.map(function(t){return t.el[0]})},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){function r(t,e){return t.leftCol-e.leftCol}Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),v=n(3),a=n(4),n=n(44),n=(i=n.default,o.__extends(s,i),s.prototype.renderBgRanges=function(t){t=v.grep(t,function(t){return t.eventDef.isAllDay()}),i.prototype.renderBgRanges.call(this,t)},s.prototype.renderFgSegs=function(t){var n=this.rowStructs=this.renderSegRows(t);this.dayGrid.rowEls.each(function(t,e){v(e).find(".fc-content-skeleton > table").append(n[t].tbodyEl)})},s.prototype.unrenderFgSegs=function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},s.prototype.renderSegRows=function(t){for(var e=[],n=this.groupSegRows(t),i=0;i<n.length;i++)e.push(this.renderSegRow(i,n[i]));return e},s.prototype.renderSegRow=function(t,e){function n(t){for(;o<t;)(l=(g[m-1]||[])[o])?l.attr("rowspan",parseInt(l.attr("rowspan")||1,10)+1):(l=v("<td>"),r.append(l)),f[m][o]=l,g[m][o]=l,o++}for(var i,o,r,s,a,l,d=this.dayGrid.colCnt,u=this.buildSegLevels(e),c=Math.max(1,u.length),h=v("<tbody>"),p=[],f=[],g=[],m=0;m<c;m++){if(i=u[m],o=0,r=v("<tr>"),p.push([]),f.push([]),g.push([]),i)for(s=0;s<i.length;s++){for(n((a=i[s]).leftCol),l=v('<td class="fc-event-container">').append(a.el),a.leftCol!==a.rightCol?l.attr("colspan",a.rightCol-a.leftCol+1):g[m][o]=l;o<=a.rightCol;)f[m][o]=l,p[m][o]=a,o++;r.append(l)}n(d),this.dayGrid.bookendCells(r),h.append(r)}return{row:t,tbodyEl:h,cellMatrix:f,segMatrix:p,segLevels:u,segs:e}},s.prototype.buildSegLevels=function(t){var e,n,i,o=[];for(this.sortEventSegs(t),e=0;e<t.length;e++){for(n=t[e],i=0;i<o.length&&function(t,e){for(var n,i=0;i<e.length;i++)if((n=e[i]).leftCol<=t.rightCol&&n.rightCol>=t.leftCol)return 1}(n,o[i]);i++);(o[n.level=i]||(o[i]=[])).push(n)}for(i=0;i<o.length;i++)o[i].sort(r);return o},s.prototype.groupSegRows=function(t){for(var e=[],n=0;n<this.dayGrid.rowCnt;n++)e.push([]);for(n=0;n<t.length;n++)e[t[n].row].push(t[n]);return e},s.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},s.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},s.prototype.fgSegHtml=function(t,e){var n=this.view,i=t.footprint.eventDef,o=t.footprint.componentFootprint.isAllDay,r=n.isEventDefDraggable(i),s=!e&&o&&t.isStart&&n.isEventDefResizableFromStart(i),e=!e&&o&&t.isEnd&&n.isEventDefResizableFromEnd(i),o=this.getSegClasses(t,r,s||e),n=a.cssToStr(this.getSkinCss(i)),r="";return o.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(t=this.getTimeText(t.footprint))&&(r='<span class="fc-time">'+a.htmlEscape(t)+"</span>"),t='<span class="fc-title">'+(a.htmlEscape(i.title||"")||"&nbsp;")+"</span>",'<a class="'+o.join(" ")+'"'+(i.url?' href="'+a.htmlEscape(i.url)+'"':"")+(n?' style="'+n+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?t+" "+r:r+" "+t)+"</div>"+(s?'<div class="fc-resizer fc-start-resizer"></div>':"")+(e?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},s);function s(t,e){e=i.call(this,t,e)||this;return e.dayGrid=t,e}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),a=n(3),n=n(63),n=(i=n.default,o.__extends(r,i),r.prototype.renderSegs=function(t,o){var r=[],s=this.eventRenderer.renderSegRows(t);return this.component.rowEls.each(function(t,e){var e=a(e),n=a('<div class="fc-helper-skeleton"><table></table></div>'),i=(o&&o.row===t?o.el:i=(i=e.find(".fc-content-skeleton tbody")).length?i:e.find(".fc-content-skeleton table")).position().top;n.css("top",i).find("table").append(s[t].tbodyEl),e.append(n),r.push(n[0])}),a(r)},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),s=n(3),n=n(62),n=(i=n.default,o.__extends(r,i),r.prototype.attachSegEls=function(t,e){for(var n,i,o=[],r=0;r<e.length;r++)n=e[r],i=this.renderFillRow(t,n),this.component.rowEls.eq(n.row).append(i),o.push(i[0]);return o},r.prototype.renderFillRow=function(t,e){var n=this.component.colCnt,i=e.leftCol,o=e.rightCol+1,t="businessHours"===t?"bgevent":t.toLowerCase(),t=s('<div class="fc-'+t+'-skeleton"><table><tr></tr></table></div>'),r=t.find("tr");return 0<i&&r.append(new Array(i+1).join("<td></td>")),r.append(e.el.attr("colspan",o-i)),o<n&&r.append(new Array(n-o+1).join("<td></td>")),this.component.bookendCells(r),t},r);function r(){var t=null!==i&&i.apply(this,arguments)||this;return t.fillSegTag="td",t}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(0),s=n(4),a=n(67),n=n(247),a=(i=a.default,o.__extends(l,i),l.prototype.setGridHeight=function(t,e){e&&(t*=this.dayGrid.rowCnt/6),s.distributeHeight(this.dayGrid.rowEls,t,!e)},l.prototype.isDateInOtherMonth=function(t,e){return t.month()!==r.utc(e.currentUnzonedRange.startMs).month()},l);function l(){return null!==i&&i.apply(this,arguments)||this}(e.default=a).prototype.dateProfileGeneratorClass=n.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(68),s=n(5),n=(i=r.default,o.__extends(a,i),a.prototype.buildRenderRange=function(t,e,n){t=i.prototype.buildRenderRange.call(this,t,e,n),e=this.msToUtcMoment(t.startMs,n),t=this.msToUtcMoment(t.endMs,n);return this.opt("fixedWeekCount")&&(n=Math.ceil(t.diff(e,"weeks",!0)),t.add(6-n,"weeks")),new s.default(e,t)},a);function a(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),s=n(3),r=n(4),a=n(5),l=n(43),d=n(41),u=n(249),n=n(250),l=(i=l.default,o.__extends(c,i),c.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},c.prototype.unrenderSkeleton=function(){this.scroller.destroy()},c.prototype.updateSize=function(t,e,n){i.prototype.updateSize.call(this,t,e,n),this.scroller.clear(),e||this.scroller.setHeight(this.computeScrollerHeight(t))},c.prototype.computeScrollerHeight=function(t){return t-r.subtractInnerElHeight(this.el,this.scroller.el)},c.prototype.renderDates=function(t){for(var e=this.calendar,n=e.msToUtcMoment(t.renderUnzonedRange.startMs,!0),i=e.msToUtcMoment(t.renderUnzonedRange.endMs,!0),o=[],r=[];n<i;)o.push(n.clone()),r.push(new a.default(n,n.clone().add(1,"day"))),n.add(1,"day");this.dayDates=o,this.dayRanges=r},c.prototype.componentFootprintToSegs=function(t){for(var e,n=this.dayRanges,i=[],o=0;o<n.length;o++)if((e=t.unzonedRange.intersect(n[o]))&&(e={startMs:e.startMs,endMs:e.endMs,isStart:e.isStart,isEnd:e.isEnd,dayIndex:o},i.push(e),!e.isEnd)&&!t.isAllDay&&o+1<n.length&&t.unzonedRange.endMs<n[o+1].startMs+this.nextDayThreshold){e.endMs=t.unzonedRange.endMs,e.isEnd=!0;break}return i},c.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},c.prototype.renderSegList=function(t){for(var e,n,i=this.groupSegsByDay(t),t=s('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody></tbody></table>'),o=t.find("tbody"),r=0;r<i.length;r++)if(e=i[r])for(o.append(this.dayHeaderHtml(this.dayDates[r])),this.eventRenderer.sortEventSegs(e),n=0;n<e.length;n++)o.append(e[n].el);this.contentEl.empty().append(t)},c.prototype.groupSegsByDay=function(t){for(var e,n=[],i=0;i<t.length;i++)(n[(e=t[i]).dayIndex]||(n[e.dayIndex]=[])).push(e);return n},c.prototype.dayHeaderHtml=function(t){var e=this.opt("listDayFormat"),n=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+t.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(e?this.buildGotoAnchorHtml(t,{class:"fc-list-heading-main"},r.htmlEscape(t.format(e))):"")+(n?this.buildGotoAnchorHtml(t,{class:"fc-list-heading-alt"},r.htmlEscape(t.format(n))):"")+"</td></tr>"},c);function c(t,e){t=i.call(this,t,e)||this;return t.segSelector=".fc-list-item",t.scroller=new d.default({overflowX:"hidden",overflowY:"auto"}),t}(e.default=l).prototype.eventRendererClass=u.default,l.prototype.eventPointingClass=n.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),u=n(4),n=n(44),n=(i=n.default,o.__extends(r,i),r.prototype.renderFgSegs=function(t){t.length?this.component.renderSegList(t):this.component.renderEmptyMessage()},r.prototype.fgSegHtml=function(t){var e=this.view,n=e.calendar,i=n.theme,o=t.footprint,r=o.eventDef,s=o.componentFootprint,a=r.url,l=["fc-list-item"].concat(this.getClasses(r)),d=this.getBgColor(r),n=s.isAllDay?e.getAllDayHtml():e.isMultiDayRange(s.unzonedRange)?t.isStart||t.isEnd?u.htmlEscape(this._getTimeText(n.msToMoment(t.startMs),n.msToMoment(t.endMs),s.isAllDay)):e.getAllDayHtml():u.htmlEscape(this.getTimeText(o));return a&&l.push("fc-has-url"),'<tr class="'+l.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+i.getClass("widgetContent")+'">'+(n||"")+"</td>":"")+'<td class="fc-list-item-marker '+i.getClass("widgetContent")+'"><span class="fc-event-dot"'+(d?' style="background-color:'+d+'"':"")+'></span></td><td class="fc-list-item-title '+i.getClass("widgetContent")+'"><a'+(a?' href="'+u.htmlEscape(a)+'"':"")+">"+u.htmlEscape(r.title||"")+"</a></td></tr>"},r.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},r);function r(){return null!==i&&i.apply(this,arguments)||this}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),n=n(64),n=(i=n.default,o.__extends(s,i),s.prototype.handleClick=function(t,e){i.prototype.handleClick.call(this,t,e),r(e.target).closest("a[href]").length||(t=t.footprint.eventDef.url)&&!e.isDefaultPrevented()&&(window.location.href=t)},s);function s(){return null!==i&&i.apply(this,arguments)||this}e.default=n},,,,,,function(t,e,n){var a=n(3),i=n(18),l=n(4),d=n(232);n(11),n(49),n(260),n(261),n(264),n(265),n(266),n(267),a.fullCalendar=i,a.fn.fullCalendar=function(o){var r=Array.prototype.slice.call(arguments,1),s=this;return this.each(function(t,e){var n,e=a(e),i=e.data("fullCalendar");"string"==typeof o?"getCalendar"===o?t||(s=i):"destroy"===o?i&&(i.destroy(),e.removeData("fullCalendar")):i?a.isFunction(i[o])?(n=i[o].apply(i,r),t||(s=n),"destroy"===o&&e.removeData("fullCalendar")):l.warn("'"+o+"' is an unknown FullCalendar method."):l.warn("Attempting to call a FullCalendar method on an element with no calendar."):i||(i=new d.default(e,o),e.data("fullCalendar",i),i.render())}),s},t.exports=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var b=n(3),w=n(4);function i(t,e){this.el=null,this.viewsWithButtons=[],this.calendar=t,this.toolbarOptions=e}i.prototype.setToolbarOptions=function(t){this.toolbarOptions=t},i.prototype.render=function(){var t=this.toolbarOptions.layout,e=this.el;t?(e?e.empty():e=this.el=b("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'>"),e.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"></div>')):this.removeElement()},i.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},i.prototype.renderSection=function(t){var h=this,p=this.calendar,f=p.theme,e=p.optionsManager,g=p.viewSpecManager,n=b('<div class="fc-'+t+'">'),t=this.toolbarOptions.layout[t],m=e.get("customButtons")||{},v=e.overrides.buttonText||{},y=e.get("buttonText")||{};return t&&b.each(t.split(" "),function(t,e){var u=b(),c=!0;b.each(e.split(","),function(t,e){var n,i,o,r,s,a,l,d;"title"===e?(u=u.add(b("<h2>&nbsp;</h2>")),c=!1):((n=m[e])?(i=function(t){n.click&&n.click.call(l[0],t)},(o=(o=f.getCustomButtonIconClass(n))||f.getIconClass(e))||(r=n.text)):(a=g.getViewSpec(e))?(h.viewsWithButtons.push(e),i=function(){p.changeView(e)},(r=a.buttonTextOverride)||(o=f.getIconClass(e))||(r=a.buttonTextDefault)):p[e]&&(i=function(){p[e]()},(r=v[e])||(o=f.getIconClass(e))||(r=y[e])),i&&(a=["fc-"+e+"-button",f.getClass("button"),f.getClass("stateDefault")],r?(s=w.htmlEscape(r),d=""):o&&(s="<span class='"+o+"'></span>",d=' aria-label="'+e+'"'),l=b('<button type="button" class="'+a.join(" ")+'"'+d+">"+s+"</button>").click(function(t){!l.hasClass(f.getClass("stateDisabled"))&&(i(t),l.hasClass(f.getClass("stateActive"))||l.hasClass(f.getClass("stateDisabled")))&&l.removeClass(f.getClass("stateHover"))}).mousedown(function(){l.not("."+f.getClass("stateActive")).not("."+f.getClass("stateDisabled")).addClass(f.getClass("stateDown"))}).mouseup(function(){l.removeClass(f.getClass("stateDown"))}).hover(function(){l.not("."+f.getClass("stateActive")).not("."+f.getClass("stateDisabled")).addClass(f.getClass("stateHover"))},function(){l.removeClass(f.getClass("stateHover")).removeClass(f.getClass("stateDown"))}),u=u.add(l)))}),c&&u.first().addClass(f.getClass("cornerLeft")).end().last().addClass(f.getClass("cornerRight")).end(),1<u.length?(e=b("<div>"),c&&e.addClass(f.getClass("buttonGroup")),e.append(u),n.append(e)):n.append(u)}),n},i.prototype.updateTitle=function(t){this.el&&this.el.find("h2").text(t)},i.prototype.activateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").addClass(this.calendar.theme.getClass("stateActive"))},i.prototype.deactivateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},i.prototype.disableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},i.prototype.enableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},i.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(3),s=n(4),a=n(33),l=n(32),n=n(51),n=(i=n.default,o.__extends(d,i),d.prototype.add=function(t){var e,n=0;for(e in this.recordOverrides(t),t)n++;if(1===n){if("height"===e||"contentHeight"===e||"aspectRatio"===e)return void this._calendar.updateViewSize(!0);if("defaultDate"===e)return;if("businessHours"===e)return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(e))return;if("timezone"===e)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},d.prototype.compute=function(){var t=s.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),e=l.localeOptionHash[t];e||(t=a.globalDefaults.locale,e=l.localeOptionHash[t]||{}),t=s.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,e.isRTL,a.globalDefaults.isRTL)?a.rtlDefaults:{},this.dirDefaults=t,this.localeDefaults=e,t=a.mergeOptions([a.globalDefaults,t,e,this.overrides,this.dynamicOverrides]),l.populateInstanceComputableOptions(t),this.reset(t)},d.prototype.recordOverrides=function(t){for(var e in t)this.dynamicOverrides[e]=t[e];this._calendar.viewSpecManager.clearCache(),this.compute()},d);function d(t,e){var n=i.call(this)||this;return n._calendar=t,n.overrides=r.extend({},e),n.dynamicOverrides={},n.compute(),n}e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var c=n(0),o=n(3),h=n(24),p=n(4),f=n(33),i=n(32);function r(t,e){this.optionsManager=t,this._calendar=e,this.clearCache()}r.prototype.clearCache=function(){this.viewSpecCache={}},r.prototype.getViewSpec=function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},r.prototype.getUnitViewSpec=function(t){var e,n,i;if(-1!==o.inArray(t,p.unitsDesc))for(e=this._calendar.header.getViewsWithButtons(),o.each(h.viewHash,function(t){e.push(t)}),n=0;n<e.length;n++)if((i=this.getViewSpec(e[n]))&&i.singleUnit===t)return i},r.prototype.buildViewSpec=function(t){for(var e,n,i,o,r,s=this.optionsManager.overrides.views||{},a=[],l=[],d=[],u=t;u;)e=h.viewHash[u],n=s[u],u=null,(e="function"==typeof e?{class:e}:e)&&(a.unshift(e),l.unshift(e.defaults||{}),i=i||e.duration,u=u||e.type),n&&(d.unshift(n),i=i||n.duration,u=u||n.type);return(e=p.mergeProps(a)).type=t,!!e.class&&((i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration)&&(o=c.duration(i)).valueOf()&&(r=p.computeDurationGreatestUnit(o,i),e.duration=o,e.durationUnit=r,1===o.as(r))&&(e.singleUnit=r,d.unshift(s[r]||{})),e.defaults=f.mergeOptions(l),e.overrides=f.mergeOptions(d),this.buildViewSpecOptions(e),this.buildViewSpecButtonText(e,t),e)},r.prototype.buildViewSpecOptions=function(t){var e=this.optionsManager;t.options=f.mergeOptions([f.globalDefaults,t.defaults,e.dirDefaults,e.localeDefaults,e.overrides,t.overrides,e.dynamicOverrides]),i.populateInstanceComputableOptions(t.options)},r.prototype.buildViewSpecButtonText=function(e,n){function t(t){t=t.buttonText||{};return t[n]||(e.buttonTextKey?t[e.buttonTextKey]:null)||(e.singleUnit?t[e.singleUnit]:null)}var i=this.optionsManager;e.buttonTextOverride=t(i.dynamicOverrides)||t(i.overrides)||e.overrides.buttonText,e.buttonTextDefault=t(i.localeDefaults)||t(i.dirDefaults)||e.defaults.buttonText||t(f.globalDefaults)||(e.duration?this._calendar.humanizeDuration(e.duration):null)||n},e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var e=n(38),i=n(56),o=n(223),n=n(224);e.default.registerClass(i.default),e.default.registerClass(o.default),e.default.registerClass(n.default)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var e=n(57),i=n(221),o=n(222),r=n(262),n=n(263);e.defineThemeSystem("standard",i.default),e.defineThemeSystem("jquery-ui",o.default),e.defineThemeSystem("bootstrap3",r.default),e.defineThemeSystem("bootstrap4",n.default)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(22),n=(i=n.default,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},n.prototype.baseIconClass="glyphicon",n.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},n.prototype.iconOverrideOption="bootstrapGlyphicons",n.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",n.prototype.iconOverridePrefix="glyphicon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),n=n(22),n=(i=n.default,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}(e.default=n).prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},n.prototype.baseIconClass="fa",n.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},n.prototype.iconOverrideOption="bootstrapFontAwesome",n.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",n.prototype.iconOverridePrefix="fa-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var e=n(24),i=n(67),n=n(246);e.defineView("basic",{class:i.default}),e.defineView("basicDay",{type:"basic",duration:{days:1}}),e.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),e.defineView("month",{class:n.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});e=n(24),n=n(238);e.defineView("agenda",{class:n.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),e.defineView("agendaDay",{type:"agenda",duration:{days:1}}),e.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});e=n(24),n=n(248);e.defineView("list",{class:n.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),e.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),e.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),e.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),e.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0})}],s={},o.m=r,o.c=s,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=256);function o(t){var e;return(s[t]||(e=s[t]={i:t,l:!1,exports:{}},r[t].call(e.exports,e,e.exports,o),e.l=!0,e)).exports}var r,s}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],e):"object"==typeof exports?e(require("moment"),require("fullcalendar")):e(t.moment,t.FullCalendar)}("undefined"!=typeof self?self:this,function(n,i){return r={0:function(t,e){t.exports=n},1:function(t,e){t.exports=i},121:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(122);e=n(1);e.datepickerLocale("es","es",{closeText:"Cerrar",prevText:"&#x3C;Ant",nextText:"Sig&#x3E;",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.locale("es",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo<br/>el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},122:function(t,e,n){var i,o,r,s;n=n(0),i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?(/-MMM-/.test(e)?o:i)[t.month()]:i},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha invalida"})}},s={},o.m=r,o.c=s,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=121);function o(t){var e;return(s[t]||(e=s[t]={i:t,l:!1,exports:{}},r[t].call(e.exports,e,e.exports,o),e.l=!0,e)).exports}var r,s}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],e):"object"==typeof exports?e(require("moment"),require("fullcalendar")):e(t.moment,t.FullCalendar)}("undefined"!=typeof self?self:this,function(n,i){return r={0:function(t,e){t.exports=n},1:function(t,e){t.exports=i},103:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(104);e=n(1);e.datepickerLocale("de","de",{closeText:"Schließen",prevText:"&#x3C;Zurück",nextText:"Vor&#x3E;",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.locale("de",{buttonText:{year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(t){return"+ weitere "+t},noEventsMessage:"Keine Ereignisse anzuzeigen",dayOfMonthFormat:"ddd DD.MM."})},104:function(t,e,n){function i(t,e,n,i){t={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?t[n][0]:t[n][1]}n(0).defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}},s={},o.m=r,o.c=s,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=103);function o(t){var e;return(s[t]||(e=s[t]={i:t,l:!1,exports:{}},r[t].call(e.exports,e,e.exports,o),e.l=!0,e)).exports}var r,s}),function(u){var m=window,v=(Object.keys||(Object.keys=function(){"use strict";var o=Object.prototype.hasOwnProperty,r=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=s.length;return function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,n,i=[];for(e in t)o.call(t,e)&&i.push(e);if(r)for(n=0;n<a;n++)o.call(t,s[n])&&i.push(s[n]);return i}}()),!1);location.hash;var y=["Days","Hours","Minutes","Seconds"],i={Seconds:"Minutes",Minutes:"Hours",Hours:"Days",Days:"Years"},b={Seconds:1,Minutes:60,Hours:3600,Days:86400,Months:2678400,Years:31536e3};function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function w(t,e,n,i,o){for(var r={},s={},a={},l={},d={},u={},c=null,h=0;h<i.length;h++){var p=i[h],f=null===c?n/b[p]:b[c]/b[p],g=t/b[p],m=e/b[p];o&&(g=0<g?Math.floor(g):Math.ceil(g),m=0<m?Math.floor(m):Math.ceil(m)),"Days"!==p&&(g%=f,m%=f),r[p]=g,a[p]=Math.abs(g),s[p]=m,u[p]=Math.abs(m),l[p]=Math.abs(g)/f,d[p]=Math.abs(m)/f,c=p}return{raw_time:r,raw_old_time:s,time:a,old_time:u,pct:l,old_pct:d}}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=e);n<e;n++)if(n in this&&this[n]===t)return n;return-1});var r={};function s(){void 0!==m.TC_Instance_List?r=m.TC_Instance_List:m.TC_Instance_List=r;for(var s=m,t=["webkit","moz"],e=0;e<t.length&&!s.requestAnimationFrame;++e)s.requestAnimationFrame=s[t[e]+"RequestAnimationFrame"],s.cancelAnimationFrame=s[t[e]+"CancelAnimationFrame"];s.requestAnimationFrame&&s.cancelAnimationFrame||(s.requestAnimationFrame=function(t,e,n){void 0===n&&(n={data:{last_frame:0}});var i=(new Date).getTime(),o=Math.max(0,16-(i-n.data.last_frame)),r=s.setTimeout(function(){t(i+o)},o);return n.data.last_frame=i+o,r},s.cancelAnimationFrame=function(t){clearTimeout(t)})}function a(t,e){this.element=t,this.container,this.listeners=null,this.data={paused:!1,last_frame:0,animation_frame:null,interval_fallback:null,timer:!1,total_duration:null,prev_time:null,drawn_units:[],text_elements:{Days:null,Hours:null,Minutes:null,Seconds:null},attributes:{canvas:null,context:null,item_size:null,line_width:null,radius:null,outer_radius:null},state:{fading:{Days:!1,Hours:!1,Minutes:!1,Seconds:!1}}},this.config=null,this.setOptions(e),this.initialize()}function e(t,e){this.elements=t,this.options=e,this.foreach()}a.prototype.clearListeners=function(){this.listeners={all:[],visible:[]}},a.prototype.addTime=function(t){var e;this.data.attributes.ref_date instanceof Date?(e=this.data.attributes.ref_date).setSeconds(e.getSeconds()+t):isNaN(this.data.attributes.ref_date)||(this.data.attributes.ref_date+=1e3*t)},a.prototype.initialize=function(t){this.data.drawn_units=[];for(var e=0;e<Object.keys(this.config.time).length;e++){var n=Object.keys(this.config.time)[e];this.config.time[n].show&&this.data.drawn_units.push(n)}u(this.element).children("div.time_circles").remove(),!(t=void 0===t?!0:t)&&null!==this.listeners||this.clearListeners(),this.container=u("<div>"),this.container.addClass("time_circles"),this.container.appendTo(this.element);var i,o,r,t=this.element.offsetHeight,s=this.element.offsetWidth,a=(0===t&&(t=u(this.element).height()),0===s&&(s=u(this.element).width()),0===t&&0<s?t=s/this.data.drawn_units.length:0===s&&0<t&&(s=t*this.data.drawn_units.length),document.createElement("canvas")),l=(a.width=s,a.height=t,this.data.attributes.canvas=u(a),this.data.attributes.canvas.appendTo(this.container),!(!(l=document.createElement("canvas")).getContext||!l.getContext("2d"))),e=(l||"undefined"==typeof G_vmlCanvasManager||(G_vmlCanvasManager.initElement(a),l=v=!0),l&&(this.data.attributes.context=a.getContext("2d")),this.data.attributes.item_size=Math.min(s/this.data.drawn_units.length,t),this.data.attributes.line_width=this.data.attributes.item_size*this.config.fg_width,this.data.attributes.radius=(.8*this.data.attributes.item_size-this.data.attributes.line_width)/2,this.data.attributes.outer_radius=this.data.attributes.radius+.5*Math.max(this.data.attributes.line_width,this.data.attributes.line_width*this.config.bg_width),0);for(i in this.data.text_elements)this.config.time[i].show&&((o=u("<div>")).addClass("textDiv_"+i),o.css("top",Math.round(.35*this.data.attributes.item_size)),o.css("left",Math.round(e++*this.data.attributes.item_size)),o.css("width",this.data.attributes.item_size),o.appendTo(this.container),(r=u("<h4>")).text(this.config.time[i].text),r.css("font-size",Math.round(this.config.text_size*this.data.attributes.item_size)),r.css("line-height",Math.round(this.config.text_size*this.data.attributes.item_size)+"px"),r.appendTo(o),(r=u("<span>")).css("font-size",Math.round(3*this.config.text_size*this.data.attributes.item_size)),r.css("line-height",Math.round(this.config.text_size*this.data.attributes.item_size)+"px"),r.appendTo(o),this.data.text_elements[i]=r);this.start(),this.config.start||(this.data.paused=!0);var d=this;this.data.interval_fallback=m.setInterval(function(){d.update.call(d,!0)},100)},a.prototype.update=function(t){if(void 0===t)t=!1;else if(t&&this.data.paused)return;v&&this.data.attributes.context.clearRect(0,0,this.data.attributes.canvas[0].width,this.data.attributes.canvas[0].hright);var e=this.data.prev_time,n=new Date;if(this.data.prev_time=n,null===e&&(e=n),!this.config.count_past_zero&&n>this.data.attributes.ref_date){for(var i=0;i<this.data.drawn_units.length;i++){var o=this.data.drawn_units[i],r=(this.data.text_elements[o].text("0"),i*this.data.attributes.item_size+this.data.attributes.item_size/2),s=this.data.attributes.item_size/2,a=this.config.time[o].color;this.drawArc(r,s,a,0)}this.stop()}else{var l,d,u=(this.data.attributes.ref_date-n)/1e3,n=(this.data.attributes.ref_date-e)/1e3,e="smooth"!==this.config.animation,c=w(u,n,this.data.total_duration,this.data.drawn_units,e),h=w(u,n,b.Years,y,e),i=0,p=0,f=null,g=this.data.drawn_units.slice();for(i in y){o=y[i];Math.floor(h.raw_time[o])!==Math.floor(h.raw_old_time[o])&&this.notifyListeners(o,Math.floor(h.time[o]),Math.floor(u),"all"),g.indexOf(o)<0||(Math.floor(c.raw_time[o])!==Math.floor(c.raw_old_time[o])&&this.notifyListeners(o,Math.floor(c.time[o]),Math.floor(u),"visible"),t||(this.data.text_elements[o].text(Math.floor(Math.abs(c.time[o]))),r=p*this.data.attributes.item_size+this.data.attributes.item_size/2,s=this.data.attributes.item_size/2,a=this.config.time[o].color,"smooth"===this.config.animation?(null===f||v||(Math.floor(c.time[f])>Math.floor(c.old_time[f])?(this.radialFade(r,s,a,1,o),this.data.state.fading[o]=!0):Math.floor(c.time[f])<Math.floor(c.old_time[f])&&(this.radialFade(r,s,a,0,o),this.data.state.fading[o]=!0)),this.data.state.fading[o]||this.drawArc(r,s,a,c.pct[o])):this.animateArc(r,s,a,c.pct[o],c.old_pct[o],(new Date).getTime()+200)),f=o,p++)}this.data.paused||t||(d=function(){l.update.call(l)},"smooth"===(l=this).config.animation?this.data.animation_frame=m.requestAnimationFrame(d,l.element,l):((n=u%1*1e3)<0&&(n=1e3+n),l.data.animation_frame=m.setTimeout(function(){l.data.animation_frame=m.requestAnimationFrame(d,l.element,l)},n+=50)))}},a.prototype.animateArc=function(t,e,n,i,o,r){var s,a,l;null!==this.data.attributes.context&&(.5<Math.abs(o-i)?0===i?this.radialFade(t,e,n,1):this.radialFade(t,e,n,0):(s=(200-(r-(new Date).getTime()))/200,a=o*(1-(s=1<s?1:s))+i*s,this.drawArc(t,e,n,a),1<=s||m.requestAnimationFrame(function(){l.animateArc(t,e,n,i,o,r)},(l=this).element)))},a.prototype.drawArc=function(t,e,n,i){var o,r,s;null!==this.data.attributes.context&&(r=Math.max(this.data.attributes.outer_radius,this.data.attributes.item_size/2),v||this.data.attributes.context.clearRect(t-r,e-r,2*r,2*r),this.config.use_background&&(this.data.attributes.context.beginPath(),this.data.attributes.context.arc(t,e,this.data.attributes.radius,0,2*Math.PI,!1),this.data.attributes.context.lineWidth=this.data.attributes.line_width*this.config.bg_width,this.data.attributes.context.strokeStyle=this.config.circle_bg_color,this.data.attributes.context.stroke()),r=-.5*Math.PI,s=2*Math.PI,r=r+this.config.start_angle/360*s,s=2*i*Math.PI,i="Both"===this.config.direction?(o=!1,(r-=s/2)+s):"Clockwise"===this.config.direction?(o=!1,r+s):(o=!0,r-s),this.data.attributes.context.beginPath(),this.data.attributes.context.arc(t,e,this.data.attributes.radius,r,i,o),this.data.attributes.context.lineWidth=this.data.attributes.line_width,this.data.attributes.context.strokeStyle=n,this.data.attributes.context.stroke())},a.prototype.radialFade=function(n,i,t,o,e){t=(t=t).replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,i){return e+e+n+n+i+i});for(var r=(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null,s=this,a=.2*(1===o?-1:1),l=0;o<=1&&0<=o;l++)!function(){var t=50*l,e="rgba("+r.r+", "+r.g+", "+r.b+", "+Math.round(10*o)/10+")";m.setTimeout(function(){s.drawArc(n,i,e,1)},t)}(),o+=a;m.setTimeout(function(){s.data.state.fading[e]=!1},50*l)},a.prototype.timeLeft=function(){var t;return this.data.paused&&"number"==typeof this.data.timer?this.data.timer:(t=new Date,(this.data.attributes.ref_date-t)/1e3)},a.prototype.start=function(){m.cancelAnimationFrame(this.data.animation_frame),m.clearTimeout(this.data.animation_frame);var t,e,n=u(this.element).data("date");"string"==typeof(n=void 0===n?u(this.element).attr("data-date"):n)?this.data.attributes.ref_date=null!==(e=(n=n).match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{1,2}:[0-9]{2}:[0-9]{2}$/))&&0<e.length?(t=(e=n.split(" "))[0].split("-"),e=e[1].split(":"),new Date(t[0],t[1]-1,t[2],e[0],e[1],e[2])):(t=Date.parse(n),isNaN(t)&&(t=Date.parse(n.replace(/-/g,"/").replace("T"," ")),isNaN(t))?new Date:t):"number"==typeof this.data.timer?this.data.paused&&(this.data.attributes.ref_date=(new Date).getTime()+1e3*this.data.timer):"number"==typeof(e="string"==typeof(e=void 0===(e=u(this.element).data("timer"))?u(this.element).attr("data-timer"):e)?parseFloat(e):e)?(this.data.timer=e,this.data.attributes.ref_date=(new Date).getTime()+1e3*e):this.data.attributes.ref_date=this.config.ref_date,this.data.paused=!1,this.update.call(this)},a.prototype.restart=function(){this.data.timer=!1,this.start()},a.prototype.stop=function(){"number"==typeof this.data.timer&&(this.data.timer=this.timeLeft(this)),this.data.paused=!0,m.cancelAnimationFrame(this.data.animation_frame)},a.prototype.destroy=function(){this.clearListeners(),this.stop(),m.clearInterval(this.data.interval_fallback),this.data.interval_fallback=null,this.container.remove(),u(this.element).removeAttr("data-tc-id"),u(this.element).removeData("tc-id")},a.prototype.setOptions=function(t){if(null===this.config&&(this.default_options.ref_date=new Date,this.config=u.extend(!0,{},this.default_options)),u.extend(!0,this.config,t),m=this.config.use_top_frame?window.top:window,s(),this.data.total_duration=this.config.total_duration,"string"==typeof this.data.total_duration)if(void 0!==b[this.data.total_duration])this.data.total_duration=b[this.data.total_duration];else if("Auto"===this.data.total_duration)for(var e=0;e<Object.keys(this.config.time).length;e++){var n=Object.keys(this.config.time)[e];if(this.config.time[n].show){this.data.total_duration=b[i[n]];break}}else this.data.total_duration=b.Years,console.error("Valid values for TimeCircles config.total_duration are either numeric, or (string) Years, Months, Days, Hours, Minutes, Auto")},a.prototype.addListener=function(t,e,n){"function"==typeof t&&this.listeners[n=void 0===n?"visible":n].push({func:t,scope:e})},a.prototype.notifyListeners=function(t,e,n,i){for(var o=0;o<this.listeners[i].length;o++){var r=this.listeners[i][o];r.func.apply(r.scope,[t,e,n])}},a.prototype.default_options={ref_date:new Date,start:!0,animation:"smooth",count_past_zero:!0,circle_bg_color:"#60686F",use_background:!0,fg_width:.1,bg_width:1.2,text_size:.07,total_duration:"Auto",direction:"Clockwise",use_top_frame:!1,start_angle:0,time:{Days:{show:!0,text:"Days",color:"#FC6"},Hours:{show:!0,text:"Hours",color:"#9CF"},Minutes:{show:!0,text:"Minutes",color:"#BFB"},Seconds:{show:!0,text:"Seconds",color:"#F99"}}};e.prototype.getInstance=function(t){var e,n,i=u(t).data("tc-id");return void 0===i&&(i=o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o(),u(t).attr("data-tc-id",i)),void 0===r[i]?(e=this.options,"object"==typeof(n="string"==typeof(n=u(t).data("options"))?JSON.parse(n):n)&&(e=u.extend(!0,{},this.options,n)),n=new a(t,e),r[i]=n):(n=r[i],void 0!==this.options&&n.setOptions(this.options)),n},e.prototype.addTime=function(e){this.foreach(function(t){t.addTime(e)})},e.prototype.foreach=function(e){var n=this;return this.elements.each(function(){var t=n.getInstance(this);"function"==typeof e&&e(t)}),this},e.prototype.start=function(){return this.foreach(function(t){t.start()}),this},e.prototype.stop=function(){return this.foreach(function(t){t.stop()}),this},e.prototype.restart=function(){return this.foreach(function(t){t.restart()}),this},e.prototype.rebuild=function(){return this.foreach(function(t){t.initialize(!1)}),this},e.prototype.getTime=function(){return this.getInstance(this.elements[0]).timeLeft()},e.prototype.addListener=function(e,n){void 0===n&&(n="visible");var i=this;return this.foreach(function(t){t.addListener(e,i.elements,n)}),this},e.prototype.destroy=function(){return this.foreach(function(t){t.destroy()}),this},e.prototype.end=function(){return this.elements},u.fn.TimeCircles=function(t){return new e(this,t)}}(jQuery),function(){"use strict";var t=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l,e,n,o,r;l=jQuery,e="ekkoLightbox",n=l.fn[e],o={title:"",footer:"",maxWidth:9999,maxHeight:9999,showArrows:!0,wrapping:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div></div><div></div></div></div>',leftArrow:"<span>&#10094;</span>",rightArrow:"<span>&#10095;</span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},t(s,null,[{key:"Default",get:function(){return o}}]),t(s,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(t){if(t<0||t>this._$galleryItems.length-1)return this;this._galleryIndex=t,this.updateNavigation(),this._$element=l(this._$galleryItems.get(this._galleryIndex)),this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){var t;this._config.wrapping||(t=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay"),0===this._galleryIndex?t.find("a:first-child").addClass("disabled"):t.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?t.find("a:last-child").addClass("disabled"):t.find("a:last-child").removeClass("disabled"))}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(t){return 39===(t=t||window.event).keyCode?this.navigateRight():37===t.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(t,e){return e=!(e=!(e=!(e=!(e=!(e=e||!1)&&this._isImage(t)?"image":e)&&this._getYoutubeId(t)?"youtube":e)&&this._getVimeoId(t)?"vimeo":e)&&this._getInstagramId(t)?"instagram":e)||["image","youtube","vimeo","instagram","video","url"].indexOf(e)<0?"url":e}},{key:"_isImage",value:function(t){return t&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var t=this,e=this._$lightboxBodyTwo,n=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(e=this._$lightboxBodyOne,n=this._$lightboxBodyTwo),n.removeClass("in show"),setTimeout(function(){t._$lightboxBodyTwo.hasClass("in")||t._$lightboxBodyTwo.empty(),t._$lightboxBodyOne.hasClass("in")||t._$lightboxBodyOne.empty()},500),e.addClass("in show"),e}},{key:"_handle",value:function(){var t=this._containerToUse(),e=(this._updateTitleAndFooter(),this._$element.attr("data-remote")||this._$element.attr("href")),n=this._detectRemoteType(e,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","video","url"].indexOf(n)<0)return this._error(this._config.strings.type);switch(n){case"image":this._preloadImage(e,t),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(e,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(e),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(e),t);break;case"video":this._showHtml5Video(e,t);break;default:this._loadRemoteContent(e,t)}return this}},{key:"_getYoutubeId",value:function(t){return!!t&&!(!(t=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/))||11!==t[2].length)&&t[2]}},{key:"_getVimeoId",value:function(t){return!!(t&&0<t.indexOf("vimeo"))&&t}},{key:"_getInstagramId",value:function(t){return!!(t&&0<t.indexOf("instagram"))&&t}},{key:"_toggleLoading",value:function(t){return(t=t||!1)?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),l(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),l(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(t){return parseInt(this._$modalDialog.css(t),10)+parseInt(this._$modalContent.css(t),10)+parseInt(this._$modalBody.css(t),10)}},{key:"_updateTitleAndFooter",value:function(){var t=this._$element.data("title")||"",e=this._$element.data("footer")||"";return this._titleIsShown=!1,t||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(t||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,e?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(e)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(t,e){var n=this._getYoutubeId(t),t=0<t.indexOf("&")?t.substr(t.indexOf("&")):"",i=this._$element.data("width")||560,o=this._$element.data("height")||i/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+n+"?badge=0&autoplay=1&html5=1"+t,i,o,e)}},{key:"_showVimeoVideo",value:function(t,e){var n=this._$element.data("width")||500,i=this._$element.data("height")||n/(560/315);return this._showVideoIframe(t+"?autoplay=1",n,i,e)}},{key:"_showInstagramVideo",value:function(t,e){var n=this._$element.data("width")||612,i=n+80;return t="/"!==t.substr(-1)?t+"/":t,e.html('<iframe width="'+n+'" height="'+i+'" src="'+t+'embed/" frameborder="0" allowfullscreen></iframe>'),this._resize(n,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(t,e,n,i){return i.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+e+'" height="'+(n=n||e)+'" src="'+t+'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>'),this._resize(e,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(t,e){var n=this._$element.data("width")||560,i=this._$element.data("height")||n/(560/315);return e.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+n+'" height="'+i+'" src="'+t+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(n,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(t,e){var n=this,i=this._$element.data("width")||560,o=this._$element.data("height")||560,r=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),r||this._isExternal(t)?(e.html('<iframe src="'+t+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):e.load(t,l.proxy(function(){return n._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(i,o),this}},{key:"_isExternal",value:function(t){t=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&0<t[1].length&&t[1].toLowerCase()!==location.protocol||"string"==typeof t[2]&&0<t[2].length&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(t){return console.error(t),this._containerToUse().html(t),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(t,e){if(this._$galleryItems){var n,i=l(this._$galleryItems.get(t),!1);if(void 0!==i)return n=i.attr("data-remote")||i.attr("href"),"image"!==i.attr("data-type")&&!this._isImage(n)||this._preloadImage(n,!1),0<e?this._preloadImageByIndex(t+1,e-1):void 0}}},{key:"_preloadImage",value:function(t,e){var n,i=this,o=(e=e||!1,new Image);return e&&(n=setTimeout(function(){e.append(i._config.loadingMessage)},200),o.onload=function(){n&&clearTimeout(n),n=null;var t=l("<img />");return t.attr("src",o.src),t.addClass("img-fluid"),t.css("width","100%"),e.html(t),i._$modalArrows&&i._$modalArrows.css("display",""),i._resize(o.width,o.height),i._toggleLoading(!1),i._config.onContentLoaded.call(i)},o.onerror=function(){return i._toggleLoading(!1),i._error(i._config.strings.fail+"  "+t)}),o.src=t,o}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(t,e){e=e||t;var n=(this._wantedWidth=t)/(this._wantedHeight=e),i=this._padding.left+this._padding.right+this._border.left+this._border.right,o=575<this._config.doc.body.clientWidth?20:0,r=575<this._config.doc.body.clientWidth?0:20,o=Math.min(t+i,this._config.doc.body.clientWidth-o,this._config.maxWidth),r=(o<t+i?(e=(o-i-r)/n,t=o):t+=i,0),o=0,s=(this._footerIsShown&&(o=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(r=this._$modalHeader.outerHeight(!0)||67),this._padding.top+this._padding.bottom+this._border.bottom+this._border.top),a=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),a=Math.min(e,l(window).height()-s-a-r-o,this._config.maxHeight-s-r-o),s=(a<e&&(t=Math.ceil(a*n)+i),this._$lightboxContainer.css("height",a),this._$modalDialog.css("flex",1).css("maxWidth",t),this._$modal.data("bs.modal"));if(s)try{s._handleUpdate()}catch(t){s.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(e){var n=this;return e=e||{},this.each(function(){var t=l(n),t=l.extend({},s.Default,t.data(),"object"==typeof e&&e);new s(n,t)})}}]),r=s,l.fn[e]=r._jQueryInterface,l.fn[e].Constructor=r,l.fn[e].noConflict=function(){return l.fn[e]=n,r._jQueryInterface};function s(t,e){var n=this;if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this._config=l.extend({},o,e),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=t instanceof jQuery?t:l(t),this._isBootstrap3=3==l.fn.modal.Constructor.VERSION[0];e='<h4 class="modal-title">'+(this._config.title||"&nbsp;")+"</h4>",t='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;</span></button>',e='<div class="modal-dialog" role="document"><div class="modal-content">'+('<div class="modal-header'+(this._config.title||this._config.alwaysShowClose?"":" hide")+'">'+(this._isBootstrap3?t+e:e+t)+"</div>")+'<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"></div><div class="ekko-lightbox-item fade"></div></div></div>'+('<div class="modal-footer'+(this._config.footer?"":" hide")+'">'+(this._config.footer||"&nbsp;")+"</div>")+"</div></div>";l(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+e+"</div>"),this._$modal=l("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=l(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),l(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows)&&1<this._$galleryItems.length&&(this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'</a><a href="#">'+this._config.rightArrow+"</a></div>"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",function(t){return t.preventDefault(),n.navigateLeft()}),this._$lightboxContainer.on("click","a:last-child",function(t){return t.preventDefault(),n.navigateRight()}),this.updateNavigation()),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return n._toggleLoading(!0),n._handle(),n._config.onShown.call(n)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return n._galleryName&&(l(document).off("keydown.ekkoLightbox"),l(window).off("resize.ekkoLightbox")),n._$modal.remove(),n._config.onHidden.call(n)}).modal(this._config),l(window).on("resize.ekkoLightbox",function(){n._resize(n._wantedWidth,n._wantedHeight)}),this._$lightboxContainer.on("touchstart",function(){n._touchstartX=event.changedTouches[0].screenX}).on("touchend",function(){n._touchendX=event.changedTouches[0].screenX,n._swipeGesure()})}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(u){u.extend(u.fn,{validate:function(t){var i;if(this.length)return(i=u.data(this[0],"validator"))||(this.attr("novalidate","novalidate"),i=new u.validator(t,this[0]),u.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget,u(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==u(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(n){function t(){var t,e;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(t=u("<input type='hidden'/>").attr("name",i.submitButton.name).val(u(i.submitButton).val()).appendTo(i.currentForm)),!(i.settings.submitHandler&&!i.settings.debug)||(e=i.settings.submitHandler.call(i,i.currentForm,n),t&&t.remove(),void 0!==e&&e)}return i.settings.debug&&n.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,t()):i.form()?i.pendingRequest?!(i.formSubmitted=!0):t():(i.focusInvalid(),!1)}))),i;t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e,n;return u(this[0]).is("form")?t=this.validate().form():(n=[],t=!0,e=u(this[0].form).validate(),this.each(function(){(t=e.element(this)&&t)||(n=n.concat(e.errorList))}),e.errorList=n),t},rules:function(t,e){var n,i,o,r,s,a=this[0],l=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=a&&(!a.form&&l&&(a.form=this.closest("form")[0],a.name=this.attr("name")),null!=a.form)){if(t)switch(i=(n=u.data(a.form,"validator").settings).rules,o=u.validator.staticRules(a),t){case"add":u.extend(o,u.validator.normalizeRule(e)),delete o.messages,i[a.name]=o,e.messages&&(n.messages[a.name]=u.extend(n.messages[a.name],e.messages));break;case"remove":return e?(s={},u.each(e.split(/\s/),function(t,e){s[e]=o[e],delete o[e]}),s):(delete i[a.name],o)}return(l=u.validator.normalizeRules(u.extend({},u.validator.classRules(a),u.validator.attributeRules(a),u.validator.dataRules(a),u.validator.staticRules(a)),a)).required&&(r=l.required,delete l.required,l=u.extend({required:r},l)),l.remote&&(r=l.remote,delete l.remote,l=u.extend(l,{remote:r})),l}}});function e(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}u.extend(u.expr.pseudos||u.expr[":"],{blank:function(t){return!e(""+u(t).val())},filled:function(t){t=u(t).val();return null!==t&&!!e(""+t)},unchecked:function(t){return!u(t).prop("checked")}}),u.validator=function(t,e){this.settings=u.extend(!0,{},u.validator.defaults,t),this.currentForm=e,this.init()},u.validator.format=function(n,t){return 1===arguments.length?function(){var t=u.makeArray(arguments);return t.unshift(n),u.validator.format.apply(this,t)}:(void 0!==t&&((t=2<arguments.length&&t.constructor!==Array?u.makeArray(arguments).slice(1):t).constructor!==Array&&(t=[t]),u.each(t,function(t,e){n=n.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})})),n)},u.extend(u.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:u([]),errorLabelContainer:u([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||-1!==u.inArray(e.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(t,e,n){("radio"===t.type?this.findByName(t.name):u(t)).addClass(e).removeClass(n)},unhighlight:function(t,e,n){("radio"===t.type?this.findByName(t.name):u(t)).removeClass(e).addClass(n)}},setDefaults:function(t){u.extend(u.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:u.validator.format("Please enter no more than {0} characters."),minlength:u.validator.format("Please enter at least {0} characters."),rangelength:u.validator.format("Please enter a value between {0} and {1} characters long."),range:u.validator.format("Please enter a value between {0} and {1}."),max:u.validator.format("Please enter a value less than or equal to {0}."),min:u.validator.format("Please enter a value greater than or equal to {0}."),step:u.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=u(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||u(this.currentForm),this.containers=u(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,o=this.currentForm,i=this.groups={};function t(t){var e,n,i=void 0!==u(this).attr("contenteditable")&&"false"!==u(this).attr("contenteditable");!this.form&&i&&(this.form=u(this).closest("form")[0],this.name=u(this).attr("name")),o===this.form&&(i=u.data(this.form,"validator"),e="on"+t.type.replace(/^validate/,""),(n=i.settings)[e])&&!u(this).is(n.ignore)&&n[e].call(i,this,t)}u.each(this.settings.groups,function(n,t){"string"==typeof t&&(t=t.split(/\s/)),u.each(t,function(t,e){i[e]=n})}),n=this.settings.rules,u.each(n,function(t,e){n[t]=u.validator.normalizeRule(e)}),u(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&u(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),u.extend(this.submitted,this.errorMap),this.invalid=u.extend({},this.errorMap),this.valid()||u(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(t){var e,n,i=this.clean(t),o=this.validationTargetFor(i),r=this,s=!0;return void 0===o?delete this.invalid[i.name]:(this.prepareElement(o),this.currentElements=u(o),(n=this.groups[o.name])&&u.each(this.groups,function(t,e){e===n&&t!==o.name&&(i=r.validationTargetFor(r.clean(r.findByName(t))))&&i.name in r.invalid&&(r.currentElements.push(i),s=r.check(i)&&s)}),e=!1!==this.check(o),s=s&&e,this.invalid[o.name]=!e,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),u(t).attr("aria-invalid",!e)),s},showErrors:function(e){var n;e&&(u.extend((n=this).errorMap,e),this.errorList=u.map(this.errorMap,function(t,e){return{message:t,element:n.findByName(e)[0]}}),this.successList=u.grep(this.successList,function(t){return!(t.name in e)})),this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){u.fn.resetForm&&u(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,n=0;for(e in t)void 0!==t[e]&&null!==t[e]&&!1!==t[e]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{u(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===u.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var n=this,i={};return u(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var t=this.name||u(this).attr("name"),e=void 0!==u(this).attr("contenteditable")&&"false"!==u(this).attr("contenteditable");return!t&&n.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=u(this).closest("form")[0],this.name=t),this.form===n.currentForm&&!(t in i||!n.objectLength(u(this).rules()))&&(i[t]=!0)})},clean:function(t){return u(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return u(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=u([]),this.toHide=u([])},reset:function(){this.resetInternals(),this.currentElements=u([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(t){var e=u(t),n=t.type,i=void 0!==e.attr("contenteditable")&&"false"!==e.attr("contenteditable");return"radio"===n||"checkbox"===n?this.findByName(t.name).filter(":checked").val():"number"===n&&void 0!==t.validity?t.validity.badInput?"NaN":e.val():(t=i?e.text():e.val(),"file"===n?"C:\\fakepath\\"===t.substr(0,12)?t.substr(12):0<=(i=t.lastIndexOf("/"))||0<=(i=t.lastIndexOf("\\"))?t.substr(i+1):t:"string"==typeof t?t.replace(/\r/g,""):t)},check:function(e){e=this.validationTargetFor(this.clean(e));var t,n,i,o,r=u(e).rules(),s=u.map(r,function(t,e){return e}).length,a=!1,l=this.elementValue(e);for(n in this.abortRequest(e),"function"==typeof r.normalizer?o=r.normalizer:"function"==typeof this.settings.normalizer&&(o=this.settings.normalizer),o&&(l=o.call(e,l),delete r.normalizer),r){i={method:n,parameters:r[n]};try{if("dependency-mismatch"===(t=u.validator.methods[n].call(this,l,e,i.parameters))&&1===s)a=!0;else{if(a=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,i),!1}}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+i.method+"' method.",t),t instanceof TypeError&&(t.message+=".  Exception occurred when checking element "+e.id+", check the '"+i.method+"' method."),t}}if(!a)return this.objectLength(r)&&this.successList.push(e),!0},customDataMessage:function(t,e){return u(t).data("msg"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase())||u(t).data("msg")},customMessage:function(t,e){t=this.settings.messages[t];return t&&(t.constructor===String?t:t[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(t,e){var n=this.findDefined(this.customMessage(t.name,(e="string"==typeof e?{method:e}:e).method),this.customDataMessage(t,e.method),!this.settings.ignoreTitle&&t.title||void 0,u.validator.messages[e.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),i=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,e.parameters,t):i.test(n)&&(n=u.validator.format(n.replace(i,"{$1}"),e.parameters)),n},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e);this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return t=this.settings.wrapper?t.add(t.parent(this.settings.wrapper)):t},defaultShowErrors:function(){for(var t,e,n=0;this.errorList[n];n++)e=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,e.element,this.settings.errorClass,this.settings.validClass),this.showLabel(e.element,e.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,t=this.validElements();t[n];n++)this.settings.unhighlight.call(this,t[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return u(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var n,i,o,r=this.errorsFor(t),s=this.idOrName(t),a=u(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?r.text(e||""):r.html(e||"")):(r=u("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?r.text(e||""):r.html(e||""),i=r,this.settings.wrapper&&(i=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,u(t)):i.insertAfter(t),r.is("label")?r.attr("for",s):0===r.parents("label[for='"+this.escapeCssMeta(s)+"']").length&&(i=r.attr("id"),a?a.match(new RegExp("\\b"+this.escapeCssMeta(i)+"\\b"))||(a+=" "+i):a=i,u(t).attr("aria-describedby",a),n=this.groups[t.name])&&u.each((o=this).groups,function(t,e){e===n&&u("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))})),!e&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t)),this.toShow=this.toShow.add(r)},errorsFor:function(t){var e=this.escapeCssMeta(this.idOrName(t)),t=u(t).attr("aria-describedby"),e="label[for='"+e+"'], label[for='"+e+"'] *";return t&&(e=e+", #"+this.escapeCssMeta(t).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(t){return void 0===t?"":t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||!this.checkable(t)&&t.id||t.name},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),u(t).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return u(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return u("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!u(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!u.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},elementAjaxPort:function(t){return"validate"+t.name},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,u(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],u(t).removeClass(this.settings.pendingClass),e&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(u(this.currentForm).trigger("submit"),this.submitButton&&u("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(u(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(t){var e;this.pending[t.name]&&(e=this.elementAjaxPort(t),u.ajaxAbort(e),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],u(t).removeClass(this.settings.pendingClass))},previousValue:function(t,e){return e="string"==typeof e&&e||"remote",u.data(t,"previousValue")||u.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:e})})},destroy:function(){this.resetForm(),u(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:u.extend(this.classRuleSettings,t)},classRules:function(t){var e={},t=u(t).attr("class");return t&&u.each(t.split(" "),function(){this in u.validator.classRuleSettings&&u.extend(e,u.validator.classRuleSettings[this])}),e},normalizeAttributeRule:function(t,e,n,i){(i=/min|max|step/.test(n)&&(null===e||/number|range|text/.test(e))&&(i=Number(i),isNaN(i))?void 0:i)||0===i?t[n]=i:e===n&&"range"!==e&&(t["date"===e?"dateISO":n]=!0)},attributeRules:function(t){var e,n,i={},o=u(t),r=t.getAttribute("type");for(e in u.validator.methods)n="required"===e?!!(n=""===(n=t.getAttribute(e))?!0:n):o.attr(e),this.normalizeAttributeRule(i,r,e,n);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(t){var e,n,i={},o=u(t),r=t.getAttribute("type");for(e in u.validator.methods)""===(n=o.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()))&&(n=!0),this.normalizeAttributeRule(i,r,e,n);return i},staticRules:function(t){var e={},n=u.data(t.form,"validator");return e=n.settings.rules?u.validator.normalizeRule(n.settings.rules[t.name])||{}:e},normalizeRules:function(i,o){return u.each(i,function(t,e){if(!1===e)delete i[t];else if(e.param||e.depends){var n=!0;switch(typeof e.depends){case"string":n=!!u(e.depends,o.form).length;break;case"function":n=e.depends.call(o,o)}n?i[t]=void 0===e.param||e.param:(u.data(o.form,"validator").resetElements(u(o)),delete i[t])}}),u.each(i,function(t,e){i[t]="function"==typeof e&&"normalizer"!==t?e(o):e}),u.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),u.each(["rangelength","range"],function(){var t;i[this]&&(Array.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(t=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(t[0]),Number(t[1])]))}),u.validator.autoCreateRanges&&(null!=i.min&&null!=i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),null!=i.minlength)&&null!=i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength),i},normalizeRule:function(t){var e;return"string"==typeof t&&(e={},u.each(t.split(/\s/),function(){e[this]=!0}),t=e),t},addMethod:function(t,e,n){u.validator.methods[t]=e,u.validator.messages[t]=void 0!==n?n:u.validator.messages[t],e.length<3&&u.validator.addClassRules(t,u.validator.normalizeRule(t))},methods:{required:function(t,e,n){return this.depend(n,e)?"select"===e.nodeName.toLowerCase()?(n=u(e).val())&&0<n.length:this.checkable(e)?0<this.getLength(t,e):null!=t&&0<t.length:"dependency-mismatch"},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:(n=!1,function(t,e){return n||(n=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())}),dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,n){t=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||n<=t},maxlength:function(t,e,n){t=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||t<=n},rangelength:function(t,e,n){t=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||t>=n[0]&&t<=n[1]},min:function(t,e,n){return this.optional(e)||n<=t},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},step:function(t,e,n){function i(t){return(t=(""+t).match(/(?:\.(\d+))?$/))&&t[1]?t[1].length:0}function o(t){return Math.round(t*Math.pow(10,r))}var r,s=u(e).attr("type"),a="Step attribute on input type "+s+" is not supported.",l=new RegExp("\\b"+s+"\\b"),d=!0;if(s&&!l.test(["text","number","range"].join()))throw new Error(a);return r=i(n),(i(t)>r||o(t)%o(n)!=0)&&(d=!1),this.optional(e)||d},equalTo:function(t,e,n){n=u(n);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){u(e).valid()}),t===n.val()},remote:function(i,o,t,r){if(this.optional(o))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var s,e,a=this.previousValue(o,r);return this.settings.messages[o.name]||(this.settings.messages[o.name]={}),a.originalMessage=a.originalMessage||this.settings.messages[o.name][r],this.settings.messages[o.name][r]=a.message,e=u.param(u.extend({data:i},(t="string"==typeof t?{url:t}:t).data)),null!==a.valid&&a.old===e?a.valid:(a.old=e,a.valid=null,(s=this).startRequest(o),(e={})[o.name]=i,u.ajax(u.extend(!0,{mode:"abort",port:this.elementAjaxPort(o),dataType:"json",data:e,context:s.currentForm,success:function(t){var e,n=!0===t||"true"===t;s.settings.messages[o.name][r]=a.originalMessage,n?(e=s.formSubmitted,s.toHide=s.errorsFor(o),s.formSubmitted=e,s.successList.push(o),s.invalid[o.name]=!1,s.showErrors()):(e={},t=t||s.defaultMessage(o,{method:r,parameters:i}),e[o.name]=a.message=t,s.invalid[o.name]=!0,s.showErrors(e)),a.valid=n,s.stopRequest(o,n)}},t)),"pending")}}});var n,i,o={};return u.ajaxPrefilter?u.ajaxPrefilter(function(t,e,n){var i=t.port;"abort"===t.mode&&(u.ajaxAbort(i),o[i]=n)}):(i=u.ajax,u.ajax=function(t){var e=("mode"in t?t:u.ajaxSettings).mode,n=("port"in t?t:u.ajaxSettings).port;return"abort"===e?(u.ajaxAbort(n),o[n]=i.apply(this,arguments),o[n]):i.apply(this,arguments)}),u.ajaxAbort=function(t){o[t]&&(o[t].abort(),delete o[t])},u}),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n,i=e();for(n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,function(){return i=[function(t,e,n){t.exports=n(2)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i,o,r,s,a,l="active",d=void 0,u=(r=o=n.Events||(n.Events={}),a={},r.attach=function(t,e){a[t]||(a[t]=[]),a[t].push(e)},r.fire=function(t,e){a[t]&&a[t].forEach(function(t){t.apply(void 0,e)})},r.remove=function(t,e){a[t]&&(a[t]=a[t].filter(function(t){return e!==t}))},r.dom=function(t,e,n){return(s=s||(t.addEventListener?function(t,e,n){return t.addEventListener(e,n,!1)}:"function"==typeof t.attachEvent?function(t,e,n){return t.attachEvent("on"+e,n,!1)}:function(t,e,n){return t["on"+e]=n}))(t,e,n)},c.prototype.start=function(){this.stopped=!1,clearInterval(this.token),this.token=setInterval(this.callback,1e3*this.seconds)},c.prototype.stop=function(){this.stopped=!0,clearInterval(this.token)},c.prototype.resume=function(){this.start()},c.prototype.pause=function(){this.stop()},c);function c(t,e,n){var i=this;this.ifvisible=t,this.seconds=e,this.callback=n,this.stopped=!1,this.start(),this.ifvisible.on("statusChanged",function(t){!1===i.stopped&&(t.status===l?i.start():i.pause())})}function h(t,e){var n=this;this.root=t,this.doc=e,this.status=l,this.VERSION="2.0.10",this.timers=[],this.idleTime=3e4,this.isLegacyModeOn=!1,void 0!==this.doc.hidden?(i="hidden",d="visibilitychange"):void 0!==this.doc.mozHidden?(i="mozHidden",d="mozvisibilitychange"):void 0!==this.doc.msHidden?(i="msHidden",d="msvisibilitychange"):void 0!==this.doc.webkitHidden&&(i="webkitHidden",d="webkitvisibilitychange"),void 0===i?this.legacyMode():((t=function(){n.doc[i]?n.blur():n.focus()})(),o.dom(this.doc,d,t)),this.startIdleTimer(),this.trackIdleStatus()}n.Timer=u,n.IE=function(){for(var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",n[0];);return 4<t?t:void 0}(),h.prototype.legacyMode=function(){var t,e=this;this.isLegacyModeOn||(t="blur",n.IE<9&&(t="focusout"),o.dom(this.root,t,function(){return console.log("blurred"),e.blur()}),o.dom(this.root,"focus",function(){return e.focus()}),this.isLegacyModeOn=!0)},h.prototype.startIdleTimer=function(t){var e=this;t instanceof MouseEvent&&0===t.movementX&&0===t.movementY||(this.timers.map(clearTimeout),this.timers.length=0,"idle"===this.status&&this.wakeup(),this.idleStartedTime=+new Date,this.timers.push(setTimeout(function(){if(e.status===l||"hidden"===e.status)return e.idle()},this.idleTime)))},h.prototype.trackIdleStatus=function(){o.dom(this.doc,"mousemove",this.startIdleTimer.bind(this)),o.dom(this.doc,"mousedown",this.startIdleTimer.bind(this)),o.dom(this.doc,"keyup",this.startIdleTimer.bind(this)),o.dom(this.doc,"touchstart",this.startIdleTimer.bind(this)),o.dom(this.root,"scroll",this.startIdleTimer.bind(this)),this.focus(this.startIdleTimer.bind(this))},h.prototype.on=function(t,e){return o.attach(t,e),this},h.prototype.off=function(t,e){return o.remove(t,e),this},h.prototype.setIdleDuration=function(t){return this.idleTime=1e3*t,this.startIdleTimer(),this},h.prototype.getIdleDuration=function(){return this.idleTime},h.prototype.getIdleInfo=function(){var t,e=+new Date;return"idle"===this.status?{isIdle:!0,idleFor:e-this.idleStartedTime,timeLeft:0,timeLeftPer:100}:(t=this.idleStartedTime+this.idleTime-e,{isIdle:!1,idleFor:e-this.idleStartedTime,timeLeft:t,timeLeftPer:parseFloat((100-100*t/this.idleTime).toFixed(2))})},h.prototype.idle=function(t){return t?this.on("idle",t):(this.status="idle",o.fire("idle"),o.fire("statusChanged",[{status:this.status}])),this},h.prototype.blur=function(t){return t?this.on("blur",t):(this.status="hidden",o.fire("blur"),o.fire("statusChanged",[{status:this.status}])),this},h.prototype.focus=function(t){return t?this.on("focus",t):this.status!==l&&(this.status=l,o.fire("focus"),o.fire("wakeup"),o.fire("statusChanged",[{status:this.status}])),this},h.prototype.wakeup=function(t){return t?this.on("wakeup",t):this.status!==l&&(this.status=l,o.fire("wakeup"),o.fire("statusChanged",[{status:this.status}])),this},h.prototype.onEvery=function(t,e){return new u(this,t,e)},h.prototype.now=function(t){return void 0!==t?this.status===t:this.status===l},n.IfVisible=h},function(t,n,i){!function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=i(1),t="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||this;n.ifvisible=new e.IfVisible(t,document)}.call(n,function(){return this}())}],o={},n.m=i,n.c=o,n.p="",n(0);function n(t){var e;return(o[t]||(e=o[t]={exports:{},id:t,loaded:!1},i[t].call(e.exports,e,e.exports,n),e.loaded=!0,e)).exports}var i,o}),navigator.userAgent.match(/IEMobile\/10\.0/)&&((msViewportStyle=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.head.appendChild(msViewportStyle)),jQuery(document).ready(function(t){t("a, input, select, button, textarea").attr("tabindex","0")}),jQuery(document).ready(function(e){var n;e("#search-toggle").on("click",function(t){e(this).hasClass("open")?(clearTimeout(n),e(t.target).hasClass("search-text")||e(this).find("form").trigger("submit")):(e(this).addClass("open"),e(this).find("input[type=text]").focus())}),e("#search-toggle input[type=text]").on("blur",function(t){"BODY"===e(document.activeElement).prop("tagName")&&(n=setTimeout(function(){e("#search-toggle").removeClass("open")},300))}),e("#mobile-search-submit").on("click",function(){e(this).parents(".navbar-mobile-search").find("form").submit()})}),jQuery(document).ready(function(n){var i,t=getCookie("wVtEVwgQSAWVlsTOxd4pS");if(!1!==t)for(var e in i=JSON.parse(t))!0!==i[e]&&n("#"+e).addClass("content-block-toggle-off").find(".toggle-wrap").removeClass("toggle-wrap-on");else i={magazine:!0,installations:!0,manufacturing:!0,"markets-policy":!0,technology:!0};n(".toggle-track").on("click",function(t){n(this).parent(".toggle-wrap").toggleClass("toggle-wrap-on"),n(this).parents(".content-block").toggleClass("content-block-toggle-off");var e=n(this).parents(".content-block").attr("id");i[e]=!i[e],setCookie("wVtEVwgQSAWVlsTOxd4pS",JSON.stringify(i),365)})}),jQuery(document).ready(function(o){function e(t,e,n){var i=0;o(window).width()<e&&o(window).width()>n?o(t).css("min-height","0px").each(function(){o(this).outerHeight()>i&&(i=o(this).outerHeight())}).css("min-height",++i+"px"):o(t).css("min-height","0px")}function t(){e(".prev-post-link h4, .next-post-link h4",1660,750)}function n(){e(".jp-relatedposts-post",1e4,750)}function i(){e(".issue-preview a",1e4,750)}function r(){e("#sponsors-small .small-sponsor",1e4,0)}function s(){e(".event-related .content-block",1e4,0)}function a(){e(".upcoming-webinars .article-preview",1e4,0),e(".previous-webinars .article-preview",1e4,0)}function l(){e("#announcements .content-block-home-announcements",999999999,0),e("#announcements-sponsored .content-block-small",1e4,540);var t=o("#rectangle_home_top").outerHeight();o("#announcements .content-block-home-announcements").eq(0).outerHeight()<t&&o("#announcements .content-block-home-announcements").css("min-height",t)}function d(){e(".second-home-section .content-block",1e4,540)}function u(){var t=o("#home-announcements-wrap, #home-top-rectangle-wrap-1, #third-home-section-content-a, #home-top-rectangle-wrap-2, #popular-posts-home-wrap, #home-top-rectangle-wrap-3").not(":hidden"),e=Math.floor(t.length/2);t.css("min-height","none");for(var n=0;n<e;n++)!function(t,e,n){var i=0;o(window).width()<e&&o(window).width()>n?t.css("min-height","0px").each(function(){o(this).outerHeight()>i&&(i=o(this).outerHeight())}).css("min-height",++i+"px"):t.css("min-height","0px")}(t.filter(":eq("+2*n+"), :eq("+(2*n+1)+")"),1e4,767)}window.pvSetMatchingHeights=e,t(),o(window).on("resize",t),n(),o(window).on("resize",n),o(window).on("load",n),i(),o(window).on("resize",i),o(window).on("load",i),r(),o(window).on("resize",r),o(window).on("load",r),s(),o(window).on("resize",s),o(window).on("load",s),a(),o(window).on("resize",a),o(window).on("load",a),0<o("#announcements").length&&(o("#announcements-slider").on("init",l),o("#announcements-slider").on("beforeChange",l),o("#announcements-slider").on("reInit",l),o(window).on("resize",l),o("#announcements-slider").slick({centerMode:!0,autoplay:!0,autoplaySpeed:4e3,slidesToShow:1,slidesToScroll:1,centerPadding:0,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]})),d(),o(window).on("resize",d),o(window).on("load",d),u(),o(window).on("resize",u),o(window).on("load",u)}),jQuery(document).ready(function(e){var t=!1,t="hello"===getCookie("c4YGUxxz5aNu6NODlhMDg")||(setCookie("c4YGUxxz5aNu6NODlhMDg","hello",!1),"hello"===getCookie("c4YGUxxz5aNu6NODlhMDg")),n=getCookie("Q7Z0zw63hK0VBvRLy5LzF"),i=getCookie("R12FpSQrONeWxLfCZ9ZKi"),o=!1;t&&"yes"!==n&&"yes"!==i&&Math.random()<.2&&(o=!0),"yes"===i&&setCookie("R12FpSQrONeWxLfCZ9ZKi","yes",365),e(document).on("scroll",function(t){o&&800<e(document).scrollTop()&&(e("#newsletter-modal").modal("show"),o=!1,setCookie("Q7Z0zw63hK0VBvRLy5LzF","yes",7))})}),jQuery(document).ready(function(t){!Modernizr.cssscrollbar&&t("body").hasClass("home")&&t("#ytc-wrapper .ytc-thumbnails").length;var e=_.debounce(function(){Modernizr.cssscrollbar||t("#breaking-tweets").length},100);t(window).resize(e)}),jQuery(document).ready(function(e){e(".home-page-video-preview").on("click",function(t){t.preventDefault();t="https://www.youtube.com/embed/"+e(this).data("vid")+"?feature=oembed&autoplay=1";e("#home-page-video-player iframe").attr("src",t)})}),jQuery(document).ready(function(n){var i;0<n(".ad-scroll-to-view-top").length&&1024<=n(window).width()&&(n("body").scrollTop(),i=n(window).width()/3,n(window).on("scroll.top-ad",function(){var t,e=n("body").scrollTop();e<i?(t=2*e,n(".ad-scroll-to-view-top").css({"margin-top":e+"px",height:e+"px"}),n(".container-main").css("margin-top",t+"px")):e<i+800&&(n(".ad-scroll-to-view-top").css({"margin-top":e+"px",height:i+"px"}),n(".container-main").css("margin-top",e+i+"px"))}),n(window).on("resize",function(){i=n(window).width()/3,n(window).width()<1024&&(n(".ad-scroll-to-view-top").css({"margin-top":"0px",height:"0px"}),n(".container-main").css("margin-top","0px"),n(window).off("scroll.top-ad"))}))}),jQuery(document).ready(function(t){"www.pv-magazine.com"!==window.location.hostname&&window.location.hostname}),jQuery(document).ready(function(t){t(".market-overview").length&&t(".market-overview").DataTable({scrollX:!0})}),jQuery(document).ready(function(e){e(".dropdown-submenu > a").on("click",function(t){e(this).parent(".dropdown-submenu").siblings(".dropdown-submenu").find("ul.dropdown-menu").hide(),e(this).next("ul").toggle(),t.stopPropagation(),t.preventDefault()})}),jQuery(document).ready(function(t){"649"===t("#event-filter #art").val()&&t("#schulung-tax").show(),t("#event-filter #art").on("change",function(){"649"===t(this).val()?t("#schulung-tax").show():t("#schulung-tax").hide()})});var msViewportStyle,decodeEntities=function(){var e=document.createElement("div");return function(t){return t&&"string"==typeof t&&(t=(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")).replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),e.innerHTML=t,t=e.textContent,e.textContent=""),t}}();function setEventVideoGalleryHeight(){var t;768<=jQuery(window).width()?(t=jQuery(".video-gallery-main-wrap").height(),jQuery(".video-gallery-additional-wrap").css("max-height",t+"px")):jQuery(".video-gallery-additional-wrap").css("max-height","none")}jQuery(document).ready(function(i){var t;i("#pv-event-calendar").length<1||(t="en",i("body").hasClass("es")&&(t="es"),i("#pv-event-calendar").fullCalendar({locale:t,eventSources:[{url:pvAjax.ajaxurl,data:{action:"pv_fetch_events_feed",nonce:pvAjax.eventNonce},success:function(t){}}],eventRender:function(t,e){e.attr("target","_blank");var n=e.find(".fc-title").text();e.find(".fc-title").text(decodeEntities(n)),e.attr("data-toggle","tooltip"),e.attr("data-placement","bottom"),e.attr("data-title",decodeEntities(t.description)),e.addClass(t.type),t.pvMagazine&&t.favicon&&e.find(".fc-content").before('<img class="pv-mag-event" src="'+t.favicon+'">')},eventAfterRender:function(t,e,n){i('[data-toggle="tooltip"]').tooltip()}}))}),jQuery(document).ready(function(t){0<t("#directory-slider .gallery").length&&t("#directory-slider .gallery").slick({centerMode:!0,autoplay:!0,autoplaySpeed:2e3,slidesToShow:1,slidesToScroll:1})}),jQuery(document).ready(function(t){t('.entry-author [data-toggle="tooltip"]').tooltip(),t('.author-image [data-toggle="tooltip"]').tooltip(),t('.entry-author-bio [data-toggle="tooltip"]').tooltip()}),jQuery(document).ready(function(t){0<t("#event-header-slideshow").length&&t("#event-header-slideshow").slick({autoplay:!0,autoplaySpeed:2e3,slidesToShow:1,slidesToScroll:1}),0<t(".event-speakers-slides").length&&t(".event-speakers-slides").slick({autoplay:!0,autoplaySpeed:2e3,slidesToShow:1,slidesToScroll:1})}),jQuery(document).ready(function(e){0<e(".event-countdown-timer").length&&e(".event-countdown-timer").TimeCircles({animation:"smooth",bg_width:.2,fg_width:.03,circle_bg_color:"#00529b",time:{Days:{text:"Days",color:"#004a7f",show:!0},Hours:{text:"Hours",color:"#004a7f",show:!0},Minutes:{text:"Minutes",color:"#004a7f",show:!0},Seconds:{text:"Seconds",color:"#004a7f",show:!0}}}),0<e(".event-countdown-timer").length&&e(".event-gallery-lightbox").on("click",function(t){t.preventDefault(),e(this).ekkoLightbox()})}),jQuery(document).ready(function(t){t("body.home .gform_wrapper form").attr("action","")}),jQuery(document).ready(function(e){e("#commentform").validate({rules:{comment:{required:!0},author:{required:!0,minlength:2},email:{required:!0,email:!0}},messages:{comment:"Please enter your comment.",author:"Please enter your name.",email:{required:"Please enter your email address.",email:"Please enter a valid email address."}},errorElement:"div",errorPlacement:function(t,e){e.after(t)},submitHandler:function(t){console.log("submitted"),e("#commentform").trigger("comment"),HTMLFormElement.prototype.submit.call(t)}})}),jQuery(document).ready(function(s){s(".video-gallery-overlay").length&&(setEventVideoGalleryHeight(),s(window).on("resize",setEventVideoGalleryHeight),s(".video-gallery-overlay").on("click",function(t){var e,n,i,o,r;s("#video-gallery-responsive-test").is(":visible")||(t.preventDefault(),t=s(t.target).parents(".video-gallery-item").find("iframe"),e=s("#video-gallery-main").find("iframe"),-1===(n=t.attr("src")).indexOf("autoplay")&&(-1===n.indexOf("?")?n+="?autoplay=1":n+="&autoplay=1"),i=t.attr("title"),-1!==(o=e.attr("src")).indexOf("autoplay")&&(o=(o=o.replace("&autoplay=1","")).replace("autoplay=1","")),r=e.attr("title"),t.attr("src",o),t.attr("title",r),e.attr("src",n),e.attr("title",i),e.attr("enablejsapi",1),e.attr("id","active-video"))}))}),jQuery(document).ready(function(t){var e,n=0;function i(){1e3<++n?clearInterval(e):t("#mce-success-response:visible").length<1&&t("#mce-error-response:visible").length<1||(clearInterval(e),0<t("#mce-success-response:visible").length?(clearInterval(e),setCookie("R12FpSQrONeWxLfCZ9ZKi","yes",365)):clearInterval(e))}t("#mc-embedded-subscribe").on("click",function(t){clearInterval(e),n=0,e=setInterval(i,10)}),t("#newsletter-modal button",window.parent.document).on("click",function(){clearInterval(e)})}),function(l){l.extend(l.fn,{validate:function(t){var n;if(this.length)return(n=l.data(this[0],"validator"))||(this.attr("novalidate","novalidate"),n=new l.validator(t,this[0]),l.data(this[0],"validator",n),n.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){n.settings.submitHandler&&(n.submitButton=t.target),l(t.target).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==l(t.target).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.submit(function(e){function t(){var t;return!n.settings.submitHandler||(n.submitButton&&(t=l("<input type='hidden'/>").attr("name",n.submitButton.name).val(l(n.submitButton).val()).appendTo(n.currentForm)),n.settings.submitHandler.call(n,n.currentForm,e),n.submitButton&&t.remove(),!1)}return n.settings.debug&&e.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,t()):n.form()?n.pendingRequest?!(n.formSubmitted=!0):t():(n.focusInvalid(),!1)})),n);t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e;return l(this[0]).is("form")?t=this.validate().form():(t=!0,e=l(this[0].form).validate(),this.each(function(){t=e.element(this)&&t})),t},removeAttrs:function(t){var n={},i=this;return l.each(t.split(/\s/),function(t,e){n[e]=i.attr(e),i.removeAttr(e)}),n},rules:function(t,e){var n,i,o,r,s,a=this[0];if(t)switch(n=l.data(a.form,"validator").settings,i=n.rules,o=l.validator.staticRules(a),t){case"add":l.extend(o,l.validator.normalizeRule(e)),delete o.messages,i[a.name]=o,e.messages&&(n.messages[a.name]=l.extend(n.messages[a.name],e.messages));break;case"remove":return e?(s={},l.each(e.split(/\s/),function(t,e){s[e]=o[e],delete o[e],"required"===e&&l(a).removeAttr("aria-required")}),s):(delete i[a.name],o)}return(t=l.validator.normalizeRules(l.extend({},l.validator.classRules(a),l.validator.attributeRules(a),l.validator.dataRules(a),l.validator.staticRules(a)),a)).required&&(r=t.required,delete t.required,t=l.extend({required:r},t),l(a).attr("aria-required","true")),t.remote&&(r=t.remote,delete t.remote,t=l.extend(t,{remote:r})),t}}),l.extend(l.expr[":"],{blank:function(t){return!l.trim(""+l(t).val())},filled:function(t){return!!l.trim(""+l(t).val())},unchecked:function(t){return!l(t).prop("checked")}}),l.validator=function(t,e){this.settings=l.extend(!0,{},l.validator.defaults,t),this.currentForm=e,this.init()},l.validator.format=function(n,t){return 1===arguments.length?function(){var t=l.makeArray(arguments);return t.unshift(n),l.validator.format.apply(this,t)}:((t=2<arguments.length&&t.constructor!==Array?l.makeArray(arguments).slice(1):t).constructor!==Array&&(t=[t]),l.each(t,function(t,e){n=n.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})}),n)},l.extend(l.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:l([]),errorLabelContainer:l([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||!(t.name in this.submitted||t===this.lastElement)||this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(t,e,n){("radio"===t.type?this.findByName(t.name):l(t)).addClass(e).removeClass(n)},unhighlight:function(t,e,n){("radio"===t.type?this.findByName(t.name):l(t)).removeClass(e).addClass(n)}},setDefaults:function(t){l.extend(l.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:l.validator.format("Please enter no more than {0} characters."),minlength:l.validator.format("Please enter at least {0} characters."),rangelength:l.validator.format("Please enter a value between {0} and {1} characters long."),range:l.validator.format("Please enter a value between {0} and {1}."),max:l.validator.format("Please enter a value less than or equal to {0}."),min:l.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){var e=l.data(this[0].form,"validator"),n="on"+t.type.replace(/^validate/,""),i=e.settings;i[n]&&!this.is(i.ignore)&&i[n].call(e,this[0],t)}this.labelContainer=l(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||l(this.currentForm),this.containers=l(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};l.each(this.settings.groups,function(n,t){"string"==typeof t&&(t=t.split(/\s/)),l.each(t,function(t,e){i[e]=n})}),n=this.settings.rules,l.each(n,function(t,e){n[t]=l.validator.normalizeRule(e)}),l(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",t).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",t),this.settings.invalidHandler&&l(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),l(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),l.extend(this.submitted,this.errorMap),this.invalid=l.extend({},this.errorMap),this.valid()||l(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(t){var e=this.clean(t),n=this.validationTargetFor(e),i=!0;return void 0===(this.lastElement=n)?delete this.invalid[e.name]:(this.prepareElement(n),this.currentElements=l(n),(i=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),l(t).attr("aria-invalid",!i),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){for(var t in l.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[t],element:this.findByName(t)[0]});this.successList=l.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){l.fn.resetForm&&l(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,n=0;for(e in t)n++;return n},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{l(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===l.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var t=this,e={};return l(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in e||!t.objectLength(l(this).rules())||(e[this.name]=!0,0))})},clean:function(t){return l(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return l(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=l([]),this.toHide=l([]),this.currentElements=l([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(t){var t=l(t),e=t.attr("type");return"radio"===e||"checkbox"===e?l("input[name='"+t.attr("name")+"']:checked").val():"string"==typeof(e=t.val())?e.replace(/\r/g,""):e},check:function(e){e=this.validationTargetFor(this.clean(e));var t,n,i,o=l(e).rules(),r=l.map(o,function(t,e){return e}).length,s=!1,a=this.elementValue(e);for(n in o){i={method:n,parameters:o[n]};try{if("dependency-mismatch"===(t=l.validator.methods[n].call(this,a,e,i.parameters))&&1===r)s=!0;else{if(s=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,i),!1}}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+i.method+"' method.",t),t}}if(!s)return this.objectLength(o)&&this.successList.push(e),!0},customDataMessage:function(t,e){return l(t).data("msg"+e[0].toUpperCase()+e.substring(1).toLowerCase())||l(t).data("msg")},customMessage:function(t,e){t=this.settings.messages[t];return t&&(t.constructor===String?t:t[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(t,e){return this.findDefined(this.customMessage(t.name,e),this.customDataMessage(t,e),!this.settings.ignoreTitle&&t.title||void 0,l.validator.messages[e],"<strong>Warning: No message defined for "+t.name+"</strong>")},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,e.parameters,t):i.test(n)&&(n=l.validator.format(n.replace(i,"{$1}"),e.parameters)),this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return t=this.settings.wrapper?t.add(t.parent(this.settings.wrapper)):t},defaultShowErrors:function(){for(var t,e,n=0;this.errorList[n];n++)e=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,e.element,this.settings.errorClass,this.settings.validClass),this.showLabel(e.element,e.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,t=this.validElements();t[n];n++)this.settings.unhighlight.call(this,t[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return l(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var n=this.errorsFor(t);n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(e)):(n=l("<"+this.settings.errorElement+">").attr("for",this.idOrName(t)).addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,l(t)):n.insertAfter(t))),!e&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,t)),this.toShow=this.toShow.add(n)},errorsFor:function(t){var e=this.idOrName(t);return this.errors().filter(function(){return l(this).attr("for")===e})},idOrName:function(t){return this.groups[t.name]||!this.checkable(t)&&t.id||t.name},validationTargetFor:function(t){return t=this.checkable(t)?this.findByName(t.name).not(this.settings.ignore)[0]:t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return l(this.currentForm).find("[name='"+t+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return l("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!l(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!l.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(l(this.currentForm).submit(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(l(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return l.data(t,"previousValue")||l.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:l.extend(this.classRuleSettings,t)},classRules:function(t){var e={},t=l(t).attr("class");return t&&l.each(t.split(" "),function(){this in l.validator.classRuleSettings&&l.extend(e,l.validator.classRuleSettings[this])}),e},attributeRules:function(t){var e,n,i={},o=l(t),r=t.getAttribute("type");for(e in l.validator.methods)n="required"===e?(n=t.getAttribute(e),""===n&&(n=!0),!!n):o.attr(e),/min|max/.test(e)&&(null===r||/number|range|text/.test(r))&&(n=Number(n)),n||0===n?i[e]=n:r===e&&"range"!==r&&(i[e]=!0);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(t){var e,n,i={},o=l(t);for(e in l.validator.methods)n=o.data("rule"+e[0].toUpperCase()+e.substring(1).toLowerCase()),void 0!==n&&(i[e]=n);return i},staticRules:function(t){var e={},n=l.data(t.form,"validator");return e=n.settings.rules?l.validator.normalizeRule(n.settings.rules[t.name])||{}:e},normalizeRules:function(i,o){return l.each(i,function(t,e){if(!1===e)delete i[t];else if(e.param||e.depends){var n=!0;switch(typeof e.depends){case"string":n=!!l(e.depends,o.form).length;break;case"function":n=e.depends.call(o,o)}n?i[t]=void 0===e.param||e.param:delete i[t]}}),l.each(i,function(t,e){i[t]=l.isFunction(e)?e(o):e}),l.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),l.each(["rangelength","range"],function(){var t;i[this]&&(l.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(t=i[this].split(/[\s,]+/),i[this]=[Number(t[0]),Number(t[1])]))}),l.validator.autoCreateRanges&&(i.min&&i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),i.minlength)&&i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength),i},normalizeRule:function(t){var e;return"string"==typeof t&&(e={},l.each(t.split(/\s/),function(){e[this]=!0}),t=e),t},addMethod:function(t,e,n){l.validator.methods[t]=e,l.validator.messages[t]=void 0!==n?n:l.validator.messages[t],e.length<3&&l.validator.addClassRules(t,l.validator.normalizeRule(t))},methods:{required:function(t,e,n){return this.depend(n,e)?"select"===e.nodeName.toLowerCase()?(n=l(e).val())&&0<n.length:this.checkable(e)?0<this.getLength(t,e):0<l.trim(t).length:"dependency-mismatch"},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var n,i,o=0,r=0,s=!1;if((t=t.replace(/\D/g,"")).length<13||19<t.length)return!1;for(n=t.length-1;0<=n;n--)i=t.charAt(n),r=parseInt(i,10),s&&9<(r*=2)&&(r-=9),o+=r,s=!s;return o%10==0},minlength:function(t,e,n){t=l.isArray(t)?t.length:this.getLength(l.trim(t),e);return this.optional(e)||n<=t},maxlength:function(t,e,n){t=l.isArray(t)?t.length:this.getLength(l.trim(t),e);return this.optional(e)||t<=n},rangelength:function(t,e,n){t=l.isArray(t)?t.length:this.getLength(l.trim(t),e);return this.optional(e)||t>=n[0]&&t<=n[1]},min:function(t,e,n){return this.optional(e)||n<=t},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},equalTo:function(t,e,n){n=l(n);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){l(e).valid()}),t===n.val()},remote:function(i,o,t){var r,e,s;return this.optional(o)?"dependency-mismatch":(s=this.previousValue(o),this.settings.messages[o.name]||(this.settings.messages[o.name]={}),s.originalMessage=this.settings.messages[o.name].remote,this.settings.messages[o.name].remote=s.message,t="string"==typeof t?{url:t}:t,s.old===i?s.valid:(s.old=i,(r=this).startRequest(o),(e={})[o.name]=i,l.ajax(l.extend(!0,{url:t,mode:"abort",port:"validate"+o.name,dataType:"json",data:e,context:r.currentForm,success:function(t){var e,n=!0===t||"true"===t;r.settings.messages[o.name].remote=s.originalMessage,n?(e=r.formSubmitted,r.prepareElement(o),r.formSubmitted=e,r.successList.push(o),delete r.invalid[o.name],r.showErrors()):(e={},t=t||r.defaultMessage(o,"remote"),e[o.name]=s.message=l.isFunction(t)?t(i):t,r.invalid[o.name]=!0,r.showErrors(e)),s.valid=n,r.stopRequest(o,n)}},t)),"pending"))}}}),l.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."}}(jQuery),function(i){var o,r={};i.ajaxPrefilter?i.ajaxPrefilter(function(t,e,n){var i=t.port;"abort"===t.mode&&(r[i]&&r[i].abort(),r[i]=n)}):(o=i.ajax,i.ajax=function(t){var e=("mode"in t?t:i.ajaxSettings).mode,n=("port"in t?t:i.ajaxSettings).port;return"abort"===e?(r[n]&&r[n].abort(),r[n]=o.apply(this,arguments),r[n]):o.apply(this,arguments)})}(jQuery),function(o){o.extend(o.fn,{validateDelegate:function(n,t,i){return this.bind(t,function(t){var e=o(t.target);return e.is(n)?i.apply(e,arguments):void 0})}})}(jQuery),function(a){a.validator.addMethod("mc_birthday",function(t,e,n){var n=a("input:not(:hidden)",a(e).closest(n));return!(0!=n.filter(":filled").length||!this.optional(e))||((e=new Array).month=n.filter("input[name*='[month]']").val(),e.day=n.filter("input[name*='[day]']").val(),e.month=e.month-1,(n=new Date(1970,e.month,e.day)).getDate()==e.day&&n.getMonth()==e.month)},"Please enter a valid month and day."),a.validator.addMethod("mc_date",function(t,e,n){var n=a("input:not(:hidden)",a(e).closest(n));return!(0!=n.filter(":filled").length||!this.optional(e))||((e=new Array).month=n.filter("input[name*='[month]']").val(),e.day=n.filter("input[name*='[day]']").val(),e.year=n.filter("input[name*='[year]']").val(),e.month=e.month-1,e.year.length<4&&(e.year=parseInt(e.year)<50?2e3+parseInt(e.year):1900+parseInt(e.year)),(n=new Date(e.year,e.month,e.day)).getDate()==e.day&&n.getMonth()==e.month&&n.getFullYear()==e.year)},"Please enter a valid date"),a.validator.addMethod("mc_phone",function(t,e,n){n=a("input:filled:not(:hidden)",a(e).closest(n));return!(0!=n.length||!this.optional(e))||10==(t=n.eq(0).val()+n.eq(1).val()+n.eq(2).val()).length&&t.match(/[0-9]{9}/)},"Please specify a valid phone number"),a.validator.addMethod("skip_or_complete_group",function(t,e,n){var n=a("input:not(:hidden)",a(e).closest(n)),i=n.eq(0),o=i.data("valid_skip")?i.data("valid_skip"):a.extend({},this),r=n.filter(function(){return o.elementValue(this)}).length,r=0===r||r===n.length;return i.data("valid_skip",o),a(e).data("being_validated")||(n.data("being_validated",!0),n.each(function(){o.element(this)}),n.data("being_validated",!1)),r},a.validator.format("Please supply missing fields.")),a.validator.addMethod("skip_or_fill_minimum",function(t,e,n){var i=a(n[1],e.form),o=i.eq(0),r=o.data("valid_skip")?o.data("valid_skip"):a.extend({},this),s=i.filter(function(){return r.elementValue(this)}).length,s=0===s||s>=n[0];return console.log(i.eq(0)),o.data("valid_skip",r),a(e).data("being_validated")||(i.data("being_validated",!0),i.each(function(){r.element(this)}),i.data("being_validated",!1)),s},a.validator.format("Please either skip these fields or fill at least {0} of them.")),a.validator.addMethod("zipcodeUS",function(t,e){return this.optional(e)||/^\d{5}-\d{4}$|^\d{5}$/.test(t)},"The specified US ZIP Code is invalid")}(jQuery),function(a){var e="";try{e=mc_custom_error_style}catch(t){e="#mc_embed_signup input.mce_inline_error { border-color:#6B0505; } #mc_embed_signup div.mce_inline_error { margin: 0 0 1em 0; padding: 5px 10px; background-color:#6B0505; font-weight: bold; z-index: 1; color:#fff; }"}var t=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),window.mc={openPopup:function(){a("#mc_embed_signup a.mc_embed_close").show(),setTimeout(function(){a("#mc_embed_signup").fadeIn()},mc.delayPopup)},closePopup:function(){a("#mc_embed_signup").hide();var t=new Date,t=new Date(t.getTime()+31536e6);document.cookie="MCEvilPopupClosed=yes;expires="+t.toGMTString()+";path=/"},evalPopup:function(){for(a("#mc_embed_signup").hide(),cks=document.cookie.split(";"),i=0;i<cks.length;i++)-1!=(parts=cks[i].split("="))[0].indexOf("MCEvilPopupClosed")&&(mc.showPopup=!1);mc.showPopup&&mc.openPopup()},getAjaxSubmitUrl:function(){var t=a("form#mc-embedded-subscribe-form").attr("action");return void 0!==t?(t=t.replace("/post?u=","/post-json?u="),t+="&c=?"):t="",t},getGroups:function(){var i={};return a(".mc-field-group").each(function(t){var e,n=a(this).find("input:text:not(:hidden)");1<n.length&&(e=n.first().attr("name"),n=a.map(n,function(t){return t.name}),i[e.substring(0,e.indexOf("["))]=n.join(" "))}),i},isMultiPartField:function(t){return 1<a("input:not(:hidden)",a(t).closest(".mc-field-group")).length},isTooEarly:function(t){var e=a("input:not(:hidden)",a(t).closest(".mc-field-group"));return a(e).eq(-1).attr("id")!=a(t).attr("id")},mce_success_cb:function(e){if(a("#mce-success-response").hide(),a("#mce-error-response").hide(),"success"==e.result)a("#mce-"+e.result+"-response").show(),a("#mce-"+e.result+"-response").html(e.msg),a("#mc-embedded-subscribe-form").each(function(){this.reset()});else{var t,n,o=-1;try{var r=e.msg.split(" - ",2),s=null==r[1]?e.msg:(i=parseInt(r[0])).toString()==r[0]?(o=r[0],r[1]):(o=-1,e.msg)}catch(t){o=-1,s=e.msg}try{-1==o?(a("#mce-"+e.result+"-response").show(),a("#mce-"+e.result+"-response").html(s)):(t=a("input[name*='"+fnames[o]+"']").attr("name"),(n={})[t]=s,mc.mce_validator.showErrors(n))}catch(t){a("#mce-"+e.result+"-response").show(),a("#mce-"+e.result+"-response").html(s)}}}},window.mc.mce_validator=a("#mc-embedded-subscribe-form").validate({errorClass:"mce_inline_error",errorElement:"div",onkeyup:!1,onfocusout:function(t){mc.isTooEarly(t)||a(t).valid()},onblur:function(t){mc.isTooEarly(t)||a(t).valid()},groups:mc.getGroups(),errorPlacement:function(t,e){e.closest(".mc-field-group").append(t)},submitHandler:function(t){a(t).ajaxSubmit(mc.ajaxOptions)}}),window.mc.ajaxOptions={url:mc.getAjaxSubmitUrl(),type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",success:mc.mce_success_cb},a.validator.addClassRules("birthday",{digits:!0,mc_birthday:".datefield"}),a.validator.addClassRules("datepart",{digits:!0,mc_date:".datefield"}),a.validator.addClassRules("phonepart",{digits:!0,mc_phone:".phonefield"}),a("#mc_embed_signup a.mc_embed_close").click(function(){mc.closePopup()}),a(document).keydown(function(t){27==(keycode=null==t?event.keyCode:t.which)&&void 0!==mc.showPopup&&mc.closePopup()})}(jQuery),jQuery,window.fnames=new Array,window.ftypes=new Array,fnames[0]="EMAIL",ftypes[0]="email";