function getLinkPropValue(a,b,c,d){var e="";if(b.content)if(b.content.target)e=c+b.content[d]+"'";else{var f=b.content[a];if(f&&f[bluetrix.getLang()])if(f[bluetrix.getLang()][d]&&""!=f[bluetrix.getLang()][d])e+=c+f[bluetrix.getLang()][d]+"'";else{var g=f[bluetrix.getLang()];"def"==g.type&&(e+=c+f[bluetrix.getDefLang()][d]+"'"),null!=f[bluetrix.getDefLang()][d]&&void 0!=f[bluetrix.getDefLang()][d]||(e="")}}return e}function inheritPrototype(a,b){var c=Object.create(b.prototype);c.constructor=a,a.prototype=c}function GdprInterface(){this.shouldShow()&&this.init()}function CookieNotice(){GdprInterface.call(this)}function PrivacyPreference(){this.presetAcceptedCookies(),this.presetMode(),this.init()}function formElementModule(a){Module.call(this,a)}function Container(a){this.data={},this.owner=a,this.element=a.element.find(".bluetrix-container"),this.modules=[],this.init()}function ImageLazyLoader(a){this.container=a,this.images=[],this.observer=void 0,this.responsiveImageSelector="img[data-src]",this.responsivePictureSelector="picture[data-lazyload]",this.init(),this.bindEvents()}function inheritPrototype(a,b){var c=Object.create(b.prototype);c.constructor=a,a.prototype=c}function absolutecontainerModule(a){this.rescaleModules=!0,this.repositionFunctName="repositionInAbsContainer",Module.call(this,a)}function allpublicationsModule(a){Module.call(this,a),this.itemTemplateName="allpublicationsitem-template"}function bfcatalogsModule(a){Module.call(this,a)}function bfsliderModule(a){Module.call(this,a)}function bfslideritemModule(a){absolutecontainerModule.call(this,a),this.rescaleModules=!0,this.repositionFunctName="repositionInAbsContainer"}function bftotopModule(a){Module.call(this,a)}function boxpublicationsModule(a){Module.call(this,a)}function containerModule(a){Module.call(this,a)}function cookiesModule(a){Module.call(this,a),this.cookiesName="cookiesAccepted"}function expandedtextModule(a){Module.call(this,a)}function footercontainerModule(a){Module.call(this,a)}function footersearchModule(a){Module.call(this,a)}function formcheckboxModule(a){Module.call(this,a)}function formcheckboxgroupModule(a){Module.call(this,a)}function formcontainerModule(a){Module.call(this,a)}function formdropzoneModule(a){Module.call(this,a)}function forminputModule(a){Module.call(this,a)}function formradioModule(a){Module.call(this,a)}function formradiogroupModule(a){Module.call(this,a)}function formselectModule(a){Module.call(this,a)}function formsubmitModule(a){Module.call(this,a)}function formtextareaModule(a){Module.call(this,a)}function fullcontainerModule(a){containerModule.call(this,a)}function htmlcontainerModule(a){Module.call(this,a)}function languageswitcherModule(a){Module.call(this,a)}function latestpublicationsModule(a){Module.call(this,a)}function mapbuttonModule(a){Module.call(this,a)}function menucontainerModule(a){Module.call(this,a)}function menuextendModule(a){Module.call(this,a)}function menuitemModule(a){Module.call(this,a)}function menusimpleModule(a){Module.call(this,a)}function multiimagefullcontainerModule(a){fullcontainerModule.call(this,a)}function newsModule(a){Module.call(this,a)}function newsdetailModule(a){Module.call(this,a)}function newsitemModule(a){Module.call(this,a)}function newslistModule(a){Module.call(this,a),this.itemTemplateName="newslistitem-template"}function newslettercontainerModule(a){formcontainerModule.call(this,a)}function searchcontentresultsModule(a){Module.call(this,a)}function sitestructureModule(a){Module.call(this,a)}function socialitemModule(a){Module.call(this,a)}function socialshareModule(a){Module.call(this,a)}function socialsidebarModule(a){Module.call(this,a)}function tabscontainerModule(a){Module.call(this,a),this.tabsItem=[],this.tabsItemTemplate=$("#tabsitem-template").html()}function tabsitemModule(a){Module.call(this,a)}function textimageModule(a){Module.call(this,a)}function twitterwidgetModule(a){Module.call(this,a)}function videoModule(a){Module.call(this,a)}function videofullcontainerModule(a){fullcontainerModule.call(this,a)}function wallcontainerModule(a){Module.call(this,a)}function wallelementModule(a){Module.call(this,a)}if(function(){"use strict";function a(a){this.time=a.time,this.target=a.target,this.rootBounds=a.rootBounds,this.boundingClientRect=a.boundingClientRect,this.intersectionRect=a.intersectionRect||i(),this.isIntersecting=!!a.intersectionRect;var b=this.boundingClientRect,c=b.width*b.height,d=this.intersectionRect,e=d.width*d.height;this.intersectionRatio=c?Number((e/c).toFixed(4)):this.isIntersecting?1:0}function b(a,b){var c=b||{};if("function"!=typeof a)throw new Error("callback must be a function");if(c.root&&1!=c.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=d(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=a,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(c.rootMargin),this.thresholds=this._initThresholds(c.threshold),this.root=c.root||null,this.rootMargin=this._rootMarginValues.map(function(a){return a.value+a.unit}).join(" ")}function c(){return window.performance&&performance.now&&performance.now()}function d(a,b){var c=null;return function(){c||(c=setTimeout(function(){a(),c=null},b))}}function e(a,b,c,d){"function"==typeof a.addEventListener?a.addEventListener(b,c,d||!1):"function"==typeof a.attachEvent&&a.attachEvent("on"+b,c)}function f(a,b,c,d){"function"==typeof a.removeEventListener?a.removeEventListener(b,c,d||!1):"function"==typeof a.detatchEvent&&a.detatchEvent("on"+b,c)}function g(a,b){var c=Math.max(a.top,b.top),d=Math.min(a.bottom,b.bottom),e=Math.max(a.left,b.left),f=Math.min(a.right,b.right),g=f-e,h=d-c;return g>=0&&h>=0&&{top:c,bottom:d,left:e,right:f,width:g,height:h}}function h(a){var b;try{b=a.getBoundingClientRect()}catch(c){}return b?(b.width&&b.height||(b={top:b.top,right:b.right,bottom:b.bottom,left:b.left,width:b.right-b.left,height:b.bottom-b.top}),b):i()}function i(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(a,b){for(var c=b;c;){if(c==a)return!0;c=k(c)}return!1}function k(a){var b=a.parentNode;return b&&11==b.nodeType&&b.host?b.host:b&&b.assignedSlot?b.assignedSlot.parentNode:b}if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var l=window.document,m=[];b.prototype.THROTTLE_TIMEOUT=100,b.prototype.POLL_INTERVAL=null,b.prototype.USE_MUTATION_OBSERVER=!0,b.prototype.observe=function(a){if(!this._observationTargets.some(function(b){return b.element==a})){if(!a||1!=a.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:a,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},b.prototype.unobserve=function(a){this._observationTargets=this._observationTargets.filter(function(b){return b.element!=a}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},b.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},b.prototype.takeRecords=function(){var a=this._queuedEntries.slice();return this._queuedEntries=[],a},b.prototype._initThresholds=function(a){var b=a||[0];return Array.isArray(b)||(b=[b]),b.sort().filter(function(a,b,c){if("number"!=typeof a||isNaN(a)||a<0||a>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return a!==c[b-1]})},b.prototype._parseRootMargin=function(a){var b=a||"0px",c=b.split(/\s+/).map(function(a){var b=/^(-?\d*\.?\d+)(px|%)$/.exec(a);if(!b)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(b[1]),unit:b[2]}});return c[1]=c[1]||c[0],c[2]=c[2]||c[0],c[3]=c[3]||c[1],c},b.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(e(window,"resize",this._checkForIntersections,!0),e(l,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(l,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},b.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,f(window,"resize",this._checkForIntersections,!0),f(l,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},b.prototype._checkForIntersections=function(){var b=this._rootIsInDom(),d=b?this._getRootRect():i();this._observationTargets.forEach(function(e){var f=e.element,g=h(f),i=this._rootContainsTarget(f),j=e.entry,k=b&&i&&this._computeTargetAndRootIntersection(f,d),l=e.entry=new a({time:c(),target:f,boundingClientRect:g,rootBounds:d,intersectionRect:k});j?b&&i?this._hasCrossedThreshold(j,l)&&this._queuedEntries.push(l):j&&j.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},b.prototype._computeTargetAndRootIntersection=function(a,b){if("none"!=window.getComputedStyle(a).display){for(var c=h(a),d=c,e=k(a),f=!1;!f;){var i=null,j=1==e.nodeType?window.getComputedStyle(e):{};if("none"==j.display)return;if(e==this.root||e==l?(f=!0,i=b):e!=l.body&&e!=l.documentElement&&"visible"!=j.overflow&&(i=h(e)),i&&!(d=g(i,d)))break;e=k(e)}return d}},b.prototype._getRootRect=function(){var a;if(this.root)a=h(this.root);else{var b=l.documentElement,c=l.body;a={top:0,left:0,right:b.clientWidth||c.clientWidth,width:b.clientWidth||c.clientWidth,bottom:b.clientHeight||c.clientHeight,height:b.clientHeight||c.clientHeight}}return this._expandRectByRootMargin(a)},b.prototype._expandRectByRootMargin=function(a){var b=this._rootMarginValues.map(function(b,c){return"px"==b.unit?b.value:b.value*(c%2?a.width:a.height)/100}),c={top:a.top-b[0],right:a.right+b[1],bottom:a.bottom+b[2],left:a.left-b[3]};return c.width=c.right-c.left,c.height=c.bottom-c.top,c},b.prototype._hasCrossedThreshold=function(a,b){var c=a&&a.isIntersecting?a.intersectionRatio||0:-1,d=b.isIntersecting?b.intersectionRatio||0:-1;if(c!==d)for(var e=0;e<this.thresholds.length;e++){var f=this.thresholds[e];if(f==c||f==d||f<c!=f<d)return!0}},b.prototype._rootIsInDom=function(){return!this.root||j(l,this.root)},b.prototype._rootContainsTarget=function(a){return j(this.root||l,a)},b.prototype._registerInstance=function(){m.indexOf(this)<0&&m.push(this)},b.prototype._unregisterInstance=function(){var a=m.indexOf(this);-1!=a&&m.splice(a,1)},window.IntersectionObserver=b,window.IntersectionObserverEntry=a}}(),function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=ea.type(a);return"function"!==c&&!ea.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a))}function d(a,b,c){if(ea.isFunction(b))return ea.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return ea.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ma.test(b))return ea.filter(b,a,c);b=ea.filter(b,a)}return ea.grep(a,function(a){return ea.inArray(a,b)>=0!==c})}function e(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}function f(a){var b=ta[a]={};return ea.each(a.match(sa)||[],function(a,c){b[c]=!0}),b}function g(){oa.addEventListener?(oa.removeEventListener("DOMContentLoaded",h,!1),a.removeEventListener("load",h,!1)):(oa.detachEvent("onreadystatechange",h),a.detachEvent("onload",h))}function h(){(oa.addEventListener||"load"===event.type||"complete"===oa.readyState)&&(g(),ea.ready())}function i(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(ya,"-$1").toLowerCase();if("string"==typeof(c=a.getAttribute(d))){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:xa.test(c)?ea.parseJSON(c):c)}catch(Y){}ea.data(a,b,c)}else c=void 0}return c}function j(a){var b;for(b in a)if(("data"!==b||!ea.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function k(a,b,c,d){if(ea.acceptData(a)){var e,f,g=ea.expando,h=a.nodeType,i=h?ea.cache:a,j=h?a[g]:a[g]&&g;if(j&&i[j]&&(d||i[j].data)||void 0!==c||"string"!=typeof b)return j||(j=h?a[g]=W.pop()||ea.guid++:g),i[j]||(i[j]=h?{}:{toJSON:ea.noop}),("object"==typeof b||"function"==typeof b)&&(d?i[j]=ea.extend(i[j],b):i[j].data=ea.extend(i[j].data,b)),f=i[j],d||(f.data||(f.data={}),f=f.data),void 0!==c&&(f[ea.camelCase(b)]=c),"string"==typeof b?null==(e=f[b])&&(e=f[ea.camelCase(b)]):e=f,e}}function l(a,b,c){if(ea.acceptData(a)){var d,e,f=a.nodeType,g=f?ea.cache:a,h=f?a[ea.expando]:ea.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){ea.isArray(b)?b=b.concat(ea.map(b,ea.camelCase)):b in d?b=[b]:(b=ea.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;for(;e--;)delete d[b[e]];if(c?!j(d):!ea.isEmptyObject(d))return}(c||(delete g[h].data,j(g[h])))&&(f?ea.cleanData([a],!0):ca.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}function m(){return!0}function n(){return!1}function o(){try{return oa.activeElement}catch(a){}}function p(a){var b=Ja.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function q(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==wa?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==wa?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||ea.nodeName(d,b)?f.push(d):ea.merge(f,q(d,b));return void 0===b||b&&ea.nodeName(a,b)?ea.merge([a],f):f}function r(a){Da.test(a.type)&&(a.defaultChecked=a.checked)}function s(a,b){return ea.nodeName(a,"table")&&ea.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function t(a){return a.type=(null!==ea.find.attr(a,"type"))+"/"+a.type,a}function u(a){var b=Ua.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function v(a,b){for(var c,d=0;null!=(c=a[d]);d++)ea._data(c,"globalEval",!b||ea._data(b[d],"globalEval"))}function w(a,b){if(1===b.nodeType&&ea.hasData(a)){var c,d,e,f=ea._data(a),g=ea._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)ea.event.add(b,c,h[c][d])}g.data&&(g.data=ea.extend({},g.data))}}function x(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!ca.noCloneEvent&&b[ea.expando]){e=ea._data(b);for(d in e.events)ea.removeEvent(b,d,e.handle);b.removeAttribute(ea.expando)}"script"===c&&b.text!==a.text?(t(b).text=a.text,u(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),ca.html5Clone&&a.innerHTML&&!ea.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Da.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}function y(b,c){var d,e=ea(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:ea.css(e[0],"display");return e.detach(),f}function z(a){var b=oa,c=$a[a];return c||(c=y(a,b),"none"!==c&&c||(Za=(Za||ea("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Za[0].contentWindow||Za[0].contentDocument).document,b.write(),b.close(),c=y(a,b),Za.detach()),$a[a]=c),c}function A(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}function B(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=lb.length;e--;)if((b=lb[e]+c)in a)return b;return d}function C(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ea._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&Ba(d)&&(f[g]=ea._data(d,"olddisplay",z(d.nodeName)))):(e=Ba(d),(c&&"none"!==c||!e)&&ea._data(d,"olddisplay",e?c:ea.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function D(a,b,c){var d=hb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function E(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=ea.css(a,c+Aa[f],!0,e)),d?("content"===c&&(g-=ea.css(a,"padding"+Aa[f],!0,e)),"margin"!==c&&(g-=ea.css(a,"border"+Aa[f]+"Width",!0,e))):(g+=ea.css(a,"padding"+Aa[f],!0,e),"padding"!==c&&(g+=ea.css(a,"border"+Aa[f]+"Width",!0,e)));return g}function F(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=_a(a),g=ca.boxSizing&&"border-box"===ea.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=ab(a,b,f),(0>e||null==e)&&(e=a.style[b]),cb.test(e))return e;d=g&&(ca.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+E(a,b,c||(g?"border":"content"),d,f)+"px"}function G(a,b,c,d,e){return new G.prototype.init(a,b,c,d,e)}function H(){return setTimeout(function(){mb=void 0}),mb=ea.now()}function I(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=Aa[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function J(a,b,c){for(var d,e=(sb[b]||[]).concat(sb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function K(a,b,c){var d,e,f,g,h,i,j,k=this,l={},m=a.style,n=a.nodeType&&Ba(a),o=ea._data(a,"fxshow");c.queue||(h=ea._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,k.always(function(){k.always(function(){h.unqueued--,ea.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],j=ea.css(a,"display"),"inline"===("none"===j?ea._data(a,"olddisplay")||z(a.nodeName):j)&&"none"===ea.css(a,"float")&&(ca.inlineBlockNeedsLayout&&"inline"!==z(a.nodeName)?m.zoom=1:m.display="inline-block")),c.overflow&&(m.overflow="hidden",ca.shrinkWrapBlocks()||k.always(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ob.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(n?"hide":"show")){if("show"!==e||!o||void 0===o[d])continue;n=!0}l[d]=o&&o[d]||ea.style(a,d)}else j=void 0;if(ea.isEmptyObject(l))"inline"===("none"===j?z(a.nodeName):j)&&(m.display=j);else{o?"hidden"in o&&(n=o.hidden):o=ea._data(a,"fxshow",{}),f&&(o.hidden=!n),n?ea(a).show():k.done(function(){ea(a).hide()}),k.done(function(){var b;ea._removeData(a,"fxshow");for(b in l)ea.style(a,b,l[b])});for(d in l)g=J(n?o[d]:0,d,k),d in o||(o[d]=g.start,n&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function L(a,b){var c,d,e,f,g;for(c in a)if(d=ea.camelCase(c),e=b[d],f=a[c],ea.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),(g=ea.cssHooks[d])&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function M(a,b,c){var d,e,f=0,g=rb.length,h=ea.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=mb||H(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:ea.extend({},b),opts:ea.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:mb||H(),duration:c.duration,tweens:[],createTween:function(b,c){var d=ea.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(L(k,j.opts.specialEasing);g>f;f++)if(d=rb[f].call(j,a,k,j.opts))return d;return ea.map(k,J,j),ea.isFunction(j.opts.start)&&j.opts.start.call(a,j),ea.fx.timer(ea.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function N(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(sa)||[];if(ea.isFunction(c))for(;d=f[e++];)"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function O(a,b,c,d){function e(h){var i;return f[h]=!0,ea.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Qb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function P(a,b){var c,d,e=ea.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&ea.extend(!0,a,c),a}function Q(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function R(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(!(g=j[i+" "+f]||j["* "+f]))for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){!0===g?g=j[e]:!0!==j[e]&&(f=h[0],k.unshift(h[1]));break}if(!0!==g)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(da){return{state:"parsererror",error:g?da:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function S(a,b,c,d){var e;if(ea.isArray(b))ea.each(b,function(b,e){c||Tb.test(a)?d(a,e):S(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==ea.type(b))d(a,b);else for(e in b)S(a+"["+e+"]",b[e],c,d)}function T(){try{return new a.XMLHttpRequest}catch(b){}}function U(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function V(a){return ea.isWindow(a)?a:9===a.nodeType&&(a.defaultView||a.parentWindow)}var W=[],X=W.slice,Y=W.concat,Z=W.push,$=W.indexOf,_={},aa=_.toString,ba=_.hasOwnProperty,ca={},da="1.11.1",ea=function(a,b){return new ea.fn.init(a,b)},fa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ga=/^-ms-/,ha=/-([\da-z])/gi,ia=function(a,b){return b.toUpperCase()};ea.fn=ea.prototype={jquery:da,constructor:ea,selector:"",length:0,toArray:function(){return X.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:X.call(this)},pushStack:function(a){var b=ea.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return ea.each(this,a,b)},map:function(a){return this.pushStack(ea.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:W.sort,splice:W.splice},ea.extend=ea.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||ea.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(ea.isPlainObject(c)||(b=ea.isArray(c)))?(b?(b=!1,f=a&&ea.isArray(a)?a:[]):f=a&&ea.isPlainObject(a)?a:{},g[d]=ea.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},ea.extend({expando:"jQuery"+(da+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===ea.type(a)},isArray:Array.isArray||function(a){return"array"===ea.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!ea.isArray(a)&&a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==ea.type(a)||a.nodeType||ea.isWindow(a))return!1;try{if(a.constructor&&!ba.call(a,"constructor")&&!ba.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(W){return!1}if(ca.ownLast)for(b in a)return ba.call(a,b);for(b in a);return void 0===b||ba.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?_[aa.call(a)]||"object":typeof a},globalEval:function(b){b&&ea.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(ga,"ms-").replace(ha,ia)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e=0,f=a.length,g=c(a);if(d){if(g)for(;f>e&&!1!==b.apply(a[e],d);e++);else for(e in a)if(!1===b.apply(a[e],d))break}else if(g)for(;f>e&&!1!==b.call(a[e],e,a[e]);e++);else for(e in a)if(!1===b.call(a[e],e,a[e]))break;return a},trim:function(a){return null==a?"":(a+"").replace(fa,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?ea.merge(d,"string"==typeof a?[a]:a):Z.call(d,a)),d},inArray:function(a,b,c){var d;if(b){if($)return $.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d=[],e=0,f=a.length,g=!c;f>e;e++)!b(a[e],e)!==g&&d.push(a[e]);return d},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)null!=(e=b(a[f],f,d))&&i.push(e);else for(f in a)null!=(e=b(a[f],f,d))&&i.push(e);return Y.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(e=a[b],b=a,a=e),ea.isFunction(a)?(c=X.call(arguments,2),d=function(){return a.apply(b||this,c.concat(X.call(arguments)))},d.guid=a.guid=a.guid||ea.guid++,d):void 0},now:function(){return+new Date},support:ca}),ea.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){_["[object "+b+"]"]=b.toLowerCase()});var ja=function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o,p;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],!a||"string"!=typeof a)return c;if(1!==(h=b.nodeType)&&9!==h)return[];if(I&&!d){if(e=sa.exec(a))if(g=e[1]){if(9===h){if(!(f=b.getElementById(g))||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return _.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&v.getElementsByClassName&&b.getElementsByClassName)return _.apply(c,b.getElementsByClassName(g)),c}if(v.qsa&&(!J||!J.test(a))){if(n=l=N,o=b,p=9===h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=z(a),(l=b.getAttribute("id"))?n=l.replace(ua,"\\$&"):b.setAttribute("id",n),n="[id='"+n+"'] ",i=j.length;i--;)j[i]=n+m(j[i]);o=ta.test(a)&&k(b.parentNode)||b,p=j.join(",")}if(p)try{return _.apply(c,o.querySelectorAll(p)),c}catch(R){}finally{l||b.removeAttribute("id")}}}return B(a.replace(ia,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(v){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||W)-(~a.sourceIndex||W);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&typeof a.getElementsByTagName!==V&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?ba.call(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):_.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return ba.call(b,a)>-1},g,!0),k=[function(a,c,d){return!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d))}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ia,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Z.call(i));r=q(r)}_.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+-new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V="undefined",W=1<<31,X={}.hasOwnProperty,Y=[],Z=Y.pop,$=Y.push,_=Y.push,aa=Y.slice,ba=Y.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},ca="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",da="[\\x20\\t\\r\\n\\f]",ea="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fa=ea.replace("w","w#"),ga="\\["+da+"*("+ea+")(?:"+da+"*([*^$|!~]?=)"+da+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+fa+"))|)"+da+"*\\]",ha=":("+ea+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ga+")*)|.*)\\)|)",ia=new RegExp("^"+da+"+|((?:^|[^\\\\])(?:\\\\.)*)"+da+"+$","g"),ja=new RegExp("^"+da+"*,"+da+"*"),ka=new RegExp("^"+da+"*([>+~]|"+da+")"+da+"*"),la=new RegExp("="+da+"*([^\\]'\"]*?)"+da+"*\\]","g"),ma=new RegExp(ha),na=new RegExp("^"+fa+"$"),oa={ID:new RegExp("^#("+ea+")"),CLASS:new RegExp("^\\.("+ea+")"),TAG:new RegExp("^("+ea.replace("w","w*")+")"),ATTR:new RegExp("^"+ga),
PSEUDO:new RegExp("^"+ha),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+da+"*(even|odd|(([+-]|)(\\d*)n|)"+da+"*(?:([+-]|)"+da+"*(\\d+)|))"+da+"*\\)|)","i"),bool:new RegExp("^(?:"+ca+")$","i"),needsContext:new RegExp("^"+da+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+da+"*((?:-\\d)?\\d*)"+da+"*\\)|)(?=[^-]|$)","i")},pa=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,ra=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,ua=/'|\\/g,va=new RegExp("\\\\([\\da-f]{1,6}"+da+"?|("+da+")|.)","ig"),wa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{_.apply(Y=aa.call(O.childNodes),O.childNodes),Y[O.childNodes.length].nodeType}catch(Ja){_={apply:Y.length?function(a,b){$.apply(a,aa.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},F=b.setDocument=function(a){var b,c=a?a.ownerDocument||a:O,d=c.defaultView;return c!==G&&9===c.nodeType&&c.documentElement?(G=c,H=c.documentElement,I=!y(c),d&&d!==d.top&&(d.addEventListener?d.addEventListener("unload",function(){F()},!1):d.attachEvent&&d.attachEvent("onunload",function(){F()})),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(c.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=ra.test(c.getElementsByClassName)&&e(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),v.getById=e(function(a){return H.appendChild(a).id=N,!c.getElementsByName||!c.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if(typeof b.getElementById!==V&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){var c=typeof a.getAttributeNode!==V&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==V?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==V&&I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=ra.test(c.querySelectorAll))&&(e(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&J.push("[*^$]="+da+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+da+"*(?:value|"+ca+")"),a.querySelectorAll(":checked").length||J.push(":checked")}),e(function(a){var b=c.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+da+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=ra.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",ha)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=ra.test(H.compareDocumentPosition),M=b||ra.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d||(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!v.sortDetached&&b.compareDocumentPosition(a)===d?a===c||a.ownerDocument===O&&M(O,a)?-1:b===c||b.ownerDocument===O&&M(O,b)?1:D?ba.call(D,a)-ba.call(D,b):0:4&d?-1:1)}:function(a,b){if(a===b)return E=!0,0;var d,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===c?-1:b===c?1:f?-1:h?1:D?ba.call(D,a)-ba.call(D,b):0;if(f===h)return g(a,b);for(d=a;d=d.parentNode;)i.unshift(d);for(d=b;d=d.parentNode;)j.unshift(d);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},c):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(la,"='$1']"),!(!v.matchesSelector||!I||K&&K.test(c)||J&&J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(x){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&X.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(va,wa),a[3]=(a[3]||a[4]||a[5]||"").replace(va,wa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return oa.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&ma.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(va,wa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+da+")"+a+"("+da+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==V&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:!c||(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f+" ").indexOf(d)>-1:"|="===c&&(f===d||f.slice(0,d.length+1)===d+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return(m-=e)===d||m%d==0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=ba.call(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ia,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return na.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(va,wa).toLowerCase(),function(b){var c;do{if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-")}while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return qa.test(a.nodeName)},input:function(a){return pa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){(!d||(e=ja.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ka.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ia," ")}),h=h.slice(d.length));for(g in w.filter)!(e=oa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(!(b=(w.find.ID(g.matches[0].replace(va,wa),b)||[])[0]))return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=oa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(va,wa),ta.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),!(a=d.length&&m(f)))return _.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,ta.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ca,function(a,b,c){var d;return c?void 0:!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);ea.find=ja,ea.expr=ja.selectors,ea.expr[":"]=ea.expr.pseudos,ea.unique=ja.uniqueSort,ea.text=ja.getText,ea.isXMLDoc=ja.isXML,ea.contains=ja.contains;var ka=ea.expr.match.needsContext,la=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ma=/^.[^:#\[\.,]*$/;ea.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?ea.find.matchesSelector(d,a)?[d]:[]:ea.find.matches(a,ea.grep(b,function(a){return 1===a.nodeType}))},ea.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(ea(a).filter(function(){for(b=0;e>b;b++)if(ea.contains(d[b],this))return!0}));for(b=0;e>b;b++)ea.find(a,d[b],c);return c=this.pushStack(e>1?ea.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&ka.test(a)?ea(a):a||[],!1).length}});var na,oa=a.document,pa=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ea.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(!(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:pa.exec(a))||!c[1]&&b)return!b||b.jquery?(b||na).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof ea?b[0]:b,ea.merge(this,ea.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:oa,!0)),la.test(c[1])&&ea.isPlainObject(b))for(c in b)ea.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if((d=oa.getElementById(c[2]))&&d.parentNode){if(d.id!==c[2])return na.find(a);this.length=1,this[0]=d}return this.context=oa,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):ea.isFunction(a)?void 0!==na.ready?na.ready(a):a(ea):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),ea.makeArray(a,this))}).prototype=ea.fn,na=ea(oa);var qa=/^(?:parents|prev(?:Until|All))/,ra={children:!0,contents:!0,next:!0,prev:!0};ea.extend({dir:function(a,b,c){for(var d=[],e=a[b];e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!ea(e).is(c));)1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),ea.fn.extend({has:function(a){var b,c=ea(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(ea.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=ka.test(a)||"string"!=typeof a?ea(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&ea.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?ea.unique(f):f)},index:function(a){return a?"string"==typeof a?ea.inArray(this[0],ea(a)):ea.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(ea.unique(ea.merge(this.get(),ea(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),ea.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return ea.dir(a,"parentNode")},parentsUntil:function(a,b,c){return ea.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return ea.dir(a,"nextSibling")},prevAll:function(a){return ea.dir(a,"previousSibling")},nextUntil:function(a,b,c){return ea.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return ea.dir(a,"previousSibling",c)},siblings:function(a){return ea.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return ea.sibling(a.firstChild)},contents:function(a){return ea.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:ea.merge([],a.childNodes)}},function(a,b){ea.fn[a]=function(c,d){var e=ea.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=ea.filter(d,e)),this.length>1&&(ra[a]||(e=ea.unique(e)),qa.test(a)&&(e=e.reverse())),this.pushStack(e)}});var sa=/\S+/g,ta={};ea.Callbacks=function(a){a="string"==typeof a?ta[a]||f(a):ea.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(c=a.memory&&f,d=!0,g=h||0,h=0,e=i.length,b=!0;i&&e>g;g++)if(!1===i[g].apply(f[0],f[1])&&a.stopOnFalse){c=!1;break}b=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var d=i.length;!function b(c){ea.each(c,function(c,d){var e=ea.type(d);"function"===e?a.unique&&l.has(d)||i.push(d):d&&d.length&&"string"!==e&&b(d)})}(arguments),b?e=i.length:c&&(h=d,k(c))}return this},remove:function(){return i&&ea.each(arguments,function(a,c){for(var d;(d=ea.inArray(c,i,d))>-1;)i.splice(d,1),b&&(e>=d&&e--,g>=d&&g--)}),this},has:function(a){return a?ea.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],e=0,this},disable:function(){return i=j=c=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,c){return!i||d&&!j||(c=c||[],c=[a,c.slice?c.slice():c],b?j.push(c):k(c)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},ea.extend({Deferred:function(a){var b=[["resolve","done",ea.Callbacks("once memory"),"resolved"],["reject","fail",ea.Callbacks("once memory"),"rejected"],["notify","progress",ea.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return ea.Deferred(function(c){ea.each(b,function(b,f){var g=ea.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&ea.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?ea.extend(a,d):d}},e={};return d.pipe=d.then,ea.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=X.call(arguments),g=f.length,h=1!==g||a&&ea.isFunction(a.promise)?g:0,i=1===h?a:ea.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?X.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&ea.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}});var ua;ea.fn.ready=function(a){return ea.ready.promise().done(a),this},ea.extend({isReady:!1,readyWait:1,holdReady:function(a){a?ea.readyWait++:ea.ready(!0)},ready:function(a){if(!0===a?!--ea.readyWait:!ea.isReady){if(!oa.body)return setTimeout(ea.ready);ea.isReady=!0,!0!==a&&--ea.readyWait>0||(ua.resolveWith(oa,[ea]),ea.fn.triggerHandler&&(ea(oa).triggerHandler("ready"),ea(oa).off("ready")))}}}),ea.ready.promise=function(b){if(!ua)if(ua=ea.Deferred(),"complete"===oa.readyState)setTimeout(ea.ready);else if(oa.addEventListener)oa.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1);else{oa.attachEvent("onreadystatechange",h),a.attachEvent("onload",h);var c=!1;try{c=null==a.frameElement&&oa.documentElement}catch(X){}c&&c.doScroll&&function a(){if(!ea.isReady){try{c.doScroll("left")}catch(a){return setTimeout(a,50)}g(),ea.ready()}}()}return ua.promise(b)};var va,wa="undefined";for(va in ea(ca))break;ca.ownLast="0"!==va,ca.inlineBlockNeedsLayout=!1,ea(function(){var a,b,c,d;(c=oa.getElementsByTagName("body")[0])&&c.style&&(b=oa.createElement("div"),d=oa.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==wa&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ca.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=oa.createElement("div");if(null==ca.deleteExpando){ca.deleteExpando=!0;try{delete a.test}catch(b){ca.deleteExpando=!1}}a=null}(),ea.acceptData=function(a){var b=ea.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return(1===c||9===c)&&(!b||!0!==b&&a.getAttribute("classid")===b)};var xa=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ya=/([A-Z])/g;ea.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return!!(a=a.nodeType?ea.cache[a[ea.expando]]:a[ea.expando])&&!j(a)},data:function(a,b,c){return k(a,b,c)},removeData:function(a,b){return l(a,b)},_data:function(a,b,c){return k(a,b,c,!0)},_removeData:function(a,b){return l(a,b,!0)}}),ea.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=ea.data(f),1===f.nodeType&&!ea._data(f,"parsedAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=ea.camelCase(d.slice(5)),i(f,d,e[d])));ea._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){ea.data(this,a)}):arguments.length>1?this.each(function(){ea.data(this,a,b)}):f?i(f,a,ea.data(f,a)):void 0},removeData:function(a){return this.each(function(){ea.removeData(this,a)})}}),ea.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=ea._data(a,b),c&&(!d||ea.isArray(c)?d=ea._data(a,b,ea.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=ea.queue(a,b),d=c.length,e=c.shift(),f=ea._queueHooks(a,b),g=function(){ea.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return ea._data(a,c)||ea._data(a,c,{empty:ea.Callbacks("once memory").add(function(){ea._removeData(a,b+"queue"),ea._removeData(a,c)})})}}),ea.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?ea.queue(this[0],a):void 0===b?this:this.each(function(){var c=ea.queue(this,a,b);ea._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&ea.dequeue(this,a)})},dequeue:function(a){return this.each(function(){ea.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=ea.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)(c=ea._data(f[g],a+"queueHooks"))&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var za=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Aa=["Top","Right","Bottom","Left"],Ba=function(a,b){return a=b||a,"none"===ea.css(a,"display")||!ea.contains(a.ownerDocument,a)},Ca=ea.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===ea.type(c)){e=!0;for(h in c)ea.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,ea.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(ea(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Da=/^(?:checkbox|radio)$/i;!function(){var a=oa.createElement("input"),b=oa.createElement("div"),c=oa.createDocumentFragment();if(b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ca.leadingWhitespace=3===b.firstChild.nodeType,ca.tbody=!b.getElementsByTagName("tbody").length,ca.htmlSerialize=!!b.getElementsByTagName("link").length,ca.html5Clone="<:nav></:nav>"!==oa.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),ca.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",ca.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",ca.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,ca.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){ca.noCloneEvent=!1}),b.cloneNode(!0).click()),null==ca.deleteExpando){ca.deleteExpando=!0;try{delete b.test}catch(X){ca.deleteExpando=!1}}}(),function(){var b,c,d=oa.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(ca[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),ca[b+"Bubbles"]=!1===d.attributes[c].expando);d=null}();var Ea=/^(?:input|select|textarea)$/i,Fa=/^key/,Ga=/^(?:mouse|pointer|contextmenu)|click/,Ha=/^(?:focusinfocus|focusoutblur)$/,Ia=/^([^.]*)(?:\.(.+)|)$/;ea.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ea._data(a);if(q){for(c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=ea.guid++),(g=q.events)||(g=q.events={}),(k=q.handle)||(k=q.handle=function(a){return typeof ea===wa||a&&ea.event.triggered===a.type?void 0:ea.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(sa)||[""],h=b.length;h--;)f=Ia.exec(b[h])||[],n=p=f[1],o=(f[2]||"").split(".").sort(),n&&(j=ea.event.special[n]||{},n=(e?j.delegateType:j.bindType)||n,j=ea.event.special[n]||{},l=ea.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&ea.expr.match.needsContext.test(e),namespace:o.join(".")},i),(m=g[n])||(m=g[n]=[],m.delegateCount=0,j.setup&&!1!==j.setup.call(a,d,o,k)||(a.addEventListener?a.addEventListener(n,k,!1):a.attachEvent&&a.attachEvent("on"+n,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),ea.event.global[n]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ea.hasData(a)&&ea._data(a);if(q&&(k=q.events)){for(b=(b||"").match(sa)||[""],j=b.length;j--;)if(h=Ia.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=ea.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=k[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;f--;)g=m[f],!e&&p!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&!1!==l.teardown.call(a,o,q.handle)||ea.removeEvent(a,n,q.handle),delete k[n])}else for(n in k)ea.event.remove(a,n+b[j],c,d,!0);ea.isEmptyObject(k)&&(delete q.handle,ea._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||oa],n=ba.call(b,"type")?b.type:b,o=ba.call(b,"namespace")?b.namespace.split("."):[];if(h=k=d=d||oa,3!==d.nodeType&&8!==d.nodeType&&!Ha.test(n+ea.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),g=n.indexOf(":")<0&&"on"+n,b=b[ea.expando]?b:new ea.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:ea.makeArray(c,[b]),j=ea.event.special[n]||{},e||!j.trigger||!1!==j.trigger.apply(d,c))){if(!e&&!j.noBubble&&!ea.isWindow(d)){for(i=j.delegateType||n,Ha.test(i+n)||(h=h.parentNode);h;h=h.parentNode)m.push(h),k=h;k===(d.ownerDocument||oa)&&m.push(k.defaultView||k.parentWindow||a)}for(l=0;(h=m[l++])&&!b.isPropagationStopped();)b.type=l>1?i:j.bindType||n,f=(ea._data(h,"events")||{})[b.type]&&ea._data(h,"handle"),f&&f.apply(h,c),(f=g&&h[g])&&f.apply&&ea.acceptData(h)&&(b.result=f.apply(h,c),!1===b.result&&b.preventDefault());if(b.type=n,!e&&!b.isDefaultPrevented()&&(!j._default||!1===j._default.apply(m.pop(),c))&&ea.acceptData(d)&&g&&d[n]&&!ea.isWindow(d)){k=d[g],k&&(d[g]=null),ea.event.triggered=n;try{d[n]()}catch(c){}ea.event.triggered=void 0,k&&(d[g]=k)}return b.result}},dispatch:function(a){a=ea.event.fix(a);var b,c,d,e,f,g=[],h=X.call(arguments),i=(ea._data(this,"events")||{})[a.type]||[],j=ea.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||!1!==j.preDispatch.call(this,a)){for(g=ea.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,f=0;(d=e.handlers[f++])&&!a.isImmediatePropagationStopped();)(!a.namespace_re||a.namespace_re.test(d.namespace))&&(a.handleObj=d,a.data=d.data,void 0!==(c=((ea.event.special[d.origType]||{}).handle||d.handler).apply(e.elem,h))&&!1===(a.result=c)&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(!0!==i.disabled||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?ea(c,this).index(i)>=0:ea.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[ea.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ga.test(e)?this.mouseHooks:Fa.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new ea.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||oa),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||oa,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==o()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===o()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ea.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return ea.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=ea.extend(new ea.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?ea.event.trigger(e,null,b):ea.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},ea.removeEvent=oa.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===wa&&(a[d]=null),a.detachEvent(d,c))},ea.Event=function(a,b){return this instanceof ea.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?m:n):this.type=a,b&&ea.extend(this,b),this.timeStamp=a&&a.timeStamp||ea.now(),void(this[ea.expando]=!0)):new ea.Event(a,b)},ea.Event.prototype={isDefaultPrevented:n,isPropagationStopped:n,
isImmediatePropagationStopped:n,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=m,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=m,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=m,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},ea.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){ea.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!ea.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),ca.submitBubbles||(ea.event.special.submit={setup:function(){return!ea.nodeName(this,"form")&&void ea.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=ea.nodeName(b,"input")||ea.nodeName(b,"button")?b.form:void 0;c&&!ea._data(c,"submitBubbles")&&(ea.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),ea._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&ea.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return!ea.nodeName(this,"form")&&void ea.event.remove(this,"._submit")}}),ca.changeBubbles||(ea.event.special.change={setup:function(){return Ea.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ea.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),ea.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),ea.event.simulate("change",this,a,!0)})),!1):void ea.event.add(this,"beforeactivate._change",function(a){var b=a.target;Ea.test(b.nodeName)&&!ea._data(b,"changeBubbles")&&(ea.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||ea.event.simulate("change",this.parentNode,a,!0)}),ea._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ea.event.remove(this,"._change"),!Ea.test(this.nodeName)}}),ca.focusinBubbles||ea.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){ea.event.simulate(b,a.target,ea.event.fix(a),!0)};ea.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=ea._data(d,b);e||d.addEventListener(a,c,!0),ea._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=ea._data(d,b)-1;e?ea._data(d,b,e):(d.removeEventListener(a,c,!0),ea._removeData(d,b))}}}),ea.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),!1===d)d=n;else if(!d)return this;return 1===e&&(g=d,d=function(a){return ea().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=ea.guid++)),this.each(function(){ea.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,ea(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(!1===b||"function"==typeof b)&&(c=b,b=void 0),!1===c&&(c=n),this.each(function(){ea.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){ea.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?ea.event.trigger(a,b,c,!0):void 0}});var Ja="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ka=/ jQuery\d+="(?:null|\d+)"/g,La=new RegExp("<(?:"+Ja+")[\\s/>]","i"),Ma=/^\s+/,Na=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Oa=/<([\w:]+)/,Pa=/<tbody/i,Qa=/<|&#?\w+;/,Ra=/<(?:script|style|link)/i,Sa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ta=/^$|\/(?:java|ecma)script/i,Ua=/^true\/(.*)/,Va=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Wa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ca.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Xa=p(oa),Ya=Xa.appendChild(oa.createElement("div"));Wa.optgroup=Wa.option,Wa.tbody=Wa.tfoot=Wa.colgroup=Wa.caption=Wa.thead,Wa.th=Wa.td,ea.extend({clone:function(a,b,c){var d,e,f,g,h,i=ea.contains(a.ownerDocument,a);if(ca.html5Clone||ea.isXMLDoc(a)||!La.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ya.innerHTML=a.outerHTML,Ya.removeChild(f=Ya.firstChild)),!(ca.noCloneEvent&&ca.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||ea.isXMLDoc(a)))for(d=q(f),h=q(a),g=0;null!=(e=h[g]);++g)d[g]&&x(e,d[g]);if(b)if(c)for(h=h||q(a),d=d||q(f),g=0;null!=(e=h[g]);g++)w(e,d[g]);else w(a,f);return d=q(f,"script"),d.length>0&&v(d,!i&&q(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,l=a.length,m=p(b),n=[],o=0;l>o;o++)if((f=a[o])||0===f)if("object"===ea.type(f))ea.merge(n,f.nodeType?[f]:f);else if(Qa.test(f)){for(h=h||m.appendChild(b.createElement("div")),i=(Oa.exec(f)||["",""])[1].toLowerCase(),k=Wa[i]||Wa._default,h.innerHTML=k[1]+f.replace(Na,"<$1></$2>")+k[2],e=k[0];e--;)h=h.lastChild;if(!ca.leadingWhitespace&&Ma.test(f)&&n.push(b.createTextNode(Ma.exec(f)[0])),!ca.tbody)for(f="table"!==i||Pa.test(f)?"<table>"!==k[1]||Pa.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;e--;)ea.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j);for(ea.merge(n,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=m.lastChild}else n.push(b.createTextNode(f));for(h&&m.removeChild(h),ca.appendChecked||ea.grep(q(n,"input"),r),o=0;f=n[o++];)if((!d||-1===ea.inArray(f,d))&&(g=ea.contains(f.ownerDocument,f),h=q(m.appendChild(f),"script"),g&&v(h),c))for(e=0;f=h[e++];)Ta.test(f.type||"")&&c.push(f);return h=null,m},cleanData:function(a,b){for(var c,d,e,f,g=0,h=ea.expando,i=ea.cache,j=ca.deleteExpando,k=ea.event.special;null!=(c=a[g]);g++)if((b||ea.acceptData(c))&&(e=c[h],f=e&&i[e])){if(f.events)for(d in f.events)k[d]?ea.event.remove(c,d):ea.removeEvent(c,d,f.handle);i[e]&&(delete i[e],j?delete c[h]:typeof c.removeAttribute!==wa?c.removeAttribute(h):c[h]=null,W.push(e))}}}),ea.fn.extend({text:function(a){return Ca(this,function(a){return void 0===a?ea.text(this):this.empty().append((this[0]&&this[0].ownerDocument||oa).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){s(this,a).appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=s(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?ea.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||ea.cleanData(q(c)),c.parentNode&&(b&&ea.contains(c.ownerDocument,c)&&v(q(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&ea.cleanData(q(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&ea.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return ea.clone(this,a,b)})},html:function(a){return Ca(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(Ka,""):void 0;if(!("string"!=typeof a||Ra.test(a)||!ca.htmlSerialize&&La.test(a)||!ca.leadingWhitespace&&Ma.test(a)||Wa[(Oa.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(Na,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(ea.cleanData(q(b,!1)),b.innerHTML=a);b=0}catch(Y){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,ea.cleanData(q(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=Y.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],n=ea.isFunction(m);if(n||j>1&&"string"==typeof m&&!ca.checkClone&&Sa.test(m))return this.each(function(c){var d=k.eq(c);n&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(h=ea.buildFragment(a,this[0].ownerDocument,!1,this),c=h.firstChild,1===h.childNodes.length&&(h=c),c)){for(f=ea.map(q(h,"script"),t),e=f.length;j>i;i++)d=h,i!==l&&(d=ea.clone(d,!0,!0),e&&ea.merge(f,q(d,"script"))),b.call(this[i],d,i);if(e)for(g=f[f.length-1].ownerDocument,ea.map(f,u),i=0;e>i;i++)d=f[i],Ta.test(d.type||"")&&!ea._data(d,"globalEval")&&ea.contains(g,d)&&(d.src?ea._evalUrl&&ea._evalUrl(d.src):ea.globalEval((d.text||d.textContent||d.innerHTML||"").replace(Va,"")));h=c=null}return this}}),ea.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){ea.fn[a]=function(a){for(var c,d=0,e=[],f=ea(a),g=f.length-1;g>=d;d++)c=d===g?this:this.clone(!0),ea(f[d])[b](c),Z.apply(e,c.get());return this.pushStack(e)}});var Za,$a={};!function(){var a;ca.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=oa.getElementsByTagName("body")[0],c&&c.style?(b=oa.createElement("div"),d=oa.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==wa&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(oa.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var _a,ab,bb=/^margin/,cb=new RegExp("^("+za+")(?!px)[a-z%]+$","i"),db=/^(top|right|bottom|left)$/;a.getComputedStyle?(_a=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},ab=function(a,b,c){var d,e,f,g,h=a.style;return c=c||_a(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||ea.contains(a.ownerDocument,a)||(g=ea.style(a,b)),cb.test(g)&&bb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):oa.documentElement.currentStyle&&(_a=function(a){return a.currentStyle},ab=function(a,b,c){var d,e,f,g,h=a.style;return c=c||_a(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),cb.test(g)&&!db.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"}),!function(){function b(){var b,c,d,e;(c=oa.getElementsByTagName("body")[0])&&c.style&&(b=oa.createElement("div"),d=oa.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",f=g=!1,i=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(b,null)||{}).top,g="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,e=b.appendChild(oa.createElement("div")),e.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",b.style.width="1px",i=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",e=b.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",h=0===e[0].offsetHeight,h&&(e[0].style.display="",e[1].style.display="none",h=0===e[0].offsetHeight),c.removeChild(d))}var c,d,e,f,g,h,i;c=oa.createElement("div"),c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=c.getElementsByTagName("a")[0],(d=e&&e.style)&&(d.cssText="float:left;opacity:.5",ca.opacity="0.5"===d.opacity,ca.cssFloat=!!d.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ca.clearCloneStyle="content-box"===c.style.backgroundClip,ca.boxSizing=""===d.boxSizing||""===d.MozBoxSizing||""===d.WebkitBoxSizing,ea.extend(ca,{reliableHiddenOffsets:function(){return null==h&&b(),h},boxSizingReliable:function(){return null==g&&b(),g},pixelPosition:function(){return null==f&&b(),f},reliableMarginRight:function(){return null==i&&b(),i}}))}(),ea.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var eb=/alpha\([^)]*\)/i,fb=/opacity\s*=\s*([^)]*)/,gb=/^(none|table(?!-c[ea]).+)/,hb=new RegExp("^("+za+")(.*)$","i"),ib=new RegExp("^([+-])=("+za+")","i"),jb={position:"absolute",visibility:"hidden",display:"block"},kb={letterSpacing:"0",fontWeight:"400"},lb=["Webkit","O","Moz","ms"];ea.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ab(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ca.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=ea.camelCase(b),i=a.style;if(b=ea.cssProps[h]||(ea.cssProps[h]=B(i,h)),g=ea.cssHooks[b]||ea.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=ib.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(ea.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||ea.cssNumber[h]||(c+="px"),ca.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(ba){}}},css:function(a,b,c,d){var e,f,g,h=ea.camelCase(b);return b=ea.cssProps[h]||(ea.cssProps[h]=B(a.style,h)),g=ea.cssHooks[b]||ea.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=ab(a,b,d)),"normal"===f&&b in kb&&(f=kb[b]),""===c||c?(e=parseFloat(f),!0===c||ea.isNumeric(e)?e||0:f):f}}),ea.each(["height","width"],function(a,b){ea.cssHooks[b]={get:function(a,c,d){return c?gb.test(ea.css(a,"display"))&&0===a.offsetWidth?ea.swap(a,jb,function(){return F(a,b,d)}):F(a,b,d):void 0},set:function(a,c,d){var e=d&&_a(a);return D(a,c,d?E(a,b,d,ca.boxSizing&&"border-box"===ea.css(a,"boxSizing",!1,e),e):0)}}}),ca.opacity||(ea.cssHooks.opacity={get:function(a,b){return fb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=ea.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===ea.trim(f.replace(eb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=eb.test(f)?f.replace(eb,e):f+" "+e)}}),ea.cssHooks.marginRight=A(ca.reliableMarginRight,function(a,b){return b?ea.swap(a,{display:"inline-block"},ab,[a,"marginRight"]):void 0}),ea.each({margin:"",padding:"",border:"Width"},function(a,b){ea.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Aa[d]+b]=f[d]||f[d-2]||f[0];return e}},bb.test(a)||(ea.cssHooks[a+b].set=D)}),ea.fn.extend({css:function(a,b){return Ca(this,function(a,b,c){var d,e,f={},g=0;if(ea.isArray(b)){for(d=_a(a),e=b.length;e>g;g++)f[b[g]]=ea.css(a,b[g],!1,d);return f}return void 0!==c?ea.style(a,b,c):ea.css(a,b)},a,b,arguments.length>1)},show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Ba(this)?ea(this).show():ea(this).hide()})}}),ea.Tween=G,G.prototype={constructor:G,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(ea.cssNumber[c]?"":"px")},cur:function(){var a=G.propHooks[this.prop];return a&&a.get?a.get(this):G.propHooks._default.get(this)},run:function(a){var b,c=G.propHooks[this.prop];return this.pos=b=this.options.duration?ea.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):G.propHooks._default.set(this),this}},G.prototype.init.prototype=G.prototype,G.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=ea.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){ea.fx.step[a.prop]?ea.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[ea.cssProps[a.prop]]||ea.cssHooks[a.prop])?ea.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},ea.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},ea.fx=G.prototype.init,ea.fx.step={};var mb,nb,ob=/^(?:toggle|show|hide)$/,pb=new RegExp("^(?:([+-])=|)("+za+")([a-z%]*)$","i"),qb=/queueHooks$/,rb=[K],sb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=pb.exec(b),f=e&&e[3]||(ea.cssNumber[a]?"":"px"),g=(ea.cssNumber[a]||"px"!==f&&+d)&&pb.exec(ea.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do{h=h||".5",g/=h,ea.style(c.elem,a,g+f)}while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};ea.Animation=ea.extend(M,{tweener:function(a,b){ea.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],sb[c]=sb[c]||[],sb[c].unshift(b)},prefilter:function(a,b){b?rb.unshift(a):rb.push(a)}}),ea.speed=function(a,b,c){var d=a&&"object"==typeof a?ea.extend({},a):{complete:c||!c&&b||ea.isFunction(a)&&a,duration:a,easing:c&&b||b&&!ea.isFunction(b)&&b};return d.duration=ea.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in ea.fx.speeds?ea.fx.speeds[d.duration]:ea.fx.speeds._default,(null==d.queue||!0===d.queue)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){ea.isFunction(d.old)&&d.old.call(this),d.queue&&ea.dequeue(this,d.queue)},d},ea.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ba).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=ea.isEmptyObject(a),f=ea.speed(b,c,d),g=function(){var b=M(this,ea.extend({},a),f);(e||ea._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||!1===f.queue?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&!1!==a&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=ea.timers,g=ea._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&qb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&ea.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b,c=ea._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=ea.timers,g=d?d.length:0;for(c.finish=!0,ea.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),ea.each(["toggle","show","hide"],function(a,b){var c=ea.fn[b];ea.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(I(b,!0),a,d,e)}}),ea.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){ea.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),ea.timers=[],ea.fx.tick=function(){var a,b=ea.timers,c=0;for(mb=ea.now();c<b.length;c++)(a=b[c])()||b[c]!==a||b.splice(c--,1);b.length||ea.fx.stop(),mb=void 0},ea.fx.timer=function(a){ea.timers.push(a),a()?ea.fx.start():ea.timers.pop()},ea.fx.interval=13,ea.fx.start=function(){nb||(nb=setInterval(ea.fx.tick,ea.fx.interval))},ea.fx.stop=function(){clearInterval(nb),nb=null},ea.fx.speeds={slow:600,fast:200,_default:400},ea.fn.delay=function(a,b){return a=ea.fx?ea.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=oa.createElement("div"),b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=oa.createElement("select"),e=c.appendChild(oa.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",ca.getSetAttribute="t"!==b.className,ca.style=/top/.test(d.getAttribute("style")),ca.hrefNormalized="/a"===d.getAttribute("href"),ca.checkOn=!!a.value,ca.optSelected=e.selected,ca.enctype=!!oa.createElement("form").enctype,c.disabled=!0,ca.optDisabled=!e.disabled,a=oa.createElement("input"),a.setAttribute("value",""),ca.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),ca.radioValue="t"===a.value}();var tb=/\r/g;ea.fn.extend({val:function(a){var b,c,d,e=this[0];return arguments.length?(d=ea.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,ea(this).val()):a,null==e?e="":"number"==typeof e?e+="":ea.isArray(e)&&(e=ea.map(e,function(a){return null==a?"":a+""})),(b=ea.valHooks[this.type]||ea.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))})):e?(b=ea.valHooks[e.type]||ea.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(tb,""):null==c?"":c)):void 0}}),ea.extend({valHooks:{option:{get:function(a){var b=ea.find.attr(a,"value");return null!=b?b:ea.trim(ea.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(ca.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&ea.nodeName(c.parentNode,"optgroup"))){if(b=ea(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=ea.makeArray(b),g=e.length;g--;)if(d=e[g],ea.inArray(ea.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(_){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),ea.each(["radio","checkbox"],function(){ea.valHooks[this]={set:function(a,b){return ea.isArray(b)?a.checked=ea.inArray(ea(a).val(),b)>=0:void 0}},ca.checkOn||(ea.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ub,vb,wb=ea.expr.attrHandle,xb=/^(?:checked|selected)$/i,yb=ca.getSetAttribute,zb=ca.input;ea.fn.extend({attr:function(a,b){return Ca(this,ea.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){ea.removeAttr(this,a)})}}),ea.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===wa?ea.prop(a,b,c):(1===f&&ea.isXMLDoc(a)||(b=b.toLowerCase(),d=ea.attrHooks[b]||(ea.expr.match.bool.test(b)?vb:ub)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=ea.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void ea.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(sa);if(f&&1===a.nodeType)for(;c=f[e++];)d=ea.propFix[c]||c,ea.expr.match.bool.test(c)?zb&&yb||!xb.test(c)?a[d]=!1:a[ea.camelCase("default-"+c)]=a[d]=!1:ea.attr(a,c,""),a.removeAttribute(yb?c:d)},attrHooks:{type:{set:function(a,b){if(!ca.radioValue&&"radio"===b&&ea.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),vb={set:function(a,b,c){return!1===b?ea.removeAttr(a,c):zb&&yb||!xb.test(c)?a.setAttribute(!yb&&ea.propFix[c]||c,c):a[ea.camelCase("default-"+c)]=a[c]=!0,c}},ea.each(ea.expr.match.bool.source.match(/\w+/g),function(a,b){var c=wb[b]||ea.find.attr;wb[b]=zb&&yb||!xb.test(b)?function(a,b,d){var e,f;return d||(f=wb[b],wb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,wb[b]=f),e}:function(a,b,c){return c?void 0:a[ea.camelCase("default-"+b)]?b.toLowerCase():null}}),zb&&yb||(ea.attrHooks.value={set:function(a,b,c){return ea.nodeName(a,"input")?void(a.defaultValue=b):ub&&ub.set(a,b,c)}}),yb||(ub={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},wb.id=wb.name=wb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},ea.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:ub.set},ea.attrHooks.contenteditable={set:function(a,b,c){ub.set(a,""!==b&&b,c)}},ea.each(["width","height"],function(a,b){ea.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),ca.style||(ea.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Ab=/^(?:input|select|textarea|button|object)$/i,Bb=/^(?:a|area)$/i;ea.fn.extend({prop:function(a,b){return Ca(this,ea.prop,a,b,arguments.length>1)},removeProp:function(a){return a=ea.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),ea.extend({propFix:{for:"htmlFor",class:"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!ea.isXMLDoc(a),f&&(b=ea.propFix[b]||b,e=ea.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=ea.find.attr(a,"tabindex");return b?parseInt(b,10):Ab.test(a.nodeName)||Bb.test(a.nodeName)&&a.href?0:-1}}}}),ca.hrefNormalized||ea.each(["href","src"],function(a,b){ea.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),ca.optSelected||(ea.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),ea.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ea.propFix[this.toLowerCase()]=this}),ca.enctype||(ea.propFix.enctype="encoding");var Cb=/[\t\r\n\f]/g;ea.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(ea.isFunction(a))return this.each(function(b){ea(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(sa)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Cb," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=ea.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(ea.isFunction(a))return this.each(function(b){ea(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(sa)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Cb," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?ea.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(ea.isFunction(a)?function(c){ea(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c)for(var b,d=0,e=ea(this),f=a.match(sa)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(c===wa||"boolean"===c)&&(this.className&&ea._data(this,"__className__",this.className),this.className=this.className||!1===a?"":ea._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(Cb," ").indexOf(b)>=0)return!0;return!1}}),ea.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){ea.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),ea.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Db=ea.now(),Eb=/\?/,Fb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ea.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=ea.trim(b+"");return e&&!ea.trim(e.replace(Fb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():ea.error("Invalid JSON: "+b)},ea.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(Y){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||ea.error("Invalid XML: "+b),c};var Gb,Hb,Ib=/#.*$/,Jb=/([?&])_=[^&]*/,Kb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Lb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mb=/^(?:GET|HEAD)$/,Nb=/^\/\//,Ob=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pb={},Qb={},Rb="*/".concat("*");try{Hb=location.href}catch(ec){Hb=oa.createElement("a"),Hb.href="",Hb=Hb.href}Gb=Ob.exec(Hb.toLowerCase())||[],ea.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Hb,type:"GET",isLocal:Lb.test(Gb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ea.parseJSON,"text xml":ea.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?P(P(a,ea.ajaxSettings),b):P(ea.ajaxSettings,a)},ajaxPrefilter:N(Pb),ajaxTransport:N(Qb),ajax:function(a,b){function c(a,b,c,d){var e,f,l,s,t,v=b;2!==u&&(u=2,i&&clearTimeout(i),k=void 0,h=d||"",w.readyState=a>0?4:0,e=a>=200&&300>a||304===a,c&&(s=Q(m,w,c)),s=R(m,s,w,e),e?(m.ifModified&&(t=w.getResponseHeader("Last-Modified"),t&&(ea.lastModified[g]=t),(t=w.getResponseHeader("etag"))&&(ea.etag[g]=t)),204===a||"HEAD"===m.type?v="nocontent":304===a?v="notmodified":(v=s.state,f=s.data,l=s.error,e=!l)):(l=v,(a||!v)&&(v="error",0>a&&(a=0))),w.status=a,w.statusText=(b||v)+"",e?p.resolveWith(n,[f,v,w]):p.rejectWith(n,[w,v,l]),w.statusCode(r),r=void 0,j&&o.trigger(e?"ajaxSuccess":"ajaxError",[w,m,e?f:l]),q.fireWith(n,[w,v]),j&&(o.trigger("ajaxComplete",[w,m]),--ea.active||ea.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{}
;var e,f,g,h,i,j,k,l,m=ea.ajaxSetup({},b),n=m.context||m,o=m.context&&(n.nodeType||n.jquery)?ea(n):ea.event,p=ea.Deferred(),q=ea.Callbacks("once memory"),r=m.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!l)for(l={};b=Kb.exec(h);)l[b[1].toLowerCase()]=b[2];b=l[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?h:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>u)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return k&&k.abort(b),c(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,m.url=((a||m.url||Hb)+"").replace(Ib,"").replace(Nb,Gb[1]+"//"),m.type=b.method||b.type||m.method||m.type,m.dataTypes=ea.trim(m.dataType||"*").toLowerCase().match(sa)||[""],null==m.crossDomain&&(e=Ob.exec(m.url.toLowerCase()),m.crossDomain=!(!e||e[1]===Gb[1]&&e[2]===Gb[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(Gb[3]||("http:"===Gb[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=ea.param(m.data,m.traditional)),O(Pb,m,b,w),2===u)return w;j=m.global,j&&0==ea.active++&&ea.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Mb.test(m.type),g=m.url,m.hasContent||(m.data&&(g=m.url+=(Eb.test(g)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Jb.test(g)?g.replace(Jb,"$1_="+Db++):g+(Eb.test(g)?"&":"?")+"_="+Db++)),m.ifModified&&(ea.lastModified[g]&&w.setRequestHeader("If-Modified-Since",ea.lastModified[g]),ea.etag[g]&&w.setRequestHeader("If-None-Match",ea.etag[g])),(m.data&&m.hasContent&&!1!==m.contentType||b.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Rb+"; q=0.01":""):m.accepts["*"]);for(f in m.headers)w.setRequestHeader(f,m.headers[f]);if(m.beforeSend&&(!1===m.beforeSend.call(n,w,m)||2===u))return w.abort();v="abort";for(f in{success:1,error:1,complete:1})w[f](m[f]);if(k=O(Qb,m,b,w)){w.readyState=1,j&&o.trigger("ajaxSend",[w,m]),m.async&&m.timeout>0&&(i=setTimeout(function(){w.abort("timeout")},m.timeout));try{u=1,k.send(s,c)}catch(d){if(!(2>u))throw d;c(-1,d)}}else c(-1,"No Transport");return w},getJSON:function(a,b,c){return ea.get(a,b,c,"json")},getScript:function(a,b){return ea.get(a,void 0,b,"script")}}),ea.each(["get","post"],function(a,b){ea[b]=function(a,c,d,e){return ea.isFunction(c)&&(e=e||d,d=c,c=void 0),ea.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),ea.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){ea.fn[b]=function(a){return this.on(b,a)}}),ea._evalUrl=function(a){return ea.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ea.fn.extend({wrapAll:function(a){if(ea.isFunction(a))return this.each(function(b){ea(this).wrapAll(a.call(this,b))});if(this[0]){var b=ea(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(ea.isFunction(a)?function(b){ea(this).wrapInner(a.call(this,b))}:function(){var b=ea(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=ea.isFunction(a);return this.each(function(c){ea(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){ea.nodeName(this,"body")||ea(this).replaceWith(this.childNodes)}).end()}}),ea.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!ca.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||ea.css(a,"display"))},ea.expr.filters.visible=function(a){return!ea.expr.filters.hidden(a)};var Sb=/%20/g,Tb=/\[\]$/,Ub=/\r?\n/g,Vb=/^(?:submit|button|image|reset|file)$/i,Wb=/^(?:input|select|textarea|keygen)/i;ea.param=function(a,b){var c,d=[],e=function(a,b){b=ea.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=ea.ajaxSettings&&ea.ajaxSettings.traditional),ea.isArray(a)||a.jquery&&!ea.isPlainObject(a))ea.each(a,function(){e(this.name,this.value)});else for(c in a)S(c,a[c],b,e);return d.join("&").replace(Sb,"+")},ea.fn.extend({serialize:function(){return ea.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=ea.prop(this,"elements");return a?ea.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!ea(this).is(":disabled")&&Wb.test(this.nodeName)&&!Vb.test(a)&&(this.checked||!Da.test(a))}).map(function(a,b){var c=ea(this).val();return null==c?null:ea.isArray(c)?ea.map(c,function(a){return{name:b.name,value:a.replace(Ub,"\r\n")}}):{name:b.name,value:c.replace(Ub,"\r\n")}}).get()}}),ea.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&T()||U()}:T;var Xb=0,Yb={},Zb=ea.ajaxSettings.xhr();a.ActiveXObject&&ea(a).on("unload",function(){for(var a in Yb)Yb[a](void 0,!0)}),ca.cors=!!Zb&&"withCredentials"in Zb,(Zb=ca.ajax=!!Zb)&&ea.ajaxTransport(function(a){if(!a.crossDomain||ca.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yb[g],b=void 0,f.onreadystatechange=ea.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(ca){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}}),ea.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return ea.globalEval(a),a}}}),ea.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),ea.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=oa.head||ea("head")[0]||oa.documentElement;return{send:function(d,e){b=oa.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var $b=[],_b=/(=)\?(?=&|$)|\?\?/;ea.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=$b.pop()||ea.expando+"_"+Db++;return this[a]=!0,a}}),ea.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=!1!==b.jsonp&&(_b.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&_b.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=ea.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(_b,"$1"+e):!1!==b.jsonp&&(b.url+=(Eb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||ea.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,$b.push(e)),g&&ea.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),ea.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||oa;var d=la.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=ea.buildFragment([a],b,e),e&&e.length&&ea(e).remove(),ea.merge([],d.childNodes))};var ac=ea.fn.load;ea.fn.load=function(a,b,c){if("string"!=typeof a&&ac)return ac.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=ea.trim(a.slice(h,a.length)),a=a.slice(0,h)),ea.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&ea.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?ea("<div>").append(ea.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},ea.expr.filters.animated=function(a){return ea.grep(ea.timers,function(b){return a===b.elem}).length};var bc=a.document.documentElement;ea.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=ea.css(a,"position"),l=ea(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=ea.css(a,"top"),i=ea.css(a,"left"),j=("absolute"===k||"fixed"===k)&&ea.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),ea.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},ea.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){ea.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;return f?(b=f.documentElement,ea.contains(b,e)?(typeof e.getBoundingClientRect!==wa&&(d=e.getBoundingClientRect()),c=V(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d):void 0},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===ea.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),ea.nodeName(a[0],"html")||(c=a.offset()),c.top+=ea.css(a[0],"borderTopWidth",!0),c.left+=ea.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-ea.css(d,"marginTop",!0),left:b.left-c.left-ea.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||bc;a&&!ea.nodeName(a,"html")&&"static"===ea.css(a,"position");)a=a.offsetParent;return a||bc})}}),ea.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);ea.fn[a]=function(d){return Ca(this,function(a,d,e){var f=V(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?ea(f).scrollLeft():e,c?e:ea(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),ea.each(["top","left"],function(a,b){ea.cssHooks[b]=A(ca.pixelPosition,function(a,c){return c?(c=ab(a,b),cb.test(c)?ea(a).position()[b]+"px":c):void 0})}),ea.each({Height:"height",Width:"width"},function(a,b){ea.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){ea.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(!0===d||!0===e?"margin":"border");return Ca(this,function(b,c,d){var e;return ea.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?ea.css(b,c,g):ea.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),ea.fn.size=function(){return this.length},ea.fn.andSelf=ea.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ea});var cc=a.jQuery,dc=a.$;return ea.noConflict=function(b){return a.$===ea&&(a.$=dc),b&&a.jQuery===ea&&(a.jQuery=cc),ea},typeof b===wa&&(a.jQuery=a.$=ea),ea}),void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,e,f,g){if(Object.defineProperty)try{return Object.defineProperty(b,e,{configurable:!0,enumerable:!0,get:function(){return d(g),f},set:function(a){d(g),f=a}}),c}catch(h){}a._definePropertyBroken=!0,b[e]=f}var f={};a.migrateWarnings=[],!a.migrateMute&&b.console&&b.console.log&&b.console.log("JQMIGRATE: Logging is active"),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("<input/>",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(4>h.length&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return!0===f||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&!1!==e.nodeValue?d.toLowerCase():c},set:function(b,c,d){var e;return!1===c?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') may use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var e=(a.nodeName||"").toLowerCase();return"button"===e?j.apply(this,arguments):("input"!==e&&"option"!==e&&d("jQuery.fn.attr('value', val) no longer sets properties"),a.value=b,c)}};var o,p,q=a.fn.init,r=a.parseJSON,s=/^([^<]*)(<[\w\W]+>)([^>]*)$/;a.fn.init=function(b,c,e){var f;return b&&"string"==typeof b&&!a.isPlainObject(c)&&(f=s.exec(a.trim(b)))&&f[0]&&("<"!==b.charAt(0)&&d("$(html) HTML strings must start with '<' character"),f[3]&&d("$(html) HTML text after last tag is ignored"),"#"===f[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),c&&c.context&&(c=c.context),a.parseHTML)?q.call(this,a.parseHTML(f[2],c,!0),c,e):q.apply(this,arguments)},a.fn.init.prototype=a.fn,a.parseJSON=function(a){return a||null===a?r.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){return e&&e instanceof a&&!(e instanceof b)&&(e=b(e)),a.fn.init.call(this,d,e,c)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.ajaxSetup({converters:{"text json":a.parseJSON}});var t=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?t.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var u=/\/(java|ecma)script/i,v=a.fn.andSelf||a.fn.addBack;a.fn.andSelf=function(){return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),v.apply(this,arguments)},a.clean||(a.clean=function(b,e,f,g){e=e||document,e=!e.nodeType&&e[0]||e,e=e.ownerDocument||e,d("jQuery.clean() is deprecated");var h,i,j,k,l=[];if(a.merge(l,a.buildFragment(b,e).childNodes),f)for(j=function(a){return!a.type||u.test(a.type)?g?g.push(a.parentNode?a.parentNode.removeChild(a):a):f.appendChild(a):c},h=0;null!=(i=l[h]);h++)a.nodeName(i,"script")&&j(i)||(f.appendChild(i),i.getElementsByTagName!==c&&(k=a.grep(a.merge([],i.getElementsByTagName("script")),j),l.splice.apply(l,[h+1,0].concat(k)),h+=k.length));return l});var w=a.event.add,x=a.event.remove,y=a.event.trigger,z=a.fn.toggle,A=a.fn.live,B=a.fn.die,C="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",D=RegExp("\\b(?:"+C+")\\b"),E=/(?:^|\s)hover(\.\S+|)\b/,F=function(b){return"string"!=typeof b||a.event.special.hover?b:(E.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(E,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&D.test(b)&&d("AJAX events should be attached to document: "+b),w.call(this,a,F(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){x.call(this,a,F(b)||"",c,d,e)},a.fn.error=function(){var a=Array.prototype.slice.call(arguments,0);return d("jQuery.fn.error() is deprecated"),a.splice(0,0,"error"),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this)},a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return z.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;e.length>g;)e[g++].guid=f;return this.click(h)},a.fn.live=function(b,c,e){return d("jQuery.fn.live() is deprecated"),A?A.apply(this,arguments):(a(this.context).on(b,this.selector,c,e),this)},a.fn.die=function(b,c){return d("jQuery.fn.die() is deprecated"),B?B.apply(this,arguments):(a(this.context).off(b,this.selector||"**",c),this)},a.event.trigger=function(a,b,c,e){return c||D.test(a)||d("Global events are undocumented and deprecated"),y.call(this,a,b,c||document,e)},a.each(C.split("|"),function(b,c){a.event.special[c]={setup:function(){var b=this;return b!==document&&(a.event.add(document,c+"."+a.guid,function(){a.event.trigger(c,null,b,!0)}),a._data(this,c,a.guid++)),!1},teardown:function(){return this!==document&&a.event.remove(document,c+"."+a._data(this,c)),!1}}})}(jQuery,window),function(a,b){function c(b,c){var e,f,g,h=b.nodeName.toLowerCase();return"area"===h?(e=b.parentNode,f=e.name,!(!b.href||!f||"map"!==e.nodeName.toLowerCase())&&(!!(g=a("img[usemap=#"+f+"]")[0])&&d(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&d(b)}function d(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e=0,f=/^ui-id-\d+$/;a.ui=a.ui||{},a.extend(a.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var d,e,f=a(this[0]);f.length&&f[0]!==document;){if(("absolute"===(d=f.css("position"))||"relative"===d||"fixed"===d)&&(e=parseInt(f.css("zIndex"),10),!isNaN(e)&&0!==e))return e;f=f.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),e&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var f="Width"===d?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a(this).css(g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,e(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0||(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(jQuery),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var c,d=0;null!=(c=b[d]);d++)try{a(c).triggerHandler("remove")}catch(f){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){if(!this._createWidget)return new g(a,b);arguments.length&&this._createWidget(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){if(!a.isFunction(d))return void(i[b]=d);i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var b,c=this._super,f=this._superApply;return this._super=a,this._superApply=e,b=d.apply(this,arguments),this._super=c,this._superApply=f,b}}()}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix||b:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var e,f,g=d.call(arguments,1),h=0,i=g.length;h<i;h++)for(e in g[h])f=g[h][e],g[h].hasOwnProperty(e)&&f!==b&&(a.isPlainObject(f)?c[e]=a.isPlainObject(c[e])?a.widget.extend({},c[e],f):a.widget.extend({},f):c[e]=f);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var e,f,g,h=c;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(h={},e=c.split("."),c=e.shift(),e.length){for(f=h[c]=a.widget.extend({},this.options[c]),g=0;g<e.length-1;g++)f[e[g]]=f[e[g]]||{},f=f[e[g]];if(c=e.pop(),1===arguments.length)return f[c]===b?null:f[c];f[c]=d}else{if(1===arguments.length)return this.options[c]===b?null:this.options[c];h[c]=d}return this._setOptions(h),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||!0!==f.options.disabled&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&!1===g.apply(this.element[0],[c].concat(d))||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?!0===e||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(jQuery),function(a,b){var c=!1;a(document).mouseup(function(){c=!1}),a.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=!1!==this._mouseStart(b),!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0))}},_mouseMove:function(b){return a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,b),this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a,b){function c(a,b,c){
return[parseFloat(a[0])*(n.test(a[0])?b/100:1),parseFloat(a[1])*(n.test(a[1])?c/100:1)]}function d(b,c){return parseInt(a.css(b,c),10)||0}function e(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var f,g=Math.max,h=Math.abs,i=Math.round,j=/left|center|right/,k=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,m=/^\w+/,n=/%$/,o=a.fn.position;a.position={scrollbarWidth:function(){if(f!==b)return f;var c,d,e=a("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=e.children()[0];return a("body").append(e),c=g.offsetWidth,e.css("overflow","scroll"),d=g.offsetWidth,c===d&&(d=e[0].clientWidth),e.remove(),f=c-d},getScrollInfo:function(b){var c=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),d=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth;return{width:"scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,isDocument:!!c[0]&&9===c[0].nodeType,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return o.apply(this,arguments);b=a.extend({},b);var f,n,p,q,r,s,t=a(b.of),u=a.position.getWithinInfo(b.within),v=a.position.getScrollInfo(u),w=(b.collision||"flip").split(" "),x={};return s=e(t),t[0].preventDefault&&(b.at="left top"),n=s.width,p=s.height,q=s.offset,r=a.extend({},q),a.each(["my","at"],function(){var a,c,d=(b[this]||"").split(" ");1===d.length&&(d=j.test(d[0])?d.concat(["center"]):k.test(d[0])?["center"].concat(d):["center","center"]),d[0]=j.test(d[0])?d[0]:"center",d[1]=k.test(d[1])?d[1]:"center",a=l.exec(d[0]),c=l.exec(d[1]),x[this]=[a?a[0]:0,c?c[0]:0],b[this]=[m.exec(d[0])[0],m.exec(d[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===b.at[0]?r.left+=n:"center"===b.at[0]&&(r.left+=n/2),"bottom"===b.at[1]?r.top+=p:"center"===b.at[1]&&(r.top+=p/2),f=c(x.at,n,p),r.left+=f[0],r.top+=f[1],this.each(function(){var e,j,k=a(this),l=k.outerWidth(),m=k.outerHeight(),o=d(this,"marginLeft"),s=d(this,"marginTop"),y=l+o+d(this,"marginRight")+v.width,z=m+s+d(this,"marginBottom")+v.height,A=a.extend({},r),B=c(x.my,k.outerWidth(),k.outerHeight());"right"===b.my[0]?A.left-=l:"center"===b.my[0]&&(A.left-=l/2),"bottom"===b.my[1]?A.top-=m:"center"===b.my[1]&&(A.top-=m/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=i(A.left),A.top=i(A.top)),e={marginLeft:o,marginTop:s},a.each(["left","top"],function(c,d){a.ui.position[w[c]]&&a.ui.position[w[c]][d](A,{targetWidth:n,targetHeight:p,elemWidth:l,elemHeight:m,collisionPosition:e,collisionWidth:y,collisionHeight:z,offset:[f[0]+B[0],f[1]+B[1]],my:b.my,at:b.at,within:u,elem:k})}),b.using&&(j=function(a){var c=q.left-A.left,d=c+n-l,e=q.top-A.top,f=e+p-m,i={target:{element:t,left:q.left,top:q.top,width:n,height:p},element:{element:k,left:A.left,top:A.top,width:l,height:m},horizontal:d<0?"left":c>0?"right":"center",vertical:f<0?"top":e>0?"bottom":"middle"};n<l&&h(c+d)<n&&(i.horizontal="center"),p<m&&h(e+f)<p&&(i.vertical="middle"),g(h(c),h(d))>g(h(e),h(f))?i.important="horizontal":i.important="vertical",b.using.call(this,a,i)}),k.offset(a.extend(A,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-f-e;b.collisionWidth>f?i>0&&j<=0?(c=a.left+i+b.collisionWidth-f-e,a.left+=i-c):a.left=j>0&&i<=0?e:i>j?e+f-b.collisionWidth:e:i>0?a.left+=i:j>0?a.left-=j:a.left=g(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,f=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-f-e;b.collisionHeight>f?i>0&&j<=0?(c=a.top+i+b.collisionHeight-f-e,a.top+=i-c):a.top=j>0&&i<=0?e:i>j?e+f-b.collisionHeight:e:i>0?a.top+=i:j>0?a.top-=j:a.top=g(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,g=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-g-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];k<0?((c=a.left+m+n+o+b.collisionWidth-g-f)<0||c<h(k))&&(a.left+=m+n+o):l>0&&((d=a.left-b.collisionPosition.marginLeft+m+n+o-i)>0||h(d)<l)&&(a.left+=m+n+o)},top:function(a,b){var c,d,e=b.within,f=e.offset.top+e.scrollTop,g=e.height,i=e.isWindow?e.scrollTop:e.offset.top,j=a.top-b.collisionPosition.marginTop,k=j-i,l=j+b.collisionHeight-g-i,m="top"===b.my[1],n=m?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,o="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,p=-2*b.offset[1];k<0?(d=a.top+n+o+p+b.collisionHeight-g-f,a.top+n+o+p>k&&(d<0||d<h(k))&&(a.top+=n+o+p)):l>0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,a.top+n+o+p>l&&(c>0||h(c)<l)&&(a.top+=n+o+p))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.10.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||!1!==b.active&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){if("active"===a)return void this._activate(b);"event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||!1!==this.options.active||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),"disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b)},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),!1===b.active&&!0===b.collapsible||!this.headers.length?(b.active=!1,this.active=a()):!1===b.active?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var b,d=this.options,e=d.heightStyle,f=this.element.parent(),g=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(b){var c=a(this),d=c.attr("id"),e=c.next(),f=e.attr("id");d||(d=g+"-header-"+b,c.attr("id",d)),f||(f=g+"-panel-"+b,e.attr("id",f)),c.attr("aria-controls",f),e.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(d.event),"fill"===e?(b=f.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===e&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||!1===this._trigger("beforeActivate",b,j)||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr({tabIndex:-1,"aria-expanded":"false"}):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),void a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}})):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}})}(jQuery),function(a,b){a.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var b,c,d,e=this.element[0].nodeName.toLowerCase(),f="textarea"===e,g="input"===e;this.isMultiLine=!!f||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[f||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))return b=!0,d=!0,void(c=!0);b=!1,d=!1,c=!1;var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:b=!0,this._move("previousPage",e);break;case f.PAGE_DOWN:b=!0,this._move("nextPage",e);break;case f.UP:b=!0,this._keyEvent("previous",e);break;case f.DOWN:b=!0,this._keyEvent("next",e);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(b=!0,e.preventDefault(),this.menu.select(e));break;case f.TAB:this.menu.active&&this.menu.select(e);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:c=!0,this._searchTimeout(e)}},keypress:function(d){if(b)return b=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault());if(!c){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:this._move("previousPage",d);break;case e.PAGE_DOWN:this._move("nextPage",d);break;case e.UP:this._keyEvent("previous",d);break;case e.DOWN:this._keyEvent("next",d)}}},input:function(a){if(d)return d=!1,void a.preventDefault();this._searchTimeout(a)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(a){if(this.cancelBlur)return void delete this.cancelBlur;clearTimeout(this.searching),this.close(a),this._change(a)}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(b){b.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});var d=c.item.data("ui-autocomplete-item");!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,b){var c=b.item.data("ui-autocomplete-item"),d=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d,this.selectedItem=c})),!1!==this._trigger("select",a,{item:c})&&this._value(c.value),this.term=this._value(),this.close(a),this.selectedItem=c}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var b=this.options.appendTo;return b&&(b=b.jquery||b.nodeType?a(b):this.document.find(b).eq(0)),b||(b=this.element.closest(".ui-front")),b.length||(b=this.document[0].body),b},_initSource:function(){var b,c,d=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(b,e){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:b,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(b):!1!==this._trigger("search",b)?this._search(a):void 0},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var b=++this.requestIndex;return a.proxy(function(a){b===this.requestIndex&&this.__response(a),--this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"==typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty();this._renderMenu(c,b),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(b,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(b)},_move:function(a,b){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this._value(this.term),void this.menu.blur()):void this.menu[a](b):void this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(a,b),b.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments),this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})}(jQuery),function(a,b){var c,d="ui-button ui-widget ui-state-default ui-corner-all",e="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",f=function(){var b=a(this);setTimeout(function(){b.find(":ui-button").button("refresh")},1)},g=function(b){var c=b.name,d=b.form,e=a([]);return c&&(c=c.replace(/'/g,"\\'"),e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.10.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,f),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,e=this.options,h="checkbox"===this.type||"radio"===this.type,i=h?"":"ui-state-active";null===e.label&&(e.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(d).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){e.disabled||this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){e.disabled||a(this).removeClass(i)}).bind("click"+this.eventNamespace,function(a){e.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),h&&this.element.bind("change"+this.eventNamespace,function(){b.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(e.disabled)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(e.disabled)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];g(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(e.disabled)return!1;a(this).addClass("ui-state-active"),c=this,b.document.one("mouseup",function(){c=null})}).bind("mouseup"+this.eventNamespace,function(){if(e.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){if(e.disabled)return!1;b.keyCode!==a.ui.keyCode.SPACE&&b.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",e.disabled),this._resetButton()},_determineButtonType:function(){var a,b,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),b="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(d+" ui-state-active "+e).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,b){if(this._super(a,b),"disabled"===a)return this.element.prop("disabled",!!b),void(b&&this.buttonElement.removeClass("ui-state-focus"));this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b),"radio"===this.type?g(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var b=this.buttonElement.removeClass(e),c=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,g=[];d.primary||d.secondary?(this.options.text&&g.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(g.push(f?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(c)))):g.push("ui-button-text-only"),b.addClass(g.join(" "))}}),a.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,b){"disabled"===a&&this.buttons.button("option",a,b),this._super(a,b)},refresh:function(){var b="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(a,b){function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=d(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function d(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&a(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(f.inline?b.parent()[0]:f.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&a(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&a(this).addClass("ui-datepicker-next-hover"))})}function e(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.4"}});var f,g="datepicker";a.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return e(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),
"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){return{id:b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?d(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(c),a.data(b,g,c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,g,c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+i+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],g,n)),e(n.settings,f||{}),c=c&&c.constructor===Date?this._formatDate(n,c):c,this._dialogInput.val(c),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],g,n),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,g);d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,g),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==c&&"span"!==c||d.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,g);e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,g);e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==c&&"span"!==c||(d=e.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,g)}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,d,f){var g,h,i,j,k=this._getInst(c);if(2===arguments.length&&"string"==typeof d)return"defaults"===d?a.extend({},a.datepicker._defaults):k?"all"===d?a.extend({},k.settings):this._get(k,d):null;g=d||{},"string"==typeof d&&(g={},g[d]=f),k&&(this._curInst===k&&this._hideDatepicker(),h=this._getDateDatepicker(c,!0),i=this._getMinMaxDate(k,"min"),j=this._getMinMaxDate(k,"max"),e(k.settings,g),null!==i&&g.dateFormat!==b&&g.minDate===b&&(k.settings.minDate=this._formatDate(k,i)),null!==j&&g.dateFormat!==b&&g.maxDate===b&&(k.settings.maxDate=this._formatDate(k,j)),"disabled"in g&&(g.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(a(c),k),this._autoSize(k),this._setDate(k,h),this._updateAlternate(k),this._updateDatepicker(k))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,f,g,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),f=d?d.apply(b,[b,c]):{},!1!==f&&(e(c.settings,f),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),g=!1,a(b).parents().each(function(){return!(g|="fixed"===a(this).css("position"))}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,g),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":g?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,f=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,d=this._getNumberOfMonths(b),e=d[1];b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),e>1&&b.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var c,d,e,f,h=this._curInst;!h||b&&h!==a.data(b,g)||this._datepickerShowing&&(c=this._get(h,"showAnim"),d=this._get(h,"duration"),e=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[c]||a.effects[c])?h.dpDiv.hide(c,a.datepicker._get(h,"showOptions"),d,e):h.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(h,"onClose"),f&&f.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(""===(c="object"==typeof c?c.toString():c+""))return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=c.substring(i).match(e);if(!f)throw"Missing number at position "+i;return i+=f[0].length,parseInt(f[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(i,d.length).toLowerCase()===d.toLowerCase())return f=b[0],i+=d.length,!1}),-1!==f)return f+1;throw"Unknown name at position "+i},x=function(){if(c.charAt(i)!==b.charAt(e))throw"Unexpected literal at position "+i;i++};for(e=0;e<b.length;e++)if(t)"'"!==b.charAt(e)||u("'")?x():t=!1;else switch(b.charAt(e)){case"d":r=v("d");break;case"D":w("D",l,m);break;case"o":s=v("o");break;case"m":q=v("m");break;case"M":q=w("M",n,o);break;case"y":p=v("y");break;case"@":h=new Date(v("@")),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"!":h=new Date((v("!")-this._ticksTo1970)/1e4),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"'":u("'")?x():t=!0;break;default:x()}if(i<c.length&&(g=c.substr(i),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(-1===p?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=k?0:-100)),s>-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),r<=f)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,c){return a.settings[c]!==b?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(event){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(j){}for(var d=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(c);i;){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=7*parseInt(i[1],10);break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f))}i=h.exec(c)}return new Date(e,f,g)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)--_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?"&#xa0;":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":"&#xa0;")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":"&#xa0;")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1)
;return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new c,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.4"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c,d=this;if(this._isOpen&&!1!==this._trigger("beforeClose",b)){if(this._isOpen=!1,this._destroyOverlay(),!this.opener.filter(":focusable").focus().length)try{c=this.document[0].activeElement,c&&"body"!==c.nodeName.toLowerCase()&&a(c).blur()}catch(e){}this._hide(this.uiDialog,this.options.hide,function(){d._trigger("close",b)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;if(this._isOpen)return void(this._moveToTop()&&this._focusTabbable());this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),this._trigger("open")},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement;this.uiDialog[0]===b||a.contains(this.uiDialog[0],b)||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html("&#160;"),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length)return void this.uiDialog.removeClass("ui-dialog-buttons");a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("<button></button>",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function b(a){return{position:a.position,offset:a.offset}}var c=this,d=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,e){a(this).addClass("ui-dialog-dragging"),c._blockFrames(),c._trigger("dragStart",d,b(e))},drag:function(a,d){c._trigger("drag",a,b(d))},stop:function(e,f){d.position=[f.position.left-c.document.scrollLeft(),f.position.top-c.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),c._unblockFrames(),c._trigger("dragStop",e,b(f))}})},_makeResizable:function(){function b(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var c=this,d=this.options,e=d.resizable,f=this.uiDialog.css("position"),g="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:d.maxWidth,maxHeight:d.maxHeight,minWidth:d.minWidth,minHeight:this._minHeight(),handles:g,start:function(d,e){a(this).addClass("ui-dialog-resizing"),c._blockFrames(),c._trigger("resizeStart",d,b(e))},resize:function(a,d){c._trigger("resize",a,b(d))},stop:function(e,f){d.height=a(this).height(),d.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),c._unblockFrames(),c._trigger("resizeStop",e,b(f))}}).css("position",f)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||!1===b||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,!1!==a.uiBackCompat&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var b,c=this.options.position,d=[],e=[0,0];c?(("string"==typeof c||"object"==typeof c&&"0"in c)&&(d=c.split?c.split(" "):[c[0],c[1]],1===d.length&&(d[1]=d[0]),a.each(["left","top"],function(a,b){+d[a]===d[a]&&(e[a]=d[a],d[a]=b)}),c={my:d[0]+(e[0]<0?e[0]:"+"+e[0])+" "+d[1]+(e[1]<0?e[1]:"+"+e[1]),at:d.join(" ")}),c=a.extend({},a.ui.dialog.prototype.options.position,c)):c=a.ui.dialog.prototype.options.position,b=this.uiDialog.is(":visible"),b||this.uiDialog.show(),this.uiDialog.position(c),b||this.uiDialog.hide()}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(a(!0===c.iframeFix?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0))},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),!1===this._trigger("start",b)?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(!1===this._trigger("drag",b,d))return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||!0===this.options.revert||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==c._trigger("stop",b)&&c._clear()}):!1!==this._trigger("stop",b)&&this._clear(),!1)},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;return e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),void((d=c[0])&&(b="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c))):void(this.containment=null)},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()}),{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(b){var c,d,e,f,g=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=b.pageX,j=b.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(d=this.relative_container.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,b.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),b.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),b.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),b.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"===b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("ui-draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"ui-sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("ui-draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("ui-draggable"),e=this;a.each(d.sortables,function(){var f=!1,g=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("ui-draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("ui-draggable"),d=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+d.scrollSpeed:b.pageY-c.overflowOffset.top<d.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-d.scrollSpeed)),d.axis&&"y"===d.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+d.scrollSpeed:b.pageX-c.overflowOffset.left<d.scrollSensitivity&&(c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"===d.axis||(b.pageY-a(document).scrollTop()<d.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"===d.axis||(b.pageX-a(document).scrollLeft()<d.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)))),!1!==e&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("ui-draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(b,c){var d,e,f,g,h,i,j,k,l,m,n=a(this).data("ui-draggable"),o=n.options,p=o.snapTolerance,q=c.offset.left,r=q+n.helperProportions.width,s=c.offset.top,t=s+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)h=n.snapElements[l].left,i=h+n.snapElements[l].width,j=n.snapElements[l].top,k=j+n.snapElements[l].height,r<h-p||q>i+p||t<j-p||s>k+p||!a.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==o.snapMode&&(d=Math.abs(j-t)<=p,e=Math.abs(k-s)<=p,f=Math.abs(h-r)<=p,g=Math.abs(i-q)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j-n.helperProportions.height,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i}).left-n.margins.left)),m=d||e||f||g,"outer"!==o.snapMode&&(d=Math.abs(j-s)<=p,e=Math.abs(k-t)<=p,f=Math.abs(h-q)<=p,g=Math.abs(i-r)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k-n.helperProportions.height,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(d||e||f||g||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=d||e||f||g||m)}}),a.ui.plugin.add("draggable","stack",{start:function(){var b,c=this.data("ui-draggable").options,d=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});d.length&&(b=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(c){a(this).css("zIndex",b+c)}),this.css("zIndex",b+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}a.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var b,c=this.options,d=c.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(d)?d:function(a){return a.is(d)},this.proportions=function(){if(!arguments.length)return b||(b={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});b=arguments[0]},a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[],a.ui.ddmanager.droppables[c.scope].push(this),c.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=0,c=a.ui.ddmanager.droppables[this.options.scope];b<c.length;b++)c[b]===this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){"accept"===b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),
this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"ui-droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope===d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(a,b,d){if(!b.offset)return!1;var e,f,g=(a.positionAbs||a.position.absolute).left,h=(a.positionAbs||a.position.absolute).top,i=g+a.helperProportions.width,j=h+a.helperProportions.height,k=b.offset.left,l=b.offset.top,m=k+b.proportions().width,n=l+b.proportions().height;switch(d){case"fit":return k<=g&&i<=m&&l<=h&&j<=n;case"intersect":return k<g+a.helperProportions.width/2&&i-a.helperProportions.width/2<m&&l<h+a.helperProportions.height/2&&j-a.helperProportions.height/2<n;case"pointer":return e=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,f=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,c(f,l,b.proportions().height)&&c(e,k,b.proportions().width);case"touch":return(h>=l&&h<=n||j>=l&&j<=n||h<l&&j>n)&&(g>=k&&g<=m||i>=k&&i<=m||g<k&&i>m);default:return!1}},a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions().height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions({width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight}))}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=a.ui.intersect(b,this,this.options.tolerance),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),f.length&&(d=a.data(f[0],"ui-droppable"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),function(a,b){var c="ui-effects-";a.effects={effect:{}},function(a,b){function c(a,b,c){var d=l[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function d(b){var c=j(),d=c._rgba=[];return b=b.toLowerCase(),o(i,function(a,e){var f,g=e.re.exec(b),h=g&&e.parse(g),i=e.space||"rgba";if(h)return f=c[i](h),c[k[i].cache]=f[k[i].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,f.transparent),c):f[b]}function e(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var f,g="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",h=/^([\-+])=\s*(\d+\.?\d*)/,i=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],j=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},k={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},l={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=j.support={},n=a("<p>")[0],o=a.each;n.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=n.style.backgroundColor.indexOf("rgba")>-1,o(k,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),j.fn=a.extend(j.prototype,{parse:function(e,g,h,i){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(g),g=b);var l=this,m=a.type(e),n=this._rgba=[];return g!==b&&(e=[e,g,h,i],m="array"),"string"===m?this.parse(d(e)||f._default):"array"===m?(o(k.rgba.props,function(a,b){n[b.idx]=c(e[b.idx],b)}),this):"object"===m?(e instanceof j?o(k,function(a,b){e[b.cache]&&(l[b.cache]=e[b.cache].slice())}):o(k,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!l[f]&&d.to){if("alpha"===a||null==e[a])return;l[f]=d.to(l._rgba)}l[f][b.idx]=c(e[a],b,!0)}),l[f]&&a.inArray(null,l[f].slice(0,3))<0&&(l[f][3]=1,d.from&&(l._rgba=d.from(l[f])))}),this):void 0},is:function(a){var b=j(a),c=!0,d=this;return o(k,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return o(k,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=j(a),e=d._space(),f=k[e],g=0===this.alpha()?j("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],j=d[f],k=l[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=c((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=j(b)._rgba;return j(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===j?0:l<=.5?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=d<=.5?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(k,function(d,e){var f=e.props,g=e.cache,i=e.to,k=e.from;j.fn[d]=function(d){if(i&&!this[g]&&(this[g]=i(this._rgba)),d===b)return this[g].slice();var e,h=a.type(d),l="array"===h||"object"===h?d:arguments,m=this[g].slice();return o(f,function(a,b){var d=l["object"===h?a:b.idx];null==d&&(d=m[b.idx]),m[b.idx]=c(d,b)}),k?(e=j(k(m)),e[g]=m,e):j(m)},o(f,function(b,c){j.fn[b]||(j.fn[b]=function(e){var f,g=a.type(e),i="alpha"===b?this._hsla?"hsla":"rgba":d,j=this[i](),k=j[c.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&c.empty?this:("string"===g&&(f=h.exec(e))&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1)),j[c.idx]=e,this[i](j)))})})}),j.hook=function(b){var c=b.split(" ");o(c,function(b,c){a.cssHooks[c]={set:function(b,e){var f,g,h="";if("transparent"!==e&&("string"!==a.type(e)||(f=d(e)))){if(e=j(f||e),!m.rgba&&1!==e._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}e=e.blend(h&&"transparent"!==h?h:"_default")}e=e.toRgbaString()}try{b.style[c]=e}catch(i){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=j(b.elem,c),b.end=j(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},j.hook(g),a.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},f=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function c(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function d(b,c){var d,e,g={};for(d in c)e=c[d],b[d]!==e&&(f[d]||!a.fx.step[d]&&isNaN(parseFloat(e))||(g[d]=e));return g}var e=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(b,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f,g=a(this),h=g.attr("class")||"",j=i.children?g.find("*").addBack():g;j=j.map(function(){return{el:a(this),start:c(this)}}),f=function(){a.each(e,function(a,c){b[c]&&g[c+"Class"](b[c])})},f(),j=j.map(function(){return this.end=c(this.el[0]),this.diff=d(this.start,this.end),this}),g.attr("class",h),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){f(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(g[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(c){return function(d,e,f,g,h){return"boolean"==typeof e||e===b?f?a.effects.animateClass.call(this,e?{add:d}:{remove:d},f,g,h):c.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},e,f,g)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function d(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function e(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.10.4",save:function(a,b){for(var d=0;d<b.length;d++)null!==b[d]&&a.data(c+b[d],a[0].style[b[d]])},restore:function(a,d){var e,f;for(f=0;f<d.length;f++)null!==d[f]&&(e=a.data(c+d[f]),e===b&&(e=""),a.css(d[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),float:b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function b(b){function d(){a.isFunction(f)&&f.call(e[0]),a.isFunction(b)&&b()}var e=a(this),f=c.complete,h=c.mode;(e.is(":hidden")?"hide"===h:"show"===h)?(e[h](),d()):g.call(e[0],c,d)}var c=d.apply(this,arguments),e=c.mode,f=c.queue,g=a.effects.effect[c.effect];return a.fx.off||!g?e?this[e](c.duration,c.complete):this.each(function(){c.complete&&c.complete.call(this)}):!1===f?this.each(b):this.queue(f||"fx",b)},show:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="show",this.effect.call(this,c)}}(a.fn.show),hide:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)}}(a.fn.hide),toggle:function(a){return function(b){if(e(b)||"boolean"==typeof b)return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(-2*a+2)/2}})}()}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var f,g,h,i=a(this),j=["position","top","bottom","left","right","height","width"],k=a.effects.setMode(i,b.mode||"hide"),l=b.direction||"up",m=c.test(l),n=m?"height":"width",o=m?"top":"left",p=d.test(l),q={},r="show"===k;i.parent().is(".ui-effects-wrapper")?a.effects.save(i.parent(),j):a.effects.save(i,j),i.show(),f=a.effects.createWrapper(i).css({overflow:"hidden"}),g=f[n](),h=parseFloat(f.css(o))||0,q[n]=r?g:0,p||(i.css(m?"bottom":"right",0).css(m?"top":"left","auto").css({position:"absolute"}),q[o]=r?h:g+h),r&&(f.css(n,0),p||f.css(o,h+g)),f.animate(q,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===k&&i.hide(),a.effects.restore(i,j),a.effects.removeWrapper(i),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","height","width"],i=a.effects.setMode(g,b.mode||"effect"),j="hide"===i,k="show"===i,l=b.direction||"up",m=b.distance,n=b.times||5,o=2*n+(k||j?1:0),p=b.duration/o,q=b.easing,r="up"===l||"down"===l?"top":"left",s="up"===l||"left"===l,t=g.queue(),u=t.length;for((k||j)&&h.push("opacity"),a.effects.save(g,h),g.show(),a.effects.createWrapper(g),m||(m=g["top"===r?"outerHeight":"outerWidth"]()/3),k&&(f={opacity:1},f[r]=0,g.css("opacity",0).css(r,s?2*-m:2*m).animate(f,p,q)),j&&(m/=Math.pow(2,n-1)),f={},f[r]=0,d=0;d<n;d++)e={},e[r]=(s?"-=":"+=")+m,g.animate(e,p,q).animate(f,p,q),m=j?2*m:m/2;j&&(e={opacity:0},e[r]=(s?"-=":"+=")+m,g.animate(e,p,q)),g.queue(function(){j&&g.hide(),a.effects.restore(g,h),a.effects.removeWrapper(g),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,o+1))),g.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","height","width"],i=a.effects.setMode(g,b.mode||"hide"),j="show"===i,k=b.direction||"vertical",l="vertical"===k,m=l?"height":"width",n=l?"top":"left",o={};a.effects.save(g,h),g.show(),d=a.effects.createWrapper(g).css({overflow:"hidden"}),e="IMG"===g[0].tagName?d:g,f=e[m](),j&&(e.css(m,0),e.css(n,f/2)),o[m]=j?f:0,o[n]=j?0:f/2,e.animate(o,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){j||g.hide(),a.effects.restore(g,h),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var d,e=a(this),f=["position","top","bottom","left","right","opacity","height","width"],g=a.effects.setMode(e,b.mode||"hide"),h="show"===g,i=b.direction||"left",j="up"===i||"down"===i?"top":"left",k="up"===i||"left"===i?"pos":"neg",l={opacity:h?1:0};a.effects.save(e,f),e.show(),a.effects.createWrapper(e),d=b.distance||e["top"===j?"outerHeight":"outerWidth"](!0)/2,h&&e.css("opacity",0).css(j,"pos"===k?-d:d),l[j]=(h?"pos"===k?"+=":"-=":"pos"===k?"-=":"+=")+d,e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function d(){t.push(this),t.length===l*m&&e()}function e(){n.css({visibility:"visible"}),a(t).remove(),p||n.hide(),c()}var f,g,h,i,j,k,l=b.pieces?Math.round(Math.sqrt(b.pieces)):3,m=l,n=a(this),o=a.effects.setMode(n,b.mode||"hide"),p="show"===o,q=n.show().css("visibility","hidden").offset(),r=Math.ceil(n.outerWidth()/m),s=Math.ceil(n.outerHeight()/l),t=[];for(f=0;f<l;f++)for(i=q.top+f*s,k=f-(l-1)/2,g=0;g<m;g++)h=q.left+g*r,j=g-(m-1)/2,n.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-g*r,top:-f*s}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r,height:s,left:h+(p?j*r:0),top:i+(p?k*s:0),opacity:p?0:1}).animate({left:h+(p?0:j*r),top:i+(p?0:k*s),opacity:p?1:0},b.duration||500,b.easing,d)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var d,e,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i="show"===h,j="hide"===h,k=b.size||15,l=/([0-9]+)%/.exec(k),m=!!b.horizFirst,n=i!==m,o=n?["width","height"]:["height","width"],p=b.duration/2,q={},r={};a.effects.save(f,g),f.show(),d=a.effects.createWrapper(f).css({overflow:"hidden"}),e=n?[d.width(),d.height()]:[d.height(),d.width()],l&&(k=parseInt(l[1],10)/100*e[j?0:1]),i&&d.css(m?{height:0,width:k}:{height:k,width:0}),q[o[0]]=i?e[0]:k,r[o[1]]=i?e[1]:0,d.animate(q,p,b.easing).animate(r,p,b.easing,function(){j&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var d,e=a(this),f=a.effects.setMode(e,b.mode||"show"),g="show"===f,h="hide"===f,i=g||"hide"===f,j=2*(b.times||5)+(i?1:0),k=b.duration/j,l=0,m=e.queue(),n=m.length;for(!g&&e.is(":visible")||(e.css("opacity",0).show(),l=1),d=1;d<j;d++)e.animate({opacity:l},k,b.easing),l=1-l;e.animate({opacity:l},k,b.easing),e.queue(function(){h&&e.hide(),c()}),n>1&&m.splice.apply(m,[1,0].concat(m.splice(n,j+1))),e.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var d,e=a(this),f=["position","top","bottom","left","right","height","width"],g=a.effects.setMode(e,b.mode||"effect"),h=b.direction||"left",i=b.distance||20,j=b.times||3,k=2*j+1,l=Math.round(b.duration/k),m="up"===h||"down"===h?"top":"left",n="up"===h||"left"===h,o={},p={},q={},r=e.queue(),s=r.length;for(a.effects.save(e,f),e.show(),a.effects.createWrapper(e),o[m]=(n?"-=":"+=")+i,p[m]=(n?"+=":"-=")+2*i,q[m]=(n?"-=":"+=")+2*i,e.animate(o,l,b.easing),d=1;d<j;d++)e.animate(p,l,b.easing).animate(q,l,b.easing);e.animate(p,l,b.easing).animate(o,l/2,b.easing).queue(function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}),s>1&&r.splice.apply(r,[1,0].concat(r.splice(s,k+1))),e.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var d,e=a(this),f=["position","top","bottom","left","right","width","height"],g=a.effects.setMode(e,b.mode||"show"),h="show"===g,i=b.direction||"left",j="up"===i||"down"===i?"top":"left",k="up"===i||"left"===i,l={};a.effects.save(e,f),e.show(),d=b.distance||e["top"===j?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(e).css({overflow:"hidden"}),h&&e.css(j,k?isNaN(d)?"-"+d:-d:d),l[j]=(h?k?"+=":"-=":k?"-=":"+=")+d,e.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===g&&e.hide(),a.effects.restore(e,f),a.effects.removeWrapper(e),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.select(b),b.isPropagationStopped()||(this.mouseHandled=!0),c.has(".ui-menu").length?this.expand(b):!this.element.is(":focus")&&a(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function c(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var d,e,f,g,h,i=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:i=!1,e=this.previousFilter||"",
f=String.fromCharCode(b.keyCode),g=!1,clearTimeout(this.filterTimer),f===e?g=!0:f=e+f,h=new RegExp("^"+c(f),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())}),d=g&&-1!==d.index(this.active.next())?this.active.nextAll(".ui-menu-item"):d,d.length||(f=String.fromCharCode(b.keyCode),h=new RegExp("^"+c(f),"i"),d=this.activeMenu.children(".ui-menu-item").filter(function(){return h.test(a(this).children("a").text())})),d.length?(this.focus(b,d),d.length>1?(this.previousFilter=f,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}i&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&a&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;if(!this.active)return void this.next(b);this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))},previousPage:function(b){var c,d,e;if(!this.active)return void this.next(b);this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){if(a===b)return this.options.value;this.options.value=this._constrainedValue(a),this._refreshValue()},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=!1===a,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){function c(a){return parseInt(a,10)||0}function d(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,c,d,e,f,g=this,h=this.options;if(this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=h.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},c=0;c<b.length;c++)d=a.trim(b[c]),f="ui-resizable-"+d,e=a("<div class='ui-resizable-handle "+f+"'></div>"),e.css({zIndex:h.zIndex}),"se"===d&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(e);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String&&(this.handles[c]=a(this.handles[c],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),a(this.handles[c]).length},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){g.resizing||(this.className&&(e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=e&&e[1]?e[1]:"se")}),h.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){h.disabled||(a(this).removeClass("ui-resizable-autohide"),g._handles.show())}).mouseleave(function(){h.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)((d=a(this.handles[c])[0])===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var d,e,f,g=this.options,h=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:h.top,left:h.left}),this._renderProxy(),d=c(this.helper.css("left")),e=c(this.helper.css("top")),g.containment&&(d+=a(g.containment).scrollLeft()||0,e+=a(g.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:e},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:d,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof g.aspectRatio?g.aspectRatio:this.originalSize.width/this.originalSize.height||1,f=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===f?this.axis+"-resize":f),i.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d=this.helper,e={},f=this.originalMousePosition,g=this.axis,h=this.position.top,i=this.position.left,j=this.size.width,k=this.size.height,l=b.pageX-f.left||0,m=b.pageY-f.top||0,n=this._change[g];return!!n&&(c=n.apply(this,[b,l,m]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),this.position.top!==h&&(e.top=this.position.top+"px"),this.position.left!==i&&(e.left=this.position.left+"px"),this.size.width!==j&&(e.width=this.size.width+"px"),this.size.height!==k&&(e.height=this.size.height+"px"),d.css(e),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(e)||this._trigger("resize",b,this.ui()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b,c,e,f,g,h=this.options;g={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:1/0,minHeight:d(h.minHeight)?h.minHeight:0,maxHeight:d(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||a)&&(b=g.minHeight*this.aspectRatio,e=g.minWidth/this.aspectRatio,c=g.maxHeight*this.aspectRatio,f=g.maxWidth/this.aspectRatio,b>g.minWidth&&(g.minWidth=b),e>g.minHeight&&(g.minHeight=e),c<g.maxWidth&&(g.maxWidth=c),f<g.maxHeight&&(g.maxHeight=f)),this._vBoundaries=g},_updateCache:function(a){this.offset=this.helper.offset(),d(a.left)&&(this.position.left=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,e=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===e&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===e&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,e=d(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=d(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=d(a.width)&&b.minWidth&&b.minWidth>a.width,h=d(a.height)&&b.minHeight&&b.minHeight>a.height,i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(c),l=/nw|ne|n/.test(c);return g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&l&&(a.top=j-b.minHeight),f&&l&&(a.top=j-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,b,c,d,e,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){if(e=this._proportionallyResizeElements[a],!this.borderDif)for(this.borderDif=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.borderDif[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize;return{left:this.originalPosition.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize;return{top:this.originalPosition.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("ui-resizable"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,d,e,f,g,h,i,j=a(this).data("ui-resizable"),k=j.options,l=j.element,m=k.containment,n=m instanceof a?m.get(0):/parent/.test(m)?l.parent().get(0):m;n&&(j.containerElement=a(n),/document/.test(m)||m===document?(j.containerOffset={left:0,top:0},j.containerPosition={left:0,top:0},j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(n),d=[],a(["Top","Right","Left","Bottom"]).each(function(a,e){d[a]=c(b.css("padding"+e))}),j.containerOffset=b.offset(),j.containerPosition=b.position(),j.containerSize={height:b.innerHeight()-d[3],width:b.innerWidth()-d[1]},e=j.containerOffset,f=j.containerSize.height,g=j.containerSize.width,h=a.ui.hasScroll(n,"left")?n.scrollWidth:g,i=a.ui.hasScroll(n)?n.scrollHeight:f,j.parentData={element:n,left:e.left,top:e.top,width:h,height:i}))},resize:function(b){var c,d,e,f,g=a(this).data("ui-resizable"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?i.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,c=Math.abs((g._helper,g.offset.left-l.left+g.sizeDiff.width)),d=Math.abs((g._helper?g.offset.top-l.top:g.offset.top-i.top)+g.sizeDiff.height),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f&&(c-=Math.abs(g.parentData.left)),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};"object"!=typeof c.alsoResize||c.alsoResize.parentNode?d(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],d(c.alsoResize)):a.each(c.alsoResize,function(a){d(a)})},resize:function(b,c){var d=a(this).data("ui-resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};"object"!=typeof e.alsoResize||e.alsoResize.nodeType?i(e.alsoResize):a.each(e.alsoResize,function(a,b){i(a,b)})},stop:function(){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size,e=b.originalSize,f=b.originalPosition,g=b.axis,h="number"==typeof c.grid?[c.grid,c.grid]:c.grid,i=h[0]||1,j=h[1]||1,k=Math.round((d.width-e.width)/i)*i,l=Math.round((d.height-e.height)/j)*j,m=e.width+k,n=e.height+l,o=c.maxWidth&&c.maxWidth<m,p=c.maxHeight&&c.maxHeight<n,q=c.minWidth&&c.minWidth>m,r=c.minHeight&&c.minHeight>n;c.grid=h,q&&(m+=i),r&&(n+=j),o&&(m-=i),p&&(n-=j),/^(se|s|e)$/.test(g)?(b.size.width=m,b.size.height=n):/^(ne)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.top=f.top-l):/^(sw)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.left=f.left-k):(n-j>0?(b.size.height=n,b.position.top=f.top-l):(b.size.height=j,b.position.top=f.top+e.height-j),m-i>0?(b.size.width=m,b.position.left=f.left-k):(b.size.width=i,b.position.left=f.left+e.width-i))}})}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b,c=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b=a(c.options.filter,c.element[0]),b.addClass("ui-selectee"),b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=b.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1;c&&c.element!==d.element[0]&&("touch"===e.tolerance?j=!(c.left>h||c.right<f||c.top>i||c.bottom<g):"fit"===e.tolerance&&(j=c.left>f&&c.right<h&&c.top>g&&c.bottom<i),j?(c.selected&&(c.$element.removeClass("ui-selected"),c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b<c;b++)f.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=e.add(a(f.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)})},_createRange:function(){var b=this.options,c="";b.range?(!0===b.range&&(b.values?b.values.length&&2!==b.values.length?b.values=[b.values[0],b.values[0]]:a.isArray(b.values)&&(b.values=b.values.slice(0)):b.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j=this,k=this.options;return!k.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-j.values(b));(e>c||e===c&&(b===j._lastChangedValue||j.values(b)===k.min))&&(e=c,f=a(this),g=b)}),!1!==this._start(b,g)&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),h=f.offset(),
i=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=i?{left:0,top:0}:{left:b.pageX-h.left-f.width()/2,top:b.pageY-h.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&!0===this.options.range&&(0===b&&c>d||1===b&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),!1!==f&&this.values(b,c))):c!==this.value()&&!1!==(f=this._trigger("slide",a,{handle:this.handles[b],value:c}))&&this.value(c)},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._lastChangedValue=b,this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),void this._change(null,0)):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch("range"===b&&!0===this.options.range&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b);if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),!0===i.options.range&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),!1===this._start(b,g)))return}switch(f=this.options.step,d=e=this.options.values&&this.options.values.length?this.values(g):this.value(),b.keyCode){case a.ui.keyCode.HOME:e=this._valueMin();break;case a.ui.keyCode.END:e=this._valueMax();break;case a.ui.keyCode.PAGE_UP:e=this._trimAlignValue(d+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:e=this._trimAlignValue(d-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(d===this._valueMax())return;e=this._trimAlignValue(d+f);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(d===this._valueMin())return;e=this._trimAlignValue(d-f)}this._slide(b,g,e)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}function d(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===a.axis||d(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-a(document).scrollTop()<g.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)),b.pageX-a(document).scrollLeft()<g.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))),!1!==h&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],(f=this._intersectsWithPointer(d))&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,a.top,a.height),d="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,a.left,a.width),e=b&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return!!e&&(this.floating?g&&"right"===g||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(a){var b=c(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),d=c(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"===f&&d||"left"===f&&!d:e&&("down"===e&&b||"up"===e&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){function c(){h.push(this)}var d,e,f,g,h=[],i=[],j=this._connectWith();if(j&&b)for(d=j.length-1;d>=0;d--)for(f=a(j[d]),e=f.length-1;e>=0;e--)(g=a.data(f[e],this.widgetFullName))&&g!==this&&!g.options.disabled&&i.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g]);for(i.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),d=i.length-1;d>=0;d--)i[d][0].each(c);return a(h)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c]),d=e.length-1;d>=0;d--)(f=a.data(e[d],this.widgetFullName))&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===d?b.currentItem.children().each(function(){a("<td>&#160;</td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)}):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,f,g,h,i,j,k,l,m,n,o=null,p=null;for(e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(o&&a.contains(this.containers[e].element[0],o.element[0]))continue;o=this.containers[e],p=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(o)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(g=1e4,h=null,n=o.floating||d(this.currentItem),i=n?"left":"top",j=n?"width":"height",k=this.positionAbs[i]+this.offset.click[i],f=this.items.length-1;f>=0;f--)a.contains(this.containers[p].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(n&&!c(this.positionAbs.top+this.offset.click.top,this.items[f].top,this.items[f].height)||(l=this.items[f].item.offset()[i],m=!1,Math.abs(l-k)>Math.abs(l+this.items[f][j]-k)&&(m=!0,l+=this.items[f][j]),Math.abs(l-k)<g&&(g=Math.abs(l-k),h=this.items[f],this.direction=m?"up":"down")));if(!h&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return;h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[p].element,!0),this._trigger("change",b,this._uiHash()),this.containers[p]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){function c(a,b,c){return function(d){c._trigger(a,d,b._uiHash(b))}}this.reverting=!1;var d,e=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(d in this._storedCSS)"auto"!==this._storedCSS[d]&&"static"!==this._storedCSS[d]||(this._storedCSS[d]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||e.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(e.push(function(a){this._trigger("remove",a,this._uiHash())}),e.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),e.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),d=this.containers.length-1;d>=0;d--)b||e.push(c("deactivate",this,this.containers[d])),this.containers[d].containerCache.over&&(e.push(c("out",this,this.containers[d])),this.containers[d].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!b){for(this._trigger("beforeStop",a,this._uiHash()),d=0;d<e.length;d++)e[d].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!1}if(b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!b){for(d=0;d<e.length;d++)e[d].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===a.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),
this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){if(this.cancelBlur)return void delete this.cancelBlur;this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",a)},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function c(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d}))}var d;d=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),c.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,c.call(this)}),!1!==this._start(b)&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return!1!==this._start(b)&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(a){return!(!this.spinning&&!1===this._trigger("start",a))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",b,{value:c})||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return-1===c?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a<d.min?d.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,b){if("culture"===a||"numberFormat"===a){var c=this._parse(this.element.val());return this.options[a]=b,void this.element.val(this._format(c))}"max"!==a&&"min"!==a&&"step"!==a||"string"==typeof b&&(b=this._parse(b)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(b.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(b.down)),this._super(a,b),"disabled"===a&&(b?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(a){this._super(a),this._value(this.element.val())}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,b){var c;""!==a&&null!==(c=this._parse(a))&&(b||(c=this._adjustValue(c)),a=this._format(c)),this.element.val(a),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:b(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:b(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:b(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){if(!arguments.length)return this._parse(this.element.val());b(this._value).call(this,a)},widget:function(){return this.uiSpinner}})}(jQuery),function(a,b){function c(){return++e}function d(a){return a=a.cloneNode(!1),a.hash.length>1&&decodeURIComponent(a.href.replace(f,""))===decodeURIComponent(location.href.replace(f,""))}var e=0,f=/#.*$/;a.widget("ui.tabs",{version:"1.10.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&-1!==b||(b=!!this.tabs.length&&0)),!1!==b&&-1===(b=this.tabs.index(this.tabs.eq(b)))&&(b=!c&&0),!c&&!1===b&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function d(){return b>e&&(b=0),b<0&&(b=e),b}for(var e=this.tabs.length-1;-1!==a.inArray(d(),this.options.disabled);)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||!1!==this.options.active||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+c()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),!1!==b.active&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,e){var f,g,h,i=a(e).uniqueId().attr("id"),j=a(e).closest("li"),k=j.attr("aria-controls");d(e)?(f=e.hash,g=b.element.find(b._sanitizeSelector(f))):(h=b._tabId(j),f="#"+h,g=b.element.find(f),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":f.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var c,d=0;c=this.tabs[d];d++)!0===b||-1!==a.inArray(d,b)?a(c).addClass("ui-state-disabled").attr("aria-disabled","true"):a(c).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||!1===this._trigger("beforeActivate",b,k)||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function d(){f.running=!1,f._trigger("activate",b,c)}function e(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),g.length&&f.options.show?f._show(g,f.options.show,d):(g.show(),d())}var f=this,g=c.newPanel,h=c.oldPanel;this.running=!0,h.length&&this.options.hide?this._hide(h,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),e()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h.hide(),e()),h.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),g.length&&h.length?c.oldTab.attr("tabIndex",-1):g.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),g.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return!1===b?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;!1!==d&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(!0!==d){if(c===b)d=!0;else{if(c=this._getIndex(c),-1!==a.inArray(c,d))return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var e=this,f=this.tabs.eq(b),g=f.find(".ui-tabs-anchor"),h=this._getPanelForTab(f),i={tab:f,panel:h};d(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(f.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),e._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&e.panels.stop(!1,!0),f.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===e.xhr&&delete e.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function b(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function c(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);-1!==e&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var d=0;a.widget("ui.tooltip",{version:"1.10.4",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;if("disabled"===b)return this[c?"_disable":"_enable"](),void(this.options[b]=c);this._super(b,c),"content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var b,d=a(this);d.data("ui-tooltip-open")&&(b=a.Event("blur"),b.target=b.currentTarget=this,c.close(b,!0)),d.attr("title")&&(d.uniqueId(),c.parents[this.id]={element:this,title:d.attr("title")},d.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;if("string"==typeof d)return this._open(b,a,d);(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}))&&this._open(b,a,c)},_open:function(c,d,e){function f(a){j.of=a,g.is(":hidden")||g.position(j)}var g,h,i,j=a.extend({},this.options.position);if(e){if(g=this._find(d),g.length)return void g.find(".ui-tooltip-content").html(e);d.is("[title]")&&(c&&"mouseover"===c.type?d.attr("title",""):d.removeAttr("title")),g=this._tooltip(d),b(d,g.attr("id")),g.find(".ui-tooltip-content").html(e),this.options.track&&c&&/^mouse/.test(c.type)?(this._on(this.document,{mousemove:f}),f(c)):g.position(a.extend({of:d},this.options.position)),g.hide(),this._show(g,this.options.show),this.options.show&&this.options.show.delay&&(i=this.delayedShow=setInterval(function(){g.is(":visible")&&(f(j.of),clearInterval(i))},a.fx.interval)),this._trigger("open",c,{tooltip:g}),h={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(g)}},c&&"mouseover"!==c.type||(h.mouseleave="close"),c&&"focusin"!==c.type||(h.focusout="close"),this._on(!0,d,h)}},close:function(b){var d=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),c(e),f.stop(!0),this._hide(f,this.options.hide,function(){d._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,c){a(c.element).attr("title",c.title),delete d.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(b){var c="ui-tooltip-"+d++,e=a("<div>").attr({id:c,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[c]=b,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(a){"use strict";var b=jQuery.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||3<b[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(a){"use strict";a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;return a(this).one("bsTransitionEnd",function(){c=!0}),setTimeout(function(){c||a(d).trigger(a.support.transition.end)},b),this},a(function(){a.support.transition=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.VERSION="3.4.1",c.TRANSITION_DURATION=150,c.prototype.close=function(b){function d(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=(f=e.attr("href"))&&f.replace(/.*(?=#[^\s]*$)/,"")),f="#"===f?[]:f;var g=a(document).find(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.4.1",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b);if(("prev"==a&&0===c||"next"==a&&c==this.$items.length-1)&&!this.options.wrap)return b;var d=(c+("prev"==a?-1:1))%this.$items.length;return this.$items.eq(d)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(c<a?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),"object"==typeof f&&f.length&&f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d=a(this),e=d.attr("href");e&&(e=e.replace(/.*(?=#[^\s]+$)/,""));var f=d.attr("data-target")||e,g=a(document).find(f);if(g.hasClass("carousel")){var h=a.extend({},g.data(),d.data()),i=d.attr("data-slide-to");i&&(h.interval=!1),b.call(g,h),i&&g.data("bs.carousel").to(i),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.4.1",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"))&&b.transitioning)){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"))
;this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return e.call(this);this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse")?"toggle":e.data();c.call(f,g)})}(jQuery),function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=(c=b.attr("href"))&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d="#"!==c?a(document).find(c):null;return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(".dropdown-backdrop").remove(),a(d).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}var d='[data-toggle="dropdown"]',e=function(b){a(b).on("click.bs.dropdown",this.toggle)};e.VERSION="3.4.1",e.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},e.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var e=a(this);if(c.preventDefault(),c.stopPropagation(),!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&f.find(d).trigger("focus"),e.trigger("click");var h=f.find(".dropdown-menu li:not(.disabled):visible a");if(h.length){var i=h.index(c.target);38==c.which&&0<i&&i--,40==c.which&&i<h.length-1&&i++,~i||(i=0),h.eq(i).trigger("focus")}}}};var f=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new e(this)),"string"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=e,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=f,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",d,e.prototype.toggle).on("keydown.bs.dropdown.data-api",d,e.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",e.prototype.keydown)}(jQuery),function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.4.1",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var c=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",b+c),a(this.fixedContent).each(function(b,d){var e=d.style.paddingRight,f=a(d).css("padding-right");a(d).data("padding-right",e).css("padding-right",parseFloat(f)+c+"px")}))},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),a(this.fixedContent).each(function(b,c){var d=a(c).data("padding-right");a(c).removeData("padding-right"),c.style.paddingRight=d||""})},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,""),g=a(document).find(f),h=g.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},g.data(),d.data());d.is("a")&&c.preventDefault(),g.one("show.bs.modal",function(a){a.isDefaultPrevented()||g.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(g,h,this)})}(jQuery),function(a){"use strict";function b(b,c){var d=b.nodeName.toLowerCase();if(-1!==a.inArray(d,c))return-1===a.inArray(d,e)||Boolean(b.nodeValue.match(g)||b.nodeValue.match(h));for(var f=a(c).filter(function(a,b){return b instanceof RegExp}),i=0,j=f.length;i<j;i++)if(d.match(f[i]))return!0;return!1}function c(c,d,e){if(0===c.length)return c;if(e&&"function"==typeof e)return e(c);if(!document.implementation||!document.implementation.createHTMLDocument)return c;var f=document.implementation.createHTMLDocument("sanitization");f.body.innerHTML=c;for(var g=a.map(d,function(a,b){return b}),h=a(f.body).find("*"),i=0,j=h.length;i<j;i++){var k=h[i],l=k.nodeName.toLowerCase();if(-1!==a.inArray(l,g))for(var m=a.map(k.attributes,function(a){return a}),n=[].concat(d["*"]||[],d[l]||[]),o=0,p=m.length;o<p;o++)b(m[o],n)||k.removeAttribute(m[o].nodeName);else k.parentNode.removeChild(k)}return f.body.innerHTML}var d=["sanitize","whiteList","sanitizeFn"],e=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],f={"*":["class","dir","id","lang","role",/^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:[]},g=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,h=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,i=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:f},i.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(document).find(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(b){var e=this.$element.data();for(var f in e)e.hasOwnProperty(f)&&-1!==a.inArray(f,d)&&delete e[f];return(b=a.extend({},this.getDefaults(),e,b)).delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b.sanitize&&(b.template=c(b.template,b.whiteList,b.sanitizeFn)),b},i.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},i.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState)c.hoverState="in";else{if(clearTimeout(c.timeout),c.hoverState="in",!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)}},i.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},i.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue()){if(clearTimeout(c.timeout),c.hoverState="out",!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)}},i.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var c=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!c)return;var d=this,e=this.tip(),f=this.getUID(this.type);this.setContent(),e.attr("id",f),this.$element.attr("aria-describedby",f),this.options.animation&&e.addClass("fade");var g="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,h=/\s?auto?\s?/i,j=h.test(g);j&&(g=g.replace(h,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(g).data("bs."+this.type,this),this.options.container?e.appendTo(a(document).find(this.options.container)):e.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=e[0].offsetWidth,m=e[0].offsetHeight;if(j){var n=g,o=this.getPosition(this.$viewport);g="bottom"==g&&k.bottom+m>o.bottom?"top":"top"==g&&k.top-m<o.top?"bottom":"right"==g&&k.right+l>o.width?"left":"left"==g&&k.left-l<o.left?"right":g,e.removeClass(n).addClass(g)}var p=this.getCalculatedOffset(g,k,l,m);this.applyPlacement(p,g);var q=function(){var a=d.hoverState;d.$element.trigger("shown.bs."+d.type),d.hoverState=null,"out"==a&&d.leave(d)};a.support.transition&&this.$tip.hasClass("fade")?e.one("bsTransitionEnd",q).emulateTransitionEnd(i.TRANSITION_DURATION):q()}},i.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},i.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},i.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();this.options.html?(this.options.sanitize&&(b=c(b,this.options.whiteList,this.options.sanitizeFn)),a.find(".tooltip-inner").html(b)):a.find(".tooltip-inner").text(b),a.removeClass("fade in top bottom left right")},i.prototype.hide=function(b){function c(){"in"!=d.hoverState&&e.detach(),d.$element&&d.$element.removeAttr("aria-describedby").trigger("hidden.bs."+d.type),b&&b()}var d=this,e=a(this.$tip),f=a.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.one("bsTransitionEnd",c).emulateTransitionEnd(i.TRANSITION_DURATION):c(),this.hoverState=null,this},i.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(b){var c=(b=b||this.$element)[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},i.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},i.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},i.prototype.getTitle=function(){var a=this.$element,b=this.options;return a.attr("data-original-title")||("function"==typeof b.title?b.title.call(a[0]):b.title)},i.prototype.getUID=function(a){for(;a+=~~(1e6*Math.random()),document.getElementById(a););return a},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(b){var c=this;b&&((c=a(b.currentTarget).data("bs."+this.type))||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},i.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})},i.prototype.sanitizeHtml=function(a){return c(a,this.options.whiteList,this.options.sanitizeFn)};var j=a.fn.tooltip;a.fn.tooltip=function(b){return this.each(function(){var c=a(this),d=c.data("bs.tooltip"),e="object"==typeof b&&b;!d&&/destroy|hide/.test(b)||(d||c.data("bs.tooltip",d=new i(this,e)),"string"==typeof b&&d[b]())})},a.fn.tooltip.Constructor=i,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=j,this}}(jQuery),function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.VERSION="3.4.1",b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype)).constructor=b).prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();if(this.options.html){var d=typeof c;this.options.sanitize&&(b=this.sanitizeHtml(b),"string"===d&&(c=this.sanitizeHtml(c))),a.find(".popover-title").html(b),a.find(".popover-content").children().detach().end()["string"===d?"html":"append"](c)}else a.find(".popover-title").text(b),a.find(".popover-content").children().detach().end().text(c);a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;!e&&/destroy|hide/.test(c)||(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.4.1",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),d<=b)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.4.1",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=(d=b.attr("href"))&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(document).find(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d);var e=this.options.target===c.DEFAULTS.target?a(this.options.target):a(document).find(this.options.target);this.$target=e.on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.4.1",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top;return null!=c&&e<=c?"top":null!=d&&a-d<=i+(h?g:b)&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery),function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}return a.prototype.toString=function(){return""+this.string},a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function d(a){return a instanceof h?a.toString():null==a?"":a?(a=""+a,k.test(a)?a.replace(j,b):a):a+""}function e(a){return!a&&0!==a||!(!n(a)||0!==a.length)}function f(a,b){return(a?a+".":"")+b}var g={},h=a,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.call(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return!(!a||"object"!=typeof a)&&"[object Array]"===l.call(a)};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,c){var d;c&&c.firstLine&&(d=c.firstLine,a+=" - "+d+":"+c.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f<b.length;f++)this[b[f]]=e[b[f]];d&&(this.lineNumber=d,this.column=c.firstColumn)}var b=["description","fileName","lineNumber","message","name","number","stack"];return a.prototype=new Error,a}(),d=function(a,b){"use strict";function c(a,b){this.helpers=a||{},this.partials=b||{},d(this)}function d(a){a.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new g("Missing helper: '"+arguments[arguments.length-1].name+"'")}),a.registerHelper("blockHelperMissing",function(b,c){var d=c.inverse,e=c.fn;if(!0===b)return e(this);if(!1===b||null==b)return d(this);if(i(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=o(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,k=0,l=""
;if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),j(a)&&(a=a.call(this)),b.data&&(c=o(b.data)),a&&"object"==typeof a)if(i(a))for(var m=a.length;k<m;k++)c&&(c.index=k,c.first=0===k,c.last=k===a.length-1,d&&(c.contextPath=d+k)),l+=e(a[k],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=k,c.first=0===k,d&&(c.contextPath=d+n)),l+=e(a[n],{data:c}),k++);return 0===k&&(l=h(this)),l}),a.registerHelper("if",function(a,b){return j(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers.if.call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with",function(a,b){j(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=o(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b;e.VERSION="2.0.0",e.COMPILER_REVISION=6;var h={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=h;var i=f.isArray,j=f.isFunction,k=f.toString,l="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:m,log:n,registerHelper:function(a,b){if(k.call(a)===l){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){k.call(a)===l?f.extend(this.partials,a):this.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var m={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(m.level<=a){var c=m.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=m;var n=m.log;e.log=n;var o=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=o,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(b<c){var d=n[c],e=n[b];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){if(!b)throw new l("No environment passed to template");if(!a||!a.main)throw new l("Unknown template object: "+typeof a);b.VM.checkRevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.VM.invokePartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;q<r&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("The partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;d<c;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:k.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.VM.noop,compilerInfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.useData&&(f=i(b,f));var g;return a.useDepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.isTop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usePartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.useDepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("The partial "+b+" could not be found");if(a instanceof Function)return a(c,h)}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES,o=c.createFrame;return j.checkRevision=d,j.template=e,j.program=f,j.invokePartial=g,j.noop=h,j}(b,c,d),f=function(a,b,c,d,e){"use strict";var f=a,g=b,h=c,i=d,j=e,k=function(){var a=new f.HandlebarsEnvironment;return i.extend(a,f),a.SafeString=g,a.Exception=h,a.Utils=i,a.escapeExpression=i.escapeExpression,a.VM=j,a.template=function(b){return j.template(b,a)},a},l=k();return l.create=k,l.default=l,l}(d,a,c,b,e),g=function(a){"use strict";function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c=a,d={ProgramNode:function(a,c,d){b.call(this,d),this.type="program",this.statements=a,this.strip=c},MustacheNode:function(a,c,e,f,g){if(b.call(this,g),this.type="mustache",this.strip=f,null!=e&&e.charAt){var h=e.charAt(3)||e.charAt(2);this.escaped="{"!==h&&"&"!==h}else this.escaped=!!e;a instanceof d.SexprNode?this.sexpr=a:this.sexpr=new d.SexprNode(a,c),this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type="sexpr",this.hash=c;var e=this.id=a[0],f=this.params=a.slice(1);this.isHelper=!(!f.length&&!c),this.eligibleHelper=this.isHelper||e.isSimple},PartialNode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialName=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlineStandalone=!0},BlockNode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isInverse=!0)},RawBlockNode:function(a,e,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new c(a.sexpr.id.original+" doesn't match "+f,this);e=new d.ContentNode(e,g),this.type="block",this.mustache=a,this.program=new d.ProgramNode([e],{},g)},ContentNode:function(a,c){b.call(this,c),this.type="content",this.original=this.string=a},HashNode:function(a,c){b.call(this,c),this.type="hash",this.pairs=a},IdNode:function(a,d){b.call(this,d),this.type="ID";for(var e="",f=[],g=0,h="",i=0,j=a.length;i<j;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new c("Invalid path: "+e,this);".."===k?(g++,h+="../"):this.isScoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idName=h+this.string,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type="PARTIAL_NAME",this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type="DATA",this.id=a,this.stringModeValue=a.stringModeValue,this.idName="@"+a.stringModeValue},StringNode:function(a,c){b.call(this,c),this.type="STRING",this.original=this.string=this.stringModeValue=a},NumberNode:function(a,c){b.call(this,c),this.type="NUMBER",this.original=this.number=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type="BOOLEAN",this.bool=a,this.stringModeValue="true"===a},CommentNode:function(a,c){b.call(this,c),this.type="comment",this.comment=a,this.strip={inlineStandalone:!0}}};return d}(c),h=function(){"use strict";return function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,CONTENT:12,COMMENT:13,openRawBlock:14,END_RAW_BLOCK:15,OPEN_RAW_BLOCK:16,sexpr:17,CLOSE_RAW_BLOCK:18,openBlock:19,block_option0:20,closeBlock:21,openInverse:22,block_option1:23,OPEN_BLOCK:24,CLOSE:25,OPEN_INVERSE:26,inverseAndProgram:27,INVERSE:28,OPEN_ENDBLOCK:29,path:30,OPEN:31,OPEN_UNESCAPED:32,CLOSE_UNESCAPED:33,OPEN_PARTIAL:34,partialName:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataName:41,STRING:42,NUMBER:43,BOOLEAN:44,OPEN_SEXPR:45,CLOSE_SEXPR:46,hash:47,hash_repetition_plus0:48,hashSegment:49,ID:50,EQUALS:51,DATA:52,pathSegments:53,SEP:54,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"CONTENT",13:"COMMENT",15:"END_RAW_BLOCK",16:"OPEN_RAW_BLOCK",18:"CLOSE_RAW_BLOCK",24:"OPEN_BLOCK",25:"CLOSE",26:"OPEN_INVERSE",28:"INVERSE",29:"OPEN_ENDBLOCK",31:"OPEN",32:"OPEN_UNESCAPED",33:"CLOSE_UNESCAPED",34:"OPEN_PARTIAL",42:"STRING",43:"NUMBER",44:"BOOLEAN",45:"OPEN_SEXPR",46:"CLOSE_SEXPR",50:"ID",51:"EQUALS",52:"DATA",54:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return d.prepareProgram(f[h-1].statements,!0),f[h-1];case 2:this.$=new d.ProgramNode(d.prepareProgram(f[h]),{},this._$);break;case 3:case 4:case 5:case 6:this.$=f[h];break;case 7:this.$=new d.ContentNode(f[h],this._$);break;case 8:this.$=new d.CommentNode(f[h],this._$);break;case 9:this.$=new d.RawBlockNode(f[h-2],f[h-1],f[h],this._$);break;case 10:this.$=new d.MustacheNode(f[h-1],null,"","",this._$);break;case 11:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 12:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 13:case 14:this.$=new d.MustacheNode(f[h-1],null,f[h-2],d.stripFlags(f[h-2],f[h]),this._$);break;case 15:this.$={strip:d.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 16:this.$={path:f[h-1],strip:d.stripFlags(f[h-2],f[h])};break;case 17:case 18:this.$=new d.MustacheNode(f[h-1],null,f[h-2],d.stripFlags(f[h-2],f[h]),this._$);break;case 19:this.$=new d.PartialNode(f[h-3],f[h-2],f[h-1],d.stripFlags(f[h-4],f[h]),this._$);break;case 20:this.$=new d.PartialNode(f[h-2],void 0,f[h-1],d.stripFlags(f[h-3],f[h]),this._$);break;case 21:this.$=new d.SexprNode([f[h-2]].concat(f[h-1]),f[h],this._$);break;case 22:this.$=new d.SexprNode([f[h]],null,this._$);break;case 23:this.$=f[h];break;case 24:this.$=new d.StringNode(f[h],this._$);break;case 25:this.$=new d.NumberNode(f[h],this._$);break;case 26:this.$=new d.BooleanNode(f[h],this._$);break;case 27:this.$=f[h];break;case 28:f[h-1].isHelper=!0,this.$=f[h-1];break;case 29:this.$=new d.HashNode(f[h],this._$);break;case 30:this.$=[f[h-2],f[h]];break;case 31:this.$=new d.PartialNameNode(f[h],this._$);break;case 32:this.$=new d.PartialNameNode(new d.StringNode(f[h],this._$),this._$);break;case 33:this.$=new d.PartialNameNode(new d.NumberNode(f[h],this._$));break;case 34:this.$=new d.DataNode(f[h],this._$);break;case 35:this.$=new d.IdNode(f[h],this._$);break;case 36:f[h-2].push({part:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 37:this.$=[{part:f[h]}];break;case 38:this.$=[];break;case 39:f[h-1].push(f[h]);break;case 48:this.$=[];break;case 49:f[h-1].push(f[h]);break;case 52:this.$=[f[h]];break;case 53:f[h-1].push(f[h])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultActions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},parseError:function(a,b){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:(null!==n&&void 0!==n||(n=b()),q=g[p]&&g[p][n]),void 0===q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),void 0!==(r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f)))return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(!(c=this._input.match(this.rules[f[g]]))||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return void 0!==a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popState(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popState(),15;case 4:return 12;case 5:return e(0,4),this.popState(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popState(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:case 14:return this.popState(),28;case 15:case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popState(),this.begin("com");break;case 20:return e(3,5),this.popState(),13;case 21:return 31;case 22:return 51;case 23:case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popState(),33;case 28:return this.popState(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"INVALID";case 38:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}()}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charAt(2),right:"~"===b.charAt(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openStandalone:f(b.statements),closeStandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.BlockNode(a,l,b,m,k):new this.BlockNode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;c<d;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openStandalone&&k,n=j.closeStandalone&&l,o=j.inlineStandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?RegExp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightStripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftStripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.string!==e,d.leftStripped}}var i={},j=a;return i.stripFlags=b,i.prepareBlock=c,i.prepareProgram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.ProgramNode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.AST.ProgramNode)throw new h("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!f(a[c],b[c]))return!1;return!0}}var g={},h=a,i=b.isArray,j=[].slice;return g.Compiler=c,c.prototype={compiler:c,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c<b;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;c<b;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds;var c=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;c<d;c++)this.accept(b[c]);return this.isSimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileProgram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++;this.usePartial=this.usePartial||c.usePartial,this.children[d]=c;for(var e=0,f=c.depths.list.length;e<f;e++)(b=c.depths.list[e])<2||this.addDepth(b-1);return d},block:function(a){var b=a.mustache,c=a.program,d=a.inverse;c&&(c=this.compileProgram(c)),d&&(d=this.compileProgram(d));var e=b.sexpr,f=this.classifySexpr(e);"helper"===f?this.helperSexpr(e,c,d):"simple"===f?(this.simpleSexpr(e),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("blockValue",e.id.original)):(this.ambiguousSexpr(e,c,d),this.opcode("pushProgram",c),this.opcode("pushProgram",d),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},hash:function(a){var b,c,d=a.pairs;for(this.opcode("pushHash"),b=0,c=d.length;b<c;b++)this.pushParam(d[b][1]);for(;b--;)this.opcode("assignToHash",d[b][0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0,a.hash?this.accept(a.hash):this.opcode("push","undefined"),a.context?this.accept(a.context):(this.opcode("getContext",0),this.opcode("pushContext")),this.opcode("invokePartial",b.name,a.indent||""),this.opcode("append")},content:function(a){a.string&&this.opcode("appendContent",a.string)},mustache:function(a){this.sexpr(a.sexpr),a.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousSexpr:function(a,b,c){var d=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.ID(d),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){var b=a.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),e=a.id,f=e.parts[0];if(this.options.knownHelpers[f])this.opcode("invokeKnownHelper",d.length,f);else{if(this.options.knownHelpersOnly)throw new h("You specified knownHelpersOnly, but used the unknown helper "+f,a);e.falsy=!0,this.ID(e),this.opcode("invokeHelper",d.length,e.original,e.isSimple)}},sexpr:function(a){var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ID:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth),a.parts[0]?this.opcode("lookupOnContext",a.parts,a.falsy,a.isScoped):this.opcode("pushContext")},DATA:function(a){this.options.data=!0,this.opcode("lookupData",a.id.depth,a.id.parts)},STRING:function(a){this.opcode("pushString",a.string)
},NUMBER:function(a){this.opcode("pushLiteral",a.number)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:j.call(arguments,1)})},addDepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifySexpr:function(a){var b=a.isHelper,c=a.eligibleHelper,d=this.options;if(c&&!b){var e=a.id.parts[0];d.knownHelpers[e]?b=!0:d.knownHelpersOnly&&(c=!1)}return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;b<c;b++)this.pushParam(a[b])},pushParam:function(a){this.stringParams?(a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",a.stringModeValue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackIds&&this.opcode("pushId",a.type,a.idName||a.stringModeValue),this.accept(a))},setupFullMustacheParams:function(a,b,c){var d=a.params;return this.pushParams(d),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.hash(a.hash):this.opcode("emptyHash"),d}},g.precompile=d,g.compile=e,g}(c,b),l=function(a,b){"use strict";function c(a){this.value=a}function d(){}var e=a.COMPILER_REVISION,f=a.REVISION_CHANGES,g=b;d.prototype={nameLookup:function(a,b){return d.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},depthedLookup:function(a){return this.aliases.lookup="this.lookup",'lookup(depths, "'+a+'")'},compilerInfo:function(){var a=e;return[a,f[a]]},appendToBuffer:function(a){return this.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.depths.list.length||this.options.compat;var e,f,h,i=a.opcodes;for(f=0,h=i.length;f<h;f++)e=i[f],this[e.opcode].apply(this,e.args);if(this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new g("Compile completed with content left on stack");var j=this.createFunctionContext(d);if(this.isChild)return j;var k={compiler:this.compilerInfo(),main:j},l=this.context.programs;for(f=0,h=l.length;f<h;f++)l[f]&&(k[f]=l[f]);return this.environment.usePartial&&(k.usePartial=!0),this.options.data&&(k.useData=!0),this.useDepths&&(k.useDepths=!0),this.options.compat&&(k.compat=!0),d||(k.compiler=JSON.stringify(k.compiler),k=this.objectLiteral(k)),k},preamble:function(){this.lastContext=0,this.source=[]},createFunctionContext:function(a){var b="",c=this.stackVars.concat(this.registers.list);c.length>0&&(b+=", "+c.join(", "));for(var d in this.aliases)this.aliases.hasOwnProperty(d)&&(b+=", "+d+"="+this.aliases[d]);var e=["depth0","helpers","partials","data"];this.useDepths&&e.push("depths");var f=this.mergeSource(b);return a?(e.push(f),Function.apply(this,e)):"function("+e.join(",")+") {\n  "+f+"}"},mergeSource:function(a){for(var b,c,d="",e=!this.forceBuffer,f=0,g=this.source.length;f<g;f++){var h=this.source[f];h.appendToBuffer?b=b?b+"\n    + "+h.content:h.content:(b&&(d?d+="buffer += "+b+";\n  ":(c=!0,d=b+";\n  "),b=void 0),d+=h+"\n  ",this.environment.isSimple||(e=!1))}return e?!b&&d||(d+="return "+(b||'""')+";\n"):(a+=", buffer = "+(c?"":this.initializeBuffer()),d+=b?"return buffer + "+b+";\n":"return buffer;\n"),a&&(d="var "+a.substring(2)+(c?"":";\n  ")+d),d},blockValue:function(a){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var b=[this.contextName(0)];this.setupParams(a,0,b);var c=this.popStack();b.splice(1,0,c),this.push("blockHelperMissing.call("+b.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=[this.contextName(0)];this.setupParams("",0,a,!0),this.flushInline();var b=this.topStack();a.splice(1,0,b),this.pushSource("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.pendingContent&&(a=this.pendingContent+a),this.pendingContent=a},append:function(){this.flushInline();var a=this.popStack();this.pushSource("if ("+a+" != null) { "+this.appendToBuffer(a)+" }"),this.environment.isSimple&&this.pushSource("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression",this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c){var d=0,e=a.length;for(c||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[d++]));d<e;d++)this.replaceStack(function(c){var e=this.nameLookup(c,a[d],"context");return b?" && "+e:" != null ? "+e+" : "+c})},lookupData:function(a,b){a?this.pushStackLiteral("this.data(data, "+a+")"):this.pushStackLiteral("data");for(var c=b.length,d=0;d<c;d++)this.replaceStack(function(a){return" && "+this.nameLookup(a,b[d],"data")})},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(a,b){this.pushContext(),this.pushString(b),"sexpr"!==b&&("string"==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(){this.pushStackLiteral("{}"),this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}"))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push("{"+a.ids.join(",")+"}"),this.stringParams&&(this.push("{"+a.contexts.join(",")+"}"),this.push("{"+a.types.join(",")+"}")),this.push("{\n    "+a.values.join(",\n    ")+"\n  }")},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){return this.inlineStack.push(a),a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},invokeHelper:function(a,b,c){this.aliases.helperMissing="helpers.helperMissing";var d=this.popStack(),e=this.setupHelper(a,b),f=(c?e.name+" || ":"")+d+" || helperMissing";this.push("(("+f+").call("+e.callParams+"))")},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.aliases.functionType='"function"',this.aliases.helperMissing="helpers.helperMissing",this.useRegister("helper");var c=this.popStack();this.emptyHash();var d=this.setupHelper(0,a,b),e=this.lastHelper=this.nameLookup("helpers",a,"helper");this.push("((helper = (helper = "+e+" || "+c+") != null ? helper : helperMissing"+(d.paramsInit?"),("+d.paramsInit:"")+"),(typeof helper === functionType ? helper.call("+d.callParams+") : helper))")},invokePartial:function(a,b){var c=[this.nameLookup("partials",a,"partial"),"'"+b+"'","'"+a+"'",this.popStack(),this.popStack(),"helpers","partials"];this.options.data?c.push("data"):this.options.compat&&c.push("undefined"),this.options.compat&&c.push("depths"),this.push("this.invokePartial("+c.join(", ")+")")},assignToHash:function(a){var b,c,d,e=this.popStack();this.trackIds&&(d=this.popStack()),this.stringParams&&(c=this.popStack(),b=this.popStack());var f=this.hash;b&&f.contexts.push("'"+a+"': "+b),c&&f.types.push("'"+a+"': "+c),d&&f.ids.push("'"+a+"': "+d),f.values.push("'"+a+"': ("+e+")")},pushId:function(a,b){"ID"===a||"DATA"===a?this.pushString(b):"sexpr"===a?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:d,compileChildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;f<g;f++){c=e[f],d=new this.compiler;var h=this.matchExistingProgram(c);null==h?(this.context.programs.push(""),h=this.context.programs.length,c.index=h,c.name="program"+h,this.context.programs[h]=d.compile(c,b,this.context,!this.precompile),this.context.environments[h]=c,this.useDepths=this.useDepths||d.useDepths):(c.index=h,c.name="program"+h)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;b<c;b++){var d=this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){var b=this.environment.children[a],c=(b.depths.list,this.useDepths),d=[b.index,"data"];return c&&d.push("depths"),"this.program("+d.join(", ")+")"},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new c(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),a&&this.source.push(a)},pushStack:function(a){this.flushInline();var b=this.incrStack();return this.pushSource(b+" = "+a+";"),this.compileStack.push(b),b},replaceStack:function(a){var b,d,e,f="";this.isInline();if(!this.isInline())throw new g("replaceStack on non-inline");var h=this.popStack(!0);if(h instanceof c)f=b=h.value,e=!0;else{d=!this.stackSlot;var i=d?this.incrStack():this.topStackName();f="("+this.push(i)+" = "+h+")",b=this.topStack()}var j=a.call(this,b);e||this.popStack(),d&&this.stackSlot--,this.push("("+f+j+")")},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,d=a.length;b<d;b++){var e=a[b];e instanceof c?this.compileStack.push(e):this.pushStack(e)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),d=(b?this.inlineStack:this.compileStack).pop();if(!a&&d instanceof c)return d.value;if(!b){if(!this.stackSlot)throw new g("Invalid stack pop");this.stackSlot--}return d},topStack:function(){var a=this.isInline()?this.inlineStack:this.compileStack,b=a[a.length-1];return b instanceof c?b.value:b},contextName:function(a){return this.useDepths&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(this.quotedString(c)+":"+a[c]);return"{"+b.join(",")+"}"},setupHelper:function(a,b,c){var d=[];return{params:d,paramsInit:this.setupParams(b,a,d,c),name:this.nameLookup("helpers",b,"helper"),callParams:[this.contextName(0)].concat(d).join(", ")}},setupOptions:function(a,b,c){var d,e,f,g={},h=[],i=[],j=[];g.name=this.quotedString(a),g.hash=this.popStack(),this.trackIds&&(g.hashIds=this.popStack()),this.stringParams&&(g.hashTypes=this.popStack(),g.hashContexts=this.popStack()),e=this.popStack(),((f=this.popStack())||e)&&(f||(f="this.noop"),e||(e="this.noop"),g.fn=f,g.inverse=e);for(var k=b;k--;)d=this.popStack(),c[k]=d,this.trackIds&&(j[k]=this.popStack()),this.stringParams&&(i[k]=this.popStack(),h[k]=this.popStack());return this.trackIds&&(g.ids="["+j.join(",")+"]"),this.stringParams&&(g.types="["+i.join(",")+"]",g.contexts="["+h.join(",")+"]"),this.options.data&&(g.data="data"),g},setupParams:function(a,b,c,d){var e=this.objectLiteral(this.setupOptions(a,b,c));return d?(this.useRegister("options"),c.push("options"),"options="+e):(c.push(e),"")}};for(var h="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "),i=d.RESERVED_WORDS={},j=0,k=h.length;j<k;j++)i[h[j]]=!0;return d.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)},d}(d,c);return function(a,b,c,d,e){"use strict";var f=a,g=b,h=c.parser,i=c.parse,j=d.Compiler,k=d.compile,l=d.precompile,m=e,n=f.create,o=function(){var a=n();return a.compile=function(b,c){return k(b,c,a)},a.precompile=function(b,c){return l(b,c,a)},a.AST=g,a.Compiler=j,a.JavaScriptCompiler=m,a.Parser=h,a.parse=i,a};return f=o(),f.create=o,f.default=f,f}(f,g,j,k,l)}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,k=0,l=0,m=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(l=-1*g.detail),"wheelDelta"in g&&(l=g.wheelDelta),"wheelDeltaY"in g&&(l=g.wheelDeltaY),"wheelDeltaX"in g&&(k=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(k=-1*l,l=0),j=0===l?k:l,"deltaY"in g&&(l=-1*g.deltaY,j=l),"deltaX"in g&&(k=g.deltaX,0===l&&(j=-1*k)),0!==l||0!==k){if(1===g.deltaMode){var n=a.data(this,"mousewheel-line-height");j*=n,l*=n,k*=n}else if(2===g.deltaMode){var o=a.data(this,"mousewheel-page-height");j*=o,l*=o,k*=o}return m=Math.max(Math.abs(l),Math.abs(k)),(!f||m<f)&&(f=m,d(g,m)&&(f/=40)),d(g,m)&&(j/=40,k/=40,l/=40),j=Math[j>=1?"floor":"ceil"](j/f),k=Math[k>=1?"floor":"ceil"](k/f),l=Math[l>=1?"floor":"ceil"](l/f),b.deltaX=k,b.deltaY=l,b.deltaFactor=f,b.deltaMode=0,h.unshift(b,j,k,l),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120==0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=h.length;a;)this.removeEventListener(h[--a],b,!1);else this.onmousewheel=null},getLineHeight:function(b){return parseInt(a(b)["offsetParent"in a.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),function(a,b){var c=function(c){return a(c,b)};"function"==typeof define&&define.amd?define(["jquery"],c):"object"==typeof exports?module.exports=c:c(jQuery)}(function(a,b,c){a.fn.jScrollPane=function(d){function e(d,e){function f(b){var e,h,j,l,m,n,q=!1,r=!1;if(P=b,Q===c)m=d.scrollTop(),n=d.scrollLeft(),d.css({overflow:"hidden",padding:0}),R=d.innerWidth()+ta,S=d.innerHeight(),d.width(R),Q=a('<div class="jspPane" />').css("padding",sa).append(d.children()),T=a('<div class="jspContainer" />').css({width:R+"px",height:S+"px"}).append(Q).appendTo(d);else{if(d.css("width",""),q=P.stickToBottom&&C(),r=P.stickToRight&&D(),l=d.innerWidth()+ta!=R||d.outerHeight()!=S,l&&(R=d.innerWidth()+ta,S=d.innerHeight(),T.css({width:R+"px",height:S+"px"})),!l&&ua==U&&Q.outerHeight()==V)return void d.width(R);ua=U,Q.css("width",""),d.width(R),T.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Q.css("overflow","auto"),U=b.contentWidth?b.contentWidth:Q[0].scrollWidth,V=Q[0].scrollHeight,Q.css("overflow",""),W=U/R,X=V/S,Y=X>1,Z=W>1,Z||Y?(d.addClass("jspScrollable"),e=P.maintainPosition&&(aa||da),e&&(h=A(),j=B()),g(),i(),k(),e&&(y(r?U-R:h,!1),x(q?V-S:j,!1)),H(),E(),N(),P.enableKeyboardNavigation&&J(),P.clickOnTrack&&o(),L(),P.hijackInternalLinks&&M()):(d.removeClass("jspScrollable"),Q.css({top:0,left:0,width:T.width()-ta}),F(),I(),K(),p()),P.autoReinitialise&&!ra?ra=setInterval(function(){f(P)},P.autoReinitialiseDelay):!P.autoReinitialise&&ra&&clearInterval(ra),m&&d.scrollTop(0)&&x(m,!1),n&&d.scrollLeft(0)&&y(n,!1),d.trigger("jsp-initialised",[Z||Y])}function g(){Y&&(T.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />'))),ea=T.find(">.jspVerticalBar"),fa=ea.find(">.jspTrack"),$=fa.find(">.jspDrag"),P.showArrows&&(ja=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",m(0,-1)).bind("click.jsp",G),ka=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",m(0,1)).bind("click.jsp",G),P.arrowScrollOnHover&&(ja.bind("mouseover.jsp",m(0,-1,ja)),ka.bind("mouseover.jsp",m(0,1,ka))),l(fa,P.verticalArrowPositions,ja,ka)),ha=S,T.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){ha-=a(this).outerHeight()}),$.hover(function(){$.addClass("jspHover")},function(){$.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),$.addClass("jspActive");var c=b.pageY-$.position().top;return a("html").bind("mousemove.jsp",function(a){r(a.pageY-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),h())}function h(){fa.height(ha+"px"),aa=0,ga=P.verticalGutter+fa.outerWidth(),Q.width(R-ga-ta);try{0===ea.position().left&&Q.css("margin-left",ga+"px")}catch(a){}}function i(){Z&&(T.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />'))),la=T.find(">.jspHorizontalBar"),ma=la.find(">.jspTrack"),ba=ma.find(">.jspDrag"),P.showArrows&&(pa=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",m(-1,0)).bind("click.jsp",G),qa=a('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",m(1,0)).bind("click.jsp",G),P.arrowScrollOnHover&&(pa.bind("mouseover.jsp",m(-1,0,pa)),qa.bind("mouseover.jsp",m(1,0,qa))),l(ma,P.horizontalArrowPositions,pa,qa)),ba.hover(function(){ba.addClass("jspHover")},function(){ba.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),ba.addClass("jspActive");var c=b.pageX-ba.position().left;return a("html").bind("mousemove.jsp",function(a){t(a.pageX-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),na=T.innerWidth(),j())}function j(){T.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){na-=a(this).outerWidth()}),ma.width(na+"px"),da=0}function k(){if(Z&&Y){var b=ma.outerHeight(),c=fa.outerWidth();ha-=b,a(la).find(">.jspCap:visible,>.jspArrow").each(function(){na+=a(this).outerWidth()}),na-=c,S-=c,R-=b,ma.parent().append(a('<div class="jspCorner" />').css("width",b+"px")),h(),j()}Z&&Q.width(T.outerWidth()-ta+"px"),V=Q.outerHeight(),X=V/S,Z&&(oa=Math.ceil(1/W*na),oa>P.horizontalDragMaxWidth?oa=P.horizontalDragMaxWidth:oa<P.horizontalDragMinWidth&&(oa=P.horizontalDragMinWidth),ba.width(oa+"px"),ca=na-oa,u(da)),Y&&(ia=Math.ceil(1/X*ha),ia>P.verticalDragMaxHeight?ia=P.verticalDragMaxHeight:ia<P.verticalDragMinHeight&&(ia=P.verticalDragMinHeight),$.height(ia+"px"),_=ha-ia,s(aa))}function l(a,b,c,d){var e,f="before",g="after";"os"==b&&(b=/Mac/.test(navigator.platform)?"after":"split"),b==f?g=b:b==g&&(f=b,e=c,c=d,d=e),a[f](c)[g](d)}function m(a,b,c){return function(){return n(a,b,this,c),this.blur(),!1}}function n(b,c,d,e){d=a(d).addClass("jspActive");var f,g,h=!0,i=function(){0!==b&&va.scrollByX(b*P.arrowButtonSpeed),0!==c&&va.scrollByY(c*P.arrowButtonSpeed),g=setTimeout(i,h?P.initialDelay:P.arrowRepeatFreq),h=!1};i(),f=e?"mouseout.jsp":"mouseup.jsp",e=e||a("html"),e.bind(f,function(){d.removeClass("jspActive"),g&&clearTimeout(g),g=null,e.unbind(f)})}function o(){p(),Y&&fa.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d,e=a(this),f=e.offset(),g=b.pageY-f.top-aa,h=!0,i=function(){var a=e.offset(),c=b.pageY-a.top-ia/2,f=S*P.scrollPagePercent,k=_*f/(V-S);if(0>g)aa-k>c?va.scrollByY(-f):r(c);else{if(!(g>0))return void j();c>aa+k?va.scrollByY(f):r(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}}),Z&&ma.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d,e=a(this),f=e.offset(),g=b.pageX-f.left-da,h=!0,i=function(){var a=e.offset(),c=b.pageX-a.left-oa/2,f=R*P.scrollPagePercent,k=ca*f/(U-R);if(0>g)da-k>c?va.scrollByX(-f):t(c);else{if(!(g>0))return void j();c>da+k?va.scrollByX(f):t(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}})}function p(){ma&&ma.unbind("mousedown.jsp"),fa&&fa.unbind("mousedown.jsp")}function q(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),$&&$.removeClass("jspActive"),ba&&ba.removeClass("jspActive")}function r(a,b){Y&&(0>a?a=0:a>_&&(a=_),b===c&&(b=P.animateScroll),b?va.animate($,"top",a,s):($.css("top",a),s(a)))}function s(a){a===c&&(a=$.position().top),T.scrollTop(0),aa=a;var b=0===aa,e=aa==_,f=a/_,g=-f*(V-S);(wa!=b||ya!=e)&&(wa=b,ya=e,d.trigger("jsp-arrow-change",[wa,ya,xa,za])),v(b,e),Q.css("top",g),d.trigger("jsp-scroll-y",[-g,b,e]).trigger("scroll")}function t(a,b){Z&&(0>a?a=0:a>ca&&(a=ca),b===c&&(b=P.animateScroll),b?va.animate(ba,"left",a,u):(ba.css("left",a),u(a)))}function u(a){a===c&&(a=ba.position().left),T.scrollTop(0),da=a;var b=0===da,e=da==ca,f=a/ca,g=-f*(U-R);(xa!=b||za!=e)&&(xa=b,za=e,d.trigger("jsp-arrow-change",[wa,ya,xa,za])),w(b,e),Q.css("left",g),d.trigger("jsp-scroll-x",[-g,b,e]).trigger("scroll")}function v(a,b){P.showArrows&&(ja[a?"addClass":"removeClass"]("jspDisabled"),ka[b?"addClass":"removeClass"]("jspDisabled"))}function w(a,b){P.showArrows&&(pa[a?"addClass":"removeClass"]("jspDisabled"),qa[b?"addClass":"removeClass"]("jspDisabled"))}function x(a,b){r(a/(V-S)*_,b)}function y(a,b){t(a/(U-R)*ca,b)}function z(b,c,d){var e,f,g,h,i,j,k,l,m,n=0,o=0;try{e=a(b)}catch(p){return}for(f=e.outerHeight(),g=e.outerWidth(),T.scrollTop(0),T.scrollLeft(0);!e.is(".jspPane");)if(n+=e.position().top,o+=e.position().left,e=e.offsetParent(),/^body|html$/i.test(e[0].nodeName))return;h=B(),j=h+S,h>n||c?l=n-P.horizontalGutter:n+f>j&&(l=n-S+f+P.horizontalGutter),isNaN(l)||x(l,d),i=A(),k=i+R,i>o||c?m=o-P.horizontalGutter:o+g>k&&(m=o-R+g+P.horizontalGutter),isNaN(m)||y(m,d)}function A(){return-Q.position().left}function B(){return-Q.position().top}function C(){var a=V-S;return a>20&&a-B()<10}function D(){var a=U-R;return a>20&&a-A()<10}function E(){T.unbind(Ba).bind(Ba,function(a,b,c,d){var e=da,f=aa,g=a.deltaFactor||P.mouseWheelSpeed;return va.scrollBy(c*g,-d*g,!1),e==da&&f==aa})}function F(){T.unbind(Ba)}function G(){return!1}function H(){Q.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){z(a.target,!1)})}function I(){Q.find(":input,a").unbind("focus.jsp")}function J(){function b(){var a=da,b=aa;switch(c){case 40:va.scrollByY(P.keyboardSpeed,!1);break;case 38:va.scrollByY(-P.keyboardSpeed,!1);break;case 34:case 32:va.scrollByY(S*P.scrollPagePercent,!1);break;case 33:va.scrollByY(-S*P.scrollPagePercent,!1);break;case 39:va.scrollByX(P.keyboardSpeed,!1);break;case 37:va.scrollByX(-P.keyboardSpeed,!1)}return e=a!=da||b!=aa}var c,e,f=[];Z&&f.push(la[0]),Y&&f.push(ea[0]),Q.focus(function(){d.focus()}),d.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(d){if(d.target===this||f.length&&a(d.target).closest(f).length){var g=da,h=aa;switch(d.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:c=d.keyCode,b();break;case 35:x(V-S),c=null;break;case 36:x(0),c=null}return!(e=d.keyCode==c&&g!=da||h!=aa)}}).bind("keypress.jsp",function(a){return a.keyCode==c&&b(),!e}),P.hideFocus?(d.css("outline","none"),"hideFocus"in T[0]&&d.attr("hideFocus",!0)):(d.css("outline",""),"hideFocus"in T[0]&&d.attr("hideFocus",!1))}function K(){d.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function L(){if(location.hash&&location.hash.length>1){var b,c,d=escape(location.hash.substr(1));try{b=a("#"+d+', a[name="'+d+'"]')}catch(e){return}b.length&&Q.find(d)&&(0===T.scrollTop()?c=setInterval(function(){T.scrollTop()>0&&(z(b,!0),a(document).scrollTop(T.position().top),clearInterval(c))},50):(z(b,!0),a(document).scrollTop(T.position().top)))}}function M(){a(document.body).data("jspHijack")||(a(document.body).data("jspHijack",!0),a(document.body).delegate("a[href*=#]","click",function(c){var d,e,f,g,h,i,j=this.href.substr(0,this.href.indexOf("#")),k=location.href;if(-1!==location.href.indexOf("#")&&(k=location.href.substr(0,location.href.indexOf("#"))),j===k){d=escape(this.href.substr(this.href.indexOf("#")+1));try{e=a("#"+d+', a[name="'+d+'"]')}catch(l){return}e.length&&(f=e.closest(".jspScrollable"),g=f.data("jsp"),g.scrollToElement(e,!0),f[0].scrollIntoView&&(h=a(b).scrollTop(),i=e.offset().top,(h>i||i>h+a(b).height())&&f[0].scrollIntoView()),c.preventDefault())}}))}function N(){var a,b,c,d,e,f=!1;T.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(g){var h=g.originalEvent.touches[0];a=A(),b=B(),c=h.pageX,d=h.pageY,e=!1,f=!0}).bind("touchmove.jsp",function(g){if(f){var h=g.originalEvent.touches[0],i=da,j=aa;return va.scrollTo(a+c-h.pageX,b+d-h.pageY),e=e||Math.abs(c-h.pageX)>5||Math.abs(d-h.pageY)>5,i==da&&j==aa}}).bind("touchend.jsp",function(){f=!1}).bind("click.jsp-touchclick",function(){return e?(e=!1,!1):void 0})}function O(){var a=B(),b=A();d.removeClass("jspScrollable").unbind(".jsp"),d.replaceWith(Aa.append(Q.children())),Aa.scrollTop(a),Aa.scrollLeft(b),ra&&clearInterval(ra)}var P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va=this,wa=!0,xa=!0,ya=!1,za=!1,Aa=d.clone(!1,!1).empty(),Ba=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===d.css("box-sizing")?(sa=0,ta=0):(sa=d.css("paddingTop")+" "+d.css("paddingRight")+" "+d.css("paddingBottom")+" "+d.css("paddingLeft"),ta=(parseInt(d.css("paddingLeft"),10)||0)+(parseInt(d.css("paddingRight"),10)||0)),a.extend(va,{reinitialise:function(b){b=a.extend({},P,b),f(b)},scrollToElement:function(a,b,c){z(a,b,c)},scrollTo:function(a,b,c){y(a,c),x(b,c)},scrollToX:function(a,b){y(a,b)},scrollToY:function(a,b){x(a,b)},scrollToPercentX:function(a,b){y(a*(U-R),b)},scrollToPercentY:function(a,b){x(a*(V-S),b)},scrollBy:function(a,b,c){va.scrollByX(a,c),va.scrollByY(b,c)},scrollByX:function(a,b){t((A()+Math[0>a?"floor":"ceil"](a))/(U-R)*ca,b)},scrollByY:function(a,b){r((B()+Math[0>a?"floor":"ceil"](a))/(V-S)*_,b)},positionDragX:function(a,b){t(a,b)},positionDragY:function(a,b){r(a,b)},animate:function(a,b,c,d){var e={};e[b]=c,a.animate(e,{duration:P.animateDuration,easing:P.animateEase,queue:!1,step:d})},getContentPositionX:function(){return A()},getContentPositionY:function(){return B()},getContentWidth:function(){return U},getContentHeight:function(){return V},getPercentScrolledX:function(){return A()/(U-R)},getPercentScrolledY:function(){return B()/(V-S)},getIsScrollableH:function(){return Z},getIsScrollableV:function(){return Y},getContentPane:function(){return Q},scrollToBottom:function(a){r(_,a)},hijackInternalLinks:a.noop,destroy:function(){O()}}),f(e)}return d=a.extend({},a.fn.jScrollPane.defaults,d),a.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){d[this]=d[this]||d.speed}),this.each(function(){var b=a(this),c=b.data("jsp");c?c.reinitialise(d):(a("script",b).filter('[type="text/javascript"],:not([type])').remove(),c=new e(b,d),b.data("jsp",c))})},a.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}},this),Handlebars.registerPartial("cms-bar",""),Handlebars.registerPartial("cms-bar-small",""),Handlebars.registerPartial("cms-bar-slide-item",""),Handlebars.registerPartial("cms-classes",""),$(document).ready(function(){window.hasOwnProperty("bluetrix")&&bluetrix.hasOwnProperty("admin")&&!0===bluetrix.admin&&void 0!==bluetrix.admin&&(Handlebars.registerPartial("dashboardBoxBody",$("#dashboard-box-body").html()),Handlebars.registerPartial("dashboardBoxEnd",$("#dashboard-box-end").html()),Handlebars.registerPartial("dashboardBoxList",$("#dashboard-box-list").html()),Handlebars.registerPartial("dashboardBoxListNews",$("#dashboard-box-list-news").html()),Handlebars.registerPartial("dashboardBoxBodyFilters",$("#dashboard-box-body-filters").html()),Handlebars.registerPartial("dashboardBoxBodyExtra",$("#dashboard-box-body-extra").html()),Handlebars.registerPartial("cms-bar",$("#cms-bar").html()),Handlebars.registerPartial("cms-bar-small",$("#cms-bar-small").html()),Handlebars.registerPartial("cms-bar-slide-item",$("#cms-bar-slide-item").html()),Handlebars.registerPartial("cms-classes",$("#cms-classes").html()),Handlebars.registerPartial("modules-extra-attributes",$("#modules-extra-attributes").html()),Handlebars.registerPartial("modules-sidebar-li",$("#modules-sidebar-li").html()),Handlebars.registerPartial("modules-sidebar-li-option",$("#modules-sidebar-li-option").html()),Handlebars.registerPartial("form-helper-render",$("#form-element-helper-render").html()),Handlebars.registerPartial("popup-head",$("#popup-head").html()),Handlebars.registerPartial("popup-footer",$("#popup-footer").html()),Handlebars.registerPartial("popup-style-editor-chk-help",$("#stylePopupFormChkboxHelper").html()),Handlebars.registerPartial("popup-style-form-inputs",$("#stylePopupFormInputs").html()),Handlebars.registerHelper("pageCacheStatus",function(a,b,c,d,e){if(!a||!d)return"inactive";var f="danger",g=!("object"!=typeof c||null===c||!c.hasOwnProperty(e))&&c[e];return b&&g?f="success":(b||g)&&(f="warning"),f}),Handlebars.registerHelper("pageCacheStatusPretty",function(a,b,c,d,e){if(!a)return Utils.getInst().getDict("cache-disabled");if(!d)return Utils.getInst().getDict("cache-inactive");var f=!("object"!=typeof c||null===c||!c.hasOwnProperty(e))&&c[e];return b&&f?Utils.getInst().getDict("cache-active"):b||f?b?Utils.getInst().getDict("cache-html"):Utils.getInst().getDict("cache-critical-css"):Utils.getInst().getDict("cache-missing")})),Handlebars.registerPartial("dropdown-languages",$("#dropdown-languages").html()),Handlebars.registerPartial("list-languages",$("#list-languages").html()),Handlebars.registerPartial("name-languages",$("#name-languages").html()),Handlebars.registerPartial("contactsSingleCategory",$("#contactsSingleCategoryTemplate").html())}),Handlebars.registerHelper("link",function(a,b){return new Handlebars.SafeString("<a class='link' href='"+a+"'>"+b+"</a>")}),Handlebars.registerHelper("adminurl",function(a,b){return bluetrix.admin?b:a
}),Handlebars.registerHelper("adminLangurl",function(a,b){return bluetrix.admin?Handlebars.helpers.lang(b):Handlebars.helpers.lang(a)}),Handlebars.registerHelper("objectLangUrl",function(a){var b=Handlebars.helpers.lang(a);return bluetrix.admin?b.admin_url:b.url}),Handlebars.registerHelper("processLink",function(a,b,c){var d='href="" ',e="",f="",g="",h="",i="";if(b.content){var j=b.content[a],k="";if(k=c&&""!=c?c:Handlebars.helpers.adminurl(b.content.url,b.content.admin_url),j){var l=j[bluetrix.getLang()];if(l&&("def"!=l.type||l.url||l.admin_url)||(l=j[bluetrix.getDefLang()]),l)switch(l.type){case"parameter":k=l.value;break;case"mail":k="mailto:"+l.value;break;case"tel":k="tel:"+l.value;break;case"anch":k="#"+l.value;break;case"privacy-preference":case"ext":k=l.value;break;case"affs":k=l.url;break;default:k=Handlebars.helpers.adminurl(l.url,l.admin_url)}}d=null==k||void 0==k?'href=""':'href="'+k+'"'}e=getLinkPropValue(a,b,"target='","target"),f=getLinkPropValue(a,b,"data-cls='","cls"),g=getLinkPropValue(a,b,"title='","title"),h=getLinkPropValue(a,b,"aria-label='","ariaLabel"),"none"!==getLinkPropValue(a,b,"","rel")&&(i=getLinkPropValue(a,b,"rel='","rel"));var m="";return"object"==typeof j&&null!==j&&j.hasOwnProperty(bluetrix.getLang())&&"object"==typeof j[bluetrix.getLang()]&&null!==j[bluetrix.getLang()]&&j[bluetrix.getLang()].hasOwnProperty("trackingKey")&&"string"==typeof j[bluetrix.getLang()].trackingKey&&""!==j[bluetrix.getLang()].trackingKey&&(m="onclick=\"ga('send', 'pageview', '"+j[bluetrix.getLang()].trackingKey+"');\""),d+" "+e+" "+f+" "+g+" "+h+" "+i+" "+m}),Handlebars.registerHelper("processResponsiveimages",function(a,b,c,d){var e=d?b:"img",f=1==- -c;return Utils.getInst().processResponsiveImages(a,e,"responsive",f)}),Handlebars.registerHelper("input",function(a){var a=a;return new Handlebars.SafeString("<input class='form-control' "+a.type+" name='"+a.name+"' />")}),Handlebars.registerHelper("internalLinkLabel",function(a){return a.slug&&a.slug[bluetrix.getLang()]?a.slug[bluetrix.getLang()]:a.label}),Handlebars.registerHelper("lang",function(a){var b=bluetrix.getLang();if(void 0!==a&&null!==a){if(a[b])return a[b];if(a[bluetrix.getDefLang()])return a[bluetrix.getDefLang()]}return""}),Handlebars.registerHelper("localLang",function(a,b){return"object"==typeof a&&null!==a&&a.hasOwnProperty(b)?a[b]:""}),Handlebars.registerHelper("pageTitle",function(a,b,c){var d=Handlebars.helpers.localLang(a,c);return""===d?Handlebars.helpers.stripTags(b):Handlebars.helpers.stripTags(d)}),Handlebars.registerHelper("getCurrentLang",function(){return bluetrix.getLang()}),Handlebars.registerHelper("langDict",function(a,b){return Utils.getInst().getDict(a.toLowerCase())}),Handlebars.registerHelper("concat",function(){for(var a="",b=0,c=arguments.length-1;b<c;b++)a+=arguments[b];return a}),window.Handlebars.registerHelper("select",function(a,b){var c=$("<select />").html(b.fn(this)),d=a.split(" ");for(var e in d)""!=d[e]&&c.find('[value="'+$.trim(d[e])+'"]').attr({selected:"selected"});return c.html()}),Handlebars.registerHelper("img",function(a){return a?new Handlebars.SafeString("<img src='"+a+"'>"):""}),Handlebars.registerHelper("imgSrc",function(a){return"src="+options.path+a}),Handlebars.registerHelper("aHref",function(a){return void 0==a&&(a=""),"href="+a}),Handlebars.registerHelper("html",function(a){return new Handlebars.SafeString(a)}),Handlebars.registerHelper("ifCond",function(v1,operator,v2,options){switch(operator){case"==":return v1==v2?options.fn(this):options.inverse(this);case"!=":return v1!=v2?options.fn(this):options.inverse(this);case"===":return v1===v2?options.fn(this):options.inverse(this);case"!==":return v1!==v2?options.fn(this):options.inverse(this);case"&&":return v1&&v2?options.fn(this):options.inverse(this);case"||":return v1||v2?options.fn(this):options.inverse(this);case"<":return v1<v2?options.fn(this):options.inverse(this);case"<=":return v1<=v2?options.fn(this):options.inverse(this);case">":return v1>v2?options.fn(this):options.inverse(this);case">=":return v1>=v2?options.fn(this):options.inverse(this);default:return eval(""+v1+operator+v2)?options.fn(this):options.inverse(this)}}),Handlebars.registerHelper("isI18NUnpublished",function(a,b){return"object"!=typeof a||null===a||!a.hasOwnProperty(bluetrix.getLang())||void 0===a[bluetrix.getLang()]||a[bluetrix.getLang()]?b.inverse(this):b.fn(this)}),Handlebars.registerHelper("ifLang",function(a,b){return""!==Handlebars.helpers.lang(a)?b.fn(this):b.inverse(this)}),Handlebars.registerHelper("langWord",function(a,b,c){return b&&b[a]&&b[a][c]?b[a][c]:""}),Handlebars.registerHelper("arrayProp",function(a,b){return a[b]}),Handlebars.registerHelper("for",function(a,b,c,d){for(var e="",f=a;f<b;f+=c)e+=d.fn(f);return e}),Handlebars.registerHelper("hasContent",function(a,b){if(a){var c=a.replace(/(<([^>]+)>)/gi,"").replace(/^\s/,"");if(c&&c.length>0)return b.fn(this)}return b.inverse(this)}),Handlebars.registerHelper("in-abs-container",function(a,b){if(a&&a.width&&a.height&&a.left&&a.top){return"width:"+Handlebars.helpers.lang(a.width)+"px; height:"+Handlebars.helpers.lang(a.height)+"px; left:"+Handlebars.helpers.lang(a.left)+"px; top:"+Handlebars.helpers.lang(a.top)+"px"}return""}),Handlebars.registerHelper("text-lang-replace",function(a,b,c){var d=Handlebars.helpers.lang(a);if(!d||""==d){d=Handlebars.helpers.lang(b);if(d=$("<div>").html(d).text(),d.length>c){d=d.substr(0,c);var e=d.split(" ");e.pop(),d=e.join(" ")}}return d}),Handlebars.registerHelper("getPageId",function(){return options.id_page?options.id_page:""}),Handlebars.registerHelper("getBreakpoints",function(a){var b="";if(options.styleEditorSteps&&options.styleEditorSteps.length>0){for(var c=0,d=options.styleEditorSteps.length;c<d;c++)"def"!==options.styleEditorSteps[c].id&&(b+=a.fn(options.styleEditorSteps[c]));return b}return a.inverse(this)}),Handlebars.registerHelper("getLangs",function(a){var b="";if(options.langs&&Object.keys(options.langs).length>0){for(var c in options.langs)b+=a.fn({id:c,label:options.langs[c]});return b}return a.inverse(this)}),Handlebars.registerHelper("getModuleHeadBar",function(a,b,c){var d="";return bluetrix.isAdmin()&&(d=a.component&&a.component.type?"smart"===a.component.type?a.component.name:a.module:void 0!==options.modules&&void 0!==options.modules[a.module]?options.modules[a.module].label:a.module,a.settings&&a.settings.anchor&&(d+=" (#"+a.settings.anchor+")"),c||bluetrix.isPageMode()&&a.isTpl&&(d+='<span class="warn"> ['+Utils.getInst().getDict("templateelement")+"]</span>"),d=bluetrix.customizeTitleOfCmsBar(d,a)),d}),Handlebars.registerHelper("getAnchorAttr",function(a){var b="";return a.hasOwnProperty("settings")&&a.settings.hasOwnProperty("anchor")&&(b='data-module-anchor="'+a.settings.anchor+'"'),b}),Handlebars.registerHelper("getAdditionalAttr",function(a){return""}),Handlebars.registerHelper("stripTags",function(a){return a.replace(/<[^>]*>/gi,"")}),Handlebars.registerHelper("chain",function(){for(var a,b=[],c=0,d=arguments.length-1;c<d;c++)Handlebars.helpers[arguments[c]]?b.push(Handlebars.helpers[arguments[c]]):(a=arguments[c],$.each(b,function(b,d){a=d(a,arguments[c+1])}));return a}),Handlebars.registerHelper("console",function(a){console.log(a)}),Handlebars.registerHelper("tagsSelect2",function(a){var b="";if(void 0!==a){var a=a[bluetrix.getLang()]?a[bluetrix.getLang()]:a[bluetrix.getDefLang()];if("string"==typeof a&&""!==a)for(var c=a.split(","),d=c.length,e=0;e<d;e++)b+='<option value="'+c[e]+'">'+c[e]+"</option>";else if("object"==typeof a&&a.length>0)for(var f=a.length,g=0;g<f;g++)b+='<option value="'+a[g]+'">'+a[g]+"</option>"}return b}),Handlebars.registerHelper("moduleBreakpoint",function(a,b,c){var d="",e=!1;return"object"==typeof c&&null!==c&&options.styleEditorSteps.map(function(a){if("object"==typeof a&&null!==a&&a.hasOwnProperty("id")&&c.hasOwnProperty(a.id)){var b="def"===a.id?"lg":a.id;d+=Utils.getInst().getModuleBreakpoint(b,c[a.id])+" ",e=!0}}),e||(d=Utils.getInst().getModuleBreakpoint(a,b)),d}),Handlebars.registerHelper("notPrintable",function(a){return""!==a&&1==- -a?"not-printable":""}),Handlebars.registerHelper("chechboxList",function(a,b,c){if(c||(c="checked"),b.multiple_value){var d="";return $.each(b.multiple_value,function(b,e){a==e&&(d=c)}),d}return""}),Handlebars.registerHelper("isAdmin",function(a){return bluetrix.isAdmin()?a.fn(this):a.inverse(this)}),Handlebars.registerHelper("hasPermission",function(a,b){return bluetrix.hasPermission(a)?b.fn(this):b.inverse(this)}),Handlebars.registerHelper("isTemplateRestricted",function(a,b){return bluetrix.isTplMode()||1!=- -a?b.fn(this):b.inverse(this)}),Handlebars.registerHelper("ifIn",function(a,b,c){return"object"==typeof b&&null!==b&&void 0!==b&&b.indexOf(a)>-1?c.fn(this):Array.isArray(a)||a!==b?c.inverse(this):c.fn(this)}),Handlebars.registerHelper("nl2br",function(a){return(a+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br/>$2")}),Handlebars.registerHelper("isBaseVer",function(a){return bluetrix.getBaseVer()?a.fn(this):a.inverse(this)}),Handlebars.registerHelper("dateFormat",function(a){return Utils.getInst().parseDate(a)}),Handlebars.registerHelper("slugify",function(a){return Utils.getInst().slugify(a)}),Handlebars.registerHelper("rootTagsSwitcher",function(a){if(!0===a.noRootTag)return"";var b=Utils.getInst().getAllowedRootTags(a.module),c=a.hasOwnProperty("rootTag")&&b.indexOf(a.rootTag)>-1?a.rootTag:Utils.getInst().getDefaultRootTag(),d=$("<select>").attr({class:"cs-select mod-bar-dropdown mod-root-tag","data-root-tag":""});return b.map(function(a){var b=$("<option>").val(a).text(a);a===c&&b.attr("selected",!0),d.append(b)}),d.prop("outerHTML")}),Handlebars.registerHelper("moduleTag",function(a){var b="object"==typeof this&&null!==this?this.module:void 0,c=Utils.getInst().getAllowedRootTags(b);return"string"==typeof a&&""!==a&&c.indexOf(a)>-1?a:"object"==typeof this&&null!==this&&this.hasOwnProperty("settings")&&this.settings.rootTag?this.settings.rootTag:Utils.getInst().getDefaultRootTag()}),Handlebars.registerHelper("isParameterNotEmpty",function(a,b){return Utils.getInst().isParameterNotEmpty(a)?b.fn(this):b.inverse(this)}),Handlebars.registerHelper("isDisableForCurrentLanguage",function(a,b){return"object"==typeof a&&null!==a&&a.hasOwnProperty("values")&&"object"==typeof a.values&&null!==a.values&&Array.isArray(a.values)&&a.values.length>0&&a.values.indexOf(bluetrix.getLang())>-1?b.fn(this):b.inverse(this)}),Handlebars.registerHelper("isPageMode",function(a){return bluetrix.isPageMode()?a.fn(this):a.inverse(this)}),Handlebars.registerHelper("isDeleteModuleAllowed",function(a,b){return bluetrix.isPageMode()?a.hasOwnProperty("isTpl")&&!0!==a.isTpl||!a.hasOwnProperty("isTpl")?b.fn(this):b.inverse(this):b.fn(this)}),Handlebars.registerHelper("replaceParameter",function(a,b,c){return a.replace(b,c)}),Handlebars.registerHelper("imageSource",function(a,b){var c=a;return"object"==typeof a&&null!==a&&(c=Handlebars.helpers.lang(a)),bluetrix.isAdmin()||void 0!==b?'src="'+c+'"':'src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" data-src="'+c+'"'}),Handlebars.registerHelper("isLangSwitcherItemVisible",function(a,b,c,d){var e=1==- -a,f=JSON.parse(c),g="object"==typeof f&&null!==f&&Array.isArray(f)?f:[];return e&&g.indexOf(b)>-1?d.inverse(this):d.fn(this)}),Handlebars.registerHelper("inArray",function(a,b,c){return b.indexOf(a)>-1?c.fn(this):c.inverse(this)}),Handlebars.registerHelper("jsonNavigation",function(a,b){var c=[];if(void 0!==a&&a.length>0){var d=1;a.map(function(a){var b={"@type":"ListItem",position:d};void 0!==a.label[bluetrix.getLang()]&&(b.name=a.label[bluetrix.getLang()]),void 0!==a.link&&void 0!==a.link.front&&(b.item=window.location.origin+a.link.front),c.push(b),d++})}return'<script type="application/ld+json">{"@context": "https://schema.org","@type": "BreadcrumbList", "itemListElement": '+(c=JSON.stringify(c))+"}<\/script>"}),Handlebars.registerHelper("hasNestedMenuItems",function(a,b){if(a.hasOwnProperty("modules")&&"object"==typeof a.modules&&null!==a.modules&&a.modules.length>0){var c=!1;if(a.modules.map(function(a){var b=a.settings.page;(!b.hasOwnProperty("disableRendering")||b.hasOwnProperty("disableRendering")&&1!=- -b.disableRendering)&&(c=!0)}),c)return b.fn(this)}return b.inverse(this)}),Handlebars.registerHelper("math",function(a,b,c,d){return a=parseFloat(a),c=parseFloat(c),{"+":a+c}[b]});var CacheSite=function(){var a=function(){var a=this;a.init=function(b,c,d){a.cacheURL=b,a.cacheSite=c,a.siteCreatedFromCache=d},a.startCaching=function(b){if(a.isCacheable()){var c=$("#main-container").clone();a.clearEmptyAttrs(c),"function"==typeof b&&b(c),options.absoluteImageUrl&&a.appendAbsoluteUrl(c),$.post(a.cacheURL,{html:a.minifyHtml(c[0].innerHTML)},function(b){a.isCachedProperly(b)&&a.setCacheReady()})}},a.isCacheable=function(){return"string"==typeof a.cacheURL&&""!==a.cacheURL&&a.cacheSite&&!a.siteCreatedFromCache},a.isCachedProperly=function(a){return"object"==typeof a&&null!==a&&a.hasOwnProperty("cached")&&!0===a.cached},a.appendAbsoluteUrl=function(a){a.find("img").each(function(a,b){var c=$(b),d=c.attr("src");-1==d.indexOf("http://")&&(d=d.replace(options.domain,""),d=options.domain+d,$(b).attr("src",d))})},a.createResponsiveImages=function(a){var b=bluetrix.getResponsiveImagesList(a);a.append("<script>var bluetrixResponsiveImages = "+JSON.stringify(b)+"; <\/script>")},a.clearEmptyAttrs=function(a){a.find("[style]").each(function(a,b){""===$(b).attr("style")&&$(b).removeAttr("style")})},a.minifyHtml=function(a){return a.replace(/\s{2,}/g," ")},a.getSiteIsCached=function(){return a.siteCreatedFromCache},a.setCacheReady=function(){$("body").addClass("cache-ready")}},b=null;return{getInst:function(){return b||(b=new a)}}}();"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a){a.fn.alterClass=function(b,c){var d=this;if(-1===b.indexOf("*"))return d.removeClass(b),c?d.addClass(c):d;var e=new RegExp("\\s"+b.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return d.each(function(b,c){for(var d=" "+c.className+" ";e.test(d);)d=d.replace(e," ");c.className=a.trim(d)}),c?d.addClass(c):d}}(jQuery);var Utils=function(){var a=function(){var a=this;a.cacheServiceHost=void 0,a.cacheServicePort=void 0,a.scrollbarWidth=null,a.spectrumShowAlpha=!0,a.spectrumShowPalette=!1,a.spectrumShowSelectionPalette=!1,a.spectrumPalette=[],a.windowResizeInitialized=!1,a.windowResizeObjects=[],a.loadedScripts=[],a.allowedRootTags={},a.customValidation=void 0,a.validateEmail=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)},a.generateUID=function(a){var b=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return a?b()+b():b()+b()+"-"+b()+"-"+b()+"-"+b()+"-"+b()+b()+b()},a.createGoogleMap=function(a,b,c,d){b=b||61,c=c||8,d=d||8;var e={center:new google.maps.LatLng(b,c),zoom:d,mapTypeId:google.maps.MapTypeId.ROADMAP};return new google.maps.Map(a,e)},a.isObject=function(a){return a===Object(a)&&"[object Array]"!==Object.prototype.toString.call(a)},a.serializeToObject=function(a){var b={};return a.serializeArray().map(function(a){b[a.name]=a.value}),b},a.checkboxStateToBinary=function(a){return a.is(":checked")?1:0},a.getCacheServiceHost=function(){if(this.cacheServiceHost)return this.cacheServiceHost;if(options.hasOwnProperty("cacheServiceUrl")){var a=options.cacheServiceUrl;if("string"==typeof a&&""!==a){var b=a.replace(/^https?:\/\//,"").replace(/^\/\//,""),c=b.split("/"),d=c[0].replace(/:\d+$/,"");this.cacheServiceHost=d}}return this.cacheServiceHost},a.getCacheServicePort=function(){if(this.cacheServicePort)return this.cacheServicePort;if(options.hasOwnProperty("cacheServiceUrl")){var a=options.cacheServiceUrl.match(/:\d+/);if(null!==a&&a.length>0)return this.cacheServicePort=a[0].replace(":",""),this.cacheServicePort}return this.cacheServicePort=8080,this.cacheServicePort},a.getModuleObject=function(a){return"function"!=typeof window[a+"Module"]?new Module:new window[a+"Module"]},a.objectHasAtLeastOneProp=function(a){var b=!1;for(prop in a){b=!0;break}return b},a.getDict=function(a){return options.dictionary&&options.dictionary[a]?options.dictionary[a]:"#"+a},a.trans=function(a){var b=options.lang,c=options.def_lang;if("object"==typeof a&&null!==a){if(a[b])return a[b];if(a[c])return a[c]}return""},a.getModuleBreakpoint=function(a,b){var c=options.moduleBreakpoint;return a&&""!=a&&(c=a),"col-"+c+"-"+b},a.getModuleBreakpointName=function(a){return a&&""!=a?a:options.moduleBreakpoint},a.setSpectrumShowAlpha=function(b){a.spectrumShowAlpha=b},a.getSpectrumShowAlpha=function(){return void 0===a.spectrumShowAlpha||a.spectrumShowAlpha},a.setSpectrumShowPalette=function(b){a.spectrumShowPalette=b},a.getSpectrumShowPalette=function(){return this.getPredefinedColors().length>0||!0===a.spectrumShowPalette},a.setSpectrumShowSelectionPalette=function(b){a.spectrumShowSelectionPalette=b},a.getSpectrumShowSelectionPalette=function(){return a.spectrumShowSelectionPalette},a.setSpectrumPalette=function(b){a.spectrumPalette=b},a.getSpectrumPalette=function(){return(void 0===a.spectrumPalette?[]:a.spectrumPalette).concat(a.getPredefinedColors())},a.hasScrollbar=function(a){return a.get(0).scrollHeight>a.height()},a.registerObjectOnWindowResize=function(b){a.windowResizeInitialized||$(window).on("resize",function(){$.each(a.windowResizeObjects,function(a,b){try{b.onWindowResize()}catch(c){}})}),a.windowResizeObjects.push(b)},a.unregisterObjectOnWindowResize=function(b){$.each(a.windowResizeObjects,function(c,d){d==b&&a.windowResizeObjects.splice(c,1)})},a.getScrollbarWidth=function(){if(null!==a.scrollbarWidth)return a.scrollbarWidth;$("body").css("overflow","hidden");var b=$('<div style="width:100%;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');$("body").append(b);var c=b.find("div").outerWidth();return $("body").css("overflow","auto"),$(b).remove(),a.scrollbarWidth=c-$(window).width(),a.getScrollbarWidth()},a.assocArraySize=function(a){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c},a.isScriptLoaded=function(b){return a.loadedScripts.indexOf(b)>-1},a.loadScript=function(b){if(!a.isScriptLoaded(b)){var c=document.createElement("script");c.src=b;var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d),a.setScriptLoaded(b)}},a.setScriptLoaded=function(b){a.loadedScripts.push(b)},a.getNestedVal=function(a,b){for(var c=b.split("."),d=a,e=0,f=c.length;e<f;e++){if(!d.hasOwnProperty(c[e]))return d;d=d[c[e]]}return d},a.stripTags=function(a){return"string"!=typeof a||""===a?"":a.replace(/<[^>]+>/g,"")},a.latinize=function(a){var b={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","ǲ":"D","ǅ":"D","Đ":"D","Ƌ":"D","Ǳ":"DZ","Ǆ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","ǈ":"L","Ł":"L","Ǉ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","ǋ":"N","Ñ":"N","Ǌ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","Ĳ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","ǳ":"dz","ǆ":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","ǉ":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","ǌ":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ﬀ":"ff","ﬃ":"ffi","ﬄ":"ffl","ﬁ":"fi","ﬂ":"fl","ĳ":"ij","œ":"oe","ﬆ":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"};return a.replace(/[^A-Za-z0-9\[\] ]/g,function(a){return b[a]||a})},a.parseDate=function(b){var c=b,d=options.dateFormat;if("string"==typeof b&&""!==b&&(b=b.replace(/T[0-9:+]+/,""),""!==d)){var e=[],f=b.split("-"),g=d.split("");$.each(g,function(a,b){switch(b.toLowerCase()){case"d":e.push(f[2]);break;case"m":e.push(f[1]);break;case"y":e.push(f[0])}}),c=e.join(a.getDateFormatSeparator())}return c},a.getDateFormat=function(){var a="dmy";return""!==options.dateFormat&&(a=options.dateFormat),a},a.getDateFormatSeparator=function(){var a=".";return""!==options.dateFormatSeparator&&(a=options.dateFormatSeparator),a},a.getQueryParam=function(a){for(var b={},c=location.search.replace("?","").split("&"),d=0,e=c.length;d<e;d++){var f=c[d].split("=");b[f[0]]=f[1]}return b.hasOwnProperty(a)?decodeURI(b[a]):void 0},a.slugify=function(b){return a.latinize(b.toString()).toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},a.capitalize=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},a.deentitize=function(a){for(var b=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"'],["#x20"," "],["#x3d","="],["#x3a",":"],["#x23","#"],["#x3b",";"]],c=0,d=b.length;c<d;++c)a=a.replace(new RegExp("&"+b[c][0]+";","gi"),b[c][1]);return a},a.isMobile=function(){return/(android|bb\d+|meego|android|ipad|playbook|silk).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4))},a.getElfinderObj=function(a,b,c){return{iframeSrc:"src='/bundles/bfbluetrix/plugins/elFinder-2.x/elfinder-popup.php?timestamp="+(new Date).getTime()+"&mode="+(bluetrix.isDevMode()?"dev":"prod")+"'",href:a,showLink:b,imageUrl:c}},a.elFinderBrowser=function(b){var c=new ElFinderPopup,d=$("#"+b).val();$(c).on("changesInPopup",function(a,c){$("#"+b).val(c.imgSrc).trigger("change");var d=$("#"+b).closest(".file-uploader-wrapper");d.length>0&&(d.find(".file-preview").append(Handlebars.helpers.img(c.imgSrc).string),d.addClass("file-selected"))}),c.setZindex(7e4),c.create(a.getElfinderObj(null,!1,d))},a.setAllowedRootTags=function(a,b){this.allowedRootTags[a]=b},a.getAllowedRootTags=function(a){return this.allowedRootTags[a]?this.allowedRootTags[a]:["article","aside","details","div","figcaption","figure","footer","header","main","mark","nav","section","summary","time","ul","li"]},a.getDefaultRootTag=function(){return"div"},a.extraWysiwygPlugins=[],a.extraWysiwygPluginsFull=[],a.setExtraWysiwygPlugins=function(b,c){"object"==typeof c&&null!==c&&Array.isArray(c)&&c.length>0&&(!0===b?a.extraWysiwygPluginsFull=c:a.extraWysiwygPlugins=c)},a.clearExtraWysiwygPlugins=function(b){!0===b?a.extraWysiwygPluginsFull=[]:a.extraWysiwygPlugins=[]},a.getAvailableWysiwygPlugins=function(b){return!0===b?["code","link","image","customlink","table","fontawesome","noneditable","textcolor","colorpicker","bullets"].concat(a.extraWysiwygPluginsFull):["code","customlink","fontawesome","textcolor","colorpicker","bullets"].concat(a.extraWysiwygPluginsFull)},a.extraWysiwygToolbarConfig="",a.extraWysiwygToolbarConfigFull="",a.setExtraWysiwygToolbarConfig=function(b,c){"string"==typeof c&&""!==c&&(!0===b?a.extraWysiwygToolbarConfigFull=c:a.extraWysiwygToolbarConfig=c)},a.clearExtraWysiwygToolbarConfig=function(b){!0===b?a.extraWysiwygToolbarConfigFull="":a.extraWysiwygToolbarConfig=""},a.getWysiwygToolbarConfig=function(b){return!0===b?["bold italic | customlink image | alignleft  aligncenter  alignright | styleselect","fontsizeselect forecolor fontawesome bullets | bullist numlist table | code | "+a.extraWysiwygToolbarConfigFull]:"bold italic | customlink | alignleft  aligncenter  alignright | fontsizeselect forecolor fontawesome bullets | code | "+a.extraWysiwygToolbarConfig},a.getPredefinedColors=function(){try{var a=JSON.parse(options.predefinedColors);return"object"==typeof a&&null!==a&&Array.isArray(a)&&a.length>0?a:[]}catch(b){return[]}},a.getPredefinedColorsToWysiwyg=function(){var b=[];return this.getPredefinedColors().map(function(c){a.isValidHexColor(c)||(c=a.parseRgbaToHex(c)),b.push(c.replace("#",""),c)}),b},a.trim=function(a){return a.replace(/^\s+|\s+$/gm,"")},a.isValidHexColor=function(a){return(4===a.length||7===a.length)&&"#"===a[0]},a.parseRgbaToHex=function(b){var c=b.substring(b.indexOf("(")).split(","),d=[parseInt(a.trim(c[0].substring(1)),10).toString(16),parseInt(a.trim(c[1]),10).toString(16),parseInt(a.trim(c[2]),10).toString(16)]
;c.length>3?d.push((255*parseFloat(a.trim(c[3].substring(0,c[3].length-1))).toFixed(2)).toString(16).substring(0,2)):d.push(255..toString(16).substring(0,2));var e="#";return d.map(function(a){1===a.length&&(a="0"+a),e+=a}),e},a.isParameterNotEmpty=function(a){var b="object"==typeof bluetrix&&null!==bluetrix?bluetrix.getLang():options.lang;return"object"==typeof a&&null!==a&&(a=a.hasOwnProperty(b)?a[b]:null),"string"==typeof a&&""!==a||"object"==typeof a&&null!==a&&(Object.keys(a).length>0||Array.isArray(a)&&a.length>0)},a.scrollToTargetElement=function(a){if(!a||0!==a.indexOf("/")){var b=$("[data-module-anchor="+a+"]");b.length>0&&$("html, body").animate({scrollTop:b.offset().top},{duration:1e3,step:function(a,c){var d=b.offset().top;c.end!==d&&(c.end=d)}})}},a.processResponsiveImages=function(a,b,c,d){var e=this.getModuleObject(a.module);if(e.setData(a),a.isSimpleCompile||!a.content||e.isParametrized())return"";"string"==typeof c&&""!==c||(c="responsive");var f=a.content[b+"-"+c];if(f&&f[bluetrix.getLang()]){f=f[bluetrix.getLang()];var g="",h=options.styleEditorSteps.slice().reverse();return $.each(h,function(a,b){if(f[b.id]){var c=d&&!bluetrix.isAdmin()?"data-srcset":"srcset",e=b.max?'media="(max-width:'+b.max+'px)" ':"";g+="<source "+e+c+'="'+f[b.id]+'" >'}}),new Handlebars.SafeString(g)}return""},a.getResponsiveMainImageSrc=function(a,b,c){if(!a.content)return"";var d=a.content[b+"-"+c];if(d&&d[bluetrix.getLang()]&&"object"==typeof(d=d[bluetrix.getLang()])&&null!==d){if(d.hasOwnProperty("def"))return d.def;if("preview"===c)for(var e=options.styleEditorSteps.slice(),f=0;f<e.length;f++)if(d.hasOwnProperty(e[f].id))return d[e[f].id]}return""},a.updateSearchOccurrence=function(a,b){if(this.clearSearchOccurrence(a),this.isValidSearchPhrase(b)){var c=new RegExp(b,"ig");a.find("[data-search-phrase]").each(function(a,b){var d=$(b).data("search-phrase");c.test(d)&&(d=d.replace(c,function(a,b){return'<em class="search-occurrence">'+a+"</em>"}),$(b).html(d))})}},a.clearSearchOccurrence=function(a){a.find("[data-search-phrase]").each(function(a,b){$(b).find(".search-occurrence").remove(),$(b).text($(b).data("search-phrase"))})},a.isValidSearchPhrase=function(a){return"string"==typeof a&&""!==a},a.clearSelectedSearchOccurrence=function(a){a.find(".search-occurrence").removeClass("active")},a.getSearchSelectedOccurrenceHandler=function(a){return a.find(".search-occurrence.active")},a.updateSelectedSearchOccurrence=function(a,b){this.clearSelectedSearchOccurrence(a);var c=a.find(".search-occurrence:eq("+b+")");c.length>0&&c.addClass("active")},a.getSearchOccurrenceCount=function(a){return a.find(".search-occurrence").length},a.navigateToSelectedSearchOccurrence=function(a,b){var c=this.getSearchSelectedOccurrenceHandler(a);c.length>0&&$("html, body").stop().animate({scrollTop:c.offset().top+b},600)},a.repairClonedData=function(a){var b=this;"string"==typeof a.published&&(a.published="true"===a.published),a.hasOwnProperty("editOptions")&&"object"==typeof a.editOptions&&null!==a.editOptions?("string"==typeof a.editOptions.pageContainer&&(a.editOptions.pageContainer="true"===a.editOptions.pageContainer),"string"==typeof a.editOptions.pageEdition&&(a.editOptions.pageEdition="true"===a.editOptions.pageEdition)):a.editOptions={pageContainer:!0,pageEdition:!0},a.hasOwnProperty("modules")&&"object"==typeof a.modules&&null!==a.modules&&Array.isArray(a.modules)&&a.modules.length>0&&a.modules.map(function(a){b.repairClonedData(a)})},a.isDataLayerDefined=function(){return window.hasOwnProperty("dataLayer")&&"object"==typeof window.dataLayer&&null!==window.dataLayer},a.isGaDefined=function(){return window.hasOwnProperty("ga")&&"object"==typeof window.ga&&null!==window.ga},a.setCustomValidation=function(a){this.customValidation=a},a.getCustomValidation=function(){return this.customValidation},a.isCustomValidationSet=function(){return"function"==typeof this.customValidation}},b=null;return{getInst:function(){return b||(b=new a)}}}(),CoreLightbox=function(a){this.modules_container=a,this.modules=[],this.currentModule=null,this.currentImageIndex=0,this.visible=!1,this.handler=null,this.initialize()};CoreLightbox.prototype.initialize=function(){this.presetModules(),this.bindEvents()},CoreLightbox.prototype.presetModules=function(){var a=this;$.each(this.modules_container,function(b,c){if(- -c.module.data.settings.showInLightbox){var d=!0;a.modules.map(function(a){a.hasContainer()&&a.container.findModuleById(c.module.getId(),!0)&&(d=!1)}),d&&a.modules.push(c.module)}})},CoreLightbox.prototype.bindEvents=function(){var a=this;this.modules.map(function(b){b.element.on("click","img",function(c){a.isImageInAnchor($(this))||a.onClickImage(b,$(this))})}),$(window).on("keydown",function(b){a.isLightboxVisible()&&a.bindKeyboardEvent(b.keyCode)})},CoreLightbox.prototype.onClickImage=function(a,b){this.setCurrentModule(a),this.isCurrentModuleIsImageOriented()?this.currentImageIndex=0:this.currentImageIndex=this.getClickedImageIndex(b),this.showLightbox()},CoreLightbox.prototype.getClickedImageIndex=function(a){var b=0;return this.getCurrentModule().element.find("img").each(function(c,d){$(d).is(a)&&(b=c)}),b},CoreLightbox.prototype.bindKeyboardEvent=function(a){switch(a){case 37:this.handleNavigation(!1);break;case 39:this.handleNavigation(!0);break;case 27:this.hideLightbox()}},CoreLightbox.prototype.isLightboxVisible=function(){return this.visible},CoreLightbox.prototype.isImageInAnchor=function(a){var b=a.closest("a");return b.length>0&&""!==b.attr("href")},CoreLightbox.prototype.showLightbox=function(){var a=this;null===this.handler?this.renderLightbox():this.changePicture(),this.handler.fadeIn(500,function(){a.visible=!0})},CoreLightbox.prototype.renderLightbox=function(){this.handler=this.getTemplate(),$("body").append(this.handler),this.bindLightboxEvents()},CoreLightbox.prototype.getTemplate=function(){var a=$("<div>").addClass("core-lightbox");this.hasCurrentModuleCaption()&&a.addClass("with-caption"),this.isFirstImageDisplayed()?a.addClass("first-item"):this.isLastImageDisplayed()&&a.addClass("last-item");var b=$("<div>").addClass("lightbox-content-wrapper"),c=$("<div>").addClass("lightbox-content").append($("<button>").attr({type:"button",class:"btn btn-close"}).append($("<span>").addClass("fa fa-close")));return this.isControlsVisible()&&c.append($("<button>").attr({type:"button",class:"btn btn-nav btn-prev"}).append($("<span>").addClass("fa fa-angle-left")),$("<button>").attr({type:"button",class:"btn btn-nav btn-next"}).append($("<span>").addClass("fa fa-angle-right"))),c.append($("<div>").addClass("lightbox-image").append(this.getCurrentModulePicture()),$("<p>").addClass("lightbox-caption").text(this.getCurrentModuleCaption())),a.append(b.append(c))},CoreLightbox.prototype.hideLightbox=function(){var a=this;this.handler.fadeOut(500,function(){a.visible=!1})},CoreLightbox.prototype.getCurrentModuleCaption=function(){var a=this.getModuleWrappedCurrentImage();if(!this.isImageOrientedModule(a)){return this.getImageInsideCurrentModule().attr("alt")}var b=this.getModuleWrappedCurrentImage().getSettings();return b.hasOwnProperty("alt")&&"object"==typeof b.alt&&null!==b.alt&&b.alt.hasOwnProperty(bluetrix.getLang())?b.alt[bluetrix.getLang()]:""},CoreLightbox.prototype.hasCurrentModuleCaption=function(){var a=this.getCurrentModuleCaption();return"string"==typeof a&&""!==a},CoreLightbox.prototype.changePicture=function(){this.updatePicture(),this.updateCaption(),this.updateNavigation()},CoreLightbox.prototype.updatePicture=function(){this.handler.find(".lightbox-image").empty().append(this.getCurrentModulePicture())},CoreLightbox.prototype.updateCaption=function(){this.handler.find(".lightbox-caption").text(this.getCurrentModuleCaption()),this.hasCurrentModuleCaption()?this.handler.addClass("with-caption"):this.handler.removeClass("with-caption")},CoreLightbox.prototype.getModuleWrappedCurrentImage=function(){return this.modules_container[this.getImageInsideCurrentModule().closest("[data-moduleid]").data("moduleid")].module},CoreLightbox.prototype.getCurrentModulePicture=function(){var a=this.getImageInsideCurrentModule(),b=this.getModuleWrappedCurrentImage(),c=a.data("par"),d=$("<img>").attr({class:"img-responsive",alt:a.attr("alt")});if(this.isImageOrientedModule(b)&&!b.isParametrized()){var e=$("<picture>"),f="";return d.attr("alt",this.getCurrentModuleCaption()),this.hasCurrentModulePreviewImage(c)?(f=Utils.getInst().processResponsiveImages(b.getData(),a.data("par"),"preview"),d.attr("src",Utils.getInst().getResponsiveMainImageSrc(b.getData(),a.data("par"),"preview"))):(f=Utils.getInst().processResponsiveImages(b.getData(),a.data("par"),"responsive"),d.attr("src",Utils.getInst().getResponsiveMainImageSrc(b.getData(),a.data("par"),"responsive"))),f.string&&e.append(f.string),e.append(d),e}return d.attr("src",a.attr("src")),d},CoreLightbox.prototype.hasCurrentModulePreviewImage=function(a){var b=this.getCurrentModule().getDataContent(),c=a+"-preview",d=bluetrix.getLang();return b.hasOwnProperty(c)&&"object"==typeof b[c]&&null!==b[c]&&b[c].hasOwnProperty(d)&&"object"==typeof b[c][d]&&null!==b[c][d]&&Object.keys(b[c][d]).length>0},CoreLightbox.prototype.updateNavigation=function(){this.isFirstImageDisplayed()?this.handler.removeClass("last-item").addClass("first-item"):this.isLastImageDisplayed()?this.handler.removeClass("first-item").addClass("last-item"):this.handler.removeClass("first-item last-item")},CoreLightbox.prototype.isFirstImageDisplayed=function(){return 0===this.getCurrentModuleIndex()&&0===this.currentImageIndex},CoreLightbox.prototype.isLastImageDisplayed=function(){var a=this.modules[this.getModulesCount()-1].element.find("img").length-1===this.currentImageIndex;return this.getCurrentModuleIndex()===this.getModulesCount()-1&&a},CoreLightbox.prototype.showNextModule=function(){var a=this.getCurrentModuleIndex();a<this.getModulesCount()-1&&(this.setCurrentModuleByIndex(a+1),this.currentImageIndex=0,this.changePicture())},CoreLightbox.prototype.showPrevModule=function(){var a=this.getCurrentModuleIndex();a>0&&(this.setCurrentModuleByIndex(a-1),this.currentImageIndex=this.getCurrentModuleImagesCount()-1,this.changePicture())},CoreLightbox.prototype.showNextImage=function(){if(this.isCurrentModuleIsImageOriented())this.showNextModule();else{var a=this.getCurrentModuleImagesCount();this.currentImageIndex<a-1?(this.currentImageIndex++,this.changePicture()):this.showNextModule()}},CoreLightbox.prototype.showPrevImage=function(){this.isCurrentModuleIsImageOriented()?this.showPrevModule():this.currentImageIndex>0?(this.currentImageIndex--,this.changePicture()):this.showPrevModule()},CoreLightbox.prototype.getModulesCount=function(){return this.modules.length},CoreLightbox.prototype.isControlsVisible=function(){return this.isMultipleImages()},CoreLightbox.prototype.isMultipleImages=function(){if(this.getModulesCount()>1)return!0;var a=this.modules[0];return!this.isImageOrientedModule(a)&&a.element.find("img").length>0},CoreLightbox.prototype.getImageInsideCurrentModule=function(){var a=this.getCurrentModule().element.find("img");return this.isCurrentModuleIsImageOriented()?a.first():$(a[this.currentImageIndex])},CoreLightbox.prototype.getCurrentModuleIndex=function(){var a=this,b=0;return this.modules.map(function(c,d){a.getCurrentModule().getId()===c.getId()&&(b=d)}),b},CoreLightbox.prototype.getCurrentModule=function(){return this.currentModule},CoreLightbox.prototype.setCurrentModule=function(a){this.currentModule=a},CoreLightbox.prototype.setCurrentModuleByIndex=function(a){this.setCurrentModule(this.modules[a])},CoreLightbox.prototype.bindLightboxEvents=function(){var a=this;this.handler.on("click",function(b){$(b.target).hasClass("lightbox-content")||0!==$(b.target).closest(".lightbox-content").length||a.hideLightbox()}),this.handler.on("click",".btn-close",function(){a.hideLightbox()}),this.handler.on("click",".btn-nav",function(){a.handleNavigation(!$(this).hasClass("btn-prev"))})},CoreLightbox.prototype.handleNavigation=function(a){a?this.showNextImage():this.showPrevImage()},CoreLightbox.prototype.isCurrentModuleIsImageOriented=function(){return this.getImageOrientedModules().indexOf(this.getCurrentModule().getModuleName())>-1},CoreLightbox.prototype.isImageOrientedModule=function(a){return this.getImageOrientedModules().indexOf(a.getModuleName())>-1},CoreLightbox.prototype.getImageOrientedModules=function(){return["image","textimage"]},CoreLightbox.prototype.getCurrentModuleImagesCount=function(){return this.getCurrentModule().element.find("img").length},GdprInterface.prototype.init=function(){this.render()},GdprInterface.prototype.render=function(){},GdprInterface.prototype.shouldShow=function(){return!0},GdprInterface.prototype.setHandler=function(a){this.handler=a},GdprInterface.prototype.getHandler=function(){return this.handler},GdprInterface.prototype.getPageId=function(){return options.id_page},GdprInterface.prototype.getConfig=function(){return options.gdpr},GdprInterface.prototype.getContent=function(){return Utils.getInst().deentitize(this.getConfig().text)},GdprInterface.prototype.getDetailedContent=function(){var a=Utils.getInst().deentitize(this.getConfig().detailedText);return"string"==typeof a&&""!==a?a:this.getContent()},GdprInterface.prototype.isCookiesAccepted=function(a){return!0},GdprInterface.prototype.reload=function(){location.reload()},GdprInterface.prototype.isPageExclude=function(){return this.getExcludePages().indexOf(this.getPageId())>-1},GdprInterface.prototype.getExcludePages=function(){return this.excludePages||(this.excludePages=JSON.parse(this.getConfig().excludePages)),this.excludePages},inheritPrototype(CookieNotice,GdprInterface),CookieNotice.prototype.shouldShow=function(){return!this.isCookiesExist()&&!this.isPageExclude()},CookieNotice.prototype.isRendered=function(){return $("body").find(".notice-container").length>0},CookieNotice.prototype.render=function(){var a;if(this.isRendered())a=$("body").find(".notice-container").first();else{var b=$("<div>").addClass("cookies-btn-container").append($("<button>").attr({type:"button",class:"btn btn-cookies btn-cookies-accept","data-cookie-notice-accept":""}).text(this.getAcceptBtn()));this.isShowNotNowBtn()&&b.append($("<button>").attr({type:"button",class:"btn btn-cookies btn-cookies-close","data-cookie-notice-close":""}).text(this.getNotNowBtn())),this.isShowRejectBtn()&&b.append($("<button>").attr({type:"button",class:"btn btn-cookies btn-cookies-reject","data-cookie-notice-reject":""}).text(this.getRejectBtn())),a=$("<div>").addClass("notice-container cookies-module cookies-position-"+this.getPosition());var c=$("<div>").addClass("cookies-content").append($("<div>").addClass("cookies-text").html(this.getContent()),b);this.isFullWidth()?a.append($("<div>").addClass("cookies-container").append($("<div>").addClass("container").append(c))):a.append($("<div>").addClass("cookies-container container").append(c)),this.isOnTopPosition()?$("body").prepend(a):$("body").append(a)}this.setHandler(a),this.onRender()},CookieNotice.prototype.onRender=function(){this.toggle(),this.bindEvents()},CookieNotice.prototype.toggle=function(){this.getHandler().toggle()},CookieNotice.prototype.accept=function(){this.close(),this.markCookiesAccepted(),this.isReloadMode()&&this.reload()},CookieNotice.prototype.reject=function(){this.close(),this.markCookiesRejected(),this.isReloadMode()&&this.reload()},CookieNotice.prototype.close=function(){this.toggle(this,"remove")},CookieNotice.prototype.remove=function(){this.getHandler().remove(),this.setHandler(null)},CookieNotice.prototype.toggle=function(a,b){this.getHandler().slideToggle(function(){"object"==typeof a&&null!==a&&"string"==typeof b&&a[b]()})},CookieNotice.prototype.bindEvents=function(){var a=this;this.getHandler().on("click","[data-cookie-notice-accept]",function(){a.accept()}),this.getHandler().on("click","[data-cookie-notice-reject]",function(){a.reject()}),this.getHandler().on("click","[data-cookie-notice-close]",function(){a.close()})},CookieNotice.prototype.isCookiesExist=function(){return this.isCookiesAccepted()||this.isCookiesRejected()},CookieNotice.prototype.isCookiesAccepted=function(){return 1==- -bluetrixStorage.cookies.getItem("cookieNoticeAccepted")},CookieNotice.prototype.isCookiesRejected=function(){return-1==- -bluetrixStorage.cookies.getItem("cookieNoticeAccepted")},CookieNotice.prototype.markCookiesAccepted=function(){bluetrixStorage.cookies.setItem("cookieNoticeAccepted",1)},CookieNotice.prototype.markCookiesRejected=function(){bluetrixStorage.cookies.setItem("cookieNoticeAccepted",-1)},CookieNotice.prototype.isOnTopPosition=function(){return"top"===this.getPosition()},CookieNotice.prototype.getMode=function(){return this.getConfig().mode},CookieNotice.prototype.getPosition=function(){return this.getConfig().position},CookieNotice.prototype.isShowRejectBtn=function(){return this.getConfig().showRejectBtn},CookieNotice.prototype.isShowNotNowBtn=function(){return this.getConfig().showNotNowBtn},CookieNotice.prototype.getAcceptBtn=function(){return this.getConfig().acceptBtn},CookieNotice.prototype.getNotNowBtn=function(){return this.getConfig().notNowBtn},CookieNotice.prototype.getRejectBtn=function(){return this.getConfig().rejectBtn},CookieNotice.prototype.isFullWidth=function(){return this.getConfig().fullWidth},CookieNotice.prototype.isBlockVideo=function(){return this.getConfig().blockVideo},CookieNotice.prototype.isReloadMode=function(){return"reload"===this.getMode()},inheritPrototype(PrivacyPreference,GdprInterface),PrivacyPreference.prototype.shouldShow=function(){return!this.isAccepted()&&!this.isPageExclude()},PrivacyPreference.prototype.getAcceptedCookies=function(){var a=bluetrixStorage.cookies.getItem("privacyPreferenceAccepted");if("string"==typeof a&&""!==a)return JSON.parse(a)},PrivacyPreference.prototype.isAccepted=function(){var a=this.getRequiredCookiesCategoriesKeys(),b=this.getAcceptedCookies();return"object"==typeof b&&null!==b&&Array.isArray(b)&&b.length>0&&b.filter(function(b){return a.indexOf(b)>-1}).length===a.length},PrivacyPreference.prototype.isRendered=function(){return $("body").find(".privacy-preference-container").length>0},PrivacyPreference.prototype.render=function(){var a;this.isRendered()?a=$("body").find(".privacy-preference-container").first():(a=$("<div>").addClass("privacy-preference-container pp-mode-"+this.getMode()).append($("<div>").addClass("pp-popup").append($("<div>").addClass("pp-content").append($("<p>").addClass("pp-head").text(this.getTitle()),$("<div>").addClass("pp-text pp-text-simple").html(this.getContent()),$("<div>").addClass("pp-text pp-text-detailed").html(this.getDetailedContent()),$("<div>").addClass("pp-simple-categories-container").append(this.renderSimpleCategories()),$("<div>").addClass("pp-btn-container").append($("<div>").addClass("pp-btn-container-actions").append($("<button>").attr({type:"button",class:"btn btn-pp btn-pp-accept-all","data-pp-action":"acceptAll"}).text(this.getAcceptAllBtn()),$("<button>").attr({type:"button",class:"btn btn-pp btn-pp-save","data-pp-action":"save"}).text(this.getSaveBtn())),$("<button>").attr({type:"button",class:"btn btn-pp btn-pp-simple btn-pp-back","data-pp-action":"changeMode","data-pp-action-value":"simple"}).text(this.getBackBtn())),$("<div>").addClass("pp-detailed-categories-container").append(this.renderDetailedCategories()),$("<div>").addClass("pp-individual-container").append($("<button>").attr({type:"button",class:"btn btn-pp btn-pp-simple btn-pp-individual","data-pp-action":"changeMode","data-pp-action-value":"detailed"}).text(this.getIndividualBtn()))))),$("body").append(a)),this.setHandler(a),this.onRender()},PrivacyPreference.prototype.renderSimpleCategories=function(){var a=this,b=this.getCookiesData(),c=$("<ul>").addClass("pp-categories-list");return b.map(function(b,d){c.append($("<li>").addClass("pp-category-item").append(a.renderCategoryCheckbox(b,"simple",!1)))}),c},PrivacyPreference.prototype.renderDetailedCategories=function(){var a=this,b=this.getCookiesData(),c=$("<div>").addClass("pp-categories-list");return b.map(function(b,d){var e="object"==typeof b.items&&null!==b.items?b.items.length:0,f=$("<li>").addClass("pp-category-item").append($("<p>").addClass("pp-category-name").text(Utils.getInst().trans(b.title)+" ("+e+")"),$("<p>").addClass("pp-category-description").text(Utils.getInst().trans(b.description)));if(b.is_required||f.append($("<div>").addClass("pp-category-switcher").append(a.renderCategoryCheckbox(b,"detailed",!0))),e>0){f.append($("<div>").addClass("pp-category-info-button-wrapper").append($("<button>").attr({type:"button",class:"btn btn-pp btn-pp-simple btn-pp-category-info","data-pp-action":"toggleCategoryInfo","data-pp-action-value":b.key}).text(a.getShowInfoBtn())));var g=$("<div>").attr({class:"pp-category-info-container","data-pp-info-category-container":b.key}),h=$("<ul>").addClass("pp-cookies-list");b.items.map(function(c){var d=$("<li>").addClass("pp-cookie-item");b.is_required||d.append(a.renderCookieAttribute(a.getAcceptLabel(),a.renderCookieCheckbox(b,c))),d.append(a.renderCookieAttribute(a.getNameLabel(),c.name)),Utils.getInst().isParameterNotEmpty(c.provider)&&!Array.isArray(c.provider)&&d.append(a.renderCookieAttribute(a.getProviderLabel(),Utils.getInst().trans(c.provider))),Utils.getInst().isParameterNotEmpty(c.purpose)&&!Array.isArray(c.purpose)&&d.append(a.renderCookieAttribute(a.getPurposeLabel(),Utils.getInst().trans(c.purpose))),Utils.getInst().isParameterNotEmpty(c.policy)&&!Array.isArray(c.policy)&&d.append(a.renderCookieAttribute(a.getPrivacyPolicyLabel(),$("<a>").attr({href:Utils.getInst().trans(c.policy)}).text(Utils.getInst().trans(c.policy)))),c.hosts&&d.append(a.renderCookieAttribute(a.getHostsLabel(),c.hosts)),c.cookie_name&&d.append(a.renderCookieAttribute(a.getCookieNameLabel(),c.cookie_name)),Utils.getInst().isParameterNotEmpty(c.purpose)&&!Array.isArray(c.expiry)&&d.append(a.renderCookieAttribute(a.getCookieExpiryLabel(),Utils.getInst().trans(c.expiry))),h.append(d)}),g.append(h),f.append(g)}c.append(f)}),c},PrivacyPreference.prototype.renderCategoryCheckbox=function(a,b,c){var d="pp-"+b+"-category-"+a.key,e=a.key,f=a.is_required,g=this.isCookiesAccepted(a.key)||a.is_required,h="simple"===b?Utils.getInst().trans(a.title):g?this.getEnabledLabel():this.getDisabledLabel();return this.renderCheckbox(d,e,f,g,h,c)},PrivacyPreference.prototype.renderCookieCheckbox=function(a,b){var c="pp-cookie-item-"+b.key,d=b.key,e=a.is_required,f=this.isCookiesAccepted(a.key)||this.isCookiesAccepted(b.key)||a.is_required,g=f?this.getEnabledLabel():this.getDisabledLabel();return this.renderCheckbox(c,d,e,f,g,!0)},PrivacyPreference.prototype.renderCheckbox=function(a,b,c,d,e,f){var g={type:"checkbox",id:a,class:"form-control",disabled:c,value:b,checked:d};return c||(g["data-pp-cookie"]=b),f&&(g["data-pp-switcher"]=""),$("<div>").addClass("form-group form-group-checkbox").append($("<input>").attr(g),$("<label>").attr({class:"label",for:a}).text(e))},PrivacyPreference.prototype.renderCookieAttribute=function(a,b){return $("<div>").addClass("pp-cookie-attribute").append($("<p>").addClass("pp-attribute-label").text(a),$("<div>").addClass("pp-attribute-value").html(b))},PrivacyPreference.prototype.onRender=function(){this.bindEvents(),this.shouldShow()&&this.show()},PrivacyPreference.prototype.presetRequiredCookies=function(){var a=this;this.getRequiredCookiesCategoriesKeys().forEach(function(b){a.isCookiesAccepted(b)||a.acceptCookie(b)})},PrivacyPreference.prototype.getRequiredCookiesCategoriesKeys=function(){var a=[];return this.getCookiesData().map(function(b){b.is_required&&a.push(b.key)}),a},PrivacyPreference.prototype.bindEvents=function(){var a=this;this.getHandler().on("click","[data-pp-action]",function(){a.handleAction($(this),$(this).data("pp-action"),$(this).data("pp-action-value"))}),this.getHandler().on("change","[data-pp-switcher]",function(){a.onToggleSwitcher($(this))}),this.getHandler().on("change","[data-pp-cookie]",function(){a.onToggleCookie($(this))}),$(document).on("click",'a[href="#privacy-preference"]',function(b){b.preventDefault(),a.show()})},PrivacyPreference.prototype.onToggleSwitcher=function(a){var b=a.prop("checked"),c=a.closest(".form-group").find(".label").first();c&&c.text(b?this.getEnabledLabel():this.getDisabledLabel())},PrivacyPreference.prototype.onToggleCookie=function(a){var b=a.data("pp-cookie"),c=a.prop("checked"),d=this.isCookieCategory(b);c?this.acceptCookie(b):this.declineCookie(b),d?c?this.checkAllCookiesByCategory(b):this.unCheckAllCookiesByCategory(b):c?this.isAllCookiesInCategoryChecked(b)&&this.checkCategoryByChild(b):this.unCheckCategoryByChild(b),this.updateCheckboxesStatuses()},PrivacyPreference.prototype.updateCheckboxesStatuses=function(){var a=this;a.getHandler().find("[data-pp-cookie]").map(function(b,c){$(c).prop("checked",!1),c.hasAttribute("data-pp-switcher")&&a.onToggleSwitcher($(c))}),this.acceptedCookies.map(function(b){var c=a.getHandler().find('[data-pp-cookie="'+b+'"]');c&&c.map(function(b,c){$(c).prop("checked",!0),c.hasAttribute("data-pp-switcher")&&a.onToggleSwitcher($(c))})})},PrivacyPreference.prototype.handleAction=function(a,b,c){switch(b){case"acceptAll":this.acceptAll();break;case"save":this.save();break;case"changeMode":this.changeMode(c);break;case"toggleCategoryInfo":this.toggleCategoryInfo(a,c)}},PrivacyPreference.prototype.acceptAll=function(){var a=this;this.getCookiesData().map(function(b){a.acceptCookie(b.key),b.items&&b.items.map(function(b){a.acceptCookie(b.key)})}),this.storeCookies(),this.trackEvent(),this.hide(),this.reload()},PrivacyPreference.prototype.save=function(){var a=this;this.getCookiesData().map(function(b){a.acceptedCookies.indexOf(b.key)>-1&&b.items&&b.items.map(function(b){a.acceptCookie(b.key)})}),this.storeCookies(),this.trackEvent(),this.hide(),this.reload()},PrivacyPreference.prototype.trackEvent=function(){Utils.getInst().isDataLayerDefined()&&window.dataLayer.push({event:"consent_status_update"})},PrivacyPreference.prototype.storeCookies=function(){bluetrixStorage.cookies.setItem("privacyPreferenceAccepted",JSON.stringify(this.acceptedCookies))},PrivacyPreference.prototype.toggleCategoryInfo=function(a,b){var c=this,d=this.getHandler().find('[data-pp-info-category-container="'+b+'"]');d.is(":visible")?d.slideUp(function(){a.text(c.getShowInfoBtn())}):d.slideDown(function(){a.text(c.getHideInfoBtn())})},PrivacyPreference.prototype.presetAcceptedCookies=function(){var a=this.getAcceptedCookies();a||(a=[]),this.acceptedCookies=a},PrivacyPreference.prototype.presetMode=function(){this.isModeDefined()?this.mode=this.readMode():(this.mode=this.getDefaultMode(),this.persistMode())},PrivacyPreference.prototype.getDefaultMode=function(){return"simple"},PrivacyPreference.prototype.persistMode=function(){bluetrixStorage.sessionStorage.setItem("privacyPreferenceMode",this.mode)},PrivacyPreference.prototype.isModeDefined=function(){return["simple","detailed"].indexOf(this.readMode())>-1},PrivacyPreference.prototype.isCookieCategory=function(a){var b=this.getCookiesData(),c=!1;return b.map(function(b){b.key===a&&(c=!0)}),c},PrivacyPreference.prototype.checkAllCookiesByCategory=function(a){var b=this;this.getCookiesData().map(function(c){c.key===a&&c.items&&c.items.map(function(a){b.acceptCookie(a.key)})})},PrivacyPreference.prototype.unCheckAllCookiesByCategory=function(a){var b=this;this.getCookiesData().map(function(c){c.key===a&&c.items&&c.items.map(function(a){b.declineCookie(a.key)})})},PrivacyPreference.prototype.isAllCookiesInCategoryChecked=function(a){var b=this,c=this.getCategoryByChild(a);if(c&&c.items){var d=!0;return c.items.map(function(a){b.isCookiesAccepted(a.key)||(d=!1)}),d}return!0},PrivacyPreference.prototype.checkCategoryByChild=function(a){var b=this.getCategoryByChild(a);b&&this.acceptCookie(b.key)},PrivacyPreference.prototype.unCheckCategoryByChild=function(a){var b=this.getCategoryByChild(a);b&&this.declineCookie(b.key)},PrivacyPreference.prototype.getCategoryByChild=function(a){var b,c=this.getCookiesData();return c.map(function(c){c.items&&c.items.map(function(d){d.key===a&&(b=c)})}),b},PrivacyPreference.prototype.readMode=function(){return bluetrixStorage.sessionStorage.getItem("privacyPreferenceMode")},PrivacyPreference.prototype.changeMode=function(a){this.getHandler().removeClass(function(a,b){return(b.match(/(^|\s)pp-mode-\S+/g)||[]).join(" ")}),this.getHandler().addClass("pp-mode-"+a),this.mode=a,this.persistMode()},PrivacyPreference.prototype.show=function(){var a=this;this.getHandler().fadeIn(function(){a.presetRequiredCookies()})},PrivacyPreference.prototype.hide=function(){this.getHandler().fadeOut()},PrivacyPreference.prototype.getMode=function(){return this.mode},PrivacyPreference.prototype.getTitle=function(){return this.getConfig().privacyPreferenceTitle},PrivacyPreference.prototype.getAcceptAllBtn=function(){return this.getConfig().acceptAllBtn},PrivacyPreference.prototype.getSaveBtn=function(){return this.getConfig().saveBtn},PrivacyPreference.prototype.getIndividualBtn=function(){return this.getConfig().individualBtn},PrivacyPreference.prototype.getBackBtn=function(){return this.getConfig().backBtn},PrivacyPreference.prototype.getShowInfoBtn=function(){return this.getConfig().showInfoBtn},PrivacyPreference.prototype.getHideInfoBtn=function(){return this.getConfig().hideInfoBtn},PrivacyPreference.prototype.getEnabledLabel=function(){return this.getConfig().enabledLabel},PrivacyPreference.prototype.getDisabledLabel=function(){return this.getConfig().disabledLabel},PrivacyPreference.prototype.getAcceptLabel=function(){return this.getConfig().acceptLabel},PrivacyPreference.prototype.getNameLabel=function(){return this.getConfig().nameLabel},PrivacyPreference.prototype.getProviderLabel=function(){return this.getConfig().providerLabel},PrivacyPreference.prototype.getPurposeLabel=function(){return this.getConfig().purposeLabel},PrivacyPreference.prototype.getPrivacyPolicyLabel=function(){return this.getConfig().privacyPolicyLabel},PrivacyPreference.prototype.getHostsLabel=function(){return this.getConfig().hostsLabel},PrivacyPreference.prototype.getCookieNameLabel=function(){return this.getConfig().cookieNameLabel},PrivacyPreference.prototype.getCookieExpiryLabel=function(){return this.getConfig().cookieExpiryLabel},PrivacyPreference.prototype.getCookiesData=function(){var a=this.getConfig().cookiesData;return"string"==typeof a&&""!==a?JSON.parse(a):[]},PrivacyPreference.prototype.isCookiesAccepted=function(a){if("string"==typeof a&&""!==a)return this.acceptedCookies.indexOf(a)>-1;if("object"==typeof a&&null!==a&&Array.isArray(a)){var b=this,c=0;return a.map(function(a){b.acceptedCookies.indexOf(a)>-1&&c++}),c===a.length}return!0},PrivacyPreference.prototype.acceptCookie=function(a){this.isCookiesAccepted(a)||this.acceptedCookies.push(a)},PrivacyPreference.prototype.declineCookie=function(a){this.isCookiesAccepted(a)&&this.acceptedCookies.splice(this.acceptedCookies.indexOf(a),1)};var Bluetrix=function(a){"use strict";this.options=a,this.onStartAllModulesRendered=!1,this.cacheProcessingBlockers=0,this.element=$("body"),this.containers={},this.modules_container={},this.container=this.getContainerObject(this),this.registerContainer(this.container),a.hasOwnProperty("id_page")&&this.setPage(a.id_page),a.listMode||this.init()};Bluetrix.prototype={constructor:Bluetrix,init:function(){this.preInit(),CacheSite.getInst().init(options.cacheURL,!this.isAdmin(),this.isCached()),this.hasOwnProperty("id")||(this.id=""),this.isCached()&&this.isPageloadDisabled()||this.fillContainer(),this.postInit()},preInit:function(){},postInit:function(){},adminInit:function(){},updateModulesArray:function(a){}},Bluetrix.prototype.scrollToElementByHash=function(){if(location.hash){var a=location.hash,b=a.replace("#","");Utils.getInst().scrollToTargetElement(b)}},Bluetrix.prototype.initGdprManager=function(){
if(this.isGdprManagerEnabled()){var a;switch(this.getGdprMode()){case"detailed":a=new PrivacyPreference;break;default:a=new CookieNotice}this.gdprManager=a}},Bluetrix.prototype.isGdprManagerEnabled=function(){return"off"!==this.getGdprMode()},Bluetrix.prototype.getGdprMode=function(){return options.gdpr.mode},Bluetrix.prototype.getGdprManager=function(){return this.gdprManager},Bluetrix.prototype.initCookieNotice=function(){this.setCookieNotice(new CookieNotice)},Bluetrix.prototype.getCookieNotice=function(){return this.cookieNotice},Bluetrix.prototype.setCookieNotice=function(a){this.cookieNotice=a},Bluetrix.prototype.addCacheProcessingBlocker=function(){this.cacheProcessingBlockers++},Bluetrix.prototype.removeCacheProcessingBlocker=function(){this.cacheProcessingBlockers--,this.cacheProcessing()},Bluetrix.prototype.cacheProcessing=function(){this.isReadyToCache()&&this.isAllModulesRendered()&&CacheSite.getInst().startCaching(this.cacheGenerating)},Bluetrix.prototype.isReadyToCache=function(){return 0===this.cacheProcessingBlockers},Bluetrix.prototype.bindGlobalEvents=function(){this.isAdmin()||this.scrollToElementByHash()},Bluetrix.prototype.fillContainer=function(){var a=this;this.modulesLengthOnStart=0,this.modulesToRender=[],this.workingOnJson=!1,window.bluetrixJsonProvider?(a.workingOnJson=!0,a.workingOnJsonDP=window.bluetrixJsonProvider,setTimeout(function(){bluetrix.atLeastOneOnStart=!1,bluetrix._modulesOnStart(a.workingOnJsonDP.bluetrixModules.modules),a.container.fill(a.workingOnJsonDP.bluetrixModules)},0)):a._fillContainer()},Bluetrix.prototype._fillContainer=function(){this.hasOwnProperty("loadUrl")||(this.loadUrl=this.options.loadUrl);var a=this;$.getJSON(this.loadUrl,this.getPageLoadParams(),function(b){b&&(bluetrix.atLeastOneOnStart=!1,bluetrix._modulesOnStart(b.modules),a.container.fill(b))})},Bluetrix.prototype.getPageLoadParams=function(){var a={id:this.id};this.getDisCache()&&(a.disCache=this.getDisCache());var b=this.getPageLoadExtraParams();return"object"==typeof b&&null!==b&&(a=$.extend({},a,b)),a},Bluetrix.prototype.getPageLoadExtraParams=function(){},Bluetrix.prototype.isAdmin=function(){return this.hasOwnProperty("admin")&&!0===this.admin},Bluetrix.prototype.isWorkingOnJson=function(){return this.workingOnJson},Bluetrix.prototype.getWorkingOnJsonDP=function(){return this.workingOnJsonDP},Bluetrix.prototype.isAllModulesRendered=function(){return!0===this.onStartAllModulesRendered},Bluetrix.prototype._modulesOnStart=function(a){var b=this;if(!a||0==a.length)return bluetrix.onStartAllModulesRendered=!0,bluetrix.onAllModulesLoadedOnStart(),a||bluetrix.setModified(),!0;this.modulesLengthOnStart+=a.length,$.each(a,function(a,c){b.modulesToRender.push(c.id),c.modules&&(bluetrix.atLeastOneOnStart=!0,bluetrix._modulesOnStart(c.modules))}),bluetrix.atLeastOneOnStart||(this.modulesLengthOnStart=0,this.allModulesHaveBeenLoaded())},Bluetrix.prototype.setModified=function(){},Bluetrix.prototype.registerContainer=function(a){this.containers[a.getId()]=a},Bluetrix.prototype.getContainer=function(a){return this.containers[a]},Bluetrix.prototype.getContainers=function(){return this.containers},Bluetrix.prototype.registerModule=function(a,b){a&&(this.modules_container[a.getId()]={module:a,container:b},this.onStartAllModulesRendered||(this.modulesLengthOnStart--,this.modulesToRender&&this.modulesToRender.splice(this.modulesToRender.indexOf(a.getId()),1),0===this.modulesLengthOnStart&&bluetrix.allModulesHaveBeenLoaded()))},Bluetrix.prototype.allModulesHaveBeenLoaded=function(){setTimeout(function(){bluetrix.onStartAllModulesRendered=!0,bluetrix.onAllModulesLoadedOnStart()},10)},Bluetrix.prototype.getContainerByModuleId=function(a){if(this.modules_container[a])return this.modules_container[a].container},Bluetrix.prototype.setPage=function(a){this.id=a,this.mode="page",this.loadUrl=this.options.loadUrl},Bluetrix.prototype.getPageId=function(){return this.id},Bluetrix.prototype.getContainerObject=function(a){return new Container(a)},Bluetrix.prototype.getModulesContainers=function(){return this.modules_container},Bluetrix.prototype.getLang=function(){return this.options.lang},Bluetrix.prototype.getLangs=function(){return this.options.langs},Bluetrix.prototype.isMultiLangs=function(){return Object.keys(this.getLangs()).length>1},Bluetrix.prototype.getDefLang=function(){return this.options.def_lang},Bluetrix.prototype.getDefBreakpointId=function(){return this.options.styleEditorSteps[0].id},Bluetrix.prototype.getDisCache=function(){return!!this.options.disCache&&this.options.disCache},Bluetrix.prototype.hasScrollIndicator=function(){return void 0!==typeof this.options.scrollIndicator&&1==- -this.options.scrollIndicator},Bluetrix.prototype.getScrollIndicatorColor=function(){return this.options.scrollIndicatorColor?this.options.scrollIndicatorColor:"rgb(52, 160, 190)"},Bluetrix.prototype.bindScrollIndicator=function(){var a=$("body");0===a.find(".scroll-indicator").length&&a.append('<div class="scroll-indicator"><div class="progress-container"><div class="progress-bar" style="background-color:'+this.getScrollIndicatorColor()+'" id="bluetrix-page-progress-bar"></div></div></div>'),window.onscroll=function(){var a=document.body.scrollTop||document.documentElement.scrollTop,b=document.documentElement.scrollHeight-document.documentElement.clientHeight;document.getElementsByClassName("scroll-indicator-end-container").length>0&&(b-=$(document).height()-document.getElementsByClassName("scroll-indicator-end-container")[0].offsetTop);var c=a/b*100;document.getElementById("bluetrix-page-progress-bar").style.width=c+"%"}},Bluetrix.prototype.onAllModulesLoadedOnStart=function(){this.ov_onPreAllModulesLoadedOnStart(),$.each(this.modules_container,function(a,b){b&&b.module.onSiteFullyLoad()}),this.ov_onAfterAllModulesLoadedOnStart(),this.cacheProcessing(),this.initImageLazyLoader(),this.hasScrollIndicator()&&this.bindScrollIndicator(),this.bindCoreLightbox(),this.bindGlobalEvents(),this.isAdmin()||this.initGdprManager()},Bluetrix.prototype.bindCoreLightbox=function(){if(!this.isAdmin()){new CoreLightbox(this.modules_container)}},Bluetrix.prototype.initImageLazyLoader=function(){this.isAdmin()||(this.imageLazyLoader=new ImageLazyLoader(this.container))},Bluetrix.prototype.getImageLazyLoader=function(){return this.imageLazyLoader},Bluetrix.prototype.addImagesToLazyLoader=function(a){var b=this.getImageLazyLoader();b&&a.map(function(a,c){b.appendImageToObserver(c)})},Bluetrix.prototype.ov_onPreAllModulesLoadedOnStart=function(){},Bluetrix.prototype.ov_onAfterAllModulesLoadedOnStart=function(){},Bluetrix.prototype.cacheGenerating=function(a){a.find(".bootstrap-select").each(function(a,b){var c=$(b).find("select");c.removeAttr("tabindex"),$(b).replaceWith(c)}),a.find(".gm-style").remove(),a.find(".datepicker").removeClass("hasDatepicker").removeAttr("id"),a.find("[data-img-responsive]").removeAttr("data-img-responsive"),a.find("[data-img-preview]").removeAttr("data-img-preview"),a.find(".cookies-module").each(function(a,b){$(b).removeAttr("style")}),a.find(".module-wrapper.sticky-mode.sticky-position").each(function(a,b){$(b).find(".sticky-button-container").remove(),$(b).removeClass("sticky-mode sticky-position")}),a.find(".module-wrapper.sticky-placeholder").each(function(a,b){$(b).remove()}),a.find(".htmlcontainer-module .html-container").each(function(a,b){$(b).empty()}),a.find(".privacy-preference-container").remove(),a.find(".notice-container").remove(),a.find(".multiimagefullcontainer-module").each(function(a,b){b.style.removeProperty("background-image")}),a.find(".videofullcontainer-module").each(function(a,b){$(b).find("[data-video-src]").attr("src","")}),bluetrix.cacheGeneratingExtras(a)},Bluetrix.prototype.cacheGeneratingExtras=function(a){},Bluetrix.prototype.shareFb=function(){this.launchSharePopup("https://www.facebook.com/sharer.php?u="+this.getUrl())},Bluetrix.prototype.shareGp=function(){this.launchSharePopup("https://plus.google.com/share?url="+this.getUrl())},Bluetrix.prototype.shareTwit=function(){this.launchSharePopup("https://twitter.com/intent/tweet?text=Check+out+"+this.getUrl())},Bluetrix.prototype.shareLinkedIn=function(){this.launchSharePopup("https://www.linkedin.com/cws/share?url="+this.getUrl())},Bluetrix.prototype.shareInstagram=function(){this.launchSharePopup("https://www.instagram.com")},Bluetrix.prototype.shareXing=function(){this.launchSharePopup("https://www.xing.com/spi/shares/new?url="+this.getUrl())},Bluetrix.prototype.shareWhatsapp=function(){this.launchSharePopup("https://wa.me/?text="+this.getUrl())},Bluetrix.prototype.getUrl=function(){return location.href},Bluetrix.prototype.launchSharePopup=function(a){var b={winWidth:520,winHeight:350};b.winTop=screen.height/2-b.winHeight/2,b.winLeft=screen.width/2-b.winWidth/2,window.open(a,"sharer","top="+b.winTop+",left="+b.winLeft+",toolbar=0,status=0,width="+b.winWidth+",height="+b.winHeight)},Bluetrix.prototype.isMobile=function(){return Utils.getInst().isMobile()},Bluetrix.prototype.setFlagHasMenuInside=function(){},Bluetrix.prototype.removeFlagHasMenuInside=function(){},Bluetrix.prototype.getStepDataById=function(a){var b={};return $.each(options.styleEditorSteps,function(c,d){d.id===a&&(b=d)}),b},Bluetrix.prototype.bindResponsiveImages=function(){var a=this;this.updateResponsiveImages(this.getCurrentViewportSize()),$(window).resize(function(){var b=a.getCurrentViewportSize();b!==a.currentViewportSize&&a.updateResponsiveImages(b)})},Bluetrix.prototype.updateResponsiveImages=function(a){var b=this;window.hasOwnProperty("bluetrixResponsiveImages")?$.each(bluetrixResponsiveImages,function(c,d){b.element.find('[data-moduleid="'+d+'"]').trigger("changeResponsiveImage",a)}):this.element.find(".module-wrapper").trigger("changeResponsiveImage",a),this.currentViewportSize=a},Bluetrix.prototype.getCurrentViewportSize=function(){for(var a=options.styleEditorSteps[0].id,b=options.styleEditorSteps.length-1;b>=0;b--){var c=options.styleEditorSteps[b];if(null!==c.max&&$(window).width()+Utils.getInst().getScrollbarWidth()<=c.max){a=c.id;break}}return a},Bluetrix.prototype.getResponsiveImagesList=function(a){var b=[];return $.each(a.find(".img-edit"),function(a,c){var d=$(c).closest("[data-moduleid]").data("moduleid"),e=$(c).data("par")+"-responsive";void 0!==$(c).data(e)&&b.push(d)}),b},Bluetrix.prototype.isCached=function(){return options.hasOwnProperty("alreadyCached")&&!0===options.alreadyCached},Bluetrix.prototype.isInCacheProccess=function(){return navigator.userAgent.indexOf("PhantomJS")>-1},Bluetrix.prototype.isPageloadDisabled=function(){return options.disablePageload},Bluetrix.prototype.isPageMode=function(){return!0},Bluetrix.prototype.isInPageSpeedChecking=function(){return navigator.userAgent.indexOf("Chrome-Lighthouse")>-1},Bluetrix.prototype.hideScroll=function(){$("body, html").addClass("stop-scrolling")},Bluetrix.prototype.showScroll=function(){$("body, html").removeClass("stop-scrolling")};var Module=function(){this.init()};Module.prototype={constructor:Module,init:function(){},precompile:function(a){},compile:function(a,b){this.pageModule=!1,this.precompile(a);var c=this;this.loadResources(this.getRequiredScripts()).then(function(){if(bluetrix.isCached()&&!0!==b)c.cached=!0,c.element=$("body").find('[data-moduleid="'+c.data.id+'"]'),c.initDomCached();else{var a=c.tpl.html(),d=Handlebars.compile(a);if(c.data){var e=c.prepareDataToCompilation(c.data);c.tpl=d(e)}c.initDom(),c.preloadAllTypesOfImages()}setTimeout(function(){c.bindEvents(),c.container=bluetrix.getContainerObject(c),c.container.fill(c.data),bluetrix.registerContainer(c.container),c.onAddedToStage()},0)})},isRenderingEnabled:function(){var a=this.getSettings();return"object"==typeof a&&null!==a&&a.hasOwnProperty("page")&&(a=a.page),!("object"==typeof a&&null!==a&&a.hasOwnProperty("disableRendering")&&1==- -a.disableRendering)},shouldBeRendered:function(){return this.isRenderingEnabled()&&this.isForCurrentLanguageEnabled()&&(this.isRenderingIfEmptyEnabled()||!this.isRenderingIfEmptyEnabled()&&this.isContentNotEmpty())},isRenderingIfEmptyEnabled:function(){var a=this.getSettings();return!("object"==typeof a&&null!==a&&a.hasOwnProperty("disableRenderingIfEmpty")&&1==- -a.disableRenderingIfEmpty)},isContentNotEmpty:function(){var a=!0,b=[],c=this.getData();return c.hasOwnProperty("modules")&&"object"==typeof c.modules&&null!==c.modules&&Array.isArray(c.modules)&&c.modules.length>0&&($.each(c.modules,function(a,c){if(c.module){var d=Utils.getInst().getModuleObject(c.module);d.setData(c),b.push(d.isContentNotEmpty())}}),a=!b.every(function(a){return!1===a})),a},isForCurrentLanguageEnabled:function(){var a=this.getSettings();return"object"==typeof a&&null!==a&&a.hasOwnProperty("page")&&(a=a.page),!("object"==typeof a&&null!==a&&a.hasOwnProperty("disableLanguages")&&"object"==typeof a.disableLanguages&&null!==a.disableLanguages&&a.disableLanguages.hasOwnProperty("values")&&Array.isArray(a.disableLanguages.values)&&a.disableLanguages.values.length>0&&a.disableLanguages.values.indexOf(bluetrix.getLang())>-1)},initDom:function(){this.element=$(this.tpl)},initDomCached:function(){},bindEvents:function(){this.scrollToAnchor()},onAddedToStage:function(){this.updateExtraClassInModule()},updateExtraClassInModule:function(){this.isShowInLightbox()&&this.element.addClass("show-images-in-lightbox"),this.hasExtraClassInModule()&&this.element.addClass(this.getExtraClassInModule())},isShowInLightbox:function(){var a=this.getSettings();return"object"==typeof a&&null!==a&&a.hasOwnProperty("showInLightbox")&&1==- -a.showInLightbox},hasExtraClassInModule:function(){var a=this.getSettings();return"object"==typeof a&&null!==a&&a.hasOwnProperty("module_extra_class")&&"string"==typeof a.module_extra_class&&""!==a.module_extra_class},getExtraClassInModule:function(){return this.getSettings().module_extra_class},onSiteFullyLoad:function(){},getContainer:function(){return this.container},hasContainer:function(){var a=this.getContainer();return"object"==typeof a&&null!==a},setData:function(a){this.data=a,this.tpl=$("#module-"+a.module),this.moduleName=a.module},getData:function(){return this.data},getDebugData:function(){return{id:this.getId(),data:this.getData(),element:this.getElement()}},getId:function(){return this.getData().id},getElement:function(){return this.element},getModules:function(){return this.getData().modules},getModulesLength:function(){return this.getModules().length},getIsPageModule:function(){return this.pageModule},setIsPageModule:function(){this.pageModule=!0},getSettings:function(){return this.getData().settings},getStyles:function(){var a=this.getData();return a.hasOwnProperty("styles")&&"object"==typeof a.styles&&null!==a.styles?a.styles:null},hasStyles:function(){return null!==this.getStyles()},getModuleName:function(){return this.moduleName},triggerEvtCreatedOnStart:function(){var a=this,b="created"+this.moduleName;$.each(bluetrix.getModulesContainers(),function(c,d){d&&d.module.getElement().trigger(b,a)})},getDataContent:function(a,b){if(a&&this.getData().content){if(b&&this.getData().content[a]){var c=this.getData().content[a][bluetrix.getLang()];return c||(c=this.getData().content[a][bluetrix.getDefLang()]),c}return this.getData().content[a]}return this.getData().content},updateModulesArray:function(){},makeCustomEditable:function(){},repositionInAbsContainer:function(a){this.scaleFactor=a,this.recalculateCssProp("width",a),this.recalculateCssProp("top",a),this.recalculateCssProp("left",a),this.recalculateCssPropAdditional(a)},repositionInRevolutionSliderContainer:function(a){this.scaleFactor=a,this.recalculateCssProp("width",a)},recalculateCssProp:function(a,b){var c=this.getDataContent(a,!0);c&&(c*=b,this.getElement().css(a,Math.round(c)+"px"))},recalculateCssPropAdditional:function(a){},scrollToAnchor:function(){this.element.on("click",'[data-cls="anchor"]',function(a){a.stopPropagation(),a.preventDefault();var b=$(this).attr("href");if(0===b.indexOf("/")){var c=b.match(/^\/[^#]*/);if(c&&c[0]!==location.pathname)return void(location.href=b)}if(0===b.indexOf("http://")||0===b.indexOf("https://"))return void(location.href=b);var d=b.replace(/^\/[^#]*/,"").replace("#","");Utils.getInst().scrollToTargetElement(d),location.hash="#"+d,$(this).trigger("anchorClicked",$(this))})},prepareDataToCompilation:function(a){return a},bindChangeResponsiveImage:function(){return},postChangeResponsiveImage:function(){},loadResources:function(a){var b=$.Deferred();if(a.length>0){for(var c=0,d=a.length;c<d;c++)Utils.getInst().loadScript(a[c]);b.resolve()}else b.resolve();return b.promise()},getRequiredScripts:function(){return[]},getRequiredCookies:function(){return[]},isCookiesAccepted:function(){if("detailed"!==options.gdpr.mode){return 1==- -bluetrixStorage.cookies.getItem("cookieNoticeAccepted")}var a=bluetrixStorage.cookies.getItem("privacyPreferenceAccepted");if("string"==typeof a&&""!==a){var b=JSON.parse(a);if(Array.isArray(b)){var c=!0;return this.getRequiredCookies().map(function(a){-1===b.indexOf(a)&&(c=!1)}),c}}return!1}},Module.prototype.markCookiesBlocked=function(){this.isCookiesBlockedContainerDefined()&&(this.renderCookiesBlockedContainerInner(),this.bindCookiesBlockedContainerEvents())},Module.prototype.temporaryCookiesUnblock=function(){this.getCookiesBlockedContainer().empty(),this.onTemporaryCookiesUnblock()},Module.prototype.onTemporaryCookiesUnblock=function(){},Module.prototype.renderCookiesBlockedContainerInner=function(){this.getMapContainer().html($("<div>").addClass("cookies-blocked-container").append($("<button>").attr({type:"button",class:"btn btn-unblock","data-cookies-blocked-container":""}).html($("<span>").addClass("fa fa-play"))))},Module.prototype.bindCookiesBlockedContainerEvents=function(){var a=this;this.getCookiesBlockedContainer().on("click","[data-cookies-blocked-container]",function(){a.temporaryCookiesUnblock()})},Module.prototype.isCookiesBlockedContainerDefined=function(){return"object"==typeof this.getCookiesBlockedContainer()&&null!==this.getCookiesBlockedContainer()},Module.prototype.getCookiesBlockedContainer=function(){},Module.prototype.isParametrized=function(){var a=this.getSettings();return"object"==typeof a&&null!==a&&a.hasOwnProperty("parameter")&&"object"==typeof a.parameter&&null!==a.parameter&&a.parameter.hasOwnProperty("choices")&&a.parameter.hasOwnProperty("values")&&Array.isArray(a.parameter.choices)&&a.parameter.choices.length>0&&Array.isArray(a.parameter.values)&&a.parameter.values.length>0},Module.prototype.stopCacheProcessing=function(){bluetrix.addCacheProcessingBlocker()},Module.prototype.startCacheProcessing=function(){bluetrix.removeCacheProcessingBlocker()},Module.prototype.getParentContainer=function(){return bluetrix.getContainerByModuleId(this.getId())},Module.prototype.checkIfParentContainerIsMain=function(){var a=this.getParentContainer();return!!a&&a.isMainContainer()},Module.prototype.setFlagHasMenuInside=function(){this.element.addClass("with-menu-inside")},Module.prototype.removeFlagHasMenuInside=function(){this.element.removeClass("with-menu-inside")},Module.prototype.onModuleAddedToContainer=function(){},Module.prototype.preloadImageByType=function(a){var b=this,c=a.charAt(0).toUpperCase()+a.slice(1);$.each(this.element.find(".img-edit"),function(d,e){var f=$(e).data("par"),g=f+"-"+a;if(b.getDataContent().hasOwnProperty(g)){var h=b.getDataContent()[g];h.hasOwnProperty(bluetrix.getLang())&&"function"==typeof b["setImage"+c]&&b["setImage"+c]($(e),h[bluetrix.getLang()],f)}})},Module.prototype.preloadAllTypesOfImages=function(){this.preloadImageByType("responsive"),this.preloadImageByType("preview")},Module.prototype.setImageResponsive=function(a,b,c){var d=c||"img";a.attr("data-"+d+"-responsive",JSON.stringify(b))},Module.prototype.setImagePreview=function(a,b,c){var d=c||"img";a.attr("data-"+d+"-preview",JSON.stringify(b))},Module.prototype.markMobile=function(){this.getElement().addClass("mobile-device-handle")},inheritPrototype(formElementModule,Module),formElementModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.getElement().on("showValidationError",function(b){b.preventDefault(),a.showValidationError()}),this.getElement().on("hideValidationError",function(b){b.preventDefault(),a.hideValidationError()})},formElementModule.prototype.showValidationError=function(){},formElementModule.prototype.hideValidationError=function(){},formElementModule.prototype.precompile=function(a){var b=a.element.closest("form"),c=parseInt(b.attr("data-form-displayLabel")),d=this.getSettings();d&&d.displayLabel&&2!=this.getSettings().displayLabel&&(c=this.getSettings().displayLabel);var e=parseInt(b.attr("data-form-displayPlaceholder"));d&&d.displayPlaceholder&&2!=this.getSettings().displayPlaceholder&&(e=this.getSettings().displayPlaceholder);var f=b.attr("data-form-displayType");d&&d.displayType&&""!=this.getSettings().displayType&&(f=this.getSettings().displayType);var g=b.attr("data-form-labelSize");d&&d.labelSize&&""!=this.getSettings().labelSize&&(g=this.getSettings().labelSize),g=parseInt(g),this.data._formDispLabel=c,this.data._formDispPlaceholder=e,this.data._formDispType=f,this.data._formLabelSize=g,this.data._formInpSize=12-g},Container.prototype.init=function(){},Container.prototype.getId=function(){return this.owner.data?this.owner.data.id:"root"},Container.prototype.isMainContainer=function(){return"root"==this.getId()},Container.prototype.fill=function(a){bluetrix.isCached()||this.element.html(""),this.data=a,this.appendModules(),this.onEndFill()},Container.prototype.onEndFill=function(){},Container.prototype.appendModules=function(){this.modules=[];var a=this;if("modules"in this.data){var b=0;$.each(this.data.modules,function(c,d){if(d.module){var e=Utils.getInst().getModuleObject(d.module);e.setData(d),e.compile(a),(!bluetrix.isCached()&&e.shouldBeRendered()||bluetrix.isAdmin())&&a.element.append(e.element),a.addModule(e,b++)}else d.id&&a.removeBuggyModule(d.id),bluetrix.modulesLengthOnStart--}),this.owner&&this.owner.element.trigger("onAddedAllModulesToContainer")}},Container.prototype.removeBuggyModule=function(a){},Container.prototype.addModule=function(a,b){0==this.modules.length?this.modules[0]=a:this.modules.splice(b,0,a),bluetrix.registerModule(a,this),this.setModified(null,this.getOwner()),this.owner&&(this.owner.element.trigger("onAddedModuleToContainer",a),a&&a.onModuleAddedToContainer(),this.owner.updateModulesArray(this.modules))},Container.prototype.getModules=function(){return this.modules},Container.prototype.setModified=function(){},Container.prototype.getContainerData=function(){return this.data},Container.prototype.getOwner=function(){return this.owner},Container.prototype.findModuleById=function(a,b){var c=void 0;return this.modules.map(function(d){if(d.getId()===a&&(c=d),d.hasContainer()&&b){var e=d.container.findModuleById(a,b);e&&(c=e)}}),c},ImageLazyLoader.prototype.init=function(){var a=this;this.container.element.find(this.responsiveImageSelector).each(function(b,c){$(c).closest(a.responsivePictureSelector).length>0||a.addImage(c)}),this.container.element.find(this.responsivePictureSelector).each(function(b,c){a.addImage(c)})},ImageLazyLoader.prototype.appendImageToObserver=function(a){this.addImage(a),this.observer.observe(a)},ImageLazyLoader.prototype.addImage=function(a){this.images.push(a)},ImageLazyLoader.prototype.bindEvents=function(){var a=this;this.observer=new IntersectionObserver(function(b){for(var c=0;c<b.length;c++)a.load(b[c])});for(var b=0;b<this.images.length;b++)this.observer.observe(this.images[b])},ImageLazyLoader.prototype.load=function(a){if(a.isIntersecting){const b=$(a.target);b.prop("isLoaded")||(b.is("picture")?this.loadPicture(b):this.loadImage(b))}},ImageLazyLoader.prototype.onLoad=function(a){a.prop("isLoaded",!0),a.trigger("lazyImageLoaded",[a])},ImageLazyLoader.prototype.loadPicture=function(a){var b=a.find("img");b.attr("src",b.attr("data-src")),a.find("source").each(function(a,b){$(b).attr("srcset",$(b).data("srcset"))}),this.onLoad(a)},ImageLazyLoader.prototype.loadImage=function(a){a.attr("src",a.attr("data-src")),this.onLoad(a)},"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b});var bluetrixStorage=function(){var a=10,b={getItem:function(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){var d=b[c].trim();if(0==d.indexOf(a))return d.substring(a.length,d.length)}return""},setItem:function(b,c,d){var e=new Date;e.setTime(e.getTime()+24*a*60*60*1e3);var f="expires="+e.toGMTString(),d="path="+(d||"/");document.cookie=b+"="+c+"; "+f+"; "+d},removeItem:function(a){document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"}},c={getItem:function(a){return localStorage.getItem(a)},setItem:function(a,b){localStorage.setItem(a,b)},removeItem:function(a){localStorage.removeItem(a)}},d={getItem:function(a){return sessionStorage.getItem(a)},setItem:function(a,b){sessionStorage.setItem(a,b)},removeItem:function(a){sessionStorage.removeItem(a)}};return function(){var a={localStorage:c,sessionStorage:d,cookies:b};return a=window.hasOwnProperty("localStorage")?$.extend(a,c):$.extend(a,b)}()}();$(document).ready(function(){$(document).on("click",'a.href[href="#"], a.href[href=""], a[href=""]',function(a){return!1})}),inheritPrototype(absolutecontainerModule,Module),absolutecontainerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.rescaleModules&&$(window).on("resize",function(b){b.target==window&&(a.onWindowResize(),a.updateContainerHeight())}),this.element.off("onAddedModuleToContainer").on("onAddedModuleToContainer",function(b,c){c.makeCustomEditable(a.getScaleFactor()),a.rescaleModules&&c[a.repositionFunctName](a.getScaleFactor())})},absolutecontainerModule.prototype.onWindowResize=function(){var a=this,b=this.getScaleFactor();$.each(this.getContainer().getModules(),function(c,d){d[a.repositionFunctName](b)})},absolutecontainerModule.prototype.updateContainerHeight=function(){this.element.find("> .bluetrix-container").css("min-height",this.element.css("min-height"))},absolutecontainerModule.prototype.getScaleFactor=function(){var a={x:1,y:1};return this.getData().content&&this.getData().content.screenwidth&&(a.x=this.getAbsContainerWidth()/this.getData().content.screenwidth,a.x>1&&(a.x=1)),a.x},absolutecontainerModule.prototype.getAbsContainerWidth=function(){return $(this.element).find("> .bluetrix-container").outerWidth()},inheritPrototype(allpublicationsModule,Module),allpublicationsModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.publications=this.getDataContent().publications?this.decoratePublications(this.getDataContent().publications.slice(0)):[],this.count_page=Math.ceil(this.getPublications().length/this.getItemsPerPage()),this.setPageCount(),this.preselectCurrentPage(),this.attachClickButton(),(bluetrix.admin||!options.hasOwnProperty("alreadyCached")||this.current_page>1)&&this.search()},allpublicationsModule.prototype.decoratePublications=function(a){var b=[],c=this;return a.map(function(a){c.isPublicationAllowed(a)&&b.push(a)}),b},allpublicationsModule.prototype.isPublicationAllowed=function(a){return this.isPublicationAllowedForCurrentLang(a)},allpublicationsModule.prototype.isPublicationAllowedForCurrentLang=function(a){var b=bluetrix.getLang();return!(a.hasOwnProperty("disableLanguages")&&Array.isArray(a.disableLanguages)&&a.disableLanguages.length>0)||-1===a.disableLanguages.indexOf(b)},allpublicationsModule.prototype.preselectCurrentPage=function(){var a=this.element.find(".btn-number.active[data-datatable-move]");a.length>0?this.current_page=a.data("datatable-move"):(sessionStorage.getItem("publicationPage")?(this.current_page=- -sessionStorage.getItem("publicationPage"),sessionStorage.removeItem("publicationPage")):this.current_page=1,0===this.element.find(".btn-number[data-datatable-move="+this.current_page+"]").length&&(this.current_page=1),this.element.find(".btn-number[data-datatable-move="+this.current_page+"]").addClass("active"))},allpublicationsModule.prototype.attachClickButton=function(){var a=this;this.element.on("click","[data-datatable-move]",function(){var b=$(this).data("datatable-move"),c=!1;switch(b){case"prev":a.current_page>1&&(a.current_page=a.current_page-1,c=!0);break;case"next":a.current_page<a.count_page&&(a.current_page=a.current_page+1,c=!0);break;default:b!=a.current_page&&(a.current_page=b,c=!0)}if(c){sessionStorage.setItem("publicationPage",a.current_page),a.element.find(".btn-number").removeClass("active");var d=a.element.find(".btn-number[data-datatable-move="+a.current_page+"]");d.addClass("active"),a.element.find(".navigation-list-number").animate({scrollLeft:-(a.element.find(".navigation-list-number").offset().left-d.offset().left-a.element.find(".navigation-list-number").scrollLeft())}),a.search()}})},allpublicationsModule.prototype.setPageCount=function(){var a=Handlebars.compile($("#results-navigation-number").html()),b=a({count_page:this.count_page+1,current_page:this.current_page});this.element.find(".navigation-list-number").html(b)},allpublicationsModule.prototype.search=function(){var a=Handlebars.compile($("#"+this.itemTemplateName).html()),b=(this.current_page-1)*this.getItemsPerPage(),c=b+this.getItemsPerPage(),d=a({results:this.getPublications().slice(b,c),settings:this.getPublicationsSettings()});this.element.find(".results").html(d)},allpublicationsModule.prototype.getPublicationsSettings=function(){return{hideThumbsOnMobile:this.isThumbsOnMobileHidden()}},allpublicationsModule.prototype.isThumbsOnMobileHidden=function(){var a=this.getSettings();return a.hasOwnProperty("hideThumbsOnMobile")&&1==- -a.hideThumbsOnMobile},allpublicationsModule.prototype.getItemsPerPage=function(){return- -this.getSettings().itemsPerPage},allpublicationsModule.prototype.getPublications=function(){return this.publications},inheritPrototype(bfcatalogsModule,Module),bfcatalogsModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.renderCatalogs()},bfcatalogsModule.prototype.renderCatalogs=function(){var a=12/this.getSettings().cols,b={size:a,catalogs:this.getDataContent().catalogs,disableIconText:this.getSettings().disableIconText},c=$("#bfcatalogs-list").html(),d=Handlebars.compile(c),e=d(b);this.element.find(".catalog-list").html(e)},inheritPrototype(bfsliderModule,Module),bfsliderModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.bfSlider=new BfSlider,this.element.on("onAddedModuleToContainer",function(b,c){if("bfslideritem"===c.moduleName)a.bfSlider.addSlide(c.getId(),c.getSettings(),c.element),bluetrix.admin&&a.bfSlider.refresh();else{var d=c.getSettings(),e={};d&&d.hasOwnProperty("extendedslider")&&(e=d.extendedslider),a.bfSlider.addSlideElement(c.element.parents("[data-moduleid]").data("moduleid"),c.getId(),e,c.element)}}),this.element.on("onRemovedModuleFromContainer",function(b,c){"bfslideritem"===c.moduleName?(a.bfSlider.removeSlide(c.getId()),a.bfSlider.setStartSlide(),a.bfSlider.build(),a.bfSlider.goToSlide(0)):a.bfSlider.removeSlideElement(c.element.parents("[data-moduleid]").data("moduleid"),c.getId())}),this.element.on("changeSlideBackground",function(b,c){a.bfSlider.buildBackground(a.bfSlider.getSlide(c.getId()))})},bfsliderModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this);var a=bluetrix.admin,b=bluetrix.admin||!options.hasOwnProperty("alreadyCached");this.bfSlider.init(this.element.find(".bfslider"),this.getSettings(),a,b)},inheritPrototype(bfslideritemModule,absolutecontainerModule),bfslideritemModule.prototype.postChangeResponsiveImage=function(){this.element.closest(".bfslider-module").trigger("changeSlideBackground",this)},bfslideritemModule.prototype.getAbsContainerWidth=function(){var a=$(this.element).find(".abs-container").outerWidth();return a>1170&&(a=1170),a},
inheritPrototype(bftotopModule,Module),bftotopModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.toTopInstance=new BfToTop(this.element)},inheritPrototype(boxpublicationsModule,Module),inheritPrototype(containerModule,Module),containerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.isSticky()&&this.bindStickyMode()},containerModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.decorateContainer()},containerModule.prototype.decorateContainer=function(){if(this.hasStyles()){var a=this.getStyles();for(var b in a)if(a.hasOwnProperty(b)){var c=a[b];if("object"==typeof c&&null!==c&&c.hasOwnProperty("container-display")){var d=c["container-display"];if("object"==typeof d&&null!==d&&Array.isArray(d)&&d.length>0){var e=d[0];"object"==typeof e&&null!==e&&e.hasOwnProperty("value")&&("flex"===e.value?this.markContainerFlex(b):this.markContainerDefault(b))}}}}},containerModule.prototype.markContainerFlex=function(a){this.getContainerHandler().addClass("display-flex-"+a)},containerModule.prototype.markContainerDefault=function(a){this.getContainerHandler().addClass("display-default-"+a)},containerModule.prototype.getContainerHandler=function(){return this.getElement().find("> .bluetrix-container")},containerModule.prototype.bindStickyMode=function(){var a=this;this.stickyActive=!1,this.stickyClone=null,this.stickyButtonContainer=null,$(window).on("scroll",function(){a.initSticky()}),$(window).on("resize",function(){a.initSticky(),a.updateSticky()}),this.markSticky(),this.initSticky(),this.updateSticky(),this.onBindStickyMode()},containerModule.prototype.onBindStickyMode=function(){},containerModule.prototype.markSticky=function(){this.element.addClass("sticky-mode")},containerModule.prototype.initSticky=function(){this.isMobileViewportSize()&&this.isStickyOnMobileAllTime()?this.isStickyActive()||this.createSticky():this.getWindowScrollTop()>=this.getElementOffset()&&!this.isStickyActive()?this.createSticky():this.getWindowScrollTop()<this.getElementOffset()&&this.isStickyActive()&&this.destroySticky()},containerModule.prototype.updateSticky=function(){this.isStickyActive()&&this.resizeSticky()},containerModule.prototype.createSticky=function(){this.stickyClone=this.element.clone(),this.stickyClone.addClass("sticky-placeholder"),this.isStickyOnMobileAllTime()&&this.stickyClone.addClass("sticky-mobile-force-placeholder"),this.stickyClone.insertAfter(this.element),this.updateStickyParameters(),this.element.addClass("sticky-position"),this.createStickyButton(),this.isShowCloseStickyButton()&&this.createCloseStickyButton(),this.stickyActive=!0},containerModule.prototype.createStickyButton=function(){var a=$("<button>").addClass("btn btn-success sticky-button");this.hasStickyCloseButtonText()?a.append($("<span>").addClass("sticky-button-text visible-on-close").text(this.getStickyButtonText()),$("<span>").addClass("sticky-button-text visible-on-open").text(this.getStickyCloseButtonText())):a.text(this.getStickyButtonText()),this.stickyButtonContainer=$("<div>").addClass("sticky-button-container").append(a),this.element.append(this.stickyButtonContainer),this.bindEventsToStickyButton()},containerModule.prototype.isShowCloseStickyButton=function(){var a=this.getSettings();return a.hasOwnProperty("showStickyCloseButton")&&1==- -a.showStickyCloseButton},containerModule.prototype.createCloseStickyButton=function(){this.stickyButtonContainer&&this.stickyButtonContainer.append($("<button>").addClass("btn btn-close sticky-close-button").append($("<span>").addClass("fa fa-close")))},containerModule.prototype.bindEventsToStickyButton=function(){var a=this;this.stickyButtonContainer.on("click",".sticky-button",function(){a.toggleSticky()}),this.isShowCloseStickyButton()&&this.stickyButtonContainer.on("click",".sticky-close-button",function(){a.hideSticky()})},containerModule.prototype.destroySticky=function(){this.element.removeAttr("style"),this.element.removeClass("sticky-position sticky-hidden sticky-visible"),this.stickyClone.remove(),this.stickyClone=null,this.destroyStickyButton(),this.stickyActive=!1},containerModule.prototype.destroyStickyButton=function(){this.stickyButtonContainer.remove(),this.stickyButtonContainer=null},containerModule.prototype.toggleSticky=function(){this.isStickyVisible()?this.hideSticky():this.showSticky()},containerModule.prototype.isStickyVisible=function(){return this.element.hasClass("sticky-visible")},containerModule.prototype.showSticky=function(){this.element.removeClass("sticky-hidden").addClass("sticky-visible"),this.onShowSticky()},containerModule.prototype.onShowSticky=function(){},containerModule.prototype.hideSticky=function(){this.element.removeClass("sticky-visible").addClass("sticky-hidden"),this.onHideSticky()},containerModule.prototype.onHideSticky=function(){},containerModule.prototype.updateStickyParameters=function(){var a=this.getParametersToStickyElement();this.element.css({left:a.left,width:a.width})},containerModule.prototype.getParametersToStickyElement=function(){return{left:this.isStickyActive()?this.stickyClone.offset().left:this.element.offset().left,width:this.isStickyActive()?this.stickyClone.outerWidth():this.element.outerWidth()}},containerModule.prototype.resizeSticky=function(){this.updateStickyParameters()},containerModule.prototype.isStickyActive=function(){return this.stickyActive},containerModule.prototype.getElementOffset=function(){return this.isStickyActive()?this.stickyClone.offset().top+this.stickyClone.height():this.element.offset().top+this.element.height()},containerModule.prototype.getWindowScrollTop=function(){return $(window).scrollTop()},containerModule.prototype.isSticky=function(){var a=this.getSettings();return a.hasOwnProperty("isSticky")&&1==- -a.isSticky},containerModule.prototype.getStickyButtonText=function(){var a=this.getSettings();return a.hasOwnProperty("stickyButtonText")?a.stickyButtonText:""},containerModule.prototype.getStickyCloseButtonText=function(){var a=this.getSettings();return a.hasOwnProperty("stickyCloseButtonText")?a.stickyCloseButtonText:void 0},containerModule.prototype.hasStickyCloseButtonText=function(){var a=this.getStickyCloseButtonText();return"string"==typeof a&&""!==a},containerModule.prototype.isStickyOnMobileAllTime=function(){var a=this.getSettings();return a.hasOwnProperty("isStickyOnMobileAllTime")&&1==- -a.isStickyOnMobileAllTime},containerModule.prototype.isMobileViewportSize=function(){return $(window).width()<767},inheritPrototype(cookiesModule,Module),cookiesModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.element.on("click",".btn.btn-cookies",function(){a.setCookiesAccepted(),a.toggleCookiesInformation()})},cookiesModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.isCookiesAccepted()||this.toggleCookiesInformation()},cookiesModule.prototype.isCookiesAccepted=function(){return 1==- -bluetrixStorage.getItem(this.cookiesName)},cookiesModule.prototype.setCookiesAccepted=function(){bluetrixStorage.setItem(this.cookiesName,1)},cookiesModule.prototype.toggleCookiesInformation=function(){this.element.slideToggle()},cookiesModule.prototype.isSizeDisable=function(){return!0},inheritPrototype(expandedtextModule,Module),expandedtextModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;bluetrix.isAdmin()||this.element.on("click",".btn-toggle",function(){a.toggleContainer()})},expandedtextModule.prototype.toggleContainer=function(){this.isCollapsedCustomContainer()?this.expandCustomContainer():this.collapseCustomContainer(),this.onToggleContainer()},expandedtextModule.prototype.onToggleContainer=function(){this.updateButtonText()},expandedtextModule.prototype.updateButtonText=function(){var a=this.element.find("> .head-container .btn-toggle"),b=this.isCollapsedCustomContainer()?a.data("collapse"):a.data("expand");a.text(b)},expandedtextModule.prototype.expandCustomContainer=function(){var a=this;this.getCustomContainer().slideDown(function(){a.getCustomContainer().removeClass("collapsed")})},expandedtextModule.prototype.collapseCustomContainer=function(){var a=this;this.getCustomContainer().slideUp(function(){a.getCustomContainer().addClass("collapsed")})},expandedtextModule.prototype.isCollapsedCustomContainer=function(){return this.getCustomContainer().hasClass("collapsed")},expandedtextModule.prototype.getCustomContainer=function(){return this.element.find("> .custom-container")},inheritPrototype(footercontainerModule,Module),footercontainerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;$(window).resize(function(){a.setPosition()})},footercontainerModule.prototype.onSiteFullyLoad=function(){Module.prototype.onSiteFullyLoad.call(this),this.setPosition()},footercontainerModule.prototype.setPosition=function(){$(window).height()>$("[data-moduleid='root']").height()?this.element.addClass("swimming-footer"):this.element.removeClass("swimming-footer")},footercontainerModule.prototype.setContentHeight=function(a){$("[data-moduleid='root']").css({"min-height":a})},inheritPrototype(footersearchModule,Module),footersearchModule.prototype.bindEvents=function(){if(Module.prototype.bindEvents.call(this),!bluetrix.admin){var a=this;this.element.find(".search-btn").on("click",function(){a.element.find("form").submit()}),this.element.on("submit","form",function(){a.handleSearch()})}},footersearchModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.setSearchKeyword()},footersearchModule.prototype.setSearchKeyword=function(){this.getSearchHandler().val(Utils.getInst().getQueryParam("keyword"))},footersearchModule.prototype.getSearchHandler=function(){return this.element.find('input[name="keyword"]')},footersearchModule.prototype.getSearchValue=function(){return this.getSearchHandler().val()},footersearchModule.prototype.handleSearch=function(){},inheritPrototype(formcheckboxModule,formElementModule),formcheckboxModule.prototype.showValidationError=function(){this.getValidationErrorHandler().html(this.getValidationErrorMessage())},formcheckboxModule.prototype.hideValidationError=function(){this.getValidationErrorHandler().remove()},formcheckboxModule.prototype.getValidationErrorHandler=function(){var a=this.getElement().find(".validation-error");return 0===a.length&&(a=$("<div>").addClass("validation-error"),this.getValidationErrorLocationHandler().append(a)),a},formcheckboxModule.prototype.getValidationErrorLocationHandler=function(){return this.getElement().find(".checkbox")},formcheckboxModule.prototype.getValidationErrorMessage=function(){var a=null,b=this.getSettings();return b.hasOwnProperty("validationErrorMessage")&&"object"==typeof b.validationErrorMessage&&null!==b.validationErrorMessage&&(a=b.validationErrorMessage,a.hasOwnProperty(bluetrix.getLang())&&(a=a[bluetrix.getLang()])),a},formcheckboxModule.prototype.hasValidationErrorMessage=function(){var a=this.getValidationErrorMessage();return"string"==typeof a&&""!==a},inheritPrototype(formcheckboxgroupModule,formElementModule),inheritPrototype(formcontainerModule,Module),formcontainerModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.tokenLoader=null,this.token=null},formcontainerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;a.formValidator=new FormValidator;var b=a.formValidator.prepareData(a.getData().modules,[]);a.formValidator.init(this.element,b,"error"),a.element.on("submit","form",function(b){b.preventDefault(),a.formValidator.validate(),a.formValidator.areFieldsValid()&&a.sendForm($(this))}),this.bindTokenLogic(),this.bindLocalEvents()},formcontainerModule.prototype.bindLocalEvents=function(){},formcontainerModule.prototype.sendForm=function(a){var b=this,c=new XMLHttpRequest,d=new FormData(a[0]);d.append("id",a.attr("data-form-id")),d.append("testId",a.attr("data-test-id")),c.addEventListener("load",function(a){b.onFormComplete(b.prepareReceiveData(c))},!1),c.open("POST",a.attr("action"),!0),c.setRequestHeader("BF-Token",this.getToken()),c.send(d)},formcontainerModule.prototype.prepareReceiveData=function(a){return $.parseJSON(a.response)},formcontainerModule.prototype.onFormComplete=function(a){a&&(this.element.addClass("form-"+a.status),"success"===a.status?(this.element.find(".message-txt").html(this.getData().settings.success[bluetrix.getLang()]),this.turnOnScriptInSandBox(),this.trackVirtualPageview(),this.cleanToken(),this.onFormSubmitted()):this.element.find(".message-txt").html(this.getData().settings.error[bluetrix.getLang()]))},formcontainerModule.prototype.turnOnScriptInSandBox=function(){var a=this.getSettings().conversionCode;this.element.find(".conversion-code").html(a)},formcontainerModule.prototype.trackVirtualPageview=function(){window.hasOwnProperty("ga")&&ga("send","event","form","click",this.getVirtualPageviewSlug())},formcontainerModule.prototype.getVirtualPageviewSlug=function(){var a=this.getSettings();return a.hasOwnProperty("categoryId")?a.categoryId:this.getId()},formcontainerModule.prototype.onFormSubmitted=function(){},formcontainerModule.prototype.getContactFormHandler=function(){return this.element.find(".contact-form")},formcontainerModule.prototype.bindTokenLogic=function(){var a=this;this.getContactFormHandler().on("focus",":input",function(){a.isTokenLoaded()||a.isTokenLoading()||a.loadToken()})},formcontainerModule.prototype.setToken=function(a){this.token=a},formcontainerModule.prototype.getToken=function(){return this.token},formcontainerModule.prototype.getTokenUrl=function(){return this.getContactFormHandler().data("form-token")},formcontainerModule.prototype.isTokenLoaded=function(){return null!==this.token},formcontainerModule.prototype.isTokenLoading=function(){return null!==this.tokenLoader},formcontainerModule.prototype.cleanToken=function(){this.token=null,this.tokenLoader=null},formcontainerModule.prototype.loadToken=function(){var a=this;this.tokenLoader=$.ajax({url:this.getTokenUrl(),method:"GET",dataType:"json",data:{id:this.getId()},success:function(b){"object"==typeof b&&null!==b&&b.hasOwnProperty("token")?a.setToken(b.token):a.loadToken()}})},inheritPrototype(formdropzoneModule,formElementModule),formdropzoneModule.prototype.precompile=function(a){formElementModule.prototype.precompile.call(this,a),this.decorateAcceptTypes()},formdropzoneModule.prototype.decorateAcceptTypes=function(){var a=[],b=this,c=this.getSettings();if(c.hasOwnProperty("acceptTypes")&&"object"==typeof c.acceptTypes&&null!==c.acceptTypes&&c.acceptTypes.hasOwnProperty("values")&&Array.isArray(c.acceptTypes.values)&&c.acceptTypes.values.length>0){c.acceptTypes.values.map(function(c){b.decorateAcceptTypeChoice(c).map(function(b){a.push(b)})})}c.acceptTypesDecorated=a},formdropzoneModule.prototype.decorateAcceptTypeChoice=function(a){switch(a){case"images":return[".png",".jpg",".jpeg"];case"pdfs":return[".pdf"];case"documents":return[".doc",".docx"];case"worksheets":return[".xls",".xlsx"];case"archives":return[".zip"];default:return[]}},formdropzoneModule.prototype.bindEvents=function(){formElementModule.prototype.bindEvents.call(this);var a=this;a.element.on("change","input[type=file]",function(){var b=$(this).val();a.element.find("input[type=text]").val(b)})},inheritPrototype(forminputModule,formElementModule),inheritPrototype(formradioModule,formElementModule),inheritPrototype(formradiogroupModule,formElementModule),inheritPrototype(formselectModule,formElementModule),inheritPrototype(formsubmitModule,formElementModule),inheritPrototype(formtextareaModule,formElementModule),inheritPrototype(fullcontainerModule,containerModule),fullcontainerModule.prototype.bindEvents=function(){containerModule.prototype.bindEvents.call(this),this.bindModuleFakeUrl()},fullcontainerModule.prototype.bindModuleFakeUrl=function(){this.element.on("click","> .fake-url",function(){""!==$(this).attr("href")&&("_blank"===$(this).attr("target")?open($(this).attr("href")):location.href=$(this).attr("href"))})},inheritPrototype(htmlcontainerModule,Module),htmlcontainerModule.prototype.initDomCached=function(){this.hasCustomHtml()&&!bluetrix.isInPageSpeedChecking()&&this.element.find(".html-container").html(this.getCustomHtml())},htmlcontainerModule.prototype.hasCustomHtml=function(){var a=this.getCustomHtml();return"string"==typeof a&&""!==a},htmlcontainerModule.prototype.getCustomHtml=function(){var a=this.getSettings();return a.hasOwnProperty("customHtml")?a.customHtml:""},inheritPrototype(languageswitcherModule,Module),inheritPrototype(latestpublicationsModule,Module),latestpublicationsModule.prototype.getPublications=function(){var a={};if(this.hasPublications()){var b=this.getDataContent().publications;a.first=b[0],a.other=b,a.other.splice(0,1)}return a},latestpublicationsModule.prototype.hasPublications=function(){var a=this.getDataContent();return a.hasOwnProperty("publications")&&"object"==typeof a.publications&&null!==a.publications&&Array.isArray(a.publications)&&a.publications.length>0},latestpublicationsModule.prototype.prepareDataToCompilation=function(a){return $.extend({},a,{publications:this.getPublications()})},inheritPrototype(mapbuttonModule,Module),mapbuttonModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindLocalEvents()},mapbuttonModule.prototype.bindLocalEvents=function(){var a=this;this.element.find("[bluetrix-mapbutton]").on("click",function(b){$(b.target).addClass("hidden"),a.element.find("[mapbutton-map-container]").removeClass("hidden").hide().fadeIn(400)})},inheritPrototype(menucontainerModule,Module),inheritPrototype(menuextendModule,Module),menuextendModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.isDropdownAnimated()&&this.attachAnimatedMenu(),this.manageNavbarState(),this.bindLocalEvents()},menuextendModule.prototype.bindLocalEvents=function(){},menuextendModule.prototype.manageNavbarState=function(){var a=this;this.element.on("show.bs.collapse",".navbar-collapse",function(){a.onNavbarStartOpen()}),this.element.on("shown.bs.collapse",".navbar-collapse",function(){a.onNavbarOpen()}),this.element.on("hide.bs.collapse",".navbar-collapse",function(){a.onNavbarStartClose()}),this.element.on("hidden.bs.collapse",".navbar-collapse",function(){a.onNavbarClose()})},menuextendModule.prototype.onNavbarStartOpen=function(){},menuextendModule.prototype.onNavbarOpen=function(){},menuextendModule.prototype.onNavbarStartClose=function(){},menuextendModule.prototype.onNavbarClose=function(){},menuextendModule.prototype.attachAnimatedMenu=function(){var a=this;this.element.on("mouseenter",".menuitem-module",function(){!a.isSubmenuEmpty($(this))&&a.isDesktop()&&$(this).find("> .dropdown-menu").slideDown(300)}),this.element.on("mouseleave",".menuitem-module",function(){!a.isSubmenuEmpty($(this))&&a.isDesktop()&&$(this).find("> .dropdown-menu").slideUp(100)})},menuextendModule.prototype.isSubmenuEmpty=function(a){return 0===a.find("> .dropdown-menu").children().length},menuextendModule.prototype.isDesktop=function(){return $(window).width()>992},menuextendModule.prototype.onModuleAddedToContainer=function(){this.getParentContainer().getOwner().setFlagHasMenuInside()},menuextendModule.prototype.isDropdownAnimated=function(){var a=this.getSettings();return"object"==typeof a&&a.hasOwnProperty("dropdownAnimated")&&1==- -a.dropdownAnimated},inheritPrototype(menuitemModule,Module),menuitemModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.setIsPageModule(),this.setActivePage(),this.blockNotLinkable(),this.attachClickToggle()},menuitemModule.prototype.setActivePage=function(){var a=this;this.element.data("menuid")==bluetrix.id&&(this.element.addClass("active"),setTimeout(function(){a.element.parents("[data-menuid]").addClass("active")},100))},menuitemModule.prototype.blockNotLinkable=function(){var a=this;this.element.on("click","> .href",function(b){a.hasEventOverrideByCustomInstance()||$(this).hasClass("not-linkable")&&(b.preventDefault(),b.stopPropagation())})},menuitemModule.prototype.attachClickToggle=function(){var a=this;this.element.on("click","> .href > .btn-toggle",function(b){if(!a.hasEventOverrideByCustomInstance()){b.preventDefault();var c=$(this).closest(".dropdown"),d=c.find("> .dropdown-menu");$(c).hasClass("open")?c.removeClass("open"):c.addClass("open"),d.slideToggle(),b.stopPropagation()}})},menuitemModule.prototype.hasEventOverrideByCustomInstance=function(){return this.getElement().hasClass("local-evt")},inheritPrototype(menusimpleModule,Module),inheritPrototype(multiimagefullcontainerModule,fullcontainerModule),multiimagefullcontainerModule.prototype.onAddedToStage=function(){fullcontainerModule.prototype.onAddedToStage.call(this),this.generatedImages={XS:this.getBgImageForViewport("XS"),SM:this.getBgImageForViewport("SM"),MD:this.getBgImageForViewport("MD"),LG:this.getBgImageForViewport("LG"),XLG:this.getBgImageForViewport("XLG"),XXLG:this.getBgImageForViewport("XXLG"),Desktop:this.getBgImageForViewport("Desktop")},this.setBgImage()},multiimagefullcontainerModule.prototype.bindEvents=function(){fullcontainerModule.prototype.bindEvents.call(this);var a=this;window.addEventListener("resize",function(b){a.setBgImage()},!0)},multiimagefullcontainerModule.prototype.setBgImage=function(){if(this.hasBgImages()){var a=void 0;if(window.matchMedia("(max-width: 479px)").matches&&(a=this.generatedImages.XS))return void this.getElement().css({"background-image":"url("+a+")"});if(window.matchMedia("(max-width: 767px)").matches&&(a=this.generatedImages.SM))return void this.getElement().css({"background-image":"url("+a+")"});if(window.matchMedia("(max-width: 991px)").matches&&(a=this.generatedImages.MD))return void this.getElement().css({"background-image":"url("+a+")"});if(window.matchMedia("(max-width: 1199px)").matches&&(a=this.generatedImages.LG))return void this.getElement().css({"background-image":"url("+a+")"});if(window.matchMedia("(max-width: 1399px)").matches&&(a=this.generatedImages.XLG))return void this.getElement().css({"background-image":"url("+a+")"});if(window.matchMedia("(max-width: 1599px)").matches&&(a=this.generatedImages.XXLG))return void this.getElement().css({"background-image":"url("+a+")"});if(a=this.generatedImages.Desktop)return void this.getElement().css({"background-image":"url("+a+")"})}},multiimagefullcontainerModule.prototype.hasBgImages=function(){return!(!this.getSettings().viewportImages||!this.getSettings().viewportImages.Desktop)},multiimagefullcontainerModule.prototype.hasBgImageForViewport=function(a){if(this.hasBgImages()&&this.getBgImages()[a]){var b=!1,c=this.getBgImages()[a];return Object.keys(c).forEach(function(a){c[a].length>0&&(b=!0)}),b}return!1},multiimagefullcontainerModule.prototype.getRandomImageForViewport=function(a,b){const c=Object.keys(this.getBgImages()[a]).length,d=Math.floor(Math.random()*c)+1,e="bg"+d.toString();return this.getBgImages()[a][e]&&""!==this.getBgImages()[a][e]&&this.getBgImages()[a][e].length>0?this.getBgImages()[a][e]:b<10?this.getRandomImageForViewport(a,b++):""},multiimagefullcontainerModule.prototype.getBgImageForViewport=function(a){if(this.hasBgImageForViewport(a))return this.getRandomImageForViewport(a,1)},multiimagefullcontainerModule.prototype.getBgImages=function(){return this.getSettings().viewportImages},inheritPrototype(newsModule,Module),newsModule.prototype.precompile=function(){Module.prototype.precompile.call(this);var a=this.getData();a.hasOwnProperty("content")&&a.content.hasOwnProperty("rows")&&a.content.rows.length>0?(this.getData().content.firstNews=a.content.rows[0],this.getData().content.otherNews=a.content.rows,this.getData().content.otherNews.splice(0,1)):(this.getData().content.firstNews={},this.getData().content.otherNews=[])},inheritPrototype(newsdetailModule,Module),inheritPrototype(newsitemModule,Module),inheritPrototype(newslistModule,Module),newslistModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.count_page=Math.ceil(this.getData().content.rows.length/this.getSettings().resultsCount),this.setPageCount(),this.preselectCurrentPage(),this.attachClickButton(),!bluetrix.admin&&options.hasOwnProperty("alreadyCached")||this.search()},newslistModule.prototype.preselectCurrentPage=function(){var a=this.element.find(".btn-number.active[data-datatable-move]");a.length>0?this.current_page=a.data("datatable-move"):(sessionStorage.getItem("newsPage")?(this.current_page=- -sessionStorage.getItem("newsPage"),sessionStorage.removeItem("newsPage")):this.current_page=1,0===this.element.find(".btn-number[data-datatable-move="+this.current_page+"]").length&&(this.current_page=1),this.element.find(".btn-number[data-datatable-move="+this.current_page+"]").addClass("active"))},newslistModule.prototype.attachClickButton=function(){var a=this;this.element.on("click","[data-datatable-move]",function(){var b=$(this).data("datatable-move"),c=!1;switch(b){case"prev":a.current_page>1&&(a.current_page=a.current_page-1,c=!0);break;case"next":a.current_page<a.count_page&&(a.current_page=a.current_page+1,c=!0);break;default:b!=a.current_page&&(a.current_page=b,c=!0)}if(c){sessionStorage.setItem("newsPage",a.current_page),a.element.find(".btn-number").removeClass("active");var d=a.element.find(".btn-number[data-datatable-move="+a.current_page+"]");d.addClass("active"),a.element.find(".navigation-list-number").animate({scrollLeft:-(a.element.find(".navigation-list-number").offset().left-d.offset().left-a.element.find(".navigation-list-number").scrollLeft())}),a.search()}})},newslistModule.prototype.setPageCount=function(){var a=Handlebars.compile($("#results-navigation-number").html()),b=a({count_page:this.count_page+1,current_page:this.current_page});this.element.find(".navigation-list-number").html(b)},newslistModule.prototype.search=function(){var a=Handlebars.compile($("#"+this.itemTemplateName).html()),b=(this.current_page-1)*- -this.getSettings().resultsCount,c=b+- -this.getSettings().resultsCount,d=a({results:this.getData().content.rows.slice(b,c)});this.element.find(".results").html(d)},inheritPrototype(newslettercontainerModule,formcontainerModule),newslettercontainerModule.prototype.prepareReceiveData=function(a){return a},newslettercontainerModule.prototype.onFormComplete=function(a){switch(a.status){case 500:this.showErrorMessage(this.getErrorMessage());break;case 200:this.handleResponseOnFormSend($.parseJSON(a.response))}},newslettercontainerModule.prototype.changeMessage=function(a){this.getMessageHandler().html(a)},newslettercontainerModule.prototype.showErrorMessage=function(a){this.markFormSubmittedState("error"),this.changeMessage(a),this.cleanToken()},newslettercontainerModule.prototype.onSuccessSent=function(){this.markFormSubmittedState("success"),this.changeMessage(this.getSuccessMessage()),this.turnOnScriptInSandBox(),this.trackVirtualPageview(),this.cleanToken(),this.onFormSubmitted()},newslettercontainerModule.prototype.handleResponseOnFormSend=function(a){switch(a.status){case"error":this.hasResponseMessages(a)?this.showErrorMessage(this.prepareErrorMessage(a.messages)):this.showErrorMessage(this.getErrorMessage());break;case"success":this.onSuccessSent()}},newslettercontainerModule.prototype.hasResponseMessages=function(a){return"object"==typeof a&&a.hasOwnProperty("messages")&&null!==a.messages&&Array.isArray(a.messages)&&a.messages.length>0},newslettercontainerModule.prototype.prepareErrorMessage=function(a){var b=[];return a.map(function(a){b.push($("<p>").text(a))}),b};newslettercontainerModule.prototype.getMessageHandler=function(){return this.getElement().find(".message-txt")},newslettercontainerModule.prototype.getErrorMessage=function(){return this.getData().settings.error[bluetrix.getLang()]},newslettercontainerModule.prototype.getSuccessMessage=function(){return this.getData().settings.success[bluetrix.getLang()]},newslettercontainerModule.prototype.markFormSubmittedState=function(a){this.getElement().removeClass(function(a,b){return(b.match(/form-/g)||[]).join(" ")}).addClass("form-"+a)},inheritPrototype(searchcontentresultsModule,Module),searchcontentresultsModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.resultsTpl=$("#module-search-content-results-list").html();var a=this;this.isKeywordExist()?$.ajax({url:a.getSearchUrl(),method:"POST",data:{},success:function(b){a.onReceiveSearchResults(b)}}):this.onReceiveSearchResults({})},searchcontentresultsModule.prototype.getSearchUrl=function(){var a=decodeURI(this.element.find(".scr-list-holder").data("endpoint")),b=Utils.getInst().getQueryParam("keyword");return a.replace("{keyword}",b)},searchcontentresultsModule.prototype.isKeywordExist=function(){var a=Utils.getInst().getQueryParam("keyword");return void 0!==a&&""!==a},searchcontentresultsModule.prototype.onReceiveSearchResults=function(a){if(a&&!bluetrix.admin)if(a.results){var b=void 0;if(1===a.results.length){if(this.getData().content["title-results-singular"]){var c=this.getData().content["title-results-singular"];b=c[bluetrix.getLang()]?c[bluetrix.getLang()]:c[bluetrix.getDefLang()]}}else if(this.getData().content["title-results-plural"]){var d=this.getData().content["title-results-plural"];b=d[bluetrix.getLang()]?d[bluetrix.getLang()]:d[bluetrix.getDefLang()]}void 0!==b?(this.element.find(".subtitle").text(b),this.element.find(".subtitle").remove("span").prepend("<span>"+a.results.length+" </span>")):this.element.find(".subtitle").remove("span").prepend("<span>"+a.results.length+" </span>");var e=Handlebars.compile(this.resultsTpl),a=this.cutDescriptions(a,160);this.tpl=e(a),this.element.find(".scr-list-holder").empty().append(this.tpl),this.hideErrorMessage()}else this.showErrorMessage()},searchcontentresultsModule.prototype.hideErrorMessage=function(){this.element.find(".subtitle").show(),this.element.find(".error-message").hide()},searchcontentresultsModule.prototype.showErrorMessage=function(){this.element.find(".subtitle").hide(),this.element.find(".error-message").show()},searchcontentresultsModule.prototype.cutDescriptions=function(a,b,c){for(var d=c||"...",e=a.results.length,f=0;f<e;f++)if(a.results[f].text){var g=this.trim(this.removeWhiteSpaces(this.stripTags(a.results[f].text))).slice(0,b);160===g.length&&(g+=d),g=this.wrapKeywords(a,g),a.results[f].text=g}return a},searchcontentresultsModule.prototype.stripTags=function(a){return a.replace(/<[^>]*>/g," ").replace(/\s\s/g," ")},searchcontentresultsModule.prototype.removeWhiteSpaces=function(a){return a.replace(/&nbsp;/g," ")},searchcontentresultsModule.prototype.trim=function(a){return a.replace(/^\s/,"")},searchcontentresultsModule.prototype.wrapKeywords=function(a,b){var c=new RegExp("("+a.key+")","gi");return b.replace(c,"<span>$1</span>")},inheritPrototype(sitestructureModule,Module),sitestructureModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.getSiteStructureListHandler().on("click","a",function(b){b.preventDefault(),a.scrollToSection($(this).attr("href").replace("#",""))}),this.getSiteStructureToggleHandler().on("click",function(){a.toggleModule()})},sitestructureModule.prototype.onSiteFullyLoad=function(){Module.prototype.onSiteFullyLoad.call(this),this.trackModulesWithAnchor()},sitestructureModule.prototype.getSiteStructureListHandler=function(){return this.getElement().find("[data-site-structure-list]")},sitestructureModule.prototype.getSiteStructureToggleHandler=function(){return this.getElement().find("[data-site-structure-toggle]")},sitestructureModule.prototype.cleanSiteStructureHandler=function(){this.getSiteStructureListHandler().empty()},sitestructureModule.prototype.scrollToSection=function(a){var b=$('[data-module-anchor="'+a+'"]');b.length>0&&$("html, body").animate({scrollTop:b.offset().top})},
sitestructureModule.prototype.trackModulesWithAnchor=function(){var a=this,b=[];this.getModulesWithAnchor(b,bluetrix.getContainers().root),this.cleanSiteStructureHandler(),b.length>0&&b.map(function(b){var c=b.getSettings(),d=$("<li>").html($("<a>").attr({href:"#"+c.anchor}).text(c.anchor));a.getSiteStructureListHandler().append(d)})},sitestructureModule.prototype.getModulesWithAnchor=function(a,b){var c=this,d=b.getModules();"object"==typeof d&&null!==d&&void 0!==d&&Array.isArray(d)&&d.length>0&&d.map(function(b){var d=b.getSettings();d.hasOwnProperty("anchor")&&"string"==typeof d.anchor&&""!==d.anchor&&a.push(b);var e=b.getContainer();"object"==typeof e&&null!==e&&void 0!==e&&c.getModulesWithAnchor(a,e)})},sitestructureModule.prototype.toggleModule=function(){this.getElement().hasClass("expand")?this.getElement().removeClass("expand"):this.getElement().addClass("expand")},inheritPrototype(socialitemModule,Module),socialitemModule.prototype.isSizeDisable=function(){return!0},socialitemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.checkIsVisible()},socialitemModule.prototype.checkIsVisible=function(){this.getHideOnPagesArray().indexOf(bluetrix.getPageId())>-1&&this.hideItem()},socialitemModule.prototype.hideItem=function(){this.getElement().addClass("social-item-hidden")},socialitemModule.prototype.getHideOnPagesArray=function(){var a=[],b=this.getSettings();return b.hasOwnProperty("hideOnPages")&&"object"==typeof b.hideOnPages&&null!==b.hideOnPages&&b.hideOnPages.hasOwnProperty("values")&&Array.isArray(b.hideOnPages.values)&&(a=b.hideOnPages.values),a},inheritPrototype(socialshareModule,Module),socialshareModule.prototype.precompile=function(){Module.prototype.precompile.call(this),this.data.pageUrl=this.getPageUrl()},socialshareModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.element.on("click","[data-action]",function(){a.propagateAction($(this).data("action"))})},socialshareModule.prototype.propagateAction=function(a){switch(a){case"facebook":bluetrix.shareFb();break;case"google-plus":bluetrix.shareGp();break;case"twitter":bluetrix.shareTwit();break;case"linkedin":bluetrix.shareLinkedIn();break;case"xing":bluetrix.shareXing();break;case"print":print();break;case"instagram":bluetrix.shareInstagram();break;case"whatsapp":bluetrix.shareWhatsapp()}},socialshareModule.prototype.getPageUrl=function(){return location.href},inheritPrototype(socialsidebarModule,Module),socialsidebarModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;this.getElement().on("mouseenter",function(){a.showSidebar()}),this.getElement().on("mouseleave",function(){a.hideSidebar()})},socialsidebarModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.checkIsVisible()},socialsidebarModule.prototype.showSidebar=function(){this.getElement().addClass("visible")},socialsidebarModule.prototype.hideSidebar=function(){this.getElement().removeClass("visible")},socialsidebarModule.prototype.isSizeDisable=function(){return!0},socialsidebarModule.prototype.getPossibleSubmodulesArray=function(){return["socialitem"]},socialsidebarModule.prototype.checkIsVisible=function(){this.getHideOnPagesArray().indexOf(bluetrix.getPageId())>-1&&this.hideItem()},socialsidebarModule.prototype.hideItem=function(){this.getElement().addClass("social-sidebar-hidden")},socialsidebarModule.prototype.getHideOnPagesArray=function(){var a=[],b=this.getSettings();return b.hasOwnProperty("hideOnPages")&&"object"==typeof b.hideOnPages&&null!==b.hideOnPages&&b.hideOnPages.hasOwnProperty("values")&&Array.isArray(b.hideOnPages.values)&&(a=b.hideOnPages.values),a},inheritPrototype(tabscontainerModule,Module),tabscontainerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindSimpleEvents(),this.bindAdditionalEvents()},tabscontainerModule.prototype.bindSimpleEvents=function(){var a=this;this.element.on("addTabsItem",function(b,c){a.addTabItem(c)}),this.element.on("click","> .nav-tabs-wrapper > .navbar-toggle-wrapper > .navbar-toggle",function(){a.toggleTabContent()})},tabscontainerModule.prototype.bindAdditionalEvents=function(){},tabscontainerModule.prototype.onSiteFullyLoad=function(){Module.prototype.onSiteFullyLoad.call(this);var a=this;this.element.on("click","> .nav-tabs-wrapper > .nav-tabs > .tabs-control > a, > .tabs-content > .tabsitem-module > .tabsitem-content-wrapper > .tabs-control > a",function(b){b.preventDefault(),a.isForceLinksMode()&&a.forceLink($(this)),a.showActiveTabItem(),a.trackClickEvent($(this))}),this.showActiveTabItem()},tabscontainerModule.prototype.addTabItem=function(a){var b=this.isTabItemExist(a.getId());b>-1?this.tabsItem[b]=a:this.tabsItem.push(a),this.drawTabsItemHead(),this.showActiveTabItem(),this.startCacheProcessing()},tabscontainerModule.prototype.isTabItemExist=function(a){var b=-1;return $.each(this.tabsItem,function(c,d){d.getId()===a&&(b=c)}),b},tabscontainerModule.prototype.drawTabsItemHead=function(){var a=Handlebars.compile(this.tabsItemTemplate),b=a({tabsItem:this.getTabsItemHead(),forceLinks:this.isForceLinksMode()});this.element.find("> .nav-tabs-wrapper > .nav-tabs").html(b)},tabscontainerModule.prototype.getActiveTabId=function(){return this.element.find("> .nav-tabs-wrapper > .nav-tabs > .tabs-control.active").data("module-delegate")},tabscontainerModule.prototype.showActiveTabItem=function(){if(this.hideActiveTabItem(),this.isForceLinksMode()&&this.isHashElementExist()){var a=this.element.find("> .tabs-content > "+location.hash);return a.addClass("in active"),a.find("> .tabsitem-content-wrapper > .tabs-control").addClass("active"),this.element.find('> .nav-tabs-wrapper > .nav-tabs > .tabs-control > a[href="'+location.hash+'"]').parent().addClass("active"),!0}var a=this.element.find("> .tabs-content > .tabsitem-module:first-child");a.addClass("in active"),a.find("> .tabsitem-content-wrapper > .tabs-control").addClass("active"),this.element.find("> .nav-tabs-wrapper > .nav-tabs > :first-child > a").parent().addClass("active")},tabscontainerModule.prototype.hideActiveTabItem=function(){var a=this.element.find("> .tabs-content > .tabsitem-module");a.removeClass("in active"),a.find("> .tabsitem-content-wrapper > .tabs-control").removeClass("active"),this.element.find("> .nav-tabs-wrapper > .nav-tabs > .tabs-control").removeClass("active")},tabscontainerModule.prototype.toggleTabContent=function(){this.element.find("> .nav-tabs-wrapper > .nav-tabs").slideToggle()},tabscontainerModule.prototype.isForceLinksMode=function(){var a=this.getSettings();return a.hasOwnProperty("forceLinks")&&1==- -a.forceLinks},tabscontainerModule.prototype.forceLink=function(a){var b=a.attr("href");history.pushState?history.pushState(null,null,b):location.hash=b},tabscontainerModule.prototype.getTabsItemHead=function(){var a=[];return this.tabsItem.map(function(b){a.push({id:b.getId(),name:b.getTabItemName()})}),a},tabscontainerModule.prototype.isHashElementExist=function(){return this.element.find('> .nav-tabs-wrapper > .nav-tabs > .tabs-control > a[href="'+location.hash+'"]').length>0},tabscontainerModule.prototype.trackClickEvent=function(a){if(!bluetrix.isAdmin()&&window.hasOwnProperty("ga"))if(options.hasOwnProperty("alreadyCached"))ga("send","event","tab","click",this.getClickEventValue(a.text()));else{var b=this.getTabById(this.getActiveTabId());ga("send","event","tab","click",this.getClickEventValue(b.getTabItemName()))}},tabscontainerModule.prototype.getClickEventValue=function(a){return Handlebars.helpers.slugify(a)},tabscontainerModule.prototype.getTabById=function(a){for(var b in this.tabsItem)if(this.tabsItem[b].getId()===a)return this.tabsItem[b];return null},inheritPrototype(tabsitemModule,Module),tabsitemModule.prototype.precompile=function(a){this.data._tabsMode=this.getTabsMode(a.element),this.data._forceLinks=this.isForceLinksMode(a.element)},tabsitemModule.prototype.isForceLinksMode=function(a){return a.closest("[data-force-links]").length>0},tabsitemModule.prototype.getTabsMode=function(a){return a.closest("[data-tabs-mode]").data("tabs-mode")},tabsitemModule.prototype.onAddShowPopupConfiguration=function(){return!0},tabsitemModule.prototype.isSizeDisable=function(){return!0},tabsitemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.callOnCreated()},tabsitemModule.prototype.getTabItemName=function(){var a=this.getSettings();return a.hasOwnProperty("name")&&""!==a.name?a.name:this.getId()},tabsitemModule.prototype.callOnCreated=function(){!bluetrix.admin&&options.hasOwnProperty("alreadyCached")||void 0!==this.element&&(this.stopCacheProcessing(),this.element.closest(".tabscontainer-module").trigger("addTabsItem",this))},inheritPrototype(textimageModule,Module),inheritPrototype(twitterwidgetModule,Module),twitterwidgetModule.prototype.getRequiredScripts=function(){return["//platform.twitter.com/widgets.js"]},inheritPrototype(videoModule,Module),videoModule.prototype.getRequiredScriptsWithDelay=function(){var a=[];switch(this.getProvider()){case"vimeo":a.push("//player.vimeo.com/api/player.js");break;case"youtube":a.push("//www.youtube.com/player_api")}return a},videoModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),bluetrix.isAdmin()?this.initVideo():this.isCookiesAccepted()?this.initVideo():this.isGdprInDetailedMode()?this.blockVideo():this.isBlockVideo()?this.blockVideo():this.initVideo()},videoModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindVideoEvents()},videoModule.prototype.blockVideo=function(){this.markVideoBlocked(),this.showVideoThumb(),this.renderVideoBlockText(),this.renderVideoStartButton()},videoModule.prototype.unBlockVideo=function(){this.unMarkVideoBlocked(),this.hideVideoThumb(),this.clearVideoContainer(),this.initVideo()},videoModule.prototype.isVideoBlocked=function(){return this.getElement().hasClass("video-blocked")},videoModule.prototype.markVideoBlocked=function(){this.getElement().addClass("video-blocked")},videoModule.prototype.unMarkVideoBlocked=function(){this.getElement().removeClass("video-blocked")},videoModule.prototype.showVideoThumb=function(){this.isVideoThumb()&&this.getVideoContainer().css("background-image","url("+this.getVideoThumb()+")")},videoModule.prototype.hideVideoThumb=function(){this.isVideoThumb()&&this.getVideoContainer().css("background-image","none")},videoModule.prototype.renderVideoBlockText=function(){this.getVideoContainer().html($("<div>").addClass("video-block").html(this.isVideoBlockText()?this.getVideoBlockText():this.getVideoDefaultBlockText()))},videoModule.prototype.renderVideoStartButton=function(){this.getVideoContainer().append($("<button>").attr({type:"button",class:"btn btn-play","data-video-action":"unBlockVideo"}).html($("<span>").addClass("fa fa-play")))},videoModule.prototype.clearVideoContainer=function(){this.getVideoContainer().empty()},videoModule.prototype.getVideoThumb=function(){var a=this.getDataContent().thumb;return Utils.getInst().isParameterNotEmpty(a)?a[bluetrix.getLang()]:null},videoModule.prototype.isVideoThumb=function(){var a=this.getVideoThumb();return"string"==typeof a&&""!==a},videoModule.prototype.getVideoBlockText=function(){var a=this.getDataContent().blockText;return Utils.getInst().isParameterNotEmpty(a)?a[bluetrix.getLang()]:null},videoModule.prototype.getVideoDefaultBlockText=function(){return options.gdpr.blockVideoDefaultText},videoModule.prototype.isVideoBlockText=function(){var a=this.getVideoBlockText();return"string"==typeof a&&""!==a},videoModule.prototype.bindVideoEvents=function(){var a=this;this.getElement().on("click","[data-video-container]",function(){a.isVideoBlocked()&&a.unBlockVideo()}),this.getElement().on("click","[data-video-action]",function(b){b.preventDefault(),a.handleVideoAction($(this))})},videoModule.prototype.handleVideoAction=function(a){var b=a.data("video-action");"function"==typeof this[b]&&this[b](a)},videoModule.prototype.getRequiredCookies=function(){return[this.getProvider()]},videoModule.prototype.initVideo=function(){var a=this;this.loadResources(this.getRequiredScriptsWithDelay()).then(function(){a.unMarkVideoBlocked(),setTimeout(function(){a.initVideoParams(),a.initVideoHandler(),a.initVideoPlayer()},800)})},videoModule.prototype.initVideoParams=function(){this.initVideoVolumeEnable()},videoModule.prototype.initVideoVolumeEnable=function(){this.isMute()?this.unMarkVideoVolumeEnable():this.markVideoVolumeEnable()},videoModule.prototype.initVideoHandler=function(){this.setVideoHandler(this.getVideoContainer()[0])},videoModule.prototype.initVideoPlayer=function(){var a=this;switch(this.getProvider()){case"vimeo":this.setVideoPlayer(new Vimeo.Player(this.getVideoHandler(),{id:this.getVideoId(),autoplay:this.isAutoplay(),background:this.isHideControls(),loop:1,dnt:this.isDoNotTrack()}));break;case"youtube":this.setVideoPlayer(new YT.Player(this.getVideoHandler(),{videoId:this.getVideoId(),playerVars:{autoplay:this.isAutoplay()?1:0,controls:this.isHideControls()?0:1,rel:this.isRelControls()?1:0,showinfo:this.isHideControls()?0:1,start:this.getStartTime(),loop:1},events:{onReady:function(b){a.isMute()&&b.target.setVolume(0)},onStateChange:function(b){a.handleVideoStateChange(b)}}}))}},videoModule.prototype.handleVideoStateChange=function(a){},videoModule.prototype.toggleVolume=function(a){this.isVideoVolumeEnable()?this.disableVolume(a):this.enableVolume(a)},videoModule.prototype.disableVolume=function(a){this.getVideoPlayer().setVolume(0),a.find(".fa").removeClass("fa-volume-up").addClass("fa-volume-off"),this.unMarkVideoVolumeEnable()},videoModule.prototype.enableVolume=function(a){switch(this.getProvider()){case"vimeo":this.getVideoPlayer().setVolume(1);break;case"youtube":this.getVideoPlayer().setVolume(100)}a.find(".fa").removeClass("fa-volume-off").addClass("fa-volume-up"),this.markVideoVolumeEnable()},videoModule.prototype.getVideoId=function(){return this.getSettings().code},videoModule.prototype.isAutoplay=function(){var a=this.getSettings();return a.hasOwnProperty("autoplay")&&1==- -a.autoplay},videoModule.prototype.isHideControls=function(){var a=this.getSettings();return a.hasOwnProperty("hide_controls")&&1==- -a.hide_controls},videoModule.prototype.isRelControls=function(){var a=this.getSettings();return a.hasOwnProperty("rel")&&1==- -a.rel},videoModule.prototype.isMute=function(){var a=this.getSettings();return a.hasOwnProperty("mute")&&1==- -a.mute},videoModule.prototype.getProvider=function(){var a="vimeo",b=this.getSettings();return b.hasOwnProperty("provider")&&""!==b.provider&&(a=b.provider),a},videoModule.prototype.getStartTime=function(){var a=this.getSettings();return a.hasOwnProperty("startTime")&&""!==a.startTime?a.startTime:0},videoModule.prototype.getVideoContainer=function(){return this.getElement().find("[data-video-container]")},videoModule.prototype.isBlockVideo=function(){var a=options.gdpr;return"object"==typeof a&&null!==a&&a.hasOwnProperty("blockVideo")&&a.blockVideo},videoModule.prototype.isGdprInDetailedMode=function(){return"detailed"===bluetrix.getGdprMode()},videoModule.prototype.setVideoHandler=function(a){this.videoHandler=a},videoModule.prototype.getVideoHandler=function(){return this.videoHandler},videoModule.prototype.setVideoPlayer=function(a){this.videoPlayer=a},videoModule.prototype.getVideoPlayer=function(){return this.videoPlayer},videoModule.prototype.setVideoVolumeEnable=function(a){this.videoVolumeEnable=a},videoModule.prototype.markVideoVolumeEnable=function(){this.setVideoVolumeEnable(!0)},videoModule.prototype.unMarkVideoVolumeEnable=function(){this.setVideoVolumeEnable(!1)},videoModule.prototype.isVideoVolumeEnable=function(){return this.videoVolumeEnable},videoModule.prototype.isDoNotTrack=function(){var a=this.getSettings();return void 0!==a.vimeoDoNotTrack&&"1"===a.vimeoDoNotTrack},inheritPrototype(videofullcontainerModule,fullcontainerModule),videofullcontainerModule.prototype.onAddedToStage=function(){fullcontainerModule.prototype.onAddedToStage.call(this),this.generatedVideos={XS:this.getVideoForViewport("XS"),SM:this.getVideoForViewport("SM"),MD:this.getVideoForViewport("MD"),LG:this.getVideoForViewport("LG"),XLG:this.getVideoForViewport("XLG"),XXLG:this.getVideoForViewport("XXLG"),Desktop:this.getVideoForViewport("Desktop")},this.setVideo()},videofullcontainerModule.prototype.bindEvents=function(){fullcontainerModule.prototype.bindEvents.call(this)},videofullcontainerModule.prototype.getVideoSrcContainer=function(){return this.getElement().find("[data-video-src]")},videofullcontainerModule.prototype.getVideoElement=function(){return this.getElement().find("[data-video]")},videofullcontainerModule.prototype.setVideo=function(){if(this.hasVideos()){var a=void 0;return window.matchMedia("(max-width: 479px)").matches?void((a=this.generatedVideos.XS)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):window.matchMedia("(max-width: 767px)").matches?void((a=this.generatedVideos.SM)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):window.matchMedia("(max-width: 991px)").matches?void((a=this.generatedVideos.MD)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):window.matchMedia("(max-width: 1199px)").matches?void((a=this.generatedVideos.LG)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):window.matchMedia("(max-width: 1399px)").matches?void((a=this.generatedVideos.XLG)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):window.matchMedia("(max-width: 1599px)").matches?void((a=this.generatedVideos.XXLG)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load())):void((a=this.generatedVideos.Desktop)&&(this.getVideoSrcContainer().attr("src",a),this.getVideoElement().load()))}},videofullcontainerModule.prototype.hasVideos=function(){return!!this.getSettings().videos},videofullcontainerModule.prototype.hasVideoForViewport=function(a){return!(!this.hasVideos()||!this.getVideos()[a])},videofullcontainerModule.prototype.getVideoForViewport=function(a){if(this.hasVideoForViewport(a)&&this.getVideos()[a].bg1)return this.getVideos()[a].bg1},videofullcontainerModule.prototype.getVideos=function(){return this.getSettings().videos},inheritPrototype(wallcontainerModule,Module),wallcontainerModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;a.element.on("onAddedModuleToContainer",function(b,c){a.calcElementSize(c),a.wallInstance&&a.wallInstance.refresh()}),a.element.on("wallToRefresh",function(){a.refreshWall()}),a.element.on("wallElementCloned",function(b,c){c.element.removeAttr("data-position"),c.setContentParameter("position",""),a.refreshWall()})},wallcontainerModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.createWall()},wallcontainerModule.prototype.getWallId=function(){return"wall-"+this.getId()},wallcontainerModule.prototype.createWall=function(){var a=this;setTimeout(function(){a.wallInstance=new freewall("#"+a.getWallId()),a.wallInstance.reset({selector:".wallelement-module",animate:!0,fixSize:0,cellW:- -a.getSettings().colWidth,cellH:- -a.getSettings().colHeight,gutterX:- -a.getSettings().gutterX,gutterY:- -a.getSettings().gutterY,onResize:function(){a.element.find(".wallelement-module").trigger("updatePosition",[a,a.wallInstance])}}),a.element.find("#"+a.getId()).data("wall-width",$(window).width()),a.wallInstance.fitWidth()},100),$(window).trigger("resize")},wallcontainerModule.prototype.calcElementSize=function(a){var b=a.getSettings().elementSize.split("x"),c=- -b[0]*- -this.getSettings().colWidth,d=- -b[1]*- -this.getSettings().colHeight;a.element.css("width",c).css("height",d),this.wallInstance&&this.wallInstance.fixSize({block:a.element,width:c,height:d})},inheritPrototype(wallelementModule,Module),wallelementModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this;a.element.on("updatePosition",function(b,c,d){if($(window).width()>=1280){if(a.getData().content&&a.getData().content.position){var e=a.getData().content.position[bluetrix.getLang()];e&&(a.element.attr("data-position",e),d.fitWidth())}}else a.element.removeAttr("data-position"),c.calcElementSize(a),d.fillHoles();d.refresh()})};

function accordionModule(a){Module.call(this,a)}function accordionitemModule(a){Module.call(this,a)}function buttonModule(a){Module.call(this,a)}function defaultfooterModule(a){Module.call(this,a)}function footerlistModule(a){Module.call(this,a)}function galleryModule(a){Module.call(this,a)}function galleryitemModule(a){Module.call(this,a)}function googlemapModule(a){Module.call(this,a)}function headlineModule(a){Module.call(this,a)}function iconboxModule(a){Module.call(this,a)}function imageModule(a){Module.call(this,a)}function imageboxModule(a){Module.call(this,a)}function menuv1Module(a){Module.call(this,a)}function parallaxsliderModule(a){Module.call(this,a)}function parallaxslideritemModule(a){Module.call(this,a)}function revolutionsliderModule(a){Module.call(this,a)}function revolutionslideritemModule(a){Module.call(this,a),this.rescaleModules=!0,this.repositionFunctName="repositionInRevolutionSliderContainer",this.wrapperClasses={headline:["revolution-ch1"],text:["revolution-ch2"],button:[],image:[]},this.fontSize={headline:40,text:20,button:"",image:""}}function sliderModule(a){Module.call(this,a)}function slideritemModule(a){Module.call(this,a)}function socialModule(a){Module.call(this,a)}function textModule(a){Module.call(this,a)}Handlebars.registerHelper("getLogoMenuWidth",function(a){var b=parseInt(a);return b?100-b:""}),Handlebars.registerHelper("headlineLevel",function(a){var b=function(a){return void 0!==a&&("string"==typeof a||"number"==typeof a)&&- -a>0&&a<=6};return b(a.headlineLevel)?a.headlineLevel:b(a.parentHeadlineLevel)?a.parentHeadlineLevel:4});var unifyBluetrix=Bluetrix;unifyBluetrix.prototype.ov_onPreAllModulesLoadedOnStart=function(){App.init()},inheritPrototype(accordionModule,Module),accordionModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.openTabBySettings(),this.onAddedToStageLocal()},accordionModule.prototype.onAddedToStageLocal=function(){},accordionModule.prototype.openTab=function(a){var b=this.element.find(".accordionitem-module");$(b[a])&&($(b[a]).find(".accordion-toggle").removeClass("collapsed").data("toggle","collapse").attr("aria-expanded","true"),$(b[a]).find(".panel-collapse").addClass("in").attr("aria-expanded","true"))},accordionModule.prototype.openTabBySettings=function(){this.isFirstTabToOpen()?this.openTab(0):this.isTabToOpenByIndex()&&this.openTab(this.getTabToOpenByIndex())},accordionModule.prototype.isFirstTabToOpen=function(){var a=this.getSettings();return a.hasOwnProperty("openFirstTab")&&1==- -a.openFirstTab},accordionModule.prototype.isTabToOpenByIndex=function(){var a=this.getSettings();return a.hasOwnProperty("openByIndex")&&- -a.openByIndex>0},accordionModule.prototype.getTabToOpenByIndex=function(){return- -this.getSettings().openByIndex-1},inheritPrototype(accordionitemModule,Module),accordionitemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this);var a=this;setTimeout(function(){var b=a.element.closest(".panel-group");1!=b.attr("data-multiopen")&&a.element.find(".accordion-toggle").attr("data-parent","#"+b.attr("id")),"1"==a.getSettings().openOnStart&&(a.element.find(".accordion-toggle").removeClass("collapsed").data("toggle","collapse").attr("aria-expanded","true"),a.element.find(".panel-collapse").addClass("in").attr("aria-expanded","true"))},50)},accordionitemModule.prototype.precompile=function(a){Module.prototype.precompile.call(this,a),this.getSettings().parentHeadlineLevel=this.getHeadlineLevel(a.element)},accordionitemModule.prototype.getHeadlineLevel=function(a){var b=this.getSettings();if(b.hasOwnProperty("headlineLevel")&&this.isValidHeadlineLevel(- -b.headlineLevel))return b.headlineLevel;var c=a.closest(".accordion-module").first().find(".panel-group").first(),d=c.data("accordion-headline-level");return void 0!==d&&this.isValidHeadlineLevel(- -d)?d:this.getDefaultHeadlineLevel()},accordionitemModule.prototype.isValidHeadlineLevel=function(a){return a>=1&&a<=6},accordionitemModule.prototype.getDefaultHeadlineLevel=function(){return 4},inheritPrototype(buttonModule,Module),inheritPrototype(defaultfooterModule,Module),inheritPrototype(footerlistModule,Module),inheritPrototype(galleryModule,Module),galleryModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.initializeFancyBox()},galleryModule.prototype.initializeFancyBox=function(){FancyBox.initFancybox()},inheritPrototype(galleryitemModule,Module),galleryitemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this);var a=this;setTimeout(function(){var b=a.element.closest(".gallery-module");a.element.addClass(Handlebars.helpers.moduleBreakpoint("",b.data("cols"))),a.element.find(".fancybox").attr("rel",b.data("moduleid"))},50)},inheritPrototype(googlemapModule,Module),googlemapModule.prototype.getRequiredCookies=function(){return["googleMaps"]},googlemapModule.prototype.getRequiredScripts=function(){if(bluetrix.isInPageSpeedChecking()||!this.isCookiesAccepted())return[];var a=this.getExtraScriptUrls();return a.push(this.getGoogleMapScriptUrl()),this.isMarkerClusteringEnabled()&&a.push(this.getMarkerClusterScriptUrl()),a},googlemapModule.prototype.getGoogleMapScriptUrl=function(){var a="//maps.google.com/maps/api/js";return"object"==typeof options&&options.hasOwnProperty("googleMapsApiKey")&&""!==options.googleMapsApiKey?a+="?key="+options.googleMapsApiKey:a+="?sensor=false",a},googlemapModule.prototype.getMarkerClusterScriptUrl=function(){return"//unpkg.com/@google/markerclustererplus@4.0.1/dist/markerclustererplus.min.js"},googlemapModule.prototype.getExtraScriptUrls=function(){return[]},googlemapModule.prototype.isMarkerClusteringEnabled=function(){var a=this.getSettings();return a.hasOwnProperty("markerClustering")&&1==- -a.markerClustering},googlemapModule.prototype.initDom=function(){if(Module.prototype.initDom.call(this),bluetrix.isAdmin()||this.isCookiesAccepted()){var a=this;setTimeout(function(){a.startCreationProcess()},500)}else this.markCookiesBlocked()},googlemapModule.prototype.initDomCached=function(){var a=this;bluetrix.isAdmin()||this.isCookiesAccepted()?setTimeout(function(){a.startCreationProcess()},500):this.markCookiesBlocked()},googlemapModule.prototype.getCookiesBlockedContainer=function(){return this.getMapContainer()},googlemapModule.prototype.onTemporaryCookiesUnblock=function(){var a=this,b=this.getExtraScriptUrls();b.push(this.getGoogleMapScriptUrl()),this.isMarkerClusteringEnabled()&&b.push(this.getMarkerClusterScriptUrl()),this.loadResources(b).then(function(){setTimeout(function(){a.startCreationProcess()},800)})},googlemapModule.prototype.startCreationProcess=function(){if(!bluetrix.isInPageSpeedChecking()){var a=this;this.isSingleMarkersMode()?this.setSingleMarkerMode():this.setMultipleMarkerMode(),this.showSettings=!0,this.createMap(),this.renderMarkers(this.getMarkers());var b=this.getSettings();this.isSingleMarkersMode()?b.info&&1==- -b.info[bluetrix.getLang()]&&this.createInfoWindow():this.isMarkerClusteringEnabled()&&this.enableMarkerClustering(),setTimeout(function(){a.refresh()},50),a.onCreationProcessEnd()}},googlemapModule.prototype.onCreationProcessEnd=function(){},googlemapModule.prototype.enableMarkerClustering=function(){new MarkerClusterer(this.getMapInstance(),this.getMapMarkers(),{imagePath:this.getDefaultMarkerClusterImage()})},googlemapModule.prototype.getDefaultMarkerClusterImage=function(){return"/bundles/tplsunify/img/map-cluster"},googlemapModule.prototype.setSingleMarkerMode=function(){this.element.addClass("googlemap-module-single-marker-mode").removeClass("googlemap-module-multiple-marker-mode")},googlemapModule.prototype.setMultipleMarkerMode=function(){this.element.addClass("googlemap-module-multiple-marker-mode").removeClass("googlemap-module-single-marker-mode")},googlemapModule.prototype.getMarkers=function(){var a=this;if(!this.isMainMarker())return this.getDataContent().markers;var b=this.getSimpleSingleMapMarker(this.getMainMarkerId(),this.getMainMarker().lat,this.getMainMarker().lng,this.getDefaultMarkerContent());if(this.isSingleMarkersMode())return[b];var c=this.getDataContent().markers;if("object"==typeof c&&null!==c&&Array.isArray(c)&&c.length>0){var d=!1;return c.map(function(b){b.id===a.getMainMarkerId()&&(d=!0)}),d||c.unshift(b),c}},googlemapModule.prototype.updateMarkers=function(){this.getDataContent().markers=this.getSimpleMapMarkers()},googlemapModule.prototype.getMapMarkers=function(){return this.mapMarkers},googlemapModule.prototype.setMapMarkers=function(a){this.mapMarkers=a},googlemapModule.prototype.addMapMarkerItem=function(a){this.getMapMarkers().push(a)},googlemapModule.prototype.clearMapMarkers=function(){this.setMapMarkers([])},googlemapModule.prototype.presetMapMarkers=function(){this.setMapMarkers([])},googlemapModule.prototype.hasMapMarkers=function(){return"object"==typeof this.getMapMarkers()&&null!==this.getMapMarkers()&&void 0!==this.getMapMarkers()&&Array.isArray(this.getMapMarkers())},googlemapModule.prototype.getFirstMarker=function(a){return"simple"===a?this.getSimpleMapMarkers()[0]:this.getMapMarkers()[0]},googlemapModule.prototype.getSimpleMapMarkers=function(){this.hasMapMarkers()||this.clearMapMarkers();var a=[];if(this.isSingleMarkersMode()&&this.isMainMarker())a.push(this.getSimpleSingleMapMarker(this.getMainMarkerId(),this.getMainMarker().lat,this.getMainMarker().lng,""));else{for(var b=!1,c=0;c<this.getMapMarkers().length;c++){this.getMapMarkers()[c].get("id")===this.getMainMarkerId()&&(b=!0);var d=this.getMapMarkers()[c];d.position&&a.push(this.getSimpleSingleMapMarker(d.get("id"),d.position.lat(),d.position.lng(),d.get("content")))}!b&&this.isMainMarker()&&a.unshift(this.getSimpleSingleMapMarker(this.getMainMarkerId(),this.getMainMarker().lat,this.getMainMarker().lng,this.getDefaultMarkerContent()))}return a},googlemapModule.prototype.getSimpleSingleMapMarker=function(a,b,c,d){return{id:a,lat:b,lng:c,content:d}},googlemapModule.prototype.renderMarkers=function(a){for(var b=0;b<a.length&&!(b>0&&this.isSingleMarkersMode());b++){var c,d=new google.maps.LatLng(a[b].lat,a[b].lng);a[b].hasOwnProperty("id")&&(c=a[b].id);var e;a[b].hasOwnProperty("content")&&(e=a[b].content),this.addMarker(d,c,e)}this.onRenderMarkers()},googlemapModule.prototype.onRenderMarkers=function(){},googlemapModule.prototype.createMarkerDesc=function(a,b){var c=this.element.find(".items"),d=c.find('[data-marker-id="'+a+'"]');if(0===d.length){var e=Handlebars.compile($("#googlemap-item").html()),f=e({id:a,content:b});c.append(f)}else this.triggerMarkerEdit(d)},googlemapModule.prototype.triggerMarkerEdit=function(a){},googlemapModule.prototype.createMap=function(){this.setMapInstance(new google.maps.Map(this.getMapContainer()[0],{center:this.getCenter(),zoom:this.getZoom(),scrollwheel:this.isScrollWheelEnabled(),mapTypeId:this.getMapType(),styles:this.getMapStyles()}))},googlemapModule.prototype.getMapContainer=function(){return this.element.find("#"+this.getId())},googlemapModule.prototype.isScrollWheelEnabled=function(){var a=this.getSettings();return a.hasOwnProperty("scrollWheelEnabled")&&1==- -a.scrollWheelEnabled},googlemapModule.prototype.addMarker=function(a,b,c){this.hasMapMarkers()||this.presetMapMarkers();var d=new google.maps.Marker({icon:this.getMarkerIcon(),position:a,map:this.getMapInstance()});void 0===b&&(b=this.generateId()),d.set("id",b),void 0===c&&(c=this.getDefaultMarkerContent()),d.set("content",c),this.isSingleMarkersMode()||this.createMarkerDesc(b,c),this.addMapMarkerItem(d),this.bindMarkerEvents(d)},googlemapModule.prototype.getMarkerIcon=function(){var a=this.getSettings();return a.hasOwnProperty("markerImg")?a.markerImg:null},googlemapModule.prototype.getDefaultMarkerContent=function(){var a=this.getDataContent(),b="";return a.hasOwnProperty("markerDesc")&&"object"==typeof a.markerDesc&&null!==a.markerDesc&&a.markerDesc.hasOwnProperty(bluetrix.getLang())&&(b=this.getDataContent().markerDesc[bluetrix.getLang()]),b},googlemapModule.prototype.bindMarkerEvents=function(a){},googlemapModule.prototype.removeSingleMarker=function(a){var b=this.mapMarkers,c=[];this.removeAllMarkers(),this.clearMarkersDesc();for(var d=0;d<b.length;d++)b[d].get("id")!==a&&c.push(this.getSimpleSingleMapMarker(b[d].get("id"),b[d].position.lat(),b[d].position.lng(),b[d].get("content")));this.renderMarkers(c)},googlemapModule.prototype.removeAllMarkers=function(){if(this.clearMarkersDesc(),this.hasMapMarkers()){for(var a=0;a<this.getMapMarkers().length;a++)this.getMapMarkers()[a].setMap(null);this.clearMapMarkers()}},googlemapModule.prototype.createInfoWindow=function(a){var b=this.getInfoWindowTxt();a&&(b=a),this.setInfoWindow(new google.maps.InfoWindow({content:b})),this.onLoadShowInfowWindow(),this.attachInfoWindowToMapMarker()},googlemapModule.prototype.onLoadShowInfowWindow=function(){google.maps.event.addDomListener(window,"load",this.showInfoWindow())},googlemapModule.prototype.getInfoWindowTxt=function(){return this.getSettings().infotext?this.getSettings().infotext[bluetrix.getLang()]:""},googlemapModule.prototype.isLatLngSet=function(a){return null!==a&&void 0!==a&&a.lat&&a.lng},googlemapModule.prototype.attachInfoWindowToMapMarker=function(){var a=this;google.maps.event.addListener(this.getFirstMarker(),"click",function(){a.showInfoWindow()})},googlemapModule.prototype.showInfoWindow=function(){this.hasInfoWindow()&&this.getInfoWindow().open(this.getMapInstance(),this.getFirstMarker())},googlemapModule.prototype.getInfoWindow=function(){return this.infoWindow},googlemapModule.prototype.setInfoWindow=function(a){this.infoWindow=a},googlemapModule.prototype.hasInfoWindow=function(){return"object"==typeof this.getInfoWindow()&&null!==this.getInfoWindow()&&void 0!==this.getInfoWindow()},googlemapModule.prototype.refresh=function(){this.isMapInstance()&&(this.getMapInstance().setCenter(this.getCenter()),google.maps.event.trigger(this.getMapInstance(),"resize"))},googlemapModule.prototype.getCenter=function(){var a=this.getFirstMarker("simple");return this.isLatLngSet(a)?new google.maps.LatLng(- -a.lat,- -a.lng):new google.maps.LatLng(48,15)},googlemapModule.prototype.getZoom=function(){var a=this.getData().content.zoom;return- -(void 0!==a?a:15)},googlemapModule.prototype.generateId=function(){var a="marker"+Math.round((new Date).getTime()/2);if(void 0!==this.generatedIds)for(var b=0;b<this.generatedIds.length;b++)this.generatedIds[b]===a&&this.generateId();else this.generatedIds=[];return this.generatedIds.push(a),a},googlemapModule.prototype.getMapType=function(){var a=this.getSettings();return a.hasOwnProperty("mapType")&&""!==a.mapType?a.mapType:"roadmap"},googlemapModule.prototype.isSingleMarkersMode=function(){return 1!=- -this.getSettings().markers},googlemapModule.prototype.getMainMarkerId=function(){return"mainMarker"},googlemapModule.prototype.getMainMarker=function(){return this.getSettings().hasOwnProperty("mainMarker")?this.getSettings().mainMarker:null},googlemapModule.prototype.isMainMarker=function(){return"object"==typeof this.getMainMarker()&&null!==this.getMainMarker()&&this.getMainMarker().hasOwnProperty("address")&&"string"==typeof this.getMainMarker().address&&""!==this.getMainMarker().address&&this.getMainMarker().hasOwnProperty("lat")&&"string"==typeof this.getMainMarker().lat&&""!==this.getMainMarker().lat&&this.getMainMarker().hasOwnProperty("lng")&&"string"==typeof this.getMainMarker().lng&&""!==this.getMainMarker().lng},googlemapModule.prototype.getMapInstance=function(){return this.mapInstance},googlemapModule.prototype.setMapInstance=function(a){this.mapInstance=a},googlemapModule.prototype.isMapInstance=function(){return"object"==typeof this.getMapInstance()&&null!==this.getMapInstance()},googlemapModule.prototype.hasMapStyles=function(){var a=this.getSettings();return a.hasOwnProperty("googleMapsStyles")&&"string"==typeof a.googleMapsStyles&&""!==a.googleMapsStyles},googlemapModule.prototype.getMapStyles=function(){if(this.hasMapStyles()){var a=this.getSettings(),b=[];try{b=JSON.parse(a.googleMapsStyles)}catch(c){console.log("Could not parse google map styles.")}return b}return[]},inheritPrototype(headlineModule,Module),inheritPrototype(iconboxModule,Module),inheritPrototype(imageModule,Module),imageModule.prototype.isContentNotEmpty=function(){var a=!0,b=this.getDataContent(),c=bluetrix.getLang();if(b.hasOwnProperty("img-responsive")&&"object"==typeof b["img-responsive"]&&null!==b["img-responsive"]){var d=b["img-responsive"][bluetrix.getLang()];if("object"==typeof d&&null!==d)for(var e in d)d.hasOwnProperty(e)&&""!==d[e]&&(a=!1);return!a}return b.hasOwnProperty("img")&&"object"==typeof b.img&&null!==b.img&&b.img.hasOwnProperty(c)&&"string"==typeof b.img[c]&&""!==b.img[c]&&(a=!1),!a},inheritPrototype(imageboxModule,Module),inheritPrototype(menuv1Module,menuextendModule),inheritPrototype(parallaxsliderModule,Module),parallaxsliderModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.onSlideCreated()},parallaxsliderModule.prototype.initDom=function(){Module.prototype.initDom.call(this),this.arrowTpl=Handlebars.compile($("#module-parallaxsliderarrows").html()),this.sliderContainer=this.element.find(".da-slider")},parallaxsliderModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.createSlider(!0)},parallaxsliderModule.prototype.onSlideCreated=function(){var a=this;a.sliderContainer.on("slideCreated",function(){a.reload(!0)})},parallaxsliderModule.prototype.createSlider=function(a){this.drawArrows(),this.sliderHandler=$("#"+this.getId()).cslider({current:0,bgincrement:50,autoplay:a,interval:4e3})},parallaxsliderModule.prototype.reload=function(a){this.sliderHandler.removeData("cslider"),a||this.goToFirstSlide(),this.sliderContainer.off("OTransitionEnd").off("transitionend").off("webkitTransitionEnd"),this.sliderContainer.find(".da-dots, .da-arrows").remove(),this.createSlider(a)},parallaxsliderModule.prototype.goToFirstSlide=function(){var a=this.sliderContainer.find(".da-dots");a.length>0&&($(a.find("span")[0]).hasClass("da-dots-current")?$(a.find("span")[1]).hasClass("da-dots-current"):$(a.find("span")[0]).trigger("click.cslider"))},parallaxsliderModule.prototype.drawArrows=function(){if(this.sliderContainer.find(".da-arrows").length>0){var a=this.sliderContainer.find(".da-arrows"),b=a.clone(!0,!0);a.remove(),this.sliderContainer.append(b)}else this.sliderContainer.append(this.arrowTpl)},inheritPrototype(parallaxslideritemModule,Module),parallaxslideritemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this);var a=this;setTimeout(function(){a.sliderHandler||(a.sliderHandler=a.element.closest(".da-slider")),a.sliderHandler.trigger("slideCreated")},100)},inheritPrototype(revolutionsliderModule,Module),revolutionsliderModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var a=this,b=20;this.getData().content&&this.getData().content.corrTop&&(b=this.getData().content.corrTop),a.element.on("onAddedModuleToContainer",function(c,d){"revolutionslideritem"==d.getModuleName()&&d.setCorrectionTop(b),a.setStartScreenWidth(d.getData().content.screenwidth)})},revolutionsliderModule.prototype.setStartScreenWidth=function(a){this.screenwidth||(this.screenwidth=a)},revolutionsliderModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.removeBullets()},revolutionsliderModule.prototype.onSiteFullyLoad=function(){this.createSlider()},revolutionsliderModule.prototype.createSlider=function(){var a=this,b={fullWidth:"on",startwidth:a.element.find(".container").outerWidth(),startheight:a.getSettings().height,delay:9e3,hideThumbs:10,navigationType:a.getSettings().hasOwnProperty("navigationType")?a.getSettings().navigationType:"",navigationStyle:a.getSettings().hasOwnProperty("navigationStyle")?a.getSettings().navigationStyle:"",parallaxDisableOnMobile:"on",panZoomDisableOnMobile:"on"};setTimeout(function(){a.sliderInstance=$("#"+a.getId()).revolution(b)},50)},revolutionsliderModule.prototype.removeBullets=function(){this.element.find(".tp-bullets").remove()},inheritPrototype(revolutionslideritemModule,absolutecontainerModule),revolutionslideritemModule.prototype.setCorrectionTop=function(a){this.corrTop=a},revolutionslideritemModule.prototype.bindEvents=function(){if(absolutecontainerModule.prototype.bindEvents.call(this),!CacheSite.getInst().getSiteIsCached()){this.containerTpl=Handlebars.compile($("#module-revolutioncontainer").html());var a=this;a.element.on("onAddedModuleToContainer",function(b,c){a.wrapChilds(c)})}},revolutionslideritemModule.prototype.wrapChilds=function(a){var b=a.element.css("width"),c=a.getSettings().revolutionslider?a.getSettings().revolutionslider:null,d=this.containerTpl({x:this.getPositionAttr(a,"left"),y:this.getPositionAttr(a,"top"),classes:this.getAttr("wrapperClasses",a.moduleName),fsize:this.getAttr("fontSize",a.moduleName),settings:c});a.element.removeAttr("style").css("max-width",b);var e=a.getDataContent("width",!0)/a.getDataContent("height",!0);if(e){var f=parseInt(b.replace("px","")/e);a.element.css("height",Math.round(f)+"px")}a.element.wrap(d)},revolutionslideritemModule.prototype.getPositionAttr=function(a,b){return a&&a.getData().content[b]?a.getData().content[b][bluetrix.getLang()]?a.getData().content[b][bluetrix.getLang()]:a.getData().content[b][bluetrix.getDefLang()]:0},revolutionslideritemModule.prototype.getAttr=function(a,b){return this[a][b]},inheritPrototype(sliderModule,Module),sliderModule.prototype.initDom=function(){Module.prototype.initDom.call(this);var a=this;this.started=!1,this.startSlidePointer=0,this.bulletTpl=Handlebars.compile($("#module-sliderbullet").html()),this.bulletContainer=this.element.find(".carousel-indicators"),this.sliderContainer=this.element.find(".carousel-inner"),this.createListeners(),$(this.sliderContainer).on("slideCreated",function(){a.onSlideCreated()})},sliderModule.prototype.initDomCached=function(){this.sliderContainer=this.element.find(".carousel-inner"),this.startSlidePointer=this.getModulesLength()-1,this.startCarousel()},sliderModule.prototype.createListeners=function(){},sliderModule.prototype.onSlideCreated=function(){this.addBullet()},sliderModule.prototype.addBullet=function(){var a=this.bulletTpl({idCarousel:this.getId(),slideIndex:this.startSlidePointer});this.bulletContainer.append(a),this.startCarousel()},sliderModule.prototype.startCarousel=function(){++this.startSlidePointer==this.getModulesLength()&&(this.started=!0,this.sliderContainer.find(".item").first().addClass("active"),this.startCarouselAnimation())},sliderModule.prototype.startCarouselAnimation=function(){this.tryHideSliderElement(),this.element.find(".slider-module").carousel("cycle")},sliderModule.prototype.tryHideSliderElement=function(){bluetrix.admin||this.element.find(".carousel-inner .item").length>1&&this.element.find(".carousel-indicators, .carousel-control").show()},inheritPrototype(slideritemModule,Module),slideritemModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this);var a=this;setTimeout(function(){a.carouselInner=a.element.closest(".carousel-inner"),a.carouselInner.trigger("slideCreated")},100)},inheritPrototype(socialModule,Module),inheritPrototype(textModule,Module),textModule.prototype.isContentNotEmpty=function(){var a=this.getDataContent();if(a.hasOwnProperty("text")&&"object"==typeof a.text&&null!==a.text&&a.text.hasOwnProperty(bluetrix.getLang())){return""!==Utils.getInst().stripTags(a.text[bluetrix.getLang()])}return!0};var App=function(){function a(){jQuery(window).scroll(function(){jQuery(window).scrollTop()>100?jQuery(".header-fixed .header-sticky").addClass("header-fixed-shrink"):jQuery(".header-fixed .header-sticky").removeClass("header-fixed-shrink")})}function b(){jQuery(document).on("click",".mega-menu .dropdown-menu",function(a){a.stopPropagation()})}function c(){jQuery(".search").click(function(){jQuery(".search-btn").hasClass("fa-search")?(jQuery(".search-open").fadeIn(500),jQuery(".search-btn").removeClass("fa-search"),jQuery(".search-btn").addClass("fa-times")):(jQuery(".search-open").fadeOut(500),jQuery(".search-btn").addClass("fa-search"),jQuery(".search-btn").removeClass("fa-times"))})}function d(){jQuery(".header-v5 .search-button").click(function(){jQuery(".header-v5 .search-open").slideDown()}),jQuery(".header-v5 .search-close").click(function(){jQuery(".header-v5 .search-open").slideUp()}),jQuery(window).scroll(function(){jQuery(this).scrollTop()>1&&jQuery(".header-v5 .search-open").fadeOut("fast")})}function e(){jQuery(".list-toggle").on("click",function(){jQuery(this).toggleClass("active")})}function f(){var a=function(){$(".equal-height-columns").each(function(){heights=[],$(".equal-height-column",this).each(function(){$(this).removeAttr("style"),heights.push($(this).height())}),$(".equal-height-column",this).height(Math.max.apply(Math,heights))})};a(),$(window).resize(function(){a()})}function g(){$(".hoverSelector").on("hover",function(a){$(".hoverSelectorBlock",this).toggleClass("show"),a.stopPropagation()})}function h(){jQuery(".tooltips").tooltip(),jQuery(".tooltips-show").tooltip("show"),jQuery(".tooltips-hide").tooltip("hide"),jQuery(".tooltips-toggle").tooltip("toggle"),jQuery(".tooltips-destroy").tooltip("destroy"),jQuery(".popovers").popover(),jQuery(".popovers-show").popover("show"),jQuery(".popovers-hide").popover("hide"),jQuery(".popovers-toggle").popover("toggle"),jQuery(".popovers-destroy").popover("destroy")}return{init:function(){h(),c(),d(),e(),a(),b(),g(),f()},initScrollBar:function(){jQuery(".mCustomScrollbar").mCustomScrollbar({theme:"minimal",scrollInertia:300,scrollEasing:"linear"})},initCounter:function(){jQuery(".counter").counterUp({delay:10,time:1e3})},initParallaxBg:function(){jQuery(window).load(function(){jQuery(".parallaxBg").parallax("50%",.2),jQuery(".parallaxBg1").parallax("50%",.4)})},initAnimateDropdown:function(){function a(){jQuery(".dropdown").on("show.bs.dropdown",function(a){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),jQuery(".dropdown").on("hide.bs.dropdown",function(a){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideUp()})}jQuery(window).resize(function(){jQuery(window).width()>768&&a()}),jQuery(window).width()>768&&a()}}}();

"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function AquaSlider(t,e,i,n){this.handler=t,this.template=e,this.data=i,"object"===(void 0===n?"undefined":_typeof(n))&&null!==n?this.config=$.extend(this.getDefaultConfig(),n):this.config=this.getDefaultConfig(),this.handler.length>0&&((this.isForceRender()||!bluetrix.isCached()||bluetrix.isAdmin())&&this.render(),this.setSliderHandler(),this.init(),this.bindEvents())}function AquaSearch(t){this.handler=void 0,this.config=$.extend(this.getDefaultConfig(),t),this.filters={},this.results=[],this.id=this.generateId(),this.page=0,this.isOpen=!1,this.searchRequest=void 0,this.isSearchUrlExist()?this.init():console.warn("`searchUrl` is not defined.")}function catchTelephoneClick(){$(document).on("click","a",function(){$(this).attr("href").includes("tel:")&&aquaTrackFormTelephoneMiddleware()})}function aquaTrackInputKeyUpMiddleware(t){var e=$(t).closest('[data-par="title"]');0===e.length&&(e=$(t).closest("form").closest(".bluetrix-container").find(".headline-module").first('[data-par="title"]'));var i=e=e.text().trim();if(i="at-firstkeyup-"+(i=i.replace(/\s/g,"X")).toLowerCase(),!1===window.hasOwnProperty("aquaTrackFirstInputKeyup")&&null===localStorage.getItem(i));window.aquaTrackFirstInputKeyup=!0,localStorage.setItem(i,"true")}function aquaTrackFormSubmitMiddlewareOncePerPageLoad(t){var e=t;if(t="at-submit-"+(t=t.replace(/\s/g,"X")).toLowerCase(),null===localStorage.getItem(t))e.trim();localStorage.setItem(t,"true")}function aquaTrackFormTelephoneMiddleware(){localStorage.getItem("at-telephone"),localStorage.setItem("at-telephone","true")}function aquaTrackMenuClickMiddleware(t){}function aquaTrackSearchInputBlurMiddleware(t){aquaTrackMiddleware("internal search","search input field","genericEvent",t.toLowerCase())}function aquaTrackSearchSuggestionClickMiddleware(t){aquaTrackMiddleware("internal search","recommendation search click","genericEvent",t.toLowerCase())}function aquaTrackMiddleware(t,e,i,n){if(window.hasOwnProperty("dataLayer")){var o=void 0!==i?i:"genericEvent",s=void 0!==n?n:window.location.pathname;dataLayer.push({event:o,eventCategory:t,eventAction:e,eventLabel:s,eventNonInteraction:!1})}}function aquaaffiliateproductsModule(t){Module.call(this,t)}function aquaallpublicationsModule(t){Module.call(this,t),this.tag="",this.page=0,this.limit=6,this.firstPageExtraItems=2,this.loaded=0}function aquaclinicsModule(t){Module.call(this,t)}function aquaclinicsmapModule(t){googlemapModule.call(this,t)}function aquafootercolumnModule(t){Module.call(this,t)}function aquafooteritemModule(t){Module.call(this,t)}function aquamenuModule(t){Module.call(this,t),this.decoratedMenuOpen=!1,this.submenuOpen=!1,this.isSidebarMenuOpen=!1}function aquanavbarModule(t){Module.call(this,t)}function aquanewsroomModule(t){Module.call(this,t)}function aquapersonalModule(t){Module.call(this,t),this.toLoad=9,this.loaded=0,this.limitOfResultsOnMobile=6,this.limitOfLoadInOnePeriod=9,this.employees=null,this.isMobileLoading=!1}function aquapricingtableModule(t){Module.call(this,t)}function aquapublicationdataModule(t){Module.call(this,t)}function aquapublicationssliderModule(t){Module.call(this,t)}function aquareviewModule(t){Module.call(this,t)}function aquarichboxteaserModule(t){Module.call(this,t)}function aquaringossbuttonModule(t){Module.call(this,t)}function aquasearchModule(t){Module.call(this,t)}function aquaservicescontainerModule(t){Module.call(this,t)}function aquasidebarModule(t){Module.call(this,t)}!function(t){var e={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};t.fn.bxSlider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},s=this,a=t(window).width(),r=t(window).height();if(!t(s).data("bxSlider")){var l=function(){t(s).data("bxSlider")||(o.settings=t.extend({},e,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=s.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"===o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!==o.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"===o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),s.data("origStyle",s.attr("style")),s.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),d())},d=function(){var e=o.children.eq(o.settings.startSlide);s.wrap('<div class="'+o.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),o.viewport=s.parent(),o.settings.ariaLive&&!o.settings.ticker&&o.viewport.attr("aria-live","polite"),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),s.css({width:"horizontal"===o.settings.mode?1e3*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?s.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.children.css({float:"horizontal"===o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",f()),"horizontal"===o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"===o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"===o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&q(),o.active.last=o.settings.startSlide===m()-1,o.settings.video&&s.fitVids(),"none"===o.settings.preloadImages?e=null:("all"===o.settings.preloadImages||o.settings.ticker)&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.controls&&M(),o.settings.auto&&o.settings.autoControls&&w(),o.settings.pager&&S(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),null===e?h():u(e,h)},u=function(e,i){var n=e.find('img:not([src=""]), iframe').length,o=0;0!==n?e.find('img:not([src=""]), iframe').each(function(){t(this).one("load error",function(){++o===n&&i()}).each(function(){(this.complete||""==this.src)&&t(this).trigger("load")})}):i()},h=function(){if(o.settings.infiniteLoop&&"fade"!==o.settings.mode&&!o.settings.ticker){var e="vertical"===o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone(!0).addClass("bx-clone"),n=o.children.slice(-e).clone(!0).addClass("bx-clone");o.settings.ariaHidden&&(i.attr("aria-hidden",!0),n.attr("aria-hidden",!0)),s.append(i).prepend(n)}o.loader.remove(),_(),"vertical"===o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(c()),s.redrawSlider(),o.settings.onSliderLoad.call(s,o.active.index),o.initialized=!0,o.settings.responsive&&t(window).on("resize",Y),o.settings.auto&&o.settings.autoStart&&(m()>1||o.settings.autoSlideForOnePage)&&O(),o.settings.ticker&&R(),o.settings.pager&&E(o.settings.startSlide),o.settings.controls&&D(),o.settings.touchEnabled&&!o.settings.ticker&&N(),o.settings.keyboardEnabled&&!o.settings.ticker&&t(document).keydown(F)},c=function(){var e=0,n=t();if("vertical"===o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var s=1===o.settings.moveSlides?o.active.index:o.active.index*y();for(n=o.children.eq(s),i=1;i<=o.settings.maxSlides-1;i++)n=s+i>=o.children.length?n.add(o.children.eq(i-1)):n.add(o.children.eq(s+i))}else n=o.children.eq(o.active.index);else n=o.children;return"vertical"===o.settings.mode?(n.each(function(i){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"===o.viewport.css("box-sizing")?e+=parseFloat(o.viewport.css("padding-top"))+parseFloat(o.viewport.css("padding-bottom"))+parseFloat(o.viewport.css("border-top-width"))+parseFloat(o.viewport.css("border-bottom-width")):"padding-box"===o.viewport.css("box-sizing")&&(e+=parseFloat(o.viewport.css("padding-top"))+parseFloat(o.viewport.css("padding-bottom"))),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"===o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},f=function(){var t=o.settings.slideWidth,e=o.viewport.width();if(0===o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"===o.settings.mode)t=e;else if(o.settings.maxSlides>1&&"horizontal"===o.settings.mode){if(e>o.maxThreshold)return t;e<o.minThreshold?t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides:o.settings.shrinkItems&&(t=Math.floor((e+o.settings.slideMargin)/Math.ceil((e+o.settings.slideMargin)/(t+o.settings.slideMargin))-o.settings.slideMargin))}return t},g=function(){var t=1,e=null;return"horizontal"===o.settings.mode&&o.settings.slideWidth>0?o.viewport.width()<o.minThreshold?t=o.settings.minSlides:o.viewport.width()>o.maxThreshold?t=o.settings.maxSlides:(e=o.children.first().width()+o.settings.slideMargin,t=Math.floor((o.viewport.width()+o.settings.slideMargin)/e)||1):"vertical"===o.settings.mode&&(t=o.settings.minSlides),t},m=function(){var t=0,e=0,i=0;if(o.settings.moveSlides>0){if(!o.settings.infiniteLoop){for(;e<o.children.length;)++t,e=i+g(),i+=o.settings.moveSlides<=g()?o.settings.moveSlides:g();return i}t=Math.ceil(o.children.length/y())}else t=Math.ceil(o.children.length/g());return t},y=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=g()?o.settings.moveSlides:g()},_=function(){var t,e,i;o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop?"horizontal"===o.settings.mode?(t=(e=o.children.last()).position(),v(-(t.left-(o.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===o.settings.mode&&(i=o.children.length-o.settings.minSlides,t=o.children.eq(i).position(),v(-t.top,"reset",0)):(t=o.children.eq(o.active.index*y()).position(),o.active.index===m()-1&&(o.active.last=!0),void 0!==t&&("horizontal"===o.settings.mode?v(-t.left,"reset",0):"vertical"===o.settings.mode&&v(-t.top,"reset",0)))},v=function e(i,n,a,r){var l,d;o.usingCSS?(d="vertical"===o.settings.mode?"translate3d(0, "+i+"px, 0)":"translate3d("+i+"px, 0, 0)",s.css("-"+o.cssPrefix+"-transition-duration",a/1e3+"s"),"slide"===n?(s.css(o.animProp,d),0!==a?s.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(s)&&(s.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),I())}):I()):"reset"===n?s.css(o.animProp,d):"ticker"===n&&(s.css("-"+o.cssPrefix+"-transition-timing-function","linear"),s.css(o.animProp,d),0!==a?s.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(i){t(i.target).is(s)&&(s.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),e(r.resetValue,"reset",0),H())}):(e(r.resetValue,"reset",0),H()))):((l={})[o.animProp]=i,"slide"===n?s.animate(l,a,o.settings.easing,function(){I()}):"reset"===n?s.css(o.animProp,i):"ticker"===n&&s.animate(l,a,"linear",function(){e(r.resetValue,"reset",0),H()}))},b=function(){for(var e="",i="",n=m(),s=0;s<n;s++)i="",o.settings.buildPager&&t.isFunction(o.settings.buildPager)||o.settings.pagerCustom?(i=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(i=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+i+"</a></div>";o.pagerEl.html(e)},S=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),b()),o.pagerEl.on("click touchend","a",A)},M=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.on("click touchend",C),o.controls.prev.on("click touchend",x),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},w=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",T),o.controls.autoEl.on("click",".bx-stop",k),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),P(o.settings.autoStart?"stop":"start")},q=function(){o.children.each(function(e){var i=t(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&t(this).append('<div class="bx-caption"><span>'+i+"</span></div>")})},C=function(t){t.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&s.stopAuto(),s.goToNextSlide())},x=function(t){t.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&s.stopAuto(),s.goToPrevSlide())},T=function(t){s.startAuto(),t.preventDefault()},k=function(t){s.stopAuto(),t.preventDefault()},A=function(e){var i,n;e.preventDefault(),o.controls.el.hasClass("disabled")||(o.settings.auto&&o.settings.stopAutoOnClick&&s.stopAuto(),void 0!==(i=t(e.currentTarget)).attr("data-slide-index")&&(n=parseInt(i.attr("data-slide-index")))!==o.active.index&&s.goToSlide(n))},E=function(e){var i=o.children.length;if("short"===o.settings.pagerType)return o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),void o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i);o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,n){t(n).find("a").eq(e).addClass("active")})},I=function(){if(o.settings.infiniteLoop){var t="";0===o.active.index?t=o.children.eq(0).position():o.active.index===m()-1&&o.carousel?t=o.children.eq((m()-1)*y()).position():o.active.index===o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"===o.settings.mode?v(-t.left,"reset",0):"vertical"===o.settings.mode&&v(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter.call(s,o.children.eq(o.active.index),o.oldIndex,o.active.index)},P=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},D=function(){1===m()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0===o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index===m()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},L=function(){s.startAuto()},$=function(){s.stopAuto()},O=function(){o.settings.autoDelay>0?setTimeout(s.startAuto,o.settings.autoDelay):(s.startAuto(),t(window).focus(L).blur($)),o.settings.autoHover&&s.hover(function(){o.interval&&(s.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(s.startAuto(!0),o.autoPaused=null)})},R=function(){var e,i,n,a,r,l,d,u,h=0;"next"===o.settings.autoDirection?s.append(o.children.clone().addClass("bx-clone")):(s.prepend(o.children.clone().addClass("bx-clone")),e=o.children.first().position(),h="horizontal"===o.settings.mode?-e.left:-e.top),v(h,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&(o.usingCSS?(a="horizontal"===o.settings.mode?4:5,o.viewport.hover(function(){i=s.css("-"+o.cssPrefix+"-transform"),n=parseFloat(i.split(",")[a]),v(n,"reset",0)},function(){u=0,o.children.each(function(e){u+="horizontal"===o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),r=o.settings.speed/u,l="horizontal"===o.settings.mode?"left":"top",d=r*(u-Math.abs(parseInt(n))),H(d)})):o.viewport.hover(function(){s.stop()},function(){u=0,o.children.each(function(e){u+="horizontal"===o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),r=o.settings.speed/u,l="horizontal"===o.settings.mode?"left":"top",d=r*(u-Math.abs(parseInt(s.css(l)))),H(d)})),H()},H=function(t){var e,i,n=t||o.settings.speed,a={left:0,top:0},r={left:0,top:0};"next"===o.settings.autoDirection?a=s.find(".bx-clone").first().position():r=o.children.first().position(),e="horizontal"===o.settings.mode?-a.left:-a.top,i="horizontal"===o.settings.mode?-r.left:-r.top,v(e,"ticker",n,{resetValue:i})},F=function(e){var i=document.activeElement.tagName.toLowerCase();if(null==new RegExp(i,["i"]).exec("input|textarea")&&function(e){var i=t(window),n={top:i.scrollTop(),left:i.scrollLeft()},o=e.offset();return n.right=n.left+i.width(),n.bottom=n.top+i.height(),o.right=o.left+e.outerWidth(),o.bottom=o.top+e.outerHeight(),!(n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)}(s)){if(39===e.keyCode)return C(e),!1;if(37===e.keyCode)return x(e),!1}},N=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.on("touchstart MSPointerDown pointerdown",B),o.viewport.on("click",".bxslider a",function(t){o.viewport.hasClass("click-disabled")&&(t.preventDefault(),o.viewport.removeClass("click-disabled"))})},B=function(t){if("touchstart"===t.type||0===t.button)if(o.controls.el.addClass("disabled"),o.working)o.controls.el.removeClass("disabled");else{o.touch.originalPos=s.position();var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e];if("function"==typeof PointerEvent&&void 0===e.pointerId)return;o.touch.start.x=i[0].pageX,o.touch.start.y=i[0].pageY,o.viewport.get(0).setPointerCapture&&(o.pointerId=e.pointerId,o.viewport.get(0).setPointerCapture(o.pointerId)),o.originalClickTarget=e.originalTarget||e.target,o.originalClickButton=e.button,o.originalClickButtons=e.buttons,o.originalEventType=e.type,o.hasMove=!1,o.viewport.on("touchmove MSPointerMove pointermove",z),o.viewport.on("touchend MSPointerUp pointerup",X),o.viewport.on("MSPointerCancel pointercancel",V)}},V=function t(e){e.preventDefault(),v(o.touch.originalPos.left,"reset",0),o.controls.el.removeClass("disabled"),o.viewport.off("MSPointerCancel pointercancel",t),o.viewport.off("touchmove MSPointerMove pointermove",z),o.viewport.off("touchend MSPointerUp pointerup",X),o.viewport.get(0).releasePointerCapture&&o.viewport.get(0).releasePointerCapture(o.pointerId)},z=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-o.touch.start.x),s=Math.abs(i[0].pageY-o.touch.start.y),a=0,r=0;o.hasMove=!0,3*n>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>n&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"touchmove"!==t.type&&t.preventDefault(),"fade"!==o.settings.mode&&o.settings.oneToOneTouch&&("horizontal"===o.settings.mode?(r=i[0].pageX-o.touch.start.x,a=o.touch.originalPos.left+r):(r=i[0].pageY-o.touch.start.y,a=o.touch.originalPos.top+r),v(a,"reset",0))},X=function e(i){i.preventDefault(),o.viewport.off("touchmove MSPointerMove pointermove",z),o.controls.el.removeClass("disabled");var n=i.originalEvent,a=void 0!==n.changedTouches?n.changedTouches:[n],r=0,l=0;o.touch.end.x=a[0].pageX,o.touch.end.y=a[0].pageY,"fade"===o.settings.mode?(l=Math.abs(o.touch.start.x-o.touch.end.x))>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto()):("horizontal"===o.settings.mode?(l=o.touch.end.x-o.touch.start.x,r=o.touch.originalPos.left):(l=o.touch.end.y-o.touch.start.y,r=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0===o.active.index&&l>0||o.active.last&&l<0)?v(r,"reset",200):Math.abs(l)>=o.settings.swipeThreshold?(l<0?s.goToNextSlide():s.goToPrevSlide(),s.stopAuto()):v(r,"reset",200)),o.viewport.off("touchend MSPointerUp pointerup",e),o.viewport.get(0).releasePointerCapture&&o.viewport.get(0).releasePointerCapture(o.pointerId),!1!==o.hasMove||0!==o.originalClickButton&&"touchstart"!==o.originalEventType||t(o.originalClickTarget).trigger({type:"click",button:o.originalClickButton,buttons:o.originalClickButtons})},Y=function e(i){if(o.initialized)if(o.working)window.setTimeout(e,10);else{var n=t(window).width(),l=t(window).height();a===n&&r===l||(a=n,r=l,s.redrawSlider(),o.settings.onSliderResize.call(s,o.active.index))}},W=function(t){var e=g();o.settings.ariaHidden&&!o.settings.ticker&&(o.children.attr("aria-hidden","true"),o.children.slice(t,t+e).attr("aria-hidden","false"))};return s.goToSlide=function(e,i){var n,a,r,l,d=!0,u=0,h={left:0,top:0},p=null;if(o.oldIndex=o.active.index,o.active.index=function(t){return t<0?o.settings.infiniteLoop?m()-1:o.active.index:t>=m()?o.settings.infiniteLoop?0:o.active.index:t}(e),!o.working&&o.active.index!==o.oldIndex){if(o.working=!0,void 0!==(d=o.settings.onSlideBefore.call(s,o.children.eq(o.active.index),o.oldIndex,o.active.index))&&!d)return o.active.index=o.oldIndex,void(o.working=!1);"next"===i?o.settings.onSlideNext.call(s,o.children.eq(o.active.index),o.oldIndex,o.active.index)||(d=!1):"prev"===i&&(o.settings.onSlidePrev.call(s,o.children.eq(o.active.index),o.oldIndex,o.active.index)||(d=!1)),o.active.last=o.active.index>=m()-1,(o.settings.pager||o.settings.pagerCustom)&&E(o.active.index),o.settings.controls&&D(),"fade"===o.settings.mode?(o.settings.adaptiveHeight&&o.viewport.height()!==c()&&o.viewport.animate({height:c()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),I()})):(o.settings.adaptiveHeight&&o.viewport.height()!==c()&&o.viewport.animate({height:c()},o.settings.adaptiveHeightSpeed),!o.settings.infiniteLoop&&o.carousel&&o.active.last?"horizontal"===o.settings.mode?(h=(p=o.children.eq(o.children.length-1)).position(),u=o.viewport.width()-p.outerWidth()):(n=o.children.length-o.settings.minSlides,h=o.children.eq(n).position()):o.carousel&&o.active.last&&"prev"===i?(a=1===o.settings.moveSlides?o.settings.maxSlides-y():(m()-1)*y()-(o.children.length-o.settings.maxSlides),h=(p=s.children(".bx-clone").eq(a)).position()):"next"===i&&0===o.active.index?(h=s.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1):e>=0&&(l=e*parseInt(y()),h=o.children.eq(l).position()),void 0!==h&&(r="horizontal"===o.settings.mode?-(h.left-u):-h.top,v(r,"slide",o.settings.speed)),o.working=!1),o.settings.ariaHidden&&W(o.active.index*y())}},s.goToNextSlide=function(){if((o.settings.infiniteLoop||!o.active.last)&&!0!==o.working){var t=parseInt(o.active.index)+1;s.goToSlide(t,"next")}},s.goToPrevSlide=function(){if((o.settings.infiniteLoop||0!==o.active.index)&&!0!==o.working){var t=parseInt(o.active.index)-1;s.goToSlide(t,"prev")}},s.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"===o.settings.autoDirection?s.goToNextSlide():s.goToPrevSlide()},o.settings.pause),o.settings.onAutoChange.call(s,!0),o.settings.autoControls&&!0!==t&&P("stop"))},s.stopAuto=function(t){o.autoPaused&&(o.autoPaused=!1),o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.onAutoChange.call(s,!1),o.settings.autoControls&&!0!==t&&P("start"))},s.getCurrentSlide=function(){return o.active.index},s.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},s.getSlideElement=function(t){return o.children.eq(t)},s.getSlideCount=function(){return o.children.length},s.isWorking=function(){return o.working},s.redrawSlider=function(){o.children.add(s.find(".bx-clone")).outerWidth(f()),o.viewport.css("height",c()),o.settings.ticker||_(),o.active.last&&(o.active.index=m()-1),o.active.index>=m()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(b(),E(o.active.index)),o.settings.ariaHidden&&W(o.active.index*y())},s.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!==t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!==t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&!o.settings.pagerCustom&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).off("resize",Y),o.settings.keyboardEnabled&&t(document).off("keydown",F),t(this).removeData("bxSlider"),t(window).off("blur",$).off("focus",L))},s.reloadSlider=function(e){void 0!==e&&(n=e),s.destroySlider(),l(),t(s).data("bxSlider",this)},l(),t(s).data("bxSlider",this),this}}}(jQuery),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))){var e=require("jquery");module.exports=t(e)}else t(window.jQuery||window.Zepto||window.$)}(function(t){t.fn.serializeJSON=function(e){var i,n,o,s,a,r,l,d,u,h,c,p;return i=t.serializeJSON,n=this,o=i.setupOpts(e),s=n.serializeArray(),i.readCheckboxUncheckedValues(s,o,n),a={},t.each(s,function(t,e){r=e.name,l=e.value,u=i.extractTypeAndNameWithNoType(r),h=u.nameWithNoType,(c=u.type)||(c=i.attrFromInputWithName(n,r,"data-value-type")),i.validateType(r,c,o),"skip"!==c&&(p=i.splitInputNameIntoKeysArray(h),d=i.parseValue(l,r,c,o),!d&&i.shouldSkipFalsy(n,r,h,c,o)||i.deepSet(a,p,d,o))}),a},t.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,skipFalsyValuesForTypes:[],skipFalsyValuesForFields:[],customTypes:{},defaultTypes:{string:function(t){return String(t)},number:function(t){return Number(t)},boolean:function(t){return-1===["false","null","undefined","","0"].indexOf(t)},null:function(t){return-1===["false","null","undefined","","0"].indexOf(t)?t:null},array:function(t){return JSON.parse(t)},object:function(t){return JSON.parse(t)},auto:function(e){return t.serializeJSON.parseValue(e,null,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})},skip:null},useIntKeysAsArrayIndex:!1},setupOpts:function(e){var i,n,o,s,a,r;for(i in r=t.serializeJSON,null==e&&(e={}),o=r.defaultOptions||{},n=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","skipFalsyValuesForTypes","skipFalsyValuesForFields","customTypes","defaultTypes","useIntKeysAsArrayIndex"],e)if(-1===n.indexOf(i))throw new Error("serializeJSON ERROR: invalid option '"+i+"'. Please use one of "+n.join(", "));return a=(s=function(t){return!1!==e[t]&&""!==e[t]&&(e[t]||o[t])})("parseAll"),{checkboxUncheckedValue:s("checkboxUncheckedValue"),parseNumbers:a||s("parseNumbers"),parseBooleans:a||s("parseBooleans"),parseNulls:a||s("parseNulls"),parseWithFunction:s("parseWithFunction"),skipFalsyValuesForTypes:s("skipFalsyValuesForTypes"),skipFalsyValuesForFields:s("skipFalsyValuesForFields"),typeFunctions:t.extend({},s("defaultTypes"),s("customTypes")),useIntKeysAsArrayIndex:s("useIntKeysAsArrayIndex")}},parseValue:function(e,i,n,o){var s,a;return s=t.serializeJSON,a=e,o.typeFunctions&&n&&o.typeFunctions[n]?a=o.typeFunctions[n](e):o.parseNumbers&&s.isNumeric(e)?a=Number(e):!o.parseBooleans||"true"!==e&&"false"!==e?o.parseNulls&&"null"==e?a=null:o.typeFunctions&&o.typeFunctions.string&&(a=o.typeFunctions.string(e)):a="true"===e,o.parseWithFunction&&!n&&(a=o.parseWithFunction(a,i)),a},isObject:function(t){return t===Object(t)},isUndefined:function(t){return void 0===t},isValidArrayIndex:function(t){return/^[0-9]+$/.test(String(t))},isNumeric:function(t){return t-parseFloat(t)>=0},optionKeys:function(t){if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)i.push(e);return i},readCheckboxUncheckedValues:function(e,i,n){var o,s,a;null==i&&(i={}),t.serializeJSON,o="input[type=checkbox][name]:not(:checked):not([disabled])",n.find(o).add(n.filter(o)).each(function(n,o){if(s=t(o),null==(a=s.attr("data-unchecked-value"))&&(a=i.checkboxUncheckedValue),null!=a){if(o.name&&-1!==o.name.indexOf("[]["))throw new Error("serializeJSON ERROR: checkbox unchecked values are not supported on nested arrays of objects like '"+o.name+"'. See https://github.com/marioizquierdo/jquery.serializeJSON/issues/67");e.push({name:o.name,value:a})}})},extractTypeAndNameWithNoType:function(t){var e;return(e=t.match(/(.*):([^:]+)$/))?{nameWithNoType:e[1],type:e[2]}:{nameWithNoType:t,type:null}},shouldSkipFalsy:function(e,i,n,o,s){var a=t.serializeJSON.attrFromInputWithName(e,i,"data-skip-falsy");if(null!=a)return"false"!==a;var r=s.skipFalsyValuesForFields;if(r&&(-1!==r.indexOf(n)||-1!==r.indexOf(i)))return!0;var l=s.skipFalsyValuesForTypes;return null==o&&(o="string"),!(!l||-1===l.indexOf(o))},attrFromInputWithName:function(t,e,i){var n;return n='[name="'+e.replace(/(:|\.|\[|\]|\s)/g,"\\$1")+'"]',t.find(n).add(t.filter(n)).attr(i)},validateType:function(e,i,n){var o,s;if(o=(s=t.serializeJSON).optionKeys(n?n.typeFunctions:s.defaultOptions.defaultTypes),i&&-1===o.indexOf(i))throw new Error("serializeJSON ERROR: Invalid type "+i+" found in input name '"+e+"', please use one of "+o.join(", "));return!0},splitInputNameIntoKeysArray:function(e){var i;return t.serializeJSON,i=e.split("["),""===(i=t.map(i,function(t){return t.replace(/\]/g,"")}))[0]&&i.shift(),i},deepSet:function(e,i,n,o){var s,a,r,l,d,u;if(null==o&&(o={}),(u=t.serializeJSON).isUndefined(e))throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined");if(!i||0===i.length)throw new Error("ArgumentError: param 'keys' expected to be an array with least one element");s=i[0],1===i.length?""===s?e.push(n):e[s]=n:(a=i[1],""===s&&(d=e[l=e.length-1],s=u.isObject(d)&&(u.isUndefined(d[a])||i.length>2)?l:l+1),""===a?!u.isUndefined(e[s])&&t.isArray(e[s])||(e[s]=[]):o.useIntKeysAsArrayIndex&&u.isValidArrayIndex(a)?!u.isUndefined(e[s])&&t.isArray(e[s])||(e[s]=[]):!u.isUndefined(e[s])&&u.isObject(e[s])||(e[s]={}),r=i.slice(1),u.deepSet(e[s],r,n,o))}}}),function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Muuri=e()}(void 0,function(){var t={},e="layoutEnd";function i(){this._events={},this._queue=[],this._counter=0,this._isDestroyed=!1}i.prototype.on=function(t,e){if(this._isDestroyed)return this;var i=this._events[t];return i||(i=this._events[t]=[]),i.push(e),this},i.prototype.off=function(t,e){if(this._isDestroyed)return this;var i=this._events[t];if(!i||!i.length)return this;if(!e)return i.length=0,this;for(var n=i.length;n--;)e===i[n]&&i.splice(n,1);return this},i.prototype.emit=function(t,e,i,n){if(this._isDestroyed)return this;var o=this._events[t];if(!o||!o.length)return this;var s,a=this._queue,r=a.length,l=arguments.length-1;for(s=0;s<o.length;s++)a.push(o[s]);for(++this._counter,s=r,r=a.length;s<r;s++)if(0===l?a[s]():1===l?a[s](e):2===l?a[s](e,i):a[s](e,i,n),this._isDestroyed)return this;return--this._counter,this._counter||(a.length=0),this},i.prototype.destroy=function(){if(this._isDestroyed)return this;var t,e=this._events;for(t in this._isDestroyed=!0,this._queue.length=this._counter=0,e)e[t]&&(e[t].length=0,e[t]=void 0);return this};var n="transform",o="transform",s=window.document.documentElement.style,a=!1;["","Webkit","Moz","O","ms"].forEach(function(t){if(!a){var e=t?t+"Transform":"transform";void 0!==s[e]&&(t=t.toLowerCase(),n=t?"-"+t+"-transform":"transform",o=e,a=!0)}});var r="function"==typeof WeakMap?new WeakMap:null;function l(t,e){var i=r&&r.get(t);return i||(i=window.getComputedStyle(t,null),r&&r.set(t,i)),i.getPropertyValue("transform"===e?n:e)}var d=/([A-Z])/g;function u(t){return t.replace(d,"-$1").toLowerCase()}var h="function";function c(t){return(void 0===t?"undefined":_typeof(t))===h}var p="transform";function f(t,e){for(var i in e)t.style[i===p?o:i]=e[i]}function g(t){this._element=t,this._animation=null,this._callback=null,this._props=[],this._values=[],this._keyframes=[],this._options={},this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}g.prototype.start=function(t,e,i){if(!this._isDestroyed){var n=this._animation,o=this._props,s=this._values,a=i||0,r=!1;if(n){var l,d=0;for(var u in e)if(++d,-1===(l=o.indexOf(u))||e[u]!==s[l]){r=!0;break}r||d===o.length||(r=!0)}if(r&&n.cancel(),this._callback=c(a.onFinish)?a.onFinish:null,!n||r){for(u in o.length=s.length=0,e)o.push(u),s.push(e[u]);var h=this._keyframes;h[0]=t,h[1]=e;var p=this._options;p.duration=a.duration||300,p.easing=a.easing||"ease";var g=this._element;(n=g.animate(h,p)).onfinish=this._onFinish,this._animation=n,f(g,e)}}},g.prototype.stop=function(t){if(!this._isDestroyed&&this._animation){var e,i,n,s=this._element,a=this._props,r=this._values;if(t)f(s,t);else for(n=0;n<a.length;n++)i=l(s,u(e=a[n])),s.style["transform"===e?o:e]=i;this._animation.cancel(),this._animation=this._callback=null,a.length=r.length=0}},g.prototype.isAnimating=function(){return!!this._animation},g.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=this._options=this._keyframes=null,this._isDestroyed=!0)},g.prototype._onFinish=function(){var t=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,t&&t()};var m=["","webkit","moz","ms","o","Webkit","Moz","MS","O"];function y(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),s=0;s<m.length;){if((n=(i=m[s])?i+o:e)in t)return n;++s}return null}var _=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return this.setTimeout(function(){t(1e3/60)},1e3/60)}).bind(window),v=!1;try{var b=Object.defineProperty({},"passive",{get:function(){v=!0}});window.addEventListener("testPassive",null,b),window.removeEventListener("testPassive",null,b)}catch(t){}var S="start",M="move",w="end",q="cancel",C=!!("ontouchstart"in window||window.TouchEvent),x=!!window.PointerEvent,T=!!window.navigator.msPointerEnabled,k=/(android)/i.test(window.navigator.userAgent),A=!!v&&{passive:!0},E=y(window.document.documentElement.style,"touchAction"),I="auto";function P(t,e){this._element=t,this._emitter=new i,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._startEvent=null,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._preStartCheck=this._preStartCheck.bind(this),this._abortNonCancelable=this._abortNonCancelable.bind(this),this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this.setCssProps(e),this._touchAction||this.setTouchAction(I),t.addEventListener("dragstart",P._preventDefault,!1),t.addEventListener(P._events.start,this._preStartCheck,A),!C||x||T||t.addEventListener(P._mouseEvents.start,this._preStartCheck,A)}function D(){this._nextStep=null,this._queue=[],this._reads={},this._writes={},this._batch=[],this._batchReads={},this._batchWrites={},this._step=this._step.bind(this)}P._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},P._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},P._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},P._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},P._events=x?P._pointerEvents:T?P._msPointerEvents:C?P._touchEvents:P._mouseEvents,P._emitter=new i,P._activeInstances=[],P._preventDefault=function(t){t.preventDefault&&!1!==t.cancelable&&t.preventDefault()},P._activateInstance=function(t){P._activeInstances.indexOf(t)>-1||(P._activeInstances.push(t),P._emitter.on(M,t._onMove),P._emitter.on(q,t._onCancel),P._emitter.on(w,t._onEnd),1===P._activeInstances.length&&P._bindListeners())},P._deactivateInstance=function(t){var e=P._activeInstances.indexOf(t);-1!==e&&(P._activeInstances.splice(e,1),P._emitter.off(M,t._onMove),P._emitter.off(q,t._onCancel),P._emitter.off(w,t._onEnd),P._activeInstances.length||P._unbindListeners())},P._bindListeners=function(){var t=P._events;window.addEventListener(t.move,P._onMove,A),window.addEventListener(t.end,P._onEnd,A),t.cancel&&window.addEventListener(t.cancel,P._onCancel,A)},P._unbindListeners=function(){var t=P._events;window.removeEventListener(t.move,P._onMove,A),window.removeEventListener(t.end,P._onEnd,A),t.cancel&&window.removeEventListener(t.cancel,P._onCancel,A)},P._getEventPointerId=function(t){return"number"==typeof t.pointerId?t.pointerId:t.changedTouches?t.changedTouches[0]?t.changedTouches[0].identifier:null:1},P._getTouchById=function(t,e){if("number"==typeof t.pointerId)return t.pointerId===e?t:null;if(t.changedTouches){for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].identifier===e)return t.changedTouches[i];return null}return t},P._onMove=function(t){P._emitter.emit(M,t)},P._onCancel=function(t){P._emitter.emit(q,t)},P._onEnd=function(t){P._emitter.emit(w,t)},P.prototype._reset=function(){this._isDestroyed||(this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._startEvent=null,this._element.removeEventListener(P._touchEvents.start,this._abortNonCancelable,A),P._deactivateInstance(this))},P.prototype._createEvent=function(t,e){var i=this._getTrackedTouch(e);return{type:t,srcEvent:e,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:t===S?0:this.getDeltaTime(),isFirst:t===S,isFinal:t===w||t===q,identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},P.prototype._emit=function(t,e){this._emitter.emit(t,this._createEvent(t,e))},P.prototype._getTrackedTouch=function(t){return null===this._pointerId?null:P._getTouchById(t,this._pointerId)},P.prototype._preStartCheck=function(t){this._isDestroyed||this.isDragging()||k&&!1===t.cancelable||t.button||(this._pointerId=P._getEventPointerId(t),null!==this._pointerId&&(this._startEvent=t,C&&(x||T)?(k&&this._element.addEventListener(P._touchEvents.start,this._abortNonCancelable,A),_(this._onStart)):this._onStart()))},P.prototype._abortNonCancelable=function(t){this._element.removeEventListener(P._touchEvents.start,this._abortNonCancelable,A),this._startEvent&&!1===t.cancelable&&(this._pointerId=null,this._startEvent=null)},P.prototype._onStart=function(){var t=this._startEvent;if(t){this._startEvent=null;var e=this._getTrackedTouch(t);e&&(this._startX=this._currentX=e.clientX,this._startY=this._currentY=e.clientY,this._startTime=Date.now(),this._emit(S,t),P._activateInstance(this))}},P.prototype._onMove=function(t){var e=this._getTrackedTouch(t);e&&(this._currentX=e.clientX,this._currentY=e.clientY,this._emit(M,t))},P.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(q,t),this._reset())},P.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(w,t),this._reset())},P.prototype.isDragging=function(){return null!==this._pointerId},P.prototype.setTouchAction=function(t){this._touchAction=t,E&&(this._cssProps[E]="",this._element.style[E]=t),C&&(this._element.removeEventListener(P._touchEvents.start,P._preventDefault,!1),this._element.style[E]!==t&&this._element.addEventListener(P._touchEvents.start,P._preventDefault,!1))},P.prototype.setCssProps=function(t){if(t){var e,i,n=this._cssProps,o=this._element;for(e in n)o.style[e]=n[e],delete n[e];for(e in t)t[e]&&("touchAction"!==e?(i=y(o.style,e))&&(n[i]="",o.style[i]=t[e]):this.setTouchAction(t[e]))}},P.prototype.getDeltaX=function(){return this._currentX-this._startX},P.prototype.getDeltaY=function(){return this._currentY-this._startY},P.prototype.getDistance=function(){var t=this.getDeltaX(),e=this.getDeltaY();return Math.sqrt(t*t+e*e)},P.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},P.prototype.on=function(t,e){this._emitter.on(t,e)},P.prototype.off=function(t,e){this._emitter.off(eventName,e)},P.prototype.destroy=function(){if(!this._isDestroyed){var t=this._element,e=P._events;for(var i in this._reset(),this._emitter.destroy(),t.removeEventListener(e.start,this._preStartCheck,A),t.removeEventListener(P._mouseEvents.start,this._preStartCheck,A),t.removeEventListener("dragstart",P._preventDefault,!1),t.removeEventListener(P._touchEvents.start,P._preventDefault,!1),this._cssProps)t.style[i]=this._cssProps[i],delete this._cssProps[i];this._element=null,this._isDestroyed=!0}},D.prototype.add=function(t,e,i,n){var o=this._queue.indexOf(t);o>-1&&(this._queue[o]=void 0),n?this._queue.unshift(t):this._queue.push(t),this._reads[t]=e,this._writes[t]=i,this._nextStep||(this._nextStep=_(this._step))},D.prototype.cancel=function(t){var e=this._queue.indexOf(t);e>-1&&(this._queue[e]=void 0,delete this._reads[t],delete this._writes[t])},D.prototype._step=function(){var t,e,i=this._queue,n=this._reads,o=this._writes,s=this._batch,a=this._batchReads,r=this._batchWrites,l=i.length;for(this._nextStep=null,e=0;e<l;e++)(t=i[e])&&(s.push(t),a[t]=n[t],delete n[t],r[t]=o[t],delete o[t]);for(i.length=0,e=0;e<l;e++)a[t=s[e]]&&(a[t](),delete a[t]);for(e=0;e<l;e++)r[t=s[e]]&&(r[t](),delete r[t]);s.length=0,!this._nextStep&&i.length&&(this._nextStep=_(this._step))};var L=new D,$="layout",O="visibility",R="move",H="scroll",F="placeholder";function N(t){return L.cancel(t+O)}function B(t){return L.cancel(t+R)}function V(t){return L.cancel(t+H)}function z(t){return L.cancel(t+F)}var X=window.Element.prototype,Y=X.matches||X.matchesSelector||X.webkitMatchesSelector||X.mozMatchesSelector||X.msMatchesSelector||X.oMatchesSelector||function(){return!1};function W(t,e){return Y.call(t,e)}function U(t,e){t.classList?t.classList.add(e):W(t,"."+e)||(t.className+=" "+e)}var G=[],j="number";function J(t,e,i){var n=(void 0===i?"undefined":_typeof(i))===j?i:-1;n<0&&(n=t.length-n+1),t.splice.apply(t,G.concat(n,0,e)),G.length=0}function K(t,e,i){var n=t.length,o=Math.max(0,i?n:n-1);return e>o?o:e<0?Math.max(o+e+1,0):e}function Z(t,e,i){if(!(t.length<2)){var n=K(t,e),o=K(t,i);n!==o&&t.splice(o,0,t.splice(n,1)[0])}}function Q(t,e,i){if(!(t.length<2)){var n,o=K(t,e),s=K(t,i);o!==s&&(n=t[o],t[o]=t[s],t[s]=n)}}var tt="cancel",et="finish",it="debounce",nt=0;function ot(t,e){var i,n=++nt+it;return e>0?function(o){void 0!==i&&(i=window.clearTimeout(i),L.cancel(n),o===et&&t()),o!==tt&&o!==et&&(i=window.setTimeout(function(){i=void 0,L.add(n,t,null,!0)},e))}:function(e){e!==tt&&t()}}function st(t){var e=l(t,"transform");if(!e||"none"===e)return!1;var i=l(t,"display");return"inline"!==i&&"none"!==i}function at(t,e){for(var i=window.document,n=(e?t:t.parentElement)||i;n&&n!==i&&"static"===l(n,"position")&&!st(n);)n=n.parentElement||i;return n}function rt(t,e){return parseFloat(l(t,e))||0}var lt={},dt={},ut={};function ht(t,e){var i,n=e||{};return n.left=0,n.top=0,t===document?n:(n.left=window.pageXOffset||0,n.top=window.pageYOffset||0,t.self===window.self?n:(i=t.getBoundingClientRect(),n.left+=i.left,n.top+=i.top,n.left+=rt(t,"border-left-width"),n.top+=rt(t,"border-top-width"),n))}function ct(t,e,i){return ut.left=0,ut.top=0,t===e?ut:i&&(t=at(t,!0))===(e=at(e,!0))?ut:(ht(t,lt),ht(e,dt),ut.left=dt.left-lt.left,ut.top=dt.top-lt.top,ut)}var pt="overflow",ft="overflow-x",gt="overflow-y",mt="auto",yt="scroll";function _t(t){var e=l(t,pt);return e===mt||e===yt||((e=l(t,ft))===mt||e===yt||((e=l(t,gt))===mt||e===yt))}function vt(t,e,i){for(var n=i||[],o=e?t:t.parentNode;o&&o!==document;)o.getRootNode&&o instanceof DocumentFragment?o=o.getRootNode().host:(_t(o)&&n.push(o),o=o.parentNode);return n.push(window),n}var bt={},St="transform",Mt="none",wt=/^matrix3d/,qt=/([^,]*,){4}/,Ct=/([^,]*,){12}/,xt=/[^,]*,/;function Tt(t){bt.x=0,bt.y=0;var e=l(t,St);if(!e||e===Mt)return bt;var i=wt.test(e),n=e.replace(i?Ct:qt,""),o=n.replace(xt,"");return bt.x=parseFloat(n)||0,bt.y=parseFloat(o)||0,bt}function kt(t,e){return"translateX("+t+"px) translateY("+e+"px)"}function At(t,e){t.classList?t.classList.remove(e):W(t,"."+e)&&(t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim())}var Et=0;function It(t){var e=t._element,i=t.getGrid(),n=i._settings;this._item=t,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=c(n.dragStartPredicate)?n.dragStartPredicate:It.defaultStartPredicate,this._startPredicateState=Et,this._startPredicateResult=void 0,this._hBlockedIndex=null,this._hX1=0,this._hX2=0,this._hY1=0,this._hY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._checkOverlap=this._checkOverlap.bind(this);var o=n.dragSortHeuristics.sortInterval;this._checkOverlapDebounce=ot(this._checkOverlap,o),this._dragger=new P(e,n.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function Pt(t,e){return t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top?0:(Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left))*(Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top))/(Math.min(t.width,e.width)*Math.min(t.height,e.height))*100}function Dt(t){this._item=t,this._animate=new g,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._currentLeft=0,this._currentTop=0,this._nextLeft=0,this._nextTop=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this)}function Lt(){this._queue=[],this._isDestroyed=!1}function $t(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._currentLeft=0,this._currentTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animateOptions={onFinish:this._finish.bind(this)},this._queue=new Lt,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}It.defaultStartPredicate=function(t,e,i){var n=t._drag,o=n._startPredicateData||n._setupStartPredicate(i);if(!e.isFinal)return!(!o.handleElement&&(o.handleElement=n._getStartPredicateHandle(e),!o.handleElement))&&(o.delay&&(o.event=e,o.delayTimer||(o.delayTimer=window.setTimeout(function(){o.delay=0,n._resolveStartPredicate(o.event)&&(n._forceResolveStartPredicate(o.event),n._resetStartPredicate())},o.delay))),n._resolveStartPredicate(e));n._finishStartPredicate(e)},It.defaultSortPredicate=function(){var t={},e={},i={},n=[];return function(o,s){var a=o._drag,r=a._getGrid(),l=s&&"number"==typeof s.threshold?s.threshold:50,d=s&&"swap"===s.action?"swap":"move";t.width=o._width,t.height=o._height,t.left=a._elementClientX,t.top=a._elementClientY;var u=function(i,o,s){var a,r,l,d,u=null,h=o._settings.dragSort,c=-1;if(!0===h?(n[0]=o,r=n):r=h.call(o,i),!Array.isArray(r))return u;for(d=0;d<r.length;d++)(l=r[d])._isDestroyed||(l._updateBoundingRect(),e.width=l._width,e.height=l._height,e.left=l._left,e.top=l._top,(a=Pt(t,e))>s&&a>c&&(c=a,u=l));return n.length=0,u}(o,r,l);if(!u)return!1;var h,c,p,f,g,m=0,y=0,_=-1;for(u===r?(t.left=a._gridX+o._marginLeft,t.top=a._gridY+o._marginTop):(u._updateBorders(1,0,1,0),m=u._left+u._borderLeft,y=u._top+u._borderTop),g=0;g<u._items.length;g++)(p=u._items[g])._isActive&&p!==o&&(c=!0,e.width=p._width,e.height=p._height,e.left=p._left+p._marginLeft+m,e.top=p._top+p._marginTop+y,(f=Pt(t,e))>_&&(h=g,_=f));return _<l&&o.getGrid()!==u&&(h=c?-1:0,_=1/0),_>=l&&(i.grid=u,i.index=h,i.action=d,i)}}(),It.prototype.stop=function(){var t=this._item,e=t._element,i=this._getGrid();return this._isActive?this._isMigrating?(this._finishMigration(),this):(B(t._id),V(t._id),this._unbindScrollListeners(),this._checkOverlapDebounce("cancel"),e.parentNode!==i._element&&(i._element.appendChild(e),e.style[o]=kt(this._gridX,this._gridY)),At(e,i._settings.itemDraggingClass),this._reset(),this):this},It.prototype.destroy=function(){return this._isDestroyed?this:(this.stop(),this._dragger.destroy(),this._isDestroyed=!0,this)},It.prototype._getGrid=function(){return t[this._gridId]||null},It.prototype._reset=function(){this._isActive=!1,this._container=null,this._containingBlock=null,this._dragEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._elementClientX=0,this._elementClientY=0,this._containerDiffX=0,this._containerDiffY=0},It.prototype._bindScrollListeners=function(){var t,e,i=this._getGrid()._element,n=this._container,o=this._scrollers;if(o.length=0,vt(this._item._element,!1,o),n!==i)for(vt(i,!0,t=[]),e=0;e<t.length;e++)o.indexOf(t[e])<0&&o.push(t[e]);for(e=0;e<o.length;e++)o[e].addEventListener("scroll",this._onScroll)},It.prototype._unbindScrollListeners=function(){var t,e=this._scrollers;for(t=0;t<e.length;t++)e[t].removeEventListener("scroll",this._onScroll);e.length=0},It.prototype._setupStartPredicate=function(t){var e=t||this._getGrid()._settings.dragStartPredicate||0;return this._startPredicateData={distance:Math.abs(e.distance)||0,delay:Math.max(e.delay,0)||0,handle:"string"==typeof e.handle&&e.handle}},It.prototype._getStartPredicateHandle=function(t){var e=this._startPredicateData,i=this._item._element,n=i;if(!e.handle)return n;for(n=t.target;n&&!W(n,e.handle);)n=n!==i?n.parentElement:null;return n||null},It.prototype._resolveStartPredicate=function(t){var e=this._startPredicateData;if(!(t.distance<e.distance||e.delay)){var i=e.handleElement.getBoundingClientRect(),n=i.left+(window.pageXOffset||0),o=i.top+(window.pageYOffset||0),s=i.width,a=i.height;return this._resetStartPredicate(),s&&a&&t.pageX>=n&&t.pageX<n+s&&t.pageY>=o&&t.pageY<o+a}},It.prototype._forceResolveStartPredicate=function(t){this._isDestroyed||1!==this._startPredicateState||(this._startPredicateState=2,this._onStart(t))},It.prototype._finishStartPredicate=function(t){var e=this._item._element,i=Math.abs(t.deltaX)<2&&Math.abs(t.deltaY)<2&&t.deltaTime<200;this._resetStartPredicate(),i&&function(t){if("a"!==t.tagName.toLowerCase())return;var e=t.getAttribute("href");if(!e)return;var i=t.getAttribute("target");i&&"_self"!==i?window.open(e,i):window.location.href=e}(e)},It.prototype._resetHeuristics=function(t){this._hBlockedIndex=null,this._hX1=this._hX2=t.clientX,this._hY1=this._hY2=t.clientY},It.prototype._checkHeuristics=function(t){var e=this._getGrid()._settings.dragSortHeuristics,i=e.minDragDistance;if(i<=0)return this._hBlockedIndex=null,!0;var n=t.clientX,o=t.clientY,s=n-this._hX2,a=o-this._hY2,r=i>3&&e.minBounceBackAngle>0;if(r||(this._hBlockedIndex=null),Math.abs(s)>i||Math.abs(a)>i){if(r){var l=Math.atan2(s,a),d=Math.atan2(this._hX2-this._hX1,this._hY2-this._hY1),u=Math.atan2(Math.sin(l-d),Math.cos(l-d));Math.abs(u)>e.minBounceBackAngle&&(this._hBlockedIndex=null)}return this._hX1=this._hX2,this._hY1=this._hY2,this._hX2=n,this._hY2=o,!0}return!1},It.prototype._resetStartPredicate=function(){var t=this._startPredicateData;t&&(t.delayTimer&&(t.delayTimer=window.clearTimeout(t.delayTimer)),this._startPredicateData=null)},It.prototype._checkOverlap=function(){if(this._isActive){var t,e,i,n,o,s,a,r=this._item,l=this._getGrid()._settings;(t=c(l.dragSortPredicate)?l.dragSortPredicate(r,this._dragEvent):It.defaultSortPredicate(r,l.dragSortPredicate))&&"number"==typeof t.index&&(a=(e=r.getGrid())!==(n=t.grid||e),i=e._items.indexOf(r),o=K(n._items,t.index,a),s="swap"===t.action?"swap":"move",(a||o!==this._hBlockedIndex)&&(a?(this._hBlockedIndex=null,e._hasListeners("beforeSend")&&e._emit("beforeSend",{item:r,fromGrid:e,fromIndex:i,toGrid:n,toIndex:o}),n._hasListeners("beforeReceive")&&n._emit("beforeReceive",{item:r,fromGrid:e,fromIndex:i,toGrid:n,toIndex:o}),r._gridId=n._id,this._isMigrating=r._gridId!==this._gridId,e._items.splice(i,1),J(n._items,r,o),r._sortData=null,e._hasListeners("send")&&e._emit("send",{item:r,fromGrid:e,fromIndex:i,toGrid:n,toIndex:o}),n._hasListeners("receive")&&n._emit("receive",{item:r,fromGrid:e,fromIndex:i,toGrid:n,toIndex:o}),e.layout(),n.layout()):i!==o&&(this._hBlockedIndex=i,("swap"===s?Q:Z)(e._items,i,o),e._hasListeners("move")&&e._emit("move",{item:r,fromIndex:i,toIndex:o,action:s}),e.layout())))}},It.prototype._finishMigration=function(){var t,e,i=this._item,n=i._release,s=i._element,a=i._isActive,r=i.getGrid(),l=r._element,d=r._settings,u=d.dragContainer||l,h=this._getGrid()._settings,c=s.parentNode;this._isMigrating=!1,this.destroy(),At(s,h.itemClass),At(s,h.itemVisibleClass),At(s,h.itemHiddenClass),U(s,d.itemClass),U(s,a?d.itemVisibleClass:d.itemHiddenClass),u!==c&&(u.appendChild(s),e=ct(c,u,!0),(t=Tt(s)).x-=e.left,t.y-=e.top),i._refreshDimensions(),i._refreshSortData(),e=ct(u,l,!0),n._containerDiffX=e.left,n._containerDiffY=e.top,i._drag=d.dragEnabled?new It(i):null,u!==c&&(s.style[o]=kt(t.x,t.y)),i._child.removeAttribute("style"),f(i._child,a?d.visibleStyles:d.hiddenStyles),n.start()},It.prototype._preStartCheck=function(t){this._startPredicateState===Et&&(this._startPredicateState=1),1===this._startPredicateState?(this._startPredicateResult=this._startPredicate(this._item,t),!0===this._startPredicateResult?(this._startPredicateState=2,this._onStart(t)):!1===this._startPredicateResult&&(this._startPredicateState=3)):2===this._startPredicateState&&this._isActive&&this._onMove(t)},It.prototype._preEndCheck=function(t){var e=2===this._startPredicateState;this._startPredicate(this._item,t),this._startPredicateState=Et,e&&this._isActive&&this._onEnd(t)},It.prototype._onStart=function(t){var e=this._item;if(e._isActive){var i,n=e._element,s=this._getGrid(),a=s._settings,r=e._release,l=e._migrate,d=s._element,u=a.dragContainer||d,h=at(u,!0),c=Tt(n),p=c.x,f=c.y,g=n.getBoundingClientRect(),m=u!==d;this._resetHeuristics(t),m&&(i=ct(h,d)),e.isPositioning()&&e._layout.stop(!0,{transform:kt(p,f)}),l._isActive&&(p-=l._containerDiffX,f-=l._containerDiffY,l.stop(!0,{transform:kt(p,f)})),e.isReleasing()&&r._reset(),this._isActive=!0,this._dragEvent=t,this._container=u,this._containingBlock=h,this._elementClientX=g.left,this._elementClientY=g.top,this._left=this._gridX=p,this._top=this._gridY=f,a.dragPlaceholder.enabled&&e._dragPlaceholder.create(),s._emit("dragInit",e,t),m&&(this._containerDiffX=i.left,this._containerDiffY=i.top,n.parentNode===u?(this._gridX=p-this._containerDiffX,this._gridY=f-this._containerDiffY):(this._left=p+this._containerDiffX,this._top=f+this._containerDiffY,u.appendChild(n),n.style[o]=kt(this._left,this._top))),U(n,a.itemDraggingClass),this._bindScrollListeners(),s._emit("dragStart",e,t)}},It.prototype._onMove=function(t){var e=this._item;if(e._isActive){var i,n,o,s=this._getGrid()._settings.dragAxis;if("y"!==s){var a=t.clientX-this._dragEvent.clientX;this._left+=a,this._gridX+=a,this._elementClientX+=a}if("x"!==s){var r=t.clientY-this._dragEvent.clientY;this._top+=r,this._gridY+=r,this._elementClientY+=r}this._dragEvent=t,i=e._id,n=this._prepareMove,o=this._applyMove,L.add(i+R,n,o,!0)}else this.stop()},It.prototype._prepareMove=function(){this._item._isActive&&this._getGrid()._settings.dragSort&&this._checkHeuristics(this._dragEvent)&&this._checkOverlapDebounce()},It.prototype._applyMove=function(){var t=this._item;t._isActive&&(t._element.style[o]=kt(this._left,this._top),this._getGrid()._emit("dragMove",t,this._dragEvent))},It.prototype._onScroll=function(t){var e,i,n,o=this._item;o._isActive?(this._scrollEvent=t,e=o._id,i=this._prepareScroll,n=this._applyScroll,L.add(e+H,i,n,!0)):this.stop()},It.prototype._prepareScroll=function(){var t=this._item;if(t._isActive){var e,i=t._element,n=this._getGrid(),o=n._settings,s=o.dragAxis,a=n._element,r=i.getBoundingClientRect(),l=this._elementClientX-r.left,d=this._elementClientY-r.top;this._container!==a&&(e=ct(this._containingBlock,a),this._containerDiffX=e.left,this._containerDiffY=e.top),"y"!==s&&(this._left+=l,this._gridX=this._left-this._containerDiffX),"x"!==s&&(this._top+=d,this._gridY=this._top-this._containerDiffY),o.dragSort&&this._checkOverlapDebounce()}},It.prototype._applyScroll=function(){var t=this._item;t._isActive&&(t._element.style[o]=kt(this._left,this._top),this._getGrid()._emit("dragScroll",t,this._scrollEvent))},It.prototype._onEnd=function(t){var e=this._item,i=e._element,n=this._getGrid(),o=n._settings,s=e._release;e._isActive?(B(e._id),V(e._id),o.dragSort&&this._checkOverlapDebounce("finish"),this._unbindScrollListeners(),s._containerDiffX=this._containerDiffX,s._containerDiffY=this._containerDiffY,this._reset(),At(i,o.itemDraggingClass),n._emit("dragEnd",e,t),this._isMigrating?this._finishMigration():s.start()):this.stop()},Dt.prototype._onLayoutStart=function(){var t=this._item,e=t.getGrid(),i=e._items.indexOf(t),n=e._layout.slots[2*i],o=e._layout.slots[2*i+1];if(this._didMigrate||t._left!==n||t._top!==o){var s,a,r;if(n+=t._marginLeft,o+=t._marginTop,!(e._settings.dragPlaceholder.duration>0)||this._didMigrate){z(t._id);var l={transform:kt(n,o)};return this._animate.isAnimating()?this._animate.stop(l):f(this._element,l),void(this._didMigrate&&(e.getElement().appendChild(this._element),this._didMigrate=!1))}this._nextLeft=n,this._nextTop=o,s=t._id,a=this._setupAnimation,r=this._startAnimation,L.add(s+F,a,r)}},Dt.prototype._setupAnimation=function(){if(this.isActive()){var t=Tt(this._element);this._currentLeft=t.x,this._currentTop=t.y}},Dt.prototype._startAnimation=function(){if(this.isActive()){var t=this._animate,e=this._currentLeft,i=this._currentTop,n=this._nextLeft,o=this._nextTop,s={transform:kt(n,o)};if(e!==n||i!==o){var a=this._item.getGrid()._settings.dragPlaceholder,r={transform:kt(e,i)};t.start(r,s,{duration:a.duration,easing:a.easing,onFinish:this._onLayoutEnd})}else t.isAnimating()&&t.stop(s)}},Dt.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},Dt.prototype._onReleaseEnd=function(t){if(t._id===this._item._id){if(!this._animate.isAnimating())return void this.reset();this._resetAfterLayout=!0}},Dt.prototype._onMigrate=function(t){if(t.item===this._item){var e=this._item.getGrid(),i=t.toGrid;e.off("dragReleaseEnd",this._onReleaseEnd),e.off("layoutStart",this._onLayoutStart),e.off("beforeSend",this._onMigrate),i.on("dragReleaseEnd",this._onReleaseEnd),i.on("layoutStart",this._onLayoutStart),i.on("beforeSend",this._onMigrate),this._didMigrate=!0}},Dt.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var t,e=this._item,i=e.getGrid(),n=i._settings,o=this._animate;t=c(n.dragPlaceholder.createElement)?n.dragPlaceholder.createElement(e):window.document.createElement("div"),this._element=t,o._element=t,this._className=n.itemPlaceholderClass||"",this._className&&U(t,this._className);var s=e._left+e._marginLeft,a=e._top+e._marginTop;f(t,{display:"block",position:"absolute",left:"0",top:"0",width:e._width+"px",height:e._height+"px",transform:kt(s,a)}),i.on("layoutStart",this._onLayoutStart),i.on("dragReleaseEnd",this._onReleaseEnd),i.on("beforeSend",this._onMigrate),c(n.dragPlaceholder.onCreate)&&n.dragPlaceholder.onCreate(e,t),i.getElement().appendChild(t)}},Dt.prototype.reset=function(){if(this.isActive()){var t=this._element,e=this._item,i=e.getGrid(),n=i._settings,o=this._animate;this._resetAfterLayout=!1,z(e._id),o.stop(),o._element=null,i.off("dragReleaseEnd",this._onReleaseEnd),i.off("layoutStart",this._onLayoutStart),i.off("beforeSend",this._onMigrate),this._className&&(At(t,this._className),this._className=""),t.parentNode.removeChild(t),this._element=null,c(n.dragPlaceholder.onRemove)&&n.dragPlaceholder.onRemove(e,t)}},Dt.prototype.updateDimensions=function(t,e){this.isActive()&&f(this._element,{width:t+"px",height:e+"px"})},Dt.prototype.isActive=function(){return!!this._element},Dt.prototype.destroy=function(){this.reset(),this._animate.destroy(),this._item=this._animate=null},Lt.prototype.add=function(t){return this._isDestroyed?this:(this._queue.push(t),this)},Lt.prototype.flush=function(t,e){if(this._isDestroyed)return this;var i,n=this._queue,o=n.length;if(!o)return this;var s=1===o,a=s?n[0]:n.slice(0);if(n.length=0,s)return a(t,e),this;for(i=0;i<o&&(a[i](t,e),!this._isDestroyed);i++);return this},Lt.prototype.destroy=function(){return this._isDestroyed?this:(this._isDestroyed=!0,this._queue.length=0,this)},$t.prototype.start=function(t,e){if(!this._isDestroyed){var i,n,o,s,a=this._item,r=a._element,l=a._release,d=a.getGrid()._settings,u=this._isActive,h=l._isActive&&!1===l._isPositioningStarted,p=h?d.dragReleaseDuration:d.layoutDuration,g=h?d.dragReleaseEasing:d.layoutEasing,m=!t&&!this._skipNextAnimation&&p>0;return u&&this._queue.flush(!0,a),h&&(l._isPositioningStarted=!0),c(e)&&this._queue.add(e),m?(this._isActive=!0,this._animateOptions.easing=g,this._animateOptions.duration=p,this._isInterrupted=u,n=a._id,o=this._setupAnimation,s=this._startAnimation,L.add(n+$,o,s),this):(this._updateOffsets(),this._updateTargetStyles(),i=a._animate.isAnimating(),this.stop(!1,this._targetStyles),!i&&f(r,this._targetStyles),this._skipNextAnimation=!1,this._finish())}},$t.prototype.stop=function(t,e){if(this._isDestroyed||!this._isActive)return this;var i,n=this._item;return i=n._id,L.cancel(i+$),n._animate.stop(e),At(n._element,n.getGrid()._settings.itemPositioningClass),this._isActive=!1,t&&this._queue.flush(!0,n),this},$t.prototype.destroy=function(){return this._isDestroyed?this:(this.stop(!0,{}),this._queue.destroy(),this._item=this._currentStyles=this._targetStyles=this._animateOptions=null,this._isDestroyed=!0,this)},$t.prototype._updateOffsets=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._release;this._offsetLeft=i._isActive?i._containerDiffX:e._isActive?e._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:e._isActive?e._containerDiffY:0}},$t.prototype._updateTargetStyles=function(){this._isDestroyed||(this._targetStyles.transform=kt(this._item._left+this._offsetLeft,this._item._top+this._offsetTop))},$t.prototype._finish=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._release;this._isActive&&(this._isActive=!1,At(t._element,t.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),e._isActive&&e.stop(),this._queue.flush(!1,t)}},$t.prototype._setupAnimation=function(){var t=Tt(this._item._element);this._currentLeft=t.x,this._currentTop=t.y},$t.prototype._startAnimation=function(){var t=this._item,e=t.getGrid()._settings;if(this._updateOffsets(),this._updateTargetStyles(),t._left===this._currentLeft-this._offsetLeft&&t._top===this._currentTop-this._offsetTop)return this._isInterrupted&&this.stop(!1,this._targetStyles),this._isActive=!1,void this._finish();this._isInterrupted||U(t._element,e.itemPositioningClass),this._currentStyles.transform=kt(this._currentLeft,this._currentTop),t._animate.start(this._currentStyles,this._targetStyles,this._animateOptions)};var Ot={};function Rt(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}Rt.prototype.start=function(t,e,i){if(this._isDestroyed)return this;var n,s,a,r,l,d,u,h,c=this._item,p=c._element,g=c.isVisible(),m=c.getGrid(),y=m._settings,_=t._settings,v=t._element,b=t._items,S=m._items.indexOf(c),M=i||window.document.body;if("number"==typeof e)n=K(b,e,!0);else{if(!(s=t._getItem(e)))return this;n=b.indexOf(s)}return(c.isPositioning()||this._isActive||c.isReleasing())&&(u=(d=Tt(p)).x,h=d.y),c.isPositioning()&&c._layout.stop(!0,{transform:kt(u,h)}),this._isActive&&(u-=this._containerDiffX,h-=this._containerDiffY,this.stop(!0,{transform:kt(u,h)})),c.isReleasing()&&(u-=c._release._containerDiffX,h-=c._release._containerDiffY,c._release.stop(!0,{transform:kt(u,h)})),c._visibility._stopAnimation(),c._drag&&c._drag.destroy(),c._visibility._queue.flush(!0,c),m._hasListeners("beforeSend")&&m._emit("beforeSend",{item:c,fromGrid:m,fromIndex:S,toGrid:t,toIndex:n}),t._hasListeners("beforeReceive")&&t._emit("beforeReceive",{item:c,fromGrid:m,fromIndex:S,toGrid:t,toIndex:n}),At(p,y.itemClass),At(p,y.itemVisibleClass),At(p,y.itemHiddenClass),U(p,_.itemClass),U(p,g?_.itemVisibleClass:_.itemHiddenClass),m._items.splice(S,1),J(b,c,n),c._gridId=t._id,M!==(a=p.parentNode)&&(M.appendChild(p),r=ct(M,a,!0),d||(u=(d=Tt(p)).x,h=d.y),p.style[o]=kt(u+r.left,h+r.top)),c._child.removeAttribute("style"),f(c._child,g?_.visibleStyles:_.hiddenStyles),p.style.display=g?"block":"hidden",l=ct(M,v,!0),c._refreshDimensions(),c._refreshSortData(),c._drag=_.dragEnabled?new It(c):null,this._isActive=!0,this._container=M,this._containerDiffX=l.left,this._containerDiffY=l.top,m._hasListeners("send")&&m._emit("send",{item:c,fromGrid:m,fromIndex:S,toGrid:t,toIndex:n}),t._hasListeners("receive")&&t._emit("receive",{item:c,fromGrid:m,fromIndex:S,toGrid:t,toIndex:n}),this},Rt.prototype.stop=function(t,e){if(this._isDestroyed||!this._isActive)return this;var i,n=this._item,o=n._element,s=n.getGrid()._element;return this._container!==s&&(e||(t?(i=Tt(o),Ot.transform=kt(i.x-this._containerDiffX,i.y-this._containerDiffY)):Ot.transform=kt(n._left,n._top),e=Ot),s.appendChild(o),f(o,e)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0,this},Rt.prototype.destroy=function(){return this._isDestroyed?this:(this.stop(!0),this._item=null,this._isDestroyed=!0,this)};var Ht={};function Ft(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}function Nt(t){var e=t._isActive,i=t._element,n=t.getGrid()._settings;this._item=t,this._isDestroyed=!1,this._isHidden=!e,this._isHiding=!1,this._isShowing=!1,this._queue=new Lt,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=e?"block":"none",U(i,e?n.itemVisibleClass:n.itemHiddenClass),f(t._child,e?n.visibleStyles:n.hiddenStyles)}Ft.prototype.start=function(){if(this._isDestroyed||this._isActive)return this;var t=this._item,e=t.getGrid();return this._isActive=!0,U(t._element,e._settings.itemReleasingClass),e._emit("dragReleaseStart",t),t._layout.start(!1),this},Ft.prototype.stop=function(t,e){if(this._isDestroyed||!this._isActive)return this;var i,n=this._item,o=n._element,s=n.getGrid(),a=s._element;return this._reset(),o.parentNode!==a&&(e||(t?(i=Tt(o),Ht.transform=kt(i.x-this._containerDiffX,i.y-this._containerDiffY)):Ht.transform=kt(n._left,n._top),e=Ht),a.appendChild(o),f(o,e)),t||s._emit("dragReleaseEnd",n),this},Ft.prototype.destroy=function(){return this._isDestroyed?this:(this.stop(!0),this._item=null,this._isDestroyed=!0,this)},Ft.prototype._reset=function(){if(!this._isDestroyed){var t=this._item;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,At(t._element,t.getGrid()._settings.itemReleasingClass)}},Nt.prototype.show=function(t,e){if(this._isDestroyed)return this;var i=this._item,n=i._element,o=this._queue,s=c(e)?e:null,a=i.getGrid()._settings;return this._isShowing||this._isHidden?this._isShowing&&!t?(s&&o.add(s),this):(this._isShowing||(o.flush(!0,i),At(n,a.itemHiddenClass),U(n,a.itemVisibleClass),this._isHiding||(n.style.display="block")),s&&o.add(s),i._isActive=this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow),this):(s&&s(!1,i),this)},Nt.prototype.hide=function(t,e){if(this._isDestroyed)return this;var i=this._item,n=i._element,o=this._queue,s=c(e)?e:null,a=i.getGrid()._settings;return!this._isHiding&&this._isHidden?(s&&s(!1,i),this):this._isHiding&&!t?(s&&o.add(s),this):(this._isHiding||(o.flush(!0,i),U(n,a.itemHiddenClass),At(n,a.itemVisibleClass)),s&&o.add(s),this._isHidden=this._isHiding=!0,i._isActive=this._isShowing=!1,this._startAnimation(!1,t,this._finishHide),this)},Nt.prototype.destroy=function(){if(this._isDestroyed)return this;var t=this._item,e=t._element,i=t.getGrid(),n=this._queue,o=i._settings;return this._stopAnimation({}),n.flush(!0,t).destroy(),At(e,o.itemVisibleClass),At(e,o.itemHiddenClass),this._item=null,this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0,this},Nt.prototype._startAnimation=function(t,e,i){if(!this._isDestroyed){var n,o=this._item,s=o.getGrid()._settings,a=t?s.visibleStyles:s.hiddenStyles,r=parseInt(t?s.showDuration:s.hideDuration)||0,d=(t?s.showEasing:s.hideEasing)||"ease",h=e||r<=0;if(a){if(N(o._id),h)return o._animateChild.isAnimating()?o._animateChild.stop(a):f(o._child,a),void(i&&i());var c,p,g;c=o._id,p=function(){n=function(t,e){var i={};for(var n in e)i[n]=l(t,u(n));return i}(o._child,a)},g=function(){o._animateChild.start(n,a,{duration:r,easing:d,onFinish:i})},L.add(c+O,p,g)}else i&&i()}},Nt.prototype._stopAnimation=function(t){if(!this._isDestroyed){var e=this._item;N(e._id),e._animateChild.stop(t)}},Nt.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._queue.flush(!1,this._item))};var Bt={};Nt.prototype._finishHide=function(){if(this._isHidden){var t=this._item;this._isHiding=!1,Bt.transform=kt(0,0),t._layout.stop(!0,Bt),t._element.style.display="none",this._queue.flush(!1,t)}};var Vt,zt,Xt,Yt,Wt=0;function Ut(){return++Wt}function Gt(t,e,i){var n=t._settings;this._id=Ut(),this._gridId=t._id,this._isDestroyed=!1,this._left=0,this._top=0,this._element=e,this._child=e.children[0],e.parentNode!==t._element&&t._element.appendChild(e),U(e,n.itemClass),"boolean"!=typeof i&&(i="none"!==l(e,"display")),this._isActive=i,e.style.left="0",e.style.top="0",e.style[o]=kt(0,0),this._animate=new g(e),this._animateChild=new g(this._child),this._visibility=new Nt(this),this._layout=new $t(this),this._migrate=new Rt(this),this._release=new Ft(this),this._dragPlaceholder=new Dt(this),this._drag=n.dragEnabled?new It(this):null,this._refreshDimensions(),this._refreshSortData()}function jt(){this._slots=[],this._slotSizes=[],this._freeSlots=[],this._newSlots=[],this._rectItem={},this._rectStore=[],this._rectId=0,this._layout={slots:null,setWidth:!1,setHeight:!1,width:!1,height:!1},this._sortRectsLeftTop=this._sortRectsLeftTop.bind(this),this._sortRectsTopLeft=this._sortRectsTopLeft.bind(this)}Gt.prototype.getGrid=function(){return t[this._gridId]},Gt.prototype.getElement=function(){return this._element},Gt.prototype.getWidth=function(){return this._width},Gt.prototype.getHeight=function(){return this._height},Gt.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},Gt.prototype.getPosition=function(){return{left:this._left,top:this._top}},Gt.prototype.isActive=function(){return this._isActive},Gt.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},Gt.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},Gt.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},Gt.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},Gt.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},Gt.prototype.isReleasing=function(){return!(!this._release||!this._release._isActive)},Gt.prototype.isDestroyed=function(){return this._isDestroyed},Gt.prototype._refreshDimensions=function(){if(!this._isDestroyed&&!this._visibility._isHidden){var t=this._element,e=this._dragPlaceholder,i=t.getBoundingClientRect();this._width=i.width,this._height=i.height,this._marginLeft=Math.max(0,rt(t,"margin-left")),this._marginRight=Math.max(0,rt(t,"margin-right")),this._marginTop=Math.max(0,rt(t,"margin-top")),this._marginBottom=Math.max(0,rt(t,"margin-bottom")),e&&e.updateDimensions(this._width,this._height)}},Gt.prototype._refreshSortData=function(){if(!this._isDestroyed){var t,e=this._sortData={},i=this.getGrid()._settings.sortData;for(t in i)e[t]=i[t](this,this._element)}},Gt.prototype._destroy=function(t){if(!this._isDestroyed){var e=this._element,i=this.getGrid(),n=i._settings,o=i._items.indexOf(this);this._release.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._animate.destroy(),this._animateChild.destroy(),this._dragPlaceholder.destroy(),this._drag&&this._drag.destroy(),e.removeAttribute("style"),this._child.removeAttribute("style"),At(e,n.itemClass),o>-1&&i._items.splice(o,1),t&&e.parentNode.removeChild(e),this._isActive=!1,this._isDestroyed=!0}},jt.prototype.getLayout=function(t,e,i,n,o){var s,a=this._layout,r=!(!o||!o.fillGaps),l=!(!o||!o.horizontal),d=!(!o||!o.alignRight),u=!(!o||!o.alignBottom),h=!(!o||!o.rounding),c=this._slotSizes;if(a.slots=n||this._slots,a.width=l?0:h?Math.round(e):e,a.height=l?h?Math.round(i):i:0,a.setWidth=l,a.setHeight=!l,a.slots.length=0,c.length=0,!t.length)return a;for(s=0;s<t.length;s++)this._addSlot(t[s],l,r,h,d||u);if(d)for(s=0;s<a.slots.length;s+=2)a.slots[s]=a.width-(a.slots[s]+c[s]);if(u)for(s=1;s<a.slots.length;s+=2)a.slots[s]=a.height-(a.slots[s]+c[s]);return c.length=0,this._freeSlots.length=0,this._newSlots.length=0,this._rectId=0,a},jt.prototype._addSlot=(Vt={},function(t,e,i,n,o){var s,a,r,l,d,u,h=this._layout,c=this._freeSlots,p=this._newSlots;for(p.length=0,Vt.left=null,Vt.top=null,Vt.width=t._width+t._marginLeft+t._marginRight,Vt.height=t._height+t._marginTop+t._marginBottom,n&&(Vt.width=Math.round(Vt.width),Vt.height=Math.round(Vt.height)),d=0;d<c.length;d++)if((a=c[d])&&(s=this._getRect(a),Vt.width<=s.width+.001&&Vt.height<=s.height+.001)){Vt.left=s.left,Vt.top=s.top;break}for(null===Vt.left&&(Vt.left=e?h.width:0,Vt.top=e?0:h.height,i||(l=!0)),!e&&Vt.top+Vt.height>h.height&&(Vt.left>0&&p.push(this._addRect(0,h.height,Vt.left,1/0)),Vt.left+Vt.width<h.width&&p.push(this._addRect(Vt.left+Vt.width,h.height,h.width-Vt.left-Vt.width,1/0)),h.height=Vt.top+Vt.height),e&&Vt.left+Vt.width>h.width&&(Vt.top>0&&p.push(this._addRect(h.width,0,1/0,Vt.top)),Vt.top+Vt.height<h.height&&p.push(this._addRect(h.width,Vt.top+Vt.height,1/0,h.height-Vt.top-Vt.height)),h.width=Vt.left+Vt.width),d=i?0:l?c.length:d;d<c.length;d++)if(a=c[d])for(s=this._getRect(a),r=this._splitRect(s,Vt),u=0;u<r.length;u++)a=r[u],(s=this._getRect(a)).width>.49&&s.height>.49&&(!e&&s.top<h.height||e&&s.left<h.width)&&p.push(a);p.length&&this._purgeRects(p).sort(e?this._sortRectsLeftTop:this._sortRectsTopLeft),e?h.width=Math.max(h.width,Vt.left+Vt.width):h.height=Math.max(h.height,Vt.top+Vt.height),h.slots.push(Vt.left,Vt.top),o&&this._slotSizes.push(Vt.width,Vt.height),this._freeSlots=p,this._newSlots=c}),jt.prototype._addRect=function(t,e,i,n){var o=++this._rectId,s=this._rectStore;return s[o]=t||0,s[++this._rectId]=e||0,s[++this._rectId]=i||0,s[++this._rectId]=n||0,o},jt.prototype._getRect=function(t,e){var i=e||this._rectItem,n=this._rectStore;return i.left=n[t]||0,i.top=n[++t]||0,i.width=n[++t]||0,i.height=n[++t]||0,i},jt.prototype._splitRect=(zt=[],function(t,e){return zt.length=0,this._doRectsOverlap(t,e)?(t.left<e.left&&zt.push(this._addRect(t.left,t.top,e.left-t.left,t.height)),t.left+t.width>e.left+e.width&&zt.push(this._addRect(e.left+e.width,t.top,t.left+t.width-(e.left+e.width),t.height)),t.top<e.top&&zt.push(this._addRect(t.left,t.top,t.width,e.top-t.top)),t.top+t.height>e.top+e.height&&zt.push(this._addRect(t.left,e.top+e.height,t.width,t.top+t.height-(e.top+e.height))),zt):(zt.push(this._addRect(t.left,t.top,t.width,t.height)),zt)}),jt.prototype._doRectsOverlap=function(t,e){return!(t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top)},jt.prototype._isRectWithinRect=function(t,e){return t.left>=e.left&&t.top>=e.top&&t.left+t.width<=e.left+e.width&&t.top+t.height<=e.top+e.height},jt.prototype._purgeRects=(Xt={},Yt={},function(t){for(var e,i=t.length;i--;)if(e=t.length,t[i])for(this._getRect(t[i],Xt);e--;)if(t[e]&&i!==e&&this._isRectWithinRect(Xt,this._getRect(t[e],Yt))){t[i]=0;break}return t}),jt.prototype._sortRectsTopLeft=function(){var t={},e={};return function(i,n){return this._getRect(i,t),this._getRect(n,e),t.top<e.top?-1:t.top>e.top?1:t.left<e.left?-1:t.left>e.left?1:0}}(),jt.prototype._sortRectsLeftTop=function(){var t={},e={};return function(i,n){return this._getRect(i,t),this._getRect(n,e),t.left<e.left?-1:t.left>e.left?1:t.top<e.top?-1:t.top>e.top?1:0}}();var Jt="[object HTMLCollection]",Kt="[object NodeList]";function Zt(t){var e=Object.prototype.toString.call(t);return e===Jt||e===Kt}var Qt="object",te="[object Object]",ee=Object.prototype.toString;function ie(t){return(void 0===t?"undefined":_typeof(t))===Qt&&ee.call(t)===te}function ne(t){return Zt(t)?Array.prototype.slice.call(t):Array.prototype.concat(t)}var oe=new jt,se=function(){},ae="number",re="string";function le(e,n){var o,s,a,r=this;if(!((e=this._element=(void 0===e?"undefined":_typeof(e))===re?window.document.querySelector(e):e).getRootNode?e.getRootNode({composed:!0})===document:window.document.body.contains(e))||e===window.document.documentElement)throw new Error("Container element must be an existing DOM element");c((o=this._settings=function(t,e){var i=de({},t);e&&(i=de(i,e));return i.visibleStyles=(e||0).visibleStyles||(t||0).visibleStyles,i.hiddenStyles=(e||0).hiddenStyles||(t||0).hiddenStyles,i}(le.defaultOptions,n)).dragSort)||(o.dragSort=!!o.dragSort),this._id=Ut(),t[this._id]=r,this._isDestroyed=!1,this._layout={id:0,items:[],slots:[],setWidth:!1,setHeight:!1,width:0,height:0},this._emitter=new i,U(e,o.containerClass),this._items=[],(void 0===(s=o.items)?"undefined":_typeof(s))===re?ne(e.children).forEach(function(t){("*"===s||W(t,s))&&r._items.push(new Gt(r,t))}):(Array.isArray(s)||Zt(s))&&(this._items=ne(s).map(function(t){return new Gt(r,t)})),(void 0===(a=o.layoutOnResize)?"undefined":_typeof(a))!==ae&&(a=!0===a?0:-1),a>=0&&window.addEventListener("resize",r._resizeHandler=ot(function(){r.refreshItems().layout()},a)),o.layoutOnInit&&this.layout(!0)}function de(t,e){var i,n,o,s=Object.keys(e),a=s.length;for(o=0;o<a;o++)i=ie(e[n=s[o]]),ie(t[n])&&i?t[n]=de(de({},t[n]),e[n]):i?t[n]=de({},e[n]):Array.isArray(e[n])?t[n]=e[n].slice(0):t[n]=e[n];return t}return le.Item=Gt,le.ItemLayout=$t,le.ItemVisibility=Nt,le.ItemMigrate=Rt,le.ItemAnimate=g,le.ItemDrag=It,le.ItemRelease=Ft,le.ItemDragPlaceholder=Dt,le.Emitter=i,le.Dragger=P,le.Packer=jt,le.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!0},layoutOnResize:100,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragStartPredicate:{distance:0,delay:0,handle:!1},dragAxis:null,dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:"move"},dragReleaseDuration:300,dragReleaseEasing:"ease",dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,duration:300,easing:"ease",createElement:null,onCreate:null,onRemove:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},le.prototype.on=function(t,e){return this._emitter.on(t,e),this},le.prototype.off=function(t,e){return this._emitter.off(t,e),this},le.prototype.getElement=function(){return this._element},le.prototype.getItems=function(t){if(this._isDestroyed||!t&&0!==t)return this._items.slice(0);var e,i,n=[],o=ne(t);for(i=0;i<o.length;i++)(e=this._getItem(o[i]))&&n.push(e);return n},le.prototype.refreshItems=function(t){if(this._isDestroyed)return this;var e,i=this.getItems(t);for(e=0;e<i.length;e++)i[e]._refreshDimensions();return this},le.prototype.refreshSortData=function(t){if(this._isDestroyed)return this;var e,i=this.getItems(t);for(e=0;e<i.length;e++)i[e]._refreshSortData();return this},le.prototype.synchronize=function(){if(this._isDestroyed)return this;var t,e,i,n=this._element,o=this._items;if(o.length){for(i=0;i<o.length;i++)(e=o[i]._element).parentNode===n&&(t=t||window.document.createDocumentFragment()).appendChild(e);t&&n.appendChild(t)}return this._emit("synchronize"),this},le.prototype.layout=function(t,i){if(this._isDestroyed)return this;var n,o,s,a=this,r=this._element,d=this._updateLayout(),u=d.id,h=d.items.length,p=h;function f(){if(!(--p>0)){var n=a._layout.id!==u,o=c(t)?t:i;c(o)&&o(n,d.items.slice(0)),!n&&a._hasListeners(e)&&a._emit(e,d.items.slice(0))}}if((d.setHeight&&_typeof(d.height)===ae||d.setWidth&&_typeof(d.width)===ae)&&(n="border-box"===l(r,"box-sizing")),d.setHeight&&(_typeof(d.height)===ae?r.style.height=(n?d.height+this._borderTop+this._borderBottom:d.height)+"px":r.style.height=d.height),d.setWidth&&(_typeof(d.width)===ae?r.style.width=(n?d.width+this._borderLeft+this._borderRight:d.width)+"px":r.style.width=d.width),this._hasListeners("layoutStart")&&this._emit("layoutStart",d.items.slice(0)),!h)return f(),this;for(s=0;s<h;s++)(o=d.items[s])&&(o._left=d.slots[2*s],o._top=d.slots[2*s+1],o.isDragging()?f():o._layout.start(!0===t,f));return this},le.prototype.add=function(t,e){if(this._isDestroyed||!t)return[];var i=ne(t);if(!i.length)return i;var n,o,s=e||0,a=s.layout?s.layout:void 0===s.layout,r=this._items,l=!1;for(o=0;o<i.length;o++)n=new Gt(this,i[o],s.isActive),i[o]=n,n._isActive&&(l=!0,n._layout._skipNextAnimation=!0);return J(r,i,s.index),this._hasListeners("add")&&this._emit("add",i.slice(0)),l&&a&&this.layout("instant"===a,c(a)?a:void 0),i},le.prototype.remove=function(t,e){if(this._isDestroyed)return this;var i,n,o=e||0,s=o.layout?o.layout:void 0===o.layout,a=!1,r=this.getItems(),l=this.getItems(t),d=[];for(n=0;n<l.length;n++)i=l[n],d.push(r.indexOf(i)),i._isActive&&(a=!0),i._destroy(o.removeElements);return this._hasListeners("remove")&&this._emit("remove",l.slice(0),d),a&&s&&this.layout("instant"===s,c(s)?s:void 0),l},le.prototype.show=function(t,e){return this._isDestroyed?this:(this._setItemsVisibility(t,!0,e),this)},le.prototype.hide=function(t,e){return this._isDestroyed?this:(this._setItemsVisibility(t,!1,e),this)},le.prototype.filter=function(t,e){if(this._isDestroyed||!this._items.length)return this;var i,n,o=[],s=[],a=(void 0===t?"undefined":_typeof(t))===re,r=c(t),l=e||0,d=!0===l.instant,u=l.layout?l.layout:void 0===l.layout,h=c(l.onFinish)?l.onFinish:null,p=-1,f=se;if(h&&(f=function(){++p&&h(o.slice(0),s.slice(0))}),r||a)for(n=0;n<this._items.length;n++)i=this._items[n],(r?t(i):W(i._element,t))?o.push(i):s.push(i);return o.length?this.show(o,{instant:d,onFinish:f,layout:!1}):f(),s.length?this.hide(s,{instant:d,onFinish:f,layout:!1}):f(),(o.length||s.length)&&(this._hasListeners("filter")&&this._emit("filter",o.slice(0),s.slice(0)),u&&this.layout("instant"===u,c(u)?u:void 0)),this},le.prototype.sort=function(){var t,e,i,n;function o(t){for(var e={},i=0;i<t.length;i++)e[t[i]._id]=i;return e}function s(t,i){var o=n[t._id],s=n[i._id];return e?s-o:o-s}function a(a,r){for(var l,d,u,h,c=0,p=0;p<t.length;p++)if(l=t[p][0],d=t[p][1],u=(a._sortData?a:a._refreshSortData())._sortData[l],h=(r._sortData?r:r._refreshSortData())._sortData[l],c="desc"===d||!d&&e?h<u?-1:h>u?1:0:u<h?-1:u>h?1:0)return c;return c||(n||(n=o(i)),c=s(a,r)),c}function r(a,r){var l=t(a,r);return e&&l&&(l=-l),l||(n||(n=o(i)),s(a,r))}return function(o,s){if(this._isDestroyed||this._items.length<2)return this;var l,d=this._items,u=s||0,h=u.layout?u.layout:void 0===u.layout;if(t=o,e=!!u.descending,i=d.slice(0),n=null,c(t))d.sort(r);else if((void 0===t?"undefined":_typeof(t))===re)t=o.trim().split(" ").map(function(t){return t.split(":")}),d.sort(a);else{if(!Array.isArray(t))return this;if(t.length!==d.length)throw new Error("[Muuri] sort reference items do not match with grid items.");for(l=0;l<d.length;l++){if(t.indexOf(d[l])<0)throw new Error("[Muuri] sort reference items do not match with grid items.");d[l]=t[l]}e&&d.reverse()}return this._hasListeners("sort")&&this._emit("sort",d.slice(0),i),h&&this.layout("instant"===h,c(h)?h:void 0),this}}(),le.prototype.move=function(t,e,i){if(this._isDestroyed||this._items.length<2)return this;var n,o,s=this._items,a=i||0,r=a.layout?a.layout:void 0===a.layout,l="swap"===a.action,d=l?"swap":"move",u=this._getItem(t),h=this._getItem(e);return u&&h&&u!==h&&(n=s.indexOf(u),o=s.indexOf(h),l?Q(s,n,o):Z(s,n,o),this._hasListeners("move")&&this._emit("move",{item:u,fromIndex:n,toIndex:o,action:d}),r&&this.layout("instant"===r,c(r)?r:void 0)),this},le.prototype.send=function(t,e,i,n){if(this._isDestroyed||e._isDestroyed||this===e)return this;if(!(t=this._getItem(t)))return this;var o=n||0,s=o.appendTo||window.document.body,a=o.layoutSender?o.layoutSender:void 0===o.layoutSender,r=o.layoutReceiver?o.layoutReceiver:void 0===o.layoutReceiver;return t._migrate.start(e,i,s),t._migrate._isActive&&t._isActive&&(a&&this.layout("instant"===a,c(a)?a:void 0),r&&e.layout("instant"===r,c(r)?r:void 0)),this},le.prototype.destroy=function(e){if(this._isDestroyed)return this;var i,n=this._element,o=this._items.slice(0);for(this._resizeHandler&&window.removeEventListener("resize",this._resizeHandler),i=0;i<o.length;i++)o[i]._destroy(e);return At(n,this._settings.containerClass),n.style.height="",n.style.width="",this._emit("destroy"),this._emitter.destroy(),t[this._id]=void 0,this._isDestroyed=!0,this},le.prototype._getItem=function(t){if(this._isDestroyed||!t&&0!==t)return null;if((void 0===t?"undefined":_typeof(t))===ae)return this._items[t>-1?t:this._items.length+t]||null;if(t instanceof Gt)return t._gridId===this._id?t:null;for(var e=0;e<this._items.length;e++)if(this._items[e]._element===t)return this._items[e];return null},le.prototype._updateLayout=function(){var t,e,i,n,o=this._layout,s=this._settings.layout;for(++o.id,o.items.length=0,n=0;n<this._items.length;n++)this._items[n]._isActive&&o.items.push(this._items[n]);return this._refreshDimensions(),t=this._width-this._borderLeft-this._borderRight,e=this._height-this._borderTop-this._borderBottom,i=c(s)?s(o.items,t,e):oe.getLayout(o.items,t,e,o.slots,s),o.slots=i.slots,o.setWidth=Boolean(i.setWidth),o.setHeight=Boolean(i.setHeight),o.width=i.width,o.height=i.height,o},le.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},le.prototype._hasListeners=function(t){var e=this._emitter._events[t];return!(!e||!e.length)},le.prototype._updateBoundingRect=function(){var t=this._element.getBoundingClientRect();this._width=t.width,this._height=t.height,this._left=t.left,this._top=t.top},le.prototype._updateBorders=function(t,e,i,n){var o=this._element;t&&(this._borderLeft=rt(o,"border-left-width")),e&&(this._borderRight=rt(o,"border-right-width")),i&&(this._borderTop=rt(o,"border-top-width")),n&&(this._borderBottom=rt(o,"border-bottom-width"))},le.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1)},le.prototype._setItemsVisibility=function(t,e,i){var n,o,s=this,a=this.getItems(t),r=i||0,l=!0===r.instant,d=r.onFinish,u=r.layout?r.layout:void 0===r.layout,h=a.length,p=e?"showStart":"hideStart",f=e?"showEnd":"hideEnd",g=e?"show":"hide",m=!1,y=[],_=[];if(h){for(this._hasListeners(p)&&this._emit(p,a.slice(0)),o=0;o<a.length;o++)n=a[o],(e&&!n._isActive||!e&&n._isActive)&&(m=!0),e&&!n._isActive&&(n._layout._skipNextAnimation=!0),e&&n._visibility._isHidden&&_.push(n),n._visibility[g](l,function(t,e){t||y.push(e),--h<1&&(c(d)&&d(y.slice(0)),s._hasListeners(f)&&s._emit(f,y.slice(0)))});_.length&&this.refreshItems(_),m&&u&&this.layout("instant"===u,c(u)?u:void 0)}else c(d)&&d(a)},le}),$(document).ready(function(){window.hasOwnProperty("bluetrix")&&Handlebars.registerPartial("decoratedMenuItem",$("#decoratedMenuItemTemplate").html())}),Handlebars.registerHelper("aquaIsAllChildrenInTileView",function(t,e){var i=!0;return t.map(function(t){t.settings.page.hasOwnProperty("aquaViewMode")&&"tile"===t.settings.page.aquaViewMode||(i=!1)}),i?e.fn(this):e.inverse(this)}),Bluetrix.prototype.cacheGeneratingExtras=function(t){t.find(".aqua-slider-wrapper .aqua-slider").each(function(t,e){$(e).find(".bx-clone").remove(),$(e).closest(".bx-wrapper").find(".bx-controls").remove(),$(e).unwrap().unwrap().removeAttr("style"),$(e).find(".aquaslider__slide").removeAttr("style").removeAttr("aria-hidden")}),t.find(".custom-date-range").each(function(t,e){$(e).find(".date-picker-wrapper").remove()}),t.find("[aqua-review-items-container]").each(function(t,e){$(e).find(".review").each(function(t,e){$(e).css({opacity:1})})}),t.find(".aquapricingtable-module").each(function(t,e){$(e).find("[data-items-container]").find("tr").each(function(t,e){$(e).remove()})})},Bluetrix.prototype.ov_onAfterAllModulesLoadedOnStart=function(){/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)&&$("body").addClass("mac-os")},Module.prototype.createFormFields=function(){this.buildDropdowns()},Module.prototype.buildDropdowns=function(){$.each(this.element.find(".custom-select"),function(t,e){if(0===$(e).closest(".custom-select-wrapper").length){var i=$('<div class="custom-select-wrapper"></div>');$(e).wrap(i);var n=$('<div class="custom-select-dropdown"></div>'),o=null!==$(e).val()?$(e).find('option[value="'+$(e).val()+'"]').text():$(e).find("option:first-child").text();n.append($('<p class="selected caret-down form-control">'+o+"</p>"));var s=$('<ul class="options"></ul>');$.each($(e).find("option"),function(t,e){var i=$("<li>").attr({"data-value":$(e).prop("value")});if(""!==e.className&&i.attr("class",e.className),$(e).data("option-url")){var n=$("<a>").attr({href:$(e).data("option-url")}).text($(e).text());i.append(n)}else i.text($(e).text());$(e).prop("hidden")||s.append(i)}),n.append(s),$(e).closest(".custom-select-wrapper").append(n)}}),this.bindDropdownsEvents()},Module.prototype.bindDropdownsEvents=function(){var t=this;this.element.on("click",".custom-select-dropdown .selected",function(e){e.stopPropagation(),$(this).hasClass("caret-down")?$(this).removeClass("caret-down").addClass("caret-up"):$(this).removeClass("caret-up").addClass("caret-down"),t.toggleDropdown($(this).closest(".custom-select-dropdown"))}),this.element.on("click",".custom-select-dropdown .options > li :not(a), .custom-select-dropdown .options > li",function(e){e.stopPropagation();var i=$(this).closest(".custom-select-wrapper");t.isDropdownOptionDisable($(this))?t.hideOptions(i):t.setDropdownValue(i,$(this)),t.element.find(".custom-select-dropdown .selected").removeClass("caret-up").addClass("caret-down")}),$(document).on("click",function(e){$(e.target).hasClass("options")||0!==$(e.target).closest(".options").length||t.element.find(".custom-select-dropdown .options").slideUp(),t.element.find(".custom-select-dropdown .selected").removeClass("caret-up").addClass("caret-down")})},Module.prototype.toggleDropdown=function(t){t.find(".options").slideToggle()},Module.prototype.hideOptions=function(t){t.find(".custom-select-dropdown .options").slideUp()},Module.prototype.setDropdownValue=function(t,e){var i=e.text();t.find(".custom-select").val(e.data("value")).trigger("change"),t.find(".custom-select-dropdown .selected").text(i),this.hideOptions(t)},Module.prototype.isDropdownOptionDisable=function(t){return t.hasClass("disabled")},Utils.getInst().setCustomValidation(function(t){var e=t.groupFieldsByName();for(var i in e)if("radio"===e[i][0].type){var n=e[i][0];if(n.validators.indexOf("required")>-1){var o=t.formHandler.find('input[name="data['+n.name+']"]'),s=!1;o.map(function(t,e){$(e).is(":checked")&&(s=!0)}),s?o.map(function(e,i){t.removeError($(i))}):o.map(function(e,i){t.applyError($(i))})}}else e[i].map(function(e){e.validators.map(function(i){if(t.hasOwnProperty(i)&&"function"==typeof t[i]){var n=t.formHandler.find("#"+e.id);n.length>0&&(t[i](n,e.type)?t.removeError(n):t.applyError(n))}})})}),AquaSlider.prototype.getRenderData=function(){var t=$.extend({},this.data);return t.hasOwnProperty("tpl")&&Array.isArray(t.slides)&&t.slides.length>0&&this.decorateSlides(t),t},AquaSlider.prototype.decorateSlides=function(t){var e=[];t.slides.map(function(i){switch(t.tpl){case"testimonials":var n=$.extend({},i);n.settings.full_image=i.settings.head_photo,e.push(n);break;default:e.push(i)}}),t.slides=e},AquaSlider.prototype.getDefaultConfig=function(){return{useCSS:!1,auto:!0,pause:4e3,controls:!1,pager:!1,forceRender:!0}},AquaSlider.prototype.render=function(){var t=this.template,e=Handlebars.compile(t)(this.getRenderData());this.handler.html(e)},AquaSlider.prototype.setSliderHandler=function(){this.sliderHandler=this.handler.find("[data-slider]")},AquaSlider.prototype.init=function(){this.sliderHandler.bxSlider(this.config)},AquaSlider.prototype.bindEvents=function(){this.handler.closest(".bx-viewport").on("touchstart",function(t){var e=$(this).closest("a");e.length>0&&e.trigger("click")})},AquaSlider.prototype.isForceRender=function(){return this.config.forceRender},AquaSearch.prototype.init=function(){this.isDynamicRendered()||this.bindEvents()},AquaSearch.prototype.getDefaultConfig=function(){return{dynamicRendered:!1,showSuggestions:!1,showInfo:!1,showResultsInContainer:!0,limit:this.getDefaultLimit(),formHandler:void 0,resultsHandler:void 0,infoHandler:void 0,infoText:void 0,onOpen:function(){},onClose:function(){}}},AquaSearch.prototype.getMobileMaxWidthInPixels=function(){return 481},AquaSearch.prototype.getDefaultLimit=function(){return $(window).width()<this.getMobileMaxWidthInPixels()?5:15},AquaSearch.prototype.generateId=function(){var t=Math.random();return t.toString(36),t.toString(36).substr(2,9)},AquaSearch.prototype.toggle=function(){this.isDynamicRendered()?this.isOpen?this.close():this.open():console.warn("This method is only available with `dynamicRendered` option.")},AquaSearch.prototype.open=function(){window.matchMedia("(min-width: 767px)").matches&&$(".slide-in-wrapper").css({height:"68px",transition:"height .15s;","transition-delay":"0.3s"}),this.render(),this.show(),this.isOpen=!0,this.onOpen()},AquaSearch.prototype.show=function(){this.handler.show()},AquaSearch.prototype.onOpen=function(){this.hideScroll(),"function"==typeof this.config.onOpen&&this.config.onOpen()},AquaSearch.prototype.close=function(){this.hide();var t=this;window.matchMedia("(min-width: 767px)").matches&&($(".navbar-header").addClass("transparent-bg"),$(".slide-in-wrapper").css({height:"0"})),window.matchMedia("(min-width: 767px)").matches?setTimeout(function(){t.removeClose()},300):t.removeClose()},AquaSearch.prototype.removeClose=function(){$(".navbar-header").removeClass("transparent-bg"),this.destroy(),this.isOpen=!1,this.onClose(),"function"==typeof this.config.onClose&&this.config.onClose()},AquaSearch.prototype.destroy=function(){this.handler.remove(),this.handler=void 0},AquaSearch.prototype.hide=function(){this.handler.slideUp(300)},AquaSearch.prototype.onClose=function(){this.showScroll(),"function"==typeof this.config.onClose&&this.config.onClose()},AquaSearch.prototype.render=function(){var t=[];t.push(this.getSearchContainerTemplate()),this.config.showInfo&&t.push(this.getInfoContainerTemplate()),t.push(this.getResultsContainerTemplate()),this.handler=$("<div>").addClass("aqua-popup").append($("<div>").addClass("popup-inner").append($("<div>").addClass("search-container").append(t))),$("#main-container").append(this.handler),this.onRender()},AquaSearch.prototype.onRender=function(){this.bindEvents()},AquaSearch.prototype.getSearchContainerTemplate=function(){var t=[];return t.push(this.getSearchContainerInnerTemplate()),this.config.showSuggestions&&t.push(this.getSuggestionsTemplate()),$("<div>").addClass("form-container").append($("<div>").addClass("container").append($("<form>").attr({action:this.getSearchUrl(),method:"get",class:"form-wrapper","data-aqua-search-form":""}).append(t)))},AquaSearch.prototype.getSearchContainerInnerTemplate=function(){return $("<div>").addClass("form-group").append($("<span>").attr({for:this.id+"-q",class:"sr-only"}).text(this.getSearchPlaceholder()),$("<input>").attr({type:"text",autocomplete:"off",name:"q",id:this.id+"-q",class:"form-control",placeholder:this.getSearchPlaceholder(),"data-aqua-search-field":""}),$("<span>").addClass("aqua-icon aqua-search btn btn-search"),$("<button>").attr({type:"button",class:"btn btn-reset","aria-label":this.getResetButtonLabel(),"data-aqua-search-reset":""}).append($("<span>").addClass("aqua-icon aqua-close")))},AquaSearch.prototype.getInfoContainerTemplate=function(){return $("<div>").attr({class:"info-container","data-aqua-search-info":""})},AquaSearch.prototype.getResultsContainerTemplate=function(){return $("<div>").attr({class:"results-container","data-aqua-search-results":""})},AquaSearch.prototype.getSuggestionsTemplate=function(){var t=this,e=$("<div>").attr({class:"suggestions-list-container","data-aqua-search-suggestions":""}),i=$("<ul>").addClass("suggestions-list"),n=function(e){return t.id+"-suggestion-"+e};for(var o in this.getTags())i.append($("<li>").addClass("suggestion").append($("<div>").addClass("form-group").append($("<input>").attr({type:"checkbox",name:"tag[]",class:"form-control",value:o,id:n(o),"data-aqua-search-field":""}),$("<label>").attr({class:"label",for:n(o)}).text(this.getTags()[o]))));return e.append(i,$("<button>").attr({type:"button",class:"btn btn-toggle","data-aqua-search-suggestions-toggle":""}).append($("<span>").addClass("fa fa-caret-down"))),$("<div>").addClass("form-group form-group-suggestions").append($("<p>").addClass("label").text(this.getSuggestionsLabel()),e)},AquaSearch.prototype.showScroll=function(){bluetrix.showScroll()},AquaSearch.prototype.hideScroll=function(){bluetrix.hideScroll()},AquaSearch.prototype.isSearchInputValid=function(t){return 20!==t.keyCode&&!(t.target.value.length<3)},AquaSearch.prototype.bindEvents=function(){var t=this;$(".decorated-menu-item").on("click",function(e){t.isOpen&&t.close()}),this.getFormHandler().on("submit",function(t){t.preventDefault()}),this.getFormHandler().on("keyup",'[data-aqua-search-field][type="text"]',function(e){t.isSearchInputValid(e)||t.isAnyFilterSetUp()&&!1===t.isOnlyQueryFilter()?($(".aqua-popup").addClass("search-items-available"),t.showResults(),t.showSuggestions(),t.showInfo(),t.updateFilters()):($(".aqua-popup").removeClass("search-items-available"),t.hideInfo(),t.hideResults(),t.hideSuggestions())}),this.getFormHandler().on("blur",'[data-aqua-search-field][type="text"]',function(t){t.target.value.length>0&&aquaTrackSearchInputBlurMiddleware(t.target.value)}),this.getFormHandler().on("change",'[data-aqua-search-field][type="checkbox"], [data-aqua-search-field][type="radio"]',function(){"tag[]"===$(this).attr("name")&&t.handleTagSelect($(this)),t.updateFilters()}),this.getFormHandler().on("focus","[data-aqua-search-field]:not([type=checkbox]):not([type=radio])",function(){t.onFieldFocus()}),this.getFormHandler().on("blur","[data-aqua-search-field]:not([type=checkbox]):not([type=radio])",function(){t.onFieldBlur()}),this.getFormHandler().on("click","[data-aqua-search-suggestions-toggle]",function(){t.toggleSuggestions()}),this.getFormHandler().on("click","[data-aqua-search-reset]",function(){t.clearResults(),t.resetFilters()}),this.getResultsHandler().on("click","[data-aqua-search-more]",function(){t.loadMore()}),this.getSuggestionsHandler().on("click",".suggestion .label",function(t){aquaTrackSearchSuggestionClickMiddleware($(t.target).text().toLowerCase())}),this.getInfoHandler().on("click","a",function(e){e.stopPropagation(),e.preventDefault(),t.fillSearch($(this))})},AquaSearch.prototype.handleTagSelect=function(t){var e=$(t).attr("id");this.choosenTagId=$(t).val(),$('[data-aqua-search-field][type="checkbox"]').each(function(t,i){$(i).attr("id")!==e&&$(this).attr("checked",!1)})},AquaSearch.prototype.toggleSuggestions=function(){this.isSuggestionsVisible()?this.hideSuggestions():this.showSuggestions()},AquaSearch.prototype.showSuggestions=function(){this.getSuggestionsHandler().addClass("show-all")},AquaSearch.prototype.hideSuggestions=function(){this.getSuggestionsHandler().removeClass("show-all")},AquaSearch.prototype.isSuggestionsVisible=function(){return this.getSuggestionsHandler().hasClass("show-all")},AquaSearch.prototype.isRendered=function(){return this.isDynamicRendered()&&this.handler.length>0},AquaSearch.prototype.onFieldFocus=function(){this.isRendered()&&this.handler.addClass("field-focused")},AquaSearch.prototype.onFieldBlur=function(){this.isRendered()&&this.handler.removeClass("field-focused")},AquaSearch.prototype.loadMore=function(){this.increasePage(),this.renderResults(),this.updateMoreButtonState()},AquaSearch.prototype.search=function(){var t=this;this.abortSearch(),this.searchRequest=$.ajax({url:this.getSearchUrl(),method:"get",data:this.getSearchData(),success:function(e){t.onSearch(e)},complete:function(){t.searchRequest=void 0}})},AquaSearch.prototype.getSearchData=function(){return this.filters},AquaSearch.prototype.updateResults=function(t){"object"===(void 0===t?"undefined":_typeof(t))&&null!==t&&Array.isArray(t)?(this.results=t,t.length>0?this.onNonEmptyResults():this.onEmptyResults()):(this.results=[],this.onEmptyResults())},AquaSearch.prototype.onEmptyResults=function(t){this.getResultsHandler().addClass("empty-results")},AquaSearch.prototype.onNonEmptyResults=function(t){this.getResultsHandler().removeClass("empty-results")},AquaSearch.prototype.onSearch=function(t){this.updateResults(t),this.renderResults(),this.updateMoreButtonState(),this.isShowInfo()&&this.renderInfo()},AquaSearch.prototype.getResultsCount=function(){return this.results.length},AquaSearch.prototype.getResultsToRender=function(){return this.results.slice().splice(this.getOffset(),this.getLimit())},AquaSearch.prototype.resetPage=function(){this.page=0},AquaSearch.prototype.increasePage=function(){this.page++},AquaSearch.prototype.getOffset=function(){return this.page*this.getLimit()},AquaSearch.prototype.getLimit=function(){return this.config.limit},AquaSearch.prototype.getInfoResultsSeparator=function(){return[" ",options.dictionary.aqua.infoResultsSeparator," "].join("")},AquaSearch.prototype.getMoreButtonLabel=function(){return options.dictionary.aqua.moreButtonLabel},AquaSearch.prototype.getSearchPlaceholder=function(){return options.dictionary.aqua.searchPlacehoder},AquaSearch.prototype.getSuggestionsLabel=function(){return options.dictionary.aqua.suggestionsLabel},AquaSearch.prototype.getResetButtonLabel=function(){return options.dictionary.aqua.resetLabel},AquaSearch.prototype.getTags=function(){return options.aqua.tags},AquaSearch.prototype.getSearchPhrase=function(){return this.filters.hasOwnProperty("q")&&"string"==typeof this.filters.q&&""!==this.filters.q?this.filters.q:""},AquaSearch.prototype.fillSearch=function(t){this.updatePhrase(t.text())},AquaSearch.prototype.getPhraseInputHandler=function(){return this.getFormHandler().find('input[name="q"]')},AquaSearch.prototype.updatePhrase=function(t){this.getPhraseInputHandler().val(t).trigger("keyup")},AquaSearch.prototype.renderResults=function(){var t=this,e=this.getResultsToRender(),i=[];e.length>0&&(e.map(function(e){i.push(t.getSingleResultView(e))}),this.getListHandler().append(i),this.onRenderResults())},AquaSearch.prototype.getSingleResultView=function(t){var e=null!==t.teaser?t.teaser:"";return e=e.replace(/<[^>]*>?/gm,""),$("<div>").addClass("result").append($("<a>").attr({href:Handlebars.helpers.adminurl(t.link.front,t.link.admin),target:t.link.target,class:"result-anchor"}).append($("<p>").addClass("title").text(t.title),$("<p>").addClass("teaser").text(e)))},AquaSearch.prototype.updateMoreButtonState=function(){this.isMorePagesThanCurrent()?this.createMoreButton():this.removeMoreButton()},AquaSearch.prototype.createMoreButton=function(){if(0===this.getResultsHandler().find("[data-aqua-search-more]").length){var t=this.getResultsHandler();this.config.showResultsInContainer&&0===(t=this.getResultsHandler().find(".container")).length&&(t=$("<div>").addClass("container"),this.getResultsHandler().append(t)),t.append($("<div>").addClass("btn-container").append($("<button>").attr({type:"button",class:"btn btn-aqua","data-aqua-search-more":""}).text(this.getMoreButtonLabel())))}},AquaSearch.prototype.removeMoreButton=function(){this.getResultsHandler().find("[data-aqua-search-more]").closest(".btn-container").remove()},AquaSearch.prototype.isMorePagesThanCurrent=function(){return this.getPagesCount()-1>this.page},AquaSearch.prototype.getPagesCount=function(){return Math.round(this.getResultsCount()/this.getLimit())},AquaSearch.prototype.onRenderResults=function(){this.showResults()},AquaSearch.prototype.isShowInfo=function(){return this.config.showInfo&&void 0!==this.getInfoHandler()&&this.getInfoHandler().length>0},AquaSearch.prototype.renderInfo=function(){this.getInfoHandler().empty().append(this.isAnyFilterSetUp()?this.getInfoAfterSearchTemplate():this.getInfoBeforeSearchTemplate()),this.onRenderInfo()},AquaSearch.prototype.isSearchPharseEmpty=function(t){return void 0===t||null===t||""===t},AquaSearch.prototype.getInfoAfterSearchTemplate=function(){return $("<p>").addClass("info").append($("<span>").addClass("results-count").text(this.getResultsCount()),$("<span>").text(this.getInfoResultsSeparator()),$("<strong>").addClass("search-phrase").text(this.isSearchPharseEmpty(this.getSearchPhrase())?this.getTags()[this.choosenTagId]:this.getSearchPhrase()))},AquaSearch.prototype.getInfoBeforeSearchTemplate=function(){return this.getInfoText()},AquaSearch.prototype.getInfoText=function(){return this.config.infoText},AquaSearch.prototype.hasInfoText=function(){return"string"==typeof this.getInfoText()&&""!==this.getInfoText()},AquaSearch.prototype.onRenderInfo=function(){this.showInfo()},AquaSearch.prototype.showInfo=function(){this.getInfoHandler().addClass("show-info")},AquaSearch.prototype.clearInfo=function(){this.getInfoHandler().empty(),this.onClearInfo()},AquaSearch.prototype.onClearInfo=function(){this.hideInfo()},AquaSearch.prototype.hideInfo=function(){this.getInfoHandler().empty().removeClass("show-info")},AquaSearch.prototype.emptyResults=function(){this.getResultsHandler().empty()},AquaSearch.prototype.clearResults=function(){$(".aqua-popup").removeClass("search-items-available"),this.getResultsHandler().empty(),this.onClearResults()},AquaSearch.prototype.onClearResults=function(){this.hideResults()},AquaSearch.prototype.showResults=function(){this.getResultsHandler().addClass("show-results")},AquaSearch.prototype.hideResults=function(){this.getResultsHandler().removeClass("show-results")},AquaSearch.prototype.isOnlyQueryFilter=function(){return"object"===_typeof(this.filters)&&null!==this.filters&&1===Object.keys(this.filters).length&&void 0!==this.filters.q&&this.filters.q.length>0},AquaSearch.prototype.isAnyFilterSetUp=function(){return"object"===_typeof(this.filters)&&null!==this.filters&&Object.keys(this.filters).length>0},AquaSearch.prototype.serializeForm=function(){var t=this.getFormHandler().find(":input").serializeJSON();return t.hasOwnProperty("q")&&"string"==typeof t.q&&""===t.q&&delete t.q,t},AquaSearch.prototype.updateFilters=function(){this.filters=this.serializeForm(),this.isAnyFilterSetUp()?($(".aqua-popup").addClass("search-items-available"),this.onUpdateFilters(),this.search()):($(".aqua-popup").removeClass("search-items-available"),this.resetFilters())},AquaSearch.prototype.onUpdateFilters=function(){this.markFiltersSetUp(),this.resetPage(),this.emptyResults()},AquaSearch.prototype.resetFilters=function(){this.getFormHandler().find(':input[type="checkbox"], :input[type="radio"]').prop("checked",!1),this.getFormHandler().find(':input:not([type="checkbox"]):not([type="radio"])').val(""),this.abortSearch(),this.filters={},this.onResetFilters()},AquaSearch.prototype.onResetFilters=function(){this.unMarkFiltersSetUp(),this.emptyResults(),this.hideResults(),this.isShowInfo()&&(this.hasInfoText()?this.renderInfo():this.clearInfo())},AquaSearch.prototype.abortSearch=function(){void 0!==this.searchRequest&&(this.searchRequest.abort(),this.searchRequest=void 0)},AquaSearch.prototype.markFiltersSetUp=function(){this.getFormHandler().addClass("with-filters"),this.isRendered()&&this.handler.addClass("with-filters")},AquaSearch.prototype.unMarkFiltersSetUp=function(){this.getFormHandler().removeClass("with-filters"),this.isRendered()&&this.handler.removeClass("with-filters")},AquaSearch.prototype.isDynamicRendered=function(){return this.config.dynamicRendered},AquaSearch.prototype.getFormHandler=function(){return this.isDynamicRendered()?this.handler.find("[data-aqua-search-form]"):this.config.formHandler},AquaSearch.prototype.getSuggestionsHandler=function(){return this.getFormHandler().find("[data-aqua-search-suggestions]")},AquaSearch.prototype.getResultsHandler=function(){return this.isDynamicRendered()?this.handler.find("[data-aqua-search-results]"):this.config.resultsHandler},AquaSearch.prototype.getListHandler=function(){var t=this.getResultsHandler().find("[data-aqua-search-list]");if(0===t.length)if(t=$("<ul>").addClass("results-list").attr("data-aqua-search-list",""),this.config.showResultsInContainer){var e=$("<div>").addClass("container");e.append(t),this.getResultsHandler().append(e)}else this.getResultsHandler().append(t);return t},AquaSearch.prototype.getInfoHandler=function(){return this.isDynamicRendered()?this.handler.find("[data-aqua-search-info]"):this.config.infoHandler},AquaSearch.prototype.getSearchUrl=function(){return options.aqua.searchUrl},AquaSearch.prototype.isSearchUrlExist=function(){var t=this.getSearchUrl();return"string"==typeof t&&""!==t},Handlebars.registerHelper("ratingToStars",function(t){null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&(t=t[bluetrix.getLang()]);var e=0;t&&(e=Math.round(2*t)/2);for(var i=$("<div>").addClass("rating-container"),n=$("<span>").addClass("aqua-icon aqua-star star"),o=t;o>=1;o--)i.append(n.clone());o>=.5&&i.append($("<span>").addClass("aqua-icon aqua-star-half star").append($("<span>").addClass("path1"),$("<span>").addClass("path2")));for(var s=5-e;s>=1;s--)i.append($("<span>").addClass("aqua-icon aqua-star-bordered star"));return i[0].outerHTML}),Handlebars.registerHelper("aquaCategoryUrl",function(t,e){if(options.aqua.categoriesUrl){var i=Utils.getInst().slugify(t),n=options.aqua.categoriesUrl.replace("_categorySlug_",i);return e?n:'data-option-url="'+n+'"'}}),Handlebars.registerHelper("isParameterEmpty",function(t){return void 0===t||null===t||""===t}),Handlebars.registerHelper("aquaCategoryUrlSelected",function(t){return Utils.getInst().slugify(t)===options.aqua.externalSlug?"selected":""}),Bluetrix.prototype.bindGlobalEvents=function(){this.isAdmin()||(this.scrollToElementByHash(),catchTelephoneClick())},accordionModule.prototype.onAddedToStageLocal=function(){this.updateAccordionTheme()},accordionModule.prototype.updateAccordionTheme=function(){this.element.addClass("aqua-theme-"+this.getThemeName())},accordionModule.prototype.getThemeName=function(){var t=this.getSettings();return t.hasOwnProperty("aquaTheme")&&"string"==typeof t.aquaTheme&&""!==t.aquaTheme?t.aquaTheme:this.getDefaultThemeName()},accordionModule.prototype.getDefaultThemeName=function(){return"default"},inheritPrototype(aquaaffiliateproductsModule,Module),inheritPrototype(aquaallpublicationsModule,Module),aquaallpublicationsModule.prototype.precompile=function(t){Module.prototype.precompile.call(t),this.getDataContent().tags=this.getTags()},aquaallpublicationsModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.hasPublications()&&this.bindLocalEvents()},aquaallpublicationsModule.prototype.bindLocalEvents=function(){var t=this;this.element.on("click","[data-aqua-publications-more]",function(){t.loadMore()})},aquaallpublicationsModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.createFormFields(),this.hasPublications()&&(bluetrix.isCached()||(this.stopCacheProcessing(),this.presetTagFilter(),this.renderPublications(),this.startCacheProcessing()))},aquaallpublicationsModule.prototype.presetTagFilter=function(){this.tag=this.element.find("[data-aqua-publications-tag]").val(),this.onPresetTagFilter()},aquaallpublicationsModule.prototype.onPresetTagFilter=function(){this.updateTagLabel()},aquaallpublicationsModule.prototype.loadMore=function(){this.increasePage(),this.renderPublications()},aquaallpublicationsModule.prototype.changeTag=function(t){this.tag=t,this.onChangeTag()},aquaallpublicationsModule.prototype.onChangeTag=function(){this.updateTagLabel(),this.resetPage(),this.clearList(),this.renderPublications()},aquaallpublicationsModule.prototype.updateTagLabel=function(){var t=this.getSelectedTagLabel();"string"==typeof t&&""!==t?this.getTagLabelHandler().text(t):this.getTagLabelHandler().text(this.getTagLabelHandler().data("aqua-publications-tag-empty-label"))},aquaallpublicationsModule.prototype.renderPublications=function(){var t=this,e=[];this.getPublicationsToRender().map(function(i){e.push(t.getSinglePublicationView(i)),t.loaded+=1}),this.getListHandler().append(e),this.onRenderPublications()},aquaallpublicationsModule.prototype.onRenderPublications=function(){this.updateMoreButtonState()},aquaallpublicationsModule.prototype.getSinglePublicationView=function(t){var e=this.loaded>1?"small-box":"";return $("<li>").addClass("publication "+e).append(this.getSinglePublicationAnchor(t).append($("<div>").addClass("image-container").append($("<div>").addClass("image-inner").append($("<img>").attr({src:this.getSinglePublicationThumb(t),alt:Handlebars.helpers.lang(t.content.alt_image),title:Handlebars.helpers.lang(t.content.title_image),class:"img-responsive publication-image"})))),$("<div>").addClass("data-container").append(this.getSinglePublicationAnchor(t).append($("<p>").addClass("title").text(Handlebars.helpers.lang(t.title))),$("<div>").addClass("info-container").append($("<p>").addClass("category").html(this.getSinglePublicationTags(t))),this.getSinglePublicationAnchor(t).append($("<p>").addClass("teaser").text(Handlebars.helpers.lang(t.content.teaser)))))},aquaallpublicationsModule.prototype.getSinglePublicationThumb=function(t){var e=t.settings;return e.hasOwnProperty("full_image")&&""!==e.full_image?e.full_image:e.thumb_image},aquaallpublicationsModule.prototype.getSinglePublicationAnchor=function(t){return $("<a>").attr({class:"publication-anchor",href:Handlebars.helpers.adminurl(t.link.front,t.link.admin),target:t.link.target})},aquaallpublicationsModule.prototype.getSinglePublicationTags=function(t){if(!options.aqua.categoriesUrl)return[];if("object"===_typeof(t.settings.tags)&&t.settings.tags.hasOwnProperty("values")&&"object"===_typeof(t.settings.tags.values)&&null!==t.settings.tags.values){var e=this,i=[];return t.settings.tags.values.map(function(t){e.getTags()[t]&&i.push($("<a>").attr({href:Handlebars.helpers.aquaCategoryUrl(e.getTags()[t],!0)}).text(e.getTags()[t]))}),i}return[]},aquaallpublicationsModule.prototype.updateMoreButtonState=function(){this.isMorePagesThanCurrent()?this.getMoreButtonHandler().show():this.getMoreButtonHandler().hide()},aquaallpublicationsModule.prototype.isMorePagesThanCurrent=function(){return this.getPagesCount()-1>this.page},aquaallpublicationsModule.prototype.getPagesCount=function(){return Math.round((this.getPublicationsFilteredCount()-this.firstPageExtraItems)/this.getLimit())},aquaallpublicationsModule.prototype.clearList=function(){this.getListHandler().empty()},aquaallpublicationsModule.prototype.getPublicationsToRender=function(){return this.getPublicationsFiltered().slice().splice(this.getOffset(),this.getLimit())},aquaallpublicationsModule.prototype.getPublications=function(){return this.getDataContent().publications},aquaallpublicationsModule.prototype.getPublicationsCount=function(){return this.getPublications().length},aquaallpublicationsModule.prototype.getPublicationsFiltered=function(){var t=this.getPublications().slice();return""!==this.tag&&(t=this.applyTagFilter(t)),t},aquaallpublicationsModule.prototype.getPublicationsFilteredCount=function(){return this.getPublicationsFiltered().length},aquaallpublicationsModule.prototype.applyTagFilter=function(t){var e=this,i=[];return t.map(function(t){var n=t.settings.tags;"object"===(void 0===n?"undefined":_typeof(n))&&null!==n&&n.hasOwnProperty("values")&&"object"===_typeof(n.values)&&null!==n.values&&Array.isArray(n.values)&&n.values.length>0&&n.values.indexOf(e.tag)>-1&&i.push(t),"0"===e.tag&&i.push(t)}),i},aquaallpublicationsModule.prototype.hasPublications=function(){var t=this.getPublications();return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t&&Array.isArray(t)&&t.length>0},aquaallpublicationsModule.prototype.getTags=function(){return options.aqua.tags},aquaallpublicationsModule.prototype.getSelectedTagLabel=function(){return this.getTags()[this.tag]},aquaallpublicationsModule.prototype.resetPage=function(){this.page=0},aquaallpublicationsModule.prototype.increasePage=function(){this.page++},aquaallpublicationsModule.prototype.getLimit=function(){return 0===this.page?this.limit+this.firstPageExtraItems:this.limit},aquaallpublicationsModule.prototype.getOffset=function(){return 0===this.page?0:this.page*this.getLimit()+this.firstPageExtraItems},aquaallpublicationsModule.prototype.getListHandler=function(){return this.element.find("[data-aqua-publications-list]")},aquaallpublicationsModule.prototype.getTagLabelHandler=function(){return this.element.find("[data-aqua-publications-tag-label]")},aquaallpublicationsModule.prototype.getMoreButtonHandler=function(){return this.element.find("[data-aqua-publications-more]")},inheritPrototype(aquaclinicsModule,Module),aquaclinicsModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.updateBoxesVisibility(),this.updateExpandButtonVisibility(this.getSelectedCityId())},aquaclinicsModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.element.on("click","[data-aqua-clinics-expand]",function(){t.showBoxes()}),this.getSelectedCityId(),this.element.on("shown.bs.tab",'a[data-toggle="tab"]',function(){t.updateExpandButtonVisibility($(this).attr("href"))}),window.addEventListener("resize",function(){t.updateBoxesVisibility(),t.updateExpandButtonVisibility(t.getSelectedCityId())})},aquaclinicsModule.prototype.updateBoxesVisibility=function(){var t=this.element.find(".tab-pane.active").hasClass("expanded");this.isMinifyViewSize()&&!t?this.element.find(".tab-pane").each(function(){var t=$(this).find(".box").slice(0,4);$(this).find(".box").hide(),t.each(function(){$(this).show()})}):this.element.find(".box").show()},aquaclinicsModule.prototype.updateExpandButtonVisibility=function(t){if(this.isMinifyViewSize()){var e=$(t);e.find(".box").length<5?this.getExpandButtonHandler().css("display","none"):e.hasClass("expanded")||this.getExpandButtonHandler().css("display","block")}else this.getExpandButtonHandler().css("display","none")},aquaclinicsModule.prototype.showBoxes=function(){var t=this.element.find(".tab-pane.active");t.find(".box").show(),t.addClass("expanded"),this.getExpandButtonHandler().hide()},aquaclinicsModule.prototype.getExpandButtonHandler=function(){return this.element.find("[data-aqua-clinics-expand]")},aquaclinicsModule.prototype.isMinifyViewSize=function(){return $(window).width()<1200},aquaclinicsModule.prototype.getSelectedCityId=function(){return $(this.element).find(".nav-tabs .active a").attr("href")},inheritPrototype(aquaclinicsmapModule,googlemapModule),aquaclinicsmapModule.prototype.getMarkers=function(){var t=[],e=this.getClinics();return Array.isArray(e)&&e.map(function(e){e.hasOwnProperty("addressData")&&"object"===_typeof(e.addressData)&&e.addressData.hasOwnProperty("lat")&&e.addressData.hasOwnProperty("lng")&&t.push({id:e.id,lat:e.addressData.lat,lng:e.addressData.lng})}),t},aquaclinicsmapModule.prototype.createMarkerDesc=function(t,e){},aquaclinicsmapModule.prototype.getClinics=function(){var t=this.getDataContent();return t.hasOwnProperty("clinics")?t.clinics:[]},aquaclinicsmapModule.prototype.onCreationProcessEnd=function(){var t=this;this.getMapMarkers().map(function(e){google.maps.event.addListener(e,"click",function(){var i=t.getClinicById(e.id);t.showClinicInfo(i,e)})})},aquaclinicsmapModule.prototype.isClinicInfoDisplayed=function(){return void 0!==this.getInfoHandler()&&this.getInfoHandler().length>0},aquaclinicsmapModule.prototype.showClinicInfo=function(t,e){this.hasInfoWindow()&&(this.getInfoWindow().close(),this.setInfoWindow(null));var i=new google.maps.InfoWindow({content:'<div class="clinic-info">\n            <h4 class="clinic-name">'+Handlebars.helpers.lang(t.name)+'</h4>\n            <p class="clinic-address">'+t.addressData.address+"</p>\n            "+(t.phone&&'<p class="clinic-phone">\n                <a href="tel:'+t.phone+'">'+t.phone+"</a>\n            </p>")+'\n            <div class="btns-container '+(t.url&&t.bookingUrl?"btns-container-filled":"")+'">\n                 '+(t.bookingUrl?'<a href="'+Handlebars.helpers.adminurl(t.bookingUrl.front,t.bookingUrl.admin)+'" class="btn btn-default btn-inverted">'+options.dictionary.aqua.bookingLabel+"</a>":"")+"\n                "+(t.url?'<a href="'+Handlebars.helpers.adminurl(t.url.front,t.url.admin)+'" class="btn btn-default">'+options.dictionary.aqua.readMoreLabel+"</a>":"")+"\n               \n            </div>\n        </div>"});this.setInfoWindow(i),this.hasInfoWindow()&&this.getInfoWindow().open(this.getMapInstance(),e)},aquaclinicsmapModule.prototype.isSingleMarkersMode=function(){return!1},aquaclinicsmapModule.prototype.getClinicById=function(t){var e=void 0;return this.getClinics().map(function(i){i.id===t&&(e=i)}),e},aquaclinicsmapModule.prototype.hasManyClinics=function(){return this.getClinics().length>1},aquaclinicsmapModule.prototype.getDefaultMarkerClusterImage=function(){return"/bundles/aquadentalcommon/assets/map-cluster"},aquaclinicsmapModule.prototype.getZoom=function(){return this.hasManyClinics()?5:googlemapModule.prototype.getZoom.call(this)},aquaclinicsmapModule.prototype.getMapStyles=function(){return this.hasManyClinics()?[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}]:[{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}]},inheritPrototype(aquafootercolumnModule,Module),aquafootercolumnModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.opened=!1,this.bindLocalEvents()},aquafootercolumnModule.prototype.getHeadline=function(){return this.element.find(".headline")},aquafootercolumnModule.prototype.getItemsContainer=function(){return this.element.find(".bluetrix-container")},aquafootercolumnModule.prototype.isToggleable=function(){return!($(window).width()>767)},aquafootercolumnModule.prototype.bindLocalEvents=function(){var t=this;this.getHeadline().on("click",function(e){t.isToggleable()&&(!1===t.opened?(t.getHeadline().removeClass("closed").addClass("open"),t.getItemsContainer().slideDown()):(t.getHeadline().removeClass("open").addClass("closed"),t.getItemsContainer().slideUp())),t.opened=!t.opened})},inheritPrototype(aquafooteritemModule,Module),inheritPrototype(aquamenuModule,Module),aquamenuModule.prototype.prepareDataToCompilation=function(t){return $.extend({},t,{menuPoints:this.getLatestMenuPoints(t)})},aquamenuModule.prototype.getLatestMenuPoints=function(t){return"object"===(void 0===t?"undefined":_typeof(t))&&null!==t&&t.hasOwnProperty("modules")&&Array.isArray(t.modules)&&t.modules.length>0?t.modules.slice():[]},aquamenuModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.search=new AquaSearch(this.getSearchConfig()),this.createMenuOverlay();var t=this;this.getElement().on("click","[data-aqua-menu-search]",function(){t.toggleSearch($(this).data("aqua-menu-search"))}),this.getElement().on("click",".navbar-toggle",function(e){t.onNavbarToggleClick(e)}),this.getElement().on("show.bs.collapse",".collapse",function(){t.onNavbarOpen()}),this.getElement().on("hidden.bs.collapse",".collapse",function(){t.onNavbarClose()}),$(window).on("resize",function(){t.handleWindowResize()}),$(document).on("click",function(e){t.isDecoratedMenuOpen()&&0===$(e.target).closest(".navbar").length&&t.closeAllDecoratedMenus(!0)}),$(document).on("scroll",function(){t.onScroll()}),this.getElement().find("[data-close-menu]").on("click",function(){t.hideMenu()}),this.getMenuOverlay().on("click",function(){t.hideMenu()}),this.getElement().on("click","[data-aqua-menu-submenu]",function(e){$(this).is("a")?$(e.target).closest(".btn-toggle").length>0&&(e.preventDefault(),t.toggleDecoratedMenu($(this))):t.toggleDecoratedMenu($(this))}),this.getElement().find(".decorated-menu > .decorated-menu-item > .has-children").on("click",function(e){$("body").removeClass("disable-animation-on-next-item-click"),void 0!==t.prevClickedMenuItem&&!1!==t.prevClickedMenuItem.is(e.currentTarget)||$("body").addClass("disable-animation-on-next-item-click"),t.prevClickedMenuItem=$(e.currentTarget)})},aquamenuModule.prototype.handleWindowResize=function(){if(this.isDecoratedMenuOpen()){var t=this.getElement().find(".decorated-menu-item.open");this.rePositionTilesMultipleSubmenu(t)}},aquamenuModule.prototype.hideMenu=function(){this.getElement().find(".collapse").collapse("hide")},aquamenuModule.prototype.toggleMenu=function(){this.getElement().find(".collapse").collapse("toggle")},aquamenuModule.prototype.toggleDecoratedMenu=function(t){var e=t.closest(".decorated-menu-item");e.hasClass("open")?(e.removeClass("open"),this.showScroll(),this.onHideDecoratedMenu()):(this.isDecoratedMenuOpen()&&this.closeAllDecoratedMenus(!1),this.hideScroll(),this.rePositionTilesMultipleSubmenu(e),e.addClass("open"),this.onShowDecoratedMenu())},aquamenuModule.prototype.handleMenuItemClick=function(t,e,i,n){e.hasClass("not-linkable")?this.onMenuItemClick(n):i.closest(".btn-toggle").length>0&&(t.preventDefault(),this.onMenuItemClick(n))},aquamenuModule.prototype.onMenuItemClick=function(t){if(bluetrix.modules_container[t]){var e=bluetrix.modules_container[t].module;this.renderSubmenu(e),this.showSubmenu()}},aquamenuModule.prototype.renderSubmenu=function(t){var e=$("<ul>").addClass("menu");e.append($("<li>").addClass("menu-item menu-item-title").text(Utils.getInst().trans(t.data.content.title))),Array.isArray(t.data.modules)&&t.data.modules.length>0&&this.renderSubmenuPoints(e,t.data.modules),this.getSubmenuHandler().html(e)},aquamenuModule.prototype.renderSubmenuPoints=function(t,e){var i=this;e.map(function(e){var n=$("<li>").attr({class:"menu-item"});if(1==- -e.settings.page.notLinkable?n.append($("<p>").text(Utils.getInst().trans(e.content.title))):n.append($("<a>").attr({href:Handlebars.helpers.objectLangUrl(e.content.link)}).text(Utils.getInst().trans(e.content.title))),Array.isArray(e.modules)&&e.modules.length>0){n.addClass("has-children");var o=$("<ul>").addClass("menu submenu");i.renderSubmenuPoints(o,e.modules),n.append(o)}t.append(n)})},aquamenuModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.isStaticNavbar()&&this.enableStaticNavbar(),this.isDarkMenuMode()&&this.enableDarkMenu(),this.disableCoreEventForButtonToggle()},aquamenuModule.prototype.enableStaticNavbar=function(){this.getElement().find(".btn-register").hide(),$("body").addClass(this.getStickedMenuClass()),this.getElement().find(".aqua-menu-inner").css({position:"static"})},aquamenuModule.prototype.isDarkMenuMode=function(){return window.options.aqua.isDarkMenu},aquamenuModule.prototype.isStaticNavbar=function(){return"true"===window.options.aqua.isStaticNavbar||!0===window.options.aqua.isStaticNavbar},aquamenuModule.prototype.enableDarkMenu=function(){this.element.addClass("dark-menu"),$("body").addClass("dark-menu")},aquamenuModule.prototype.onSiteFullyLoad=function(){Module.prototype.onSiteFullyLoad.call(this);this.getElement().find(".decorated-menu > .decorated-menu-item > .menu-item-label-wrapper").each(function(t,e){$(e).after('<div class="slide-in-wrapper"></div>')}),this.bindEventsOnFullyLoaded()},aquamenuModule.prototype.bindEventsOnFullyLoaded=function(){var t=this;this.getNavbarHandler().find(".menuitem-module").on("click",function(t){void 0!==$(this).find(".href")[0]&&"#"!==$($(this).find(".href")[0]).attr("href")&&t.stopImmediatePropagation()}),this.getNavbarHandler().find(".dropdown-toggle").on("click",function(e){t.handleNavigationItemClick(e)}),this.getNavbarHandler().find(".btn-toggle").on("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),t.handleNavigationItemClick(e)})},aquamenuModule.prototype.handleNavigationItemClick=function(t){$(t.currentTarget).closest(".menuitem-module").toggleClass("open");var e=$(t.currentTarget).closest(".menuitem-module").find(".dropdown-menu");e.addClass("auto-height");var i=e.height();e.removeClass("auto-height"),$(t.currentTarget).closest(".menuitem-module").find(".dropdown-toggle").siblings(".dropdown-menu").css({display:"block"}),$(t.currentTarget).closest(".menuitem-module").hasClass("open")?e.animate({height:i},5):e.animate({height:0},5)},aquamenuModule.prototype.disableCoreEventForButtonToggle=function(){this.getNavbarHandler().find(".menuitem-module").each(function(t,e){$(e).addClass("local-evt")})},aquamenuModule.prototype.getNavbarHandler=function(){return this.getElement().find(".navbar-nav")},aquamenuModule.prototype.getSubmenuHandler=function(){return this.getElement().find("[data-aqua-menu-submenu-container]")},aquamenuModule.prototype.isSubmenuOpen=function(){return this.submenuOpen},aquamenuModule.prototype.showSubmenu=function(){this.submenuOpen=!0,$("body").addClass("aqua-menu-show-submenu")},aquamenuModule.prototype.hideSubmenu=function(){this.submenuOpen=!1,$("body").removeClass("aqua-menu-show-submenu"),this.getSubmenuHandler().empty()},aquamenuModule.prototype.onNavbarToggleClick=function(t){this.slideMenu(),this.getMenuOverlay().removeClass("hidden"),this.hideSearch(),this.onHideDecoratedMenu(),this.onNavbarOpen(),this.isSidebarMenuOpen=!0},aquamenuModule.prototype.getNavbarPhoneElement=function(){return this.getElement().find(".navbar-collapse-custom").find(".navbar-footer-phone")},aquamenuModule.prototype.isIPhone=function(){return $("body").hasClass("mac-os")&&!0===window.matchMedia("(max-width: 480px)").matches},aquamenuModule.prototype.getSlideMenuSlidingTime=function(){return 400},aquamenuModule.prototype.slideMenu=function(){this.getNavbarPhoneElement();this.isSidebarMenuOpen?($("body").removeClass("sidebar-menu-opened"),this.getElement().find(".navbar-collapse-custom").hide("slide",{direction:"left"},this.getSlideMenuSlidingTime())):($("body").addClass("sidebar-menu-opened"),this.getElement().find(".navbar-collapse-custom").show("slide",{direction:"left"},this.getSlideMenuSlidingTime()))},aquamenuModule.prototype.immediatelyHideMenu=function(){this.element.find(".navbar-collapse-custom").hide()},aquamenuModule.prototype.getStickedMenuClass=function(){return"aqua-menu-sticked"},aquamenuModule.prototype.onScroll=function(){var t=this.getStickedMenuClass(),e=this.getScrollTopOffset(),i=$("body").hasClass(t);!1===this.isStaticNavbar()&&(e>0?i||$("body").addClass(t):i&&$("body").removeClass(t))},aquamenuModule.prototype.getScrollTopOffset=function(){return $(window).scrollTop()},aquamenuModule.prototype.getSearchConfig=function(){var t=this;return{dynamicRendered:!0,showSuggestions:!0,showInfo:!0,onOpen:function(){t.onSearchOpen()},onClose:function(){t.onSearchClose()}}},aquamenuModule.prototype.onSearchOpen=function(){$("body").addClass("search-open aqua-menu-initiator"),this.hideSubmenu(),this.closeAllDecoratedMenus(!1)},aquamenuModule.prototype.onSearchClose=function(){$("body").removeClass("search-open aqua-menu-initiator")},aquamenuModule.prototype.onNavbarOpen=function(){this.closeAllDecoratedMenus(!1),this.hideScroll()},aquamenuModule.prototype.onNavbarClose=function(){$("body").removeClass("aqua-menu-open"),this.showScroll()},aquamenuModule.prototype.toggleSearch=function(t){switch(t){case"show":this.showSearch();break;default:this.hideSearch()}},aquamenuModule.prototype.showSearch=function(){this.hideMenu(!0),this.onHideDecoratedMenu(),this.search.open()},aquamenuModule.prototype.hideSearch=function(){this.search.isOpen&&this.search.close()},aquamenuModule.prototype.hideMenu=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.immediatelyHideMenu():this.slideMenu(),this.getMenuOverlay().addClass("hidden"),this.onNavbarClose(),this.isSidebarMenuOpen=!1},aquamenuModule.prototype.rePositionTilesMultipleSubmenu=function(t){var e=t.find(".tiles-only.tiles-multiple");if(e.length>0){var i=t[0].getBoundingClientRect();e.css({"margin-left":i.left-55+"px"})}},aquamenuModule.prototype.closeAllDecoratedMenus=function(t){this.getElement().find(".decorated-menu-item").each(function(t,e){$(e).removeClass("open")}),this.onHideDecoratedMenu(),t&&this.showScroll()},aquamenuModule.prototype.showScroll=function(){bluetrix.showScroll()},aquamenuModule.prototype.hideScroll=function(){bluetrix.hideScroll()},aquamenuModule.prototype.onShowDecoratedMenu=function(){this.decoratedMenuOpen=!0,$("body").addClass("aqua-menu-decorated-menu-open")},aquamenuModule.prototype.onHideDecoratedMenu=function(){this.decoratedMenuOpen=!1,$("body").removeClass("aqua-menu-decorated-menu-open")},aquamenuModule.prototype.isDecoratedMenuOpen=function(){return this.decoratedMenuOpen},aquamenuModule.prototype.createMenuOverlay=function(){$("body").append('<div data-menu-overlay class="aqua-menu-screen-overlay hidden"></div>')},aquamenuModule.prototype.getMenuOverlay=function(){return $("[data-menu-overlay]")},inheritPrototype(aquanavbarModule,Module),aquanavbarModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindFrontEvents()},aquanavbarModule.prototype.bindFrontEvents=function(){var t=this;this.openingAnimationTolerance=50,this.isMenuSticked=!1,this.scrollPosition=this.getScrollTopOffset(),document.addEventListener("scroll",function(){var e=t.getScrollTopOffset(),i=t.isScrollDown(e);t.updateScrollPosition(e),i?t.onScrollDown():t.onScrollUp()},!0),$(window).on("resize",function(){setTimeout(function(){t.resetMenuSticked()},100)}),this.element.on("click","[data-aqua-navbar-action]",function(){t.handleAction($(this).data("aqua-navbar-action"))});var e=function(){t.isMenuSticked?t.markMenuSticked():t.unMarkMenuSticked()};this.element.on("webkitAnimationEnd",".navbar",e),this.element.on("animationend",".navbar",e)},aquanavbarModule.prototype.markMenuSticked=function(){$("body").addClass("menu-sticked").removeClass("navbar-opening")},aquanavbarModule.prototype.unMarkMenuSticked=function(){$("body").removeClass("navbar-closing menu-sticked")},aquanavbarModule.prototype.resetMenuSticked=function(){$("body").removeClass("navbar-closing navbar-opening menu-sticked"),this.isMenuSticked=!1},aquanavbarModule.prototype.isScrollDown=function(t){return t>this.scrollPosition},aquanavbarModule.prototype.updateScrollPosition=function(t){this.scrollPosition=t},aquanavbarModule.prototype.isScrollInVisibleArea=function(){return this.scrollPosition<=this.getModuleOffsetTop()+this.getUnstickAfter()},aquanavbarModule.prototype.onScrollDown=function(){this.scrollPosition>=this.getModuleOffsetTop()&&this.markNavbarSwimming(),this.scrollPosition>=this.getModuleOffsetTop()&&this.isScrollInVisibleArea()?this.scrollPosition<=this.getModuleOffsetTop()+this.openingAnimationTolerance?this.enableStickedMenu(!1):this.enableStickedMenu(!0):this.isScrollInVisibleArea()||this.disableStickedMenu(!0)},aquanavbarModule.prototype.onScrollUp=function(){this.scrollPosition<this.getModuleOffsetTop()&&this.unMarkNavbarSwimming(),this.scrollPosition<this.getModuleOffsetTop()?this.disableStickedMenu(!1):this.scrollPosition>=this.getModuleOffsetTop()&&this.enableStickedMenu(!0)},aquanavbarModule.prototype.markNavbarSwimming=function(){$("body").addClass("navbar-swimming")},aquanavbarModule.prototype.unMarkNavbarSwimming=function(){$("body").removeClass("navbar-swimming")},aquanavbarModule.prototype.enableStickedMenu=function(t){this.isMenuSticked||(t?$("body").removeClass("navbar-closing").addClass("navbar-with-animation navbar-opening"):($("body").removeClass("navbar-with-animation"),this.markMenuSticked()),this.isMenuSticked=!0)},aquanavbarModule.prototype.disableStickedMenu=function(t){this.isMenuSticked&&(this.element.trigger("aquaHideMainMenu"),t?$("body").removeClass("navbar-opening").addClass("navbar-closing"):this.unMarkMenuSticked(),this.isMenuSticked=!1)},aquanavbarModule.prototype.handleAction=function(t){switch(t){case"search":this.element.trigger("aquaShowMainSearch");break;case"menu":this.element.trigger("aquaToggleMainMenu")}},aquanavbarModule.prototype.getUnstickAfter=function(){var t=this.getSettings();return void 0===t.unstick_after||null===t.unstick_after||"string"==typeof t.unstick_after||isNaN(- -t.unstick_after)?600:- -t.unstick_after},aquanavbarModule.prototype.getModuleOffsetTop=function(){return this.element.offset().top},aquanavbarModule.prototype.getScrollTopOffset=function(){return $(window).scrollTop()},inheritPrototype(aquanewsroomModule,Module),aquanewsroomModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.grid=new Muuri(".grid",{layoutDuration:400,layoutEasing:"ease"}),this.currentCategory="all"},aquanewsroomModule.prototype.getSearchInput=function(){return this.element.find("[data-search-input]")},aquanewsroomModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.getCategoryLink().on("click",function(e){t.currentCategory=$(this).data("categoryId"),e.preventDefault(),e.stopImmediatePropagation(),t.filterItemsByCategory($(this).data("categoryId")),t.handleActiveCategory($(this))}),this.getSearchInput().on("keyup",function(e){t.handleSearchKeyup($(e.target).val())})},aquanewsroomModule.prototype.handleSearchKeyup=function(t){var e=this;t=t.toLowerCase(),this.grid.filter(function(i){return""===t?"all"===e.currentCategory||$(i.getElement()).data("category")===e.currentCategory:t===$(i.getElement()).data("categoryName").toLowerCase()&&("all"===e.currentCategory||$(i.getElement()).data("category")===e.currentCategory)||$(i.getElement()).data("title").toLowerCase().includes(t.toLowerCase())})},aquanewsroomModule.prototype.setColorForCategory=function(t){var e="rgb(52, 160, 190)";"all"!==t&&this.getSettings().selectedCategories.map(function(i){i.id===t&&(e=i.color)});this.element.find(".item").each(function(t,i){$(i).find(".item-content").css({background:e})})},aquanewsroomModule.prototype.getCategoryLink=function(){return this.element.find("[data-category-id]")},aquanewsroomModule.prototype.handleActiveCategory=function(t){this.getCategoryLink().each(function(t,e){$(e).removeClass("active")}),t.addClass("active")},aquanewsroomModule.prototype.filterItemsByCategory=function(t){this.grid.filter(function(e){return"all"===t||$(e.getElement()).data("category")===t})},inheritPrototype(aquapersonalModule,Module),aquapersonalModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.createFormFields(),this.onLocalInit()},aquapersonalModule.prototype.onLocalInit=function(){this.isExtraSmallWidth()&&(this.toLoad=this.limitOfResultsOnMobile,this.isMobileLoading=!0),this.isExpress()||(this.employees=this.getEmployees(),this.showEmployees()),this.showAllOptionSetPersonalAmount()},aquapersonalModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindLocalEvents()},aquapersonalModule.prototype.isExpress=function(){return void 0!==_typeof(this.data.settings.express)&&null!==this.data.settings.express&&this.data.settings.express},aquapersonalModule.prototype.isExtraSmallWidth=function(){return $(window).width()<991},aquapersonalModule.prototype.bindLocalEvents=function(){var t=this;this.element.on("change","[aqua-personal-choice]",function(){t.loadEmployees($(this).val())}),this.element.on("click","[aqua-personal-more]",function(){t.appendEmployees()})},aquapersonalModule.prototype.getEmployeesEndpoint=function(){return this.element.find("[aqua-personal-choice]").data("employees-url")},aquapersonalModule.prototype.getClinicId=function(){return this.data.settings.clinic_id},aquapersonalModule.prototype.getEmployees=function(){return this.data.content.employees},aquapersonalModule.prototype.getEmployeesForProfession=function(t){var e=this.getEmployees(),i=[];return e.forEach(function(n){void 0!==_typeof(n.professionIds)&&null!==n.professionIds&&Array.isArray(n.professionIds)&&n.professionIds.length>0&&n.professionIds.forEach(function(o){o===t?i.push(n):"0"===t&&(i=e)})}),i},aquapersonalModule.prototype.loadEmployees=function(t){this.toLoad=9,this.employees=this.getEmployeesForProfession(t),this.showEmployees()},aquapersonalModule.prototype.showEmployeesResults=function(){return this.element.find(".results-and-button-container").removeClass("hidden")},aquapersonalModule.prototype.removeBackgroundImage=function(){this.element.find(".personal-module-wrapper").css("background-image","none")},aquapersonalModule.prototype.showLoadMoreButton=function(){this.element.find("[aqua-personal-more]").removeClass("hidden")},aquapersonalModule.prototype.hideExpressDescription=function(){this.element.find(".express-description").hide()},aquapersonalModule.prototype.getAquaEmployeesContainer=function(){return this.element.find("[aqua-employees-container]")},aquapersonalModule.prototype.getAquaPersonalMoreButton=function(){return this.element.find("[aqua-personal-more]")},aquapersonalModule.prototype.showEmployees=function(){if(void 0===_typeof(this.employees)||void 0===this.employees||null===this.employees)return null;this.hideExpressDescription(),this.removeBackgroundImage(),this.showEmployeesResults(),this.showLoadMoreButton();this.loaded=0,this.employees.length>9||this.isMobileLoading&&this.employees.length>this.limitOfResultsOnMobile?this.getAquaPersonalMoreButton().attr("disabled",!1):this.getAquaPersonalMoreButton().attr("disabled",!0),this.getAquaEmployeesContainer().html(""),this.appendEmployees()},aquapersonalModule.prototype.appendEmployees=function(){var t=this.getAquaEmployeesContainer(),e=this;this.employees.forEach(function(i,n){n+1<=e.toLoad&&n>=e.loaded&&(t.append(e.getEmployeeElement(i).hide().fadeIn(400)),e.loaded+=1)}),e.toLoad>=this.employees.length?this.getAquaPersonalMoreButton().hide():this.getAquaPersonalMoreButton().show(),this.toLoad+=9},aquapersonalModule.prototype.getEmployeeElement=function(t){var e=$('<div class="single-result">'),i=$('<img src="'+t.image+'" class="img-responsive employee-image">'),n=$('<a class="name" href="'+t.link.front+'">'+t.name+"</a>");return e.append(i),e.append(n),void 0!==t.professions&&t.professions.length>0&&t.professions.map(function(t){var i=$('<p class="speciality">'+t+"</p>");e.append(i)}),e},aquapersonalModule.prototype.showAllOptionSetPersonalAmount=function(){var t=this.element.find('.options [data-value="0"]');t.text(t.text()+" ("+this.getEmployees().length+")")},inheritPrototype(aquapricingtableModule,Module),aquapricingtableModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.index=0,this.itemsToLoadPerLoadMoreClick=10,this.loadedItemsIds=[],this.loadImportantItems()},aquapricingtableModule.prototype.loadImportantItems=function(){var t=this.getImportantTableItems();this.renderItems(t)},aquapricingtableModule.prototype.renderItems=function(t){var e=this,i=Handlebars.compile(this.getRowItemHandlebarsTemplate().html()),n=this.getItemsContainer();t.map(function(t){var o=i({index:e.index,code:t.code,name:t.name,price:t.price,price_second:t.price_second,price_third:t.price_third,detailed_description:t.detailed_description});n.append(o),e.index++}),this.onItemsRendered()},aquapricingtableModule.prototype.onItemsRendered=function(){this.unbindEvents(),this.bindLocalEvents(),this.handleLoadMoreButtonVisibility()},aquapricingtableModule.prototype.handleLoadMoreButtonVisibility=function(){this.loadedItemsIds.length<this.getTableItems().length?this.getLoadMoreButton().removeClass("hidden"):this.getLoadMoreButton().addClass("hidden")},aquapricingtableModule.prototype.getLoadMoreButton=function(){return this.element.find("[data-aqua-load-more]")},aquapricingtableModule.prototype.getRowItemHandlebarsTemplate=function(){return $("#aquaPricingTableRow")},aquapricingtableModule.prototype.getImportantTableItems=function(){var t=[],e=this;return this.getTableItems().map(function(i){!0===i.important&&(t.push(i),e.loadedItemsIds.push(i.id))}),t},aquapricingtableModule.prototype.getTableItems=function(){return this.getDataContent().table_items},aquapricingtableModule.prototype.getItemsContainer=function(){return this.element.find("[data-items-container]")},aquapricingtableModule.prototype.unbindEvents=function(){this.element.find("[data-code]").unbind("click")},aquapricingtableModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.getLoadMoreButton().on("click",function(){t.loadMoreItems()}),this.bindLocalEvents()},aquapricingtableModule.prototype.loadMoreItems=function(){var t=[],e=this,i=0;this.getTableItems().map(function(n){!1===e.loadedItemsIds.includes(n.id)&&i<e.itemsToLoadPerLoadMoreClick&&(t.push(n),e.loadedItemsIds.push(n.id),i++)}),this.renderItems(t)},aquapricingtableModule.prototype.bindLocalEvents=function(){this.element.find("[data-code]").on("click",function(t){if(!$(this).hasClass("empty-item")){var e=$(this).closest("tr").data("index");$(this).closest("tbody").find('[data-toggleable="true"][data-index="'+e+'"]').toggleClass("open")}})},inheritPrototype(aquapublicationdataModule,Module),aquapublicationdataModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.isHidden=!0,this.bindFrontEvents()},aquapublicationdataModule.prototype.bindFrontEvents=function(){var t=this;this.element.find("[aqua-toggle-publication-module]").on("click",function(e){0==$(e.target).closest("a").length&&t.toggleModuleContainer()})},aquapublicationdataModule.prototype.toggleModuleContainer=function(){var t=this;t.isHidden?$.when(this.element.find(".heading-text").fadeOut(400)).then(function(){t.element.find(".body-section").slideDown(400),t.element.find(".btn-toggle-module").removeClass("closed-toggle").addClass("opened-toggle")}):$.when(this.element.find(".body-section").slideUp(400)).then(function(){t.element.find(".heading-text").fadeIn(400),t.element.find(".btn-toggle-module").removeClass("opened-toggle").addClass("closed-toggle")}),this.isHidden=!this.isHidden},inheritPrototype(aquapublicationssliderModule,Module),aquapublicationssliderModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.initializeSlider()},aquapublicationssliderModule.prototype.initializeSlider=function(){var t=this.getDataContent();if("object"===(void 0===t?"undefined":_typeof(t))&&null!==t&&t.hasOwnProperty("publications"))new AquaSlider(this.element.find("[data-slider-wrapper]"),$("#publicationsSliderTemplate").html(),this.getSlidesData(),{pager:!0,pause:this.getSlidesSpeed(),forceRender:!1})},aquapublicationssliderModule.prototype.getTpl=function(){return this.getSettings().articleTypeTemplate},aquapublicationssliderModule.prototype.getPublications=function(){return this.getDataContent().publications},aquapublicationssliderModule.prototype.getSlidesData=function(){return{slides:this.getPublications(),tpl:this.getTpl()}},aquapublicationssliderModule.prototype.getSlidesSpeed=function(){var t=this.getSettings();return t.hasOwnProperty("slidesSpeed")&&""!==t.slidesSpeed&&!isNaN(- -t.slidesSpeed)?- -t.slidesSpeed:4e3},inheritPrototype(aquareviewModule,Module),aquareviewModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.setLocalValues(),this.bindLocalEvents(),bluetrix.isCached()||(this.stopCacheProcessing(),this.renderItems(),this.startCacheProcessing())},aquareviewModule.prototype.getReviews=function(){return this.data.content},aquareviewModule.prototype.setLocalValues=function(){this.loadedCount=0},aquareviewModule.prototype.getReviewsContainer=function(){return this.element.find("[aqua-review-items-container]")},aquareviewModule.prototype.renderItems=function(){this.loadedCount=0;var t=this.getReviews(),e=this.getReviewsContainer();for(var i in t){if(this.loadedCount>=this.getLimit())break;e.append(this.createItem(t[i]).hide().fadeIn(300)),this.loadedCount++}this.loadedCount===t.length&&this.hideLoadButton()},aquareviewModule.prototype.loadNextItems=function(){var t=this.getReviews(),e=this.getReviewsContainer(),i=this.loadedCount,n=- -this.getLoadMoreLimit()+this.loadedCount;for(var o in t)o<i||n<=o||(e.append(this.createItem(t[o])),this.loadedCount++);this.loadedCount===t.length&&this.hideLoadButton()},aquareviewModule.prototype.hideLoadButton=function(){this.getLoadMoreButton().hide()},aquareviewModule.prototype.getLimit=function(){return $(window).width()>768?10:6},aquareviewModule.prototype.getLoadMoreLimit=function(){return 10},aquareviewModule.prototype.isWindowOverSmSize=function(){return $(window).width()>768},String.prototype.trunc=String.prototype.trunc||function(t){return this.length>t?this.substr(0,t-1)+" (...)":this},aquareviewModule.prototype.createItem=function(t){var e=t.opinion,i=!1;return(this.isWindowOverSmSize()&&e.length>300||!this.isWindowOverSmSize()&&e.length>215)&&(i=!0,e=this.isWindowOverSmSize()?e.trunc(300):e.trunc(215)),void 0!==t.rate&&""!==t.rate||(t.rate=5),$('\n        <li class="review">\n            <div class="row">\n                <div class="visible-md visible-lg extra-space-top">\n                     <div class="col col-md-1">\n                        <div class="avatar-container">\n                            <span class="provider provider-'+t.provider+'"></span>\n                            '+(t.avatar?'<img src="'+t.avatar+'" alt="'+t.full_name+'" class="img-responsive">':'<img src="/bundles/aquadentalcommon/assets/avatar.png" alt="{{full_name}}" class="img-responsive">')+'\n                        </div>\n                    </div>\n                    <div class="col col-md-11">\n                        <div class="row">\n                            <div class="col col-xs-12 col-sm-3 col-md-4 col-lg-3">\n                                <div class="info-container '+(void 0===t.rate?"":"empty-rate")+'">\n                                    '+Handlebars.helpers.ratingToStars(t.rate)+'\n                                    <p class="name extra-space-top">'+t.full_name+'</p>\n                                    <a target="_blank" href="'+(t.url?t.url:"#")+'" class="address">'+(t.address?t.address:"")+'</a>\n                                </div>\n                            </div>\n                            <div class="col col-xs-12 col-sm-9 col-md-8 col-lg-9">\n                                <div class="opinion-container">\n                                    <div class="date date-big">'+t.published_at+'</div>\n                                    <p class="opinion extra-space-top" data-full-opinion="'+t.opinion+'" data-shorten-opinion="'+e+'" data-is-full-opinion="false">'+e+"</p>\n                                    "+(i?'<button class="show-text" aqua-show-whole-opinion>'+options.dictionary.aqua.reviewOpenOpinion+"</button>":"")+'\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="visible-xs visible-sm">\n                    <div class="col">\n                        <div class="row" style="display:flex">\n                             <div class="col-xs-2 col-sm-1 col-avatar">\n                                <div class="avatar-container">\n                                    <span class="provider provider-'+t.provider+'"></span>\n                                    '+(t.avatar?'<img src="'+t.avatar+'" alt="'+t.full_name+'" class="img-responsive">':'<img src="/bundles/aquadentalcommon/assets/avatar.png" alt="{{full_name}}" class="img-responsive">')+'\n                                </div>\n                             </div>\n                             <div class="col-xs-6 col-sm-8 col-info">\n                                <div class="info-container '+(void 0===t.rate?"":"empty-rate")+'">\n                                    '+Handlebars.helpers.ratingToStars(t.rate)+'\n                                    <p class="name">'+t.full_name+'</p>\n                                    <a target="_blank" href="'+(t.url?t.url:"#")+'" class="address">'+(t.address?t.address:"")+'</a>\n                                </div>\n                            </div>\n                             <div class="col-xs-4 col-sm-3 text-right mobile-date-container">\n                                <p class="date">'+t.published_at+'</p>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="col">\n                        <div class="opinion-container mobile-opinion-container">\n                            <p class="opinion" data-full-opinion="'+t.opinion+'" data-shorten-opinion="'+e+'" data-is-full-opinion="false">'+e+"</p>\n                            "+(i?'<button class="show-text" aqua-show-whole-opinion>'+options.dictionary.aqua.reviewOpenOpinion+"</button>":"")+"\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </li>\n    ")},aquareviewModule.prototype.getLoadMoreButton=function(){return this.element.find("[data-aqua-review-more]")},aquareviewModule.prototype.bindLocalEvents=function(){var t=this;this.getLoadMoreButton().on("click",function(){t.loadNextItems()}),$(document).on("click","[aqua-show-whole-opinion]",function(e){t.toggleOpinion($(e.target))})},aquareviewModule.prototype.toggleOpinion=function(t){var e=t.siblings(".opinion"),i=e.data();i.isFullOpinion?(t.text(options.dictionary.aqua.reviewOpenOpinion),e.text(i.shortenOpinion)):(t.text(options.dictionary.aqua.reviewCloseOpinion),e.text(i.fullOpinion)),e.data("is-full-opinion",!i.isFullOpinion)},inheritPrototype(aquarichboxteaserModule,Module),aquarichboxteaserModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this)},inheritPrototype(aquaringossbuttonModule,Module),aquaringossbuttonModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.getRingOssButton().on("click",function(e){e.preventDefault(),t.handleRingOssClicked()})},aquaringossbuttonModule.prototype.getClinicsWrapper=function(){return this.getElement().find("[data-clinics-wrapper]")},aquaringossbuttonModule.prototype.getRingOssButton=function(){return this.getElement().find("[data-ring-oss-button]")},aquaringossbuttonModule.prototype.handleRingOssClicked=function(){this.getClinicsWrapper().toggleClass("open"),this.getRingOssButton().toggleClass("open")},inheritPrototype(aquasearchModule,Module),aquasearchModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.search=new AquaSearch(this.getSearchConfig())},aquasearchModule.prototype.getSearchConfig=function(){return{showInfo:!0,formHandler:this.getFormHandler(),resultsHandler:this.getResultsHandler(),infoHandler:this.getInfoHandler(),infoText:this.getInfoText()}},aquasearchModule.prototype.getFormHandler=function(){return this.element.find("[data-aqua-search-form]")},aquasearchModule.prototype.getResultsHandler=function(){return this.element.find("[data-aqua-search-results]")},aquasearchModule.prototype.getInfoHandler=function(){return this.element.find("[data-aqua-search-info]")},aquasearchModule.prototype.getInfoText=function(){var t=this.getSettings(),e=bluetrix.getLang();return t.hasOwnProperty("searchInfo")&&"object"===_typeof(t.searchInfo)&&null!==t.searchInfo&&t.searchInfo.hasOwnProperty(e)&&t.searchInfo[e]&&"string"==typeof t.searchInfo[e]&&""!==t.searchInfo[e]?t.searchInfo[e]:void 0},inheritPrototype(aquaservicescontainerModule,Module),inheritPrototype(aquasidebarModule,Module),aquasidebarModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),$("body").addClass("aquasidebar-on-page")},aquasidebarModule.prototype.getSidebarWrapper=function(){return this.getElement().find("[data-wrapper]")},aquasidebarModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.getElement().on("mouseleave",function(){t.getSidebarWrapper().addClass("not-active")}).on("mouseenter",function(){t.getSidebarWrapper().removeClass("not-active")}),$(window).on("resize",function(){$(this).width()<478?t.getSidebarWrapper().removeClass("not-active"):t.getSidebarWrapper().addClass("not-active")})},boxpublicationsModule.prototype.precompile=function(t){Module.prototype.precompile.call(t);var e=this.getDataContent().publications,i=bluetrix.getLang();e.forEach(function(t){var e=Utils.getInst().isParameterNotEmpty(t.settings.thumb_image)?t.settings.thumb_image:t.settings.full_image,n={};n[i]=e,$.extend(t.content,{baner:n})})},buttonModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this),this.bindLocalEvents()},buttonModule.prototype.bindLocalEvents=function(){},formcontainerModule.prototype.bindLocalEvents=function(){var t=this;this.setupSchemaMode(),this.isHideableOnMobile()&&(bluetrix.isCached()||this.buildMobileToggler(),this.element.on("click","[aqua-mobile-toggler]",function(){t.element.find("form").slideToggle(),$(this).find(".btn-toggle").toggleClass("caret-rotated")}))},formcontainerModule.prototype.setupSchemaMode=function(){this.getElement().addClass("schema-"+this.getSchemaMode())},formcontainerModule.prototype.getSchemaMode=function(){var t=this.getSettings();return t.hasOwnProperty("schemaMode")&&"string"==typeof t.schemaMode&&""!==t.schemaMode?t.schemaMode:"default"},formcontainerModule.prototype.isHideableOnMobile=function(){var t=this.getSettings();return t.hasOwnProperty("mobile_hideable")&&1==- -t.mobile_hideable},formcontainerModule.prototype.getHeadingText=function(){var t=this.getSettings();return t.hasOwnProperty("mobile_hideable_text")&&"string"==typeof t.mobile_hideable_text&&""!==t.mobile_hideable_text?this.data.settings.mobile_hideable_text:""},formcontainerModule.prototype.buildMobileToggler=function(){var t=$("<div>",{class:"mobile-container","aqua-mobile-container":"","aqua-mobile-toggler":""}),e=$("<p>",{class:"mobile-head",text:this.getHeadingText()}),i=$("<button>",{class:"btn btn-toggle"});t.append(e,i),this.element.addClass("hidden-sm-default"),this.element.prepend(t)},formcontainerModule.prototype.onFormSubmitted=function(){aquaTrackFormSubmitMiddlewareOncePerPageLoad(this.element.closest(".bluetrix-container").find('[data-par="title"]').text())},forminputModule.prototype.showValidationError=function(){this.getFormGroupHandler().addClass("error")},forminputModule.prototype.hideValidationError=function(){this.getFormGroupHandler().removeClass("error")},forminputModule.prototype.getFormGroupHandler=function(){return this.element.find(".form-group").first()},forminputModule.prototype.bindEvents=function(){formElementModule.prototype.bindEvents.call(this);var t=this;this.getElement().on("keyup",".form-control",function(){aquaTrackInputKeyUpMiddleware(t.getElement())})},formselectModule.prototype.onAddedToStage=function(){Module.prototype.onAddedToStage.call(this),this.markCustomDropdown(),this.buildDropdowns()},formselectModule.prototype.markCustomDropdown=function(){var t=this.getDropdownHandler();t&&t.addClass("custom-select")},formselectModule.prototype.getDropdownHandler=function(){return this.element.find("select").first()},formtextareaModule.prototype.bindEvents=function(){Module.prototype.bindEvents.call(this);var t=this;this.getElement().on("keyup",".form-control",function(){aquaTrackInputKeyUpMiddleware(t.getElement())})},fullcontainerModule.prototype.onSiteFullyLoad=function(){Module.prototype.onSiteFullyLoad.call(this),this.onSiteFullyLoadLocal()},fullcontainerModule.prototype.onSiteFullyLoadLocal=function(){var t;this.hasVideo()&&this.isTablet()&&this.hasTabletVideo()&&(this.element.find(".fullContainerVideo").html(""),this.element.find(".fullContainerVideo").append('<source src="'+this.getTabletVideo()+'"/>'),(t=this.element.find(".fullContainerVideo")).length>0&&(t[0].load(),t[0].play()));this.hasVideo()&&this.isPhone()&&this.hasPhoneVideo()&&(this.element.find(".fullContainerVideo").html(""),this.element.find(".fullContainerVideo").append('<source src="'+this.getPhoneVideo()+'"/>'),(t=this.element.find(".fullContainerVideo")).length>0&&(t[0].load(),t[0].play()));this.hasVideo()&&this.isPhone()&&!1===this.hasPhoneVideo()&&this.element.find(".fullContainerVideo").remove(),this.hasVideo()&&this.isTablet()&&!1===this.hasTabletVideo()&&this.element.find(".fullContainerVideo").remove()},fullcontainerModule.prototype.getBackgroundVideoDesktop=function(){return this.getSettings().backgroundVideoDesktop},fullcontainerModule.prototype.hasVideo=function(){var t=this.getBackgroundVideoDesktop();return void 0!==t&&null!==t&&t.length>0},fullcontainerModule.prototype.isPhone=function(){return window.matchMedia("(max-width: 767px)").matches},fullcontainerModule.prototype.isTablet=function(){return window.matchMedia("(max-width: 1024px)").matches&&window.matchMedia("(min-width: 768px)").matches},fullcontainerModule.prototype.hasTabletVideo=function(){var t=this.getTabletVideo();return void 0!==t&&null!==t&&t.length>0},fullcontainerModule.prototype.getTabletVideo=function(){return this.getSettings().backgroundVideoTablet},fullcontainerModule.prototype.getPhoneVideo=function(){return this.getSettings().backgroundVideoPhone},fullcontainerModule.prototype.hasPhoneVideo=function(){var t=this.getPhoneVideo();return void 0!==t&&null!==t&&t.length>0},menuextendModule.prototype.bindLocalEvents=function(){var t=this;this.search=new AquaSearch(this.getSearchConfig()),this.isMenuSticked=!1,this.scrollPosition=this.getScrollTopOffset(),bluetrix.isCached()||this.createSearchButton(),document.addEventListener("scroll",function(){var e=t.getScrollTopOffset(),i=t.isScrollDown(e);t.updateScrollPosition(e),i?t.onScrollDown():t.onScrollUp()},!0),$(window).on("resize",function(){setTimeout(function(){t.resetMenuSticked()},100)}),this.element.on("click","[data-aqua-menu-search]",function(){t.toggleSearch()});var e=function(){t.isMenuSticked||t.unMarkMenuSticked()};this.element.on("webkitAnimationEnd",".navbar",e),this.element.on("animationend",".navbar",e),$("body").on("aquaHideMainMenu",function(){t.hideMenu()}),$("body").on("aquaToggleMainMenu",function(){t.toggleMenu()}),$("body").on("aquaShowMainSearch",function(){t.toggleSearch()}),this.element.on("click",".menuitem-module",function(t){aquaTrackMenuClickMiddleware($(this).find('[data-par="title"]').text())})},menuextendModule.prototype.isScrollDown=function(t){return t>this.scrollPosition},menuextendModule.prototype.updateScrollPosition=function(t){this.scrollPosition=t},menuextendModule.prototype.getMinScrollOffsetValuesForMenuVisible=function(){return 100},menuextendModule.prototype.getScrollTopOffset=function(){return $(window).scrollTop()},menuextendModule.prototype.onScrollDown=function(){this.isMenuSticked&&this.hideStickedMenu()},menuextendModule.prototype.onScrollUp=function(){this.getScrollTopOffset()<this.getMinScrollOffsetValuesForMenuVisible()?this.isMenuSticked&&this.hideStickedMenu():(this.isMenuSticked||this.markMenuSticked(),0===this.getScrollTopOffset()&&this.isMenuSticked&&(this.isMenuSticked=!1,this.unMarkMenuSticked()))},menuextendModule.prototype.markMenuSticked=function(){this.isMenuSticked=!0,$("body").removeClass("menu-sticked-mobile-hide").addClass("menu-sticked-mobile")},menuextendModule.prototype.unMarkMenuSticked=function(){$("body").removeClass("menu-sticked-mobile menu-sticked-mobile-hide")},menuextendModule.prototype.resetMenuSticked=function(){this.unMarkMenuSticked(),this.isMenuSticked=!1},menuextendModule.prototype.hideStickedMenu=function(){this.isMenuSticked=!1,$("body").addClass("menu-sticked-mobile-hide")},menuextendModule.prototype.createSearchButton=function(){$("<button>").attr({type:"button",class:"btn btn-search","aria-label":this.getSearchButtonLabel(),"data-aqua-menu-seahrc":""}).append($("<span>").addClass("aqua-icon aqua-search")).insertAfter(this.element.find(".navbar-toggle"))},menuextendModule.prototype.getSearchButtonLabel=function(){return options.dictionary.aqua.searchLabel},menuextendModule.prototype.toggleSearch=function(){this.hideMenu(),this.search.toggle(),this.updateScrollState()},menuextendModule.prototype.getSearchConfig=function(){var t=this;return{dynamicRendered:!0,showSuggestions:!0,showInfo:!0,onOpen:function(){t.onSearchOpen()},onClose:function(){t.onSearchClose()}}},menuextendModule.prototype.onSearchOpen=function(){$("body").addClass("search-open")},menuextendModule.prototype.onSearchClose=function(){$("body").removeClass("search-open")},menuextendModule.prototype.hideMenu=function(){this.element.find(".navbar-collapse").collapse("hide")},menuextendModule.prototype.toggleMenu=function(){this.element.find(".navbar-collapse").collapse("toggle")},menuextendModule.prototype.updateScrollState=function(){this.isMenuOpen()||this.isSearchEnabled()?bluetrix.hideScroll():bluetrix.showScroll()},menuextendModule.prototype.onNavbarStartOpen=function(){$("body").addClass("menu-opening").removeClass("menu-closed")},menuextendModule.prototype.onNavbarOpen=function(){$("body").removeClass("menu-opening").addClass("menu-open"),this.updateScrollState()},menuextendModule.prototype.onNavbarStartClose=function(){$("body").addClass("menu-closing").removeClass("menu-open")},menuextendModule.prototype.onNavbarClose=function(){$("body").removeClass("menu-closing").addClass("menu-closed"),this.updateScrollState()},menuextendModule.prototype.isMenuOpen=function(){return this.element.find(".navbar-collapse").is(":visible")},menuextendModule.prototype.isSearchEnabled=function(){return this.search.isOpen},menuextendModule.prototype.isSearchButtonAdded=function(){return this.element.find("[aqua-menu-search]").length>0},menuitemModule.prototype.setActivePage=function(){this.element.data("menuid")===bluetrix.id&&this.element.addClass("active")};