/*! Vendors v3.0.7 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)}(this,(function(e,t){"use strict";function n(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),t.fn.emulateTransitionEnd=l,t.event.special[c.TRANSITION_END]={bindType:s,delegateType:s,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var d=t.fn.alert,u={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",p="fade",f="show",m=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=c.getSelectorFromElement(e),i=!1;return n&&(i=document.querySelector(n)),i||(i=t(e).closest("."+h)[0]),i},n._triggerCloseEvent=function(e){var n=t.Event(u.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(f),t(e).hasClass(p)){var i=c.getTransitionDurationFromElement(e);t(e).one(c.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(i)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(u.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(u.CLICK_DATA_API,'[data-dismiss="alert"]',m._handleDismiss(new m)),t.fn.alert=m._jQueryInterface,t.fn.alert.Constructor=m,t.fn.alert.noConflict=function(){return t.fn.alert=d,m._jQueryInterface};var g=t.fn.button,v="active",y="btn",b="focus",w='[data-toggle^="button"]',_='[data-toggle="buttons"]',S='[data-toggle="button"]',O='[data-toggle="buttons"] .btn',x='input:not([type="hidden"])',k=".active",E=".btn",C={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},T=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,i=t(this._element).closest(_)[0];if(i){var o=this._element.querySelector(x);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(v))e=!1;else{var r=i.querySelector(k);r&&t(r).removeClass(v)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(v)&&(e=!1):e=!1;e&&(o.checked=!this._element.classList.contains(v),t(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(v)),e&&t(this._element).toggleClass(v))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(C.CLICK_DATA_API,w,(function(e){var n=e.target;if(t(n).hasClass(y)||(n=t(n).closest(E)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var i=n.querySelector(x);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void e.preventDefault();T._jQueryInterface.call(t(n),"toggle")}})).on(C.FOCUS_BLUR_DATA_API,w,(function(e){var n=t(e.target).closest(E)[0];t(n).toggleClass(b,/^focus(in)?$/.test(e.type))})),t(window).on(C.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(O)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(M)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(L)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(U.NEXT_PREV)&&(c.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(U.ACTIVE_ITEM);var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(H.SLID,(function(){return n.to(e)}));else{if(i===e)return this.pause(),void this.cycle();var o=e>i?M:L;this._slide(o,this._items[e])}},n.dispose=function(){t(this._element).off(j),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=a({},A,{},e),c.typeCheckConfig(D,e,W),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(H.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&t(this._element).on(H.MOUSEENTER,(function(t){return e.pause(t)})).on(H.MOUSELEAVE,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&G[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){e._pointerEvent&&G[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};t(this._element.querySelectorAll(U.ITEM_IMG)).on(H.DRAG_START,(function(e){return e.preventDefault()})),this._pointerEvent?(t(this._element).on(H.POINTERDOWN,(function(e){return n(e)})),t(this._element).on(H.POINTERUP,(function(e){return i(e)})),this._element.classList.add(B)):(t(this._element).on(H.TOUCHSTART,(function(e){return n(e)})),t(this._element).on(H.TOUCHMOVE,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),t(this._element).on(H.TOUCHEND,(function(e){return i(e)})))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(U.ITEM)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===M,i=e===L,o=this._getItemIndex(t),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return t;var a=(o+(e===L?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(U.ACTIVE_ITEM)),r=t.Event(H.SLIDE,{relatedTarget:e,direction:n,from:o,to:i});return t(this._element).trigger(r),r},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(U.ACTIVE));t(n).removeClass($);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass($)}},n._slide=function(e,n){var i,o,r,a=this,s=this._element.querySelector(U.ACTIVE_ITEM),l=this._getItemIndex(s),d=n||s&&this._getItemByDirection(e,s),u=this._getItemIndex(d),h=Boolean(this._interval);if(e===M?(i=F,o=z,r=N):(i=V,o=Q,r=P),d&&t(d).hasClass($))this._isSliding=!1;else if(!this._triggerSlideEvent(d,r).isDefaultPrevented()&&s&&d){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(d);var p=t.Event(H.SLID,{relatedTarget:d,direction:r,from:l,to:u});if(t(this._element).hasClass(Y)){t(d).addClass(o),c.reflow(d),t(s).addClass(i),t(d).addClass(i);var f=parseInt(d.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var m=c.getTransitionDurationFromElement(s);t(s).one(c.TRANSITION_END,(function(){t(d).removeClass(i+" "+o).addClass($),t(s).removeClass($+" "+o+" "+i),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(p)}),0)})).emulateTransitionEnd(m)}else t(s).removeClass($),t(d).addClass($),this._isSliding=!1,t(this._element).trigger(p);h&&this.cycle()}},e._jQueryInterface=function(n){return this.each((function(){var i=t(this).data("bs.carousel"),o=a({},A,{},t(this).data());"object"==typeof n&&(o=a({},o,{},n));var r="string"==typeof n?n:o.slide;if(i||(i=new e(this,o),t(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof r){if(void 0===i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},e._dataApiClickHandler=function(n){var i=c.getSelectorFromElement(this);if(i){var o=t(i)[0];if(o&&t(o).hasClass(R)){var r=a({},t(o).data(),{},t(this).data()),s=this.getAttribute("data-slide-to");s&&(r.interval=!1),e._jQueryInterface.call(t(o),r),s&&t(o).data("bs.carousel").to(s),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return A}}]),e}();t(document).on(H.CLICK_DATA_API,U.DATA_SLIDE,q._dataApiClickHandler),t(window).on(H.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(U.DATA_RIDE)),n=0,i=e.length;n0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(te)?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(te)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(se.ACTIVES)).filter((function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ne)}))).length&&(n=null),!(n&&(i=t(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var r=t.Event(ee.SHOW);if(t(this._element).trigger(r),!r.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),i||t(n).data("bs.collapse",null));var a=this._getDimension();t(this._element).removeClass(ne).addClass(ie),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(oe).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),l=c.getTransitionDurationFromElement(this._element);t(this._element).one(c.TRANSITION_END,(function(){t(o._element).removeClass(ie).addClass(ne).addClass(te),o._element.style[a]="",o.setTransitioning(!1),t(o._element).trigger(ee.SHOWN)})).emulateTransitionEnd(l),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(te)){var n=t.Event(ee.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),t(this._element).addClass(ie).removeClass(ne).removeClass(te);var o=this._triggerArray.length;if(o>0)for(var r=0;r=0)return 1;return 0}();var ue=ce&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),de))}};function he(e){return e&&"[object Function]"==={}.toString.call(e)}function pe(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function fe(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function me(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=pe(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:me(fe(e))}function ge(e){return e&&e.referenceNode?e.referenceNode:e}var ve=ce&&!(!window.MSInputMethodContext||!document.documentMode),ye=ce&&/MSIE 10/.test(navigator.userAgent);function be(e){return 11===e?ve:10===e?ye:ve||ye}function we(e){if(!e)return document.documentElement;for(var t=be(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===pe(n,"position")?we(n):n:e?e.ownerDocument.documentElement:document.documentElement}function _e(e){return null!==e.parentNode?_e(e.parentNode):e}function Se(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&we(a.firstElementChild)!==a?we(l):l;var c=_e(e);return c.host?Se(c.host,t):Se(e,_e(t).host)}function Oe(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function xe(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function ke(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],be(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function Ee(e){var t=e.body,n=e.documentElement,i=be(10)&&getComputedStyle(n);return{height:ke("Height",t,n,i),width:ke("Width",t,n,i)}}var Ce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Te=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=be(10),o="HTML"===t.nodeName,r=Ae(e),a=Ae(t),s=me(e),l=pe(t),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=Ie({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(u.marginTop=0,u.marginLeft=0,!i&&o){var h=parseFloat(l.marginTop,10),p=parseFloat(l.marginLeft,10);u.top-=c-h,u.bottom-=c-h,u.left-=d-p,u.right-=d-p,u.marginTop=h,u.marginLeft=p}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Oe(t,"top"),o=Oe(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}(u,t)),u}function Me(e){if(!e||!e.parentElement||be())return document.documentElement;for(var t=e.parentElement;t&&"none"===pe(t,"transform");)t=t.parentElement;return t||document.documentElement}function Le(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?Me(e):Se(e,ge(t));if("viewport"===i)r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=We(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Oe(n),s=t?0:Oe(n,"left");return Ie({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r})}(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=me(fe(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=We(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===pe(t,"position"))return!0;var i=fe(t);return!!i&&e(i)}(a))r=l;else{var c=Ee(e.ownerDocument),d=c.height,u=c.width;r.top+=l.top-l.marginTop,r.bottom=d+l.top,r.left+=l.left-l.marginLeft,r.right=u+l.left}}var h="number"==typeof(n=n||0);return r.left+=h?n:n.left||0,r.top+=h?n:n.top||0,r.right-=h?n:n.right||0,r.bottom-=h?n:n.bottom||0,r}function Ne(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Le(n,i,r,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return je({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,u=e.split("-")[1];return d+(u?"-"+u:"")}function Pe(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return We(n,i?Me(t):Se(t,ge(n)),i)}function He(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function Re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function $e(e,t,n){n=n.split("-")[0];var i=He(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=t[a]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[c]:t[Re(s)],o}function Ye(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ve(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=Ye(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&he(n)&&(t.offsets.popper=Ie(t.offsets.popper),t.offsets.reference=Ie(t.offsets.reference),t=n(t,e))})),t}function Fe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Pe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Ne(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$e(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ve(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ze(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Qe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=nt.indexOf(e),i=nt.slice(n+1).concat(nt.slice(0,n));return t?i.reverse():i}var ot={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function rt(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Ye(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,i){var o=(1===i?!r:r)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return Ie(s)[t]/100*r}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,i){Ke(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))}))})),o}var at={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:De({},l,r[l]),end:De({},l,r[l]+r[c]-a[c])};e.offsets.popper=je({},a,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=Ke(+n)?[+n,0]:rt(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||we(e.instance.popper);e.instance.reference===n&&(n=we(n));var i=Qe("transform"),o=e.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=Le(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=a,o[i]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,u={primary:function(e){var n=d[e];return d[e]l[e]&&!t.escapeWithReference&&(i=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),De({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=je({},d,u[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]r(i[s])&&(e.offsets.popper[l]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!et(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",f=He(i)[c];s[p]-fa[p]&&(e.offsets.popper[u]+=s[u]+f-a[p]),e.offsets.popper=Ie(e.offsets.popper);var m=s[u]+s[c]/2-f/2,g=pe(e.instance.popper),v=parseFloat(g["margin"+d],10),y=parseFloat(g["border"+d+"Width"],10),b=m-e.offsets.popper[u]-v-y;return b=Math.max(Math.min(a[c]-f,b),0),e.arrowElement=i,e.offsets.arrow=(De(n={},u,Math.round(b)),De(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ze(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Le(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=Re(i),r=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ot.FLIP:a=[i,o];break;case ot.CLOCKWISE:a=it(i);break;case ot.COUNTERCLOCKWISE:a=it(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],o=Re(i);var c=e.offsets.popper,d=e.offsets.reference,u=Math.floor,h="left"===i&&u(c.right)>u(d.left)||"right"===i&&u(c.left)u(d.top)||"bottom"===i&&u(c.top)u(n.right),m=u(c.top)u(n.bottom),v="left"===i&&p||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&m||!y&&"end"===r&&g),w=!!t.flipVariationsByContent&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&g||!y&&"end"===r&&m),_=b||w;(h||v||_)&&(e.flipped=!0,(h||v)&&(i=a[l+1]),_&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=je({},e.offsets.popper,$e(e.instance.popper,e.offsets.reference,e.placement)),e=Ve(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=Re(t),e.offsets.popper=Ie(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!et(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ye(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Ce(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ue(this.update.bind(this)),this.options=je({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(je({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){i.options.modifiers[t]=je({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return je({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&he(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Te(e,[{key:"update",value:function(){return Fe.call(this)}},{key:"destroy",value:function(){return Be.call(this)}},{key:"enableEventListeners",value:function(){return qe.call(this)}},{key:"disableEventListeners",value:function(){return Xe.call(this)}}]),e}();st.Utils=("undefined"!=typeof window?window:global).PopperUtils,st.placements=tt,st.Defaults=at;var lt="dropdown",ct=t.fn[lt],dt=new RegExp("38|40|27"),ut={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},ht="disabled",pt="show",ft="dropup",mt="dropright",gt="dropleft",vt="dropdown-menu-right",yt="position-static",bt='[data-toggle="dropdown"]',wt=".dropdown form",_t=".dropdown-menu",St=".navbar-nav",Ot=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",xt="top-start",kt="top-end",Et="bottom-start",Ct="bottom-end",Tt="right-start",Dt="left-start",jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},It={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},At=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(ht)){var n=t(this._menu).hasClass(pt);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(ht)||t(this._menu).hasClass(pt))){var i={relatedTarget:this._element},o=t.Event(ut.SHOW,i),r=e._getParentFromElement(this._element);if(t(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===st)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var a=this._element;"parent"===this._config.reference?a=r:c.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(r).addClass(yt),this._popper=new st(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(r).closest(St).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(pt),t(r).toggleClass(pt).trigger(t.Event(ut.SHOWN,i))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(ht)&&t(this._menu).hasClass(pt)){var n={relatedTarget:this._element},i=t.Event(ut.HIDE,n),o=e._getParentFromElement(this._element);t(o).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(pt),t(o).toggleClass(pt).trigger(t.Event(ut.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(ut.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},n._getConfig=function(e){return e=a({},this.constructor.Default,{},t(this._element).data(),{},e),c.typeCheckConfig(lt,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(_t))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n=Et;return e.hasClass(ft)?(n=xt,t(this._menu).hasClass(vt)&&(n=kt)):e.hasClass(mt)?n=Tt:e.hasClass(gt)?n=Dt:t(this._menu).hasClass(vt)&&(n=Ct),n},n._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=a({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),a({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each((function(){var i=t(this).data("bs.dropdown");if(i||(i=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll(bt)),o=0,r=i.length;o0&&a--,40===n.which&&adocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Ut,popperConfig:null},rn="show",an="out",sn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ln="fade",cn="show",dn=".tooltip-inner",un=".arrow",hn="hover",pn="focus",fn="click",mn="manual",gn=function(){function e(e,t){if(void 0===st)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(cn))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var i=c.findShadowRoot(this.element),o=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var r=this.getTipElement(),a=c.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&t(r).addClass(ln);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var d=this._getContainer();t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new st(this.element,r,this._getPopperConfig(l)),t(r).addClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===an&&e._leave(null,e)};if(t(this.tip).hasClass(ln)){var h=c.getTransitionDurationFromElement(this.tip);t(this.tip).one(c.TRANSITION_END,u).emulateTransitionEnd(h)}else u()}},n.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),r=function(){n._hoverState!==rn&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(i).removeClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[fn]=!1,this._activeTrigger[pn]=!1,this._activeTrigger[hn]=!1,t(this.tip).hasClass(ln)){var a=c.getTransitionDurationFromElement(i);t(i).one(c.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(dn)),this.getTitle()),t(e).removeClass(ln+" "+cn)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Xt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},n._getPopperConfig=function(e){var t=this;return a({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:un},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=a({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:c.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return nn[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==mn){var i=n===hn?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===hn?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,(function(t){return e._enter(t)})).on(o,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?pn:hn]=!0),t(n.getTipElement()).hasClass(cn)||n._hoverState===rn?n._hoverState=rn:(clearTimeout(n._timeout),n._hoverState=rn,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===rn&&n.show()}),n.config.delay.show):n.show())},n._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?pn:hn]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=an,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===an&&n.hide()}),n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(e){-1!==en.indexOf(e)&&delete n[e]})),"number"==typeof(e=a({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),c.typeCheckConfig(Kt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Xt(e.template,e.whiteList,e.sanitizeFn)),e},n._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Jt);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(ln),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each((function(){var i=t(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new e(this,o),t(this).data("bs.tooltip",i)),"string"==typeof n)){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return on}},{key:"NAME",get:function(){return Kt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return sn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return tn}}]),e}();t.fn.tooltip=gn._jQueryInterface,t.fn.tooltip.Constructor=gn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=Zt,gn._jQueryInterface};var vn="popover",yn=t.fn.popover,bn=new RegExp("(^|\\s)bs-popover\\S+","g"),wn=a({},gn.Default,{placement:"right",trigger:"click",content:"",template:''}),_n=a({},gn.DefaultType,{content:"(string|element|function)"}),Sn="fade",On="show",xn=".popover-header",kn=".popover-body",En={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Cn=function(e){var n,o;function r(){return e.apply(this,arguments)||this}o=e,(n=r).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var a=r.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(xn),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(kn),n),e.removeClass(Sn+" "+On)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(bn);null!==n&&n.length>0&&e.removeClass(n.join(""))},r._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.popover"),i="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new r(this,i),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},i(r,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return wn}},{key:"NAME",get:function(){return vn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return En}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return _n}}]),r}(gn);t.fn.popover=Cn._jQueryInterface,t.fn.popover.Constructor=Cn,t.fn.popover.noConflict=function(){return t.fn.popover=yn,Cn._jQueryInterface};var Tn="scrollspy",Dn=t.fn[Tn],jn={offset:10,method:"auto",target:""},In={offset:"number",method:"string",target:"(string|element)"},An={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Wn="dropdown-item",Mn="active",Ln={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Nn="offset",Pn="position",Hn=function(){function e(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Ln.NAV_LINKS+","+this._config.target+" "+Ln.LIST_ITEMS+","+this._config.target+" "+Ln.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(An.SCROLL,(function(e){return i._process(e)})),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?Nn:Pn,i="auto"===this._config.method?n:this._config.method,o=i===Pn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,r=c.getSelectorFromElement(e);if(r&&(n=document.querySelector(r)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[i]().top+o,r]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=a({},jn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=c.getUID(Tn),t(e.target).attr("id",n)),e.target="#"+n}return c.typeCheckConfig(Tn,e,In),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e-1||navigator.userAgent.indexOf("Trident/")>-1||navigator.userAgent.indexOf("Edge/")>-1,f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),m=function(){for(var e="transform WebkitTransform MozTransform".split(" "),t=document.createElement("div"),n=0;n1?r=Math.abs(o-h):n<0?r=o/n+Math.abs(o):r+=(h-t)*(1-n),o/=2),this.parallaxScrollDistance=o,a=i?(h-r)/2:(t-r)/2,this.css(this.image.$item,{height:"".concat(r,"px"),marginTop:"".concat(a,"px"),left:"fixed"===this.image.position?"".concat(e.left,"px"):"0",width:"".concat(e.width,"px")}),this.options.onCoverImage&&this.options.onCoverImage.call(this),{image:{height:r,marginTop:a},container:e}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t=this.$item.getBoundingClientRect(),n=t.top,i=t.height,o={},r=t;if(this.options.elementInViewport&&(r=this.options.elementInViewport.getBoundingClientRect()),this.isElementInViewport=r.bottom>=0&&r.right>=0&&r.top<=h&&r.left<=s.window.innerWidth,e||this.isElementInViewport){var a=Math.max(0,n),l=Math.max(0,i+n),c=Math.max(0,-n),d=Math.max(0,n+i-h),u=Math.max(0,i-(n+i-h)),p=Math.max(0,-n+h-i),f=1-2*(h-n)/(h+i),m=1;if(i0&&void 0!==arguments[0]&&arguments[0],t=this;t.player&&e&&("youtube"===t.type&&t.player.setVolume&&t.player.setVolume(e),"vimeo"===t.type&&t.player.setVolume&&t.player.setVolume(e),"local"===t.type&&(t.$video.volume=e/100))}},{key:"getVolume",value:function(e){this.player?("youtube"===this.type&&this.player.getVolume&&e(this.player.getVolume()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then((function(t){e(t)})),"local"===this.type&&e(100*this.$video.volume)):e(!1)}},{key:"getMuted",value:function(e){this.player?("youtube"===this.type&&this.player.isMuted&&e(this.player.isMuted()),"vimeo"===this.type&&this.player.getVolume&&this.player.getVolume().then((function(t){e(!!t)})),"local"===this.type&&e(this.$video.muted)):e(null)}},{key:"getImageURL",value:function(e){var t=this;if(t.videoImage)e(t.videoImage);else{if("youtube"===t.type){var n=["maxresdefault","sddefault","hqdefault","0"],i=0,o=new Image;o.onload=function(){120!==(this.naturalWidth||this.width)||i===n.length-1?(t.videoImage="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg"),e(t.videoImage)):(i++,this.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg"))},o.src="https://img.youtube.com/vi/".concat(t.videoID,"/").concat(n[i],".jpg")}if("vimeo"===t.type){var r=new XMLHttpRequest;r.open("GET","https://vimeo.com/api/v2/video/".concat(t.videoID,".json"),!0),r.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var n=JSON.parse(this.responseText);t.videoImage=n[0].thumbnail_large,e(t.videoImage)}},r.send(),r=null}}}},{key:"getIframe",value:function(e){this.getVideo(e)}},{key:"getVideo",value:function(e){var t=this;t.$video?e(t.$video):t.onAPIready((function(){var n,i;if(t.$video||((n=document.createElement("div")).style.display="none"),"youtube"===t.type){var o,r;t.playerOptions={},t.playerOptions.videoId=t.videoID,t.playerOptions.playerVars={autohide:1,rel:0,autoplay:0,playsinline:1},t.options.showContols||(t.playerOptions.playerVars.iv_load_policy=3,t.playerOptions.playerVars.modestbranding=1,t.playerOptions.playerVars.controls=0,t.playerOptions.playerVars.showinfo=0,t.playerOptions.playerVars.disablekb=1),t.playerOptions.events={onReady:function(e){t.options.mute?e.target.mute():t.options.volume&&e.target.setVolume(t.options.volume),t.options.autoplay&&t.play(t.options.startTime),t.fire("ready",e),t.options.loop&&!t.options.endTime&&(t.options.endTime=t.player.getDuration()-.1),setInterval((function(){t.getVolume((function(n){t.options.volume!==n&&(t.options.volume=n,t.fire("volumechange",e))}))}),150)},onStateChange:function(e){t.options.loop&&e.data===YT.PlayerState.ENDED&&t.play(t.options.startTime),o||e.data!==YT.PlayerState.PLAYING||(o=1,t.fire("started",e)),e.data===YT.PlayerState.PLAYING&&t.fire("play",e),e.data===YT.PlayerState.PAUSED&&t.fire("pause",e),e.data===YT.PlayerState.ENDED&&t.fire("ended",e),e.data===YT.PlayerState.PLAYING?r=setInterval((function(){t.fire("timeupdate",e),t.options.endTime&&t.player.getCurrentTime()>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())}),150):clearInterval(r)}};var a=!t.$video;if(a){var s=document.createElement("div");s.setAttribute("id",t.playerID),n.appendChild(s),document.body.appendChild(n)}t.player=t.player||new window.YT.Player(t.playerID,t.playerOptions),a&&(t.$video=document.getElementById(t.playerID),t.videoWidth=parseInt(t.$video.getAttribute("width"),10)||1280,t.videoHeight=parseInt(t.$video.getAttribute("height"),10)||720)}if("vimeo"===t.type){if(t.playerOptions={id:t.videoID,autopause:0,transparent:0,autoplay:t.options.autoplay?1:0,loop:t.options.loop?1:0,muted:t.options.mute?1:0},t.options.volume&&(t.playerOptions.volume=t.options.volume),t.options.showContols||(t.playerOptions.badge=0,t.playerOptions.byline=0,t.playerOptions.portrait=0,t.playerOptions.title=0),!t.$video){var l="";Object.keys(t.playerOptions).forEach((function(e){""!==l&&(l+="&"),l+="".concat(e,"=").concat(encodeURIComponent(t.playerOptions[e]))})),t.$video=document.createElement("iframe"),t.$video.setAttribute("id",t.playerID),t.$video.setAttribute("src","https://player.vimeo.com/video/".concat(t.videoID,"?").concat(l)),t.$video.setAttribute("frameborder","0"),t.$video.setAttribute("mozallowfullscreen",""),t.$video.setAttribute("allowfullscreen",""),n.appendChild(t.$video),document.body.appendChild(n)}var c;t.player=t.player||new Vimeo.Player(t.$video,t.playerOptions),t.options.startTime&&t.options.autoplay&&t.player.setCurrentTime(t.options.startTime),t.player.getVideoWidth().then((function(e){t.videoWidth=e||1280})),t.player.getVideoHeight().then((function(e){t.videoHeight=e||720})),t.player.on("timeupdate",(function(e){c||(t.fire("started",e),c=1),t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&e.seconds>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.on("play",(function(e){t.fire("play",e),t.options.startTime&&0===e.seconds&&t.play(t.options.startTime)})),t.player.on("pause",(function(e){t.fire("pause",e)})),t.player.on("ended",(function(e){t.fire("ended",e)})),t.player.on("loaded",(function(e){t.fire("ready",e)})),t.player.on("volumechange",(function(e){t.fire("volumechange",e)}))}"local"===t.type&&(t.$video||(t.$video=document.createElement("video"),t.options.showContols&&(t.$video.controls=!0),t.options.mute?t.$video.muted=!0:t.$video.volume&&(t.$video.volume=t.options.volume/100),t.options.loop&&(t.$video.loop=!0),t.$video.setAttribute("playsinline",""),t.$video.setAttribute("webkit-playsinline",""),t.$video.setAttribute("id",t.playerID),n.appendChild(t.$video),document.body.appendChild(n),Object.keys(t.videoID).forEach((function(e){var n,i,o,r;n=t.$video,i=t.videoID[e],o="video/".concat(e),(r=document.createElement("source")).src=i,r.type=o,n.appendChild(r)}))),t.player=t.player||t.$video,t.player.addEventListener("playing",(function(e){i||t.fire("started",e),i=1})),t.player.addEventListener("timeupdate",(function(e){t.fire("timeupdate",e),t.options.endTime&&t.options.endTime&&this.currentTime>=t.options.endTime&&(t.options.loop?t.play(t.options.startTime):t.pause())})),t.player.addEventListener("play",(function(e){t.fire("play",e)})),t.player.addEventListener("pause",(function(e){t.fire("pause",e)})),t.player.addEventListener("ended",(function(e){t.fire("ended",e)})),t.player.addEventListener("loadedmetadata",(function(){t.videoWidth=this.videoWidth||1280,t.videoHeight=this.videoHeight||720,t.fire("ready"),t.options.autoplay&&t.play(t.options.startTime)})),t.player.addEventListener("volumechange",(function(e){t.getVolume((function(e){t.options.volume=e})),t.fire("volumechange",e)}))),e(t.$video)}))}},{key:"init",value:function(){this.playerID="VideoWorker-".concat(this.ID)}},{key:"loadAPI",value:function(){if(!s||!l){var e="";if("youtube"!==this.type||s||(s=1,e="https://www.youtube.com/iframe_api"),"vimeo"!==this.type||l||(l=1,e="https://player.vimeo.com/api/player.js"),e){var t=document.createElement("script"),n=document.getElementsByTagName("head")[0];t.src=e,n.appendChild(t),n=null,t=null}}}},{key:"onAPIready",value:function(e){if("youtube"===this.type&&("undefined"!=typeof YT&&0!==YT.loaded||c?"object"===("undefined"==typeof YT?"undefined":i(YT))&&1===YT.loaded?e():u.done((function(){e()})):(c=1,window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady=null,u.resolve("done"),e()})),"vimeo"===this.type)if("undefined"!=typeof Vimeo||d)"undefined"!=typeof Vimeo?e():h.done((function(){e()}));else{d=1;var t=setInterval((function(){"undefined"!=typeof Vimeo&&(clearInterval(t),h.resolve("done"),e())}),20)}"local"===this.type&&e()}}])&&o(t.prototype,n),r&&o(t,r),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var i=n(8),o=n.n(i),r=n(4),a=n.n(r);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.jarallax;if(void 0!==e){var t=e.constructor,n=t.prototype.onScroll;t.prototype.onScroll=function(){var e=this;n.apply(e),!e.isVideoInserted&&e.video&&(!e.options.videoLazyLoading||e.isElementInViewport)&&!e.options.disableVideo()&&(e.isVideoInserted=!0,e.video.getVideo((function(t){var n=t.parentNode;e.css(t,{position:e.image.position,top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",margin:0,zIndex:-1}),e.$video=t,e.image.$container.appendChild(t),n.parentNode.removeChild(n)})))};var i=t.prototype.coverImage;t.prototype.coverImage=function(){var e=i.apply(this),t=!!this.image.$item&&this.image.$item.nodeName;if(e&&this.video&&t&&("IFRAME"===t||"VIDEO"===t)){var n=e.image.height,o=n*this.image.width/this.image.height,r=(e.container.width-o)/2,a=e.image.marginTop;e.container.width>o&&(n=(o=e.container.width)*this.image.height/this.image.width,r=0,a+=(e.image.height-n)/2),"IFRAME"===t&&(n+=400,a-=200),this.css(this.$video,{width:"".concat(o,"px"),marginLeft:"".concat(r,"px"),height:"".concat(n,"px"),marginTop:"".concat(a,"px")})}return e};var r=t.prototype.initImg;t.prototype.initImg=function(){var e=r.apply(this);return this.options.videoSrc||(this.options.videoSrc=this.$item.getAttribute("data-jarallax-video")||null),this.options.videoSrc?(this.defaultInitImgResult=e,!0):e};var s=t.prototype.canInitParallax;t.prototype.canInitParallax=function(){var e=this,t=s.apply(e);if(!e.options.videoSrc)return t;var n=new o.a(e.options.videoSrc,{autoplay:!0,loop:e.options.videoLoop,showContols:!1,startTime:e.options.videoStartTime||0,endTime:e.options.videoEndTime||0,mute:e.options.videoVolume?0:1,volume:e.options.videoVolume||0});if(n.isValid())if(t){if(n.on("ready",(function(){if(e.options.videoPlayOnlyVisible){var t=e.onScroll;e.onScroll=function(){t.apply(e),(e.options.videoLoop||!e.options.videoLoop&&!e.videoEnded)&&(e.isVisible()?n.play():n.pause())}}else n.play()})),n.on("started",(function(){e.image.$default_item=e.image.$item,e.image.$item=e.$video,e.image.width=e.video.videoWidth||1280,e.image.height=e.video.videoHeight||720,e.coverImage(),e.clipContainer(),e.onScroll(),e.image.$default_item&&(e.image.$default_item.style.display="none")})),n.on("ended",(function(){e.videoEnded=!0,e.options.videoLoop||e.image.$default_item&&(e.image.$item=e.image.$default_item,e.image.$item.style.display="block",e.coverImage(),e.clipContainer(),e.onScroll())})),e.video=n,!e.defaultInitImgResult)return e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","local"===n.type||(n.getImageURL((function(t){e.image.bgImage='url("'.concat(t,'")'),e.init()})),!1)}else e.defaultInitImgResult||n.getImageURL((function(t){var n=e.$item.getAttribute("style");n&&e.$item.setAttribute("data-jarallax-original-styles",n),e.css(e.$item,{"background-image":'url("'.concat(t,'")'),"background-position":"center","background-size":"cover"})}));return t};var l=t.prototype.destroy;t.prototype.destroy=function(){this.image.$default_item&&(this.image.$item=this.image.$default_item,delete this.image.$default_item),l.apply(this)}}}}]),function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i),r=n(3);Object(r.default)(),o()((function(){"undefined"!=typeof jarallax&&jarallax(document.querySelectorAll("[data-jarallax-element]"))}))},function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",(function(){"interactive"===document.readyState&&e.call()})):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return r}));var i=n(4),o=n.n(i);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.jarallax;if(void 0!==e){var t=e.constructor;["initImg","canInitParallax","init","destroy","clipContainer","coverImage","isVisible","onScroll","onResize"].forEach((function(e){var n=t.prototype[e];t.prototype[e]=function(){var t=this,i=arguments||[];if("initImg"===e&&null!==t.$item.getAttribute("data-jarallax-element")&&(t.options.type="element",t.pureOptions.speed=t.$item.getAttribute("data-jarallax-element")||t.pureOptions.speed),"element"!==t.options.type)return n.apply(t,i);switch(t.pureOptions.threshold=t.$item.getAttribute("data-threshold")||"",e){case"init":var o=t.pureOptions.speed.split(" ");t.options.speed=t.pureOptions.speed||0,t.options.speedY=o[0]?parseFloat(o[0]):0,t.options.speedX=o[1]?parseFloat(o[1]):0;var r=t.pureOptions.threshold.split(" ");t.options.thresholdY=r[0]?parseFloat(r[0]):null,t.options.thresholdX=r[1]?parseFloat(r[1]):null,n.apply(t,i);var a=t.$item.getAttribute("data-jarallax-original-styles");return a&&t.$item.setAttribute("style",a),!0;case"onResize":var s=t.css(t.$item,"transform");t.css(t.$item,{transform:""});var l=t.$item.getBoundingClientRect();t.itemData={width:l.width,height:l.height,y:l.top+t.getWindowData().y,x:l.left},t.css(t.$item,{transform:s});break;case"onScroll":var c=t.getWindowData(),d=(c.y+c.height/2-t.itemData.y-t.itemData.height/2)/(c.height/2),u=d*t.options.speedY,h=d*t.options.speedX,p=u,f=h;null!==t.options.thresholdY&&u>t.options.thresholdY&&(p=0),null!==t.options.thresholdX&&h>t.options.thresholdX&&(f=0),t.css(t.$item,{transform:"translate3d(".concat(f,"px,").concat(p,"px,0)")});break;case"initImg":case"isVisible":case"clipContainer":case"coverImage":return!0}return n.apply(t,i)}}))}}},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(5))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i}]),function(){var e,t;e=this.jQuery||window.jQuery,t=e(window),e.fn.stick_in_parent=function(n){var i,o,r,a,s,l,c,d,u,h,p,f,m;for(null==n&&(n={}),h=n.sticky_class,a=n.inner_scrolling,u=n.recalc_every,d=n.parent,l=n.offset_top,s=n.spacer,r=n.bottoming,null==l&&(l=0),null==d&&(d=void 0),null==a&&(a=!0),null==h&&(h="is_stuck"),i=e(document),null==r&&(r=!0),c=function(e){var t,n;return window.getComputedStyle?(e[0],t=window.getComputedStyle(e[0]),n=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(n+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),n):e.outerWidth(!0)},p=function(n,o,p,f,m,g,v,y){var b,w,_,S,O,x,k,E,C,T,D,j;if(!n.data("sticky_kit")){if(n.data("sticky_kit",!0),O=i.height(),k=n.parent(),null!=d&&(k=k.closest(d)),!k.length)throw"failed to find stick parent";if(_=!1,b=!1,(D=null!=s?s&&n.closest(s):e("
"))&&D.css("position",n.css("position")),(E=function(){var e,t,r;if(!y)return O=i.height(),e=parseInt(k.css("border-top-width"),10),t=parseInt(k.css("padding-top"),10),o=parseInt(k.css("padding-bottom"),10),p=k.offset().top+e+t,f=k.height(),_&&(_=!1,b=!1,null==s&&(n.insertAfter(D),D.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(h),r=!0),m=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-l,g=n.outerHeight(!0),v=n.css("float"),D&&D.css({width:c(n),height:g,display:n.css("display"),"vertical-align":n.css("vertical-align"),float:v}),r?j():void 0})(),g!==f)return S=void 0,x=l,T=u,j=function(){var e,c,d,w,C,j;if(!y)return d=!1,null!=T&&(T-=1)<=0&&(T=u,E(),d=!0),d||i.height()===O||(E(),d=!0),w=t.scrollTop(),null!=S&&(c=w-S),S=w,_?(r&&(C=w+g+x>f+p,b&&!C&&(b=!1,n.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),wj&&(b||(x-=c,x=Math.max(j-g,x),x=Math.min(l,x),_&&n.css({top:x+"px"}))))):w>m&&(_=!0,(e={position:"fixed",top:x}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(h),null==s&&(n.after(D),"left"!==v&&"right"!==v||D.append(n)),n.trigger("sticky_kit:stick")),_&&r&&(null==C&&(C=w+g+x>f+p),!b&&C)?(b=!0,"static"===k.css("position")&&k.css({position:"relative"}),n.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")):void 0},C=function(){return E(),j()},w=function(){if(y=!0,t.off("touchmove",j),t.off("scroll",j),t.off("resize",C),e(document.body).off("sticky_kit:recalc",C),n.off("sticky_kit:detach",w),n.removeData("sticky_kit"),n.css({position:"",bottom:"",top:"",width:""}),k.position("position",""),_)return null==s&&("left"!==v&&"right"!==v||n.insertAfter(D),D.remove()),n.removeClass(h)},t.on("touchmove",j),t.on("scroll",j),t.on("resize",C),e(document.body).on("sticky_kit:recalc",C),n.on("sticky_kit:detach",w),setTimeout(j,0)}},f=0,m=this.length;f=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function v(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function y(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&g(e,t):g(e,t))||i&&e===n)return e;if(e===n)break}while(e=v(e))}return null}var b,w=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(w," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(w," ")}}function S(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function O(e,t){var n="";if("string"==typeof e)n=e;else do{var i=S(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function x(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o=r:o<=r))return i;if(i===k())break;i=A(i,!1)}return!1}function T(e,t,n){for(var i=0,o=0,r=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=o(n,["evt"]);F.pluginEvent.bind(Pe)(e,t,i({dragEl:U,parentEl:G,ghostEl:q,rootEl:X,nextEl:K,lastDownEl:Z,cloneEl:J,cloneHidden:ee,dragStarted:pe,putSortable:ae,activeSortable:Pe.active,originalEvent:r,oldIndex:te,oldDraggableIndex:ie,newIndex:ne,newDraggableIndex:oe,hideGhostForTarget:We,unhideGhostForTarget:Me,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){B({sortable:t,name:e,originalEvent:r})}},a))};function B(e){z(i({putSortable:ae,cloneEl:J,targetEl:U,rootEl:X,oldIndex:te,oldDraggableIndex:ie,newIndex:ne,newDraggableIndex:oe},e))}var U,G,q,X,K,Z,J,ee,te,ne,ie,oe,re,ae,se,le,ce,de,ue,he,pe,fe,me,ge,ve,ye=!1,be=!1,we=[],_e=!1,Se=!1,Oe=[],xe=!1,ke=[],Ee="undefined"!=typeof document,Ce=u,Te=l||s?"cssFloat":"float",De=Ee&&!h&&!u&&"draggable"in document.createElement("div"),je=function(){if(Ee){if(s)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ie=function(e,t){var n=S(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=T(e,0,t),r=T(e,1,t),a=o&&S(o),s=r&&S(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==d?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[Te]||r&&"none"===n[Te]&&l+c>i)?"vertical":"horizontal"},Ae=function(t){function n(e,t){return function(i,o,r,a){var s=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==e&&(t||s))return!0;if(null==e||!1===e)return!1;if(t&&"clone"===e)return e;if("function"==typeof e)return n(e(i,o,r,a),t)(i,o,r,a);var l=(t?i:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},o=t.group;o&&"object"==e(o)||(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},We=function(){!je&&q&&S(q,"display","none")},Me=function(){!je&&q&&S(q,"display","")};Ee&&document.addEventListener("click",(function(e){if(be)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),be=!1,!1}),!0);var Le=function(e){if(U){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,r=e.clientY,we.some((function(e){if(!D(e)){var t=E(e),n=e[R].options.emptyInsertThreshold,i=o>=t.left-n&&o<=t.right+n,s=r>=t.top-n&&r<=t.bottom+n;return n&&i&&s?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[R]._onDragOver(n)}}var o,r,a},Ne=function(e){U&&U.parentNode[R]._isOutsideThisEl(e.target)};function Pe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=n({},t),e[R]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ie(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Pe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in F.initializePlugins(this,e,i),i)!(o in t)&&(t[o]=i[o]);for(var r in Ae(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&De,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?f(e,"pointerdown",this._onTapStart):(f(e,"mousedown",this._onTapStart),f(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(f(e,"dragover",this),f(e,"dragenter",this)),we.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),n(this,$())}function He(e,t,n,i,o,r,a,c){var d,u,h=e[R],p=h.options.onMove;return!window.CustomEvent||s||l?(d=document.createEvent("Event")).initEvent("move",!0,!0):d=new CustomEvent("move",{bubbles:!0,cancelable:!0}),d.to=t,d.from=e,d.dragged=n,d.draggedRect=i,d.related=o||t,d.relatedRect=r||E(t),d.willInsertAfter=c,d.originalEvent=a,e.dispatchEvent(d),p&&(u=p.call(h,d,a)),u}function Re(e){e.draggable=!1}function $e(){xe=!1}function Ye(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Ve(e){return setTimeout(e,0)}function Fe(e){return clearTimeout(e)}Pe.prototype={constructor:Pe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,U):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,o=i.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){ke.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&ke.push(i)}}(n),!U&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||i.disabled||l.isContentEditable||(s=y(s,i.draggable,n,!1))&&s.animated||Z===s)){if(te=j(s),ie=j(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return B({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Q("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=y(l,i.trim(),n,!1))return B({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),Q("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());i.handle&&!y(l,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,a=o.options,d=r.ownerDocument;if(n&&!U&&n.parentNode===r){var u=E(n);if(X=r,G=(U=n).parentNode,K=U.nextSibling,Z=n,re=a.group,Pe.dragged=U,se={target:U,clientX:(t||e).clientX,clientY:(t||e).clientY},ue=se.clientX-u.left,he=se.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,U.style["will-change"]="all",i=function(){Q("delayEnded",o,{evt:e}),Pe.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!c&&o.nativeDraggable&&(U.draggable=!0),o._triggerDragStart(e,t),B({sortable:o,name:"choose",originalEvent:e}),_(U,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){x(U,e.trim(),Re)})),f(d,"dragover",Le),f(d,"mousemove",Le),f(d,"touchmove",Le),f(d,"mouseup",o._onDrop),f(d,"touchend",o._onDrop),f(d,"touchcancel",o._onDrop),c&&this.nativeDraggable&&(this.options.touchStartThreshold=4,U.draggable=!0),Q("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(l||s))i();else{if(Pe.eventCanceled)return void this._onDrop();f(d,"mouseup",o._disableDelayedDrag),f(d,"touchend",o._disableDelayedDrag),f(d,"touchcancel",o._disableDelayedDrag),f(d,"mousemove",o._delayedDragTouchMoveHandler),f(d,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&f(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){U&&Re(U),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._disableDelayedDrag),m(e,"touchend",this._disableDelayedDrag),m(e,"touchcancel",this._disableDelayedDrag),m(e,"mousemove",this._delayedDragTouchMoveHandler),m(e,"touchmove",this._delayedDragTouchMoveHandler),m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?f(document,"pointermove",this._onTouchMove):f(document,t?"touchmove":"mousemove",this._onTouchMove):(f(U,"dragend",this),f(X,"dragstart",this._onDragStart));try{document.selection?Ve((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ye=!1,X&&U){Q("dragStarted",this,{evt:t}),this.nativeDraggable&&f(document,"dragover",Ne);var n=this.options;!e&&_(U,n.dragClass,!1),_(U,n.ghostClass,!0),Pe.active=this,e&&this._appendGhost(),B({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(le){this._lastX=le.clientX,this._lastY=le.clientY,We();for(var e=document.elementFromPoint(le.clientX,le.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(le.clientX,le.clientY))!==t;)t=e;if(U.parentNode[R]._isOutsideThisEl(e),t)do{if(t[R]){if(t[R]._onDragOver({clientX:le.clientX,clientY:le.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Me()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=q&&O(q,!0),a=q&&r&&r.a,s=q&&r&&r.d,l=Ce&&ve&&I(ve),c=(o.clientX-se.clientX+i.x)/(a||1)+(l?l[0]-Oe[0]:0)/(a||1),d=(o.clientY-se.clientY+i.y)/(s||1)+(l?l[1]-Oe[1]:0)/(s||1);if(!Pe.active&&!ye){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,r,this)&&!g.animated){if(g===U)return $(!1);if(g&&a===e.target&&(s=g),s&&(n=E(s)),!1!==He(X,a,U,t,s,n,e,!!s))return H(),a.appendChild(U),G=a,Y(),$(!0)}else if(s.parentNode===a){n=E(s);var v,b,w,O=U.parentNode!==a,x=!function(e,t,n){var i=n?e.left:e.top,o=n?e.right:e.bottom,r=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===a||o===s||i+r/2===a+l/2}(U.animated&&U.toRect||t,s.animated&&s.toRect||n,r),k=r?"top":"left",T=C(s,"top","top")||C(U,"top","top"),I=T?T.scrollTop:void 0;if(fe!==s&&(b=n[k],_e=!1,Se=!x&&l.invertSwap||O),0!==(v=function(e,t,n,i,o,r,a,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,d=i?n.top:n.left,u=i?n.bottom:n.right,h=!1;if(!a)if(s&&ged+c*r/2:lu-ge)return-me}else if(l>d+c*(1-o)/2&&lu-c*r/2))return l>d+c/2?1:-1;return 0}(e,s,n,r,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Se,fe===s))){var A=j(U);do{A-=v,w=G.children[A]}while(w&&("none"===S(w,"display")||w===q))}if(0===v||w===s)return $(!1);fe=s,me=v;var W=s.nextElementSibling,M=!1,N=He(X,a,U,t,s,n,e,M=1===v);if(!1!==N)return 1!==N&&-1!==N||(M=1===N),xe=!0,setTimeout($e,30),H(),M&&!W?a.appendChild(U):s.parentNode.insertBefore(U,M?W:s),T&&L(T,0,I-T.scrollTop),G=U.parentNode,void 0===b||Se||(ge=Math.abs(b-E(s)[k])),Y(),$(!0)}if(a.contains(U))return $(!1)}return!1}function P(l,c){Q(l,f,i({evt:e,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:h,fromSortable:p,target:s,completed:$,onMove:function(n,i){return He(X,a,U,t,n,E(n),e,i)},changed:Y},c))}function H(){P("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function $(t){return P("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(f),f!==p&&(_(U,ae?ae.options.ghostClass:d.options.ghostClass,!1),_(U,l.ghostClass,!0)),ae!==f&&f!==Pe.active?ae=f:f===Pe.active&&ae&&(ae=null),p===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){P("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===U&&!U.animated||s===a&&!s.animated)&&(fe=null),l.dragoverBubble||e.rootEl||s===document||(U.parentNode[R]._isOutsideThisEl(e.target),!t&&Le(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function Y(){ne=j(U),oe=j(U,l.draggable),B({sortable:f,name:"change",toEl:a,newIndex:ne,newDraggableIndex:oe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",Le),m(document,"mousemove",Le),m(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._onDrop),m(e,"touchend",this._onDrop),m(e,"pointerup",this._onDrop),m(e,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=j(U),oe=j(U,n.draggable),Q("drop",this,{evt:e}),G=U&&U.parentNode,ne=j(U),oe=j(U,n.draggable),Pe.eventCanceled?this._nulling():(ye=!1,Se=!1,_e=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fe(this.cloneId),Fe(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),d&&S(document.body,"user-select",""),S(U,"transform",""),e&&(pe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),q&&q.parentNode&&q.parentNode.removeChild(q),(X===G||ae&&"clone"!==ae.lastPutMode)&&J&&J.parentNode&&J.parentNode.removeChild(J),U&&(this.nativeDraggable&&m(U,"dragend",this),Re(U),U.style["will-change"]="",pe&&!ye&&_(U,ae?ae.options.ghostClass:this.options.ghostClass,!1),_(U,this.options.chosenClass,!1),B({sortable:this,name:"unchoose",toEl:G,newIndex:null,newDraggableIndex:null,originalEvent:e}),X!==G?(ne>=0&&(B({rootEl:G,name:"add",toEl:G,fromEl:X,originalEvent:e}),B({sortable:this,name:"remove",toEl:G,originalEvent:e}),B({rootEl:G,name:"sort",toEl:G,fromEl:X,originalEvent:e}),B({sortable:this,name:"sort",toEl:G,originalEvent:e})),ae&&ae.save()):ne!==te&&ne>=0&&(B({sortable:this,name:"update",toEl:G,originalEvent:e}),B({sortable:this,name:"sort",toEl:G,originalEvent:e})),Pe.active&&(null!=ne&&-1!==ne||(ne=te,oe=ie),B({sortable:this,name:"end",toEl:G,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){Q("nulling",this),X=U=G=q=K=J=Z=ee=se=le=pe=ne=oe=te=ie=fe=me=ae=re=Pe.dragged=Pe.ghost=Pe.clone=Pe.active=null,ke.forEach((function(e){e.checked=!0})),ke.length=ce=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":U&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i1&&(dt.forEach((function(e){i.addAnimationState({target:e,rect:pt?E(e):o}),H(e),e.fromRect=o,t.removeAnimationState(e)})),pt=!1,function(e,t){dt.forEach((function(n,i){var o=t.children[n.sortableIndex+(e?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,o=e.activeSortable,r=e.parentEl,a=e.putSortable,s=this.options;if(i){if(n&&o._hideClone(),ht=!1,s.animation&&dt.length>1&&(pt||!n&&!o.options.sort&&!a)){var l=E(st,!1,!0,!0);dt.forEach((function(e){e!==st&&(P(e,l),r.appendChild(e))})),pt=!0}if(!n)if(pt||gt(),dt.length>1){var c=ct;o._showClone(t),o.options.animation&&!ct&&c&&ut.forEach((function(e){o.addAnimationState({target:e,rect:lt}),e.fromRect=lt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,i=e.isOwner,o=e.activeSortable;if(dt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!i&&o.multiDrag.isMultiDrag){lt=n({},t);var r=O(st,!0);lt.top-=r.f,lt.left-=r.e}},dragOverAnimationComplete:function(){pt&&(pt=!1,gt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,r=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,d=i.children;if(!ft)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_(st,c.selectedClass,!~dt.indexOf(st)),~dt.indexOf(st))dt.splice(dt.indexOf(st),1),rt=null,z({sortable:o,rootEl:n,name:"deselect",targetEl:st,originalEvt:t});else{if(dt.push(st),z({sortable:o,rootEl:n,name:"select",targetEl:st,originalEvt:t}),t.shiftKey&&rt&&o.el.contains(rt)){var u,h,p=j(rt),f=j(st);if(~p&&~f&&p!==f)for(f>p?(h=p,u=f):(h=f,u=p+1);h1){var m=E(st),g=j(st,":not(."+this.options.selectedClass+")");if(!ht&&c.animation&&(st.thisAnimationDuration=null),l.captureAnimationState(),!ht&&(c.animation&&(st.fromRect=m,dt.forEach((function(e){if(e.thisAnimationDuration=null,e!==st){var t=pt?E(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),gt(),dt.forEach((function(e){d[g]?i.insertBefore(e,d[g]):i.appendChild(e),g++})),a===j(st))){var v=!1;dt.forEach((function(e){e.sortableIndex===j(e)||(v=!0)})),v&&r("update")}dt.forEach((function(e){H(e)})),l.animateAll()}at=l}(n===i||s&&"clone"!==s.lastPutMode)&&ut.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ft=!1,ut.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ft&&ft||at!==this.sortable||e&&y(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;dt.length;){var t=dt[0];_(t,this.options.selectedClass,!1),dt.shift(),z({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},n(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[R];t&&t.options.multiDrag&&!~dt.indexOf(e)&&(at&&at!==t&&(at.multiDrag._deselectMultiDrag(),at=t),_(e,t.options.selectedClass,!0),dt.push(e))},deselect:function(e){var t=e.parentNode[R],n=dt.indexOf(e);t&&t.options.multiDrag&&~n&&(_(e,t.options.selectedClass,!1),dt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return dt.forEach((function(i){var o;t.push({multiDragElement:i,index:i.sortableIndex}),o=pt&&i!==st?-1:pt?j(i,":not(."+e.options.selectedClass+")"):j(i),n.push({multiDragElement:i,index:o})})),{items:r(dt),clones:[].concat(ut),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}),Pe})),function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e)})):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,(function(e){!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i={"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(t,i){var a=t.nodeName.toLowerCase();if(-1!==e.inArray(a,i))return-1===e.inArray(a,n)||Boolean(t.nodeValue.match(o)||t.nodeValue.match(r));for(var s=e(i).filter((function(e,t){return t instanceof RegExp})),l=0,c=s.length;l1?arguments[1]:void 0,a=r?Number(r):0;a!=a&&(a=0);var s=Math.min(Math.max(a,0),n);if(o+s>n)return!1;for(var l=-1;++l]+>/g,"")),i&&(l=E(l)),l=l.toUpperCase(),r="contains"===n?l.indexOf(t)>=0:l.startsWith(t)))break}return r}function _(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?(b?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):n.fireEvent?((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)):this.trigger(e)};var S={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},O=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function k(e){return S[e]}function E(e){return(e=e.toString())&&e.replace(O,k).replace(x,"")}var C,T,D,j,I,A=(C={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=function(e){return C[e]},D="(?:"+Object.keys(C).join("|")+")",j=RegExp(D),I=RegExp(D,"g"),function(e){return e=null==e?"":""+e,j.test(e)?e.replace(I,T):e}),W={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},M=27,L=13,N=32,P=9,H=38,R=40,$={success:!1,major:"3"};try{$.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),$.major=$.full[0],$.success=!0}catch(e){}var Y=0,V=".bs.select",F={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},z={MENU:"."+F.MENU},Q={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};Q.a.setAttribute("role","option"),Q.subtext.className="text-muted",Q.text=Q.span.cloneNode(!1),Q.text.className="text",Q.checkMark=Q.span.cloneNode(!1);var B=new RegExp(H+"|"+R),U=new RegExp("^"+P+"$|"+M),G={li:function(e,t,n){var i=Q.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?i.appendChild(e):i.innerHTML=e),void 0!==t&&""!==t&&(i.className=t),null!=n&&i.classList.add("optgroup-"+n),i},a:function(e,t,n){var i=Q.a.cloneNode(!0);return e&&(11===e.nodeType?i.appendChild(e):i.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&(i.className=t),"4"===$.major&&i.classList.add("dropdown-item"),n&&i.setAttribute("style",n),i},text:function(e,t){var n,i,o=Q.text.cloneNode(!1);if(e.content)o.innerHTML=e.content;else{if(o.textContent=e.text,e.icon){var r=Q.whitespace.cloneNode(!1);(i=(!0===t?Q.i:Q.span).cloneNode(!1)).className=e.iconBase+" "+e.icon,Q.fragment.appendChild(i),Q.fragment.appendChild(r)}e.subtext&&((n=Q.subtext.cloneNode(!1)).textContent=e.subtext,o.appendChild(n))}if(!0===t)for(;o.childNodes.length>0;)Q.fragment.appendChild(o.childNodes[0]);else Q.fragment.appendChild(o);return Q.fragment},label:function(e){var t,n,i=Q.text.cloneNode(!1);if(i.innerHTML=e.label,e.icon){var o=Q.whitespace.cloneNode(!1);(n=Q.span.cloneNode(!1)).className=e.iconBase+" "+e.icon,Q.fragment.appendChild(n),Q.fragment.appendChild(o)}return e.subtext&&((t=Q.subtext.cloneNode(!1)).textContent=e.subtext,i.appendChild(t)),Q.fragment.appendChild(i),Q.fragment}},q=function(t,n){var i=this;v.useDefault||(e.valHooks.select.set=v._set,v.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=n,this.selectpicker={main:{},search:{},current:{},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){i.selectpicker.keydown.keyHistory=""}),800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var o=this.options.windowPadding;"number"==typeof o&&(this.options.windowPadding=[o,o,o,o]),this.val=q.prototype.val,this.render=q.prototype.render,this.refresh=q.prototype.refresh,this.setStyle=q.prototype.setStyle,this.selectAll=q.prototype.selectAll,this.deselectAll=q.prototype.deselectAll,this.destroy=q.prototype.destroy,this.remove=q.prototype.remove,this.show=q.prototype.show,this.hide=q.prototype.hide,this.init()};function X(n){var i,o=arguments,r=n;if([].shift.apply(o),!$.success){try{$.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(e){q.BootstrapVersion?$.full=q.BootstrapVersion.split(" ")[0].split("."):($.full=[$.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",e))}$.major=$.full[0],$.success=!0}if("4"===$.major){var a=[];q.DEFAULTS.style===F.BUTTONCLASS&&a.push({name:"style",className:"BUTTONCLASS"}),q.DEFAULTS.iconBase===F.ICONBASE&&a.push({name:"iconBase",className:"ICONBASE"}),q.DEFAULTS.tickIcon===F.TICKICON&&a.push({name:"tickIcon",className:"TICKICON"}),F.DIVIDER="dropdown-divider",F.SHOW="show",F.BUTTONCLASS="btn-light",F.POPOVERHEADER="popover-header",F.ICONBASE="",F.TICKICON="bs-ok-default";for(var s=0;s'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:i},q.prototype={constructor:q,init:function(){var e=this,t=this.$element.attr("id");Y++,this.selectId="bs-select-"+Y,this.$element[0].classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(z.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element[0].classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(F.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",(function(){if(e.isVirtual()){var t=e.$menuInner[0],n=t.firstChild.cloneNode(!1);t.replaceChild(n,t.firstChild),t.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid.bs.select",(function(){e.$button[0].classList.add("bs-invalid"),e.$element.on("shown.bs.select.invalid",(function(){e.$element.val(e.$element.val()).off("shown.bs.select.invalid")})).on("rendered.bs.select",(function(){this.validity.valid&&e.$button[0].classList.remove("bs-invalid"),e.$element.off("rendered.bs.select")})),e.$button.on("blur.bs.select",(function(){e.$element.trigger("focus").trigger("blur"),e.$button.off("blur.bs.select")}))})),setTimeout((function(){e.createLi(),e.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",i="",o=this.autofocus?" autofocus":"";$.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var r,a="",s="",l="",c="";return this.options.header&&(a='
'+this.options.header+"
"),this.options.liveSearch&&(s=''),this.multiple&&this.options.actionsBox&&(l='
"),this.multiple&&this.options.doneButton&&(c='
"),r='",e(r)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0;for(var e=0;e=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,n,i){var o,r,a=this,l=0,c=[];if(this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(i)l=this.$menuInner[0].scrollTop;else if(!a.multiple){var d=a.$element[0],u=(d.options[d.selectedIndex]||{}).liIndex;if("number"==typeof u&&!1!==a.options.size){var h=a.selectpicker.main.data[u],p=h&&h.position;p&&(l=p-(a.sizeInfo.menuInnerHeight+a.sizeInfo.liHeight)/2)}}function f(e,n){var i,l,d,u,h,p,f,m,g,v,y=a.selectpicker.current.elements.length,b=[],w=!0,_=a.isVirtual();a.selectpicker.view.scrollTop=e,i=Math.ceil(a.sizeInfo.menuInnerHeight/a.sizeInfo.liHeight*1.5),l=Math.round(y/i)||1;for(var S=0;Sy-1?0:a.selectpicker.current.data[y-1].position-a.selectpicker.current.data[a.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=x+"px",E.firstChild.style.marginBottom=k+"px"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(C),!0===_&&a.sizeInfo.hasScrollBar){var L=E.firstChild.offsetWidth;if(n&&La.sizeInfo.selectWidth)E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px";else if(L>a.sizeInfo.menuInnerInnerWidth){a.$menu[0].style.minWidth=0;var N=E.firstChild.offsetWidth;N>a.sizeInfo.menuInnerInnerWidth&&(a.sizeInfo.menuInnerInnerWidth=N,E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px"),a.$menu[0].style.minWidth=""}}}if(a.prevActiveIndex=a.activeIndex,a.options.liveSearch){if(t&&n){var P,H=0;a.selectpicker.view.canHighlight[H]||(H=1+a.selectpicker.view.canHighlight.slice(1).indexOf(!0)),P=a.selectpicker.view.visibleElements[H],a.defocusItem(a.selectpicker.view.currentActive),a.activeIndex=(a.selectpicker.current.data[H]||{}).index,a.focusItem(P)}}else a.$menuInner.trigger("focus")}f(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(e,t){a.noScroll||f(this.scrollTop,t),a.noScroll=!1})),e(window).off("resize.bs.select."+this.selectId+".createView").on("resize.bs.select."+this.selectId+".createView",(function(){a.$newElement.hasClass(F.SHOW)&&f(a.$menuInner[0].scrollTop)}))},focusItem:function(e,t,n){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var i=e.firstChild;i&&(i.setAttribute("aria-setsize",this.selectpicker.view.size),i.setAttribute("aria-posinset",t.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",i.id),e.classList.add("active"),i.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var n=this.$element[0],i=!1,o=!this.selectpicker.view.titleOption.parentNode;if(o)this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=void 0===e(n.options[n.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected");(o||0!==this.selectpicker.view.titleOption.index)&&n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),i&&(n.selectedIndex=0)}return t},createLi:function(){var e=this,t=this.options.iconBase,n=':not([hidden]):not([data-hidden="true"])',i=[],o=[],r=0,a=0,s=this.setPlaceholder()?1:0;this.options.hideDisabled&&(n+=":not(:disabled)"),!e.options.showTick&&!e.multiple||Q.checkMark.parentNode||(Q.checkMark.className=t+" "+e.options.tickIcon+" check-mark",Q.a.appendChild(Q.checkMark));var l=this.$element[0].querySelectorAll("select > *"+n);function c(e){var t=o[o.length-1];t&&"divider"===t.type&&(t.optID||e.optID)||((e=e||{}).type="divider",i.push(G.li(!1,F.DIVIDER,e.optID?e.optID+"div":void 0)),o.push(e))}function d(n,a){if((a=a||{}).divider="true"===n.getAttribute("data-divider"),a.divider)c({optID:a.optID});else{var s=o.length,l=n.style.cssText,d=l?A(l):"",u=(n.className||"")+(a.optgroupClass||"");a.optID&&(u="opt "+u),a.text=n.textContent,a.content=n.getAttribute("data-content"),a.tokens=n.getAttribute("data-tokens"),a.subtext=n.getAttribute("data-subtext"),a.icon=n.getAttribute("data-icon"),a.iconBase=t;var h=G.text(a),p=G.li(G.a(h,u,d),"",a.optID);p.firstChild&&(p.firstChild.id=e.selectId+"-"+s),i.push(p),n.liIndex=s,a.display=a.content||a.text,a.type="option",a.index=s,a.option=n,a.disabled=a.disabled||n.disabled,o.push(a);var f=0;a.display&&(f+=a.display.length),a.subtext&&(f+=a.subtext.length),a.icon&&(f+=1),f>r&&(r=f,e.selectpicker.view.widestOption=i[i.length-1])}}function u(e,r){var s=r[e],l=r[e-1],u=r[e+1],h=s.querySelectorAll("option"+n);if(h.length){var p,f,m={label:A(s.label),subtext:s.getAttribute("data-subtext"),icon:s.getAttribute("data-icon"),iconBase:t},g=" "+(s.className||"");a++,l&&c({optID:a});var v=G.label(m);i.push(G.li(v,"dropdown-header"+g,a)),o.push({display:m.label,subtext:m.subtext,type:"optgroup-label",optID:a});for(var y=0,b=h.length;y li")},render:function(){this.setPlaceholder();var e,t,n=this.$element[0],i=m(n,this.options.hideDisabled),o=i.length,r=this.$button[0],a=r.querySelector(".filter-option-inner-inner"),l=document.createTextNode(this.options.multipleSeparator),c=Q.fragment.cloneNode(!1),d=!1;if(r.classList.toggle("bs-placeholder",this.multiple?!o:!g(n,i)),this.tabIndex(),"static"===this.options.selectedTextFormat)c=G.text({text:this.options.title},!0);else if((e=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&o>1)&&(e=(t=this.options.selectedTextFormat.split(">")).length>1&&o>t[1]||1===t.length&&o>=2),!1===e){for(var u=0;u0&&c.appendChild(l.cloneNode(!1)),h.title?p.text=h.title:f.content&&this.options.showContent?(p.content=f.content.toString(),d=!0):(this.options.showIcon&&(p.icon=f.icon,p.iconBase=this.options.iconBase),this.options.showSubtext&&!this.multiple&&f.subtext&&(p.subtext=" "+f.subtext),p.text=h.textContent.trim()),c.appendChild(G.text(p,!0))}o>49&&c.appendChild(document.createTextNode("..."))}else{var v=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(v+=":not(:disabled)");var y=this.$element[0].querySelectorAll("select > option"+v+", optgroup"+v+" option"+v).length,b="function"==typeof this.options.countSelectedText?this.options.countSelectedText(o,y):this.options.countSelectedText;c=G.text({text:b.replace("{0}",o.toString()).replace("{1}",y.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),c.childNodes.length||(c=G.text({text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),r.title=c.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&d&&s([c],this.options.whiteList,this.options.sanitizeFn),a.innerHTML="",a.appendChild(c),$.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var w=r.querySelector(".filter-expand"),_=a.cloneNode(!0);_.className="filter-expand",w?r.replaceChild(_,w):r.appendChild(_)}this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){var n,i=this.$button[0],o=this.$newElement[0],r=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),$.major<4&&(o.classList.add("bs3"),o.parentNode.classList.contains("input-group")&&(o.previousElementSibling||o.nextElementSibling)&&(o.previousElementSibling||o.nextElementSibling).classList.contains("input-group-addon")&&o.classList.add("bs3-has-addon")),n=e?e.trim():r,"add"==t?n&&i.classList.add.apply(i.classList,n.split(" ")):"remove"==t?n&&i.classList.remove.apply(i.classList,n.split(" ")):(r&&i.classList.remove.apply(i.classList,r.split(" ")),n&&i.classList.add.apply(i.classList,n.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var n=document.createElement("div"),i=document.createElement("div"),o=document.createElement("div"),r=document.createElement("ul"),a=document.createElement("li"),s=document.createElement("li"),l=document.createElement("li"),c=document.createElement("a"),d=document.createElement("span"),u=this.options.header&&this.$menu.find("."+F.POPOVERHEADER).length>0?this.$menu.find("."+F.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,d.className="text",c.className="dropdown-item "+(m?m.className:""),n.className=this.$menu[0].parentNode.className+" "+F.SHOW,n.style.width=0,"auto"===this.options.width&&(i.style.minWidth=0),i.className=F.MENU+" "+F.SHOW,o.className="inner "+F.SHOW,r.className=F.MENU+" inner "+("4"===$.major?F.SHOW:""),a.className=F.DIVIDER,s.className="dropdown-header",d.appendChild(document.createTextNode("​")),c.appendChild(d),l.appendChild(c),s.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&r.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),r.appendChild(l),r.appendChild(a),r.appendChild(s),u&&i.appendChild(u),h){var g=document.createElement("input");h.className="bs-searchbox",g.className="form-control",h.appendChild(g),i.appendChild(h)}p&&i.appendChild(p),o.appendChild(r),i.appendChild(o),f&&i.appendChild(f),n.appendChild(i),document.body.appendChild(n);var v,y=l.offsetHeight,b=s?s.offsetHeight:0,w=u?u.offsetHeight:0,S=h?h.offsetHeight:0,O=p?p.offsetHeight:0,x=f?f.offsetHeight:0,k=e(a).outerHeight(!0),E=!!window.getComputedStyle&&window.getComputedStyle(i),C=i.offsetWidth,T=E?null:e(i),D={vert:_(E?E.paddingTop:T.css("paddingTop"))+_(E?E.paddingBottom:T.css("paddingBottom"))+_(E?E.borderTopWidth:T.css("borderTopWidth"))+_(E?E.borderBottomWidth:T.css("borderBottomWidth")),horiz:_(E?E.paddingLeft:T.css("paddingLeft"))+_(E?E.paddingRight:T.css("paddingRight"))+_(E?E.borderLeftWidth:T.css("borderLeftWidth"))+_(E?E.borderRightWidth:T.css("borderRightWidth"))},j={vert:D.vert+_(E?E.marginTop:T.css("marginTop"))+_(E?E.marginBottom:T.css("marginBottom"))+2,horiz:D.horiz+_(E?E.marginLeft:T.css("marginLeft"))+_(E?E.marginRight:T.css("marginRight"))+2};o.style.overflowY="scroll",v=i.offsetWidth-C,document.body.removeChild(n),this.sizeInfo.liHeight=y,this.sizeInfo.dropdownHeaderHeight=b,this.sizeInfo.headerHeight=w,this.sizeInfo.searchHeight=S,this.sizeInfo.actionsHeight=O,this.sizeInfo.doneButtonHeight=x,this.sizeInfo.dividerHeight=k,this.sizeInfo.menuPadding=D,this.sizeInfo.menuExtras=j,this.sizeInfo.menuWidth=C,this.sizeInfo.menuInnerInnerWidth=C-D.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=v,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,n=e(window),i=this.$newElement.offset(),o=e(this.options.container);this.options.container&&o.length&&!o.is("body")?((t=o.offset()).top+=parseInt(o.css("borderTopWidth")),t.left+=parseInt(o.css("borderLeftWidth"))):t={top:0,left:0};var r=this.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-t.top-n.scrollTop(),this.sizeInfo.selectOffsetBot=n.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-r[2],this.sizeInfo.selectOffsetLeft=i.left-t.left-n.scrollLeft(),this.sizeInfo.selectOffsetRight=n.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-r[1],this.sizeInfo.selectOffsetTop-=r[0],this.sizeInfo.selectOffsetLeft-=r[3]},setMenuSize:function(e){this.getSelectPosition();var t,n,i,o,r,a,s,l=this.sizeInfo.selectWidth,c=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,u=this.sizeInfo.searchHeight,h=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,f=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(s=c*this.selectpicker.current.elements.length+m.vert,this.$newElement.toggleClass(F.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)o=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,i=o+d+u+h+p,a=Math.max(o-m.vert,0),this.$newElement.hasClass(F.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=n,t=n-d-u-h-p-m.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;vthis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(F.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.options.size&&i.off("resize.bs.select."+this.selectId+".setMenuSize scroll"+V+"."+this.selectId+".setMenuSize"),n.createView(!1,!0,t)}},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame((function(){e.$menu.css("min-width","0"),e.$element.on("loaded.bs.select",(function(){e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),n=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,n),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=e('
');var t,n,i,o=this,r=e(this.options.container),a=function(a){var s={},l=o.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;o.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(F.DROPUP,a.hasClass(F.DROPUP)),t=a.offset(),r.is("body")?n={top:0,left:0}:((n=r.offset()).top+=parseInt(r.css("borderTopWidth"))-r.scrollTop(),n.left+=parseInt(r.css("borderLeftWidth"))-r.scrollLeft()),i=a.hasClass(F.DROPUP)?0:a[0].offsetHeight,($.major<4||"static"===l)&&(s.top=t.top-n.top+i,s.left=t.left-n.left),s.width=a[0].offsetWidth,o.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){o.isDisabled()||(a(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass(F.SHOW,!o.$button.hasClass(F.SHOW)).append(o.$menu))})),e(window).off("resize.bs.select."+this.selectId+" scroll"+V+"."+this.selectId).on("resize.bs.select."+this.selectId+" scroll"+V+"."+this.selectId,(function(){o.$newElement.hasClass(F.SHOW)&&a(o.$newElement)})),this.$element.on("hide.bs.select",(function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()}))},setOptionStatus:function(e){if(this.noScroll=!1,this.selectpicker.view.visibleElements&&this.selectpicker.view.visibleElements.length)for(var t=0;t3&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){t.$newElement.hasClass(F.SHOW)||t.setSize()})),this.$element.on("shown.bs.select",(function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),$.major>3?requestAnimationFrame(o):i()})),this.$menuInner.on("mouseenter","li a",(function(e){var n=this.parentElement,i=t.isVirtual()?t.selectpicker.view.position0:0,o=Array.prototype.indexOf.call(n.parentElement.children,n),r=t.selectpicker.current.data[o+i];t.focusItem(n,r,!0)})),this.$menuInner.on("click","li a",(function(n,i){var o=e(this),r=t.$element[0],a=t.isVirtual()?t.selectpicker.view.position0:0,s=t.selectpicker.current.data[o.parent().index()+a],l=s.index,c=g(r),d=r.selectedIndex,u=r.options[d],h=!0;if(t.multiple&&1!==t.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!t.isDisabled()&&!o.parent().hasClass(F.DISABLED)){var p=s.option,f=e(p),v=p.selected,b=f.parent("optgroup"),w=b.find("option"),_=t.options.maxOptions,S=b.data("maxOptions")||!1;if(l===t.activeIndex&&(i=!0),i||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(p.selected=!v,t.setSelected(l,!v),o.trigger("blur"),!1!==_||!1!==S){var O=_
');T[2]&&(D=D.replace("{var}",T[2][_>1?0:1]),j=j.replace("{var}",T[2][S>1?0:1])),p.selected=!1,t.$menu.append(I),_&&O&&(I.append(e("
"+D+"
")),h=!1,t.$element.trigger("maxReached.bs.select")),S&&x&&(I.append(e("
"+j+"
")),h=!1,t.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){t.setSelected(l,!1)}),10),I[0].classList.add("fadeOut"),setTimeout((function(){I.remove()}),1050)}}}else u&&(u.selected=!1),p.selected=!0,t.setSelected(l,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.trigger("focus"):t.options.liveSearch&&t.$searchbox.trigger("focus"),h&&(t.multiple||d!==r.selectedIndex)&&(y=[p.index,f.prop("selected"),c],t.$element.triggerNative("change"))}})),this.$menu.on("click","li."+F.DISABLED+" a, ."+F.POPOVERHEADER+", ."+F.POPOVERHEADER+" :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch&&!e(n.target).hasClass("close")?t.$searchbox.trigger("focus"):t.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus")})),this.$menu.on("click","."+F.POPOVERHEADER+" .close",(function(){t.$button.trigger("click")})),this.$searchbox.on("click",(function(e){e.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()})),this.$element.on("change.bs.select",(function(){t.render(),t.$element.trigger("changed.bs.select",y),y=null})).on("focus.bs.select",(function(){t.options.mobile||t.$button.trigger("focus")}))},liveSearchListener:function(){var e=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",(function(){e.$searchbox.val()&&e.$searchbox.val("")})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(e){e.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var n=e.$searchbox.val();if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],n){var i=[],o=n.toUpperCase(),r={},a=[],s=e._searchStyle(),l=e.options.liveSearchNormalize;l&&(o=E(o)),e._$lisSelected=e.$menuInner.find(".selected");for(var c=0;c0&&(r[d.headerIndex-1]=!0,a.push(d.headerIndex-1)),r[d.headerIndex]=!0,a.push(d.headerIndex),r[d.lastIndex+1]=!0),r[c]&&"optgroup-label"!==d.type&&a.push(c)}c=0;for(var u=a.length;c=112&&t.which<=123))if(!(i=c.$newElement.hasClass(F.SHOW))&&(p||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105||t.which>=65&&t.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(t.which===M&&i&&(t.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),p){if(!d.length)return;-1!==(n=(o=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(o.parentElement.children,o):-1)&&c.defocusItem(o),t.which===H?(-1!==n&&n--,n+m<0&&(n+=d.length),c.selectpicker.view.canHighlight[n+m]||-1===(n=c.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=d.length-1)):(t.which===R||h)&&(++n+m>=c.selectpicker.view.canHighlight.length&&(n=0),c.selectpicker.view.canHighlight[n+m]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),t.preventDefault();var g=m+n;t.which===H?0===m&&n===d.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):u=(a=(r=c.selectpicker.current.data[g]).position-r.height)f),o=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(o),c.selectpicker.view.currentActive=o,u&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!U.test(t.which)||t.which===N&&c.selectpicker.keydown.keyHistory){var v,y,b=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=W[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var _=0;_0?(a=r.position-r.height,u=!0):(a=r.position-c.sizeInfo.menuInnerHeight,u=r.position>f+c.sizeInfo.menuInnerHeight),o=c.selectpicker.main.elements[v],c.activeIndex=b[O],c.focusItem(o),o&&o.firstChild.focus(),u&&(c.$menuInner[0].scrollTop=a),s.trigger("focus")}}i&&(t.which===N&&!c.selectpicker.keydown.keyHistory||t.which===L||t.which===P&&c.options.selectOnTab)&&(t.which!==N&&t.preventDefault(),c.options.liveSearch&&t.which===N||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))}},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.setStyle(),this.render(),this.createLi(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(V).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),e(window).off(".bs.select."+this.selectId)}};var K=e.fn.selectpicker;e.fn.selectpicker=X,e.fn.selectpicker.Constructor=q,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=K,this},e(document).off("keydown.bs.dropdown.data-api",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select .dropdown-menu').on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',q.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(e){e.stopPropagation()})),e(window).on("load.bs.select.data-api",(function(){e(".selectpicker").each((function(){var t=e(this);X.call(t,t.data())}))}))}(e)})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Typed=t():e.Typed=t()}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;ne.length););var l=e.substring(0,t),c=e.substring(l.length+1,t+o),d=e.substring(t+o+1);e=l+c+d,o--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),t>=e.length?n.doneTyping(e,t):n.keepTyping(e,t,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),i)}),i):this.setPauseStatus(e,t,!0)}},{key:"keepTyping",value:function(e,t,n){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),t+=n;var i=e.substr(0,t);this.replaceText(i),this.typewrite(e,t)}},{key:"doneTyping",value:function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(e,t)}),this.backDelay))}},{key:"backspace",value:function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var i=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){t=r.htmlParser.backSpaceHtmlChars(e,t,n);var i=e.substr(0,t);if(n.replaceText(i),n.smartBackspace){var o=n.strings[n.arrayPos+1];o&&i===o.substr(0,t)?n.stopNum=t:n.stopNum=0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],t))}),i)}else this.setPauseStatus(e,t,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t}},{key:"toggleBlinking",value:function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(e){return Math.round(Math.random()*e/2)+e}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e}},{key:"bindFocusEvents",value:function(){var e=this;this.isInput&&(this.el.addEventListener("focus",(function(t){e.stop()})),this.el.addEventListener("blur",(function(t){e.el.value&&0!==e.el.value.length||e.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t":";";e.substr(t+1).charAt(0)!==o&&!(++t+1>e.length););t++}return t}},{key:"backSpaceHtmlChars",value:function(e,t,n){if("html"!==n.contentType)return t;var i=e.substr(t).charAt(0);if(">"===i||";"===i){var o="";for(o=">"===i?"<":"&";e.substr(t-1).charAt(0)!==o&&!(--t<0););t--}return t}}]),e}();t.default=i;var o=new i;t.htmlParser=o}])})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(e&&(f=!0),f)return p=(0,u.default)(p,m),(0,d.default)(p,m.once),p},v=function(){p=(0,h.default)(),g()};e.exports={init:function(e){m=o(m,e),p=(0,h.default)();var t=document.all&&!window.atob;return function(e){return!0===e||"mobile"===e&&c.default.mobile()||"phone"===e&&c.default.phone()||"tablet"===e&&c.default.tablet()||"function"==typeof e&&!0===e()}(m.disable)||t?void p.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})):(m.disableMutationObserver||l.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),m.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,(function(){g(!0)})):document.addEventListener(m.startEvent,(function(){g(!0)})),window.addEventListener("resize",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)((function(){(0,d.default)(p,m.once)}),m.throttleDelay)),m.disableMutationObserver||l.default.ready("[data-aos]",v),p)},refresh:g,refreshHard:v}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=u,i=h;return u=h=void 0,v=t,f=e.apply(i,n)}function a(e){var n=e-g;return void 0===g||n>=t||n<0||S&&e-v>=p}function l(){var e=_();return a(e)?c(e):void(m=setTimeout(l,function(e){var n=t-(e-g);return S?w(n,p-(e-v)):n}(e)))}function c(e){return m=void 0,O&&u?o(e):(u=h=void 0,f)}function d(){var e=_(),n=a(e);if(u=arguments,h=this,g=e,n){if(void 0===m)return function(e){return v=e,m=setTimeout(l,t),y?o(e):f}(g);if(S)return m=setTimeout(l,t),o(g)}return void 0===m&&(m=setTimeout(l,t)),f}var u,h,p,f,m,g,v=0,y=!1,S=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);return t=r(t)||0,i(n)&&(y=!!n.leading,p=(S="maxWait"in n)?b(r(n.maxWait)||0,t):p,O="trailing"in n?!!n.trailing:O),d.cancel=function(){void 0!==m&&clearTimeout(m),v=0,u=g=h=m=void 0},d.flush=function(){return void 0===m?f:c(_())},d}function i(e){var t=void 0===e?"undefined":a(e);return!!e&&("object"==t||"function"==t)}function o(e){return"symbol"==(void 0===e?"undefined":a(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":a(e))}(e)&&y.call(e)==c}function r(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=h.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):u.test(e)?l:+e}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="Expected a function",l=NaN,c="[object Symbol]",d=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,m="object"==(void 0===t?"undefined":a(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=Object.prototype.toString,b=Math.max,w=Math.min,_=function(){return v.Date.now()};e.exports=function(e,t,o){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(s);return i(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){var t=void 0===e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}function i(e){return"symbol"==(void 0===e?"undefined":r(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":r(e))}(e)&&v.call(e)==l}function o(e){if("number"==typeof e)return e;if(i(e))return s;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var o=u.test(e);return o||h.test(e)?p(e.slice(2),o?2:8):d.test(e)?s:+e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="Expected a function",s=NaN,l="[object Symbol]",c=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=parseInt,f="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),v=Object.prototype.toString,y=Math.max,b=Math.min,w=function(){return g.Date.now()};e.exports=function(e,t,i){function r(t){var n=u,i=h;return u=h=void 0,v=t,f=e.apply(i,n)}function s(e){var n=e-g;return void 0===g||n>=t||n<0||S&&e-v>=p}function l(){var e=w();return s(e)?c(e):void(m=setTimeout(l,function(e){var n=t-(e-g);return S?b(n,p-(e-v)):n}(e)))}function c(e){return m=void 0,O&&u?r(e):(u=h=void 0,f)}function d(){var e=w(),n=s(e);if(u=arguments,h=this,g=e,n){if(void 0===m)return function(e){return v=e,m=setTimeout(l,t),_?r(e):f}(g);if(S)return m=setTimeout(l,t),r(g)}return void 0===m&&(m=setTimeout(l,t)),f}var u,h,p,f,m,g,v=0,_=!1,S=!1,O=!0;if("function"!=typeof e)throw new TypeError(a);return t=o(t)||0,n(i)&&(_=!!i.leading,p=(S="maxWait"in i)?y(o(i.maxWait)||0,t):p,O="trailing"in i?!!i.trailing:O),d.cancel=function(){void 0!==m&&clearTimeout(m),v=0,u=g=h=m=void 0},d.flush=function(){return void 0===m?f:c(w())},d}}).call(t,function(){return this}())},function(e,t){"use strict";function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(e){e&&e.forEach((function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes);if(function e(t){var n=void 0,i=void 0;for(n=0;ne.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")}(e,i+n,t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,i.default)(e.node,t.offset)})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13));t.default=function(e,t){var n=0,o=0,r=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(o=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,i.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=r/2;break;case"bottom-center":n+=r/2+e.offsetHeight;break;case"center-center":n+=r/2+e.offsetHeight/2;break;case"top-top":n+=r;break;case"bottom-top":n+=e.offsetHeight+r;break;case"center-top":n+=e.offsetHeight/2+r}return a.anchorPlacement||a.offset||isNaN(t)||(o=t),n+o}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))}}])})),function(e){e.fn.extend({slimScroll:function(n){var i=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each((function(){var o,r,a,s,l,c,d,u,h="
",p=30,f=!1,m=e(this);if(m.parent().hasClass(i.wrapperClass)){var g=m.scrollTop();if(S=m.siblings("."+i.barClass),_=m.siblings("."+i.railClass),E(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){m.parent().css("height","auto"),m.css("height","auto");var v=m.parent().parent().height();m.parent().css("height",v),m.css("height",v)}else if("height"in n){var y=n.height;m.parent().css("height",y),m.css("height",y)}if("scrollTo"in n)g=parseInt(i.scrollTo);else if("scrollBy"in n)g+=parseInt(i.scrollBy);else if("destroy"in n)return S.remove(),_.remove(),void m.unwrap();k(g,!1,!0)}}else if(!(e.isPlainObject(n)&&"destroy"in n)){i.height="auto"==i.height?m.parent().height():i.height;var b=e(h).addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});m.css({overflow:"hidden",width:i.width,height:i.height});var w,_=e(h).addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.railBorderRadius,background:i.railColor,opacity:i.railOpacity,zIndex:90}),S=e(h).addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.borderRadius,BorderRadius:i.borderRadius,MozBorderRadius:i.borderRadius,WebkitBorderRadius:i.borderRadius,zIndex:99}),O="right"==i.position?{right:i.distance}:{left:i.distance};_.css(O),S.css(O),m.wrap(b),m.parent().append(S),m.parent().append(_),i.railDraggable&&S.bind("mousedown",(function(n){var i=e(document);return a=!0,t=parseFloat(S.css("top")),pageY=n.pageY,i.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,S.css("top",currTop),k(0,S.position().top,!1)})),i.bind("mouseup.slimscroll",(function(e){a=!1,T(),i.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(e){return e.stopPropagation(),e.preventDefault(),!1})),_.hover((function(){C()}),(function(){T()})),S.hover((function(){r=!0}),(function(){r=!1})),m.hover((function(){o=!0,C(),T()}),(function(){o=!1,T()})),m.bind("touchstart",(function(e,t){e.originalEvent.touches.length&&(l=e.originalEvent.touches[0].pageY)})),m.bind("touchmove",(function(e){(f||e.originalEvent.preventDefault(),e.originalEvent.touches.length)&&(k((l-e.originalEvent.touches[0].pageY)/i.touchScrollStep,!0),l=e.originalEvent.touches[0].pageY)})),E(),"bottom"===i.start?(S.css({top:m.outerHeight()-S.outerHeight()}),k(0,!0)):"top"!==i.start&&(k(e(i.start).position().top,null,!0),i.alwaysVisible||S.hide()),w=this,window.addEventListener?(w.addEventListener("DOMMouseScroll",x,!1),w.addEventListener("mousewheel",x,!1)):document.attachEvent("onmousewheel",x)}function x(t){if(o){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3);var r=t.target||t.srcTarget||t.srcElement;e(r).closest("."+i.wrapperClass).is(m.parent())&&k(n,!0),t.preventDefault&&!f&&t.preventDefault(),f||(t.returnValue=!1)}}function k(e,t,n){f=!1;var o=e,r=m.outerHeight()-S.outerHeight();if(t&&(o=parseInt(S.css("top"))+e*parseInt(i.wheelStep)/100*S.outerHeight(),o=Math.min(Math.max(o,0),r),o=e>0?Math.ceil(o):Math.floor(o),S.css({top:o+"px"})),o=(d=parseInt(S.css("top"))/(m.outerHeight()-S.outerHeight()))*(m[0].scrollHeight-m.outerHeight()),n){var a=(o=e)/m[0].scrollHeight*m.outerHeight();a=Math.min(Math.max(a,0),r),S.css({top:a+"px"})}m.scrollTop(o),m.trigger("slimscrolling",~~o),C(),T()}function E(){c=Math.max(m.outerHeight()/m[0].scrollHeight*m.outerHeight(),p),S.css({height:c+"px"});var e=c==m.outerHeight()?"none":"block";S.css({display:e})}function C(){if(E(),clearTimeout(s),d==~~d){if(f=i.allowPageScroll,u!=d){var e=0==~~d?"top":"bottom";m.trigger("slimscroll",e)}}else f=!1;u=d,c>=m.outerHeight()?f=!0:(S.stop(!0,!0).fadeIn("fast"),i.railVisible&&_.stop(!0,!0).fadeIn("fast"))}function T(){i.alwaysVisible||(s=setTimeout((function(){i.disableFadeOut&&o||r||a||(S.fadeOut("slow"),_.fadeOut("slow"))}),1e3))}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(e,t,n,i){var o="ontouchstart"in n,r=function(){var e=n.createElement("div"),i=n.documentElement;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",i.appendChild(e);var o=t.getComputedStyle&&"auto"===t.getComputedStyle(e,"").pointerEvents;return i.removeChild(e),!!o}(),a={listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'',collapseBtnHTML:'',group:0,maxDepth:5,threshold:20};function s(t,i){this.w=e(n),this.el=e(t),this.options=e.extend({},a,i),this.init()}s.prototype={init:function(){var n=this;n.reset(),n.el.data("nestable-group",this.options.group),n.placeEl=e('
'),e.each(this.el.find(n.options.itemNodeName),(function(t,i){n.setParent(e(i))})),n.el.on("click","button",(function(t){if(!n.dragEl){var i=e(t.currentTarget),o=i.data("action"),r=i.parent(n.options.itemNodeName);"collapse"===o&&n.collapseItem(r),"expand"===o&&n.expandItem(r)}}));var i=function(t){var i=e(t.target);if(!i.hasClass(n.options.handleClass)){if(i.closest("."+n.options.noDragClass).length)return;i=i.closest("."+n.options.handleClass)}i.length&&!n.dragEl&&(n.isTouch=/^touch/.test(t.type),n.isTouch&&1!==t.touches.length||(t.preventDefault(),n.dragStart(t.touches?t.touches[0]:t)))},r=function(e){n.dragEl&&(e.preventDefault(),n.dragMove(e.touches?e.touches[0]:e))},a=function(e){n.dragEl&&(e.preventDefault(),n.dragStop(e.touches?e.touches[0]:e))};o&&(n.el[0].addEventListener("touchstart",i,!1),t.addEventListener("touchmove",r,!1),t.addEventListener("touchend",a,!1),t.addEventListener("touchcancel",a,!1)),n.el.on("mousedown",i),n.w.on("mousemove",r),n.w.on("mouseup",a)},serialize:function(){var t=this;return step=function(n,i){var o=[];return n.children(t.options.itemNodeName).each((function(){var n=e(this),r=e.extend({},n.data()),a=n.children(t.options.listNodeName);a.length&&(r.children=step(a,i+1)),o.push(r)})),o},step(t.el.find(t.options.listNodeName).first(),0)},serialise:function(){return this.serialize()},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.isTouch=!1,this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null},expandItem:function(e){e.removeClass(this.options.collapsedClass),e.children('[data-action="expand"]').hide(),e.children('[data-action="collapse"]').show(),e.children(this.options.listNodeName).show()},collapseItem:function(e){e.children(this.options.listNodeName).length&&(e.addClass(this.options.collapsedClass),e.children('[data-action="collapse"]').hide(),e.children('[data-action="expand"]').show(),e.children(this.options.listNodeName).hide())},expandAll:function(){var t=this;t.el.find(t.options.itemNodeName).each((function(){t.expandItem(e(this))}))},collapseAll:function(){var t=this;t.el.find(t.options.itemNodeName).each((function(){t.collapseItem(e(this))}))},setParent:function(t){t.children(this.options.listNodeName).length&&(t.prepend(e(this.options.expandBtnHTML)),t.prepend(e(this.options.collapseBtnHTML))),t.children('[data-action="expand"]').hide()},unsetParent:function(e){e.removeClass(this.options.collapsedClass),e.children("[data-action]").remove(),e.children(this.options.listNodeName).remove()},dragStart:function(t){var i=this.mouse,o=e(t.target),r=o.closest(this.options.itemNodeName);this.placeEl.css("height",r.height()),i.offsetX=void 0!==t.offsetX?t.offsetX:t.pageX-o.offset().left,i.offsetY=void 0!==t.offsetY?t.offsetY:t.pageY-o.offset().top,i.startX=i.lastX=t.pageX,i.startY=i.lastY=t.pageY,this.dragRootEl=this.el,this.dragEl=e(n.createElement(this.options.listNodeName)).addClass(this.options.listClass+" "+this.options.dragClass),this.dragEl.css("width",r.width()),r.after(this.placeEl),r[0].parentNode.removeChild(r[0]),r.appendTo(this.dragEl),e(n.body).append(this.dragEl),this.dragEl.css({left:t.pageX-i.offsetX,top:t.pageY-i.offsetY});var a,s,l=this.dragEl.find(this.options.itemNodeName);for(a=0;athis.dragDepth&&(this.dragDepth=s)},dragStop:function(e){var t=this.dragEl.children(this.options.itemNodeName).first();t[0].parentNode.removeChild(t[0]),this.placeEl.replaceWith(t),this.dragEl.remove(),this.el.trigger("change"),this.hasNewRoot&&this.dragRootEl.trigger("change"),this.reset()},dragMove:function(i){var o,a,s,l=this.options,c=this.mouse;this.dragEl.css({left:i.pageX-c.offsetX,top:i.pageY-c.offsetY}),c.lastX=c.nowX,c.lastY=c.nowY,c.nowX=i.pageX,c.nowY=i.pageY,c.distX=c.nowX-c.lastX,c.distY=c.nowY-c.lastY,c.lastDirX=c.dirX,c.lastDirY=c.dirY,c.dirX=0===c.distX?0:c.distX>0?1:-1,c.dirY=0===c.distY?0:c.distY>0?1:-1;var d=Math.abs(c.distX)>Math.abs(c.distY)?1:0;if(!c.moving)return c.dirAx=d,void(c.moving=!0);c.dirAx!==d?(c.distAxX=0,c.distAxY=0):(c.distAxX+=Math.abs(c.distX),0!==c.dirX&&c.dirX!==c.lastDirX&&(c.distAxX=0),c.distAxY+=Math.abs(c.distY),0!==c.dirY&&c.dirY!==c.lastDirY&&(c.distAxY=0)),c.dirAx=d,c.dirAx&&c.distAxX>=l.threshold&&(c.distAxX=0,s=this.placeEl.prev(l.itemNodeName),c.distX>0&&s.length&&!s.hasClass(l.collapsedClass)&&(o=s.find(l.listNodeName).last(),this.placeEl.parents(l.listNodeName).length+this.dragDepth<=l.maxDepth&&(o.length?(o=s.children(l.listNodeName).last()).append(this.placeEl):((o=e("<"+l.listNodeName+"/>").addClass(l.listClass)).append(this.placeEl),s.append(o),this.setParent(s)))),c.distX<0&&(this.placeEl.next(l.itemNodeName).length||(a=this.placeEl.parent(),this.placeEl.closest(l.itemNodeName).after(this.placeEl),a.children().length||this.unsetParent(a.parent()))));var u=!1;if(r||(this.dragEl[0].style.visibility="hidden"),this.pointEl=e(n.elementFromPoint(i.pageX-n.body.scrollLeft,i.pageY-(t.pageYOffset||n.documentElement.scrollTop))),r||(this.dragEl[0].style.visibility="visible"),this.pointEl.hasClass(l.handleClass)&&(this.pointEl=this.pointEl.parent(l.itemNodeName)),this.pointEl.hasClass(l.emptyClass))u=!0;else if(!this.pointEl.length||!this.pointEl.hasClass(l.itemClass))return;var h=this.pointEl.closest("."+l.rootClass),p=this.dragRootEl.data("nestable-id")!==h.data("nestable-id");if(!c.dirAx||p||u){if(p&&l.group!==h.data("nestable-group"))return;if(this.dragDepth-1+this.pointEl.parents(l.listNodeName).length>l.maxDepth)return;var f=i.pageY'),p&&(this.dragRootEl=h,this.hasNewRoot=this.el[0]!==this.dragRootEl[0])}}},e.fn.nestable=function(t){var n=this;return this.each((function(){var i=e(this).data("nestable");i?"string"==typeof t&&"function"==typeof i[t]&&(n=i[t]()):(e(this).data("nestable",new s(this,t)),e(this).data("nestable-id",(new Date).getTime()))})),n||this}}(window.jQuery||window.Zepto,window,document),function(e){"use strict";e.SOW.vendor.jarallax={init:function(t,n){var i=e.SOW.helper.__selector(t),o=e.SOW.helper.check_var(n);if(this.selector=i[0],this.collection=i[1],this.selector_orig=i[2],this.config=null!==o?e.extend({},this.config,o):this.config,""!=t&&jQuery(this.selector).length<1)return null;if("function"!=typeof jarallax){var r=e.SOW.helper.vendorLogicPaths("jarallax");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Jaralax"),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return"function"!=typeof jarallax?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Jaralax"),null):(e.SOW.vendor.jarallax.init(t,n),null)})),null)}return e.SOW.vendor.jarallax.destroy(this.selector),jarallax(document.querySelectorAll(this.selector)),e.SOW.helper.consoleLog("Init : Vendor Jaralax"),e(this.selector)},destroy:function(e){jarallax(document.querySelectorAll(e),"destroy")}}}(jQuery),function(e){"use strict";e.SOW.vendor.sticky_kit={config:{},collection:e(),init:function(t,n){var i=e.SOW.helper.__selector(t),o=e.SOW.helper.check_var(n);if(this.selector=i[0],this.collection=i[1],this.selector_orig=i[2],this.config=null!==o?e.extend({},this.config,o):this.config,""!=t&&jQuery(this.selector).length<1)return null;if(!jQuery().stick_in_parent){var r=e.SOW.helper.vendorLogicPaths("sticky_kit");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Sticky Kit"),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return jQuery().stick_in_parent?(e.SOW.vendor.sticky_kit.init(t,n),null):(e.SOW.helper.consoleLog("Vendor Missing : Vendor Sticky Kit"),null)})),null)}return e.SOW.helper.consoleLog("Init : Vendor Sticky Kit"),jQuery(window).resize((function(){setTimeout((function(){!0===e.SOW.globals.is_mobile?jQuery(this.selector).each((function(){e(this).removeClass("js-stickified").trigger("sticky_kit:detach")})):e.SOW.vendor.sticky_kit.process(this.selector)}),450)})),e.SOW.vendor.sticky_kit.process(this.selector),e(this.selector)},process:function(t){!0!==e.SOW.globals.is_mobile&&jQuery(t).not(".js-stickified").addClass("js-stickified").each((function(){var t=jQuery(this),n=t.data("sticky-kit-offset")||0;n<1&&(n=15,(e.SOW.globals.elBody.hasClass("header-sticky")||e.SOW.globals.elBody.hasClass("header-scroll-reveal")||e.SOW.globals.elBody.hasClass("header-over"))&&(n=(e.SOW.globals.elHeader.outerHeight()||0)+n)),t.stick_in_parent({offset_top:Number(n)})}))}}}(jQuery),function(e){"use strict";e.SOW.vendor.sortable={config:{dataIdAttr:"data-id",handle:".sortable-handle",animation:150,ghostClass:"bg-primary-soft",chosenClass:"bg-white-alt",swapClass:"bg-warning-soft",filter:".js-ignore",headers:"",crossDomain:""},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if("function"!=typeof Sortable){var i=e.SOW.helper.vendorLogicPaths("sortable");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Sortable"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return"function"!=typeof Sortable?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Sortable"),null):(e.SOW.vendor.sortable.init(t,n),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : Vendor Sortable"),this.selector?this.collection.each((function(){e.SOW.vendor.sortable.process(e(this))})):(e.SOW.vendor.sortable.process(e(".sortable")),e(".sortable"))},process:function(t){if(!t.hasClass("js-sortablified")){var n=t.attr("id")||"",i=t.data("shared-group")||"",o=t.data("pull-mode")||"",r=t.data("put-denied")||"false",a=t.data("sortable-type")||"",s=t.data("sort-disable")||"false",l=t.data("sort-swap")||"false",c=t.data("swap-treshold")||"",d=jQuery(e.SOW.vendor.sortable.config.handle,t).length||0;if(t.addClass("js-sortablified"),""==n){n="strand_"+e.SOW.helper.randomStr(3);t.attr("id",n)}var u={dataIdAttr:e.SOW.vendor.sortable.config.dataIdAttr||"data-id",handle:d>0?e.SOW.vendor.sortable.config.handle:null,animation:e.SOW.vendor.sortable.config.animation,ghostClass:e.SOW.vendor.sortable.config.ghostClass,chosenClass:e.SOW.vendor.sortable.config.chosenClass,swapClass:e.SOW.vendor.sortable.config.swapClass,filter:e.SOW.vendor.sortable.config.filter,onUpdate:function(n){var i=p.toArray();e.SOW.vendor.sortable.sortable__update_order(t,i)}};""!=i&&(""==o?u.group=i:""!=o&&(u.group={name:i,pull:o,put:r+""!="true"})),s+""=="true"&&(u.sort=!1),""!=c&&(u.swapThreshold=swapThreshold),"nested"==a.toLowerCase()&&(u.group="nested",u.fallbackOnBody=!0,u.swapThreshold=.65),l+""=="true"&&(u.swap=!0);var h=document.getElementById(n),p=new Sortable(h,u)}},sortable__update_order:function(t,n){var i=t.data("ajax-update-params")||"",o=t.data("ajax-update-url")||"",r=t.data("ajax-update-identifier")||"",a=t.data("update-toast-success")||"Order Saved!",s=t.data("update-toast-position")||"bottom-center";if(""!=o){var l=new FormData;if(l.append("action","reorder"),l.append("ajax","true"),l.append("identifier",r),""!=i)for(var c=e.SOW.helper.params_parse(i),d=0;d1.5&&(t.width=t.width/n,t.height=t.height/n)},loop:e.SOW.vendor.fancybox.config.loop,infobar:e.SOW.vendor.fancybox.config.infobar,buttons:["close"],protect:e.SOW.vendor.fancybox.config.protect,image:{preload:!1},hash:!1,animationEffect:"zoom",animationDuration:366,transitionEffect:e.SOW.vendor.fancybox.config.transitionEffect,transitionDuration:e.SOW.vendor.fancybox.config.transitionDuration,spinnerTpl:'
',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},smallBtn:!1}),e.SOW.helper.consoleLog("Init : Vendor Fancybox"),null}}}(jQuery),function(e){"use strict";var t="Vendor Cocoen (Image Comparision)";window.cocoenInit=!1,e.SOW.vendor.cocoen={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof Cocoen){var o=e.SOW.helper.vendorLogicPaths("cocoen");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof Cocoen?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.cocoen.init(n,i),null)})),null)}return jQuery(n).each((function(){var t=jQuery(this);if(!t.hasClass("js-cocoened")){t.addClass("js-cocoened");var n="rand_"+e.SOW.helper.randomStr(3,"L");t.addClass(n),new Cocoen(document.querySelector("."+n))}})),e.SOW.helper.consoleLog("Init : "+t),null}}}(jQuery),function(e){"use strict";e.SOW.vendor.photoswipe={config:{defaults:{galleryOpen:function(e){},showHideOpacity:!1,history:!1,captionEl:!1,shareEl:!1,tapToClose:!1,tapToToggleControls:!1,escKey:!0,barsSize:{top:0,bottom:0}}},init:function(t,n){var i=e.SOW.helper.__selector(t),o=e.SOW.helper.check_var(n);if(this.selector=i[0],this.collection=i[1],this.config=null!==o?e.extend({},this.config,o):this.config,""!=t&&jQuery(this.selector).length<1)return null;if("function"!=typeof PhotoSwipe){var r=e.SOW.helper.vendorLogicPaths("photoswipe");return""==r.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Photoswipe"),null):(e.SOW.helper.loadScript([r.path_js],!1,!0).done((function(){return"function"!=typeof PhotoSwipe?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Photoswipe"),null):(e.SOW.vendor.photoswipe.init(t,n),null)})),null)}return e.SOW.vendor.photoswipe.photoswipe_tpl(),e.SOW.helper.consoleLog("Init : Vendor Photoswipe"),e.SOW.vendor.photoswipe.process(this.selector)},process:function(t){var n=jQuery(".pswp[role='dialog']")[0],i={},o="abcdefghijklmnopqrstuvwxyz".split(""),r=[],a=[];e(t).not(".js-photoswapified").addClass("js-photoswapified").each((function(){var t=e(this),n=t.attr("href"),r=t.attr("title"),s=t.data("photoswipe"),l=s?s.replace(/[a-z]/gi,(function(e){return o.indexOf(e.toLowerCase())+1})):e.SOW.helper.randomStr(3,"N");n&&(t.attr("data-group-id",l),s&&(void 0===a[l]&&(a[l]=0),t.attr("data-index",a[l]++)),void 0===i[l]&&(i[l]=[]),i[l].push({src:n,title:r,w:0,h:0}))})),e(t).off().on("click",(function(t){t.preventDefault();var o=e(this),a=o.attr("href")||"",s=o.data("group-id")||0,l=o.data("index")||0,c=o.attr("data-history")||"false",d=o.attr("data-shareEl")||"false",u=o.attr("data-captionEl")||"false",h=o.attr("data-tapToClose")||"false",p=o.attr("data-tapToToggleControls")||"false",f=o.attr("data-showHideOpacity")||"true",m=o.attr("data-mainClass")||"",g=!1;if(a.match(/(youtube.com)/)?g=!0:a.match(/(youtu.be)/)?g=!0:a.match(/(vimeo.com)/)?g=!0:a.match(/(.mp4)/)?g=!0:a.match(/(.ogv)/)&&(g=!0),!0===g)return"object"==typeof e.SOW.core.ajax_modal&&(o.off().removeClass("photoswipe js-photoswapified").addClass("js-onload").attr("data-ajax-modal-delay","0").attr("data-ajax-modal-type","video").attr("data-ajax-modal-size","modal-xl").attr("data-ajax-modal-centered","true"),e.SOW.core.ajax_modal.attach(o)),!1;var v=e.SOW.vendor.photoswipe.config.defaults;function y(e,t){if(0==t.w&&0==t.h){var n=new Image;n.onload=function(){t.w=this.width,t.h=this.height,t.needsUpdate=!0,r[s].updateSize(!0)},n.src=t.src}}v.mainClass=m,v.index=l,""!=f&&(v.showHideOpacity=f+""=="true"),""!=c&&(v.history=c+""=="true"),""!=u&&(v.captionEl=u+""=="true"),""!=d&&(v.shareEl=d+""=="true"),""!=h&&(v.tapToClose=h+""=="true"),""!=p&&(v.tapToToggleControls=p+""=="true"),"object"==typeof barsSize&&(v.barsSize=barsSize),r[s]=new PhotoSwipe(n,PhotoSwipeUI_Default,i[s],v),r[s].init(),r[s].listen("initialZoomInEnd",(function(){v.galleryOpen(r[s])})),r[s].listen("imageLoadComplete",(function(e,t){y(e,t)})),r[s].listen("gettingData",(function(e,t){y(e,t)})),r[s].listen("resize",(function(e,t){})),e.SOW.vendor.photoswipe.photoswipe_style(o)}))},photoswipe_style:function(e){var t="bg-secondary text-white";if(e.hasClass("photoswipe-secondary"))t="bg-secondary text-white";else if(e.hasClass("photoswipe-dark"))t="bg-dark text-white";else if(e.hasClass("photoswipe-white"))t="bg-white text-dark";else if(e.hasClass("photoswipe-dark"))t="bg-dark text-white";else if(e.hasClass("photoswipe-primary"))t="bg-primary text-white";else if(e.hasClass("photoswipe-success"))t="bg-success text-white";else if(e.hasClass("photoswipe-danger"))t="bg-danger text-white";else if(e.hasClass("photoswipe-warning"))t="bg-warning text-white";else if(e.hasClass("photoswipe-info"))t="bg-info text-white";else if(e.hasClass("photoswipe-pink"))t="bg-pink text-white";else if(e.hasClass("photoswipe-purple"))t="bg-purple text-white";else if(e.hasClass("photoswipe-indigo"))t="bg-indigo text-white";jQuery(".pswp__button--custom").removeClass("bg-white bg-dark bg-primary bg-secondary bg-success bg-danger bg-warning bg-info bg-pink bg-purple bg-indigo text-dark text-white"),jQuery(".pswp__button--custom").addClass(t)},photoswipe_tpl:function(){var t='\x3c!-- Root element of PhotoSwipe. Must have class pswp. --\x3e';e.SOW.globals.elBody.append(t)}}}(jQuery),function(e){"use strict";var t=[];e.SOW.vendor.swiper={config:{init:!0,direction:"horizontal",spaceBetween:15,slidesPerView:1,slidesPerGroup:1,slidesPerColumn:1,centeredSlides:!1,effect:"slide",grabCursor:!1,freeMode:!1,loop:!1,autoHeight:!1,mousewheel:!1,speed:600,parallax:!0,lazy:!1,zoom:!1,keyboard:{enabled:!0},autoplay:{delay:4500,disableOnInteraction:!1},coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cubeEffect:{shadow:!0,slideShadows:!0,shadowOffset:20,shadowScale:.94},pagination:{el:".swiper-pagination",type:"bullets",dynamicBullets:!0,clickable:!0},scrollbar:{el:".swiper-scrollbar",hide:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if("function"!=typeof Swiper){var i=e.SOW.helper.vendorLogicPaths("swiper");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Swiper"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return"function"!=typeof Swiper?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Swiper"),null):(e.SOW.vendor.swiper.init(t,n),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.config=null!==r?e.extend({},this.config,r):this.config,"rtl"==e.SOW.globals.direction&&jQuery(this.selector).attr("dir","rtl"),e.SOW.helper.consoleLog("Init : Vendor Swiper"),this.selector?this.collection.each((function(){e.SOW.vendor.swiper.process(e(this))})):(e.SOW.vendor.swiper.process(e(".swiper-container")),e(".swiper-container"))},process:function(n){if(!n.hasClass("js-swiperified")){var i=n.attr("id")||"",o=n.data("swiper")||"",r=n.data("swiper-link")||"",a=e.SOW.vendor.swiper.config;"object"==typeof o&&("object"==typeof o.pagination&&(o.pagination=e.extend({},a.pagination,o.pagination)),"bullets"!=a.pagination&&(a.pagination.dynamicBullets=!1),e.extend(a,o)),""==i&&(i="rand_"+e.SOW.helper.randomStr(3),n.attr("id",i)),jQuery(".swiper-button-next","#"+i).addClass("swiper-button-next-"+i),jQuery(".swiper-button-prev","#"+i).addClass("swiper-button-prev-"+i),jQuery(".swiper-pagination","#"+i).addClass("swiper-pagination-"+i),a.navigation.nextEl=".swiper-button-next-"+i,a.navigation.prevEl=".swiper-button-prev-"+i,a.pagination.el=".swiper-pagination-"+i,a.slidesPerView>"1"&&(a.effect="slide"),!jQuery("#"+i).hasClass(".js-ignore")&&jQuery(".swiper-slide","#"+i).length<2&&(a.pagination={},a.navigation={},a.loop=!1,jQuery(".swiper-button-next","#"+i).remove(),jQuery(".swiper-button-prev","#"+i).remove(),jQuery(".swiper-pagination","#"+i).remove()),""!=r&&("object"!=typeof a.thumbs&&(a.thumbs={}),a.thumbs.swiper=t[r]),t[i]=new Swiper("#"+i,a),n.addClass("js-swiperified"),""!=r&&setTimeout((function(){t[r].update(),t[i].update()}),700)}}}}(jQuery),function(e){"use strict";var t="Vendor Leaflet [Map]";e.SOW.vendor.leaflet={init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("undefined"==typeof L){var o=e.SOW.helper.vendorLogicPaths("leaflet");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"undefined"==typeof L?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.leaflet.init(n,i),null)})),null)}var r=e.SOW.helper.__selector(n);return this.selector=r[0]||".map-leaflet",jQuery(this.selector).each((function(){e.SOW.vendor.leaflet.map_openstreet(e(this))})),e.SOW.helper.consoleLog("Init : "+t),e(this.selector)},map_openstreet:function(t){if(!t.hasClass("js-leafletified")){var n=t.attr("id")||"",i=t.data("map-json")||"",o=t.data("map-tile")||"",r=t.data("map-tile-custom")||"",a=t.data("map-zoom")||9,s=[];if(t.addClass("js-leafletified"),"object"==typeof i){if(""==n){n="map_"+e.SOW.helper.randomStr(3);t.attr("id",n)}var l=L.icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAMAAAD3TXL8AAAB5lBMVEVHcEwtbZk5hLcubZgubZkyeak4fq8zbaEwcqEtcqQubZsvbpoyaZYua5cubJcubJcubJgtbZk+h7ovbp01eqwtbJovbpo3gbc0d6gydKZHjsEubJk2gLIwb58tbJk2frQua5dIkcREjL43g7RGkMIvb5wubJctbJktbJkzd6o0eKc/hrU4grgzd6gxdKMzdqcxdKQ1dqY2frA2frA4gbQ4gbU2frA3gbQ3grc2fbA2fbA1e6s9grQ1fKw+hbw5g7g5g7c2g7YwdJ88grX///8uhctHmNEhesk/ks8rgssshMtElc8ogMoxh8wpgcpFl9A2jM0whswlfsoeeMkmf8o2ic4jfMpClM9Bk88ziM05jc5Dk9E0isxJltJZotU6js5AkNBEjMBKmNIzhM1Un9U8kc47f687i89XoNROm9Madcj8/f5JmdE2gb5SntM/isVQmcxLlc8rgMwwerdLlMpDjMQ5eKU3dqNCib0+jtAwcZ5cpNROlspQndNHldJfptdHkctHi7tChbNFlNGPtc5ek7igwNZDh7i2zt7e6fE8h8Q6hcJWntEvg8wyfbtTnM8xhM44i81Lm9E4grZKkcVJgqo1e6zB1eJunb2FrcnR3+qrxdeBrMqXudFQirRYoNAwgMg+hbuAcFJ8AAAARHRSTlMA7/hT+BP2AfYIzEsNh2Zyeen09/YY/i729v/0+PbkHlv6+Cf5g0Ld1jxx9oyvwOfx9EfwzNJRgni0vlv6Zf7o5EKA+QUIjyQAAAJISURBVBgZdcCFQuIAGADgnxxht2d313XnHHjKOeWmbpONGp1hBnZnXFe86W1MDjA+SFGUvipVwBUNnS/PpQXS8xedpZAOeShtDDHLy8sLx3XSBwgkITV3Cw4Y+9KZ72zJzvwuuNcAF25XNi4EsKTAQl3lfUhQ3AkxvuEUHxNS1oDgUb1rUIQNilz1j4H3ROnCxnk+O+Ni7L5xHuZSPgNQFy26J3jug1XHJ8fq8dIEz71YpIY2pV3Ps4YcP3a9uxuORaueZ1e2QXuHm+O4icDaFirYcQTGOY5zd7RDlwXjOG74wy8vmrB5C+M4DrN0QU+MZlnWNPsVFf3ctrIsS8d6oDempyjKtL2BirbWrBRF6WO90G2hcRynLZuo6MvsOo7jtKUbmp7GcRxnw9OfUcG3mTCH43j8zWvQ9lknebRl5rsX9e5Mz65P8qx9WiguCZ+SJEnEp6bnP87PTJkIkiRPwyXFAJq/ZoNgzrQytWIyGwTm5xoAkKnihpEEwkkYRgSGuEoGAGpJkOrPRAXzEeBlF9FvM/TTZbkgKJYHiYF0RFCugITsMvO7NAPm8mwQKeR75FAKsVeRBReayueG3icNzanyICmrYt82mkTuS7LgvzyVc3RMNOpU5UKKWuI/0Ylsfoka0uSqnGM6wZhTlQPp1Pn+Q6Pg0J+vhgw5VYTOaDTqiKocyIRUH0U8Hk/kqBqBS2oLbUaP0VZYC5chLdGIJxJtQeAKWaFNZ5PL4CqkNXoSbYXraOV/5Fq4lmZeA9drLmmGG+RBmn9TM85gFMKHmQAAAABJRU5ErkJggg==",shadowUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",iconSize:[25,41],shadowSize:[41,41],iconAnchor:[10,40],shadowAnchor:[10,39],popupAnchor:[3,-26]});switch(o){case"gray":var c="https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}";break;case"carto":c="https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png";break;case"voyager":c="https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png";break;case"hot":c="https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png";break;default:c="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}if(""!=r)c=r;var d=new L.TileLayer(c,{minZoom:3,maxZoom:18,attribution:'© OpenStreetMap contributors'}),u=[],h=e.SOW.helper.randomStr(3,"L");s[n]=new L.Map(n),s[n].addLayer(d),s[n].attributionControl.setPrefix('Leaflet');for(var p=0;p"+g+"
")).openPopup()}}else"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","","Map Error: Invalid Json!","top-center",0,!0):alert("[404] Unexpected internal error!")}}}}(jQuery),function(e){"use strict";e.SOW.vendor.aos={config:{duration:700,easing:"ease-in-out-sine",once:!0},init:function(t,n){if("undefined"==typeof AOS){var i=e.SOW.helper.vendorLogicPaths("aos");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor AOS"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return"undefined"==typeof AOS?(e.SOW.helper.consoleLog("Vendor Missing : Vendor AOS"),null):(e.SOW.vendor.aos.init(t,n),null)})),null)}var o=e.SOW.helper.check_var(n);this.config=null!==o?e.extend({},this.config,o):this.config,AOS.init(e.SOW.vendor.aos.config),window.MutationObserver||AOS.refreshHard()}}}(jQuery),function(e){"use strict";var t="Vendor Slimscroll";e.SOW.vendor.slimscroll={config:{height:"100%",color:"#444",size:"3px",railColor:"#ccc",railOpacity:.5,alwaysVisible:!1,railVisible:!0,position:"ltr"==e.SOW.globals.direction?"right":"left",distance:"0",wheelStep:10,allowPageScroll:!1,disableFadeOut:!1},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().slimScroll){var o=e.SOW.helper.vendorLogicPaths("slimscroll");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().slimScroll?(e.SOW.vendor.slimscroll.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}if(!0!==e.SOW.globals.is_mobile){var r=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);return this.selector=r[0],this.config=null!==a?e.extend({},this.config,a):this.config,e(this.selector).slimScroll({height:this.config.height,color:this.config.color,size:this.config.size,railColor:this.config.railColor,railOpacity:this.config.railOpacity,alwaysVisible:this.config.alwaysVisible,railVisible:this.config.railVisible,position:this.config.position,distance:this.config.distance,wheelStep:this.config.wheelStep,allowPageScroll:this.config.allowPageScroll,disableFadeOut:this.config.disableFadeOut}),e.SOW.helper.consoleLog("Init : "+t),e(this.selector)}e.SOW.helper.consoleLog("Mobile disabled : "+t)},destroy:function(t){e(t).slimScroll({destroy:!0})}}}(jQuery),function(e){"use strict";window.nestableLastUpdate={},e.SOW.vendor.nestable={config:{group:0,maxDepth:6,listNodeName:"ol",itemNodeName:"li",rootClass:"dd",listClass:"dd-list",itemClass:"dd-item",dragClass:"dd-dragel",handleClass:"dd-handle",collapsedClass:"dd-collapsed",placeClass:"dd-placeholder",noDragClass:"dd-nodrag",emptyClass:"dd-empty",expandBtnHTML:'',collapseBtnHTML:'',maxDepth:5,threshold:0,headers:"",crossDomain:"",method:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if(!jQuery().nestable){var i=e.SOW.helper.vendorLogicPaths("nestable");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Nestable"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return jQuery().nestable?(e.SOW.vendor.nestable.init(t,n),null):(e.SOW.helper.consoleLog("Vendor Missing : Vendor Nestable"),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==r?e.extend({},this.config,r):this.config,window.nestableLastUpdate={},e.SOW.helper.consoleLog("Init : Vendor Nestable"),this.selector?this.collection.each((function(){e.SOW.vendor.nestable.process(e(this))})):(e.SOW.vendor.nestable.process(e(".nestable")),e(".nestable"))},process:function(t){if(!t.hasClass("js-nestablified")){var n=t.attr("id")||"",i=(t.data("nestable-delete-with-childs"),t.data("nestable-max-depth")||6),o=e.SOW.helper.randomStr(3,"N"),r=t.data("nestable-group")||o,a=e.SOW.vendor.nestable.config;t.addClass("js-nestablified"),a.group=r,a.maxDepth=Number(i)||6,""==n&&(n="rand_"+o,t.attr("id",n)),e("#"+n).nestable(a).on("change",(function(i){var o=window.JSON.stringify(t.nestable("serialize"));jQuery("textarea",t).val(o),window.nestableLastUpdate[n]!=o&&e.SOW.vendor.nestable.updateOrder(t,i),window.nestableLastUpdate[n]=o}));var s=window.JSON.stringify(t.nestable("serialize"));jQuery("textarea",t).val(s),window.nestableLastUpdate[n]=s,e.SOW.vendor.nestable.removeItem(t)}},updateOrder:function(t,n){var i=t.data("ajax-update-params")||"",o=t.data("ajax-update-url")||"",r=t.data("ajax-update-method")||e.SOW.vendor.nestable.config.method,a=t.data("update-toast-success")||"Order Saved!",s=(t.data("update-toast-position"),e.SOW.vendor.nestable.config.data_params);if(""!=o){var l=n.length?n:e(n.target),c=window.JSON.stringify(l.nestable("serialize")),d=JSON.parse(c);if(""!=i)for(var u=e.SOW.helper.params_parse(i),h=0;h
')},error:function(n,i,o){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),jQuery(".nestableOverlayLoading",t).remove()},success:function(n){e.SOW.helper.consoleLog(n),jQuery(".nestableOverlayLoading",t).remove(),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",a,"bottom-center",1500,!0)}})}},removeItem:function(t){var n=t.data("update-delete-with-childs")||"false",i=t.data("update-delete-with-childs-error")||"Move or delete childs first!",o=t.data("update-toast-position")||"bottom-center",r=t.data("update-delete-params")||"",a=t.data("ajax-update-method")||e.SOW.vendor.nestable.config.method,s=t.data("ajax-update-url")||"",l=t.data("update-delete-confirm-first")||"false",c="object"==typeof e.SOW.core.ajax_confirm?e.SOW.core.ajax_confirm.__selector():"",d=c.replace(".",""),u=e.SOW.vendor.nestable.config.data_params,h=t.data("ajax-confirm-size")||"",p=t.data("ajax-confirm-centered")||"",f=t.data("ajax-confirm-callback-function")||"",m=t.data("ajax-confirm-type")||"",g=t.data("ajax-confirm-mode")||"",v=t.data("ajax-confirm-method")||"",y=t.data("ajax-confirm-title")||"",b=t.data("ajax-confirm-body")||"",w=t.data("ajax-confirm-btn-yes-text")||"",_=t.data("ajax-confirm-btn-yes-class")||"",S=t.data("ajax-confirm-btn-yes-icon")||"",O=t.data("ajax-confirm-btn-no-text")||"",x=t.data("ajax-confirm-btn-no-class")||"",k=t.data("ajax-confirm-btn-no-icon")||"";jQuery("a.nestable-del",t).on("click",(function(E){E.preventDefault();var C=jQuery(this),T=C.closest("li"),D=T.attr("data-id"),j=C.attr("href")||"#",I=C.data("href")||"",A=C.data("href2")||"",W=[];if("#"==j&&""==j&&"javascript:;"==j&&(C.attr("href","#"),C.attr("data-href2",j)),""!=I){j=I;C.removeAttr("data-href"),C.attr("data-href2",j)}if(""!=A)j=A;if("#"==j||""==j||"javascript:;"==j){var M=j;j=s}if(n+""=="false"&&jQuery("ol.dd-list",T).length>0)return E.stopPropagation(),void("object"==typeof e.SOW.core.toast?(e.SOW.core.toast.destroy(),e.SOW.core.toast.show("danger","",i,o,4e3,!0)):alert(i));if("object"==typeof e.SOW.core.ajax_confirm){if(l+""=="true"&&!C.hasClass(d)&&!C.hasClass("js-confirmed"))return C.attr("data-ajax-confirm-size",h),C.attr("data-ajax-confirm-centered",p),C.attr("data-ajax-confirm-callback-function",f),C.attr("data-ajax-confirm-type",m),C.attr("data-ajax-confirm-mode",g),C.attr("data-ajax-confirm-method",v),C.attr("data-ajax-confirm-title",y),C.attr("data-ajax-confirm-body",b),C.attr("data-ajax-confirm-btn-yes-text",w),C.attr("data-ajax-confirm-btn-yes-class",_),C.attr("data-ajax-confirm-btn-yes-icon",S),C.attr("data-ajax-confirm-btn-no-text",O),C.attr("data-ajax-confirm-btn-no-class",x),C.attr("data-ajax-confirm-btn-no-icon",k),C.addClass(d+" js-nestable-confirmation-pending"),e.SOW.core.ajax_confirm.init(c),e.SOW.core.ajax_confirm.ajax_confirm(C),C.trigger("click"),void setTimeout((function(){C.removeClass(d),jQuery("#sow_ajax_confirm .btn-confirm-yes").not("js-nestablified").addClass("js-nestablified").on("click",(function(e){e.preventDefault(),C.addClass("js-confirmed"),C.removeClass("js-nestable-confirmation-pending"),C.removeClass(d),C.trigger("click")}))}),100)}else{if(!1===confirm(b))return;C.addClass("js-confirmed")}if(!C.hasClass("js-nestable-confirmation-pending")&&(l+""!="true"||C.hasClass("js-confirmed"))){if(""!=r)for(var L=e.SOW.helper.params_parse(r),N=0;N')},error:function(n,i,o){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),jQuery(".nestableOverlayLoading",t).remove()},success:function(n){e.SOW.helper.consoleLog(n),jQuery(".nestableOverlayLoading",t).remove(),T.addClass("bg-danger-soft transition-all-ease-150"),setTimeout((function(){var e=C.closest("ol.dd-list"),t=e.closest("li.dd-item");T.fadeOut(150,(function(){T.remove(),jQuery(".dd-item",e).length<1&&(jQuery("button",t).remove(),e.remove())}))}),150),"#"!=M&&""!=M&&"javascript:;"!=M||e.SOW.helper.consoleLog('[Nestable Delete Item] : [ajax-update-method] used to POST data because href="'+j+'"')}})}}))}}}(jQuery),function(e){"use strict";window.fullCalendarInstance={},e.SOW.vendor.fullcalendar={config:{plugins:["interaction","dayGrid","timeGrid","list","bootstrap","googleCalendar"],kickBsPlugin:function(e){e=e||"primary";"object"==typeof FullCalendarBootstrap&&(FullCalendarBootstrap.BootstrapTheme.prototype.baseIconClass="m-0 fi",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverrideOption="smartyAwesopme",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverrideCustomButtonOption="smartyAwesopme",FullCalendarBootstrap.BootstrapTheme.prototype.iconOverridePrefix="fi-",FullCalendarBootstrap.BootstrapTheme.prototype.iconClasses={close:"fi-close",prev:"fi-arrow-left",next:"fi-arrow-right",prevYear:"fi-arrow-left",nextYear:"fi-arrow-right"},FullCalendarBootstrap.BootstrapTheme.prototype.classes.popover="card card-"+e,FullCalendarBootstrap.BootstrapTheme.prototype.classes.button="btn btn-"+e+" btn-sm",FullCalendarBootstrap.BootstrapTheme.prototype.classes.listView="card card-"+e)},headers:"",crossDomain:"",method:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if("object"!=typeof FullCalendar){var i=e.SOW.helper.vendorLogicPaths("fullcalendar");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor FullCalendar"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return"object"!=typeof FullCalendar?(e.SOW.helper.consoleLog("Vendor Missing : Vendor FullCalendar"),null):(e.SOW.vendor.fullcalendar.init(t,n),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==r?e.extend({},this.config,r):this.config,jQuery(this.selector).length<1?null:("object"==typeof FullCalendarBootstrap&&e.SOW.vendor.fullcalendar.config.kickBsPlugin("primary"),e.SOW.helper.consoleLog("Init : Vendor FullCalendar"),this.selector?this.collection.each((function(){e.SOW.vendor.fullcalendar.process(e(this))})):(e.SOW.vendor.fullcalendar.process(e(".fullcalendar")),e(".fullcalendar")))},process:function(t){var n=t.attr("id")||"",i=t.data("fullcalendar-plugins")||"",o=t.data("fullcalendar-default-view")||"dayGridMonth",r=t.data("fullcalendar-modal-size")||"modal-lg",a=t.attr("data-fullcalendar-event-create-modal")||!0,s=t.data("fullcalendar-modal-event-create")||"",l=t.attr("data-fullcalendar-event-edit-modal")||!0,c=t.data("fullcalendar-modal-event-edit")||"",d=t.data("fullcalendar-date-click")||"",u=t.data("fullcalendar-modal-date-click-modal")||"",h=t.data("fullcalendar-custom")||"",p=t.data("fullcalendar-extend")||"",f=t.data("fullcalendar-source-json-url")||"",m=t.data("fullcalendar-source-json-inline")||"",g=t.data("fullcalendar-source-object")||"",v=t.data("fullcalendar-lang-btn")||"",y=t.data("fullcalendar-header")||"",b=t.attr("data-fullcalendar-editable")||!1,w=t.data("fullcalendar-time-format")||"",_=t.data("fullcalendar-default-date")||"now",S=t.data("fullcalendar-timezone")||"local",O=t.data("fullcalendar-google-apikey")||"";t.data("fullcalendar-google-event-sources");""==n&&(n="rand_"+e.SOW.helper.randomStr(3,"N"),t.attr("id",n)),"object"!=typeof f&&(f=!1),"object"!=typeof m&&(m=null),"object"==typeof window[g]&&(m=window[g]);b=b+""=="true";if("object"!=typeof v)v={today:"today",month:"month",week:"week",day:"day",list:"list"};if("object"!=typeof y)y={left:"prev,next, today, customAddEventButton",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"};if("object"!=typeof w)w={hour:"numeric",minute:"2-digit",meridiem:"short"};_="today"==_||"now"==_?new Date:new Date(_);var x={plugins:"object"==typeof i?i:e.SOW.vendor.fullcalendar.config.plugins,editable:b,eventLimit:!0,locale:"en",themeSystem:"bootstrap",defaultView:o||"dayGridMonth",defaultDate:_,dir:e.SOW.globals.direction,timeZone:S,eventTimeFormat:w,buttonText:v,header:y,customButtons:{customAddEventButton:{text:"+",click:function(t){!0===b&&(a+""=="true"?""!=s&&"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(s,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(s,r,"true","static",(function(){setTimeout((function(){if(""==(t=jQuery("#event_id").attr("id")||"")){var t=(new Date).getTime();jQuery("#event_id").attr("id",t)}jQuery(".btn-fullcalendar-add").on("click",(function(i){e.SOW.vendor.fullcalendar.eventCreate(n,t)}))}),250)}))):""!=s&&(window.location=s))}}},googleCalendarApiKey:O||null,events:"object"==typeof m&&m,eventSources:"object"==typeof f&&f,eventClick:function(t){!0===b&&(l+""=="true"?(t.jsEvent.preventDefault(),t.event.url,""!=c&&"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(c+t.event.id,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(c+t.event.id,r,"true","static",(function(){setTimeout((function(){if(e.SOW.vendor.fullcalendar.eventGet(t,n),""==(i=jQuery("#event_id").attr("id")||"")){var i=(new Date).getTime();jQuery("#event_id").attr("id",i)}jQuery(".btn-fullcalendar-edit").on("click",(function(o){e.SOW.vendor.fullcalendar.eventEdit(t,n,i)})),jQuery(".btn-fullcalendar-remove").on("click",(function(e){t.event.remove()}))}),450)})))):""!=c&&(window.location=c+t.event.id))},dateClick:function(t){!0===b&&("modal"==d&&""!=u?"object"==typeof e.SOW.core.ajax_modal&&(e.SOW.helper.consoleLog(u+t.dateStr,"color:#cccccc"),e.SOW.core.ajax_modal.createFromThinAir(u+t.dateStr,r,"true","static",(function(){setTimeout((function(){var i=new Date,o=i.getHours(),r=i.getMinutes();o<10&&(o="0"+o),r<10&&(r="0"+r);var a=o+":"+r;if(jQuery("#start").val(t.dateStr+" "+a),jQuery("#start").attr("data-date-start",t.dateStr+" "+a),""==(s=jQuery("#event_id").attr("id")||"")){var s=(new Date).getTime();jQuery("#event_id").attr("id",s)}jQuery(".btn-fullcalendar-add").on("click",(function(t){e.SOW.vendor.fullcalendar.eventCreate(n,s)}))}),250)}))):"redirect"==d&&""!=u&&(window.location=u+t.dateStr))},eventRender:function(e){jQuery("#"+n+" .fc-toolbar #fc_smarty_custom_range").length<1?jQuery("#"+n+" .fc-toolbar h2").wrap(''):jQuery("#"+n+" #fc_smarty_custom_range").hasClass("js-tangepickified")||jQuery("#"+n+" #fc_smarty_custom_range").on("click",(function(e){e.preventDefault()}))},eventResize:function(t){if(!0===b){var i=t.event.start.toISOString(),o=t.event.end?t.event.end.toISOString():t.event.start.toISOString();e.SOW.vendor.fullcalendar.ajaxReq(c,n,t.event.id,i,o,"resize")}},eventDrop:function(t){if(!0===b){var i=t.event.start.toISOString(),o=t.event.end?t.event.end.toISOString():t.event.start.toISOString();e.SOW.vendor.fullcalendar.ajaxReq(c,n,t.event.id,i,o,"drag")}}},k=(x="object"==typeof window[p]?e.extend({},x,window[p]):x,document.getElementById(n));if("object"==typeof window[h])x={themeSystem:"bootstrap",defaultView:o||"dayGridMonth",defaultDate:new Date,dir:e.SOW.globals.direction,header:{left:"prev,next, today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"}},x=e.extend({},x,window[h]);window.fullCalendarInstance[n]=new FullCalendar.Calendar(k,x),window.fullCalendarInstance[n].render()},ajaxReq:function(t,n,i,o,r,a){if(""!=t){var s=jQuery("#"+n).data("ajax-method")||e.SOW.vendor.fullcalendar.config.method,l=jQuery("#"+n).data("toast-success")||"Sucessfully Updated!",c=jQuery("#"+n).data("toast-position")||"top-center",d=(e.SOW.vendor.fullcalendar.config.data_params,t+i+"&start="+o+"&end="+r+"&action="+a+"&ajax=true");jQuery.ajax({url:d,data:null,type:s,contentType:e.SOW.vendor.fullcalendar.config.contentType,dataType:e.SOW.vendor.fullcalendar.config.dataType,headers:e.SOW.vendor.fullcalendar.config.headers,crossDomain:e.SOW.vendor.fullcalendar.config.crossDomain,beforeSend:function(){},error:function(t,n,i){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!",c,0,!0):alert("[404] Unexpected internal error!")},success:function(t){e.SOW.helper.consoleLog(d),setTimeout((function(){"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",l,c,1300,!0)}),150)}})}},dateFormat:function(e){if(!e)return null;if("function"==typeof moment)return moment(e,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm");var t=new Date(e),n=(n=t.getTimezoneOffset()/60)>0?n/60:0,i=t.getMonth()+1,o=t.getDate(),r=t.getHours()+n,a=t.getMinutes();return i<10&&(i="0"+i),o<10&&(o="0"+o),r<10&&(r="0"+r),a<10&&(a="0"+a),t.getFullYear()+"-"+i+"-"+o+" "+r+":"+a},eventCreate:function(t,n){var i=jQuery("#start").val(),o=jQuery("#end").val()||null,r=jQuery("#startRecur").val()||null,a=jQuery("#endRecur").val()||null,s=jQuery("#daysOfWeek").val()||null;if(!jQuery("#recurrent_enable").is(":checked"))r=null,a=null,s=null;i=i?i.replace(" ","T")+":00":i,o=o?o.replace(" ","T")+":00":o,r=r?r.replace(" ","T")+":00":r,a=a?a.replace(" ","T")+":00":a;window.fullCalendarInstance[t].addEvent({id:n,title:jQuery("#title").val(),start:i,end:o,allDay:!o,description:jQuery("#description").val(),className:jQuery("#className").val(),startRecur:r,endRecur:a,daysOfWeek:s,editable:!0,startEditable:!0,durationEditable:!0,resourceEditable:!0}),e.SOW.vendor.fullcalendar.refetchEvents(t)},eventEdit:function(t,n,i){var o=jQuery("#start").val(),r=jQuery("#end").val()||null,a=jQuery("#startRecur").val()||null,s=jQuery("#endRecur").val()||null,l=jQuery("#className").val()||"",c=jQuery("#daysOfWeek").val()||null;if(!jQuery("#recurrent_enable").is(":checked"))a=null,s=null,c=null;if(o)o=o.replace(" ","T")+":00";if(r)r=r.replace(" ","T")+":00";if(a){a=a.replace(" ","T")+":00";t.event.setProp("startRecur",a)}if(s){s=s.replace(" ","T")+":00";t.event.setProp("endRecur",s)}t.event.setProp("daysOfWeek",c),t.event.setStart(o),t.event.setEnd(r),t.event.setAllDay(!r),t.event.setProp("title",jQuery("#title").val()),t.event.setProp("className",l.split(" ")),t.event.setExtendedProp("description",jQuery("#description").val()),e.SOW.vendor.fullcalendar.refetchEvents(n)},eventGet:function(t,n){var i=t.event.start||"",o=t.event.end||null,r=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.startRecur:null,a=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.endRecur:null,s=void 0!==t.event._def.recurringDef?t.event._def.recurringDef.typeData.daysOfWeek:null,l=t.event._def.ui.classNames.join(" ")||null;if(s&&s.length>0){jQuery("#recurrent_enable").trigger("click");for(var c=0;c'+t.event.url+""),jQuery("#title").val(t.event.title||""),jQuery("#url").val(t.event.url||""),""!=l&&(jQuery("#className").val(l),jQuery("#info_className").addClass(l),"object"==typeof e.SOW.vendor.bootstrap_select&&e.SOW.vendor.bootstrap_select.refresh("#className"))},refetchEvents:function(e){"object"==typeof window.fullCalendarInstance[e]&&window.fullCalendarInstance[e].refetchEvents()}}}(jQuery),function(e){"use strict";e.SOW.vendor.datepicker={config:{headers:"",crossDomain:"",method:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if(!jQuery().datepicker){var i=e.SOW.helper.vendorLogicPaths("datepicker");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Datepicker"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return jQuery().datepicker?(e.SOW.vendor.datepicker.init(t,n),null):(e.SOW.helper.consoleLog("Vendor Missing : Vendor Datepicker"),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : Vendor Datepicker"),this.selector?this.collection.each((function(){e.SOW.vendor.datepicker.process(e(this))})):(e.SOW.vendor.datepicker.process(e(".datepicker")),e(".datepicker"))},process:function(t){if(!t.hasClass("js-datepickified")){""!=t.attr("href")&&t.on("click",(function(e){e.preventDefault()}));var n=t.data("id")||"",i=t.data("lang")||"en",o=(o=t.data("format")||"mm/dd/yyyy").toLowerCase(),r=t.data("date-start")||-1/0,a=t.data("date-end")||1/0,s=t.attr("data-changeMonth")||!0,l=t.attr("data-today-btn")||!0,c=t.attr("data-show-weeks")||!0,d=t.attr("data-autoclose")||!0,u=t.attr("data-today-highlight")||!0,h=t.attr("data-clear-btn")||!1,p=t.attr("data-showWeekDays")||!0,f=t.attr("data-enableOnReadonly")||!1,m=t.data("daysOfWeekDisabled")||"",g=t.data("daysOfWeekHighlighted")||"",v=t.data("datesDisabled")||"",y=t.data("zIndexOffset")||10,b=(t.attr("data-showOnFocus"),t.data("title")||""),w=t.data("quick-locale")||"",_=t.attr("data-layout-rounded")||!1;if("today"!=r&&"now"!=r||(r=new Date),""==n){n="rand_"+e.SOW.helper.randomStr(3);t.attr("id",n)}if(""!=t.attr("href")){var S=r;S==-1/0&&(S=new Date(r));var O={};if(O.dd=S.getDate(),O.mm=S.getMonth()+1,O.yyyy=S.getFullYear(),-1!==o.indexOf("/"))var x=o.split("/"),k="/";else if(-1!==o.indexOf("-"))x=o.split("-"),k="-";else if(-1!==o.indexOf("."))x=o.split("."),k=".";else if(-1!==o.indexOf(","))x=o.split(","),k=",";else if(-1!==o.indexOf(" "))x=o.split(" "),k=" ";var E=O[x[0]]+k+O[x[1]]+k+O[x[2]];t.text(E)}"object"==typeof w&&(e.fn.datepicker.dates.en=w),t.addClass("js-datepickified").datepicker({language:i,format:o,rtl:"rtl"==e.SOW.globals.direction,startDate:r,endDate:a,changeMonth:s+""=="true",todayBtn:l+""=="true"?"linked":null,calendarWeeks:c+""=="true",autoclose:d+""=="true",todayHighlight:u+""=="true",clearBtn:h+""=="true",enableOnReadonly:f+""=="true",daysOfWeekDisabled:"object"==typeof m?m:[],daysOfWeekHighlighted:"object"==typeof g?g:[],datesDisabled:"object"==typeof v?v:[],title:b,showOnFocus:s+""=="true",zIndexOffset:Number(y)||10,showWeekDays:p+""=="true",templates:{leftArrow:"rtl"==e.SOW.globals.direction?'':'',rightArrow:"rtl"==e.SOW.globals.direction?'':''},dates:{en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}}}).click((function(t){setTimeout((function(){e(".datepicker-dropdown").addClass("animate-none"),_+""=="true"&&e(".datepicker-dropdown").addClass("datepicker-rounded")}),200)})).on("changeDate",(function(n){var i=n.date;e.SOW.vendor.datepicker.updateAjax(t,i,o)})).data("datepicker")}},updateAjax:function(t,n,i){var o=t.data("ajax-method")||e.SOW.vendor.datepicker.config.method,r=t.data("ajax-url")||"",a=t.data("ajax-params")||"",s=t.data("toast-success")||"Sucessfully Updated!",l=t.data("toast-position")||"top-center",c=t.data("id")||"",d=e.SOW.vendor.datepicker.config.data_params;if(""!=r){var u=new Date(n),h={};if(h.dd=u.getDate(),h.mm=u.getMonth()+1,h.yyyy=u.getFullYear(),h.dd<10&&(h.dd="0"+h.dd),h.mm<10&&(h.mm="0"+h.mm),-1!==i.indexOf("/"))var p=i.split("/"),f="/";else if(-1!==i.indexOf("-"))p=i.split("-"),f="-";else if(-1!==i.indexOf("."))p=i.split("."),f=".";else if(-1!==i.indexOf(","))p=i.split(","),f=",";else if(-1!==i.indexOf(" "))p=i.split(" "),f=" ";var m=h[p[0]]+f+h[p[1]]+f+h[p[2]];if(""!=a)for(var g=e.SOW.helper.params_parse(a),v=0;v'),l+""=="true"&&(s="true"),t[x]=Pickr.create({el:"."+k,theme:o,default:h,position:a,showAlways:s+""=="true",inline:l+""=="true",appClass:c,useAsButton:d+""=="true",defaultRepresentation:u,swatches:e.SOW.vendor.colorpicker.config.classic.swatches,components:{preview:!0,opacity:!0,hue:!0,interaction:{hex:g+""!="false",rgba:v+""!="false",hsla:y+""!="false",hsva:b+""!="false",cmyk:w+""!="false",input:_+""!="false",clear:S+""!="false",save:O+""!="false"}},strings:{save:p,clear:f,cancel:m}}).on("init",e=>{jQuery(".pcr-result, .pcr-type, .pcr-save, .pcr-clear").addClass("rounded"),jQuery(".pcr-save").on("click",(function(){var e=jQuery(this).parents(".pcr-interaction"),t=jQuery(".pcr-result",e).val();jQuery(".pcr-result-final").val(t)}))}).on("hide",t=>{if(O+""=="false"){var o=jQuery(".pcr-result").val();e.SOW.vendor.colorpicker.updateAjax(n,o),i&&(jQuery("input"+i).val(o),jQuery("div"+i+", span"+i).text(o))}}).on("show",(e,t)=>{if(r+""=="true"){var n=jQuery(".pcr-result").val();i&&(jQuery("input"+i).val(n),jQuery("div"+i+", span"+i).text(n))}}).on("save",(t,o)=>{setTimeout((function(){var t=jQuery(".pcr-result-final").val();e.SOW.vendor.colorpicker.updateAjax(n,t),i&&(jQuery("input"+i).val(t),jQuery("div"+i+", span"+i).text(t)),jQuery(".pcr-result-final").val("")}),200)}).on("clear",e=>{i&&(jQuery("input"+i).val(""),jQuery("div"+i+", span"+i).text(""))}).on("change",(t,o)=>{if(r+""=="true"){var a=jQuery(".pcr-result").val();window.afterPickChange&&clearTimeout(window.afterPickChange),window.afterPickChange=setTimeout((function(){e.SOW.vendor.colorpicker.updateAjax(n,a)}),1500),i&&(jQuery("input"+i).val(a),jQuery("div"+i+", span"+i).text(a))}}).on("changestop",e=>{}).on("cancel",e=>{}).on("swatchselect",(e,t)=>{}),t[x]}},updateAjax:function(t,n){var i=t.data("ajax-method")||e.SOW.vendor.colorpicker.config.method,o=t.data("ajax-url")||"",r=t.data("ajax-params")||"",a=t.data("toast-success")||"Sucessfully Updated!",s=t.data("toast-position")||"top-center",l=t.data("id")||"",c=e.SOW.vendor.colorpicker.config.data_params;if(""!=o){if(""!=r)for(var d=e.SOW.helper.params_parse(r),u=0;u0?t:(jQuery("body").append('
'),jQuery("#forceColorPickrInit>div").addClass(t),e.SOW.vendor.colorpicker.init(this.selector_orig),t)},__selector:function(){return this.selector_orig}}}(jQuery),function(e){"use strict";e.SOW.vendor.flot={config:{headers:"",crossDomain:"",method:"GET",dataType:"json",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(t,n){if(""!=t&&jQuery(t).length<1)return null;if(!jQuery().plot){var i=e.SOW.helper.vendorLogicPaths("flot");return""==i.path_js?(e.SOW.helper.consoleLog("Vendor Missing : Vendor Flot Chart"),null):(e.SOW.helper.loadScript([i.path_js],!1,!0).done((function(){return jQuery().plot?(e.SOW.vendor.flot.init(t,n),null):(e.SOW.helper.consoleLog("Vendor Missing : Vendor Flot Chart"),null)})),null)}var o=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(n);return this.selector=o[0],this.collection=o[1],this.selector_orig=o[2],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.helper.consoleLog("Init : Vendor Flot Chart"),e.SOW.vendor.flot.btnSave_bind(),this.selector?this.collection.each((function(){e.SOW.vendor.flot.process(e(this))})):(e.SOW.vendor.flot.process(e(".flot")),e(".flot"))},process:function(t){if(!t.hasClass("js-plotified")){t.addClass("js-plotified");var n=t.data("flot-custom-data")||"",i=t.data("flot-custom-options")||"",o=t.attr("data-flot-id")||"";""==o&&(o="rand_"+e.SOW.helper.randomStr(3,"N"),t.attr("id",o),t.attr("data-flot-id",o));var r=t.data("flot-label-1")||"Plot 1",a=t.data("flot-label-2")||"Plot 2",s=t.data("flot-label-3")||"Plot 3",l=t.data("flot-color-1")||"#6595b4",c=t.data("flot-color-2")||"#FF0000",d=t.data("flot-color-3")||"#FF0000",u=t.data("flot-border-color")||"#eaeaea",h=t.data("flot-type")||"fill",p=t.data("ajax-url")||"",f=t.data("flot-click")||"",m=t.data("flot-click-url")||"",g=t.data("flot-modal-size")||"modal-md",v=t.data("flot-modal-backdrop")||"",y=t.data("flot-modal-centered")||"false",b=(b=t.attr("data-flot-data-1"))?JSON.parse(b):null,w=(w=t.attr("data-flot-data-2"))?JSON.parse(w):null,_=(_=t.attr("data-flot-data-3"))?JSON.parse(_):null,S=t.data("flot-fill-2")||"false",O=t.data("flot-fill-3")||"false",x=t.data("flot-pie-data")||"",k=t.attr("data-flot-legend-show")||"true",E=(E=t.attr("data-flot-ticks"))?JSON.parse(E):null;if(""!=f&&t.bind("plotclick",(function(t,n,i){if(i){if(m+="&val_x="+i.datapoint[0]+"&val_y="+i.datapoint[1]+"&pos_x="+n.x+"&pos_y="+n.y,e.SOW.helper.consoleLog(m),"url"==f)return void(window.location=m);"callback"==f&&"function"==typeof flot_callback?flot_callback(t,n,i):"object"==typeof e.SOW.core.ajax_modal&&"modal"==f&&e.SOW.core.ajax_modal.createFromThinAir(m,g,y,v,(function(){setTimeout((function(){jQuery("#val_x").val(i.datapoint[0]),jQuery("#val_y").val(i.datapoint[1]),jQuery(".val_x").text(i.datapoint[0]),jQuery(".val_y").text(i.datapoint[1]),jQuery("#pos_x").val(n.x),jQuery("#pos_y").val(n.y),jQuery(".pos_x").text(n.x),jQuery(".pos_y").text(n.y),"function"==typeof flot_callback&&flot_callback(t,n,i)}),450)}))}})),""==n||""==i)if("object"!=typeof x){if(b)var C=[{data:b,label:r,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l}];if(w)C=[{data:b,label:r,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l},{data:w,label:a,lines:{show:"bar"!=h,fill:S+""=="true"},points:{show:"bar"!=h},color:c}];if(_)C=[{data:b,label:r,lines:{show:"bar"!=h},points:{show:"bar"!=h},color:l},{data:w,label:a,lines:{show:"bar"!=h,fill:S+""=="true"},points:{show:"bar"!=h},color:c},{data:_,label:s,lines:{show:"bar"!=h,fill:O+""=="true"},points:{show:"bar"!=h},color:d}];var T={grid:{mouseActiveRadius:"pie"==h?0:30,hoverable:!0,clickable:!0,borderWidth:0,tickColor:"pie"==h?null:u,borderColor:"pie"==h?null:u},tooltip:!0,tooltipOpts:{content:function(e,t,n,i){return e+": "+n+""},dateFormat:"%y-%0m-%0d",defaultTheme:!0},xaxis:{ticks:E,tickLength:5,mode:"time"},legend:{show:k+""=="true",noColumns:1,labelFormatter:null},series:{pie:{show:"pie"==h},bars:{show:"bar"==h,lineWidth:0,align:"center",barWidth:.5},lines:{show:"bar"!=h,lineWidth:1,fill:!0,fillColor:{colors:[{opacity:.1},{opacity:.15}]}},shadowSize:0,highlightColor:.5},selection:{mode:"x"}};p?e.SOW.vendor.flot.flotAjax(t,o,T):window[o]=jQuery.plot(t,C,T)}else window[o]=jQuery.plot(t,x,{grid:{hoverable:!0,clickable:!0},series:{pie:{show:!0},lines:{show:!0},shadowSize:0,highlightColor:.5},legend:{show:k+""!="false",noColumns:1,labelFormatter:null},tooltip:!0,tooltipOpts:{content:function(e,t,n,i){return e+": "+n+""},dateFormat:"%y-%0m-%0d",defaultTheme:!0}});else window[o]=jQuery.plot(t,flot_custom[n],flot_custom[i])}},flotAjax:function(t,n,i){var o=t.data("ajax-method")||e.SOW.vendor.flot.config.method,r=t.data("ajax-dataType")||e.SOW.vendor.flot.config.dataType,a=t.data("ajax-url")||"",s=t.data("ajax-params")||"",l=t.data("id")||"",c=t.data("ajax-update-interval")||0,d=e.SOW.vendor.flot.config.data_params;if(""!=a){if(""!=s)for(var u=e.SOW.helper.params_parse(s),h=0;hy.options.scales.yAxes[0].ticks.max&&(y.options.scales.yAxes[0].ticks.max=y.data.datasets[b].data[w]+10);y.data.datasets[b].borderColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointHoverRadius=4,y.data.datasets[b].pointHoverBorderWidth=12,y.data.datasets[b].borderWidth=1,y.data.datasets[b].pointBackgroundColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointBorderColor=y.data.datasets[b].backgroundColor,y.data.datasets[b].pointHoverBorderColor=y.data.datasets[b].backgroundColor,l+""=="false"&&!0===y.data.datasets[b].fill&&(y.data.datasets[b].pointBackgroundColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointBorderColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointHoverBackgroundColor="rgba(133, 133, 145, 0)",y.data.datasets[b].pointHoverBorderColor="rgba(133, 133, 145, 0)",y.data.datasets[b].borderWidth=0,y.data.datasets[b].borderColor="rgba(133, 133, 145, 0)",y.options.elements.point.radius=0),l+""=="false"&&(y.options.elements.point.radius=0),!1===y.data.datasets[b].fill&&(y.data.datasets[b].borderWidth=""!=h?Number(h):3)}v=y}else if("pie"==y.type||"doughnut"==y.type){var _=[],S=[],O=[];for(b=0;b0&&i.submit((function(){""==t.val()?t.parent().find("div.medium-editor").addClass("is-invalid"):t.parent().find("div.medium-editor").removeClass("is-invalid").addClass("is-valid")}))}var o=t.attr("id")||"",r=t.data("lng-save")||"Save",a=t.data("lng-clear")||"Clear",s=t.data("lng-cancel")||"Cancel",l=t.data("lng-link")||"Paste or type a link",c=t.attr("data-btn-picker")||"true",d=t.attr("data-btn-bold")||"true",u=t.attr("data-btn-italic")||"true",h=t.attr("data-btn-underline")||"true",p=t.attr("data-btn-link")||"true",f=t.attr("data-btn-h1")||"true",m=t.attr("data-btn-h2")||"true",g=t.attr("data-btn-h3")||"true",v=t.attr("data-btn-h4")||"true",y=t.attr("data-btn-h5")||"true",b=t.attr("data-btn-h6")||"true",w=t.attr("data-btn-unordered")||"true",_=t.attr("data-btn-ordered")||"true";if(""==o){o="rand_"+e.SOW.helper.randomStr(3);t.attr("id",o)}if(t.addClass("js-mediumified"),n[o],"object"!=typeof e.SOW.vendor.colorpicker)c="false";if(c+""=="true"){var S;if("function"!=typeof Pickr)var O=e.SOW.vendor.colorpicker.forceInit();var x=new(MediumEditor.extensions.button.extend({name:"colorPicker",action:"applyForeColor",aria:"color picker",contentDefault:'',init:function(){this.button=this.document.createElement("button"),this.button.classList.add("medium-editor-action"),this.button.innerHTML='',this.button,this.on(this.button,"click",this.handleClick.bind(this))},handleClick:function(e){S=n[o].exportSelection(),jQuery(this.button).prepend(''),setTimeout((function(){window[o]=Pickr.create({el:"."+O,theme:"nano",default:void 0!==window[o].lastColor?window[o].lastColor:"#121212",showAlways:!0,inline:!1,position:"bottom-middle",useAsButton:!0,defaultRepresentation:"HEXA",closeWithKey:"Escape",autoReposition:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{palette:!0,preview:!0,opacity:!0,hue:!0,interaction:{hex:!0,rgba:!0,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},strings:{save:r,clear:a,cancel:s}}).on("init",e=>{jQuery(".pcr-result, .pcr-type, .pcr-save, .pcr-clear").addClass("rounded")}).on("hide",e=>{}).on("show",(e,t)=>{jQuery(".pcr-app:not(.pcr-save):not(.pcr-cancel):not(.pcr-clear)").on("click",(function(e){e.preventDefault(),e.stopPropagation()})),jQuery(document).on("click",(function(){window[o].hide()}))}).on("save",(e,t)=>{window[o].getColor().toHEXA().join(",");var n=window[o].getColor().toHEXA().toString();k(n),window[o].lastColor=n,window[o].hide()}).on("clear",e=>{k("")}).on("change",(e,t)=>{}).on("changestop",e=>{}).on("cancel",e=>{}).on("swatchselect",(e,t)=>{})}),100),e.preventDefault(),e.stopPropagation();var t=this.getAction();t&&this.execAction(t)}}));function k(e){var t=e;x.base.importSelection(S),x.document.execCommand("styleWithCSS",!1,!0),""==e?x.document.execCommand("RemoveFormat"):x.document.execCommand("foreColor",!1,t)}}var E=[{name:"colorPicker"}];d+""=="true"&&E.push({name:"bold",contentDefault:"B"}),u+""=="true"&&E.push({name:"italic",contentDefault:"I"}),h+""=="true"&&E.push({name:"underline",contentDefault:"U"}),p+""=="true"&&E.push({name:"anchor",contentDefault:''}),f+""=="true"&&E.push("h1"),m+""=="true"&&E.push("h2"),g+""=="true"&&E.push("h3"),v+""=="true"&&E.push("h4"),y+""=="true"&&E.push("h5"),b+""=="true"&&E.push("h6"),w+""=="true"&&E.push({name:"unorderedlist",contentDefault:''}),_+""=="true"&&E.push({name:"orderedlist",contentDefault:''});var C={autoLink:!0,imageDragging:!1,targetBlank:!1,anchor:{linkValidation:!1,targetCheckbox:!1,placeholderText:l,targetCheckboxText:"Open in new window"},anchorPreview:{hideDelay:300},toolbar:{buttons:E},extensions:{colorPicker:c+""=="true"?x:null}};if(jQuery(".modal.show").length>0){if(""==(T=jQuery(".modal.show").attr("id")||"")){var T="rand_"+e.SOW.helper.randomStr(3);jQuery(".modal.show").attr("id",T)}C.elementsContainer=document.getElementById(T)}n[o]=new MediumEditor(this.selector_orig,C)}}}}(jQuery),function(e){"use strict";var t="Vendor Markdown Editor",n=[];e.SOW.vendor.markdowneditor={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("function"!=typeof EasyMDE){var o=e.SOW.helper.vendorLogicPaths("markdowneditor");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"function"!=typeof EasyMDE?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.vendor.markdowneditor.init(n,i),null)})),null)}var r=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);return this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==a?e.extend({},this.config,a):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.markdowneditor.process(e(this))})):(e.SOW.vendor.markdowneditor.process(e(".markdown-editor")),e(".markdown-editor"))},process:function(t){if(!t.hasClass("js-markdownified")){var i=t.attr("id")||"",o=t.data("toolbar")||"",r=t.data("status")||"",a=t.data("autosaved-ignore-if-content-present")||"false",s=t.data("lng-placeholder")||"",l=t.data("lng-prompt-url")||"Type your URL:",c=t.attr("data-min-height")||"500px",d=t.attr("data-autofocus")||"false",u=t.attr("data-spellcheck")||"false",h=t.attr("data-autosave")||"false",p=t.attr("data-autosave-delay")||1e3,f=t.attr("data-prompt-urls")||"true",m=t.val()||"";if(""==i){i="rand_"+e.SOW.helper.randomStr(3);t.attr("id",i)}t.addClass("js-markdownified"),n[i],n[i]=new EasyMDE({element:document.getElementById(i),autoDownloadFontAwesome:!0,forceSync:!0,autofocus:d+""=="true",autosave:{enabled:h+""=="true",uniqueId:"MESaved_"+i,delay:Number(p)},minHeight:c,spellChecker:u+""=="true",showIcons:!1,status:"object"==typeof r&&r,placeholder:s,toolbar:"object"==typeof o?o:["bold","italic","strikethrough","|","heading-1","heading-2","heading-3","|","image","link","|","unordered-list","ordered-list","quote","|","preview"],promptURLs:f+""=="true",promptTexts:{image:l,link:l}}),m.length>0&&a+""=="true"&&(n[i].value(m),t.val(m))}}}}(jQuery),function(e){"use strict";var t="Vendor Summernote Editor",n=[];e.SOW.vendor.summernoteeditor={config:{},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if(!jQuery().summernote){var o=e.SOW.helper.vendorLogicPaths("summernoteeditor");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return jQuery().summernote?(e.SOW.vendor.summernoteeditor.init(n,i),null):(e.SOW.helper.consoleLog("Vendor Missing : "+t),null)})),null)}var r=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);return this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==a?e.extend({},this.config,a):this.config,e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.vendor.summernoteeditor.process(e(this))})):(e.SOW.vendor.summernoteeditor.process(e(".summernote-editor")),e(".summernote-editor"))},process:function(t){if(!t.hasClass("js-summernotefied")){var i=t.attr("id")||"",o=t.data("placeholder")||"Type here...",r=t.data("min-height")||300,a=t.data("max-height")||1500,s=t.attr("data-focus")||"true",l=t.data("lang")||"en-US",c=t.data("ajax-url")||"",d=t.data("ajax-params")||"",u=t.data("toolbar")||"";if(""==i){i="rand_"+e.SOW.helper.randomStr(3);t.attr("id",i)}n[i],n[i]=t.addClass("js-summernotefied").summernote({placeholder:o,minHeight:r,maxHeight:a,focus:s+""=="true",lang:""!=l?l:"en-US",toolbar:"object"==typeof u?u:null,popover:{image:[],link:[],air:[]},callbacks:{onImageUpload:""!=c?function(t,n,i){for(var o=t.length-1;o>=0;o--)e.SOW.vendor.summernoteeditor.ajaxUpload(c,t[o],this,d)}:null}})}},ajaxUpload:function(t,n,i,o){if(""!=t){var r=new FormData;if(r.append("file",n),r.append("ajax","true"),o&&""!=o)for(var a=e.SOW.helper.params_parse(o),s=0;s',f=n.data("lng-csv")||"CSV",m=n.data("lng-pdf")||"PDF",g=n.data("lng-xls")||"XLS",v=n.data("lng-copy")||"Copy",y=n.data("lng-print")||"Print",b=n.data("lng-all")||"All",w=n.attr("data-column-search")||"false",_=n.attr("data-row-reorder")||"false",S=n.attr("data-col-reorder")||"false",O=n.attr("data-responsive")||"true",x=n.attr("data-header-fixed")||"false",k=n.attr("data-select-onclick")||"false",E=n.attr("data-main-search")||"true",C=n.attr("data-enable-paging")||"true",T=n.attr("data-enable-col-sorting")||"true",D=n.attr("data-autofill")||"false",j=n.attr("data-group")||"false",I=n.attr("data-custom")||"false",A=n.attr("data-items-per-page")||15;if(n.addClass("js-datatableified"),""==i){i="rand_"+e.SOW.helper.randomStr(3);n.attr("id",i)}if(t[i],I+""!="true"){w+""=="true"&&!1===e.SOW.globals.is_mobile&&(jQuery("#"+i+" thead tr").clone(!0).appendTo("#"+i+" thead"),jQuery("#"+i+" thead tr:eq(1) th").each((function(e){jQuery(this).text();jQuery(this).html(''),jQuery("input",this).on("keyup change",(function(){t[i].column(e).search()!==this.value&&t[i].column(e).search(this.value).draw()}))})));var W={rowReorder:_+""=="true"&&{selector:"tr td:not(:first-child)"},colReorder:S+""=="true",fixedHeader:x+""=="true",select:k+""=="true",orderCellsTop:!0,ordering:T+""=="true",paging:C+""=="true",searching:E+""=="true",pageLength:Number(A),lengthMenu:[[10,15,30,50,100,-1],[10,15,30,50,100,b]],autoFill:D+""!="false"&&{focus:D},oLanguage:{oAria:{sSortAscending:d||"",sSortDescending:u||""},oPaginate:{sFirst:'',sLast:'',sNext:'',sPrevious:''},sEmptyTable:o||"",sInfo:r||"",sInfoEmpty:"",sInfoFiltered:"",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_",sLoadingRecords:a||"",sProcessing:s||"",sSearch:"",sSearchPlaceholder:l||"",sUrl:"",sZeroRecords:c||""},dom:"<'row mb-3'<'col-sm-12 col-md-6 d-flex align-items-center justify-content-start'f l><'col-sm-12 col-md-6 d-flex align-items-center justify-content-end'B>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",buttons:[{extend:"colvis",text:h,titleAttr:h,className:"btn-sm btn-light"},{extend:"collection",text:p,className:"btn-sm btn-light pt--6 pb--6",buttons:[{extend:"csvHtml5",text:f},{extend:"pdfHtml5",text:m},{extend:"excelHtml5",text:g},{extend:"copyHtml5",text:v},{extend:"print",text:y}]}]};j+""=="true"&&(W.pageLength=15,W.order=[[2,"desc"]],W.rowGroup={dataSrc:2}),O+""=="true"?W.responsive=!0:O+""=="extended"&&(W.responsive={details:{display:e.fn.dataTable.Responsive.display.modal({header:function(e){var t=e.data();return"Details for "+t[0]+" "+t[1]}}),renderer:e.fn.dataTable.Responsive.renderer.tableAll({tableClass:"table table-responsive"})}});var M=e.SOW.helper.vendorLogicPaths("datatables");""!=M.path_js&&(M.path_js=M.path_js.replace("datatables.min","pdfmake.min"),e.SOW.helper.loadScript([M.path_js],!1,!0).done((function(){t[i]=n.DataTable(W),e.SOW.vendor.datatables.clickEvents(t[i])})))}}},clickEvents:function(e){if(!t)var t=jQuery("#event_log");e.on("key",(function(e,n,i,o,r){t.prepend('
Key press  '+i+" • "+o.data()+"
")})).on("key-focus",(function(e,n,i){t.prepend('
Item click  '+i.data()+"
")})).on("key-blur",(function(e,n,i){t.prepend('
Item blur  '+i.data()+"
")}))},miscOptions:function(){var t=e.SOW.globals.elHeader.outerHeight();e("head").append('")}}}(jQuery),function(e){"use strict";var t="Vendor Prism [Code Highlighter]";e.SOW.vendor.prismjs={config:{NormalizeWhitespace:{"remove-trailing":!1,"remove-indent":!1,"left-trim":!1,"right-trim":!1,indent:0,"remove-initial-line-feed":!1,"tabs-to-spaces":2,"spaces-to-tabs":2}},collection:e(),init:function(n,i){if(""!=n&&jQuery(n).length<1)return null;if("object"!=typeof Prism){window.Prism=window.Prism||{},window.Prism.manual=!0;var o=e.SOW.helper.vendorLogicPaths("prismjs");return""==o.path_js?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(e.SOW.helper.loadScript([o.path_js],!1,!0).done((function(){return"object"!=typeof Prism?(e.SOW.helper.consoleLog("Vendor Missing : "+t),null):(Prism.plugins.NormalizeWhitespace.setDefaults(e.SOW.vendor.prismjs.config.NormalizeWhitespace),e.SOW.vendor.prismjs.init(n,i),null)})),null)}var r=e.SOW.helper.__selector(n),a=e.SOW.helper.check_var(i);this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==a?e.extend({},this.config,a):this.config,e.SOW.helper.consoleLog("Init : "+t),e.SOW.vendor.prismjs.process()},process:function(){jQuery("pre.xdebug-var-dump").addClass("language-php"),Prism.highlightAll()}}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e,t;function n(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},Y={};function V(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(Y[e]=o),t&&(Y[t[0]]=function(){return P(o.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=z(t,e.localeData()),$[t]=$[t]||function(e){var t,n,i,o=e.match(H);for(t=0,n=o.length;t=0&&R.test(e);)e=e.replace(R,i),R.lastIndex=0,n-=1;return e}var Q=/\d/,B=/\d\d/,U=/\d{3}/,G=/\d{4}/,q=/[+-]?\d{6}/,X=/\d\d?/,K=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[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,se={};function le(e,t,n){se[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return c(se,e)?se[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,o){return t||n||i||o}))))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ue={};function he(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),a(t)&&(i=function(e,n){n[t]=_(e)}),n=0;n68?1900:2e3)};var Ee,Ce=Te("FullYear",!0);function Te(e,t){return function(i){return null!=i?(je(this,e,i),n.updateOffset(this,t),this):De(this,e)}}function De(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function je(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?ke(e)?29:28:31-i%7%2}Ee=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,i,o,r,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,o,r,a),s}function Ve(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Fe(e,t,n){var i=7+t-n;return-((7+Ve(e,0,i).getUTCDay()-t)%7)+i-1}function ze(e,t,n,i,o){var r,a,s=1+7*(t-1)+(7+n-i)%7+Fe(e,i,o);return s<=0?a=xe(r=e-1)+s:s>xe(e)?(r=e+1,a=s-xe(e)):(r=e,a=s),{year:r,dayOfYear:a}}function Qe(e,t,n){var i,o,r=Fe(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+Be(o=e.year()-1,t,n):a>Be(e.year(),t,n)?(i=a-Be(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Be(e,t,n){var i=Fe(e,t,n),o=Fe(e+1,t,n);return(xe(e)-i+o)/7}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),N("week",5),N("isoWeek",5),le("w",X),le("ww",X,B),le("W",X),le("WW",X,B),pe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=_(e)}));function Ue(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("d",0,"do","day"),V("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),V("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),V("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,i){t[i]=_(e)}));var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Ke(e,t,n){var i,o,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=u([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"===t?-1!==(o=Ee.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ee.call(this._minWeekdaysParse,a))?o:-1!==(o=Ee.call(this._weekdaysParse,a))?o:-1!==(o=Ee.call(this._shortWeekdaysParse,a))?o:null}var Ze=ae;var Je=ae;var et=ae;function tt(){function e(e,t){return t.length-e.length}var t,n,i,o,r,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),s.push(o),l.push(r),c.push(i),c.push(o),c.push(r);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function it(e,t){V(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,nt),V("k",["kk",2],0,(function(){return this.hours()||24})),V("hmm",0,0,(function(){return""+nt.apply(this)+P(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+nt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),it("a",!0),it("A",!1),A("hour","h"),N("hour",13),le("a",ot),le("A",ot),le("H",X),le("h",X),le("k",X),le("HH",X,B),le("hh",X,B),le("kk",X,B),le("hmm",K),le("hmmss",Z),le("Hmm",K),le("Hmmss",Z),he(["H","HH"],ye),he(["k","kk"],(function(e,t,n){var i=_(e);t[ye]=24===i?0:i})),he(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),he(["h","hh"],(function(e,t,n){t[ye]=_(e),h(n).bigHour=!0})),he("hmm",(function(e,t,n){var i=e.length-2;t[ye]=_(e.substr(0,i)),t[be]=_(e.substr(i)),h(n).bigHour=!0})),he("hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[ye]=_(e.substr(0,i)),t[be]=_(e.substr(i,2)),t[we]=_(e.substr(o)),h(n).bigHour=!0})),he("Hmm",(function(e,t,n){var i=e.length-2;t[ye]=_(e.substr(0,i)),t[be]=_(e.substr(i))})),he("Hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[ye]=_(e.substr(0,i)),t[be]=_(e.substr(i,2)),t[we]=_(e.substr(o))}));var rt,at=Te("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:We,monthsShort:Me,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:Xe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},lt={},ct={};function dt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(e){var t=null;if(!lt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=rt._abbr,require("./locale/"+e),ht(t)}catch(e){}return lt[e]}function ht(e,t){var n;return e&&((n=r(t)?ft(e):pt(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function pt(e,t){if(null!==t){var n,i=st;if(t.abbr=e,null!=lt[e])C("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=lt[e]._config;else if(null!=t.parentLocale)if(null!=lt[t.parentLocale])i=lt[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=n._config}return lt[e]=new j(D(i,t)),ct[e]&&ct[e].forEach((function(e){pt(e.name,e.config)})),ht(e),lt[e]}return delete lt[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,i,o,r=0;r0;){if(i=ut(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&S(o,n,!0)>=t-1)break;t--}r++}return rt}(e)}function mt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>Ie(n[me],n[ge])?ve:n[ye]<0||n[ye]>24||24===n[ye]&&(0!==n[be]||0!==n[we]||0!==n[_e])?ye:n[be]<0||n[be]>59?be:n[we]<0||n[we]>59?we:n[_e]<0||n[_e]>999?_e:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Se),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}function gt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,i,o,r,a,s=[];if(!e._d){for(o=function(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ge]&&function(e){var t,n,i,o,r,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,a=4,n=gt(t.GG,e._a[me],Qe(At(),1,4).year),i=gt(t.W,1),((o=gt(t.E,1))<1||o>7)&&(l=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var c=Qe(At(),r,a);n=gt(t.gg,e._a[me],c.year),i=gt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r}i<1||i>Be(n,r,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=ze(n,i,o,r,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[me],o[me]),(e._dayOfYear>xe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),i=Ve(a,0,e._dayOfYear),e._a[ge]=i.getUTCMonth(),e._a[ve]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ye]&&0===e._a[be]&&0===e._a[we]&&0===e._a[_e]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Ve:Ye).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(h(e).weekdayMismatch=!0)}}var yt=/^\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)?)?$/,bt=/^\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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["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}/]],St=[["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/]],Ot=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,i,o,r,a,s=e._i,l=yt.exec(s)||bt.exec(s);if(l){for(h(e).iso=!0,t=0,n=_t.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),c+=i.length),Y[r]?(i?h(e).empty=!1:h(e).unusedTokens.push(r),fe(r,i,e)):e._strict&&!i&&h(e).unusedTokens.push(r);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[ye]<=12&&!0===h(e).bigHour&&e._a[ye]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ye]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[ye],e._meridiem),vt(e),mt(e)}else Tt(e);else xt(e)}function jt(e){var t=e._i,c=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===c&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new y(mt(t)):(s(t)?e._d=t:i(c)?function(e){var t,n,i,o,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:f()}));function Lt(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],o=1;o=0?new Date(e+400,t,n)-cn:new Date(e,t,n).valueOf()}function hn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cn:Date.UTC(e,t,n)}function pn(e,t){V(0,[e,e.length],0,t)}function fn(e,t,n,i,o){var r;return null==e?Qe(this,i,o).year:(t>(r=Be(e,i,o))&&(t=r),mn.call(this,e,t,n,i,o))}function mn(e,t,n,i,o){var r=ze(e,t,n,i,o),a=Ve(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),le("G",ie),le("g",ie),le("GG",X,B),le("gg",X,B),le("GGGG",ee,G),le("gggg",ee,G),le("GGGGG",te,q),le("ggggg",te,q),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=_(e)})),pe(["gg","GG"],(function(e,t,i,o){t[o]=n.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),A("quarter","Q"),N("quarter",7),le("Q",Q),he("Q",(function(e,t){t[ge]=3*(_(e)-1)})),V("D",["DD",2],"Do","date"),A("date","D"),N("date",9),le("D",X),le("DD",X,B),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),he(["D","DD"],ve),he("Do",(function(e,t){t[ve]=_(e.match(X)[0])}));var gn=Te("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),N("dayOfYear",4),le("DDD",J),le("DDDD",U),he(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=_(e)})),V("m",["mm",2],0,"minute"),A("minute","m"),N("minute",14),le("m",X),le("mm",X,B),he(["m","mm"],be);var vn=Te("Minutes",!1);V("s",["ss",2],0,"second"),A("second","s"),N("second",15),le("s",X),le("ss",X,B),he(["s","ss"],we);var yn,bn=Te("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),A("millisecond","ms"),N("millisecond",16),le("S",J,Q),le("SS",J,B),le("SSS",J,U),yn="SSSS";yn.length<=9;yn+="S")le(yn,ne);function wn(e,t){t[_e]=_(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")he(yn,wn);var _n=Te("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var Sn=y.prototype;function On(e){return e}Sn.add=Jt,Sn.calendar=function(e,t){var i=e||At(),o=Ft(i,this).startOf("day"),r=n.calendarFormat(this,o)||"sameElse",a=t&&(T(t[r])?t[r].call(this,i):t[r]);return this.format(a||this.localeData().calendar(r,this,At(i)))},Sn.clone=function(){return new y(this)},Sn.diff=function(e,t,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=Ft(e,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=W(t)){case"year":r=tn(this,i)/12;break;case"month":r=tn(this,i);break;case"quarter":r=tn(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:w(r)},Sn.endOf=function(e){var t;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?hn:un;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ln-dn(t+(this._isUTC?0:this.utcOffset()*sn),ln)-1;break;case"minute":t=this._d.valueOf(),t+=sn-dn(t,sn)-1;break;case"second":t=this._d.valueOf(),t+=an-dn(t,an)-1}return this._d.setTime(t),n.updateOffset(this,!0),this},Sn.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},Sn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||At(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.fromNow=function(e){return this.from(At(),e)},Sn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||At(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.toNow=function(e){return this.to(At(),e)},Sn.get=function(e){return T(this[e=W(e)])?this[e]():this},Sn.invalidAt=function(){return h(this).overflow},Sn.isAfter=function(e,t){var n=b(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)},Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.year=Ce,Sn.isLeapYear=function(){return ke(this.year())},Sn.weekYear=function(e){return fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(e){return fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Sn.month=Pe,Sn.daysInMonth=function(){return Ie(this.year(),this.month())},Sn.week=Sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Sn.isoWeek=Sn.isoWeeks=function(e){var t=Qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Sn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},Sn.isoWeeksInYear=function(){return Be(this.year(),1,4)},Sn.date=gn,Sn.day=Sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Sn.hour=Sn.hours=at,Sn.minute=Sn.minutes=vn,Sn.second=Sn.seconds=bn,Sn.millisecond=Sn.milliseconds=_n,Sn.utcOffset=function(e,t,i){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Vt(re,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(o=zt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Zt(this,Gt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:zt(this)},Sn.utc=function(e){return this.utcOffset(0,e)},Sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=Qt,Sn.isUTC=Qt,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=x("dates accessor is deprecated. Use date instead.",gn),Sn.months=x("months accessor is deprecated. Use month instead",Pe),Sn.years=x("years accessor is deprecated. Use year instead",Ce),Sn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Sn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=jt(e))._a){var t=e._isUTC?u(e._a):At(e._a);this._isDSTShifted=this.isValid()&&S(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var xn=j.prototype;function kn(e,t,n,i){var o=ft(),r=u().set(i,t);return o[n](r,e)}function En(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return kn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=kn(e,i,n,"month");return o}function Cn(e,t,n,i){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var o,r=ft(),s=e?r._week.dow:0;if(null!=n)return kn(t,(n+s)%7,i,"day");var l=[];for(o=0;o<7;o++)l[o]=kn(t,(o+s)%7,i,"day");return l}xn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},xn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},xn.invalidDate=function(){return this._invalidDate},xn.ordinal=function(e){return this._ordinal.replace("%d",e)},xn.preparse=On,xn.postformat=On,xn.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return T(o)?o(e,t,n,i):o.replace(/%d/i,e)},xn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},xn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},xn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},xn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},xn.monthsParse=function(e,t,n){var i,o,r;if(this._monthsParseExact)return Le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=u([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]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},xn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||$e.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},xn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||$e.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=He),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},xn.week=function(e){return Qe(e,this._week.dow,this._week.doy).week},xn.firstDayOfYear=function(){return this._week.doy},xn.firstDayOfWeek=function(){return this._week.dow},xn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ue(n,this._week.dow):e?n[e.day()]:n},xn.weekdaysMin=function(e){return!0===e?Ue(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},xn.weekdaysShort=function(e){return!0===e?Ue(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},xn.weekdaysParse=function(e,t,n){var i,o,r;if(this._weekdaysParseExact)return Ke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=u([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]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},xn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},xn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},xn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},xn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},xn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ht("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",ht),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ft);var Tn=Math.abs;function Dn(e,t,n,i){var o=Gt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function jn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Wn(e){return function(){return this.as(e)}}var Mn=Wn("ms"),Ln=Wn("s"),Nn=Wn("m"),Pn=Wn("h"),Hn=Wn("d"),Rn=Wn("w"),$n=Wn("M"),Yn=Wn("Q"),Vn=Wn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Fn("milliseconds"),Qn=Fn("seconds"),Bn=Fn("minutes"),Un=Fn("hours"),Gn=Fn("days"),qn=Fn("months"),Xn=Fn("years");var Kn=Math.round,Zn={ss:44,s:45,m:45,h:22,d:26,M:11};function Jn(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}var ei=Math.abs;function ti(e){return(e>0)-(e<0)||+e}function ni(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=ei(this._milliseconds)/1e3,i=ei(this._days),o=ei(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var r=w(o/12),a=o%=12,s=i,l=t,c=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",p=ti(this._months)!==ti(u)?"-":"",f=ti(this._days)!==ti(u)?"-":"",m=ti(this._milliseconds)!==ti(u)?"-":"";return h+"P"+(r?p+r+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var ii=Pt.prototype;return ii.isValid=function(){return this._isValid},ii.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},ii.add=function(e,t){return Dn(this,e,t,1)},ii.subtract=function(e,t){return Dn(this,e,t,-1)},ii.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ii.asMilliseconds=Mn,ii.asSeconds=Ln,ii.asMinutes=Nn,ii.asHours=Pn,ii.asDays=Hn,ii.asWeeks=Rn,ii.asMonths=$n,ii.asQuarters=Yn,ii.asYears=Vn,ii.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},ii._bubble=function(){var e,t,n,i,o,r=this._milliseconds,a=this._days,s=this._months,l=this._data;return r>=0&&a>=0&&s>=0||r<=0&&a<=0&&s<=0||(r+=864e5*jn(An(s)+a),a=0,s=0),l.milliseconds=r%1e3,e=w(r/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,a+=w(n/24),s+=o=w(In(a)),a-=jn(An(o)),i=w(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},ii.clone=function(){return Gt(this)},ii.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},ii.milliseconds=zn,ii.seconds=Qn,ii.minutes=Bn,ii.hours=Un,ii.days=Gn,ii.weeks=function(){return w(this.days()/7)},ii.months=qn,ii.years=Xn,ii.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Gt(e).abs(),o=Kn(i.as("s")),r=Kn(i.as("m")),a=Kn(i.as("h")),s=Kn(i.as("d")),l=Kn(i.as("M")),c=Kn(i.as("y")),d=o<=Zn.ss&&["s",o]||o0,d[4]=n,Jn.apply(null,d)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=nn,ii.localeData=rn,ii.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=on,V("X",0,0,"unix"),V("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),he("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),he("x",(function(e,t,n){n._d=new Date(_(e))})),n.version="2.24.0",e=At,n.fn=Sn,n.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=u,n.unix=function(e){return At(1e3*e)},n.months=function(e,t){return En(e,t,"months")},n.isDate=s,n.locale=ht,n.invalid=f,n.duration=Gt,n.isMoment=b,n.weekdays=function(e,t,n){return Cn(e,t,n,"weekdays")},n.parseZone=function(){return At.apply(null,arguments).parseZone()},n.localeData=ft,n.isDuration=Ht,n.monthsShort=function(e,t){return En(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return Cn(e,t,n,"weekdaysMin")},n.defineLocale=pt,n.updateLocale=function(e,t){if(null!=t){var n,i,o=st;null!=(i=ut(e))&&(o=i._config),(n=new j(t=D(o,t))).parentLocale=lt[e],lt[e]=n,ht(e)}else null!=lt[e]&&(null!=lt[e].parentLocale?lt[e]=lt[e].parentLocale:null!=lt[e]&&delete lt[e]);return lt[e]},n.locales=function(){return k(lt)},n.weekdaysShort=function(e,t,n){return Cn(e,t,n,"weekdaysShort")},n.normalizeUnits=W,n.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==Zn[e]&&(void 0===t?Zn[e]:(Zn[e]=t,"s"===e&&(Zn.ss=t-1),!0))},n.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=Sn,n.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"},n})),function(e,t){if("function"==typeof define&&define.amd)define([],t);else if("undefined"!=typeof exports)t();else{t(),e.FileSaver={}}}(this,(function(){"use strict";var e="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0;function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype?function(o,r,a){var s=e.URL||e.webkitURL,l=document.createElement("a");r=r||o.name||"download",l.download=r,l.rel="noopener","string"==typeof o?(l.href=o,l.origin!==location.origin?n(l.href)?t(o,r,a):i(l,l.target="_blank"):i(l)):(l.href=s.createObjectURL(o),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,o,r){if(o=o||e.name||"download","string"==typeof e)if(n(e))t(e,o,r);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),o)}:function(n,i,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof n)return t(n,i,o);var a="application/octet-stream"===n.type,s=/constructor/i.test(e.HTMLElement)||e.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},c.readAsDataURL(n)}else{var d=e.URL||e.webkitURL,u=d.createObjectURL(n);r?r.location=u:location.href=u,r=null,setTimeout((function(){d.revokeObjectURL(u)}),4e4)}});e.saveAs=o.saveAs=o,"undefined"!=typeof module&&(module.exports=o)})),$.SOW.config["vendor:external_css"]||($.SOW.config["vendor:external_css"]=[]),$.SOW.config["vendor:external_css"].vendor=["flickity","fancybox","cocoen","photoswipe","swiper","leaflet","fullcalendar","datepicker","daterangepicker","colorpicker","flot","chartjs","mediumeditor","markdowneditor","summernoteeditor","datatables","prismjs"],$.SOW.config.autoinit.jarallax=["$.SOW.vendor.jarallax.init",".jarallax",null,!0],$.SOW.config.autoinit.sticky_kit=["$.SOW.vendor.sticky_kit.init",".sticky-kit",null,!0],$.SOW.config.autoinit.sortable=["$.SOW.vendor.sortable.init",".sortable",null,!0],$.SOW.config.autoinit.bootstrap_select=["$.SOW.vendor.bootstrap_select.init","select.bs-select",null,!0],$.SOW.config.autoinit.typed=["$.SOW.vendor.typed.init",".typed",null,!0],$.SOW.config.autoinit.flickity=["$.SOW.vendor.flickity.init","div[data-flickity]",null,!0],$.SOW.config.autoinit.fancybox=["$.SOW.vendor.fancybox.init","a.fancybox",null,!0],$.SOW.config.autoinit.cocoen=["$.SOW.vendor.cocoen.init","figure.cocoen",null,!0],$.SOW.config.autoinit.photoswipe=["$.SOW.vendor.photoswipe.init","a.photoswipe",{showHideOpacity:!1,history:!1,captionEl:!1,shareEl:!1,tapToClose:!1,tapToToggleControls:!1,escKey:!0,barsSize:{top:0,bottom:0}},!0],$.SOW.config.autoinit.swiper=["$.SOW.vendor.swiper.init",".swiper-container",null,!0],$.SOW.config.autoinit.leaflet=["$.SOW.vendor.leaflet.init",".map-leaflet",null,!0],$.SOW.config.autoinit.aos=["$.SOW.vendor.aos.init","null",null,!0],$.SOW.config.autoinit.slimscroll=["$.SOW.vendor.slimscroll.init",".slimscroll",{height:"100%",color:"#444",size:"3px",railColor:"#ccc",railOpacity:.5,alwaysVisible:!1,railVisible:!0,distance:"0",wheelStep:10,allowPageScroll:!1,disableFadeOut:!1},!0],$.SOW.config.autoinit.nestable=["$.SOW.vendor.nestable.init",".nestable",null,!0],$.SOW.config.autoinit.fullcalendar=["$.SOW.vendor.fullcalendar.init",".fullcalendar",{plugins:["interaction","dayGrid","timeGrid","list","bootstrap","googleCalendar"],editable:!0,eventLimit:!0,locale:"en",themeSystem:"bootstrap",defaultView:"dayGridMonth",defaultDate:"2020-02-05T08:52:00.835Z",timeZone:"UTC",header:{left:"prev,next today, addEventButton",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay,listWeek"},buttonText:{today:"today",month:"month",week:"week",day:"day",list:"list"},eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"}},!0],$.SOW.config.autoinit.datepicker=["$.SOW.vendor.datepicker.init",".datepicker",null,!0],$.SOW.config.autoinit.daterangepicker=["$.SOW.vendor.daterangepicker.init",".rangepicker",null,!0],$.SOW.config.autoinit.colorpicker=["$.SOW.vendor.colorpicker.init",".colorpicker",{classic:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)","rgba(0, 188, 212, 0.7)","rgba(0, 150, 136, 0.75)","rgba(76, 175, 80, 0.8)","rgba(139, 195, 74, 0.85)","rgba(205, 220, 57, 0.9)","rgba(255, 235, 59, 0.95)","rgba(255, 193, 7, 1)"]},monolith:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)"]},nano:{swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 0.95)","rgba(156, 39, 176, 0.9)","rgba(103, 58, 183, 0.85)","rgba(63, 81, 181, 0.8)","rgba(33, 150, 243, 0.75)","rgba(3, 169, 244, 0.7)"]},interaction:{hex:!0,rgba:!0,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},!0],$.SOW.config.autoinit.flot=["$.SOW.vendor.flot.init",".flot-chart",null,!0],$.SOW.config.autoinit.easypie=["$.SOW.vendor.easypie.init",".easypie",null,!0],$.SOW.config.autoinit.sparkline=["$.SOW.vendor.sparkline.init",".sparkline",null,!0],$.SOW.config.autoinit.chartjs=["$.SOW.vendor.chartjs.init",".chartjs",null,!0],$.SOW.config.autoinit.mediumeditor=["$.SOW.vendor.mediumeditor.init",".medium-editor",null,!0],$.SOW.config.autoinit.markdowneditor=["$.SOW.vendor.markdowneditor.init",".markdown-editor",null,!0],$.SOW.config.autoinit.summernoteeditor=["$.SOW.vendor.summernoteeditor.init",".summernote-editor",null,!0],$.SOW.config.autoinit.datatables=["$.SOW.vendor.datatables.init",".table-datatable",null,!0],$.SOW.config.autoinit.prismjs=["$.SOW.vendor.prismjs.init","pre",null,!0],$.SOW.config["vendor:external_js"]||($.SOW.config["vendor:external_js"]=[]),$.SOW.config["vendor:external_js"].vendor=["flickity","fancybox","cocoen","photoswipe","swiper","leaflet","fullcalendar","datepicker","daterangepicker","colorpicker","flot","easypie","sparkline","chartjs","mediumeditor","markdowneditor","summernoteeditor","datatables","prismjs","pdfmake"];