PageSourceSearch

https://www.dechra.com/Files/Templates/Designs/dechra-com/_assets/…afsassaafdsssdsasgsssassdshsssssassdsgsg2s3

js dechra.com collected 2026-10-01 14:43:43 UTC 335,438 bytes, 12 lines download raw bytes

1function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||ne;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=me.type(e);return"function"!==n&&!me.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function s(e,t,n){return me.isFunction(t)?me.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?me.grep(e,function(e){return e===t!==n}):"string"!=typeof t?me.grep(e,function(e){return oe.call(t,e)>-1!==n}):Qe.test(t)?me.filter(t,e,n):(t=me.filter(t,e),me.grep(e,function(e){return oe.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t={};return me.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function c(e){return e}function u(e){throw e}function l(e,t,n,r){var i;try{e&&me.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&me.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function d(){ne.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),me.ready()}function p(){this.expando=me.expando+p.uid++}function h(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:He.test(e)?JSON.parse(e):e)}function f(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($e,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=h(n)}catch(i){}Ne.set(e,t,n)}else n=void 0;return n}function m(e,t,n,r){var i,s=1,a=20,o=r?function(){return r.cur()}:function(){return me.css(e,t,"")},c=o(),u=n&&n[3]||(me.cssNumber[t]?"":"px"),l=(me.cssNumber[t]||"px"!==u&&+c)&&Me.exec(me.css(e,t));if(l&&l[3]!==u){u=u||l[3],n=n||[],l=+c||1;do s=s||".5",l/=s,me.style(e,t,l+u);while(s!==(s=o()/c)&&1!==s&&--a)}return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}function g(e){var t,n=e.ownerDocument,r=e.nodeName,i=We[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=me.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),We[r]=i,i)}function v(e,t){for(var n,r,i=[],s=0,a=e.length;s<a;s++)r=e[s],r.style&&(n=r.style.display,t?("none"===n&&(i[s]=Le.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&Be(r)&&(i[s]=g(r))):"none"!==n&&(i[s]="none",Le.set(r,"display",n)));for(s=0;s<a;s++)null!=i[s]&&(e[s].style.display=i[s]);return e}function y(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?me.merge([e],n):n}function j(e,t){for(var n=0,r=e.length;n<r;n++)Le.set(e[n],"globalEval",!t||Le.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var s,a,o,c,u,l,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h<f;h++)if(s=e[h],s||0===s)if("object"===me.type(s))me.merge(p,s.nodeType?[s]:s);else if(Ke.test(s)){for(a=a||d.appendChild(t.createElement("div")),o=(Xe.exec(s)||["",""])[1].toLowerCase(),c=ze[o]||ze._default,a.innerHTML=c[1]+me.htmlPrefilter(s)+c[2],l=c[0];l--;)a=a.lastChild;me.merge(p,a.childNodes),a=d.firstChild,a.textContent=""}else p.push(t.createTextNode(s));for(d.textContent="",h=0;s=p[h++];
vendor: 1,385 bytes, line 1
1)if(r&&me.inArray(s,r)>-1)i&&i.push(s);else if(u=me.contains(s.ownerDocument,s),a=y(d.appendChild(s),"script"),u&&j(a),n)for(l=0;s=a[l++];)Ge.test(s.type||"")&&n.push(s);return d}function w(){return!0}function k(){return!1}function C(){try{return ne.activeElement}catch(e){}}function T(e,t,n,r,i,s){var a,o;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(o in t)T(e,o,n,r,t[o],s);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=k;else if(!i)return e;return 1===s&&(a=i,i=function(e){return me().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=me.guid++)),e.each(function(){me.event.add(this,t,i,r,n)})}function Q(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?me(">tbody",e)[0]||e:e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function x(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _(e,t){var n,r,i,s,a,o,c,u;if(1===t.nodeType){if(Le.hasData(e)&&(s=Le.access(e),a=Le.set(t,s),u=s.events)){delete a.handle,a.events={};for(i in u)for(n=0,r=u[i].length;n<r;n++)me.event.add(t,i,u[i][n])}Ne.hasData(e)&&(o=Ne.access(e),c=me.extend({},o),Ne.set(t,c))}}function S(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ve.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}
vendor: 4,349 bytes, line 1
1function A(e,t,r,i){t=se.apply([],t);var s,a,o,c,u,l,d=0,p=e.length,h=p-1,f=t[0],m=me.isFunction(f);if(m||p>1&&"string"==typeof f&&!he.checkClone&&rt.test(f))return e.each(function(n){var s=e.eq(n);m&&(t[0]=f.call(this,n,s.html())),A(s,t,r,i)});if(p&&(s=b(t,e[0].ownerDocument,!1,e,i),a=s.firstChild,1===s.childNodes.length&&(s=a),a||i)){for(o=me.map(y(s,"script"),E),c=o.length;d<p;d++)u=s,d!==h&&(u=me.clone(u,!0,!0),c&&me.merge(o,y(u,"script"))),r.call(e[d],u,d);if(c)for(l=o[o.length-1].ownerDocument,me.map(o,x),d=0;d<c;d++)u=o[d],Ge.test(u.type||"")&&!Le.access(u,"globalEval")&&me.contains(l,u)&&(u.src?me._evalUrl&&me._evalUrl(u.src):n(u.textContent.replace(st,""),l))}return e}function D(e,t,n){for(var r,i=t?me.filter(t,e):e,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||me.cleanData(y(r)),r.parentNode&&(n&&me.contains(r.ownerDocument,r)&&j(y(r,"script")),r.parentNode.removeChild(r));return e}function I(e,t,n){var r,i,s,a,o=e.style;return n=n||ct(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||me.contains(e.ownerDocument,e)||(a=me.style(e,t)),!he.pixelMarginRight()&&ot.test(a)&&at.test(t)&&(r=o.width,i=o.minWidth,s=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=r,o.minWidth=i,o.maxWidth=s)),void 0!==a?a+"":a}function O(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function q(e){if(e in ft)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ht.length;n--;)if(e=ht[n]+t,e in ft)return e}function P(e){var t=me.cssProps[e];return t||(t=me.cssProps[e]=q(e)||e),t}function L(e,t,n){var r=Me.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function N(e,t,n,r,i){var s,a=0;for(s=n===(r?"border":"content")?4:"width"===t?1:0;s<4;s+=2)"margin"===n&&(a+=me.css(e,n+Fe[s],!0,i)),r?("content"===n&&(a-=me.css(e,"padding"+Fe[s],!0,i)),"margin"!==n&&(a-=me.css(e,"border"+Fe[s]+"Width",!0,i))):(a+=me.css(e,"padding"+Fe[s],!0,i),"padding"!==n&&(a+=me.css(e,"border"+Fe[s]+"Width",!0,i)));return a}function H(e,t,n){var r,i=ct(e),s=I(e,t,i),a="border-box"===me.css(e,"boxSizing",!1,i);return ot.test(s)?s:(r=a&&(he.boxSizingReliable()||s===e.style[t]),"auto"===s&&(s=e["offset"+t[0].toUpperCase()+t.slice(1)]),s=parseFloat(s)||0,s+N(e,t,n||(a?"border":"content"),r,i)+"px")}function $(e,t,n,r,i){return new $.prototype.init(e,t,n,r,i)}function R(){gt&&(ne.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(R):e.setTimeout(R,me.fx.interval),me.fx.tick())}function M(){return e.setTimeout(function(){mt=void 0}),mt=me.now()}function F(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Fe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function B(e,t,n){for(var r,i=(V.tweeners[t]||[]).concat(V.tweeners["*"]),s=0,a=i.length;s<a;s++)if(r=i[s].call(n,t,e))return r}function U(e,t,n){var r,i,s,a,o,c,u,l,d="width"in t||"height"in t,p=this,h={},f=e.style,m=e.nodeType&&Be(e),g=Le.get(e,"fxshow");n.queue||(a=me._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,me.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],vt.test(i)){if(delete t[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}h[r]=g&&g[r]||me.style(e,r)}if(c=!me.isEmptyObject(t),c||!me.isEmptyObject(h)){d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=g&&g.display,null==u&&(u=Le.get(e,"display")),l=me.css(e,"display"),"none"===l&&(u?l=u:(v([e],!0),u=e.style.display||u,l=me.css(e,"display"),v([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===me.css(e,"float")&&(c||(p.done(function(){f.display=u}),null==u&&(l=f.display,u="none"===l?"":l)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),c=!1;for(r in h)c||(g?"hidden"in g&&(m=g.hidden):g=Le.access(e,"fxshow",{display:u}),s&&(g.hidden=!m),m&&v([e],!0),p.done(function(){m||v([e]),Le.remove(e,"fxshow");for(r in h)me.style(e,r,h[r])})),c=B(m?g[r]:0,r,p),r in g||(g[r]=c.start,m&&(c.end=c.start,c.start=0))}}function W(e,t){var n,r,i,s,a;for(n in e)if(r=me.camelCase(n),i=t[r],s=e[n],Array.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),a=me.cssHooks[r],a&&"expand"in a){s=a.expand(s),delete e[r];
vendor: 4,470 bytes, line 1
1for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}function V(e,t,n){var r,i,s=0,a=V.prefilters.length,o=me.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=mt||M(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,s=1-r,a=0,c=u.tweens.length;a<c;a++)u.tweens[a].run(s);return o.notifyWith(e,[u,s,n]),s<1&&c?n:(c||o.notifyWith(e,[u,1,0]),o.resolveWith(e,[u]),!1)},u=o.promise({elem:e,props:me.extend({},t),opts:me.extend(!0,{specialEasing:{},easing:me.easing._default},n),originalProperties:t,originalOptions:n,startTime:mt||M(),duration:n.duration,tweens:[],createTween:function(t,n){var r=me.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(o.notifyWith(e,[u,1,0]),o.resolveWith(e,[u,t])):o.rejectWith(e,[u,t]),this}}),l=u.props;for(W(l,u.opts.specialEasing);s<a;s++)if(r=V.prefilters[s].call(u,e,l,u.opts))return me.isFunction(r.stop)&&(me._queueHooks(u.elem,u.opts.queue).stop=me.proxy(r.stop,r)),r;return me.map(l,B,u),me.isFunction(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),me.fx.timer(me.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}function X(e){var t=e.match(De)||[];return t.join(" ")}function G(e){return e.getAttribute&&e.getAttribute("class")||""}function z(e,t,n,r){var i;if(Array.isArray(t))me.each(t,function(t,i){n||_t.test(e)?r(e,i):z(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==me.type(t))r(e,t);else for(i in t)z(e+"["+i+"]",t[i],n,r)}function K(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(De)||[];if(me.isFunction(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Y(e,t,n,r){function i(o){var c;return s[o]=!0,me.each(e[o]||[],function(e,o){var u=o(t,n,r);return"string"!=typeof u||a||s[u]?a?!(c=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),c}var s={},a=e===Rt;return i(t.dataTypes[0])||!s["*"]&&i("*")}function Z(e,t){var n,r,i=me.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&me.extend(!0,e,r),e}function J(e,t,n){for(var r,i,s,a,o=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in o)if(o[i]&&o[i].test(r)){c.unshift(i);break}if(c[0]in n)s=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){s=i;break}a||(a=i)}s=s||a}if(s)return s!==c[0]&&c.unshift(s),n[s]}function ee(e,t,n,r){var i,s,a,o,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(s=l.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=s,s=l.shift())if("*"===s)s=c;else if("*"!==c&&c!==s){if(a=u[c+" "+s]||u["* "+s],!a)for(i in u)if(o=i.split(" "),o[1]===s&&(a=u[c+" "+o[0]]||u["* "+o[0]])){a===!0?a=u[i]:u[i]!==!0&&(s=o[0],l.unshift(o[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+c+" to "+s}}}return{state:"success",data:t}}var te=[],ne=e.document,re=Object.getPrototypeOf,ie=te.slice,se=te.concat,ae=te.push,oe=te.indexOf,ce={},ue=ce.toString,le=ce.hasOwnProperty,de=le.toString,pe=de.call(Object),he={},fe="3.2.1",me=function(e,t){return new me.fn.init(e,t)},ge=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ve=/^-ms-/,ye=/-([a-z])/g,je=function(e,t){return t.toUpperCase()};me.fn=me.prototype={jquery:fe,constructor:me,length:0,toArray:function(){return ie.call(this)},get:function(e){return null==e?ie.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=me.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return me.each(this,e)},map:function(e){return this.pushStack(me.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:te.sort,splice:te.splice},me.extend=me.fn.extend=function(){var e,t,n,r,i,s,a=arguments[0]||{},o=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[o]||{}
vendor: 4,229 bytes, line 1
1,o++),"object"==typeof a||me.isFunction(a)||(a={}),o===c&&(a=this,o--);o<c;o++)if(null!=(e=arguments[o]))for(t in e)n=a[t],r=e[t],a!==r&&(u&&r&&(me.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,s=n&&Array.isArray(n)?n:[]):s=n&&me.isPlainObject(n)?n:{},a[t]=me.extend(u,s,r)):void 0!==r&&(a[t]=r));return a},me.extend({expando:"jQuery"+(fe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===me.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=me.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ue.call(e))&&(!(t=re(e))||(n=le.call(t,"constructor")&&t.constructor,"function"==typeof n&&de.call(n)===pe))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ce[ue.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ve,"ms-").replace(ye,je)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ge,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?me.merge(n,"string"==typeof e?[e]:e):ae.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:oe.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],s=0,a=e.length,o=!n;s<a;s++)r=!t(e[s],s),r!==o&&i.push(e[s]);return i},map:function(e,t,n){var i,s,a=0,o=[];if(r(e))for(i=e.length;a<i;a++)s=t(e[a],a,n),null!=s&&o.push(s);else for(a in e)s=t(e[a],a,n),null!=s&&o.push(s);return se.apply([],o)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),me.isFunction(e))return r=ie.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ie.call(arguments)))},i.guid=e.guid=e.guid||me.guid++,i},now:Date.now,support:he}),"function"==typeof Symbol&&(me.fn[Symbol.iterator]=te[Symbol.iterator]),me.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ce["[object "+t+"]"]=t.toLowerCase()});var be=function(e){function t(e,t,n,r){var i,s,a,o,c,u,l,p=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&((t?t.ownerDocument||t:M)!==O&&I(t),t=t||O,P)){if(11!==f&&(c=ve.exec(e)))if(i=c[1]){if(9===f){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&$(t,a)&&a.id===i)return n.push(a),n}else{if(c[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&k.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(k.qsa&&!V[e+" "]&&(!L||!L.test(e))){if(1!==f)p=t,l=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(we,ke):t.setAttribute("id",o=R),u=E(e),s=u.length;s--;)u[s]="#"+o+" "+h(u[s]);l=u.join(","),p=ye.test(e)&&d(t.parentNode)||t}if(l)try{return Z.apply(n,p.querySelectorAll(l)),n}catch(m){}finally{o===R&&t.removeAttribute("id")}}}return _(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[R]=!0,e}function i(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e
vendor: 10,483 bytes, line 1
1:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,s=e([],n.length,t),a=s.length;a--;)n[i=s[a]]&&(n[i]=!(r[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function h(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=t.next,s=i||r,a=n&&"parentNode"===s,o=B++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var u,l,d,p=[F,o];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(d=t[R]||(t[R]={}),l=d[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=l[s])&&u[0]===F&&u[1]===o)return p[2]=u[2];if(l[s]=p,p[2]=e(t,n,c))return!0}return!1}}function m(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,s=n.length;i<s;i++)t(e,n[i],r);return r}function v(e,t,n,r,i){for(var s,a=[],o=0,c=e.length,u=null!=t;o<c;o++)(s=e[o])&&(n&&!n(s,r,i)||(a.push(s),u&&t.push(o)));return a}function y(e,t,n,i,s,a){return i&&!i[R]&&(i=y(i)),s&&!s[R]&&(s=y(s,a)),r(function(r,a,o,c){var u,l,d,p=[],h=[],f=a.length,m=r||g(t||"*",o.nodeType?[o]:o,[]),y=!e||!r&&t?m:v(m,p,e,o,c),j=n?s||(r?e:f||i)?[]:a:y;if(n&&n(y,j,o,c),i)for(u=v(j,h),i(u,[],o,c),l=u.length;l--;)(d=u[l])&&(j[h[l]]=!(y[h[l]]=d));if(r){if(s||e){if(s){for(u=[],l=j.length;l--;)(d=j[l])&&u.push(y[l]=d);s(null,j=[],u,c)}for(l=j.length;l--;)(d=j[l])&&(u=s?ee(r,d):p[l])>-1&&(r[u]=!(a[u]=d))}}else j=v(j===a?j.splice(f,j.length):j),s?s(null,a,j,c):Z.apply(a,j)})}function j(e){for(var t,n,r,i=e.length,s=C.relative[e[0].type],a=s||C.relative[" "],o=s?1:0,c=f(function(e){return e===t},a,!0),u=f(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,r){var i=!s&&(r||n!==S)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];o<i;o++)if(n=C.relative[e[o].type])l=[f(m(l),n)];else{if(n=C.filter[e[o].type].apply(null,e[o].matches),n[R]){for(r=++o;r<i&&!C.relative[e[r].type];r++);return y(o>1&&m(l),o>1&&h(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(oe,"$1"),n,o<r&&j(e.slice(o,r)),r<i&&j(e=e.slice(r)),r<i&&h(e))}l.push(n)}return m(l)}function b(e,n){var i=n.length>0,s=e.length>0,a=function(r,a,o,c,u){var l,d,p,h=0,f="0",m=r&&[],g=[],y=S,j=r||s&&C.find.TAG("*",u),b=F+=null==y?1:Math.random()||.1,w=j.length;for(u&&(S=a===O||a||u);f!==w&&null!=(l=j[f]);f++){if(s&&l){for(d=0,a||l.ownerDocument===O||(I(l),o=!P);p=e[d++];)if(p(l,a||O,o)){c.push(l);break}u&&(F=b)}i&&((l=!p&&l)&&h--,r&&m.push(l))}if(h+=f,i&&f!==h){for(d=0;p=n[d++];)p(m,g,a,o);if(r){if(h>0)for(;f--;)m[f]||g[f]||(g[f]=K.call(c));g=v(g)}Z.apply(c,g),u&&!r&&g.length>0&&h+n.length>1&&t.uniqueSort(c)}return u&&(F=b,S=y),m};return i?r(a):a}var w,k,C,T,Q,E,x,_,S,A,D,I,O,q,P,L,N,H,$,R="sizzle"+1*new Date,M=e.document,F=0,B=0,U=n(),W=n(),V=n(),X=function(e,t){return e===t&&(D=!0),0},G={}.hasOwnProperty,z=[],K=z.pop,Y=z.push,Z=z.push,J=z.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),oe=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(se),pe=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,je=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ke=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){I()},Te=f(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply(z=J.call(M.childNodes),M.childNodes),z[M.childNodes.length].nodeType}catch(Qe){Z={apply:z.length?function(e,t){Y.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}k=t.support={},Q=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:M;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,q=O.documentElement,P=!Q(O),M!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),k.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=i(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=ge.test(O.getElementsByClassName),k.getById=i(function(e){return q.appendChild(e).id=R,!O.getElementsByName||!O.getElementsByName(R).length}),k.getById?(C.filter.ID=function(e){var t=e.replace(je,be);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(je,be);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,r,i,s=t.getElementById(e);if(s){if(n=s.getAttributeNode("id"),n&&n.value===e)return[s];for(i=t.getElementsByName(e),r=0;s=i[r++];)if(n=s.getAttributeNode("id"),n&&n.value===e)return[s]}return[]}}),C.find.TAG=k.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},C.find.CLASS=k.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&P)return t.getElementsByClassName(e)},N=[],L=[],(k.qsa=ge.test(O.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||L.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=O.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&L.push(":enabled",":disabled"),q.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(k.matchesSelector=ge.test(H=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){k.disconnectedMatch=H.call(e,"*"),H.call(e,"[s!='']:x"),N.push("!=",se)}),L=L.length&&new RegExp(L.join("|")),N=N.length&&new RegExp(N.join("|")),t=ge.test(q.compareDocumentPosition),$=t||ge.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!k.sortDetached&&t.compareDocumentPosition(e)===n?e===O||e.ownerDocument===M&&$(M,e)?-1:t===O||t.ownerDocument===M&&$(M,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],c=[t];if(!i||!s)return e===O?-1:t===O?1:i?-1:s?1:A?ee(A,e)-ee(A,t):0;if(i===s)return a(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;o[r]===c[r];)r++;return r?a(o[r],c[r]):o[r]===M?-1:c[r]===M?1:0},O):O},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==O&&I(e),n=n.replace(le,"='$1']"),k.matchesSelector&&P&&!V[n+" "]&&(!N||!N.test(n))&&(!L||!L.test(n)))try{var r=H.call(e,n);if(r||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,O,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==O&&I(e),$(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==O&&I(e);var n=C.attrHandle[t.toLowerCase()],r=n&&G.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:k.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(we,ke)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!k.detectDuplicates,A=!k.sortStable&&e.slice(0),e.sort(X),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}
vendor: 4,216 bytes, lines 1-2
1else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(je,be),e[3]=(e[3]||e[4]||e[5]||"").replace(je,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(je,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var s=t.attr(i,e);return null==s?"!="===n:!n||(s+="","="===n?s===r:"!="===n?s!==r:"^="===n?r&&0===s.indexOf(r):"*="===n?r&&s.indexOf(r)>-1:"$="===n?r&&s.slice(-r.length)===r:"~="===n?(" "+s.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(s===r||s.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,h,f,m=s!==a?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!c&&!o,j=!1;if(g){if(s){for(;m;){for(p=t;p=p[m];)if(o?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(p=g,d=p[R]||(p[R]={}),l=d[p.uniqueID]||(d[p.uniqueID]={}),u=l[e]||[],h=u[0]===F&&u[1],j=h&&u[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(j=h=0)||f.pop();)if(1===p.nodeType&&++j&&p===t){
2l[e]=[F,h,j];break}}else if(y&&(p=t,d=p[R]||(p[R]={}),l=d[p.uniqueID]||(d[p.uniqueID]={}),u=l[e]||[],h=u[0]===F&&u[1],j=h),j===!1)for(;(p=++h&&p&&p[m]||(j=h=0)||f.pop())&&((o?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++j||(y&&(d=p[R]||(p[R]={}),l=d[p.uniqueID]||(d[p.uniqueID]={}),l[e]=[F,j]),p!==t)););return j-=i,j===r||j%r===0&&j/r>=0}}},PSEUDO:function(e,n){var i,s=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[R]?s(n):s.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=s(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return s(e,0,i)}):s}},pseudos:{not:r(function(e){var t=[],n=[],i=x(e.replace(oe,"$1"));return i[R]?r(function(e,t,n,r){for(var s,a=i(e,null,r,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))}):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(je,be),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(je,be).toLowerCase(),function(t){var n;do if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)}
vendor: 4,713 bytes, line 2
2,input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=o(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=c(w);return p.prototype=C.filters=C.pseudos,C.setFilters=new p,E=t.tokenize=function(e,n){var r,i,s,a,o,c,u,l=W[e+" "];if(l)return n?0:l.slice(0);for(o=e,c=[],u=C.preFilter;o;){r&&!(i=ce.exec(o))||(i&&(o=o.slice(i[0].length)||o),c.push(s=[])),r=!1,(i=ue.exec(o))&&(r=i.shift(),s.push({value:r,type:i[0].replace(oe," ")}),o=o.slice(r.length));for(a in C.filter)!(i=he[a].exec(o))||u[a]&&!(i=u[a](i))||(r=i.shift(),s.push({value:r,type:a,matches:i}),o=o.slice(r.length));if(!r)break}return n?o.length:o?t.error(e):W(e,c).slice(0)},x=t.compile=function(e,t){var n,r=[],i=[],s=V[e+" "];if(!s){for(t||(t=E(e)),n=t.length;n--;)s=j(t[n]),s[R]?r.push(s):i.push(s);s=V(e,b(i,r)),s.selector=e}return s},_=t.select=function(e,t,n,r){var i,s,a,o,c,u="function"==typeof e&&e,l=!r&&E(e=u.selector||e);if(n=n||[],1===l.length){if(s=l[0]=l[0].slice(0),s.length>2&&"ID"===(a=s[0]).type&&9===t.nodeType&&P&&C.relative[s[1].type]){if(t=(C.find.ID(a.matches[0].replace(je,be),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(i=he.needsContext.test(e)?0:s.length;i--&&(a=s[i],!C.relative[o=a.type]);)if((c=C.find[o])&&(r=c(a.matches[0].replace(je,be),ye.test(s[0].type)&&d(t.parentNode)||t))){if(s.splice(i,1),e=r.length&&h(s),!e)return Z.apply(n,r),n;break}}return(u||x(e,l))(r,t,!P,n,!t||ye.test(e)&&d(t.parentNode)||t),n},k.sortStable=R.split("").sort(X).join("")===R,k.detectDuplicates=!!D,I(),k.sortDetached=i(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||s(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);me.find=be,me.expr=be.selectors,me.expr[":"]=me.expr.pseudos,me.uniqueSort=me.unique=be.uniqueSort,me.text=be.getText,me.isXMLDoc=be.isXML,me.contains=be.contains,me.escapeSelector=be.escape;var we=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&me(e).is(n))break;r.push(e)}return r},ke=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ce=me.expr.match.needsContext,Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Qe=/^.[^:#\[\.,]*$/;me.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?me.find.matchesSelector(r,e)?[r]:[]:me.find.matches(e,me.grep(t,function(e){return 1===e.nodeType}))},me.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(me(e).filter(function(){for(t=0;t<r;t++)if(me.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)me.find(e,i[t],n);return r>1?me.uniqueSort(n):n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&Ce.test(e)?me(e):e||[],!1).length}});var Ee,xe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,_e=me.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:xe.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof me?t[0]:t,me.merge(this,me.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),Te.test(r[1])&&me.isPlainObject(t))for(r in t)me.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ne.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}
vendor: 6,195 bytes, line 2
2return e.nodeType?(this[0]=e,this.length=1,this):me.isFunction(e)?void 0!==n.ready?n.ready(e):e(me):me.makeArray(e,this)};_e.prototype=me.fn,Ee=me(ne);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};me.fn.extend({has:function(e){var t=me(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(me.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,s=[],a="string"!=typeof e&&me(e);if(!Ce.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&me.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?me.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?oe.call(me(e),this[0]):oe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(me.uniqueSort(me.merge(this.get(),me(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),me.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return we(e,"parentNode")},parentsUntil:function(e,t,n){return we(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return we(e,"nextSibling")},prevAll:function(e){return we(e,"previousSibling")},nextUntil:function(e,t,n){return we(e,"nextSibling",n)},prevUntil:function(e,t,n){return we(e,"previousSibling",n)},siblings:function(e){return ke((e.parentNode||{}).firstChild,e)},children:function(e){return ke(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),me.merge([],e.childNodes))}},function(e,t){me.fn[e]=function(n,r){var i=me.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=me.filter(r,i)),this.length>1&&(Ae[e]||me.uniqueSort(i),Se.test(e)&&i.reverse()),this.pushStack(i)}});var De=/[^\x20\t\r\n\f]+/g;me.Callbacks=function(e){e="string"==typeof e?o(e):me.extend({},e);var t,n,r,i,s=[],a=[],c=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;c=-1)for(n=a.shift();++c<s.length;)s[c].apply(n[0],n[1])===!1&&e.stopOnFalse&&(c=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},l={add:function(){return s&&(n&&!t&&(c=s.length-1,a.push(n)),function r(t){me.each(t,function(t,n){me.isFunction(n)?e.unique&&l.has(n)||s.push(n):n&&n.length&&"string"!==me.type(n)&&r(n)})}(arguments),n&&!t&&u()),this},remove:function(){return me.each(arguments,function(e,t){for(var n;(n=me.inArray(t,s,n))>-1;)s.splice(n,1),n<=c&&c--}),this},has:function(e){return e?me.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||t||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},me.extend({Deferred:function(t){var n=[["notify","progress",me.Callbacks("memory"),me.Callbacks("memory"),2],["resolve","done",me.Callbacks("once memory"),me.Callbacks("once memory"),0,"resolved"],["reject","fail",me.Callbacks("once memory"),me.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return me.Deferred(function(t){me.each(n,function(n,r){var i=me.isFunction(e[r[4]])&&e[r[4]];s[r[1]](function(){var e=i&&i.apply(this,arguments);e&&me.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function s(t,n,r,i){return function(){var o=this,l=arguments,d=function(){var e,d;if(!(t<a)){if(e=r.apply(o,l),e===n.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,me.isFunction(d)?i?d.call(e,s(a,n,c,i),s(a,n,u,i)):(a++,d.call(e,s(a,n,c,i),s(a,n,u,i),s(a,n,c,n.notifyWith))):(r!==c&&(o=void 0,l=[e]),(i||n.resolveWith)(o,l))}},p=i?d:function(){try{d()}catch(e){me.Deferred.exceptionHook&&me.Deferred.exceptionHook(e,p.stackTrace),t+1>=a&&(r!==u&&(o=void 0,l=[e]),n.rejectWith(o,l))}};t?p():(me.Deferred.getStackHook&&(p.stackTrace=me.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return me.Deferred(function(e){n[0][3].add(s(0,e,me.isFunction(i)?i:c,e.notifyWith)),n[1][3].add(s(0,e,me.isFunction(t)?t:c)),n[2][3].add(s(0,e,me.isFunction(r)?r:u))}).promise()},promise:function(e){return null!=e?me.extend(e,i):i}},s={};return me.each(n,function(e,t){var a=t[2],o=t[5];i[t[1]]=a.add,o&&a.add(function(){r=o},n[3-e][2].disable,n[0][2].lock),a.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=a.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ie.call(arguments),s=me.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ie.call(arguments):n,--t||s.resolveWith(r,i)}};if(t<=1&&(l(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||me.isFunction(i[n]&&i[n].then)))return s.then();for(;n--;)l(i[n],a(n),s.reject);return s.promise()}});var Ie=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;me.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Ie.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},me.readyException=function(t){e.setTimeout(function(){throw t})};var Oe=me.Deferred();me.fn.ready=function(e){return Oe.then(e)["catch"](function(e){me.readyException(e)}),this},me.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--me.readyWait:me.isReady)||(me.isReady=!0,e!==!0&&--me.readyWait>0||Oe.resolveWith(ne,[me]))}}),me.ready.then=Oe.then,"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll?e.setTimeout(me.ready):(ne.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var qe=function(e,t,n,r,i,s,a){var o=0,c=e.length,u=null==n;
vendor: 4,773 bytes, line 2
2if("object"===me.type(n)){i=!0;for(o in n)qe(e,t,o,n[o],!0,s,a)}else if(void 0!==r&&(i=!0,me.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(me(e),n)})),t))for(;o<c;o++)t(e[o],n,a?r:r.call(e[o],o,t(e[o],n)));return i?e:u?t.call(e):c?t(e[0],n):s},Pe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};p.uid=1,p.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Pe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[me.camelCase(t)]=n;else for(r in t)i[me.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][me.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(me.camelCase):(t=me.camelCase(t),t=t in r?[t]:t.match(De)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||me.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!me.isEmptyObject(t)}};var Le=new p,Ne=new p,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$e=/[A-Z]/g;me.extend({hasData:function(e){return Ne.hasData(e)||Le.hasData(e)},data:function(e,t,n){return Ne.access(e,t,n)},removeData:function(e,t){Ne.remove(e,t)},_data:function(e,t,n){return Le.access(e,t,n)},_removeData:function(e,t){Le.remove(e,t)}}),me.fn.extend({data:function(e,t){var n,r,i,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(i=Ne.get(s),1===s.nodeType&&!Le.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=me.camelCase(r.slice(5)),f(s,r,i[r])));Le.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ne.set(this,e)}):qe(this,function(t){var n;if(s&&void 0===t){if(n=Ne.get(s,e),void 0!==n)return n;if(n=f(s,e),void 0!==n)return n}else this.each(function(){Ne.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ne.remove(this,e)})}}),me.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Le.get(e,t),n&&(!r||Array.isArray(n)?r=Le.access(e,t,me.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=me.queue(e,t),r=n.length,i=n.shift(),s=me._queueHooks(e,t),a=function(){me.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,a,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Le.get(e,n)||Le.access(e,n,{empty:me.Callbacks("once memory").add(function(){Le.remove(e,[t+"queue",n])})})}}),me.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?me.queue(this[0],e):void 0===t?this:this.each(function(){var n=me.queue(this,e,t);me._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&me.dequeue(this,e)})},dequeue:function(e){return this.each(function(){me.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=me.Deferred(),s=this,a=this.length,o=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Le.get(s[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(o));return o(),i.promise(t)}});var Re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Re+")([a-z%]*)$","i"),Fe=["Top","Right","Bottom","Left"],Be=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&me.contains(e.ownerDocument,e)&&"none"===me.css(e,"display")},Ue=function(e,t,n,r){var i,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=a[s];return i},We={};me.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Be(this)?me(this).show():me(this).hide()})}});var Ve=/^(?:checkbox|radio)$/i,Xe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ge=/^$|\/(?:java|ecma)script/i,ze={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ze.optgroup=ze.option,ze.tbody=ze.tfoot=ze.colgroup=ze.caption=ze.thead,ze.th=ze.td;var Ke=/<|&#?\w+;/;!function(){var e=ne.createDocumentFragment(),t=e.appendChild(ne.createElement("div")),n=ne.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),he.checkClone
2=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",he.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ye=ne.documentElement,Ze=/^key/,Je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^([^.]*)(?:\.(.+)|)/;me.event={global:{},add:function(e,t,n,r,i){var s,a,o,c,u,l,d,p,h,f,m,g=Le.get(e);if(g)for(n.handler&&(s=n,n=s.handler,i=s.selector),i&&me.find.matchesSelector(Ye,i),n.guid||(n.guid=me.guid++),(c=g.events)||(c=g.events={}),(a=g.handle)||(a=g.handle=function(t){return"undefined"!=typeof me&&me.event.triggered!==t.type?me.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(De)||[""],u=t.length;u--;)o=et.exec(t[u])||[],h=m=o[1],f=(o[2]||"").split(".").sort(),h&&(d=me.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=me.event.special[h]||{},l=me.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&me.expr.match.needsContext.test(i),namespace:f.join(".")},s),(p=c[h])||(p=c[h]=[],p.delegateCount=0,d.setup&&d.setup.call(e,r,f,a)!==!1||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),me.event.global[h]=!0)},remove:function(e,t,n,r,i){var s,a,o,c,u,l,d,p,h,f,m,g=Le.hasData(e)&&Le.get(e);if(g&&(c=g.events)){for(t=(t||"").match(De)||[""],u=t.length;u--;)if(o=et.exec(t[u])||[],h=m=o[1],f=(o[2]||"").split(".").sort(),h){for(d=me.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,p=c[h]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=p.length;s--;)l=p[s],!i&&m!==l.origType||n&&n.guid!==l.guid||o&&!o.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(s,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&d.teardown.call(e,f,g.handle)!==!1||me.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)me.event.remove(e,h+t[u],n,r,!0);me.isEmptyObject(c)&&Le.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,s,a,o=me.event.fix(e),c=new Array(arguments.length),u=(Le.get(this,"events")||{})[o.type]||[],l=me.event.special[o.type]||{};for(c[0]=o,t=1;t<arguments.length;t++)c[t]=arguments[t];if(o.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,o)!==!1){for(a=me.event.handlers.call(this,o,u),t=0;(i=a[t++])&&!o.isPropagationStopped();)for(o.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!o.rnamespace.test(s.namespace)||(o.handleObj=s,o.data=s.data,r=((me.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,c),void 0!==r&&(o.result=r)===!1&&(o.preventDefault(),o.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,o),o.result}},handlers:function(e,t){var n,r,i,s,a,o=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||u.disabled!==!0)){for(s=[],a={},n=0;n<c;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?me(i,this).index(u)>-1:me.find(i,this,null,[u]).length),a[i]&&s.push(r);s.length&&o.push({elem:u,handlers:s})}return u=this,c<t.length&&o.push({elem:u,handlers:t.slice(c)}),o},addProp:function(e,t){Object.defineProperty(me.Event.prototype,e,{enumerable:!0,configurable:!0,get:me.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[me.expando]?e:new me.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==C()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===C()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},me.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},me.Event=function(e,t){return this instanceof me.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?w:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&me.extend(this,t),this.timeStamp=e&&e.timeStamp||me.now(),void(this[me.expando]=!0)):new me.Event(e,t)},me.Event.prototype={constructor:me.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},me.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ze.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Je.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},me.event.addProp),me.each({mouseenter:"mouseover",mouseleave:"mou
2seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){me.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return i&&(i===r||me.contains(r,i))||(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),me.fn.extend({on:function(e,t,n,r){return T(this,e,t,n,r)},one:function(e,t,n,r){return T(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,me(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=k),this.each(function(){me.event.remove(this,e,n,t)})}});var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,nt=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,it=/^true\/(.*)/,st=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;me.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1></$2>")},clone:function(e,t,n){var r,i,s,a,o=e.cloneNode(!0),c=me.contains(e.ownerDocument,e);if(!(he.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||me.isXMLDoc(e)))for(a=y(o),s=y(e),r=0,i=s.length;r<i;r++)S(s[r],a[r]);if(t)if(n)for(s=s||y(e),a=a||y(o),r=0,i=s.length;r<i;r++)_(s[r],a[r]);else _(e,o);return a=y(o,"script"),a.length>0&&j(a,!c&&y(e,"script")),o},cleanData:function(e){for(var t,n,r,i=me.event.special,s=0;void 0!==(n=e[s]);s++)if(Pe(n)){if(t=n[Le.expando]){if(t.events)for(r in t.events)i[r]?me.event.remove(n,r):me.removeEvent(n,r,t.handle);n[Le.expando]=void 0}n[Ne.expando]&&(n[Ne.expando]=void 0)}}}),me.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return qe(this,function(e){return void 0===e?me.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Q(this,e);t.appendChild(e)}})},prepend:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Q(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(me.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return me.clone(this,e,t)})},html:function(e){return qe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!nt.test(e)&&!ze[(Xe.exec(e)||["",""])[1].toLowerCase()]){e=me.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(me.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return A(this,arguments,function(t){var n=this.parentNode;me.inArray(this,e)<0&&(me.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),me.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){me.fn[e]=function(e){for(var n,r=[],i=me(e),s=i.length-1,a=0;a<=s;a++)n=a===s?this:this.clone(!0),me(i[a])[t](n),ae.apply(r,n.get());return this.pushStack(r)}});var at=/^margin/,ot=new RegExp("^("+Re+")(?!px)[a-z%]+$","i"),ct=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(o){o.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",Ye.appendChild(a);var t=e.getComputedStyle(o);n="1%"!==t.top,s="2px"===t.marginLeft,r="4px"===t.width,o.style.marginRight="50%",i="4px"===t.marginRight,Ye.removeChild(a),o=null}}var n,r,i,s,a=ne.createElement("div"),o=ne.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",he.clearCloneStyle="content-box"===o.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(o),me.extend(he,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),s}}))}();var ut=/^(none|table(?!-c[ea]).+)/,lt=/^--/,dt={position:"absolute",visibility:"hidden",display:"block"},pt={letterSpacing:"0",fontWeight:"400"},ht=["Webkit","Moz","ms"],ft=ne.createElement("div").style;me.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=I(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,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":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,a,o=me.camelCase(t),c=lt.test(t),u=e.style;
vendor: 8,186 bytes, lines 2-3
2return c||(t=P(o)),a=me.cssHooks[t]||me.cssHooks[o],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t]:(s=typeof n,"string"===s&&(i=Me.exec(n))&&i[1]&&(n=m(e,t,i),s="number"),null!=n&&n===n&&("number"===s&&(n+=i&&i[3]||(me.cssNumber[o]?"":"px")),he.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n)),void 0)}},css:function(e,t,n,r){var i,s,a,o=me.camelCase(t),c=lt.test(t);return c||(t=P(o)),a=me.cssHooks[t]||me.cssHooks[o],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=I(e,t,r)),"normal"===i&&t in pt&&(i=pt[t]),""===n||n?(s=parseFloat(i),n===!0||isFinite(s)?s||0:i):i}}),me.each(["height","width"],function(e,t){me.cssHooks[t]={get:function(e,n,r){if(n)return!ut.test(me.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?H(e,t,r):Ue(e,dt,function(){return H(e,t,r)})},set:function(e,n,r){var i,s=r&&ct(e),a=r&&N(e,t,r,"border-box"===me.css(e,"boxSizing",!1,s),s);return a&&(i=Me.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=me.css(e,t)),L(e,n,a)}}}),me.cssHooks.marginLeft=O(he.reliableMarginLeft,function(e,t){if(t)return(parseFloat(I(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),me.each({margin:"",padding:"",border:"Width"},function(e,t){me.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Fe[r]+t]=s[r]||s[r-2]||s[0];return i}},at.test(e)||(me.cssHooks[e+t].set=L)}),me.fn.extend({css:function(e,t){return qe(this,function(e,t,n){var r,i,s={},a=0;if(Array.isArray(t)){for(r=ct(e),i=t.length;a<i;a++)s[t[a]]=me.css(e,t[a],!1,r);return s}return void 0!==n?me.style(e,t,n):me.css(e,t)},e,t,arguments.length>1)}}),me.Tween=$,$.prototype={constructor:$,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||me.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(me.cssNumber[n]?"":"px")},cur:function(){var e=$.propHooks[this.prop];return e&&e.get?e.get(this):$.propHooks._default.get(this)},run:function(e){var t,n=$.propHooks[this.prop];return this.options.duration?this.pos=t=me.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=me.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){me.fx.step[e.prop]?me.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[me.cssProps[e.prop]]&&!me.cssHooks[e.prop]?e.elem[e.prop]=e.now:me.style(e.elem,e.prop,e.now+e.unit)}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},me.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},me.fx=$.prototype.init,me.fx.step={};var mt,gt,vt=/^(?:toggle|show|hide)$/,yt=/queueHooks$/;me.Animation=me.extend(V,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);
3return m(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){me.isFunction(e)?(t=e,e=["*"]):e=e.match(De);for(var n,r=0,i=e.length;r<i;r++)n=e[r],V.tweeners[n]=V.tweeners[n]||[],V.tweeners[n].unshift(t)},prefilters:[U],prefilter:function(e,t){t?V.prefilters.unshift(e):V.prefilters.push(e)}}),me.speed=function(e,t,n){var r=e&&"object"==typeof e?me.extend({},e):{complete:n||!n&&t||me.isFunction(e)&&e,duration:e,easing:n&&t||t&&!me.isFunction(t)&&t};return me.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in me.fx.speeds?r.duration=me.fx.speeds[r.duration]:r.duration=me.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){me.isFunction(r.old)&&r.old.call(this),r.queue&&me.dequeue(this,r.queue)},r},me.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Be).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=me.isEmptyObject(e),s=me.speed(t,n,r),a=function(){var t=V(this,me.extend({},e),s);(i||Le.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",s=me.timers,a=Le.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&yt.test(i)&&r(a[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));!t&&n||me.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Le.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=me.timers,a=r?r.length:0;for(n.finish=!0,me.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),me.each(["toggle","show","hide"],function(e,t){var n=me.fn[t];me.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(F(t,!0),e,r,i)}}),me.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){me.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),me.timers=[],me.fx.tick=function(){var e,t=0,n=me.timers;for(mt=me.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||me.fx.stop(),mt=void 0},me.fx.timer=function(e){me.timers.push(e),me.fx.start()},me.fx.interval=13,me.fx.start=function(){gt||(gt=!0,R())},me.fx.stop=function(){gt=null},me.fx.speeds={slow:600,fast:200,_default:400},me.fn.delay=function(t,n){return t=me.fx?me.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ne.createElement("input"),t=ne.createElement("select"),n=t.appendChild(ne.createElement("option"));e.type="checkbox",he.checkOn=""!==e.value,he.optSelected=n.selected,e=ne.createElement("input"),e.value="t",e.type="radio",he.radioValue="t"===e.value}();var jt,bt=me.expr.attrHandle;me.fn.extend({attr:function(e,t){return qe(this,me.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){me.removeAttr(this,e)})}}),me.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof e.getAttribute?me.prop(e,t,n):(1===s&&me.isXMLDoc(e)||(i=me.attrHooks[t.toLowerCase()]||(me.expr.match.bool.test(t)?jt:void 0)),void 0!==n?null===n?void me.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=me.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!he.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(De);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),jt={set:function(e,t,n){return t===!1?me.removeAttr(e,n):e.setAttribute(n,n),n}},me.each(me.expr.match.bool.source.match(/\w+/g),function(e,t){var n=bt[t]||me.find.attr;bt[t]=function(e,t,r){var i,s,a=t.toLowerCase();return r||(s=bt[a],bt[a]=i,i=null!=n(e,t,r)?a:null,bt[a]=s),i}});var wt=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;me.fn.extend({prop:function(e,t){return qe(this,me.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[me.propFix[e]||e]})}}),me.extend({prop:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&me.isXMLDoc(e)||(t=me.propFix[t]||t,i=me.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=me.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?
vendor: 7,820 bytes, line 3
30:-1}}},propFix:{"for":"htmlFor","class":"className"}}),he.optSelected||(me.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),me.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){me.propFix[this.toLowerCase()]=this}),me.fn.extend({addClass:function(e){var t,n,r,i,s,a,o,c=0;if(me.isFunction(e))return this.each(function(t){me(this).addClass(e.call(this,t,G(this)))});if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[c++];)if(i=G(n),r=1===n.nodeType&&" "+X(i)+" "){for(a=0;s=t[a++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");o=X(r),i!==o&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,i,s,a,o,c=0;if(me.isFunction(e))return this.each(function(t){me(this).removeClass(e.call(this,t,G(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[c++];)if(i=G(n),r=1===n.nodeType&&" "+X(i)+" "){for(a=0;s=t[a++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");o=X(r),i!==o&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):me.isFunction(e)?this.each(function(n){me(this).toggleClass(e.call(this,n,G(this),t),t)}):this.each(function(){var t,r,i,s;if("string"===n)for(r=0,i=me(this),s=e.match(De)||[];t=s[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=G(this),t&&Le.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Le.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+X(G(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;me.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=me.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,me(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=me.map(i,function(e){return null==e?"":e+""})),t=me.valHooks[this.type]||me.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=me.valHooks[i.type]||me.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Ct,""):null==n?"":n)}}}),me.extend({valHooks:{option:{get:function(e){var t=me.find.attr(e,"value");return null!=t?t:X(me.text(e))}},select:{get:function(e){var t,n,r,s=e.options,a=e.selectedIndex,o="select-one"===e.type,c=o?null:[],u=o?a+1:s.length;for(r=a<0?u:o?a:0;r<u;r++)if(n=s[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=me(n).val(),o)return t;c.push(t)}return c},set:function(e,t){for(var n,r,i=e.options,s=me.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=me.inArray(me.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),me.each(["radio","checkbox"],function(){me.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=me.inArray(me(e).val(),t)>-1}},he.checkOn||(me.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Tt=/^(?:focusinfocus|focusoutblur)$/;me.extend(me.event,{trigger:function(t,n,r,i){var s,a,o,c,u,l,d,p=[r||ne],h=le.call(t,"type")?t.type:t,f=le.call(t,"namespace")?t.namespace.split("."):[];if(a=o=r=r||ne,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(h+me.event.triggered)&&(h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort()),u=h.indexOf(":")<0&&"on"+h,t=t[me.expando]?t:new me.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:me.makeArray(n,[t]),d=me.event.special[h]||{},i||!d.trigger||d.trigger.apply(r,n)!==!1)){if(!i&&!d.noBubble&&!me.isWindow(r)){for(c=d.delegateType||h,Tt.test(c+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),o=a;o===(r.ownerDocument||ne)&&p.push(o.defaultView||o.parentWindow||e)}for(s=0;(a=p[s++])&&!t.isPropagationStopped();)t.type=s>1?c:d.bindType||h,l=(Le.get(a,"events")||{})[t.type]&&Le.get(a,"handle"),l&&l.apply(a,n),l=u&&a[u],l&&l.apply&&Pe(a)&&(t.result=l.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!Pe(r)||u&&me.isFunction(r[h])&&!me.isWindow(r)&&(o=r[u],o&&(r[u]=null),me.event.triggered=h,r[h](),me.event.triggered=void 0,o&&(r[u]=o)),t.result}},simulate:function(e,t,n){var r=me.extend(new me.Event,n,{type:e,isSimulated:!0});me.event.trigger(r,null,t)}}),me.fn.extend({trigger:function(e,t){return this.each(function(){me.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return me.event.trigger(e,t,n,!0)}}),me.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){me.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),me.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),he.focusin="onfocusin"in e,he.focusin||me.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){me.event.simulate(t,e.target,me.event.fix(e))};me.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Le.access(r,t);i||r.addEventListener(e,n,!0),Le.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Le.access(r,t)-1;i?Le.access(r,t,i):(r.removeEventListener(e,n,!0),Le.remove(r,t))}}});var Qt=e.location,Et=me.now(),xt=/\?/;me.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||me.error("Invalid XML: "+t),n};var _t=/\[\]$/,St=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;me.param=function(e,t){var n,r=[],i=function(e,t){var n=me.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!me.isPlainObject(e))me.each(e,function(){i(this.name,this.value)});else for(n in e)z(n,e[n],t,i);return r.join("&")},me.fn.extend({serialize:function(){return me.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=me.prop(this,"elements");return e?me.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!me(this).is(":disabled")&&Dt.test(this.nodeName)&&!At.test(e)&&(this.checked||!Ve.test(e))}).map(function(e,t){var n=me(this).val();return null==n?null:Array.isArray(n)?me.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var It=/%20/g,Ot=/#.*$/,qt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,Ht=/^\/\//,$t={},Rt={},Mt="*/".concat("*"),Ft=ne.createElement("a");Ft.href=Qt.href,me.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qt.href,type:"GET",isLocal:Lt.test(Qt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":me.parseXML}
vendor: 6,444 bytes, line 3
3,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Z(Z(e,me.ajaxSettings),t):Z(me.ajaxSettings,e)},ajaxPrefilter:K($t),ajaxTransport:K(Rt),ajax:function(t,n){function r(t,n,r,o){var u,p,h,b,w,k=n;l||(l=!0,c&&e.clearTimeout(c),i=void 0,a=o||"",C.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(b=J(f,C,r)),b=ee(f,b,C,u),u?(f.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(me.lastModified[s]=w),w=C.getResponseHeader("etag"),w&&(me.etag[s]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=b.state,p=b.data,h=b.error,u=!h)):(h=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(n||k)+"",u?v.resolveWith(m,[p,k,C]):v.rejectWith(m,[C,k,h]),C.statusCode(j),j=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[C,f,u?p:h]),y.fireWith(m,[C,k]),d&&(g.trigger("ajaxComplete",[C,f]),--me.active||me.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,s,a,o,c,u,l,d,p,h,f=me.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?me(m):me.event,v=me.Deferred(),y=me.Callbacks("once memory"),j=f.statusCode||{},b={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Pt.exec(a);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)j[t]=[j[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),r(0,t),this}};if(v.promise(C),f.url=((t||f.url||Qt.href)+"").replace(Ht,Qt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(De)||[""],null==f.crossDomain){u=ne.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(T){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=me.param(f.data,f.traditional)),Y($t,f,n,C),l)return C;d=me.event&&f.global,d&&0===me.active++&&me.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Nt.test(f.type),s=f.url.replace(Ot,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(It,"+")):(h=f.url.slice(s.length),f.data&&(s+=(xt.test(s)?"&":"?")+f.data,delete f.data),f.cache===!1&&(s=s.replace(qt,"$1"),h=(xt.test(s)?"&":"?")+"_="+Et++ +h),f.url=s+h),f.ifModified&&(me.lastModified[s]&&C.setRequestHeader("If-Modified-Since",me.lastModified[s]),me.etag[s]&&C.setRequestHeader("If-None-Match",me.etag[s])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Mt+"; q=0.01":""):f.accepts["*"]);for(p in f.headers)C.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(f.beforeSend.call(m,C,f)===!1||l))return C.abort();if(k="abort",y.add(f.complete),C.done(f.success),C.fail(f.error),i=Y(Rt,f,n,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,f]),l)return C;f.async&&f.timeout>0&&(c=e.setTimeout(function(){C.abort("timeout")},f.timeout));try{l=!1,i.send(b,r)}catch(T){if(l)throw T;r(-1,T)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return me.get(e,t,n,"json")},getScript:function(e,t){return me.get(e,void 0,t,"script")}}),me.each(["get","post"],function(e,t){me[t]=function(e,n,r,i){return me.isFunction(n)&&(i=i||r,r=n,n=void 0),me.ajax(me.extend({url:e,type:t,dataType:i,data:n,success:r},me.isPlainObject(e)&&e))}}),me._evalUrl=function(e){return me.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},me.fn.extend({wrapAll:function(e){var t;return this[0]&&(me.isFunction(e)&&(e=e.call(this[0])),t=me(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return me.isFunction(e)?this.each(function(t){me(this).wrapInner(e.call(this,t))}):this.each(function(){var t=me(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=me.isFunction(e);return this.each(function(n){me(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){me(this).replaceWith(this.childNodes)}),this}}),me.expr.pseudos.hidden=function(e){return!me.expr.pseudos.visible(e)},me.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},me.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Bt={0:200,1223:204},Ut=me.ajaxSettings.xhr();he.cors=!!Ut&&"withCredentials"in Ut,he.ajax=Ut=!!Ut,me.ajaxTransport(function(t){var n,r;if(he.cors||Ut&&!t.crossDomain)return{send:function(i,s){var a,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)o[a]=t.xhrFields[a];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)o.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Bt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=n(),r=o.onerror=n("error"),void 0!==o.onabort?o.onabort=r:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{o.send(t.hasContent&&t.data||null)}catch(c){if(n)throw c}},abort:function(){n&&n()}}}),me.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),me.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return me.globalEval(e),e}}}),me.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),me.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=me("<script>
3").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ne.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Wt=[],Vt=/(=)\?(?=&|$)|\?\?/;me.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||me.expando+"_"+Et++;return this[e]=!0,e}}),me.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,a,o=t.jsonp!==!1&&(Vt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=me.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Vt,"$1"+i):t.jsonp!==!1&&(t.url+=(xt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||me.error(i+" was not called"),a[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===s?me(e).removeProp(i):e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(i)),a&&me.isFunction(s)&&s(a[0]),a=s=void 0}),"script"}),he.createHTMLDocument=function(){var e=ne.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),me.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,s;return t||(he.createHTMLDocument?(t=ne.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ne.location.href,t.head.appendChild(r)):t=ne),i=Te.exec(e),s=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,s),s&&s.length&&me(s).remove(),me.merge([],i.childNodes))},me.fn.load=function(e,t,n){var r,i,s,a=this,o=e.indexOf(" ");return o>-1&&(r=X(e.slice(o)),e=e.slice(0,o)),me.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&me.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){s=arguments,a.html(r?me("<div>").append(me.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},me.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){me.fn[t]=function(e){return this.on(t,e)}}),me.expr.pseudos.animated=function(e){return me.grep(me.timers,function(t){return e===t.elem}).length},me.offset={setOffset:function(e,t,n){var r,i,s,a,o,c,u,l=me.css(e,"position"),d=me(e),p={};"static"===l&&(e.style.position="relative"),o=d.offset(),s=me.css(e,"top"),c=me.css(e,"left"),u=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1,u?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(s)||0,i=parseFloat(c)||0),me.isFunction(t)&&(t=t.call(e,n,me.extend({},o))),null!=t.top&&(p.top=t.top-o.top+a),null!=t.left&&(p.left=t.left-o.left+i),"using"in t?t.using.call(e,p):d.css(p)}},me.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){me.offset.setOffset(this,e,t)});var t,n,r,i,s=this[0];if(s)return s.getClientRects().length?(r=s.getBoundingClientRect(),t=s.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===me.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+me.css(e[0],"borderTopWidth",!0),left:r.left+me.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-me.css(n,"marginTop",!0),left:t.left-r.left-me.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===me.css(e,"position");)e=e.offsetParent;return e||Ye})}}),me.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;me.fn[e]=function(r){return qe(this,function(e,r,i){var s;return me.isWindow(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===i?s?s[t]:e[r]:void(s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):e[r]=i)},e,r,arguments.length)}}),me.each(["top","left"],function(e,t){me.cssHooks[t]=O(he.pixelPosition,function(e,n){if(n)return n=I(e,t),ot.test(n)?me(e).position()[t]+"px":n})}),me.each({Height:"height",Width:"width"},function(e,t){me.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){me.fn[r]=function(i,s){var a=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||s===!0?"margin":"border");return qe(this,function(t,n,i){var s;return me.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?me.css(t,n,o):me.style(t,n,i,o)},t,a?i:void 0,a)}})}),me.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),me.holdReady=function(e){e?me.readyWait++:me.ready(!0)},me.isArray=Array.isArray,me.parseJSON=JSON.parse,me.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return me});var Xt=e.jQuery,Gt=e.$;return me.noConflict=function(t){return e.$===me&&(e.$=Gt),t&&e.jQuery===me&&(e.jQuery=Xt),me},t||(e.jQuery=e.$=me),me}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return o.raw?e:encodeURIComponent(e)}function n(e){return o.raw?e:decodeURIComponent(e)}function r(e){return t(o.json?JSON.stringify(e):String(e))}function i(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(a," ")),o.json?JSON.parse(e):e}catch(t){}}function s(t,n){var r=o.raw?t:i(t);return e.isFunction(n)?n(r):r}var a=/\+/g,o=e.cookie=function(i,a,c){if(void 0!==a&&!e.isFunction(a)){if(c=e.extend({},o.defaults,c),"number"==typeof c.expires){var u=c.expires,l=c.expires=new Date;l.setTime(+l+864e5*u)}return document.cookie=[t(i),"=",r(a),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}for(var d=i?void 0:{},p=document.cookie?document.cookie.split("; "):[],h=0,f=p.length;h<f;h++){var m=p[h].split("="),g=n(m.shift()),v=m.join("=");if(i&&i===g){d=s(v,a);break}i||void 0===(v=s(v))||(d[g]=v)}return d};o.defaults={},e.removeCookie=function(t,n){return void 0!==e.cookie(t)&&(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}}),function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)}(this,document,function(e,t,n,r){!function(t){"function"==typeof define&&define.amd?define("vmouse",["jquery"],t):t(e)}(function(e){function t(e){for(;e&&"undefined"!=typeof e.originalEvent;)e=e.originalEvent;return e}function i(n,i){var s,a,o,c,u,l,d,p,h,f=n.type;if(n=e.Event(n),n.type=i,s=n.originalEvent,a=_,f.search(/^(mouse|click)/)>-1&&(a=A),s)for(d=a.length;d;)c=a[--d],n[c]=s[c];if(f.search(/mouse(down|up)|click/)>-1&&!n.which&&(n.which=1),f.search(/^touch/)!==-1&&(o=t(s),f=o.touches,u=o.changedTouches,l=f&&f.length?f[0]:u&&u.length?u[0]:r))for(p=0,h=E.length;p<h;p++)c=E[p],n[c]=l[c];return n}function s(t){for(var n,r,i={};t;){n=e.data(t,T);for(r in n)n[r]&&(i[r]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function a(t,n){for(var r;t;){if(r=e.data(t,T),r&&(!n||r[n]))return t;t=t.parentNode}return null}function o(){H=!1}function c(){H=!0}function u(){F=0,L.length=0,N=!1,c()}function l(){o()}function d(){I&&(clearTimeout(I),I=0)}function p(){d(),I=setTimeout(function(){I=0,u()},e.vmouse.resetTimerDuration)}function h(t,n,r){var s;return(r&&r[t]||!r&&a(n.target,t))&&(s=i(n,t),e(n.target).trigger(s)),s}function f(t){var n,r=e.data(t.target,Q);"click"===t.type&&"touchstart"===e.data(t.target,"lastTouchType")&&setTimeout(function(){"touchstart"===e.data(t.target,"lastTouchType")&&(u(),delete e.data(t.target).lastTouchType,f(t))},e.vmouse.maximumTimeBetweenTouches),N||F&&F===r||(n=h("v"+t.type,t),n&&(n.isDefaultPrevented()&&t.preventDefault(),n.isPropagationStopped()&&t.stopPropagation(),n.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function m(n){var r,i,a,o=t(n).touches;o&&1===o.length&&(r=n.target,i=s(r),e.data(n.target,"lastTouchType",n.type),i.hasVirtualBinding&&(F=M++,e.data(r,Q,F),d(),l(),P=!1,a=t(n).touches[0],O=a.pageX,q=a.pageY,h("vmouseover",n,i),h("vmousedown",n,i)))}function g(t){H||(P||h("vmousecancel",t,s(t.target)),e.data(t.target,"lastTouchType",t.type),P=!0,p())}function v(n){if(!H){var r=t(n).touches[0],i=P,a=e.vmouse.moveDistanceThreshold,o=s(n.target);e.data(n.target,"lastTouchType",n.type),P=P||Math.abs(r.pageX-O)>a||Math.abs(r.pageY-q)>a,P&&!i&&h("vmousecancel",n,o),h("vmousemove",n,o),p()}}function y(n){if(!H&&e.data(n.target,"lastTouchType")!==r){c(),delete e.data(n.target).lastTouchType;var i,a,o=s(n.target);h("vmouseup",n,o),P||(i=h("vclick",n,o),i&&i.isDefaultPrevented()&&(a=t(n).changedTouches[0],L.push({touchID:F,x:a.clientX,y:a.clientY}),N=!0)),h("vmouseout",n,o),P=!1,p()}}function j(t){var n,r=e.data(t,T);if(r)for(n in r)if(r[n])return!0;return!1}function b(){}function w(t){var n=t.substr(1);return{setup:function(){j(this)||e.data(this,T,{});var r=e.data(this,T);r[t]=!0,D[t]=(D[t]||0)+1,1===D[t]&&R.bind(n,f),e(this).bind(n,b),$&&(D.touchstart=(D.touchstart||0)+1,1===D.touchstart&&R.bind("touchstart",m).bind("touchend",y).bind("touchmove",v).bind("scroll",g))},teardown:function(){--D[t],D[t]||R.unbind(n,f),$&&(--D.touchstart,D.touchstart||R.unbind("touchstart",m).unbind("touchmove",v).unbind("touchend",y).unbind("scroll",g));var r=e(this),i=e.data(this,T);i&&(i[t]=!1),r.unbind(n,b),j(this)||r.removeData(T)}}}var k,C,T="virtualMouseBindings",Q="virtualTouchID",E="clientX clientY pageX pageY screenX screenY".split(" "),x="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),_="altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),S=e.event.mouseHooks?e.event.mouseHooks.props:[],A=_.concat(S),D={},I=0,O=0,q=0,P=!1,L=[],N=!1,H=!1,$="addEventListener"in n,R=e(n),M=1,F=0;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500,maximumTimeBetweenTouches:100},C=0;C<x.length;C++)e.event.special[x[C]]=w(x[C]);$&&n.addEventListener("click",function(t){var n,r,i,s,a,o,c=L.length,u=t.target;if(c)for(n=t.clientX,r=t.clientY,k=e.vmouse.clickDistanceThreshold,i=u;i;){for(s=0;s<c;
3s++)if(a=L[s],o=0,i===u&&Math.abs(a.x-n)<k&&Math.abs(a.y-r)<k||e.data(i,Q)===a.touchID)return t.preventDefault(),void t.stopPropagation();i=i.parentNode}},!0)}),function(t){"function"==typeof define&&define.amd?define("ns",["jquery"],t):t(e)}(function(e){return e.mobile={version:"@VERSION"},e.mobile}),function(t){"function"==typeof define&&define.amd?define("support/touch",["jquery","../ns"],t):t(e)}(function(e){var t={touch:"ontouchend"in n};return e.mobile.support=e.mobile.support||{},e.extend(e.support,t),e.extend(e.mobile.support,t),e.support}),function(t){"function"==typeof define&&define.amd?define("events/touch",["jquery","../vmouse","../support/touch"],t):t(e)}(function(e){function i(t,n,i,s){var a=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=a}var s=e(n),a=e.mobile.support.touch,o=a?"touchstart":"mousedown",c=a?"touchend":"mouseup",u=a?"touchmove":"mousemove";return e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)}),e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",function(a){function o(){u&&(n.bind("vclick",l),clearTimeout(u))}function c(){o(),n.unbind("vclick",l).unbind("vmouseup",o),s.unbind("vmousecancel",c)}if(r=!1,a.which&&1!==a.which)return!0;var u,l,d=a.target;l=function(e){c(),r||d!==e.target?r&&e.preventDefault():i(t,"tap",e)},n.bind("vmouseup",o),s.bind("vmousecancel",c),u=setTimeout(function(){e.event.special.tap.emitTapOnTaphold||(r=!0),u=0,i(t,"taphold",e.Event("taphold",{target:d}))},e.event.special.tap.tapholdThreshold)})},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),s.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:t.devicePixelRatio>=2?15:30,verticalDistanceThreshold:t.devicePixelRatio>=2?15:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;return 0===e.pageY&&Math.floor(s)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(i)>Math.floor(e.pageX)?(i-=n,s-=r):(s<e.pageY-r||i<e.pageX-n)&&(i=e.pageX-n,
4s=e.pageY-r),{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,s){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
4coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var a=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return i(r,"swipe",e.Event("swipe",{target:s,swipestart:t,swipestop:n}),!0),i(r,a,e.Event(a,{target:s,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),i={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=i,i.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var r,a=e.event.special.swipe.start(t),o=t.target,l=!1;i.move=function(t){a&&!t.isDefaultPrevented()&&(r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(a,r,n,o),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(a.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())},i.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,s.off(u,i.move),i.move=null},s.on(u,i.move).one(c,i.stop)}},r.on(o,i.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(o,n.start),n.move&&s.off(u,n.move),n.stop&&s.off(c,n.stop))}},e.each({taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}}),e.event.special})}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){var t=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(e){return!e||/^\s*$/.test(e)},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isArray:e.isArray,isFunction:e.isFunction,isObject:e.isPlainObject,isUndefined:function(e){return"undefined"==typeof e},isElement:function(e){return!(!e||1!==e.nodeType)},isJQuery:function(t){return t instanceof e},toStr:function(e){return t.isUndefined(e)||null===e?"":e+""},bind:e.proxy,each:function(t,n){function r(e,t){return n(t,e)}e.each(t,r)},map:e.map,filter:e.grep,every:function(t,n){var r=!0;return t?(e.each(t,function(e,i){if(!(r=n.call(null,i,e,t)))return!1}),!!r):r},some:function(t,n){var r=!1;return t?(e.each(t,function(e,i){if(r=n.call(null,i,e,t))return!1}),!!r):r},mixin:e.extend,identity:function(e){return e},clone:function(t){return e.extend(!0,{},t)},getIdGenerator:function(){var e=0;return function(){return e++}},templatify:function(t){function n(){return String(t)}return e.isFunction(t)?t:n},defer:function(e){setTimeout(e,0)},debounce:function(e,t,n){var r,i;return function(){var s,a,o=this,c=arguments;return s=function(){r=null,n||(i=e.apply(o,c))},a=n&&!r,clearTimeout(r),r=setTimeout(s,t),a&&(i=e.apply(o,c)),i}},throttle:function(e,t){var n,r,i,s,a,o;return a=0,o=function(){a=new Date,i=null,s=e.apply(n,r)},function(){var c=new Date,u=t-(c-a);return n=this,r=arguments,u<=0?(clearTimeout(i),i=null,a=c,s=e.apply(n,r)):i||(i=setTimeout(o,u)),s}},stringify:function(e){return t.isString(e)?e:JSON.stringify(e)},guid:function(){function e(e){var t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return"tt-"+e()+e(!0)+e(!0)+e()},noop:function(){}}}(),n=function(){"use strict";function e(e){var a,o;return o=t.mixin({},s,e),a={css:i(),classes:o,html:n(o),selectors:r(o)},{css:a.css,html:a.html,classes:a.classes,selectors:a.selectors,mixin:function(e){t.mixin(e,a)}}}function n(e){return{wrapper:'<span class="'+e.wrapper+'"></span>',menu:'<div role="listbox" class="'+e.menu+'"></div>'}}function r(e){var n={};return t.each(e,function(e,t){n[t]="."+e}),n}function i(){var e={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(e.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),e}var s={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-
4open",cursor:"tt-cursor",highlight:"tt-highlight"};return e}(),r=function(){"use strict";function n(t){t&&t.el||e.error("EventBus initialized without el"),this.$el=e(t.el)}var r,i;return r="typeahead:",i={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(n.prototype,{_trigger:function(t,n){var i=e.Event(r+t);return this.$el.trigger.call(this.$el,i,n||[]),i},before:function(e){var t,n;return t=[].slice.call(arguments,1),n=this._trigger("before"+e,t),n.isDefaultPrevented()},trigger:function(e){var t;this._trigger(e,[].slice.call(arguments,1)),(t=i[e])&&this._trigger(t,[].slice.call(arguments,1))}}),n}(),i=function(){"use strict";function e(e,t,n,r){var i;if(!n)return this;for(t=t.split(c),n=r?o(n,r):n,this._callbacks=this._callbacks||{};i=t.shift();)this._callbacks[i]=this._callbacks[i]||{sync:[],async:[]},this._callbacks[i][e].push(n);return this}function t(t,n,r){return e.call(this,"async",t,n,r)}function n(t,n,r){return e.call(this,"sync",t,n,r)}function r(e){var t;if(!this._callbacks)return this;for(e=e.split(c);t=e.shift();)delete this._callbacks[t];return this}function i(e){var t,n,r,i,a;if(!this._callbacks)return this;for(e=e.split(c),r=[].slice.call(arguments,1);(t=e.shift())&&(n=this._callbacks[t]);)i=s(n.sync,this,[t].concat(r)),a=s(n.async,this,[t].concat(r)),i()&&u(a);return this}function s(e,t,n){function r(){for(var r,i=0,s=e.length;!r&&i<s;i+=1)r=e[i].apply(t,n)===!1;return!r}return r}function a(){var e;return e=window.setImmediate?function(e){setImmediate(function(){e()})}:function(e){setTimeout(function(){e()},0)}}function o(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}var c=/\s+/,u=a();return{onSync:n,onAsync:t,off:r,trigger:i}}(),s=function(e){"use strict";function n(e){return s[e.toUpperCase()]||e}function r(e,r,i,s){for(var a,o=[],c=0,u=e.length;c<u;c++){var l=t.escapeRegExChars(e[c]);s&&(l=l.replace(/\S/g,n)),o.push(l)}return a=i?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",r?new RegExp(a):new RegExp(a,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1,diacriticInsensitive:!1},s={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"};return function(n){function s(t){var r,i,s;return(r=o.exec(t.data))&&(s=e.createElement(n.tagName),n.className&&(s.className=n.className),i=t.splitText(r.index),i.splitText(r[0].length),s.appendChild(i.cloneNode(!0)),t.parentNode.replaceChild(s,i)),!!r}function a(e,t){for(var n,r=3,i=0;i<e.childNodes.length;i++)n=e.childNodes[i],n.nodeType===r?i+=t(n)?1:0:a(n,t)}var o;n=t.mixin({},i,n),n.node&&n.pattern&&(n.pattern=t.isArray(n.pattern)?n.pattern:[n.pattern],o=r(n.pattern,n.caseSensitive,n.wordsOnly,n.diacriticInsensitive),a(n.node,s))}}(window.document),a=function(){"use strict";function n(n,i){n=n||{},n.input||e.error("input is missing"),i.mixin(this),this.$hint=e(n.hint),this.$input
4=e(n.input),this.$input.attr({"aria-activedescendant":"","aria-owns":this.$input.attr("id")+"_listbox",role:"combobox","aria-readonly":"true","aria-autocomplete":"list"}),e(i.menu).attr("id",this.$input.attr("id")+"_listbox"),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=r(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop),this.onSync("cursorchange",this._updateDescendent)}function r(t){return e('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function s(e,t){return n.normalizeQuery(e)===n.normalizeQuery(t)}function a(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}var o;return o={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},n.normalizeQuery=function(e){return t.toStr(e).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(n.prototype,i,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(e){var t=o[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(e,t){var n;switch(e){case"up":case"down":n=!a(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){var n;switch(e){case"tab":n=!a(t);break;default:n=!0}return n},_checkLanguageDirection:function(){var e=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==e&&(this.dir=e,this.$hint.attr("dir",e),this.trigger("langDirChanged",e))},_setQuery:function(e,t){var n,r;n=s(e,this.query),r=!!n&&this.query.length!==e.length,this.query=e,t||n?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},_updateDescendent:function(e,t){this.$input.attr("aria-activedescendant",t)},bind:function(){var e,n,r,i,s=this;return e=t.bind(this._onBlur,this),n=t.bind(this._onFocus,this),r=t.bind(this._onKeydown,this),i=t.bind(this._onInput,this),this.$input.on("blur.tt",e).on("focus.tt",n).on("keydown.tt",r),!t.isMsie()||t.isMsie()>9?this.$input.on("input.tt",i):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(e){o[e.which||e.keyCode]||t.defer(t.bind(s._onInput,s,e))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(e,t){this.setInputValue(e),this._setQuery(e,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(e){this.$input.val(e),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n,r;e=this.getInputValue(),t=this.getHint(),n=e!==t&&0===t.indexOf(e),r=""!==e&&n&&!this.hasOverflow(),!r&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,n,r;return e=this.$input.val().length,n=this.$input[0].selectionStart,t.isNumber(n)?n===e:!document.selection||(r=document.selection.createRange(),r.moveStart("character",-e),e===r.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input
vendor: 15,254 bytes, line 4
4=this.$overflowHelper=e("<div>")}}),n}(),o=function(){"use strict";function n(n,i){n=n||{},n.templates=n.templates||{},n.templates.notFound=n.templates.notFound||n.templates.empty,n.source||e.error("missing source"),n.node||e.error("missing node"),n.name&&!o(n.name)&&e.error("invalid dataset name: "+n.name),i.mixin(this),this.highlight=!!n.highlight,this.name=t.toStr(n.name||u()),this.limit=n.limit||5,this.displayFn=r(n.display||n.displayKey),this.templates=a(n.templates,this.displayFn),this.source=n.source.__ttAdapter?n.source.__ttAdapter():n.source,this.async=t.isUndefined(n.async)?this.source.length>2:!!n.async,this._resetLastSuggestion(),this.$el=e(n.node).attr("role","presentation").addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function r(e){function n(t){return t[e]}return e=e||t.stringify,t.isFunction(e)?e:n}function a(n,r){function i(n){return e('<div role="option">').attr("id",t.guid()).text(r(n))}return{notFound:n.notFound&&t.templatify(n.notFound),pending:n.pending&&t.templatify(n.pending),header:n.header&&t.templatify(n.header),footer:n.footer&&t.templatify(n.footer),suggestion:n.suggestion||i}}function o(e){return/^[_a-zA-Z0-9-]+$/.test(e)}var c,u;return c={dataset:"tt-selectable-dataset",val:"tt-selectable-display",obj:"tt-selectable-object"},u=t.getIdGenerator(),n.extractData=function(t){var n=e(t);return n.data(c.obj)?{dataset:n.data(c.dataset)||"",val:n.data(c.val)||"",obj:n.data(c.obj)||null}:null},t.mixin(n.prototype,i,{_overwrite:function(e,t){t=t||[],t.length?this._renderSuggestions(e,t):this.async&&this.templates.pending?this._renderPending(e):!this.async&&this.templates.notFound?this._renderNotFound(e):this._empty(),this.trigger("rendered",t,!1,this.name)},_append:function(e,t){t=t||[],t.length&&this.$lastSuggestion.length?this._appendSuggestions(e,t):t.length?this._renderSuggestions(e,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(e),this.trigger("rendered",t,!0,this.name)},_renderSuggestions:function(e,t){var n;n=this._getSuggestionsFragment(e,t),this.$lastSuggestion=n.children().last(),this.$el.html(n).prepend(this._getHeader(e,t)).append(this._getFooter(e,t))},_appendSuggestions:function(e,t){var n,r;n=this._getSuggestionsFragment(e,t),r=n.children().last(),this.$lastSuggestion.after(n),this.$lastSuggestion=r},_renderPending:function(e){var t=this.templates.pending;this._resetLastSuggestion(),t&&this.$el.html(t({query:e,dataset:this.name}))},_renderNotFound:function(e){var t=this.templates.notFound;this._resetLastSuggestion(),t&&this.$el.html(t({query:e,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(n,r){var i,a=this;return i=document.createDocumentFragment(),t.each(r,function(t){var r,s;s=a._injectQuery(n,t),r=e(a.templates.suggestion(s)).data(c.dataset,a.name).data(c.obj,t).data(c.val,a.displayFn(t)).addClass(a.classes.suggestion+" "+a.classes.selectable),i.appendChild(r[0])}),this.highlight&&s({className:this.classes.highlight,node:i,pattern:n}),e(i)},_getFooter:function(e,t){return this.templates.footer?this.templates.footer({query:e,suggestions:t,dataset:this.name}):null},_getHeader:function(e,t){return this.templates.header?this.templates.header({query:e,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=e()},_injectQuery:function(e,n){return t.isObject(n)?t.mixin({_query:e},n):n},update:function(t){function n(e){a||(a=!0,e=(e||[]).slice(0,i.limit),o=e.length,i._overwrite(t,e),o<i.limit&&i.async&&i.trigger("asyncRequested",t,i.name))}function r(n){if(n=n||[],!s&&o<i.limit){i.cancel=e.noop;var r=Math.abs(o-i.limit);o+=r,i._append(t,n.slice(0,r)),i.async&&i.trigger("asyncReceived",t,i.name)}}var i=this,s=!1,a=!1,o=0;this.cancel(),this.cancel=function(){s=!0,i.cancel=e.noop,i.async&&i.trigger("asyncCanceled",t,i.name)},this.source(t,n,r),!a&&n([])},cancel:e.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=e("<div>")}}),n}(),c=function(){"use strict";function n(n,r){function i(t){var n=s.$node.find(t.node).first();return t.node=n.length?n:e("<div>").appendTo(s.$node),new o(t,r)}var s=this;n=n||{},n.node||e.error("node is required"),r.mixin(this),this.$node=e(n.node),this.query=null,this.datasets=t.map(n.datasets,i)}return t.mixin(n.prototype,i,{_onSelectableClick:function(t){this.trigger("selectableClicked",e(t.currentTarget))},_onRendered:function(e,t,n,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",t,n,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return t.every(this.datasets,t.bind(function(e){var t=e.isEmpty();return this.$node.attr("aria-expanded",!t),t},this))},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var e=this.getActiveSelectable();e&&e.removeClass(this.classes.cursor)},_ensureVisible:function(e){var t,n,r,i;t=e.position().top,n=t+e.outerHeight(!0),r=this.$node.scrollTop(),i=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),t<0?this.$node.scrollTop(r+t):i<n&&this.$node.scrollTop(r+(n-i))},bind:function(){var n,r=this;return n=t.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,n),this.$node.on("mouseover",this.selectors.selectable,function(){r.setCursor(e(this))}),this.$node.on("mouseleave",function(){r._removeCursor()}),t.each(this.datasets,function(e){e.onSync("asyncRequested",r._propagate,r).onSync("asyncCanceled",r._propagate,r).onSync("asyncReceived",r._propagate,r).onSync("rendered",r._onRendered,r).onSync("cleared",r._onCleared,r)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.scrollTop(0),this.$node.addClass(this.classes.open)},close:function(){this.$node.attr("aria-expanded",!1),this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(e){this.$node.attr("dir",e)},selectableRelativeToCursor:function(e){var t,n,r,i;return n=this.getActiveSelectable(),t=this._getSelectables(),r=n?t.index(n):-1,i=r+e,i=(i+1)%(t.length+1)-1,i=i<-1?t.length-1:i,i===-1?null:t.eq(i)},setCursor:function(e){this._removeCursor(),(e=e&&e.first())&&(e.addClass(this.classes.cursor),this._ensureVisible(e))},getSelectableData:function(e){return e&&e.length?o.extractData(e):null},getActiveSelectable:function(){var e=this._getSelectables().filter(this.selectors.cursor).first();return e.length?e:null},getTopSelectable:function(){var e=this._getSelectables().first();return e.length?e:null},update:function(e){function n(t){t.update(e)}var r=e!==this.query;return r&&(this.query=e,t.each(this.datasets,n)),r},empty:function(){function e(e){e.clear()}t.each(this.datasets,e),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function n(e){e.destroy()}this.$node.off(".tt"),this.$node=e("<div>"),t.each(this.datasets,n)}}),n}(),u=function(){"use strict";function n(n){this.$el=e("<span></span>",{role:"status","aria-live":"polite"}).css({position:"absolute",padding:"0",border:"0",height:"1px",width:"1px","margin-bottom":"-1px","margin-right":"-1px",overflow:"hidden",clip:"rect(0 0 0 0)","white-space":"nowrap"}),n.$input.after(this.$el),t.each(n.menu.datasets,t.bind(function(e){e.onSync&&(e.onSync("rendered",t.bind(this.update,this)),e.onSync("cleared",t.bind(this.cleared,this)))},this))}return t.mixin(n.prototype,{update:function(e,t){var n,r=t.length;n=1===r?{result:"result",is:"is"}:{result:"results",is:"are"},this.$el.text(r+" "+n.result+" "+n.is+" available, use up and down arrow keys to navigate.")},cleared:function(){this.$el.text("")}}),n}(),l=function(){"use strict";function e(){c.apply(this,[].slice.call(arguments,0))}var n=c.prototype;return t.mixin(e.prototype,c.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(e){return this.$node.css("ltr"===e?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),e}(),d=function(){"use strict";function n(n,i){var s,a,o,c,u,l,d,p,h,f,m;n=n||{},n.input||e.error("missing input"),n.menu||e.error("missing menu"),n.eventBus||e.error("missing event bus"),i.mixin(this),this.eventBus=n.eventBus,this.minLength=t.isNumber(n.minLength)?n.minLength:1,this.input=n.input,this.menu=n.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),s=r(this,"activate","open","_onFocused"),a=r(this,"deactivate","_onBlurred"),o=r(this,"isActive","isOpen","_onEnterKeyed"),c=r(this,"isActive","isOpen","_onTabKeyed"),u=r(this,"isActive","_onEscKeyed"),l=r(this,"isActive","open","_onUpKeyed"),d=r(this,"isActive","open","_onDownKeyed"),p=r(this,"isActive","isOpen","_onLeftKeyed"),h=r(this,"isActive","isOpen","_onRightKeyed"),f=r(this,"_openIfActive","_onQueryChanged"),m=r(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",s,this).onSync("blurred",a,this).onSync("enterKeyed",o,this).onSync("tabKeyed",c,this).onSync("escKeyed",u,this).onSync("upKeyed",l,this).onSync("downKeyed",d,this).onSync("leftKeyed",p,this).onSync("rightKeyed",h,this).onSync("queryChanged",f,this).onSync("whitespaceChanged",m,this).onSync("langDirChanged",this._onLangDirChanged,this)}function r(e){var n=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(n,function(t){return e[t].apply(e,r)})}}return t.mixin(n.prototype,{_hacks:function(){var n,r;n=this.input.$input||e("<div>"),r=this.menu.$node||e("<div>"),n.on("blur.tt",function(e){var i,s,a;i=document.activeElement,s=r.is(i),a=r.has(i).length>0,t.isMsie()&&(s||a)&&(e.preventDefault(),e.stopImmediatePropagation(),t.defer(function(){n.focus()}))}),r.on("mousedown.tt",function(e){e.preventDefault()})},_onSelectableClicked:function(e,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(e,t,n,r){this._updateHint(),this.eventBus.trigger("render",t,n,r)},_onAsyncRequested:function(e,t,n){this.eventBus.trigger("asyncrequest",n,t)},_onAsyncCanceled:function(e,t,n){this.eventBus.trigger("asynccancel",n,t)},_onAsyncReceived:function(e,t,n){this.eventBus.trigger("asyncreceive",n,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(e,t){var n;(n=this.menu.getActiveSelectable())&&this.select(n)&&(t.preventDefault(),t.stopPropagation())},_onTabKeyed:function(e,t){var n;(n=this.menu.getActiveSelectable())?this.select(n)&&t.preventDefault():(n=this.menu.getTopSelectable())&&this.autocomplete(n)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onQueryChanged:function(e,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(e,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(e){return e=t.isString(e)?e:this.input.getQuery()||"",e.length>=this.minLength},_updateHint:function(){var e,n,r,i,s,o,c;e=this.menu.getTopSelectable(),n=this.menu.getSelectableData(e),r=this.input.getInputValue(),!n||t.isBlankString(r)||this.input.hasOverflow()?this.input.clearHint():(i=a.normalizeQuery(r),s=t.escapeRegExChars(i),o=new RegExp("^(?:"+s+")(.+$)","i"),c=o.exec(n.val),c&&this.input.setHint(r+c[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(e){this.input.setQuery(t.toStr(e))},getVal:function(){return this.input.getQuery()},select:function(e){var t=this.menu.getSelectableData(e);return!(!t||this.eventBus.before("select",t.obj,t.dataset))&&(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj,t.dataset),this.close(),!0)},autocomplete:function(e){var t,n,r;return t=this.input.getQuery(),n=this.menu.getSelectableData(e),r=n&&t!==n.val,!(!r||this.eventBus.before("autocomplete",n.obj,n.dataset))&&(this.input.setQuery(n.val),this.eventBus.trigger("autocomplete",n.obj,n.dataset),!0)},moveCursor:function(e){var t,n,r,i,s,a,o;return t=this.input.getQuery(),n=this.menu.selectableRelativeToCursor(e),r=this.menu.getSelectableData(n),i=r?r.obj:null,s=r?r.dataset:null,o=n?n.attr("id"):null,this.input.trigger("cursorchange",o),a=this._minLengthMet()&&this.menu.update(t),!a&&!this.eventBus.before("cursorchange",i,s)&&(this.menu.setCursor(n),r?this.input.setInputValue(r.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",i,s),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),n}();!function(){"use strict";function i(t,n){t.each(function(){var t,r=e(this);(t=r.data(g.typeahead))&&n(t,r)})}function s(e,t){return e.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(e)).prop("readonly",!0).removeAttr("id n
4ame placeholder required").attr({spellcheck:"false",tabindex:-1})}function o(e,t){e.data(g.attrs,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")}),e.addClass(t.classes.input).attr({spellcheck:!1});try{!e.attr("dir")&&e.attr("dir","auto")}catch(n){}return e}function p(e){return{backgroundAttachment:e.css("background-attachment"),backgroundClip:e.css("background-clip"),backgroundColor:e.css("background-color"),backgroundImage:e.css("background-image"),backgroundOrigin:e.css("background-origin"),backgroundPosition:e.css("background-position"),backgroundRepeat:e.css("background-repeat"),backgroundSize:e.css("background-size")}}function h(e){var n,r;n=e.data(g.www),r=e.parent().filter(n.selectors.wrapper),t.each(e.data(g.attrs),function(n,r){t.isUndefined(n)?e.removeAttr(r):e.attr(r,n)}),e.removeData(g.typeahead).removeData(g.www).removeData(g.attr).removeClass(n.classes.input),r.length&&(e.detach().insertAfter(r),r.remove())}function f(n){var r,i;return r=t.isJQuery(n)||t.isElement(n),i=r?e(n).first():[],i.length?i:null}var m,g,v;m=e.fn.typeahead,g={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},v={initialize:function(i,p){function h(){var n,h,v,y,j,b,w,k,C,T,Q,E;t.each(p,function(e){e.highlight=!!i.highlight}),n=e(this),h=e(m.html.wrapper),v=f(i.hint),y=f(i.menu),j=i.hint!==!1&&!v,b=i.menu!==!1&&!y,j&&(v=s(n,m)),b&&(y=e(m.html.menu).css(m.css.menu)),v&&v.val(""),n=o(n,m),(j||b)&&(h.css(m.css.wrapper),n.css(j?m.css.input:m.css.inputWithNoHint),n.wrap(h).parent().prepend(j?v:null).append(b?y:null)),E=b?l:c,w=new r({el:n}),k=new a({hint:v,input:n},m),C=new E({node:y,datasets:p},m),T=new u({$input:n,menu:C}),Q=new d({input:k,menu:C,eventBus:w,minLength:i.minLength},m),n.data(g.www,m),n.data(g.typeahead,Q)}var m;return p=t.isArray(p)?p:[].slice.call(arguments,1),i=i||{},m=n(i.classNames),this.each(h)},isEnabled:function(){var e;return i(this.first(),function(t){e=t.isEnabled()}),e},enable:function(){return i(this,function(e){e.enable()}),this},disable:function(){return i(this,function(e){e.disable()}),this},isActive:function(){var e;return i(this.first(),function(t){e=t.isActive()}),e},activate:function(){return i(this,function(e){e.activate()}),this},deactivate:function(){return i(this,function(e){e.deactivate()}),this},isOpen:function(){var e;return i(this.first(),function(t){e=t.isOpen()}),e},open:function(){return i(this,function(e){e.open()}),this},close:function(){return i(this,function(e){e.close()}),this},select:function(t){var n=!1,r=e(t);return i(this.first(),function(e){n=e.select(r)}),n},autocomplete:function(t){var n=!1,r=e(t);return i(this.first(),function(e){n=e.autocomplete(r)}),n},moveCursor:function(e){var t=!1;return i(this.first(),function(n){t=n.moveCursor(e)}),t},val:function(e){var n;return arguments.length?(i(this,function(n){n.setVal(t.toStr(e))}),this):(i(this.first(),function(e){n=e.getVal()}),n)},destroy:function(){return i(this,function(e,t){h(t),e.destroy()}),this}},e.fn.typeahead=function(e){return v[e]?v[e].apply(this,[].slice.call(arguments,1)):v.initialize.apply(this,arguments)},e.fn.typeahead.noConflict=function(){return e.fn.typeahead=m,this}}()}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){var t=!1;return function(){t||(t=!0,Promise.resolve().then(function(){
5t=!1,e()}))}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}}function n(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function r(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return window.document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=r(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/(auto|scroll)/.test(n+o+a)?e:s(i(e))}function a(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?["TD","TABLE"].indexOf(t.nodeName)!==-1&&"static"===r(t,"position")?a(t):t:e?e.ownerDocument.documentElement:window.document.documentElement}function o(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||a(e.firstElementChild)===e)}function c(e){return null!==e.parentNode?c(e.parentNode):e}function u(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var l=s.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return o(l)?l:a(l);var d=c(e);return d.host?u(d.host,t):u(e,c(t).host)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=l(t,"top"),i=l(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function p(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+r+"Width"].split("px")[0]}function h(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],pe()?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function f(){var e=window.document.body,t=window.document.documentElement,n=pe()&&window.getComputedStyle(t);return{height:h("Height",e,t,n),width:h("Width",e,t,n)}}function m(e){return ge({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var t={};if(pe())try{t=e.getBoundingClientRect();var n=l(e,"top"),i=l(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(s){}else t=e.getBoundingClientRect();var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
5,o="HTML"===e.nodeName?f():{},c=o.width||e.clientWidth||a.right-a.left,u=o.height||e.clientHeight||a.bottom-a.top,d=e.offsetWidth-c,h=e.offsetHeight-u;if(d||h){var g=r(e);d-=p(g,"x"),h-=p(g,"y"),a.width-=d,a.height-=h}return m(a)}function v(e,t){var n=pe(),i="HTML"===t.nodeName,a=g(e),o=g(t),c=s(e),u=r(t),l=+u.borderTopWidth.split("px")[0],p=+u.borderLeftWidth.split("px")[0],h=m({top:a.top-o.top-l,left:a.left-o.left-p,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!n&&i){var f=+u.marginTop.split("px")[0],v=+u.marginLeft.split("px")[0];h.top-=l-f,h.bottom-=l-f,h.left-=p-v,h.right-=p-v,h.marginTop=f,h.marginLeft=v}return(n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(h=d(h,t)),h}function y(e){var t=e.ownerDocument.documentElement,n=v(e,t),r=Math.max(t.clientWidth,window.innerWidth||0),i=Math.max(t.clientHeight,window.innerHeight||0),s=l(t),a=l(t,"left"),o={top:s-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:r,height:i};return m(o)}function j(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===r(e,"position")||j(i(e)))}function b(e,t,n,r){var a={top:0,left:0},o=u(e,t);if("viewport"===r)a=y(o);else{var c=void 0;"scrollParent"===r?(c=s(i(e)),"BODY"===c.nodeName&&(c=e.ownerDocument.documentElement)):c="window"===r?e.ownerDocument.documentElement:r;var l=v(c,o);if("HTML"!==c.nodeName||j(o))a=l;else{var d=f(),p=d.height,h=d.width;a.top+=l.top-l.marginTop,a.bottom=p+l.top,a.left+=l.left-l.marginLeft,a.right=h+l.left}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function w(e){var t=e.width,n=e.height;return t*n}function k(e,t,n,r,i){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=b(n,r,s,i),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(o).map(function(e){return ge({key:e},o[e],{area:w(o[e])})}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=u.length>0?u[0].key:c[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function C(e,t,n){var r=u(t,n);return v(n,r)}function T(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),i={width:e.offsetWidth+r,height:e.offsetHeight+n};return i}function Q(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function E(e,t,n){n=n.split("-")[0];var r=T(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,a=s?"top":"left",o=s?"left":"top",c=s?"height":"width",u=s?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===o?i[o]=t[o]-r[u]:i[o]=t[Q(o)],i}function x(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function _(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=x(e,function(e){return e[t]===n});return e.indexOf(r)}function S(e,t,r){var i=void 0===r?e:e.slice(0,_(e,"name",r));return i.forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e["function"]||e.fn;e.enabled&&n(r)&&(t.offsets.popper=m(t.offsets.popper),t.offsets.reference=m(t.offsets.reference),t=r(t,e))}),t}function A(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference),e.placement=k(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=E(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function D(e,t){return e.some(function(e){var n=e.name,r=e.enabled;return r&&n===t})}function I(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var i=t[r],s=i?""+i+n:e;if("undefined"!=typeof window.document.body.style[s])return s}return null}function O(){return this.state.isDestroyed=!0,D(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function P(e,t,n,r){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||P(s(a.parentNode),t,n,r),r.push(a)}function L(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var i=s(e);return P(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function N(){this.state.eventsEnabled||(this.state=L(this.reference,this.options,this.state,this.scheduleUpdate))}function H(e,t){return q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
5h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function $(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=H(this.reference,this.state))}function R(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function M(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&R(t[n])&&(r="px"),e.style[n]=t[n]+r})}function F(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function B(e){return M(e.instance.popper,e.styles),F(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&M(e.arrowElement,e.arrowStyles),e}function U(e,t,n,r,i){var s=C(i,t,e),a=k(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),M(t,{position:"absolute"}),n}function W(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=x(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==s?s:t.gpuAcceleration,c=a(e.instance.popper),u=g(c),l={position:i.position},d={left:Math.floor(i.left),top:Math.floor(i.top),bottom:Math.floor(i.bottom),right:Math.floor(i.right)},p="bottom"===n?"top":"bottom",h="right"===r?"left":"right",f=I("transform"),m=void 0,v=void 0;if(v="bottom"===p?-u.height+d.bottom:d.top,m="right"===h?-u.width+d.right:d.left,o&&f)l[f]="translate3d("+m+"px, "+v+"px, 0)",l[p]=0,l[h]=0,l.willChange="transform";else{var y="bottom"===p?-1:1,j="right"===h?-1:1;l[p]=v*y,l[h]=m*j,l.willChange=p+", "+h}var b={"x-placement":e.placement};return e.attributes=ge({},b,e.attributes),e.styles=ge({},l,e.styles),e.arrowStyles=ge({},e.offsets.arrow,e.arrowStyles),e}function V(e,t,n){var r=x(e,function(e){var n=e.name;return n===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var s="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function X(e,t){if(!V(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,a=s.popper,o=s.reference,c=["left","right"].indexOf(i)!==-1,u=c?"height":"width",l=c?"Top":"Left",d=l.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",f=T(n)[u];o[h]-f<a[d]&&(e.offsets.popper[d]-=a[d]-(o[h]-f)),o[d]+f>a[h]&&(e.offsets.popper[d]+=o[d]+f-a[h]);var g=o[d]+o[u]/2-f/2,v=r(e.instance.popper,"margin"+l).replace("px",""),y=g-m(e.offsets.popper)[d]-v;return y=Math.max(Math.min(a[u]-f,y),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[d]=Math.round(y),e.offsets.arrow[p]="",e}function G(e){return"end"===e?"start":"start"===e?"end":e}function z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ye.indexOf(e),r=ye.slice(n+1).concat(ye.slice(0,n));return t?r.reverse():r}function K(e,t){if(D(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=b(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),r=e.placement.split("-")[0],i=Q(r),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case je.FLIP:a=[r,i];break;case je.CLOCKWISE:a=z(r);break;case je.COUNTERCLOCKWISE:a=z(r,!0);break;default:a=t.behavior}return a.forEach(function(o,c){if(r!==o||a.length===c+1)return e;r=e.placement.split("-")[0],i=Q(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,p="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)<d(l.right)||"top"===r&&d(u.bottom)>d(l.top)||"bottom"===r&&d(u.top)<d(l.bottom),h=d(u.left)<d(n.left),f=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>
5d(n.bottom),v="left"===r&&h||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,y=["top","bottom"].indexOf(r)!==-1,j=!!t.flipVariations&&(y&&"start"===s&&h||y&&"end"===s&&f||!y&&"start"===s&&m||!y&&"end"===s&&g);(p||v||j)&&(e.flipped=!0,(p||v)&&(r=a[c+1]),j&&(s=G(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=ge({},e.offsets.popper,E(e.instance.popper,e.offsets.reference,e.placement)),e=S(e.instance.modifiers,e,"flip"))}),e}function Y(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(i)!==-1,o=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[o]<s(r[c])&&(e.offsets.popper[c]=s(r[c])-n[u]),n[c]>s(r[o])&&(e.offsets.popper[c]=s(r[o])),e}function Z(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],a=i[2];if(!s)return e;if(0===a.indexOf("%")){var o=void 0;switch(a){case"%p":o=n;break;case"%":case"%r":default:o=r}var c=m(o);return c[t]/100*s}if("vh"===a||"vw"===a){var u=void 0;return u="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*s}return s}function J(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),o=a.indexOf(x(a,function(e){return e.search(/,|\s/)!==-1}));a[o]&&a[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=o!==-1?[a.slice(0,o).concat([a[o].split(c)[0]]),[a[o].split(c)[1]].concat(a.slice(o+1))]:[a];return u=u.map(function(e,r){var i=(1===r?!s:s)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&["+","-"].indexOf(t)!==-1?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return Z(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){R(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function ee(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,o=r.split("-")[0],c=void 0;return c=R(+n)?[+n,0]:J(n,s,a,o),"left"===o?(s.top+=c[0],s.left-=c[1]):"right"===o?(s.top+=c[0],s.left+=c[1]):"top"===o?(s.left+=c[0],s.top-=c[1]):"bottom"===o&&(s.left+=c[0],s.top+=c[1]),e.popper=s,e}function te(e,t){var n=t.boundariesElement||a(e.instance.popper);e.instance.reference===n&&(n=a(n));var r=b(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=r;var i=t.priority,s=e.offsets.popper,o={primary:function(e){var n=s[e];return s[e]<r[e]&&!t.escapeWithReference&&(n=Math.max(s[e],r[e])),me({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=s[n];return s[e]>r[e]&&!t.escapeWithReference&&(i=Math.min(s[n],r[e]-("right"===e?s.width:s.height))),me({},n,i)}};return i.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";s=ge({},s,o[t](e))}),e.offsets.popper=s,e}function ne(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,a=i.popper,o=["bottom","top"].indexOf(n)!==-1,c=o?"left":"top",u=o?"width":"height",l={start:me({},c,s[c]),end:me({},c,s[c]+s[u]-a[u])};e.offsets.popper=ge({},a,l[r])}return e}function re(e){if(!V(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=x(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ie(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,a=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=s[n]-(o?i[a?"width":"height"]:0),e.placement=Q(t),e.offsets.popper=m(i),e}for(var se="undefined"!=typeof window&&"undefined"!=typeof window.document,ae=["Edge","Trident","Firefox"],oe=0,ce=0;ce<ae.length;ce+=1)if(se&&navigator.userAgent.indexOf(ae[ce])>=0){oe=1;break}var ue=se&&window.Promise,le=ue?e:t,de=void 0,pe=function(){return void 0===de&&(de=navigator.appVersion.indexOf("MSIE 10")!==-1),de},he=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},fe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),me=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}
5,ve=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ye=ve.slice(3),je={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},be={shift:{order:100,enabled:!0,fn:ne},offset:{order:200,enabled:!0,fn:ee,offset:0},preventOverflow:{order:300,enabled:!0,fn:te,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Y},arrow:{order:500,enabled:!0,fn:X,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:K,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ie},hide:{order:800,enabled:!0,fn:re},computeStyle:{order:850,enabled:!0,fn:W,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:B,onLoad:U,gpuAcceleration:void 0}},we={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:be},ke=function(){function e(t,r){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};he(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=le(this.update.bind(this)),this.options=ge({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ge({},e.Defaults.modifiers,s.modifiers)).forEach(function(t){i.options.modifiers[t]=ge({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ge({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&n(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return fe(e,[{key:"update",value:function(){return A.call(this)}},{key:"destroy",value:function(){return O.call(this)}},{key:"enableEventListeners",value:function(){return N.call(this)}},{key:"disableEventListeners",value:function(){return $.call(this)}}]),e}();return ke.Utils=("undefined"!=typeof window?window:global).PopperUtils,ke.placements=ve,ke.Defaults=we,ke});var e4=e4||{};!function(){"use strict";e4.settings={lang:function(){return jQuery("html").attr("lang")}(),animation:{speed:375},nav:{autoHideTolerance:{up:25,down:"auto"},revealActive:{delay:400,speed:.75,easing:"swing"},flagCDN:"https://cdn.jsdelivr.net/npm/[email protected]/flags/1x1/"},parallax:{speed:-.35},scrollReveal:{selector:".js-e-scroll-reveal .e-section",classAnimateInOnLoad:"animate-in-on-load",classAnimateInOnScroll:"animate-in-on-scroll",classResetAnimate:"reset-animate"},scrollToAnchor:{speed:.5,nudge:2,easing:"swing",stickyElements:".js-e-header.is-sticky, .js-e-nav-local-horizontal.is-sticky",fullscreenElements:".p-section-fullscreen, .p-banner-fullscreen",backToTop:{revealOffset:3}},forms:{validate:{messages:{da:{required:"Skal udfyldes."}}}},search:{delay:{min:100,max:1e3},result:{pages:{show:!0,url:"/system/data/search?q="},products:{show:!0,url:"/system/data/products?q=",showAllLink:"/shop/search?q=",max:{xs:2,sm:3,md:4,lg:5,xl:5}}}},require:{timeout:2e3,jQueryValidate:{isLoaded:function(){return void 0!==window.jQuery.fn.validate},url:"//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js",fallback:"/files/system/espresso/design/_assets/js/vendor/jquery.validate.min.js",callback:null},handlebars:{isLoaded:function(){return void 0!==window.Handlebars},url:"//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js",fallback:"/files/system/espresso/design/_assets/js/vendor/handlebars.min.js",callback:null},MarkerClusterer:{isLoaded:function(){return void 0!==window.MarkerClusterer},url:"//cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer_compiled.js",fallback:"/files/system/espresso/design/_assets/js/vendor/markerclusterer_compiled.js",callback:null},jQueryUImap:{isLoaded:function(){return void 0!==window.jQuery.fn.gmap},url:"//cdnjs.cloudflare.com/ajax/libs/jquery-ui-map/3.0-rc1/min/jquery.ui.map.min.js",fallback:"/files/system/espresso/design/_assets/js/vendor/jquery.ui.map.min.js",callback:null},typeahead:{isLoaded:function(){return void 0!==window.jQuery.fn.typeahead},url:"//cdnjs.cloudflare.com/ajax/libs/corejs-typeahead/1.1.1/typeahead.jquery.min.js",fallback:"/files/system/espresso/design/_assets/js/vendor/typeahead.jquery.min.js",callback:null},drawSVG:{isLoaded:function(){return void 0!==window.jQuery.fn.drawSVG},url:"https://cdn.jsdelivr.net/jquery.drawsvg/1.1.0/jquery.drawsvg.min.js",fallback:"/files/system/espresso/design/_assets/js/vendor/jquery.drawsvg.min.js",callback:null}},ecom:{filters:{url:"/system/data/facets",delay:350,cleanUrl:!1},cart:{url:"/system/data/cart",confirmMsgHideDelay:1e4,updateOrderlineDelay:500},checkout:{url:"/system/data/checkout",delay:500,multipageBreakpoint:"lg",shipping:{searchCount:99},termsAndConditions:"/shop/terms-and-conditions"}},breakpoint:{xs:0,sm:544,md:768,lg:922,xl:1200},collapse:{peekSizeMin:1.5},dealersearch:{geolocation:!0,zoom:{min:12,max:15,initial:6},results:{min:2,sensitivity:.5},country:{DK:{center:{lat:56.26392,lng:9.501785}
5,zoom:7},NO:{center:{lat:60.47202399999999,lng:8.468945999999999},zoom:6},SE:{center:{lat:60.12816100000001,lng:18.643501},zoom:5},DE:{center:{lat:51.165691,lng:10.451526},zoom:6},GB:{center:{lat:55.378051,lng:-3.435973},zoom:4}}},event:{namespace:"e4",transitionend:function(e){var t={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"MSTransitionEnd",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n];return e.nodeName}(document.createElement("espresso")),animationend:function(e){var t={animation:"animationend",OAnimation:"oAnimationEnd",MSAnimation:"MSAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var n in t)if(void 0!==e.style[n])return t[n];return e.nodeName}(document.createElement("espresso"))},cookieAcceptLink:"/admin/public/CookieOptInLevelConfig.aspx?cmd=SetCookieOptInLevel&OptInLevel=2"}}(),function(){"use strict";jQuery.extend(!0,e4.settings,{search:{debounceDelay:250,result:{pages:{show:function(){return"True"===jQuery("html").data("search-pages")}()},products:{show:function(){return"True"===jQuery("html").data("search-products")}(),showAllLink:"#",max:{xs:3,sm:3,md:6,lg:6,xl:6}}},videos:{url:"system/data/videos"},faq:{url:"system/data/faq"},therapyareas:{url:"system/data/therapyareas"},premiumpages:{url:"system/data/premiumpages"},supportmaterials:{url:"system/data/supportMaterials"},elearning:{url:"system/data/elearning"},events:{url:"system/data/events"},news:{url:"system/data/news"},salesContacts:{url:"/system/data/contacts"},typeahead:{url:"/system/data/typeahead"},reports:{url:"/system/data/reports"}},ecom:{product:{details:{url:"system/data/ProductRelatedDetails"}}},parallax:{speed:-.35},maps:{zoom:{min:12,max:15,initial:2},center:{initialLat:0,initialLng:0}}})}(),e4.util={init:function(){e4.util.catchInternalBackLinks(),e4.util.catchBlockLinks()},isInViewport:function(e){var t=e.get(0),n=t.getBoundingClientRect();return n.top<window.innerHeight&&n.bottom>0},require:{ajax:function(e){return void 0!==e&&null!==e&&""!==e?jQuery.ajax({url:e,cache:!0,timeout:e4.settings.require.timeout,dataType:"script"}):jQuery.Deferred().reject()},js:function(e,t,n){return void 0!==e.promise&&"rejected"!==e.promise.state()||(e.promise=jQuery.when(e4.util.require.ajax(e.url)).then(null,function(){return e4.util.require.ajax(e.fallback)}).then(function(){"function"==typeof e.callback&&e.callback.apply(e)},null)),"function"==typeof t&&e.promise.done(function(){t.apply(window,n)}),e.promise}},registerEvents:function(e,t){var n={},r=[e4.settings.event.namespace,t].join(".");return jQuery.each(e.split(" "),function(e,t){n[t]=[t,r].join(".")}),n},debounce:function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},catchInternalBackLinks:function(){jQuery(document).on("click",".js-e-back-link",function(e){0===document.referrer.indexOf(location.protocol+"//"+location.host)&&1!==history.length&&(e.preventDefault(),history.back())})},catchBlockLinks:function(){jQuery(document).on("click",".js-e-block-link",function(e){var t=jQuery(this).find("a[href]").first();1===t.length&&0===jQuery(e.target).closest("a[href], form").length&&("_blank"===t.attr("target")?window.open(t.attr("href")):location.href=t.attr("href"))})},getBreakPoint:function(){var e=Math.max(jQuery(window).width(),window.innerWidth);return e>=e4.settings.breakpoint.xs&&e<e4.settings.breakpoint.sm?"xs":e>=e4.settings.breakpoint.sm&&e<e4.settings.breakpoint.md?"sm":e>=e4.settings.breakpoint.md&&e<e4.settings.breakpoint.lg?"md":e>=e4.settings.breakpoint.lg&&e<e4.settings.breakpoint.xl?"lg":e>=e4.settings.breakpoint.xl?"xl":null},hash:{get:function(e){var t,n=[];0===location.hash.indexOf("#/")&&location.hash.lastIndexOf("/")===location.hash.length-1&&(n=location.hash.substring(2,location.hash.length-1).split("&")),void 0===e?t={}:e=e4.util.hash.decode.key(e4.util.hash.encode.key(e));for(var r=0;r<n.length;r++)try{var i=n[r].split("="),s=e4.util.hash.decode.key(i[0]),a=e4.util.hash.decode.value(i.slice(1).join("="));if(e===s){t=a;break}void 0===e&&(t[s]=a)}catch(o){}return t},set:function(e,t){var n=e4.util.hash.buildNewHashArray(e,t),r=e4.util.hash.buildNewHashString(n);e4.util.hash.getCurrentHashStringValue()!==r&&(location.hash=r)},replace:function(e,t){var n=e4.util.hash.buildNewHashArray(e,t),r=e4.util.hash.buildNewHashString(n),i=e4.util.hash.getCurrentHashStringValue(),s=location.href;i!==r&&(s=location.href.indexOf("#")===-1?s+"#"+r:s.replace("#"+i,"#"+r),window.history.replaceState(null,"",s),jQuery(window).triggerHandler("hashchange"))},remove:function(e){e4.util.hash.set(e,null)},buildNewHashArray:function(e,t){var n=[],r=!1;return e=e4.util.hash.encode.key(e),jQuery.each(e4.util.hash.get(),function(i,s){i=e4.util.hash.encode.key(i),s=e4.util.hash.encode.value(s),i===e?(r=!0,null!==t&&(s=e4.util.hash.encode.value(t),n.push(i+"="+s))):n.push(i+"="+s)}),r===!1&&null!==t&&n.push(e+"="+e4.util.hash.encode.value(t)),n},buildNewHashString:function(e){var t="";return 0!==e.length&&(t="/"+e.join("&")+"/"),t},getCurrentHashStringValue:function(){return location.hash.replace(/^#/,"")},encode:{key:function(e){return encodeURIComponent(String(e).replace(/\s/g,"_"))},value:function(e){if("{"===String(e).charAt(0)||"object"==typeof e)try{e=JSON.stringify(e)}catch(t){}return void 0===e?"":encodeURIComponent(e)}},decode:{key:function(e){return decodeURIComponent(e)},value:function(e){if(e=decodeURIComponent(e),"{"===e.charAt(0))try{e=JSON.parse(e)}catch(t){}return e}}}},e4.handlebars={tmpl:{},registerTemplates:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)if(1===jQuery(t[n]).length){var r=t[n].replace("#js-e-handlebars-tmpl-","").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});e4.handlebars.tmpl[r]=Handlebars.compile(jQuery(t[n]).html())}},partial:{},registerPartials:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)if(1===jQuery(t[n]).length){var r=t[n].replace("#js-e-handlebars-partial-","").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});Handlebars.registerPartial(r,jQuery(t[n]).html()),e4.handlebars.partial[r]=Handlebars.compile(jQuery(t[n]).html())}},registerHelpers:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)void 0===window.Handlebars.helpers[t[n]]&&e4.handlebars.helpers[t[n]]()},helpers:{compare:function(){Handlebars.registerHelper("compare",function(e,t,n,r){switch(t){case"===":return e===n?r.fn(this):r.inverse(this);case"!==":return e!==n?r.fn(this):r.inverse(this);case"<":return e<n?r.fn(this):r.inverse(this);case"<=":return e<=n?r.fn(this):r.inverse(this);case">":return e>n?r.fn(this):r.inverse(this);case">=":return e>=n?r.fn(this):r.inverse(this);case"&&":return e&&n?r.fn(this):r.inverse(this);case"||":return e||n?r.fn(this):r.inverse(this);case"!!":return e||n?r.inverse(this):r.fn(this);case"!|":return!e&&n?r.fn(this):r.inverse(this);case"|!":return e&&!n?r.fn(this):r.inverse(this);default:return r.inverse(this)}})},counter:function(){Handlebars.registerHelper("counter",function(e){return e+1})},loop:function(){Handlebars.registerHelper("loop",function(e,t){for(var n="",r=0,i=e.length;r<i;r++)n+=t.fn(e[r]);return n})},math:function(){Handlebars.registerHelper("math",function(e,t,n){return e=parseFloat(e),n=parseFloat(n),{"+":e+n,"-":e-n,"*":e*n,"/":e/n,"%":e%n}[t]})}}},e4.bootstrap={};var Util=function(){function e(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function t(){return{bindType:s.end,delegateType:s.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function n(){if(window.QUnit)return!1;var e=document.createElement("bootstrap");for(var t in o)if("undefined"!=typeof e.style[t])return{end:o[t]};return!1}function r(e){var t=this,n=!1;return $(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}function i(){s=n(),$.fn.emulateTransitionEnd=r,c.supportsTransitionEnd()&&($.event.special[c.TRANSITION_END]=t())}var s=!1,a=1e6,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do e+=~~(Math.random()*a);while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{var n=$(document).find(t);return n.length>0?t:null}catch(r){return null}},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){$(e).trigger(s.end)},supportsTransitionEnd:function(){return Boolean(s)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(t,n,r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var s=r[i],a=n[i],o=a&&c.isElement(a)?"element":e(a);if(!new RegExp(s).test(o))throw new Error(t.toUpperCase()+": "+('Option "'+i+'" provided type "'+o+'" ')+('but expected type "'+s+'".'))}}};return i(),c}
5($),Carousel=function(){var e="carousel",t="4.0.0-beta.2",n="bs.carousel",r="."+n,i=".data-api",s=$.fn[e],a=600,o=37,c=39,u=500,l={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},p={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},h={SLIDE:"slide"+r,SLID:"slid"+r,KEYDOWN:"keydown"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r,TOUCHEND:"touchend"+r,LOAD_DATA_API:"load"+r+i,CLICK_DATA_API:"click"+r+i},f={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},m={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},g=function(){function i(e,t){this._items=null,this._interval=null,
6this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=$(e)[0],this._indicatorsElement=$(this._element).find(m.INDICATORS)[0],this._addEventListeners()}var s=i.prototype;return s.next=function(){this._isSliding||this._slide(p.NEXT)},s.nextWhenVisible=function(){!document.hidden&&$(this._element).is(":visible")&&"hidden"!==$(this._element).css("visibility")&&this.next()},s.prev=function(){this._isSliding||this._slide(p.PREV)},s.pause=function(e){e||(this._isPaused=!0),$(this._element).find(m.NEXT_PREV)[0]&&Util.supportsTransitionEnd()&&(Util.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},s.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},s.to=function(e){var t=this;this._activeElement=$(this._element).find(m.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void $(this._element).one(h.SLID,function(){return t.to(e)});if(n===e)return this.pause(),void this.cycle();var r=e>n?p.NEXT:p.PREV;this._slide(r,this._items[e])}},s.dispose=function(){$(this._element).off(r),$.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},s._getConfig=function(t){return t=$.extend({},l,t),Util.typeCheckConfig(e,t,d),t},s._addEventListeners=function(){var e=this;this._config.keyboard&&$(this._element).on(h.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&($(this._element).on(h.MOUSEENTER,function(t){return e.pause(t)}).on(h.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&$(this._element).on(h.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},u+e._config.interval)}))},s._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case o:e.preventDefault(),this.prev();break;case c:e.preventDefault(),this.next();break;default:return}},s._getItemIndex=function(e){return this._items=$.makeArray($(e).parent().find(m.ITEM)),this._items.indexOf(e)},s._getItemByDirection=function(e,t){var n=e===p.NEXT,r=e===p.PREV,i=this._getItemIndex(t),s=this._items.length-1,a=r&&0===i||n&&i===s;if(a&&!this._config.wrap)return t;var o=e===p.PREV?-1:1,c=(i+o)%this._items.length;return c===-1?this._items[this._items.length-1]:this._items[c]},s._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),r=this._getItemIndex($(this._element).find(m.ACTIVE_ITEM)[0]),i=$.Event(h.SLIDE,{relatedTarget:e,direction:t,from:r,to:n});return $(this._element).trigger(i),i},s._setActiveIndicatorElement=function(e){if(this._indicatorsElement){$(this._indicatorsElement).find(m.ACTIVE).removeClass(f.ACTIVE);var t=this._indicatorsElement.children[this._getItemIndex(e)];t&&$(t).addClass(f.ACTIVE)}},s._slide=function(e,t){var n,r,i,s=this,o=$(this._element).find(m.ACTIVE_ITEM)[0],c=this._getItemIndex(o),u=t||o&&this._getItemByDirection(e,o),l=this._getItemIndex(u),d=Boolean(this._interval);if(e===p.NEXT?(n=f.LEFT,r=f.NEXT,i=p.LEFT):(n=f.RIGHT,r=f.PREV,i=p.RIGHT),u&&$(u).hasClass(f.ACTIVE))return void(this._isSliding=!1);var g=this._triggerSlideEvent(u,i);if(!g.isDefaultPrevented()&&o&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u);var v=$.Event(h.SLID,{relatedTarget:u,direction:i,from:c,to:l});Util.supportsTransitionEnd()&&$(this._element).hasClass(f.SLIDE)?($(u).addClass(r),Util.reflow(u),$(o).addClass(n),$(u).addClass(n),$(o).one(Util.TRANSITION_END,function(){$(u).removeClass(n+" "+r).addClass(f.ACTIVE),$(o).removeClass(f.ACTIVE+" "+r+" "+n),s._isSli
6ding=!1,setTimeout(function(){return $(s._element).trigger(v)},0)}).emulateTransitionEnd(a)):($(o).removeClass(f.ACTIVE),$(u).addClass(f.ACTIVE),this._isSliding=!1,$(this._element).trigger(v)),d&&this.cycle()}},i._jQueryInterface=function(e){return this.each(function(){var t=$(this).data(n),r=$.extend({},l,$(this).data());"object"==typeof e&&$.extend(r,e);var s="string"==typeof e?e:r.slide;if(t||(t=new i(this,r),$(this).data(n,t)),"number"==typeof e)t.to(e);else if("string"==typeof s){if("undefined"==typeof t[s])throw new Error('No method named "'+s+'"');t[s]()}else r.interval&&(t.pause(),t.cycle())})},i._dataApiClickHandler=function(e){var t=Util.getSelectorFromElement(this);if(t){var r=$(t)[0];if(r&&$(r).hasClass(f.CAROUSEL)){var s=$.extend({},$(r).data(),$(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),i._jQueryInterface.call($(r),s),a&&$(r).data(n).to(a),e.preventDefault()}}},_createClass(i,null,[{key:"VERSION",get:function(){return t}},{key:"Default",get:function(){return l}}]),i}();return $(document).on(h.CLICK_DATA_API,m.DATA_SLIDE,g._dataApiClickHandler),$(window).on(h.LOAD_DATA_API,function(){$(m.DATA_RIDE).each(function(){var e=$
6(this);g._jQueryInterface.call(e,e.data())})}),$.fn[e]=g._jQueryInterface,$.fn[e].Constructor=g,$.fn[e].noConflict=function(){return $.fn[e]=s,g._jQueryInterface},g}($);e4.bootstrap.carousel={init:function(){e4.bootstrap.carousel.bindEvents()},bindEvents:function(){jQuery(document).on("keydown",function(e){jQuery(".carousel").each(function(){var t=jQuery(this);if(e4.util.isInViewport(t)===!0){if(/input|textarea/i.test(e.target.tagName))return;switch(e.which){case 37:t.carousel("prev");break;case 39:t.carousel("next");break;default:return}}})}),jQuery(".carousel").on("swipeleft",function(){jQuery(this).carousel("next")}).on("swiperight",function(){jQuery(this).carousel("prev")})}};var Collapse=function(){var e="collapse",t="4.0.0-beta.2",n="bs.collapse",r="."+n,i=".data-api",s=$.fn[e],a=600,o={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},u={SHOW:"show"+r,SHOWN:"shown"+r,HIDE:"hide"+r,HIDDEN:"hidden"+r,CLICK_DATA_API:"click"+r+i},l={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},p={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},h=function(){function r(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=$.makeArray($('[data-toggle="collapse"][href="#'+e.id+'"],'+('[data-toggle="collapse"][data-target="#'+e.id+'"]')));for(var n=$(p.DATA_TOGGLE),r=0;r<n.length;r++){var i=n[r],s=Util.getSelectorFromElement(i);null!==s&&$(s).filter(e).length>0&&this._triggerArray.push(i)}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var i=r.prototype;return i.toggle=function(){$(this._element).hasClass(l.SHOW)?this.hide():this.show()},i.show=function(){var e=this;if(!this._isTransitioning&&!$(this._element).hasClass(l.SHOW)){var t,i;if(this._parent&&(t=$.makeArray($(this._parent).children().children(p.ACTIVES)),t.length||(t=null)),!(t&&(i=$(t).data(n),i&&i._isTransitioning))){var s=$.Event(u.SHOW);if($(this._element).trigger(s),!s.isDefaultPrevented()){t&&(r._jQueryInterface.call($(t),"hide"),i||$(t).data(n,null));var o=this._getDimension();$(this._element).removeClass(l.COLLAPSE).addClass(l.COLLAPSING),this._element.style[o]=0,this._triggerArray.length&&$(this._triggerArray).removeClass(l.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){$(e._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).addClass(l.SHOW),e._element.style[o]="",e.setTransitioning(!1),$(e._element).trigger(u.SHOWN)};if(!Util.supportsTransitionEnd())return void c();var d=o[0].toUpperCase()+o.slice(1),h="scroll"+d;$(this._element).one(Util.TRANSITION_END,c).emulateTransitionEnd(a),this._element.style[o]=this._element[h]+"px"}}}},i.hide=function(){var e=this;if(!this._isTransitioning&&$(this._element).hasClass(l.SHOW)){var t=$.Event(u.HIDE);if($(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Util.reflow(this._element),$(this._element).addClass(l.COLLAPSING).removeClass(l.COLLAPSE).removeClass(l.SHOW),this._triggerArray.length)for(var r=0;r<this._triggerArray.length;r++){var i=this._triggerArray[r],s=Util.getSelectorFromElement(i);if(null!==s){var o=$(s);o.hasClass(l.SHOW)||$(i).addClass(l.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);var c=function(){e.setTransitioning(!1),$(e._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).trigger(u.HIDDEN)};return this._element.style[n]="",Util.supportsTransitionEnd()?void $(this._element).one(Util.TRANSITION_END,c).emulateTransitionEnd(a):void c()}}},i.setTransitioning=function(e){this._isTransitioning=e},i.dispose=function(){$.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i._getConfig=function(t){return t=$.extend({},o,t),t.toggle=Boolean(t.toggle),Util.typeCheckConfig(e,t,c),t}
6,i._getDimension=function(){var e=$(this._element).hasClass(d.WIDTH);return e?d.WIDTH:d.HEIGHT},i._getParent=function(){var e=this,t=null;Util.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=$(this._config.parent)[0];var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return $(t).find(n).each(function(t,n){e._addAriaAndCollapsedClass(r._getTargetFromElement(n),[n])}),t},i._addAriaAndCollapsedClass=function(e,t){if(e){var n=$(e).hasClass(l.SHOW);t.length&&$(t).toggleClass(l.COLLAPSED,!n).attr("aria-expanded",n)}},r._getTargetFromElement=function(e){var t=Util.getSelectorFromElement(e);return t?$(t)[0]:null},r._jQueryInterface=function(e){return this.each(function(){var t=$(this),i=t.data(n),s=$.extend({},o,t.data(),"object"==typeof e&&e);if(!i&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),i||(i=new r(this,s),t.data(n,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new Error('No method named "'+e+'"');i[e]()}})},_createClass(r,null,[{key:"VERSION",get:function(){return t}},{key:"Default",get:function(){return o}}]),r}();return $(document).on(u.CLICK_DATA_API,p.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=$(this),r=Util.getSelectorFromElement(this);
6$(r).each(function(){var e=$(this),r=e.data(n),i=r?"toggle":t.data();h._jQueryInterface.call(e,i)})}),$.fn[e]=h._jQueryInterface,$.fn[e].Constructor=h,$.fn[e].noConflict=function(){return $.fn[e]=s,h._jQueryInterface},h}($);e4.bootstrap.collapse={init:function(){e4.bootstrap.collapse.peekContent(),e4.bootstrap.collapse.bindEvents()},bindEvents:function(){jQuery(".collapse-peek").on("click",".collapse:not(.show)",function(){jQuery(this).collapse("show")}).find(".collapse-peek-content").on("show.bs.collapse",function(){jQuery(this).addClass("is-expanding")}).on("shown.bs.collapse",function(){jQuery(this).removeClass("is-expanding")}).on("hide.bs.collapse",function(){jQuery(this).addClass("is-collapsing")}).on("hidden.bs.collapse",function(){jQuery(this).removeClass("is-collapsing")})},peekContent:function(){jQuery(".collapse-peek-content").each(function(){var e=jQuery(this);this.scrollHeight<=e.height()*e4.settings.collapse.peekSizeMin&&(e.closest(".collapse-peek").addClass("collapse-peek-disabled").find('[data-toggle="collapse"]').removeAttr("data-toggle"),e.collapse("show"))})}};var Dropdown=function(){if("undefined"==typeof Popper)throw new Error("Bootstrap dropdown require Popper.js (https://popper.js.org)");var e="dropdown",t="4.0.0-beta.2",n="bs.dropdown",r="."+n,i=".data-api",s=$.fn[e],a=27,o=32,c=9,u=38,l=40,d=3,p=new RegExp(u+"|"+l+"|"+a),h={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,CLICK_DATA_API:"click"+r+i,KEYDOWN_DATA_API:"keydown"+r+i,KEYUP_DATA_API:"keyup"+r+i},f={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left"},m={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled)"},g={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end"},v={offset:0,flip:!0},y={offset:"(number|string|function)",flip:"boolean"},j=function(){function i(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var s=i.prototype;return s.toggle=function(){if(!this._element.disabled&&!$(this._element).hasClass(f.DISABLED)){var e=i._getParentFromElement(this._element),t=$(this._menu).hasClass(f.SHOW);if(i._clearMenus(),!t){var n={relatedTarget:this._element},r=$.Event(h.SHOW,n);if($(e).trigger(r),!r.isDefaultPrevented()){var s=this._element;$(e).hasClass(f.DROPUP)&&($(this._menu).hasClass(f.MENULEFT)||$(this._menu).hasClass(f.MENURIGHT))&&(s=e),this._popper=new Popper(s,this._menu,this._getPopperConfig()),"ontouchstart"in document.documentElement&&!$(e).closest(m.NAVBAR_NAV).length&&$("body").children().on("mouseover",null,$.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),$(this._menu).toggleClass(f.SHOW),$(e).toggleClass(f.SHOW).trigger($.Event(h.SHOWN,n))}}}},s.dispose=function(){$.removeData(this._element,n),$(this._element).off(r),this._element=null,this._menu=null,null!==this._popper&&this._popper.destroy(),this._popper=null},s.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},s._addEventListeners=function(){var e=this;$(this._element).on(h.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},s._getConfig=function(t){return t=$.extend({},this.constructor.Default,$(this._element).data(),t),Util.typeCheckConfig(e,t,this.constructor.DefaultType),t},s._getMenuElement=function(){if(!this._menu){var e=i._getParentFromElement(this._element);this._menu=$(e).find(m.MENU)[0]}return this._menu}
6,s._getPlacement=function(){var e=$(this._element).parent(),t=g.BOTTOM;return e.hasClass(f.DROPUP)?(t=g.TOP,$(this._menu).hasClass(f.MENURIGHT)&&(t=g.TOPEND)):$(this._menu).hasClass(f.MENURIGHT)&&(t=g.BOTTOMEND),t},s._detectNavbar=function(){return $(this._element).closest(".navbar").length>0},s._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=$.extend({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip}}};return this._inNavbar&&(n.modifiers.applyStyle={enabled:!this._inNavbar}),n},i._jQueryInterface=function(e){return this.each(function(){var t=$(this).data(n),r="object"==typeof e?e:null;if(t||(t=new i(this,r),$(this).data(n,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},i._clearMenus=function(e){if(!e||e.which!==d&&("keyup"!==e.type||e.which===c))for(var t=$.makeArray($(m.DATA_TOGGLE)),r=0;r<t.length;r++){var s=i._getParentFromElement(t[r]),a=$(t[r]).data(n),o={relatedTarget:t[r]};if(a){var u=a._menu;if($(s).hasClass(f.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===c)&&$.contains(s,e.target))){var l=$.Event(h.HIDE,o);$(s).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&$("body").children().off("mouseover",null,$.noop),t[r].setAttribute("aria-expanded","false"),$(u).removeClass(f.SHOW),$(s).removeClass(f.SHOW).trigger($.Event(h.HIDDEN,o)))}}}},i._getParentFromElement=function(e){var t,n=Util.getSelectorFromElement(e);return n&&(t=$(n)[0]),t||e.parentNode},i._dataApiKeydownHandler=function(e){if(!(!p.test(e.which)||/button/i.test(e.target.tagName)&&e.which===o||/input|textarea/i.test(e.target.tagName)||(e.preventDefault(),e.stopPropagation(),this.disabled||$(this).hasClass(f.DISABLED)))){var t=i._getParentFromElement(this),n=$(t).hasClass(f.SHOW);if(!n&&(e.which!==a||e.which!==o)||n&&(e.which===a||e.which===o)){if(e.which===a){var r=$(t).find(m.DATA_TOGGLE)[0];$(r).trigger("focus")}return void $(this).trigger("click")}var s=$(t).find(m.VISIBLE_ITEMS).get();if(s.length){var c=s.indexOf(e.target);e.which===u&&c>0&&c--,e.which===l&&c<s.length-1&&c++,c<0&&(c=0),s[c].focus()}}},_createClass(i,null,[{key:"VERSION",get:function(){return t}},{key:"Default",get:function(){return v}},{key:"DefaultType",get:function(){return y}}]),i}();return $(document).on(h.KEYDOWN_DATA_API,m.DATA_TOGGLE,j._dataApiKeydownHandler).on(h.KEYDOWN_DATA_API,m.MENU,j._dataApiKeydownHandler).on(h.CLICK_DATA_API+" "+h.KEYUP_DATA_API,j._clearMenus).on(h.CLICK_DATA_API,m.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),j._jQueryInterface.call($(this),"toggle")}).on(h.CLICK_DATA_API,m.FORM_CHILD,function(e){e.stopPropagation()}),$.fn[e]=j._jQueryInterface,$.fn[e].Constructor=j,$.fn[e].noConflict=function(){return $.fn[e]=s,j._jQueryInterface},j}($,Popper);e4.bootstrap.dropdown={init:function(){e4.bootstrap.dropdown.bindEvents()},bindEvents:function(){jQuery(".dropdown-menu").on("click.bs.dropdown.data-api",function(e){jQuery(this).parent().hasClass("show")===!0&&"dropdown"!==e.target.getAttribute("data-toggle")&&"dropdown"!==e.target.parentNode.getAttribute("data-toggle")&&e.stopPropagation()})}};var Modal=function(){var e="modal",t="4.0.0-beta.2",n="bs.modal",r="."+n,i=".data-api",s=$.fn[e],a=300,o=150,c=27,u={backdrop:!0,keyboard:!0,focus:!0,show:!0},l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},d={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,FOCUSIN:"focusin"+r,RESIZE:"resize"+r,CLICK_DISMISS:"click.dismiss"+r,KEYDOWN_DISMISS:"keydown.dismiss"+r,MOUSEUP_DISMISS:"mouseup.dismiss"+r,MOUSEDOWN_DISMISS:"mousedown.dismiss"+r,CLICK_DATA_API:"click"+r+i},p={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},h={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},f=function(){function i(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=$(e).find(h.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var s=i.prototype;return s.toggle=function(e){return this._isShown?this.hide():this.show(e)},s.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){Util.supportsTransitionEnd()&&$(this._element).hasClass(p.FADE)&&(this._isTransitioning=!0);var n=$.Event(d.SHOW,{relatedTarget:e});$(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),$(document.body).addClass(p.OPEN),this._setEscapeEvent(),this._setResizeEvent(),$(this._element).on(d.CLICK_DISMISS,h.DATA_DISMISS,function(e){return t.hide(e)}),$(this._dialog).on(d.MOUSEDOWN_DISMISS,function(){$(t._element).one(d.MOUSEUP_DISMISS,function(e){$(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},s.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=$.Event(d.HIDE);if($(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var r=Util.supportsTransitionEnd()&&$(this._element).hasClass(p.FADE);r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),$(document).off(d.FOCUSIN),$(this._element).removeClass(p.SHOW),$(this._element).off(d.CLICK_DISMISS),$(this._dialog).off(d.MOUSEDOWN_DISMISS),r?$(this._element).one(Util.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(a):this._hideModal()}}},s.dispose=function(){$.removeData(this._element,n),$(window,document,this._element,this._backdrop).off(r),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},s.handleUpdate=function(){this._adjustDialog()},s._getConfig=function(t){return t=$.extend({},u,t),Util.typeCheckConfig(e,t,l),t},s._showElement=function(e){var t=this,n=Util.supportsTransitionEnd()&&$(this._element).hasClass(p.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&Util.reflow(this._element),$(this._element).addClass(p.SHOW),this._config.focus&&this._enforceFocus();var r=$.Event(d.SHOWN,{relatedTarget:e}),i=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,$(t._element).trigger(r)};n?$(this._dialog).one(Util.TRANSITION_END,i).emulateTransitionEnd(a):i()},s._enforceFocus=function(){var e=this;$(document).off(d.FOCUSIN).on(d.FOCUSIN,function(t){document===t.target||e._element===t.target||$(e._element).has(t.target).length||e._element.focus()})},s._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?$(this._element).on(d.KEYDOWN_DISMISS,function(t){t.which===c&&(t.preventDefault(),e.hide())}):this._isShown||$(this._element).off(d.KEYDOWN_DISMISS)},s._setResizeEvent=function(){var e=this;this._isShown?$(window).on(d.RESIZE,function(t){return e.handleUpdate(t)}):$(window).off(d.RESIZE)},s._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){$(document.body).removeClass(p.OPEN),e._resetAdjustments(),e._resetScrollbar(),$(e._element).trigger(d.HIDDEN)})},s._removeBackdrop=function(){this._backdrop&&($(this._backdrop).remove(),this._backdrop=null)},s._showBackdrop=function(e){var t=this,n=$(this._element).hasClass(p.FADE)?p.FADE:"";if(this._isShown&&this._config.backdrop){var r=Util.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className=p.BACKDROP,n&&$(this._backdrop).addClass(n),$(this._backdrop).appendTo(document.body),$(this._element).on(d.CLICK_DISMISS,function(e){return t._ignoreBackdropClick?void(t._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide()))}),r&&Util.reflow(this._backdrop),$(this._backdrop).addClass(p.SHOW),!e)return;if(!r)return void e();$(this._backdrop).one(Util.TRANSITION_END,e).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){$(this._backdrop).removeClass(p.SHOW);var i=function(){t._removeBackdrop(),e&&e()};Util.supportsTransitionEnd()&&$(this._element).hasClass(p.FADE)?$(this._backdrop).one(Util.TRANSITION_END,i).emulateTransitionEnd(o):i()}else e&&e()},s._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},s._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},s._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},s._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){$(h.FIXED_CONTENT).each(function(t,n){var r=$(n)[0].style.paddingRight,i=$(n).css("padding-right");$(n).data("padding-right",r).css("padding-right",parseFloat(i)+e._scrollbarWidth+"px")}),$(h.STICKY_CONTENT).each(function(t,n){var r=$(n)[0].style.marginRight,i=$(n).css("margin-right");$(n).data("margin-right",r).css("margin-right",parseFloat(i)-e._scrollbarWidth+"px")}),$(h.NAVBAR_TOGGLER).each(function(t,n){var r=$(n)[0].style.marginRight,i=$(n).css("margin-right");$(n).data("margin-right",r).css("margin-right",parseFloat(i)+e._scrollbarWidth+"px")});var t=document.body.style.paddingRight,n=$("body").css("padding-right");$("body").data("padding-right",t).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}},s._resetScrollbar=function(){$(h.FIXED_CONTENT).each(function(e,t){var n=$(t).data("padding-right");"undefined"!=typeof n&&$(t).css("padding-right",n).removeData("padding-right")}),$(h.STICKY_CONTENT+", "+h.NAVBAR_TOGGLER).each(function(e,t){var n=$(t).data("margin-right");"undefined"!=typeof n&&$(t).css("margin-right",n).removeData("margin-right")});
6var e=$("body").data("padding-right");"undefined"!=typeof e&&$("body").css("padding-right",e).removeData("padding-right")},s._getScrollbarWidth=function(){var e=document.createElement("div");e.className=p.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},i._jQueryInterface=function(e,t){return this.each(function(){var r=$(this).data(n),s=$.extend({},i.Default,$(this).data(),"object"==typeof e&&e);if(r||(r=new i(this,s),$(this).data(n,r)),"string"==typeof e){if("undefined"==typeof r[e])throw new Error('No method named "'+e+'"');r[e](t)}else s.show&&r.show(t)})},_createClass(i,null,[{key:"VERSION",get:function(){return t}},{key:"Default",get:function(){return u}}]),i}();return $(document).on(d.CLICK_DATA_API,h.DATA_TOGGLE,function(e){var t,r=this,i=Util.getSelectorFromElement(this);i&&(t=$(i)[0]);var s=$(t).data(n)?"toggle":$.extend({},$(t).data(),$(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=$(t).one(d.SHOW,function(e){e.isDefaultPrevented()||a.one(d.HIDDEN,function(){$(r).is(":visible")&&r.focus()})});f._jQueryInterface.call($(t),s,this)}),$.fn[e]=f._jQueryInterface,$.fn[e].Constructor=f,$.fn[e].noConflict=function(){return $.fn[e]=s,f._jQueryInterface},f}($);e4.bootstrap.modal={init:function(){e4.bootstrap.modal.bindEvents()},bindEvents:function(){var e=[e4.settings.scrollReveal.selector,"."+e4.settings.scrollReveal.classAnimateInOnLoad,"."+e4.settings.scrollReveal.classAnimateInOnScroll].join(",");jQuery(".modal").on("show.bs.modal",function(){jQuery(e).addClass(e4.settings.scrollReveal.classResetAnimate)}),jQuery(".modal").on("hidden.bs.modal",function(){jQuery(e).removeClass(e4.settings.scrollReveal.classResetAnimate)})}};var Tooltip=function(){if("undefined"==typeof Popper)throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)");var e="tooltip",t="4.0.0-beta.2",n="bs.tooltip",r="."+n,i=$.fn[e],s=150,a="bs-tooltip",o=new RegExp("(^|\\s)"+a+"\\S+","g"),c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)"},u={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},l={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip"},d={SHOW:"show",OUT:"out"},p={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,INSERTED:"inserted"+r,CLICK:"click"+r,FOCUSIN:"focusin"+r,FOCUSOUT:"focusout"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r},h={FADE:"fade",SHOW:"show"},f={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},m={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},g=function(){function i(e,t){this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var g=i.prototype;return g.enable=function(){this._isEnabled=!0},g.disable=function(){this._isEnabled=!1},g.toggleEnabled=function(){this._isEnabled=!this._isEnabled},g.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=$(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),$(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if($(this.getTipElement()).hasClass(h.SHOW))return void this._leave(null,this);this._enter(null,this)}},g.dispose=function(){clearTimeout(this._timeout),$.removeData(this.element,this.constructor.DATA_KEY),$(this.element).off(this.constructor.EVENT_KEY),$(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&$(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},g.show=function(){var e=this;if("none"===$(this.element).css("display"))throw new Error("Please use show on visible elements");var t=$.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){$(this.element).trigger(t);var n=$.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var r=this.getTipElement(),s=Util.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&$(r).addClass(h.FADE);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,o=this._getAttachment(a);this.addAttachmentClass(o);var c=this.config.container===!1?document.body:$(this.config.container);$(r).data(this.constructor.DATA_KEY,this),$.contains(this.element.ownerDocument.documentElement,this.tip)||$(r).appendTo(c),$(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Popper(this.element,r,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:f.ARROW}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)}
6,onUpdate:function(t){e._handlePopperPlacementChange(t)}}),$(r).addClass(h.SHOW),"ontouchstart"in document.documentElement&&$("body").children().on("mouseover",null,$.noop);var u=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,$(e.element).trigger(e.constructor.Event.SHOWN),t===d.OUT&&e._leave(null,e)};Util.supportsTransitionEnd()&&$(this.tip).hasClass(h.FADE)?$(this.tip).one(Util.TRANSITION_END,u).emulateTransitionEnd(i._TRANSITION_DURATION):u()}},g.hide=function(e){var t=this,n=this.getTipElement(),r=$.Event(this.constructor.Event.HIDE),i=function(){t._hoverState!==d.SHOW&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),$(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};$(this.element).trigger(r),r.isDefaultPrevented()||($(n).removeClass(h.SHOW),"ontouchstart"in document.documentElement&&$("body").children().off("mouseover",null,$.noop),this._activeTrigger[m.CLICK]=!1,this._activeTrigger[m.FOCUS]=!1,this._activeTrigger[m.HOVER]=!1,Util.supportsTransitionEnd()&&$(this.tip).hasClass(h.FADE)?$(n).one(Util.TRANSITION_END,i).emulateTransitionEnd(s):i(),this._hoverState="")},g.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},g.isWithContent=function(){return Boolean(this.getTitle())},g.addAttachmentClass=function(e){$(this.getTipElement()).addClass(a+"-"+e)},g.getTipElement=function(){return this.tip=this.tip||$(this.config.template)[0],this.tip}
6,g.setContent=function(){var e=$(this.getTipElement());this.setElementContent(e.find(f.TOOLTIP_INNER),this.getTitle()),e.removeClass(h.FADE+" "+h.SHOW);
7},g.setElementContent=function(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?$(t).parent().is(e)||e.empty().append(t):e.text($(t).text()):e[n?"html":"text"](t)},g.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},g._getAttachment=function(e){return u[e.toUpperCase()]},g._setListeners=function(){var e=this,t=this.config.trigger.split(" ");t.forEach(function(t){if("click"===t)$(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(t!==m.MANUAL){var n=t===m.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===m.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;$(e.element).on(n,e.config.selector,function(t){return e._enter(t)}).on(r,e.config.selector,function(t){return e._leave(t)})}$(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=$.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},g._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},g._enter=function(e,t){var n=this.constructor.DATA_KEY;return t=t||$(e.currentTarget).data(n),t||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),$(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?m.FOCUS:m.HOVER]=!0),$(t.getTipElement()).hasClass(h.SHOW)||t._hoverState===d.SHOW?void(t._hoverState=d.SHOW):(clearTimeout(t._timeout),t._hoverState=d.SHOW,t.config.delay&&t.config.delay.show?void(t._timeout=setTimeout(function(){t._hoverState===d.SHOW&&t.show()},t.config.delay.show)):void t.show())},g._leave=function(e,t){var n=this.constructor.DATA_KEY;if(t=t||$(e.currentTarget).data(n),t||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),$(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?m.FOCUS:m.HOVER]=!1),!t._isWithActiveTrigger())return clearTimeout(t._timeout),t._hoverState=d.OUT,t.config.delay&&t.config.delay.hide?void(t._timeout=setTimeout(function(){t._hoverState===d.OUT&&t.hide()},t.config.delay.hide)):void t.hide()},g._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},g._getConfig=function(t){return t=$.extend({},this.constructor.Default,$(this.element).data(),t),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Util.typeCheckConfig(e,t,this.constructor.DefaultType),t},g._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}
7,g._cleanTipClass=function(){var e=$(this.getTipElement()),t=e.attr("class").match(o);null!==t&&t.length>0&&e.removeClass(t.join(""))},g._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},g._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&($(e).removeClass(h.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(e){return this.each(function(){var t=$(this).data(n),r="object"==typeof e&&e;if((t||!/dispose|hide/.test(e))&&(t||(t=new i(this,r),$(this).data(n,t)),"string"==typeof e)){if("undefined"==typeof t[e])throw new Error('No method named "'+e+'"');t[e]()}})},_createClass(i,null,[{key:"VERSION",get:function(){return t}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return r}},{key:"DefaultType",get:function(){return c}}]),i}();return $.fn[e]=g._jQueryInterface,$.fn[e].Constructor=g,$.fn[e].noConflict=function(){return $.fn[e]=i,g._jQueryInterface},g}($,Popper);e4.nav={init:function(){e4.nav.global.init(),e4.nav.local.horizontal.init(),e4.nav.local.vertical.init(),e4.nav.util.init()},global:{init:function(){jQuery(".e-nav-local.is-sticky:visible").length>0&&e4.nav.global.disableSticky(),e4.nav.global.lastScrollTop=jQuery(window).scrollTop(),"auto"===e4.settings.nav.autoHideTolerance.down&&(e4.settings.nav.autoHideTolerance.down=jQuery(".js-e-header").height()),e4.settings.nav.autoHide=1===jQuery(".js-e-page-auto-hide-menu").length,e4.nav.global.requestingAnimation=!1,e4.nav.global.b
7indEvents()},bindEvents:function(){var e=jQuery(".js-e-nav-container");e.on("swipeleft",function(){e.modal("hide")}),e.on("shown.bs.modal",function(){e4.nav.global.revealActive()}),e.on("hide.bs.modal",function(){jQuery(".js-e-nav-container").scrollTop(0),jQuery(".js-e-nav-container").removeAttr("style"),jQuery(".js-e-nav-global").find(".nav-link.is-inpath").filter("[data-collapse-target]").each(function(){jQuery(this.getAttribute("data-collapse-target")).removeClass("show")})}),e.on("click","a",function(e){var t=jQuery(this);t.is('.show [data-toggle="dropdown"]')===!0&&e.stopPropagation(),t.is('.show [data-collapse-toggle="true"]')===!0&&(e.preventDefault(),jQuery(this.getAttribute("data-collapse-target")).collapse("toggle"))}),1===jQuery(".js-e-page-auto-hide-menu").length&&jQuery(window).on("scroll",function(){e4.nav.global.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.nav.global.toggleSticky(),e4.settings.nav.autoHide&&e4.nav.global.toggleVisibility(),e4.nav.global.requestingAnimation=!1}),e4.nav.global.requestingAnimation=!0})},show:function(){jQuery(".js-e-header").removeClass("is-hidden")},hide:function(){jQuery(".js-e-header").addClass("is-hidden")},toggleVisibility:function(){var e=jQuery(window).scrollTop();e4.nav.global.scrollDirectionCurrent=e>e4.nav.global.lastScrollTop?"down":"up",e<=0?e4.nav.global.show():Math.abs(e-e4.nav.global.lastScrollTop)>e4.settings.nav.autoHideTolerance[e4.nav.global.scrollDirectionCurrent]&&("down"===e4.nav.global.scrollDirectionCurrent&&"down"!==e4.nav.global.scrollDirectionLast?jQuery(".js-e-header").find(".dropdown.show").length<1&&e4.nav.global.hide():"up"===e4.nav.global.scrollDirectionCurrent&&"up"!==e4.nav.global.scrollDirectionLast&&e4.nav.global.show(),e4.nav.global.lastScrollTop=e,e4.nav.global.scrollDirectionLast=e4.nav.global.scrollDirectionCurrent)},toggleSticky:function(){jQuery(window).scrollTop()>0?jQuery(".js-e-header").addClass("is-stuck"):jQuery(".js-e-header").removeClass("is-stuck")},disableSticky:function(){jQuery(".js-e-header").removeClass("is-sticky")},revealActive:function(){var e=jQuery(".js-e-nav-container"),t=e.find(".nav-item.is-active").last(),n=t.closest(".
7nav").closest(".nav-item"),r=n,i=0;1===t.length&&(jQuery(".js-e-nav-global").find(".nav-link.is-inpath").filter("[data-collapse-target]").each(function(){jQuery(this.getAttribute("data-collapse-target")).addClass("show")}),setTimeout(function(){(0===n.length||n.height()>e.height())&&(r=t),i=r.offset().top-e.offset().top,e.animate({scrollTop:i},Math.floor(i*e4.settings.nav.revealActive.speed),e4.settings.nav.revealActive.easing)},e4.settings.nav.revealActive.delay))}},local:{horizontal:{init:function(){var e=jQuery(".js-e-nav-local-horizontal.is-sticky");1===e.length&&(e4.nav.local.horizontal.requestingAnimation=!1,e.removeClass("is-sticky"),e4.nav.local.horizontal.intialOffsetTop=e.offset().top,e.addClass("is-sticky"),e4.nav.local.horizontal.bindEvents(),e4.nav.local.horizontal.toggleSticky())},bindEvents:function(){jQuery(window).on("scroll",function(){e4.nav.local.horizontal.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.nav.local.horizontal.toggleSticky(),e4.nav.local.horizontal.requestingAnimation=!1}),e4.nav.local.horizontal.requestingAnimation=!0})},toggleSticky:function(){jQuery(window).scrollTop()>e4.nav.local.horizontal.intialOffsetTop?jQuery(".js-e-nav-local-horizontal").addClass("is-stuck"):jQuery(".js-e-nav-local-horizontal").removeClass("is-stuck")}},vertical:{init:function(){var e=jQuery(".js-e-nav-local-vertical");1===e.length&&(e.is(".is-sticky")===!0&&(e.outerHeight(!0)>jQuery(window).height()?e.removeClass("is-sticky"):(e4.nav.local.vertical.requestingAnimation=!1,e.removeClass("is-sticky"),e4.nav.local.horizontal.intialOffsetTop=e.offset().top,e.addClass("is-sticky"),e4.nav.local.vertical.bindEvents(),e4.nav.local.vertical.toggleSticky())),e4.nav.local.vertical.setContentHeight())},bindEvents:function(){jQuery(window).on("scroll",function(){e4.nav.local.vertical.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.nav.local.vertical.toggleSticky(),e4.nav.local.vertical.requestingAnimation=!1}),e4.nav.local.vertical.requestingAnimation=!0})},toggleSticky:function(){jQuery(window).scrollTop()>e4.nav.local.vertical.intialOffsetTop?jQuery(".js-e-nav-local-vertical").addClass("is-stuck"):jQuery(".js-e-nav-local-vertical").removeClass("is-stuck")},setContentHeight:function(){jQuery(".e-content-main").css("min-height",function(){var e=parseInt(jQuery(".js-e-nav-local-vertical").outerHeight(!0))||0,t=parseInt(window.getComputedStyle(this).getPropertyValue("padding-top"))||0,n=parseInt(window.getComputedStyle(this).getPropertyValue("padding-bottom"))||0;return t+e+n})}}},util:{init:function(){jQuery(".js-e-nav-pageicon-language").each(function(){for(var e=jQuery(this),t=e.parent().attr("class").split(" "),n="",r=0;r<t.length;r++)0===t[r].indexOf("icon-flag-")&&(n=t[r].split("-")[2],e.css("background-image","url("+e4.settings.nav.flagCDN+n+".svg)"))})}}},e4.forms={init:function(){jQuery('.js-e-form-dw, form[data-validate="true"]').length>0&&e4.util.require.js(e4.settings.require.jQueryValidate,function(){e4.forms.validate.init(),e4.forms.mailchimp.init()}),e4.forms.toggleState(),e4.forms.setSubmitPage()},setSubmitPage:function(){jQuery(".js-e-form-dw").find('input[name="SubmitPage"]').val(location.href)},toggleState:function(){jQuery(".js-e-form-dw").find(".form-group :input").on("focus blur",function(e){var t=jQuery(this).closest(".form-group");"focus"===e.type?t.addClass("has-focus"):t.removeClass("has-focus")})},validate:{init:function(){jQuery('.js-e-form-dw, form[data-validate="true"]').length>0&&(e4.forms.validate.loadTranslations(),e4.forms.validate.setDefaults(),e4.forms.validate.bindEvents())},setDefaults:function(){jQuery.validator.setDefaults({validClass:"is-valid",errorClass:"is-invalid",highlight:function(e,t){jQuery(e).addClass(t).closest(".form-group").addClass(t)},unhighlight:function(e,t){jQuery(e).removeClass(t).closest(".form-group").removeClass(t)},errorPlacement:function(e,t){var n=t.closest(".form-group"),r=n.find(".js-e-form-validation-msg");e.addClass("form-text small invalid-feedback"),1===r.length?r.replaceWith(e):n.append(e)},focusInvalid:!1,invalidHandler:function(e,t){var n=jQuery(t.invali
7dElements()[0]);e4.util.isInViewport(n)===!0?t.focusInvalid():(n.focus(),e4.scrollToAnchor.animate(.875*n.closest(".form-group").offset().top,e4.nav.global.hide))},submitHandler:function(e){jQuery(e).is(".js-e-form-dw")===!0&&e4.data.forms.dwSpamScripts[e.id](e),e.submit()}})},bindEvents:function(){jQuery('.js-e-form-dw, form[data-validate="true"]').each(function(){jQuery(this).validate()})},loadTranslations:function(){var e=e4.settings.lang;"en"!==e?("nb"===e||"nn"===e?e="no":"se"===e&&(e="sv"),e4.util.require.js({url:"//ajax.aspnetcdn.com/ajax/jquery.validate/1.17.0/localization/messages_"+e+".js",fallback:"/files/system/espresso/design/js/vendor/jquery.validate.messages_"+e+".js",callback:function(){e4.forms.validate.extendTranslations(e)}})):e4.forms.validate.extendTranslations(e)},extendTranslations:function(e){void 0!==e4.settings.forms.validate.messages[e]&&jQuery.extend(jQuery.validator.messages,e4.settings.forms.validate.messages[e])}},mailchimp:{init:function(){jQuery(".js-e-form-dw-mailchimp-signup").length>0&&e4.forms.mailchimp.setSubmitHandler()},setSubmitHandler:function(){jQuery(".js-e-form-dw-mailchimp-signup").data("validator").settings.submitHandler=e4.forms.mailchimp.submitHandler},submitHandler:function(e){var t=jQuery(e);jQuery.ajax({type:t.attr("method"),url:t.find('input[name="MailChimp_SignUpURL"]').val().replace("/post?","/post-json?"),data:t.serialize(),timeout:1e3,cache:!1,dataType:"jsonp",jsonp:"c",context:e}).always(function(e){e4.forms.mailchimp.responseHandler(this,e)})},responseHandler:function(e,t){var n=jQuery(e),r=n.closest(".js-e-mailchimp-signup");if(r.find(".js-e-msg").removeClass("show"),"success"===t.result){var i=r.find(".js-e-msg-success");""===i.html()&&i.html(t.msg),r.css({"min-height":function(){return r.height()}()}),n.fadeOut(e4.settings.animation.speed,function(){i.addClass("show")})}else if("error"===t.result&&t.msg.split(" ")[0]===n.find('input[name="EMAIL"]').val()){var s=r.find(".js-e-msg-mail-exists");""===s.html()?s.html(t.msg):s.html(s.html().replace("{{Email}}",n.find('input[name="EMAIL"]').val())),s.addClass("show")}else{var a=r.find(".js-e-msg-error");""===a.html()&&a.html(t.msg),a.addClass("show")}}}},e4.scrollReveal={sections:[],requestingAnimation:!1,init:function(){jQuery(e4.settings.scrollReveal.selector).each(function(){var e=jQuery(this);e4.util.isInViewport(e)===!0&&e.addClass(e4.settings.scrollReveal.classAnimateInOnLoad)}),e4.scrollReveal.bindEvents()},bindEvents:function(){jQuery(window).on("scroll resize",function(){e4.scrollReveal.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.scrollReveal.animate(),e4.scrollReveal.requestingAnimation=!1}),e4.scrollReveal.requestingAnimation=!0})},animate:function(){jQuery(e4.settings.scrollReveal.selector).each(function(){var e=jQuery(this);e4.util.isInViewport(e)===!0&&e.addClass(e4.settings.scrollReveal.classAnimateInOnScroll)})}},e4.scrollToAnchor={init:function(){e4.scrollToAnchor.animating=!1,e4.scrollToAnchor.goToLocationHash(),e4.scrollToAnchor.bindEvents(),e4.scrollToAnchor.backToTop.init()},goToLocationHash:function(){if(""!==e4.util.hash.getCurrentHashStringValue()&&location.hash.indexOf("/")===-1){var e=e4.scrollToAnchor.getTarget(location.hash);e>-1&&(e4.scrollToAnchor.animate(e),e4.nav.global.hide())}},bindEvents:function(){jQuery('a[href*="#"]').not("a[data-toggle],a[data-slide]").on("click",function(e){"#top"===this.hash?(e.preventDefault(),e4.scrollToAnchor.animate(0)):location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname&&(e.preventDefault(),e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(this.hash)))})},getTarget:function(e){var t=jQuery(window),n=jQuery(e),r=n.closest(".e-section"),i=-1;return 1===n.length&&(r.is(e4.settings.scrollReveal.selector)===!0&&r.addClass(e4.settings.scrollReveal.classResetAnimate),i=n.offset().top,r.is(e4.settings.scrollToAnchor.fullscreenElements)===!1&&(i-=t.height()/100*e4.settings.scrollToAnchor.nudge),jQuery(e4.settings.scrollToAnchor.stickyElements).each(function(){i-=jQuery(this).height()}),i=Math.max(i,0)),i},animate:function(e,t){e>-1&&e4.scrollToAnchor.animating===!1&&(e4.scrollToAnchor.animating=!0,jQuery("html,body").animate({scrollTop:e},Math.floor(Math.abs(jQuery(window).scrollTop()-e)*e4.settings.scrollToAnchor.speed),e4.settings.scrollToAnchor.easing,function(){e4.scrollToAnchor.animating=!1,"function"==typeof t&&t()}))},backToTop:{init:function(){1===jQuery(".js-e-page-back-to-top").length&&(e4.scrollToAnchor.backToTop.requestingAnimation=!1,e4.scrollToAnchor.backToTop.bindEvents())},bindEvents:function(){jQuery(window).on("scroll resize",function(){e4.scrollToAnchor.backToTop.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.scrollToAnchor.backToTop.toggleVisibility(),e4.scrollToAnchor.backToTop.requestingAnimation=!1}),e4.scrollToAnchor.backToTop.requestingAnimation=!0})},toggleVisibility:function(){var e=jQuery(window),t=e.scrollTop(),n=jQuery(".js-e-back-to-top");e4.scrollToAnchor.scrollDirectionCurrent=t>e4.scrollToAnchor.lastScrollTop?"down":"up",e4.scrollToAnchor.scrollDirectionCurrent!==e4.scrollToAnchor.scrollDirectionNew&&(t>e.height()*e4.settings.scrollToAnchor.backToTop.revealOffset?n.addClass("is-visible"):n.removeClass("is-visible")),e4.scrollToAnchor.scrollDirectionLast=e4.scrollToAnchor.scrollDirectionCurrent}}},e4.parallax={init:function(){e4.parallax.isRAF=!1,e4.parallax.loadImages(),jQuery(window).width()>768&&(e4.parallax.bindEvents(),e4.parallax.animate())},loadImages:function(){jQuery(".js-p-img-parallax").each(function(){jQuery(this).attr("src",this.getAttribute("data-src"))}),jQuery(".js-p-img-parallax").on("load",function(){jQuery(this).addClass("is-loaded")})},bindEvents:function(){jQuery(window).on("scroll resize",function(){e4.parallax.isRAF===!1&&(window.requestAnimationFrame(function(){e4.parallax.animate(),e4.parallax.isRAF=!1}),e4.parallax.isRAF=!0)})},animate:function(){var e=jQuery(window).scrollTop();jQuery(".js-p-img-parallax").each(function(){var t=jQuery(this);if(e4.util.isInViewport(t)===!0){var n=Math.round((t.parent().offset().top-e)*e4.settings.parallax.speed);t.css({transform:"translateY("+n+"px)"})}})}},e4.p={init:function(){e4.p.card.init(),e4.p.icon.init(),e4.p.banner.init()}},e4.p.card={init:function(){e4.p.card.bindEvents()},bindEvents:function(){jQuery(".js-p-card-link").on("click",function(e){var t=jQuery(this).find("a[href]");1===t.length&&/input|textarea/i.test(e.target.tagName)===!1&&("_blank"===t.attr("target")?window.open(t.attr("href")):location.href=t.attr("href"))})}},e4.p.icon={requestingAnimation:!1,init:function(){var e=jQuery(".js-p-icontext-animate svg");e.length>0&&e4.util.require.js(e4.settings.require.drawSVG,function(){e.drawsvg({duration:5*e4.settings.animation.speed,stagger:750}),e4.p.icon.animate(),e4.p.icon.bindEvents()})},bindEvents:function(){jQuery(window).on("scroll",function(){e4.p.icon.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.p.icon.animate(),e4.p.icon.requestingAnimation=!1}),e4.p.icon.requestingAnimation=!0})},animate:function(){jQuery(".js-p-icontext-animate svg").each(function(){var e=jQuery(this),t=e.closest(".
7js-p-icontext-animate");e4.util.isInViewport(t)===!0&&(e.drawsvg("animate"),t.removeClass("js-p-icontext-animate"))})}},e4.p.banner={init:function(){e4.p.banner.loadImages(),e4.p.banner.bindEvents()},loadImages:function(){jQuery(".js-p-banner-animation-image").each(function(){jQuery(this).css("background-image","url("+this.getAttribute("data-src")+")")}).filter(":first-child").addClass("animate-in")},bindEvents:function(){jQuery(".js-p-banner-animation-image-container").on(e4.settings.event.animationend,".js-p-banner-animation-image",function(){e4.p.banner.animate(this)}).on(e4.settings.event.transitionend,".js-p-banner-animation-image.animate-out",function(){jQuery(this).removeClass("animate-out")}),jQuery(".js-p-banner-next-section-link").on("click",function(e){e.preventDefault(),e4.p.banner.scrollToNextSection(this)})},scrollToNextSection:function(e){var t=jQuery(e).closest(".e-section").next(".e-section").offset().top;e4.scrollToAnchor.animate(t)},animate:function(e){var t=jQuery(e),n=t.next();0===n.length&&(n=t.closest(".js-p-banner-animation-image-container").find(".js-p-banner-animation-image").first()),n.addClass("animate-in"),t.removeClass("animate-in").addClass("animate-out")}};var dvp=dvp||{};e4.search={init:function(){jQuery(".js-e-search").length>0&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerHelpers("loop"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-search-result-item-product-restricted #js-e-handlebars-tmpl-dvp-search-result-item-product-prescription #js-e-handlebars-tmpl-dvp-search-result-item-product-nonprescription #js-e-handlebars-tmpl-dvp-search-result-item-product-pharmacyonly #js-e-handlebars-tmpl-dvp-search-result-item-product-controlleddrug #js-e-handlebars-tmpl-dvp-search-result-item-product-addictivesubstances #js-e-handlebars-tmpl-dvp-search-result-item-product-psychotropic #js-e-handlebars-tmpl-dvp-search-result-item-product-suppliesinstrument #js-e-handlebars-tmpl-dvp-search-result-item-product-supplementaryfeed #js-e-handlebars-tmpl-dvp-search-result-item-product-diet #js-e-handlebars-tmpl-search-result-item-page #js-e-handlebars-tmpl-dvp-search-faq #js-e-handlebars-tmpl-dvp-search-videos #js-e-handlebars-tmpl-dvp-search-supportmaterials #js-e-handlebars-tmpl-dvp-search-elearning #js-e-handlebars-tmpl-dvp-search-events #js-e-handlebars-tmpl-dvp-search-news #js-e-handlebars-tmpl-dvp-search-therapyareas #js-e-handlebars-tmpl-com-search-reports"),e4.search.event=e4.util.registerEvents("getresult","search"),e4.search.bindEvents(),e4.search.loadIndex(),void 0!==e4.util.hash.get("search")&&jQuery(".js-e-search-modal").filter(":not(.show)").modal("show")})},bindEvents:function(){jQuery(".js-e-search-link").on("click",function(e){e.preventDefault(),void 0===e4.util.hash.get("search")&&e4.util.hash.set("search")}),jQuery(".js-e-search-modal").on("shown.bs.modal hide.bs.modal",function(e){e4.search.handleModal(e.target,e)}),jQuery(".js-e-search-form").on("submit",function(e){e.preventDefault(),e4.search.result.get(jQuery(e.target).find(".js-e-search-input").get(0))}).find(".js-e-search-input").on("input",function(e){e4.search.toggleInputGroupState(e.target),e4.util.debounce(function(){jQuery(e.target).closest(".js-e-search-form").triggerHandler("submit")},e4.settings.search.debounceDelay).apply(this)}).on("change",function(e){""!==e.target.value&&void 0!==e4.util.hash.get("search")&&(e4.util.hash.replace("search",e.target.value),jQuery(".js-dvp-header-search-input").val(this.value))}),jQuery(".js-e-search-clear").on("click",function(){e4.search.clearInput(this)}),jQuery(window).on("hashchange",function(){var e=e4.util.hash.get("search");void 0===e?jQuery(".js-e-search-modal").filter(".show").modal("hide"):jQuery(".js-e-search-modal").filter(":not(.show)").modal("show")})},loadIndex:function(){e4.settings.search.result.products.show===!0&&(jQuery.get(e4.settings.search.result.products.url+(new Date).getTime()),jQuery.get(e4.settings.search.typeahead.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.faq.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.videos.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.therapyareas.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.premiumpages.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.supportmaterials.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.elearning.url+"?q="+(new Date).getTime())),e4.settings.search.result.pages.show===!0&&(jQuery.get(e4.settings.search.events.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.news.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.reports.url+"?q="+(new Date).getTime()),jQuery.get(e4.settings.search.result.pages.url+(new Date).getTime()))},handleModal:function(e,t){var n=jQuery(e).find(".js-e-search-input"),r=n.val(),i=e4.util.hash.get("search");"shown"===t.type?(void 0!==i&&""!==i?n.val(i).triggerHandler("input"):""!==r?(e4.util.hash.set("search",r),n.triggerHandler("input")):e4.util.hash.set("search"),n.trigger("focus")):(n.trigger("blur"),void 0!==i&&e4.util.hash.remove("search"))}
7,toggleInputGroupState:function(e){var t=jQuery(e).closest(".js-e-search-input-group");""===e.value?t.addClass("is-empty"):t.removeClass("is-empty")},clearInput:function(e){jQuery(e).closest(".js-e-search-input-group").find(".js-e-search-input").val("").trigger("focus").triggerHandler("input")},tracking:{bindEvents:function(){e4.search.tracking.prescriptionProducts(),e4.search.tracking.nonPrescriptionProducts(),e4.search.tracking.pharmacyOnlyProducts(),e4.search.tracking.controlledDrugProducts(),e4.search.tracking.addictiveSubstancesProducts(),e4.search.tracking.psychotropicProducts(),e4.search.tracking.supplementaryFeedProducts(),e4.search.tracking.therapyAreas(),e4.search.tracking.supportMaterials(),e4.search.tracking.videos(),e4.search.tracking.academyCourses(),e4.search.tracking.faq(),e4.search.tracking.events(),e4.search.tracking.news(),e4.search.tracking.content()},therapyAreas:function(){jQuery(".js-dvp-search-therapy-areas").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Therapy Areas",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},prescriptionProducts:function(){jQuery(".js-dvp-search-result-products-prescription").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Prescription products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},nonPrescriptionProducts:function(){jQuery(".js-dvp-search-result-products-nonprescription").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Non prescription products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},pharmacyOnlyProducts:function(){jQuery(".js-dvp-search-result-products-pharmacyonly").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Pharmacy only products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},controlledDrugProducts:function(){jQuery(".js-dvp-search-result-products-controlleddrug").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Controlled drug products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},addictiveSubstancesProducts:function(){jQuery(".js-dvp-search-result-products-addictivesubstances").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Addictive substances products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},psychotropicProducts:function(){jQuery(".js-dvp-search-result-products-psychotropic").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Psychotropic products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},supplementaryFeedProducts:function(){jQuery(".js-dvp-search-result-products-supplementaryfeed").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Supplementary feed products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},suppliesInstrumentProducts:function(){jQuery(".js-dvp-search-result-products-suppliesinstrument").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Supplies and instrument products",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},supportMaterials:function(){jQuery(".js-dvp-search-supportmaterials").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Supplementary Materials",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},videos:function(){jQuery(".js-dvp-search-videos").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Videos",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},academyCourses:function(){jQuery(".js-dvp-search-elearning").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Academy Courses",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},faq:function(){jQuery(".js-dvp-search-faq").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Product FAQ",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},events:function(){jQuery(".js-dvp-search-events").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Events",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},news:function(){jQuery(".js-dvp-search-news").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"News",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})},content:function(){jQuery(".js-e-search-result-pages").on("click",".js-search-tracking",function(){e4.gtm.pushDataLayer({eventCategory:"Search",eventAction:"Content",eventLabel:jQuery(this).data("tracking"),eventValue:0,eventInteraction:!0,event:"track-ga-event"})})}}
7,result:{get:function(e){var t=jQuery(e).closest(".js-e-search"),n=[];t.find(".js-e-search-loading-overlay").addClass("is-loading"),t.find(".js-dvp-search-result-success").addClass("d-none"),t.find(".js-dvp-search-result-loading").addClass("is-loading"),""!==jQuery.trim(e.value)?(e4.settings.search.result.products.show===!0&&n.push(e4.search.result.promiseManager.productPromise(e)),e4.settings.search.result.pages.show===!0&&(n.push(dvp.events.search.get(e)),n.push(dvp.news.search.get(e)),n.push(dvp.reports.search.get(e)),n.push(e4.search.result.pages.get(e)))):(e4.settings.search.result.products.show===!0&&(n.push(e4.search.result.products.abort()),n.push(dvp.therapyareas.search.abort()),n.push(dvp.faq.search.abort()),n.push(dvp.videos.search.abort()),n.push(dvp.supportmaterials.search.abort()),n.push(dvp.elearning.search.abort()),e4.search.result.hide(e)),e4.settings.search.result.pages.show===!0&&(n.push(dvp.events.search.abort()),n.push(dvp.news.search.abort()),n.push(dvp.reports.search.abort()),n.push(e4.search.result.pages.abort(e)))),this.promise=jQuery.when.apply(jQuery,n).then(function(){e4.search.result.show(e),e4.search.tracking.bindEvents()},function(){})},promiseManager:{productPromise:function(e){var t=jQuery.Deferred();return e4.search.result.products.get(e).then(function(){e4.search.result.promiseManager.productDependentPromises(e).then(function(){t.resolve()},function(){t.reject()})},function(){t.reject()}),t.promise()},productDependentPromises:function(e){return jQuery.when(dvp.therapyareas.search.get(e,e4.search.result.products.therapyAreaIds),dvp.faq.search.get(e,e4.search.result.products.rangeIds),dvp.videos.search.get(e,e4.search.result.products.rangeIds,e4.search.result.products.therapyAreaIds),dvp.supportmaterials.search.get(e,e4.search.result.products.rangeIds),dvp.elearning.search.get(e,e4.search.result.products.rangeIds))}},show:function(e){e4.search.result.count=e4.search.result.pages.count+e4.search.result.products.count+dvp.therapyareas.search.count+dvp.faq.search.count+dvp.videos.search.count+dvp.supportmaterials.search.count+dvp.elearning.search.count+dvp.events.search.count+dvp.news.search.count+dvp.reports.search.count,jQuery(e).closest(".js-e-search-form").trigger(e4.search.event.getresult,{query:jQuery.trim(e.value),resultCount:e4.search.result.count});var t=jQuery(e).closest(".js-e-search");e4.search.result.count>0?t.find(".js-e-search-result-container").addClass("is-active"):t.find(".js-e-search-result-container").removeClass("is-active"),t.find(".js-e-search-result-count").text(e4.search.result.count),t.find(".js-e-search-page-count").text(e4.search.result.pages.count),t.find(".js-e-search-product-count").text(e4.search.result.products.count),t.find(".js-e-search-loading-overlay").removeClass("is-loading"),t.find(".js-dvp-search-result-loading").removeClass("is-loading"),t.find(".js-dvp-search-result-success").removeClass("d-none")},hide:function(e){
8e4.search.result.count=0;var t=jQuery(e).closest(".js-e-search");t.find(".js-e-search-result-count").text(e4.search.result.count),t.find(".js-e-search-result-container").removeClass("is-active"),t.find(".js-e-search-loading-overlay").removeClass("is-loading"),t.find(".js-dvp-search-result-loading").removeClass("is-loading"),t.find(".js-dvp-search-result-success").removeClass("d-none"),e4.search.result.products.clear(e),e4.search.result.pages.clear(e),t.find(".js-e-search-loading-overlay").removeClass("is-loading")},products:{count:0,rangeIds:"",therapyAreaIds:"",get:function(e){return e4.search.result.products.rangeIds="",e4.search.result.products.therapyAreaIds="",void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.result.products.url+encodeURIComponent(jQuery.trim(e.value.toLowerCase())),method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){e4.search.result.products.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){if(this.count=t.products.length,this.count>0){if(!jQuery.isEmptyObject(t.products))for(var n=0;n<t.facets.length;n++){var r=t.facets[n];if("ri"===r.param)for(var i=0;i<r.options.length;i++)i>=1&&(e4.search.result.products.rangeIds+=","),e4.search.result.products.rangeIds+=r.options[i].value;if("ta"===r.param)for(var s=0;s<r.options.length;s++)s>=1&&(e4.search.result.products.therapyAreaIds+=","),e4.search.result.products.therapyAreaIds+=r.options[s].value}var a=function(e,t){return e.reduce(function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e},{})}
8,o=a(t.products,"type"),c=jQuery(e).closest(".js-e-search"),u=jQuery(".js-dvp-search-result-products-restricted"),l=jQuery(".js-dvp-search-result-products-prescription"),d=jQuery(".js-dvp-search-result-products-nonprescription"),p=jQuery(".js-dvp-search-result-products-pharmacyonly"),h=jQuery(".js-dvp-search-result-products-controlleddrug"),f=jQuery(".js-dvp-search-result-products-addictivesubstances"),m=jQuery(".js-dvp-search-result-products-psychotropic"),g=jQuery(".js-dvp-search-result-products-supplementaryfeed"),v=jQuery(".js-dvp-search-result-products-suppliesinstrument"),y=jQuery(".js-dvp-search-result-products-diet"),j=e4.settings.search.result.pages.show===!0?e4.settings.search.result.products.max[e4.util.getBreakPoint()]:60;if(void 0!==o.Prescription&&o.Prescription.length>0){var b={products:o.Prescription.slice(0,j),showMoreCount:o.Prescription.length-j},w={products:o.Prescription};l.html(e4.handlebars.tmpl.dvpSearchResultItemProductPrescription(b)),e4.search.result.products.toggleShowAllLink(l,w,j,e4.handlebars.tmpl.dvpSearchResultItemProductPrescription)}else l.addClass("is-empty").html("");if(void 0!==o.NonPrescription&&o.NonPrescription.length>0){var k={products:o.NonPrescription.slice(0,j),showMoreCount:o.NonPrescription.length-j},C={products:o.NonPrescription};d.html(e4.handlebars.tmpl.dvpSearchResultItemProductNonprescription(k)),e4.search.result.products.toggleShowAllLink(d,C,j,e4.handlebars.tmpl.dvpSearchResultItemProductNonprescription)}else d.addClass("is-empty").html("");if(void 0!==o.PharmacyOnly&&o.PharmacyOnly.length>0){var T={products:o.PharmacyOnly.slice(0,j),showMoreCount:o.PharmacyOnly.length-j},Q={products:o.PharmacyOnly};p.html(e4.handlebars.tmpl.dvpSearchResultItemProductPharmacyonly(T)),e4.search.result.products.toggleShowAllLink(p,Q,j,e4.handlebars.tmpl.dvpSearchResultItemProductPharmacyonly)}else p.addClass("is-empty").html("");if(void 0!==o.ControlledDrug&&o.ControlledDrug.length>0){var E={products:o.ControlledDrug.slice(0,j),showMoreCount:o.ControlledDrug.length-j},x={products:o.ControlledDrug};h.html(e4.handlebars.tmpl.dvpSearchResultItemProductControlleddrug(E)),e4.search.result.products.toggleShowAllLink(h,x,j,e4.handlebars.tmpl.dvpSearchResultItemProductControlleddrug)}else h.addClass("is-empty").html("");if(void 0!==o.AddictiveSubstances&&o.AddictiveSubstances.length>0){var _={products:o.AddictiveSubstances.slice(0,j),showMoreCount:o.AddictiveSubstances.length-j},S={products:o.AddictiveSubstances};f.html(e4.handlebars.tmpl.dvpSearchResultItemProductAddictivesubstances(_)),e4.search.result.products.toggleShowAllLink(f,S,j,e4.handlebars.tmpl.dvpSearchResultItemProductAddictivesubstances)}else f.addClass("is-empty").html("");if(void 0!==o.Psychotropic&&o.Psychotropic.length>0){var A={products:o.Psychotropic.slice(0,j),showMoreCount:o.Psychotropic.length-j},D={products:o.Psychotropic};m.html(e4.handlebars.tmpl.dvpSearchResultItemProductPsychotropic(A)),e4.search.result.products.toggleShowAllLink(m,D,j,e4.handlebars.tmpl.dvpSearchResultItemProductPsychotropic)}else m.addClass("is-empty").html("");if(void 0!==o.SupplementaryFeed&&o.SupplementaryFeed.length>0){var I={products:o.SupplementaryFeed.slice(0,j),showMoreCount:o.SupplementaryFeed.length-j},O={products:o.SupplementaryFeed};g.html(e4.handlebars.tmpl.dvpSearchResultItemProductSupplementaryfeed(I)),e4.search.result.products.toggleShowAllLink(g,O,j,e4.handlebars.tmpl.dvpSearchResultItemProductSupplementaryfeed)}else g.addClass("is-empty").html("");if(void 0!==o.SuppliesInstrument&&o.SuppliesInstrument.length>0){var q={products:o.SuppliesInstrument.slice(0,j),showMoreCount:o.SuppliesInstrument.length-j},P={products:o.SuppliesInstrument};v.html(e4.handlebars.tmpl.dvpSearchResultItemProductSuppliesinstrument(q)),e4.search.result.products.toggleShowAllLink(v,P,j,e4.handlebars.tmpl.dvpSearchResultItemProductSuppliesinstrument)}else v.addClass("is-empty").html("");if(void 0!==o.Diet&&o.Diet.length>0){var L={products:o.Diet.slice(0,j),showMoreCount:o.Diet.length-j},N={products:o.Diet};y.html(e4.handlebars.tmpl.dvpSearchResultItemProductDiet(L)),e4.search.result.products.toggleShowAllLink(y,N,j,e4.handlebars.tmpl.dvpSearchResultItemProductDiet)}else y.addClass("is-empty").html("");t.showProducts===!1?u.html(e4.handlebars.tmpl.dvpSearchResultItemProductRestricted(t.showProducts)):u.addClass("is-empty").html(""),c.find(".js-e-search-result-products").removeClass("is-empty"),dvp.search.menu.show(jQuery(c).find(".js-e-search-result-products").attr("id"))}else e4.search.result.products.clear(e)}
8,clear:function(e){jQuery(e).closest(".js-e-search").find(".js-e-search-result-products").addClass("is-empty"),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-e-search-result-products").attr("id"))},toggleShowAllLink:function(e,t,n,r){var i=e.find(".js-e-search-products-show-all");t.products.length>n?i.find("a").attr("href",e4.settings.search.result.products.showAllLink).on("click",{domElm:e,feed:t,handlebarTemplate:r},e4.search.result.products.showAll):(i.addClass("d-none"),i.find("a").off("click",e4.search.result.products.showAll))},showAll:function(e){if(e.preventDefault(),void 0!==e.data&&e.data.feed.products.length>0){var t=e.data.domElm;t.html(e.data.handlebarTemplate(e.data.feed)).removeClass("is-empty"),t.find(".js-e-search-products-show-all").addClass("d-none")}}},pages:{count:0,get:function(e){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.result.pages.url+encodeURIComponent(jQuery.trim(e.value.toLowerCase())),method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){e4.search.result.pages.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){if(this.count=t.pages.length,this.count>0){var n=jQuery(e).closest(".js-e-search");n.find(".js-e-search-result-pages").html(e4.handlebars.tmpl.searchResultItemPage(t)).removeClass("is-empty"),dvp.search.menu.show(jQuery(n).find(".js-e-search-result-pages").attr("id"))}else e4.search.result.pages.clear(e)},clear:function(e){jQuery(e).closest(".js-e-search").find(".js-e-search-result-pages").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-e-search-result-pages").attr("id"))}}}},e4.news={init:function(){e4.news.filter.init(),e4.news.paging()},filter:{timeout:null,init:function(){jQuery(".js-e-news-filter").length>0&&e4.news.filter.bindEvents()},bindEvents:function(){jQuery(".js-e-news-filter").on("click",".js-e-news-filter-option",function(e){e.preventDefault(),e4.news.filter.toggleControls(this),e4.news.filter.apply(this)})},toggleControls:function(e){var t=jQuery(e);"*"===t.data("filter")?(t.addClass("active"),t.closest(".js-e-news-filter").find(".js-e-news-filter-option").not('[data-filter="*"]').removeClass("active")):(t.toggleClass("active"),t.closest(".js-e-news-filter").find(".js-e-news-filter-option").filter('[data-filter="*"]').removeClass("active"))},apply:function(e){var t=[],n=jQuery(e);n.closest(".js-e-news-filter").find(".js-e-news-filter-option").filter(".active").each(function(){t.push(this.getAttribute("data-filter"))}),0===t.length&&(t.push("*"),n.closest(".js-e-news-filter").find(".js-e-news-filter-option").filter('[data-filter="*"]').addClass("active")),n.closest(".js-e-news").css("min-height",function(){return this.scrollHeight}).addClass("is-filtering"),null!==e4.news.filter.timeout&&(clearTimeout(e4.news.filter.timeout),e4.news.filter.timeout=null),e4.news.filter.timeout=setTimeout(function(){n.closest(".js-e-news").find(".js-e-news-item").removeClass("d-none").not(t.join(",")).addClass("d-none"),jQuery(".js-e-news").removeClass("is-filtering").css({"min-height":0})},e4.settings.animation.speed)}},paging:function(){var e=jQuery(".js-e-news-pagination");if(1===e.length){e.find("a").not(".js-e-news-pagination-item").addClass("page-link");var t=jQuery(".js-e-news-pagination-list-dw").find("a"),n=jQuery(".js-e-news-pagination-item"),r=[];t.each(function(){var e=jQuery(this),t=n.clone();t.find("a").attr("href",e.attr("href")).text(e.text()),1===e.find("b").length&&t.addClass("active"),r.push(t)}),n.replaceWith(r)}}},e4.cookies={init:function(){1===jQuery(".js-e-cookie").length&&(jQuery(".js-e-cookie").removeAttr("hidden"),e4.cookies.bindEvents())},bindEvents:function(){var e=jQuery(".js-e-cookie");e.find(".js-e-cookie-accept-btn").on("click",function(t){t.preventDefault(),jQuery.get(e4.settings.cookieAcceptLink),e.addClass("is-accepted")})}},e4.dealersearch={GoogleMapsAPIkey:"",countrycode:"",data:{},jMap:[],gmMap:{},gmClusterer:{},gmGeocoder:function(){},init:function(){var e=jQuery(".js-e-dealersearch");1===e.length&&(e4.dealersearch.GoogleMapsAPIkey=e.data("googlemapsapikey"),e4.dealersearch.jMap=e.find(".js-e-dealersearch-googlemap"),e4.dealersearch.countrycode=e.data("countrycode"),e4.dealersearch.getData(),e4.dealersearch.apis.load())},apis:{isReady:function(){return e4.dealersearch.apis.GoogleMaps.ready===!0&&e4.dealersearch.apis.MarkerClusterer.ready===!0&&e4.dealersearch.apis.jQueryUImap.ready===!0&&e4.dealersearch.apis.handlebars.ready===!0},load:function(){e4.dealersearch.apis.GoogleMaps.load(),e4.dealersearch.apis.MarkerClusterer.load(),e4.dealersearch.apis.jQueryUImap.load(),e4.dealersearch.apis.typeahead.load(),e4.dealersearch.apis.handlebars.load()},GoogleMaps:{ready:!1,load:function(){var e=document.createElement("script"),t=document.getElementsByTagName("script")[0];
8e.src="//maps.googleapis.com/maps/api/js?key="+e4.dealersearch.GoogleMapsAPIkey+"&callback=e4.dealersearch.apis.GoogleMaps.callback",t.parentNode.insertBefore(e,t)},callback:function(){e4.dealersearch.apis.GoogleMaps.ready=!0,e4.dealersearch.apis.isReady()===!0&&e4.dealersearch.map.init(),e4.dealersearch.gmGeocoder=new google.maps.Geocoder}},jQueryUImap:{ready:!1,load:function(){e4.util.require.js(e4.settings.require.jQueryUImap,function(){e4.dealersearch.apis.jQueryUImap.ready=!0,e4.dealersearch.apis.isReady()===!0&&e4.dealersearch.map.init()})}},MarkerClusterer:{ready:!1,load:function(){e4.util.require.js(e4.settings.require.MarkerClusterer,function(){e4.dealersearch.apis.MarkerClusterer.ready=!0,e4.dealersearch.apis.isReady()===!0&&e4.dealersearch.map.init()})}},handlebars:{ready:!1,load:function(){e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerHelpers("loop"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-typeahead-footer #js-e-handlebars-tmpl-typeahead-pending #js-e-handlebars-tmpl-googlemap-infowindow #js-e-handlebars-tmpl-marker-list"),e4.dealersearch.apis.handlebars.ready=!0,e4.dealersearch.apis.isReady()===!0&&e4.dealersearch.map.init()})}},typeahead:{load:function(){e4.util.require.js(e4.settings.require.typeahead,function(){e4.dealersearch.form.init()})}}},search:function(e){e4.dealersearch.map.setVirginState(!1),e4.dealersearch.markers.updateDistanceToAddress(e),e4.dealersearch.jMap.gmap("get","map").fitBounds(e4.dealersearch.map.getBoundsByAddress(e)),e4.dealersearch.map.fitResults(),e4.dealersearch.list.syncWithMap(),e4.dealersearch.form.hidePlaceholder(),jQuery(".js-e-dealersearch-input").typeahead("val",e.formatted_address),e4.gtm.pushDataLayer({eventCategory:"Forhandlersøgning",eventAction:e.formatted_address,eventLabel:location.pathname,eventValue:0,eventInteraction:!1,event:"track-ga-event"})},getData:function(){var e=jQuery(".js-e-dealersearch").data("id");e4.dealersearch.data=e4.data.dealersearch[e].users,e4.data.dealersearch[e].users=null},setCountry:function(e){e4.dealersearch.countrycode=e,e4.dealersearch.map.setCenterAndBoundsFromCountry(),e4.dealersearch.clusterer.updateMarkers(),e4.dealersearch.jMap.gmap("refresh")},geoLocation:{init:function(){},bindEvents:function(){},search:function(){navigator.geolocation.getCurrentPosition(function(e){e4.dealersearch.gmGeocoder.geocode({location:{lat:e.coords.latitude,lng:e.coords.longitude}},function(e,t){"OK"===t?e4.dealersearch.search(e[0]):e4.dealersearch.map.logError(t)})},function(e){e4.gtm.pushDataLayer({eventCategory:"navigator.geolocation.getCurrentPosition",eventAction:e.code+": "+e.message,eventLabel:location.pathname,eventValue:0,eventInteraction:!1,event:"track-ga-event"})})}},form:{init:function(){e4.dealersearch.form.bindEvents()},bindEvents:function(){jQuery(".js-e-dealersearch-form").on("submit",function(e){e.preventDefault();var t=jQuery(this).find(".js-e-dealersearch-suggestions").find(".tt-selectable").first();1===t.length&&t.trigger("click")}).on("click",".js-e-dealersearch-submit",function(){jQuery(this.form).triggerHandler("submit")}).on("click",".js-e-dealersearch-geolocate",function(e){e.preventDefault(),e4.dealersearch.geoLocation.search()}),jQuery(".js-e-dealersearch-country").on("change",function(){e4.dealersearch.setCountry(this.value)}),jQuery(".js-e-dealersearch-input").on("keydown",function(e){if(13===e.keyCode){var t=jQuery(this.form).find(".js-e-dealersearch-suggestions"),n=t.find(".tt-selectable").filter(".active");0===n.length&&"block"===t.css("display")?jQuery(this.form).triggerHandler("submit"):n.is(".js-e-dealersearch-geolocate")===!0&&n.trigger("click")}}).on("focus input",function(){e4.dealersearch.form.hidePlaceholder()}).on("blur",function(){""===this.value&&e4.dealersearch.form.showPlaceholder()}),jQuery(".js-e-dealersearch-input").typeahead({hint:!0,highlight:!0,minLength:0,classNames:{wrapper:"e-dealersearch-typeahead-wrapper js-e-dealersearch-typeahead-wrapper w-100",input:"js-e-dealersearch-input",menu:"js-e-dealersearch-suggestions e-dealersearch-suggestions dropdown-menu",suggestion:"js-e-dealersearch-suggestions-item dropdown-item",open:"open",cursor:"active",highlight:"active"}}
8,{name:"espresso",display:"formatted_address",limit:8,async:!0,source:function(e,t,n){e4.dealersearch.form.getSuggestions(e,function(e){n(e)})},templates:{pending:function(e){return e4.handlebars.tmpl.typeaheadPending(e)},footer:function(e){return e4.handlebars.tmpl.typeaheadFooter(e)}}}).on("typeahead:autocomplete typeahead:select",function(e,t){null!==t&&(e4.dealersearch.search(t),jQuery(this).typeahead("close"))})},getSuggestions:function(e,t){e4.dealersearch.gmGeocoder.geocode({address:e,componentRestrictions:{country:e4.dealersearch.countrycode}},function(e,n){"OK"===n?(e=e.filter(function(e){return"country"!==e.address_components[0].types[0]}),t(e)):e4.dealersearch.map.logError(n)})},showPlaceholder:function(){jQuery(".js-e-dealersearch-input-placeholder").removeClass("is-hidden")},hidePlaceholder:function(){jQuery(".js-e-dealersearch-input-placeholder").addClass("is-hidden")}},map:{hasVirginState:!0,init:function(){e4.dealersearch.jMap.gmap({center:e4.dealersearch.map.getCenterByCountry(),zoom:e4.dealersearch.map.getZoomByCountry(),mapTypeControl:!1,scrollwheel:!1}).on("init",function(){e4.dealersearch.map.setCenterAndBoundsFromCountry(),e4.dealersearch.clusterer.init(),e4.dealersearch.markers.init(),e4.dealersearch.list.init(),e4.dealersearch.map.bindEvents()})},bindEvents:function(){google.maps.event.addListener(e4.dealersearch.jMap.gmap("get","map"),"idle",function(){e4.dealersearch.map.getVirginState()===!0?e4.dealersearch.list.clear():"xs"!==e4.util.getBreakPoint()&&"sm"!==e4.util.getBreakPoint()&&e4.dealersearch.list.syncWithMap(),e4.dealersearch.map.setVirginState(!1)}),jQuery(window).on("resize",function(){e4.dealersearch.jMap.gmap("refresh")})},setVirginState:function(e){e4.dealersearch.map.hasVirginState=e},getVirginState:function(){return e4.dealersearch.map.hasVirginState},setCenterAndBoundsFromCountry:function(){if(e4.dealersearch.map.setVirginState(!0),void 0!==e4.settings.dealersearch.country[e4.dealersearch.countrycode]){var e=e4.dealersearch.jMap.gmap("get","map");e.setCenter(e4.dealersearch.map.getCenterByCountry()),e.setZoom(e4.dealersearch.map.getZoomByCountry())}else e4.dealersearch.gmGeocoder.geocode({address:e4.dealersearch.countrycode,componentRestrictions:{country:e4.dealersearch.countrycode}},function(e,t){if("OK"===t){var n=e4.dealersearch.map.getBoundsByAddress(e[0]);e4.dealersearch.jMap.gmap("get","map").fitBounds(n)}else e4.dealersearch.map.logError(t)})},getCenterByCountry:function(){return void 0!==e4.settings.dealersearch.country[e4.dealersearch.countrycode]?new google.maps.LatLng(e4.settings.dealersearch.country[e4.dealersearch.countrycode].center):new google.maps.LatLng({lat:0,lng:0})},getZoomByCountry:function(){return void 0!==e4.settings.dealersearch.country[e4.dealersearch.countrycode]?e4.settings.dealersearch.country[e4.dealersearch.countrycode].zoom:1},getBoundsByAddress:function(e){var t;return void 0!==e.geometry.viewport?t=e.geometry.viewport:void 0!==e.geometry.bounds?t=e.geometry.bounds:(t=new google.maps.LatLngBounds,t.extend(e.geometry.location)),t},getMarkersInBounds:function(){var e=e4.dealersearch.jMap.gmap("get","map").getBounds(),t=[];return jQuery.each(e4.dealersearch.data.markers[e4.dealersearch.countrycode],function(n,r){e.contains(r.getPosition())===!0&&t.push(r)}),t},extendBoundsToMarker:function(e){var t=e4.dealersearch.jMap.gmap("get","map").getBounds();t.extend(e.getPosition()),e4.dealersearch.jMap.gmap("get","map").fitBounds(t)},fitResults:function(){var e=e4.dealersearch.jMap.gmap("get","map").getZoom();e>e4.settings.dealersearch.zoom.max?e4.dealersearch.jMap.gmap("get","map").setZoom(e4.settings.dealersearch.zoom.max):e<e4.settings.dealersearch.zoom.min&&e4.dealersearch.jMap.gmap("get","map").setZoom(e+1),0===e4.dealersearch.map.getMarkersInBounds().length&&e4.dealersearch.map.extendBoundsToMarker(e4.dealersearch.data.markers[e4.dealersearch.countrycode][0]);for(var t=e4.dealersearch.map.getMarkersInBounds().length;t<=e4.settings.dealersearch.results.min&&e4.dealersearch.data.markers[e4.dealersearch.countrycode].length>t&&e4.dealersearch.data.markers[e4.dealersearch.countrycode][t].distanceToAddress<e4.dealersearch.data.markers[e4.dealersearch.countrycode][t-1].distanceToAddress*(1+Math.pow(e4.settings.dealersearch.results.sensitivity,t));t++)e4.dealersearch.map.extendBoundsToMarker(e4.dealersearch.data.markers[e4.dealersearch.countrycode][t])},logError:function(e){e4.gtm.pushDataLayer({eventCategory:"Google Maps Error",eventAction:e,eventLabel:location.pathname,eventValue:0,eventInteraction:!1,event:"track-ga-event"})}},clusterer:{init:function(){e4.dealersearch.jMap.gmap("set","MarkerClusterer",new MarkerClusterer(e4.dealersearch.jMap.gmap("get","map"),[],{maxZoom:e4.settings.dealersearch.zoom.max-1,averageCenter:!0,imagePath:"//cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m"}))},addMarkers:function(){void 0!==e4.dealersearch.data.markers[e4.dealersearch.countrycode]&&e4.dealersearch.jMap.gmap("get","MarkerClusterer").addMarkers(e4.dealersearch.data.markers[e4.dealersearch.countrycode])},updateMarkers:function(){void 0!==e4.dealersearch.jMap.gmap("get","MarkerClusterer")&&e4.dealersearch.jMap.gmap("get","MarkerClusterer").getTotalMarkers()>0&&e4.dealersearch.clusterer.clearMarkers(),e4.dealersearch.clusterer.addMarkers()},clearMarkers:function(){e4.dealersearch.jMap.gmap("get","MarkerClusterer").clearMarkers()}},markers:{marker:null,init:function(){e4.dealersearch.markers.build(),e4.dealersearch.clusterer.addMarkers(),e4.dealersearch.markers.bindEvents()},build:function(){e4.dealersearch.data.markers={},jQuery.each(e4.dealersearch.data,function(e,t){var n=parseFloat(t.lat),r=parseFloat(t.lng);isNaN(n)||isNaN(r)||Math.abs(n)>90||Math.abs(r)>
8180?console.error("Error - lat/lng data not valid for this address: "+t.name):""!==t.countrycode&&(Array.isArray(e4.dealersearch.data.markers[t.countrycode])===!1&&(e4.dealersearch.data.markers[t.countrycode]=[]),e4.dealersearch.data.markers[t.countrycode].push(new google.maps.Marker({id:t.id,position:new google.maps.LatLng(n,r),data:t,distanceToAddress:0})))})},bindEvents:function(){jQuery.each(e4.dealersearch.data.markers,function(e,t){jQuery.each(t,function(e,t){google.maps.event.addListener(t,"click",function(){jQuery(".js-com-country-map-reset").removeClass("d-none").addClass("d-block"),e4.dealersearch.jMap.gmap("openInfoWindow",{content:e4.dealersearch.markers.getInfoWindowContent(t)},t),e4.gtm.pushDataLayer({eventCategory:"Forhandlerkort",eventAction:t.data.name,eventLabel:location.pathname,eventValue:0,eventInteraction:!1,event:"track-ga-event"}),e4.dealersearch.markers.marker=t})})})},get:function(e){for(var t=0;t<e4.dealersearch.data.markers[e4.dealersearch.countrycode].length;t++)if(e4.dealersearch.data.markers[e4.dealersearch.countrycode][t].id===e)return e4.dealersearch.data.markers[e4.dealersearch.countrycode][t];return null},getInfoWindowContent:function(e){return e4.handlebars.tmpl.googlemapInfowindow(e.data)},showOnMap:function(e){var t=e4.dealersearch.jMap.gmap("get","map");t.panTo(e.getPosition()),t.setZoom(e4.settings.dealersearch.zoom.max-1),google.maps.event.trigger(e,"click")},updateDistanceToAddress:function(e){var t=e.geometry.location.lat(),n=e.geometry.location.lng();jQuery.each(e4.dealersearch.data.markers[e4.dealersearch.countrycode],function(e,r){r.distanceToAddress=e4.dealersearch.markers.math.getGreatCircleDistance(t,n,r.getPosition().lat(),r.getPosition().lng())}),e4.dealersearch.markers.sortByDistanceToAddress()},clearDistanceToAddress:function(){jQuery.each(e4.dealersearch.data.markers[e4.dealersearch.countrycode],function(e,t){t.distanceToAddress=0})},sortByDistanceToAddress:function(){e4.dealersearch.data.markers[e4.dealersearch.countrycode].sort(function(e,t){return e.distanceToAddress-t.distanceToAddress})},math:{formatDistance:function(e){return"imperial"===e4.dealersearch.unitsystem&&(e/=1.609344),Math.round(100*e)/100},toRadians:function(e){return e*(Math.PI/180)},getGreatCircleDistance:function(e,t,n,r){var i=e4.dealersearch.markers.math.toRadians(n-e),s=e4.dealersearch.markers.math.toRadians(r-t),a=Math.sin(i/2)*Math.sin(i/2)+Math.sin(s/2)*Math.sin(s/2)*Math.cos(e4.dealersearch.markers.math.toRadians(e))*Math.cos(e4.dealersearch.markers.math.toRadians(n));return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}}},list:{init:function(){e4.dealersearch.list.bindEvents()},bindEvents:function(){jQuery(".js-e-dealersearch-list").on("click",".js-e-dealersearch-list-item",function(){e4.dealersearch.markers.showOnMap(e4.dealersearch.markers.get(jQuery(this).data("id"))),jQuery(".js-com-country-map-reset").removeClass("d-none").addClass("d-block")}).on("click",".js-e-dealersearch-show-map",function(e){e.preventDefault(),jQuery(".js-e-dealersearch-googlemap-container").addClass("is-active"),e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(".js-e-dealersearch-googlemap-container"))})},syncWithMap:function(){var e=e4.dealersearch.map.getMarkersInBounds(),t={markers:[]};0===e.length?e4.dealersearch.list.clear():(jQuery.each(e,function(e,n){t.markers.push(jQuery.extend(n.data,{distanceToAddress:e4.dealersearch.markers.math.formatDistance(n.distanceToAddress)}))}),jQuery(".js-e-dealersearch-list").removeClass("is-empty").html(e4.handlebars.tmpl.markerList(t))),e4.dealersearch.data.markers[e4.dealersearch.countrycode].length>e.length&&jQuery(".js-com-country-map-reset").removeClass("d-none").addClass("d-block")},clear:function(){jQuery(".js-e-dealersearch-list").addClass("is-empty").html("")}}},e4.extranet={init:function(){e4.extranet.login.remember()},login:{remember:function(){jQuery(".js-e-extranet-login-remember").on("change",function(){jQuery(this.form).find(".js-e-extranet-login-remember-username, .js-e-extranet-login-remember-password").val(jQuery(this).prop("checked")===!0?"True":"")}).triggerHandler("change")}}},e4.breadcrumb={init:function(){var e=jQuery(".js-e-breadcrumb"),t=jQuery(".js-e-breadcrumb-item-append"),n=jQuery(".js-e-breadcrumb-item-go-back-link");if(1===e.length&&1===t.length){var r=e.find(".breadcrumb-item").last(),i=r.clone();r.attr("href","javascript:void(0);"),r.removeClass("active"),i.find("a").attr("href",t.data("link")),i.find("span").text(t.data("text")),r.after(i)}1===e.length&&1===n.length&&e.find(".breadcrumb").append(n.html())}},e4.ecom={},e4.ecom.product={init:function(){jQuery(".js-e-product-form").length>0&&(e4.util.require.js(e4.settings.require.handlebars,function(){e4.ecom.product.handlebars.compileTemplates()}),e4.ecom.product.bindEvents())},bindEvents:function(){jQuery(".js-e-product-form").each(function(){jQuery(this).on("submit",function(e){e4.ecom.product.addToCart.submit(e)})}),jQuery("#js-e-cart-confirm-msg").on("click",function(e){jQuery(this).hasClass("is-active")!==!0||"msg"!==e.target.getAttribute("data-dismiss")&&"msg"!==e.target.parentNode.getAttribute("data-dismiss")||e4.ecom.product.addToCart.msg.hide(),e.stopPropagation()}).on("mouseover",e4.ecom.product.addToCart.msg.clearTimeout).on("mouseleave",{timeout:e4.settings.ecom.cart.confirmMsgHideDelay/3},e4.ecom.product.addToCart.msg.setTimeout)},addToCart:{msg:{timeout:null,show:function(){e4.ecom.product.addToCart.msg.clearTimeout();var e=jQuery("#js-e-cart-confirm-msg"),t=jQuery(".js-e-header");e.css("top",function(){var e=0;return e+=t.height(),Math.floor(e)}),e.addClass("is-active"),e4.ecom.product.addToCart.msg.setTimeout(),jQuery(document).on("click",e4.ecom.product.addToCart.msg.hide)},hide:function(){e4.ecom.product.addToCart.msg.clearTimeout(),jQuery(document).off("
8click",e4.ecom.product.addToCart.msg.hide),jQuery("#js-e-cart-confirm-msg").removeClass("is-active")},setTimeout:function(e){var t=e4.settings.ecom.cart.confirmMsgHideDelay;void 0!==e&&void 0!==e.data&&(t=Math.round(e.data.timeout||t)),e4.ecom.product.addToCart.msg.timeout=setTimeout(e4.ecom.product.addToCart.msg.hide,t)},clearTimeout:function(){e4.ecom.product.addToCart.msg.timeout&&(e4.ecom.product.addToCart.msg.timeout=clearTimeout(e4.ecom.product.addToCart.msg.timeout))}},submit:function(e){e.preventDefault();var t,n=jQuery(e.target);n.find(".js-e-loading-overlay").addClass("is-loading"),t=jQuery.ajax({type:"POST",url:e4.settings.ecom.cart.url,data:n.serialize(),dataType:"json",context:e.target}),t.done(function(e){e4.ecom.product.addToCart.success(e)}),t.fail(function(e,t,n){e4.ecom.product.addToCart.error(e,t,n)}),t.always(function(){n.find(".js-e-loading-overlay").removeClass("is-loading")})},success:function(e){jQuery("#js-e-cart-confirm-msg").find(".js-e-cart-confirm-msg-content").html(e4.ecom.product.handlebars.cartMsgContent(e.cart)),e4.ecom.product.addToCart.msg.show(),jQuery(".js-e-cart-quantity").html(e.cart.totalProductQuantity)},error:function(e,t,n){console.log("fail",e,t,n)}},handlebars:{compileTemplates:function(){var e=jQuery("#js-handlebars-tmpl-cart-msg-content").html();e4.ecom.product.handlebars.cartMsgContent=Handlebars.compile(e)}}},e4.ecom.productlist={jProductList:jQuery(".js-e-productlist"),init:function(){1===e4.ecom.productlist.jProductList.length&&e4.ecom.productlist.filters.init()},filters:{init:function(){e4.ecom.productlist.filters.bindEvents()},bindEvents:function(){jQuery(".js-e-productlist-filters-group").each(function(){jQuery(this).find(".js-e-productlist-filters-option-reset-group").prop("checked",!1),jQuery(".js-e-productlist-filter",this).each(function(){if(jQuery(this).is(":checked")===!1){var e=jQuery(this).closest(".js-e-productlist-filters-group").find(".js-e-productlist-filter").filter(":checked").length;0===e&&jQuery(this).closest(".js-e-productlist-filters-group").find(".js-e-productlist-filters-option-reset-group").prop("checked",!0)}})}),e4.ecom.productlist.jProductList.on("change",".js-e-productlist-filter",function(){e4.ecom.productlist.filters.applyFilters(this)}),e4.ecom.productlist.jProductList.on("click",".js-e-productlist-filters-remove",function(e){e.preventDefault(),e4.ecom.productlist.filters.removeFilter(this)}),jQuery(document).on("click",".js-e-productlist-filters-clear-all",function(e){e.preventDefault(),e4.ecom.productlist.filters.resetAll()}),e4.ecom.productlist.jProductList.on("change",".js-e-productlist-filters-option-reset-group",function(e){e.preventDefault(),jQuery(this).is(":checked")===!0?e4.ecom.productlist.filters.resetGroup(this):jQuery(this).prop("checked",!0)}),e4.ecom.productlist.setSort()},applyFilters:function(e){var t=jQuery(e);if(t.closest(".js-e-productlist-filters-group").find(".js-e-productlist-filters-option-reset-group").prop("checked",!1),t.is(":checked")===!1){var n=t.closest(".js-e-productlist-filters-group").find(".js-e-productlist-filter").filter(":checked").length;0===n&&t.closest(".js-e-productlist-filters-group").find(".js-e-productlist-filters-option-reset-group").prop("checked",!0)}e4.ecom.productlist.jProductList.find(".js-e-productlist-form").submit()},removeFilter:function(e){var t=jQuery(e).data("value"),n=jQuery(e).data("system-name");e4.ecom.productlist.jProductList.find('.js-e-productlist-filter[name="'+n+'"].js-e-productlist-filter[value="'+t+'"]').prop("checked",!1),e4.ecom.productlist.jProductList.find(".js-e-productlist-form").submit()},resetGroup:function(e){jQuery(e).closest(".js-e-productlist-filters-group").find(".js-e-productlist-filter").prop("checked",!1),e4.ecom.productlist.jProductList.find(".js-e-productlist-form").submit()},resetAll:function(){e4.ecom.productlist.jProductList.find(".js-e-productlist-filter").prop("checked",!1),e4.ecom.productlist.jProductList.find(".js-e-productlist-form").submit()}},setSort:function(){e4.ecom.productlist.jProductList.on("change","#sortProducts",function(){jQuery('input[name="SortOrder"]').val(jQuery(this).val()),e4.ecom.productlist.jProductList.find(".js-e-productlist-form").submit()})},setScrollTop:function(e){var t=jQuery(window);e<t.scrollTop()&&(e-=t.height()/100*e4.settings.scrollToAnchor.nudge,e4.scrollToAnchor.animate(e,e4.nav.global.hide))}},e4.ecom.cart={init:function(){1===jQuery(".js-e-cart-form").length?(e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerHelpers("loop compare"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-cart-orderline #js-e-handlebars-tmpl-cart-summery"),e4.ecom.cart.load()}),e4.ecom.cart.bindEvents()):jQuery(".js-e-cart-quantity").length>0&&e4.ecom.cart.updateQuantity()},bindEvents:function(){e4.ecom.cart.updateOrderlineTimeout=null,jQuery(".js-e-cart-form").on("submit",function(e){e.preventDefault()}).on("focus",".js-e-orderline-quantity",function(){jQuery(this).select()}).on("input",".js-e-orderline-quantity",function(e){
9null!==e4.ecom.cart.updateOrderlineTimeout&&(clearTimeout(e4.ecom.cart.updateOrderlineTimeout),e4.ecom.cart.updateOrderlineTimeout=null),e4.ecom.cart.updateOrderlineTimeout=setTimeout(function(){0!==parseInt(e.target.value)&&""!==e.target.value&&e4.ecom.cart.orderlines.update(e.target)},e4.settings.ecom.cart.updateOrderlineDelay)}).on("click",".js-e-orderline-update",function(e){e.preventDefault(),e4.ecom.cart.orderlines.update(this)}).on("click",".js-e-orderline-delete",function(e){e.preventDefault(),e4.ecom.cart.orderlines["delete"](this)})},ajax:function(e,t){var n=jQuery.ajax(jQuery.extend({url:e4.settings.ecom.cart.url,method:"POST",dataType:"json",cache:!1},e));n.done(function(e){"function"==typeof t&&t(e)}),n.fail(function(e,t,n){console.error(e,t,n)})},load:function(){var e=jQuery(".js-e-cart");e4.ecom.cart.ajax({method:"GET",beforeSend:function(){e.find(".js-e-loading-overlay").addClass("is-loading")}},function(t){e4.ecom.cart.updateContent(t),e4.ecom.cart.updateSummery(t),e4.ecom.cart.updateQuantity(t.cart.totalProductQuantity),e.find(".js-e-loading-overlay").removeClass("is-loading")})},updateContent:function(e){jQuery(".js-e-cart-orderlines").html(e4.handlebars.tmpl.cartOrderline(e)),e4.pageLoading.manualOverride(".js-e-cart-orderlines")},updateSummery:function(e){jQuery(".js-e-cart-summery").html(e4.handlebars.tmpl.cartSummery(e)),e4.pageLoading.manualOverride(".js-e-cart-summery")},updateQuantity:function(e){0===e?jQuery(".js-e-cart-quantity").html(""):isNaN(parseInt(e))===!0?e4.ecom.cart.ajax({method:"GET"},function(e){e4.ecom.cart.updateQuantity(e.cart.totalProductQuantity)}):jQuery(".js-e-cart-quantity").html(e)},orderlines:{update:function(e){var t=jQuery(".js-e-cart"),n=jQuery(e).closest(".
9js-e-cart-form"),r=jQuery(e).closest(".js-e-orderline"),i=parseInt(r.find(".js-e-orderline-quantity").val());0!==i?(n.find(".js-e-cart-form-cartcmd").val("updateorderlines"),e4.ecom.cart.ajax({data:n.serialize(),beforeSend:function(){t.find(".js-e-loading-overlay").addClass("is-loading")}},function(e){e4.ecom.cart.updateContent(e),e4.ecom.cart.updateSummery(e),e4.ecom.cart.updateQuantity(e.cart.totalProductQuantity),t.find(".js-e-loading-overlay").removeClass("is-loading"),jQuery("#"+r.attr("id")).find(".js-e-orderline-quantity").focus()})):e4.ecom.cart.orderlines["delete"](e)},"delete":function(e){var t=jQuery(".js-e-cart");e4.ecom.cart.ajax({data:{key:jQuery(e).closest(".js-e-orderline").attr("id"),CartCmd:"delorderline",Redirect:e4.settings.ecom.cart.url},beforeSend:function(){t.find(".js-e-loading-overlay").addClass("is-loading")}},function(e){e4.ecom.cart.updateContent(e),e4.ecom.cart.updateSummery(e),e4.ecom.cart.updateQuantity(e.cart.totalProductQuantity),t.find(".js-e-loading-overlay").removeClass("is-loading")})}}},e4.ecom.checkout={debug:!0,init:function(){1===jQuery(".js-e-checkout").length&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerHelpers("compare counter"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-checkout #js-e-handlebars-tmpl-cart #js-e-handlebars-tmpl-checkout-summery"),e4.handlebars.registerPartials("#js-e-handlebars-partial-gls #js-e-handlebars-partial-pacsoft"),e4.ecom.checkout.config(),e4.ecom.checkout.bindEvents()}),1===jQuery(".js-e-checkout-receipt").length&&e4.ecom.checkout.steps.receipt.init()},config:function(){for(var e=jQuery(".js-e-checkout-steps-deactivated").val().split(","),t=0;t<e.length;t++)void 0!==e4.ecom.checkout.steps.active[e[t]]&&(e4.ecom.checkout.steps.active[e[t]]=!1);jQuery.each(e4.ecom.checkout.steps.active,function(e,t){return t===!0?(e4.ecom.checkout.steps.first=e,!1):void(e4.ecom.checkout.steps.first="approve")})},bindEvents:function(){var e=void 0!==sessionStorage.checkoutStep?JSON.parse(sessionStorage.checkoutStep):null;null!==e&&(e4.ecom.checkout.steps.map=e.map),jQuery(window).on("hashchange",function(){var e=e4.util.hash.get("step");void 0!==e&&e4.ecom.checkout.order.get(e,e4.settings.ecom.checkout.delay)}),void 0===e4.util.hash.get("step")?null!==e?e.index<=1?e4.util.hash.replace("step",e4.ecom.checkout.steps.first):e4.util.hash.replace("step",e.name):e4.util.hash.replace("step",e4.ecom.checkout.steps.first):jQuery(window).triggerHandler("hashchange"),jQuery(".js-e-checkout").on("hidden.bs.collapse",".collapse",function(){e4.ecom.checkout.steps.current!==e4.ecom.checkout.steps.target&&Math.max(jQuery(window).width(),window.innerWidth)>e4.settings.breakpoint[e4.settings.ecom.checkout.multipageBreakpoint]&&e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget('.js-e-checkout-step[data-step="'+e4.ecom.checkout.steps.target+'"]:first')-jQuery(".js-e-header").height()),e4.ecom.checkout.steps.current=e4.ecom.checkout.steps.target}).on("hide.bs.collapse",".collapse",function(){e4.ecom.checkout.steps.current!==e4.ecom.checkout.steps.target&&Math.max(jQuery(window).width(),window.innerWidth)<=e4.settings.breakpoint[e4.settings.ecom.checkout.multipageBreakpoint]&&jQuery(window).scrollTop(0)}).on("show.bs.collapse",".collapse",function(){null!==e4.ecom.checkout.steps.direction&&jQuery(".js-e-checkout").addClass("e-checkout-direction-"+e4.ecom.checkout.steps.direction)}).on("shown.bs.collapse",".collapse",function(e){jQuery(e.currentTarget).find("form").validate()}).on("change",".js-e-checkout-toggle-field",function(e){e.preventDefault();var t=jQuery(this).val(),n=jQuery('.js-e-checkout-toggle-target[data-target="'+t+'"]');n.slideToggle(e4.settings.animation.speed),jQuery(this).is(":checked")===!1&&n.find("input, textarea").val("")}),e4.ecom.checkout.steps.init(),e4.ecom.checkout.cart.init(),e4.ecom.checkout.order.init()},cart:{init:function(){e4.ecom.checkout.cart.get(),e4.ecom.checkout.cart.bindEvents()},bindEvents:function(){jQuery(".js-e-checkout").on("change",".js-e-checkout-update-cart",function(){e4.ecom.checkout.cart.get()}).on("click",".js-e-checkout-update-cart-btn",function(){e4.ecom.checkout.cart.get()})},get:function(){jQuery.ajax({url:e4.settings.ecom.cart.url,type:"POST",beforeSend:function(){jQuery(".js-e-checkout-cart-loading-overlay").addClass("is-loading")},data:jQuery(".js-e-checkout-step-form").serialize()}).done(function(e){e4.ecom.checkout.cart.build(e),e4.ecom.checkout.debug===!0&&console.info(e)}).fail(function(e){e4.ecom.checkout.debug===!0&&(console.error("Failed to fetch CART DATA, please check your settings!."),console.error(e.responseText))})},build:function(e){setTimeout(function(){jQuery("#js-e-checkout-cart").html(e4.handlebars.tmpl.cart(e)),jQuery("#js-e-checkout-cart-modal").html(e4.handlebars.tmpl.cart(e)),e4.pageLoading.manualOverride("#js-e-checkout-cart")},e4.settings.ecom.checkout.delay)}},order:{hasChanged:{payment:!1,shipping:!1},init:function(){e4.ecom.checkout.order.bindEvents()},bindEvents:function(){jQuery(".js-e-checkout").on("change",".js-e-checkout-update-order",function(){var e=jQuery(this).closest(".
9js-e-checkout-step").data("step");e!==e4.util.hash.get("step")?e4.util.hash.set("step",e):jQuery(window).triggerHandler("hashchange")})},get:function(e,t){e4.ecom.checkout.steps.target=e,jQuery(".js-e-checkout-step-previous").val(e4.ecom.checkout.steps.current),jQuery(".js-e-checkout-step-current").val(e4.ecom.checkout.steps.target),jQuery(".js-e-checkout-step-index").val(e4.ecom.checkout.steps.map[e4.ecom.checkout.steps.target]),jQuery.ajax({url:e4.settings.ecom.checkout.url,type:"POST",beforeSend:function(){jQuery(".js-e-checkout-step-loading-overlay").addClass("is-loading")},data:jQuery(".js-e-checkout-step-form").serialize()}).done(function(e){e4.ecom.checkout.order.dataHandler(e,e4.ecom.checkout.steps.target,t),e4.ecom.checkout.debug===!0&&console.info(e)}).fail(function(e){e4.ecom.checkout.debug===!0&&(console.error("Failed to fetch ORDER DATA, please check your settings!"),console.error(e.responseText))})},dataHandler:function(e,t,n){var r=jQuery(".js-e-checkout-shipping-id-gls").val(),i=jQuery(".js-e-checkout-shipping-id-pacsoft").val();if(e.steps.shipping.hasChanged===!0&&(e4.ecom.checkout.order.hasChanged.shipping=e.steps.shipping.hasChanged,e.steps.shipping.hasChanged="e-checkout-step-has-changed"),e.steps.payment.hasChanged===!0&&(e4.ecom.checkout.order.hasChanged.payment=e.steps.payment.hasChanged,e.steps.payment.hasChanged="e-checkout-step-has-changed"),e.steps.shipping.shippingmethodID===r?(e.steps.shipping.isGLS=!0,e.steps.shipping.isPacsoft=!1,e.steps.shipping.isStandard=!1,e.steps.customer.alternativeBillingAddress=!0):e.steps.shipping.shippingmethodID===i?(e.steps.shipping.isPacsoft=!0,e.steps.shipping.isStandard=!1,e.steps.shipping.isGLS=!1,e.steps.customer.alternativeBillingAddress=!0):(e.steps.shipping.isStandard=!0,e.steps.shipping.isPacsoft=!1,e.steps.shipping.isGLS=!1),e.steps.index<=1)for(var s=0;s<e.steps.progress.length;s++)e4.ecom.checkout.steps.map[e.steps.progress[s].name]=e.steps.progress[s].index;sessionStorage.checkoutStep=JSON.stringify({name:e.steps.name,index:e.steps.index,map:e4.ecom.checkout.steps.map}),e4.ecom.checkout.order.build(e,t,n)},build:function(e,t,n){setTimeout(function(){jQuery("#js-e-checkout-form").html(e4.handlebars.tmpl.checkout(e)),jQuery("#js-e-checkout-summery-modal").html(e4.handlebars.tmpl.checkoutSummery(e)),e4.ecom.checkout.steps.handler["switch"](),e4.ecom.checkout.tracking.step(e.steps[e4.ecom.checkout.steps.current]),e4.pageLoading.manualOverride("#js-e-checkout-form")},n)}},steps:{first:"shipping",current:"shipping",active:{shipping:!0,customer:!0,payment:!0},target:null,map:{},direction:null,init:function(){e4.ecom.checkout.steps.handler.init(),e4.ecom.checkout.steps.shipping.init(),e4.ecom.checkout.steps.customer.init(),e4.ecom.checkout.steps.payment.init(),e4.ecom.checkout.steps.approve.init()},addressMapper:function(e,t){jQuery.each(t,function(t,n){e.find('input[name="'+t+'"]').val(n)})},handler:{init:function(){e4.ecom.checkout.steps.handler.next(),e4.ecom.checkout.steps.handler.edit(),e4.ecom.checkout.steps.handler.companyAddress()},"switch":function(){e4.ecom.checkout.steps.handler.methodChange(e4.ecom.checkout.steps.current);var e=jQuery("#js-e-checkout-accordion");e.find(".collapse.js-e-checkout-collapse-hide").collapse("hide"),e.find(".collapse.js-e-checkout-collapse-show").collapse("show"),void 0===e4.ecom.checkout.steps.map[e4.ecom.checkout.steps.target]?e4.util.hash.replace("step",e4.ecom.checkout.steps.first):void 0!==e4.ecom.checkout.steps[e4.ecom.checkout.steps.target].show&&e4.ecom.checkout.steps[e4.ecom.checkout.steps.target].show(),jQuery("body").attr("class","e-checkout-page e-checkout-page-"+e4.ecom.checkout.steps.target)},next:function(){jQuery(".js-e-checkout").on("click",".js-e-checkout-change-step",function(e){e.preventDefault();var t=jQuery(this).data("target").replace("#",""),n=jQuery(this).closest("form");n.valid()===!0&&(e4.ecom.checkout.steps.direction="next",e4.util.hash.set("step",t))})},companyAddress:function(){jQuery(".js-e-checkout").on("change",".js-e-checkout-company-toggle",function(e){e.preventDefault(),jQuery(this).closest(".
9js-e-checkout-step-form").find(".js-e-checkout-company-address-fieldset").toggle(),jQuery(this).closest(".js-e-checkout-step-form").find(".js-company-label-toggle").toggle()})},methodChange:function(e){"payment"!==e&&"shipping"!==e||(jQuery('.js-e-checkout-step[data-step="'+e+'"]').removeClass("e-checkout-step-has-changed"),e4.ecom.checkout.order.hasChanged[e]=!1)},edit:function(){jQuery(".js-e-checkout, .js-e-checkout-summery-modal").on("click",".js-e-checkout-edit-step",function(e){e.preventDefault();var t=jQuery(this).data("target").replace("#","");e4.ecom.checkout.steps.target=t,e4.ecom.checkout.steps.direction="previous",e4.util.hash.set("step",t)})}},customer:{init:function(){e4.ecom.checkout.steps.customer.bindEvents()},show:function(){"no"===jQuery(".js-e-checkout-has-alternative-billing-address:checked").val()&&e4.ecom.checkout.steps.customer.mapDeliveryToBilling(jQuery(".js-e-checkout-alternative-billing-address"))},bindEvents:function(){jQuery(".js-e-checkout").on("change",".js-e-checkout-has-alternative-billing-address",function(e){var t=jQuery(".js-e-checkout-alternative-billing-address");jQuery(this).is(":checked")===!0&&"yes"===jQuery(this).val()?(void 0===e.isTrigger&&e4.ecom.checkout.steps.customer.clear(),t.collapse("show"),e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(".js-e-checkout-alternative-billing-address"))):(t.collapse("hide"),e4.ecom.checkout.steps.customer.mapDeliveryToBilling(t))})},mapDeliveryToBilling:function(e){var t={EcomOrderCustomerName:jQuery('input[name="EcomOrderDeliveryName"]').val(),EcomOrderCustomerCompany:jQuery('input[name="EcomOrderDeliveryCompany"]').val(),EcomOrderCustomerAddress:jQuery('input[name="EcomOrderDeliveryAddress"]').val(),EcomOrderCustomerAddress2:jQuery('input[name="EcomOrderDeliveryAddress2"]').val(),EcomOrderCustmerZip:jQuery('input[name="EcomOrderDeliveryZip"]').val(),EcomOrderCustomerCity:jQuery('input[name="EcomOrderDeliveryCity"]').val(),EcomOrderCustomerPhone:jQuery('input[name="EcomOrderDeliveryPhone"]').val()};e4.ecom.checkout.steps.addressMapper(e,t)},clear:function(){jQuery(".js-e-checkout-alternative-billing-address").find('input[type="text"], input[type="number"]').val(""),jQuery(".js-e-checkout-alternative-billing-address").find('input[type="checkbox"]').prop("checked",!1)}},payment:{init:function(){}},shipping:{selected:null,init:function(){e4.ecom.checkout.steps.shipping.bindEvents()},show:function(){e4.ecom.checkout.steps.shipping.gls.init(),e4.ecom.checkout.steps.shipping.pacsoft.init()},clear:function(){var e=jQuery(".js-e-checkout-delivery-address");e.find('input[type="text"], input[type="number"]').val(""),e.find('input[type="checkbox"]').prop("checked",!1),e.find(".js-e-checkout-toggle-target").hide()},bindEvents:function(){jQuery(".js-e-checkout").on("change",".js-e-checkout-shipping-method",function(){var e=jQuery(this).val(),t=jQuery(".js-e-checkout-shipping-id-pacsoft").val(),n=jQuery(".js-e-checkout-shipping-id-gls").val();e===t?(e4.ecom.checkout.steps.shipping.pacsoft.show(),e4.ecom.checkout.steps.shipping.gls.hide(),e4.ecom.checkout.steps.shipping.standard.hide(),jQuery(".js-e-checkout-shipping-type").val("pacsoft")):e===n?(e4.ecom.checkout.steps.shipping.gls.show(),e4.ecom.checkout.steps.shipping.pacsoft.hide(),e4.ecom.checkout.steps.shipping.standard.hide(),jQuery(".js-e-checkout-shipping-type").val("gls")):(e4.ecom.checkout.steps.shipping.pacsoft.hide(),e4.ecom.checkout.steps.shipping.gls.hide(),e4.ecom.checkout.steps.shipping.standard.show(),jQuery(".js-e-checkout-shipping-type").val("standard"))}).on("click",".js-e-checkout-shippingmethod-pacsoft-lookup-btn",function(){var e=jQuery(".js-e-checkout-shippingmethod-pacsoft-zip").val();e4.ecom.checkout.steps.shipping.pacsoft.search(e)}).on("click",".js-e-checkout-shippingmethod-gls-lookup-btn",function(){var e=jQuery(".js-e-checkout-shippingmethod-gls-zip").val();e4.ecom.checkout.steps.shipping.gls.search(e)}).on("click",".js-e-checkout-shippingmethod-gls-result-item",function(){var e=jQuery(this).val();e4.ecom.checkout.steps.shipping.gls.set(e)}).on("click",".js-e-checkout-shippingmethod-pacsoft-result-item",function(){var e=jQuery(this).val();e4.ecom.checkout.steps.shipping.pacsoft.set(e)})},standard:{init:function(){},show:function(){jQuery(".js-e-checkout-delivery-address").collapse("show")},hide:function(){jQuery(".js-e-checkout-delivery-address").collapse("hide"),e4.ecom.checkout.steps.shipping.clear()}},pacsoft:{init:function(){e4.ecom.checkout.steps.shipping.pacsoft.bindEvents()},show:function(){jQuery(".js-e-checkout-shippingmethod-pacsoft").collapse("show")},hide:function(){jQuery(".js-e-checkout-shippingmethod-pacsoft").collapse("hide"),e4.ecom.checkout.steps.shipping.pacsoft.clear()},clear:function(){e4.ecom.checkout.steps.shipping.clear(),jQuery(".js-e-checkout-shippingmethod-pacsoft-id").val(""),jQuery(".js-e-checkout-shippingmethod-pacsoft-search-string").val(""),e4.ecom.checkout.steps.shipping.pacsoft.data=null,jQuery("#js-e-checkout-shippingmethod-pacsoft-results").slide
9Up(e4.settings.animation.speed,function(){jQuery(this).html("")})},bindEvents:function(){jQuery(".js-e-checkout").on("keydown blur",".js-e-checkout-shippingmethod-pacsoft-zip",function(e){var t=jQuery(this).val();jQuery(".js-e-checkout-shippingmethod-pacsoft-search-string").val(t+" "+jQuery(".js-e-checkout-shippingmethod-pacsoft-address").val()),t.length>3?9!==e.which&&13!==e.which&&"focusout"!==e.type||e4.ecom.checkout.steps.shipping.pacsoft.search(t):0===t.length&&e4.ecom.checkout.steps.shipping.pacsoft.clear()}).on("keydown blur",".js-e-checkout-shippingmethod-pacsoft-address",function(e){var t=jQuery(this).val();jQuery(".js-e-checkout-shippingmethod-pacsoft-search-string").val(jQuery(".js-e-checkout-shippingmethod-pacsoft-zip").val()+" "+t),jQuery(".js-e-checkout-shippingmethod-pacsoft-zip").val()&&t.length>3&&(9!==e.which&&13!==e.which&&"focusout"!==e.type||e4.ecom.checkout.steps.shipping.pacsoft.search(jQuery(".js-e-checkout-shippingmethod-pacsoft-zip").val()))}).on("click",".js-e-checkout-shippingmethod-pacsoft-edit-btn",function(e){e.preventDefault(),e4.ecom.checkout.steps.shipping.pacsoft.clear(),jQuery(window).triggerHandler("hashchange")})},set:function(e){for(var t=jQuery(".js-e-checkout-delivery-address"),n=0;n<e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints.length;n++)if(e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].isSelected="",e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].servicePointId===e){var r={EcomOrderDeliveryName:e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].name,EcomOrderDeliveryCompany:e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].name,EcomOrderDeliveryAddress:e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].deliveryAddress.streetName+" "+e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].deliveryAddress.streetNumber,EcomOrderDeliveryZip:e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].deliveryAddress.postalCode,EcomOrderDeliveryCity:e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].deliveryAddress.city};e4.ecom.checkout.steps.addressMapper(t,r),jQuery(".js-e-checkout-shippingmethod-pacsoft-id").val(e4.ecom.checkout.steps.shipping.pacsoft.data.servicePoints[n].servicePointId)}},search:function(e){var t=jQuery(".js-e-checkout-shippingmethod-pacsoft-address").val();jQuery.ajax({url:"/pnlookup.ashx",type:"POST",beforeSend:function(){jQuery(".js-e-checkout-step-loading-overlay").addClass("is-loading")},data:{countryCode:jQuery("#EcomOrderDeliveryCountry").val(),numberOfServicePoints:e4.settings.ecom.checkout.shipping.searchCount,postalCode:e,streetName:t}}).done(function(e){e4.ecom.checkout.debug===!0&&console.info(e),e4.ecom.checkout.steps.shipping.pacsoft.data=e.servicePointInformationResponse,jQuery(".js-e-checkout-step-loading-overlay").removeClass("is-loading"),e4.ecom.checkout.steps.shipping.pacsoft.build()})},build:function(){jQuery("#js-e-checkout-shippingmethod-pacsoft-results").html(e4.handlebars.partial.pacsoft(e4.ecom.checkout.steps.shipping.pacsoft.data)).slideDown(e4.settings.animation.speed,function(){e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(".js-e-checkout-shippingmethod-pacsoft"))})}},gls:{init:function(){e4.ecom.checkout.steps.shipping.gls.bindEvents()},show:function(){jQuery(".js-e-checkout-shippingmethod-gls").on("shown.bs.collapse",function(){jQuery(".js-e-checkout-shippingmethod-gls-zip").val()&&jQuery(".js-e-checkout-shippingmethod-gls-zip").trigger("keyup")}).collapse("show")},hide:function(){jQuery(".js-e-checkout-shippingmethod-gls").collapse("hide"),e4.ecom.checkout.steps.shipping.gls.clear()},clear:function(){e4.ecom.checkout.steps.shipping.clear(),jQuery(".js-e-checkout-shippingmethod-gls-id").val(""),jQuery(".js-e-checkout-shippingmethod-gls-search-string").val(""),e4.ecom.checkout.steps.shipping.gls.data=null,jQuery("#js-e-checkout-shippingmethod-gls-results").slideUp(e4.settings.animation.speed,function(){jQuery(this).html("")})},bindEvents:function(){jQuery(".js-e-checkout").on("keydown blur",".js-e-checkout-shippingmethod-gls-zip",function(e){var t=jQuery(this).val();jQuery(".js-e-checkout-shippingmethod-gls-search-string").val(t+" "+jQuery(".js-e-checkout-shippingmethod-gls-address").val()),t.length>3?9!==e.which&&13!==e.which&&"focusout"!==e.type||e4.ecom.checkout.steps.shipping.gls.search(t):0===t.length&&e4.ecom.checkout.steps.shipping.gls.clear()}).on("keydown blur",".js-e-checkout-shippingmethod-gls-address",function(e){var t=jQuery(this).val();jQuery(".js-e-checkout-shippingmethod-gls-search-string").val(jQuery(".js-e-checkout-shippingmethod-gls-zip").val()+" "+t),jQuery(".js-e-checkout-shippingmethod-gls-zip").val()&&t.length>3&&(9!==e.which&&13!==e.which&&"focusout"!==e.type||e4.ecom.checkout.steps.shipping.gls.search(jQuery(".js-e-checkout-shippingmethod-gls-zip").val()))}).on("click",".js-e-checkout-shippingmethod-gls-edit-btn",function(e){e.preventDefault(),e4.ecom.checkout.steps.shipping.gls.clear(),jQuery(window).triggerHandler("hashchange")})},set:function(e){for(var t=jQuery(".js-e-checkout-delivery-address"),n=0;n<e4.ecom.checkout.steps.shipping.gls.data.parcelshops.length;n++)if(e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].isSelected="",e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].Number===e){var r={EcomOrderDeliveryName:e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].CompanyName,EcomOrderDeliveryCompany:e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].Streetname2,EcomOrderDeliveryAddress:e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].Streetname,EcomOrderDeliveryZip:e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].ZipCode,EcomOrderDeliveryCity:e4.e
9com.checkout.steps.shipping.gls.data.parcelshops[n].CityName};e4.ecom.checkout.steps.addressMapper(t,r),jQuery(".js-e-checkout-shippingmethod-gls-id").val(e4.ecom.checkout.steps.shipping.gls.data.parcelshops[n].Number)}},search:function(e){var t=jQuery(".js-e-checkout-shippingmethod-gls-address").val();jQuery.ajax({url:"/glslookup.ashx",type:"POST",beforeSend:function(){jQuery(".js-e-checkout-step-loading-overlay").addClass("is-loading")},data:{count:e4.settings.ecom.checkout.shipping.searchCount,type:t?"ADDRESS":"ZIP",street:t,zipcode:e}}).done(function(e){e4.ecom.checkout.debug===!0&&console.info(e),e4.ecom.checkout.steps.shipping.gls.data=e,jQuery(".js-e-checkout-step-loading-overlay").removeClass("is-loading"),e4.ecom.checkout.steps.shipping.gls.build()})},build:function(){jQuery("#js-e-checkout-shippingmethod-gls-results").html(e4.handlebars.partial.gls(e4.ecom.checkout.steps.shipping.gls.data)).slideDown(e4.settings.animation.speed,function(){e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(".js-e-checkout-shippingmethod-gls"))})}}},approve:{init:function(){e4.ecom.checkout.steps.approve.termsAndConditions.init()},show:function(){jQuery(".js-e-checkout-approve-form").validate()},newsletterSubscription:function(){jQuery(".js-e-checkout").on("change",'input[name="Co3EspressoEcomOrderSubscribeToNewsletter"]',function(){jQuery(".js-e-checkout-approve-form").find('input[name="EcomOrderSubscribeToNewsletter"]').val(this.checked===!0?"true":"")}).triggerHandler("change")},termsAndConditions:{init:function(){e4.ecom.checkout.steps.approve.termsAndConditions.bindEvents(),e4.ecom.checkout.steps.approve.termsAndConditions.get()},bindEvents:function(){jQuery(".js-e-checkout").on("change",'input[name="EcomOrderCustomerAccepted"]',function(){jQuery('input[name="EcomOrderCustomerAccepted"]').prop("checked",jQuery(this).prop("checked"))}),jQuery(".js-e-accept-term-and-conditions").on("click",function(){jQuery('input[name="EcomOrderCustomerAccepted"]').prop("checked",!0)})},get:function(){jQuery.get(e4.settings.ecom.checkout.termsAndConditions,function(e){var t=jQuery(e).find(".e-content-main").html();jQuery(".js-e-checkout-modal-terms-and-conditions").replaceWith(t)})}}},receipt:{init:function(){e4.util.hash.remove("step"),sessionStorage.removeItem("checkoutStep");var e={index:5,name:"receipt"};e4.ecom.checkout.tracking.step(e)}}},tracking:{step:function(e){var t={event:"VirtualPageview",vpevent:"VirtualPageview",virtualPageURL:"/shop/cart/checkout?step="+e.index+" "+e.name,virtualPageTitle:"Order Step "+e.index+" – "+e.name},n={event:"checkout",ecommerce:{checkout:{actionField:{step:e.index}}}};e4.gtm.pushDataLayer(t),e4.gtm.pushDataLayer(n)}}},e4.gtm={init:function(){void 0!==window.google_tag_manager&&e4.gtm.bindEvents()},bindEvents:function(){jQuery(".js-e-search-form").on("getresult.e4.search",e4.gtm.search)},pushDataLayer:function(e){void 0!==window.dataLayer&&dataLayer.push(e)},login:function(){e4.gtm.pushDataLayer({LoggedOn:"OK",event:"LoggedOnDone"})},search:function(e,t){e4.gtm.pushDataLayer({event:"VirtualPageviewSearch",virtualPageSearchURL:"/search?q="+t.query,virtualPageSearchTitle:"Search"}),0===t.resultCount&&e4.gtm.pushDataLayer({eventCategory:"Zero searches",eventAction:t.query,eventLabel:"{{Page URL}}",eventValue:0,eventInteraction:!0,event:"track-ga-event"})},ecom:{addProduct:function(e,t){e4.gtm.pushDataLayer({event:"addToCart",ecommerce:{currencyCode:t.CurrencyCode,add:{products:[{name:t.Name,id:t.Number,price:t.Price,quantity:t.Quantity}]}}})},removeProduct:function(e,t){e4.gtm.pushDataLayer({event:"removeFromCart",ecommerce:{currencyCode:t.CurrencyCode,remove:{products:[{name:t.Name,id:t.Number,price:t.Price,quantity:t.Quantity}]}}})}}},e4.animateNumber={init:function(){var e=jQuery(".js-e-animate-number");e.length>0&&(e4.animateNumber.fixElementWidths(),e4.animateNumber.animate(),e4.animateNumber.bindEvents())},fixElementWidths:function(){jQuery(".js-e-animate-number").html(function(e,t){return jQuery("<span></span>").text(t).addClass("e-animate-number").width(this.offsetWidth)})},bindEvents:function(){e4.animateNumber.requestingAnimation=!1,jQuery(window).on("scroll",function(){e4.animateNumber.requestingAnimation===!1&&window.requestAnimationFrame(function(){e4.animateNumber.animate(),e4.animateNumber.requestingAnimation=!1}),e4.animateNumber.requestingAnimation=!0})},animate:function(){jQuery(".js-e-animate-number").each(function(){var e=jQuery(this);if(e4.util.isInViewport(e)===!0){e.removeClass("js-e-animate-number");var t=e.find(".e-animate-number"),n=parseInt(e.text()),r=e4.settings.animation.speed;r=n>1e4?15*r:n>5e3?12.5*r:n>1e3?11.125*r:n>250?10*r:n>100?8.75*r:n>50?7.5*r:n>10?6.25*r:5*r,e.prop("counter",0).animate({counter:n},{duration:r,easing:"linear",step:function(e){t.text(Math.ceil(e))}})}})}},function(){"use strict";jQuery(function(){e4.nav.init(),e4.breadcrumb.init(),e4.forms.init(),e4.ecom.cart.init()})}(),function(){"use strict";jQuery(window).on("load",function(){void 0!==e4.pageLoading&&(e4.pageLoading.showCanvas(),e4.pageLoading.hideOverlay()),e4.gtm.init(),e4.scrollReveal.init(),e4.parallax.init(),e4.scrollToAnchor.init(
9),e4.bootstrap.dropdown.init(),e4.bootstrap.carousel.init(),e4.bootstrap.modal.init(),e4.p.init(),e4.ecom.product.init(),e4.ecom.productlist.init(),e4.ecom.checkout.init(),e4.extranet.init(),e4.search.init(),e4.cookies.init(),e4.dealersearch.init(),e4.news.init(),e4.bootstrap.collapse.init(),e4.animateNumber.init()})}();var dvp=dvp||{},grecaptcha=grecaptcha||[];!function(){"use strict";jQuery(function(){dvp.init()}),dvp.init=function(){dvp.header.init(),dvp.flexTables.init(),dvp.product.init(),dvp.videos.init(),dvp.faq.init(),dvp.utilities.init(),dvp.search.init(),dvp.typeahead.init(),dvp.events.init(),dvp.news.init(),dvp.maps.init(),dvp.salesContacts.init(),dvp.animateTxt.init(),dvp.tooltip.init(),dvp.forms.init(),dvp.extranet.init(),dvp.geoIpRedirect.init(),dvp.imageAreaMap.init(),dvp.countryLookup.init(),dvp.countryProducts.init(),dvp.distributor.init(),dvp.shareFeed.init(),dvp.ourProductsUrl.init(),dvp.timeline.init()},dvp.animateTxt={init:function(){var e=jQuery(".p-txt-animate");e.length>0&&(dvp.animateTxt.animate(),dvp.animateTxt.bindEvents())},bindEvents:function(){dvp.animateTxt.isRAF=!1,jQuery(window).on("scroll",function(){dvp.animateTxt.isRAF===!1&&(window.requestAnimationFrame(function(){dvp.animateTxt.animate(),dvp.animateTxt.isRAF=!1}),dvp.animateTxt.isRAF=!0)})},animate:function(){jQuery(".p-txt-animate").each(function(){var e=jQuery(this);e4.util.isInViewport(e)===!0&&e.addClass("is-visible")})}},dvp.header={isRAF:!1,init:function(){dvp.header.fit(),dvp.header.bindEvents(),dvp.header.searchbar.bindEvents()},bindEvents:function(){var e=jQuery("body"),t=dvp.header.getBodyScrollBarWidth(e),n=0,r=document.documentElement.scrollTop,i=t>0,s=!1;jQuery(window).on("load resize",function(){dvp.header.isRAF===!1&&(window.requestAnimationFrame(function(){dvp.header.fit(),dvp.header.isRAF=!1}),dvp.header.isRAF=!0)}),jQuery(".e-dropdown-mega").on("shown.bs.dropdown hidden.bs.dropdown",function(t){"button"!==t.relatedTarget.localName&&("shown"===t.type&&i?(n=dvp.header.getElementScrollBarWidth(jQuery(t.target).find(".e-megamenu-container")),s=n>0,s&&(r=document.documentElement.scrollTop,e.addClass("no-sroll"))):"hidden"===t.type&&i&&s&&(e.removeClass("no-sroll"),document.documentElement.scrollTop=r))})},getBodyScrollBarWidth:function(e){var t=e.width();e.css("overflow","hidden");var n=e.width()-t;return e.css("overflow",""),n},getElementScrollBarWidth:function(e){var t=e[0].scrollWidth,n=e[0].offsetWidth,r=n-t;return r},fit:function(){for(var e=jQuery(".js-e-header"),t=jQuery("#js-e-canvas"),n=jQuery(".e-megamenu-container"),r=0;r<5;r++)setTimeout(function(){t.css("padding-top",Math.floor(e.height()-1))},60*r);window.innerWidth>991&&n.css("max-height",Math.floor(jQuery(window).height()-e.height()))},searchbar:{bindEvents:function(){jQuery(".js-dvp-typeahead-form").on("submit",function(e){e.preventDefault();var t=jQuery(".js-dvp-header-search-input").val();e4.util.hash.set("search",t)}).find(".js-dvp-header-search-input").on("input",function(){dvp.header.searchbar.toggleInputGroupState(this)}),jQuery(".js-trigger-search").on("click",function(e){e.preventDefault(),jQuery(".js-dvp-typeahead-form").trigger("submit")}),jQuery(".js-dvp-search-clear").on("click",function(){dvp.header.searchbar.clearInput(this)})},toggleInputGroupState:function(e){var t=jQuery(e).closest(".js-dvp-search-container").find(".js-dvp-search-action-group");""===e.value?t.addClass("is-empty"):t.removeClass("is-empty")},clearInput:function(e){jQuery(e).closest(".js-dvp-search-container").find(".js-dvp-header-search-input").val("").trigger("focus").triggerHandler("input")}}},dvp.flexTables={init:function(){dvp.flexTables.addStripes()},addStripes:function(){jQuery(".flex-table--stripe").each(function(){jQuery(this).find(".cell").each(function(){var e=jQuery(this).attr("style").match(/\d+/g)[0];e%2===0&&jQuery(this).addClass("is-striped")})})}},dvp.product={groupJsonByProperty:function(e,t){return e.reduce(function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e},{})},details:function(e){jQuery("#js-dvp-product-details").html(e4.handlebars.tmpl.dvpProductDetails(e)),setTimeout(function(){jQuery(".js-dvp-product-details-animate").addClass("show")},350)},scrollToRequestInfoForm:function(){jQuery(".js-dvp-product-details-more-info-section").length>0&&jQuery("#js-dvp-product-details").on("click",".js-dvp-product-details-more-info-btn",function(){var e=jQuery(".js-dvp-product-details-more-info-section").offset().top;e4.scrollToAnchor.animate(Math.max(e,0))})},init:function(){e4.util.require.js(e4.settings.require.handlebars,function(){if(e4.handlebars.registerHelpers("compare"),e4.handlebars.registerHelpers("math"),jQuery(".js-dvp-product-details-search-values").length>0){if(jQuery("#js-e-handlebars-tmpl-dvp-product-details").length>0){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-details"),""!==e4.util.hash.getCurrentHashStringValue()&&location.hash.indexOf("/")===-1?setTimeout(function(){jQuery('a[data-productname="'+e4.util.hash.getCurrentHashStringValue()+'"]').trigger("click")},350):setTimeout(function(){jQuery(".js-dvp-product-list-details").first().trigger("click");
10},350);var e=jQuery("#js-dvp-product-details");window.innerWidth>991&&e.css("min-height",e.height()+"px"),jQuery(".js-dvp-product-list-details").on("click",function(e){e.preventDefault();var t=jQuery(this),n=t.attr("title"),r=t.data("productname"),i=jQuery(".dvp-product-list-details");i.removeClass("active-product"),history.replaceState({},n,t.attr("href")),document.title=n,jQuery(".dvp-product-list-details",this).addClass("active-product"),dvp.product.details(JSON.parse(jQuery("."+r).html())),e4.bootstrap.carousel.init()})}var t=jQuery(".js-dvp-product-details-search-values"),n=t.data("range-id"),r=t.data("therapyarea-id");jQuery("#js-dvp-product-supportmaterials-vets").length>0&&e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-supportmaterials-vets"),jQuery("#js-dvp-product-supportmaterials-clients").length>0&&e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-supportmaterials-clients"),jQuery("#js-dvp-product-elearning").length>0&&e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-elearning"),jQuery("#js-dvp-product-websites").length>0&&e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-websites"),jQuery.getJSON(e4.settings.ecom.product.details.url+"?ri="+n+"&ta="+r,function(e){jQuery("#js-dvp-product-supportmaterials-vets").length>0&&(jQuery.isEmptyObject(e.vetSupportmaterials)?jQuery("#js-dvp-product-supportmaterials-vets").html(""):(jQuery("#js-dvp-product-supportmaterials-vets").html(e4.handlebars.tmpl.dvpProductSupportmaterialsVets(e)),setTimeout(function(){jQuery(".js-dvp-product-supportmaterials-vets-animate").addClass("show")},350))),jQuery("#js-dvp-product-supportmaterials-clients").length>0&&(jQuery.isEmptyObject(e.clientSupportmaterials)?jQuery("#js-dvp-product-supportmaterials-clients").html(""):(jQuery("#js-dvp-product-supportmaterials-clients").html(e4.handlebars.tmpl.dvpProductSupportmaterialsClients(e)),setTimeout(function(){jQuery(".js-dvp-product-supportmaterials-clients-animate").addClass("show")},350))),e4.ecom.product.init(),jQuery("#js-dvp-product-elearning").length>0&&(jQuery.isEmptyObject(e.elearning)?jQuery("#js-dvp-product-elearning").html(""):(jQuery("#js-dvp-product-elearning").html(e4.handlebars.tmpl.dvpProductElearning(e)),setTimeout(function(){jQuery(".js-dvp-product-elearning-animate").addClass("show")},350))),jQuery("#js-dvp-product-websites").length>0&&(jQuery.isEmptyObject(e.websites)?jQuery("#js-dvp-product-websites").html(""):(jQuery("#js-dvp-product-websites").html(e4.handlebars.tmpl.dvpProductWebsites(e)),setTimeout(function(){jQuery(".js-dvp-product-websites-animate").addClass("show")},350)))}),jQuery("#js-dvp-product-premium-content").length>0&&(e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-premium-content #js-e-handlebars-tmpl-dvp-product-premium-content-highlight #js-e-handlebars-tmpl-dvp-product-previous-premium-content"),jQuery.getJSON(e4.settings.search.premiumpages.url+"?ri="+n,function(e){if(jQuery.isEmptyObject(e.premiumPages))jQuery("#js-dvp-product-premium-content-highlight").html(""),jQuery("#js-dvp-product-premium-content").html(""),jQuery("#js-dvp-product-previous-premium-content").html("");else{var t=dvp.product.groupJsonByProperty(e.premiumPages,"previousCampaign");
10if(void 0!==t["false"]&&t["false"].length>0){var n={premiumPages:t["false"]};jQuery("#js-dvp-product-premium-content-highlight").html(e4.handlebars.tmpl.dvpProductPremiumContentHighlight(n)),jQuery("#js-dvp-product-premium-content").html(e4.handlebars.tmpl.dvpProductPremiumContent(n)),jQuery("#js-dvp-product-premium-content-highlight").on("click",".js-dvp-product-details-premium-content-highlight-banner-link",function(){var e=jQuery("#js-dvp-product-premium-content").offset().top;e4.scrollToAnchor.animate(Math.max(e,0))}),setTimeout(function(){jQuery(".js-dvp-product-premium-content-animate").addClass("show")},350)}else jQuery("#js-dvp-product-premium-content-highlight").html(""),jQuery("#js-dvp-product-premium-content").html("");if(void 0!==t["true"]&&t["true"].length>0){var r={premiumPages:t["true"]};jQuery("#js-dvp-product-previous-premium-content").html(e4.handlebars.tmpl.dvpProductPreviousPremiumContent(r)),setTimeout(function(){jQuery(".js-dvp-product-previous-premium-content-animate").addClass("show")},350)}else jQuery("#js-dvp-product-previous-premium-content").html("")}})),jQuery("#js-dvp-product-videos").length>0&&(e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-videos"),jQuery.getJSON(e4.settings.search.videos.url+"?ri="+n,function(e){jQuery.isEmptyObject(e.videos)?jQuery("#js-dvp-product-videos").html(""):(jQuery("#js-dvp-product-videos").html(e4.handlebars.tmpl.dvpProductVideos(e)),setTimeout(function(){dvp.videos.modal(),jQuery(".js-dvp-product-videos-animate").addClass("show")},350))}),jQuery("#js-dvp-product-videos").on("click",".collapse-peek-content",function(){jQuery(this).hasClass("show")||jQuery(this).parent().find(".collapse-peek-btn-show").trigger("click")})),jQuery("#js-dvp-product-faq").length>0&&(e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-product-faq"),jQuery.getJSON(e4.settings.search.faq.url+"?ri="+n,function(e){jQuery.isEmptyObject(e.faqs)?jQuery("#js-dvp-product-faq").html(""):(jQuery("#js-dvp-product-faq").html(e4.handlebars.tmpl.dvpProductFaq(e)),setTimeout(function(){dvp.faq.modal(),jQuery(".js-dvp-product-faq-animate").addClass("show")},350))})),dvp.product.scrollToRequestInfoForm()}})}},dvp.therapyareas={search:{count:0,get:function(e,t){return dvp.therapyareas.search.count=0,dvp.therapyareas.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.therapyareas.url,data:{q:e.value.toLowerCase(),ta:t},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.therapyareas.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){jQuery.isEmptyObject(t.therapyareas)||(dvp.therapyareas.search.count=t.therapyareas.length,dvp.therapyareas.search.show(e,t))},show:function(e,t){if(dvp.therapyareas.search.count>0){var n=jQuery(e).closest(".js-e-search");n.find(".js-dvp-search-therapy-areas").html(e4.handlebars.tmpl.dvpSearchTherapyareas(t)).removeClass("is-empty"),n.find(".js-e-search-therapyarea-count").text(dvp.therapyareas.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-therapy-areas").attr("id"))}else dvp.therapyareas.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-therapy-areas").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-therapy-areas").attr("id"))}}},dvp.supportmaterials={search:{count:0,get:function(e,t){return dvp.supportmaterials.search.count=0,dvp.supportmaterials.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.supportmaterials.url,data:{q:e.value.toLowerCase(),ri:t},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.supportmaterials.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){if(!jQuery.isEmptyObject(t.supportmaterials)){for(var n=0;n<t.supportmaterials.length;n++)dvp.supportmaterials.search.count+=t.supportmaterials[n].count;dvp.supportmaterials.search.show(e,t)}},show:function(e,t){if(dvp.supportmaterials.search.count>
100){var n=jQuery(e).closest(".js-e-search");n.find(".js-dvp-search-supportmaterials").html(e4.handlebars.tmpl.dvpSearchSupportmaterials(t)).removeClass("is-empty"),n.find(".js-e-search-supportmaterials-count").text(dvp.supportmaterials.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-supportmaterials").attr("id"))}else dvp.supportmaterials.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-supportmaterials").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-supportmaterials").attr("id"))}}},dvp.elearning={search:{count:0,get:function(e,t){return dvp.elearning.search.count=0,dvp.elearning.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.elearning.url,data:{q:e.value.toLowerCase(),ri:t},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.elearning.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){jQuery.isEmptyObject(t.supportmaterials)||(dvp.elearning.search.count=t.supportmaterials[0].count,dvp.elearning.search.show(e,t))},show:function(e,t){if(dvp.elearning.search.count>0){var n=jQuery(e).closest(".js-e-search");n.find(".js-dvp-search-elearning").html(e4.handlebars.tmpl.dvpSearchElearning(t)).removeClass("is-empty"),n.find(".js-e-search-elearning-count").text(dvp.elearning.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-elearning").attr("id"))}else dvp.elearning.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-elearning").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-elearning").attr("id"))}}},dvp.videos={search:{count:0,get:function(e,t,n){return dvp.videos.search.count=0,dvp.videos.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.videos.url,data:{q:e.value.toLowerCase(),ta:n},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.videos.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){if(!jQuery.isEmptyObject(t.videos)){for(var n=0;n<t.videos.length;n++)dvp.videos.search.count+=t.videos[n].videoCount;dvp.videos.search.show(e,t)}},show:function(e,t){if(dvp.videos.search.count>0){var n=jQuery(e).closest(".js-e-search"),r=3,i={display:t.display,videos:t.videos.slice(0,r),showMoreCount:t.videos.length-r};n.find(".js-dvp-search-videos").html(e4.handlebars.tmpl.dvpSearchVideos(i)).removeClass("is-empty"),n.find(".js-e-search-videos-count").text(dvp.videos.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-videos").attr("id")),dvp.videos.search.toggleShowAll(e,t,r),setTimeout(function(){dvp.videos.modal()},350)}else dvp.videos.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-videos").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-videos").attr("id"))},toggleShowAll:function(e,t,n){var r=jQuery(e).closest(".js-e-search").find(".js-dvp-search-videos-show-all");t.videos.length>n?r.find("a").attr("href",e4.settings.search.result.products.showAllLink).on("click",{domElm:e,videos:t},dvp.videos.search.showAll):(r.addClass("d-none"),r.find("a").off("click",dvp.videos.search.showAll))},showAll:function(e){if(dvp.videos.search.count>0&&void 0!==e.data){e.preventDefault();var t=jQuery(e.data.domElm).closest(".js-e-search");t.find(".js-dvp-search-videos").html(e4.handlebars.tmpl.dvpSearchVideos(e.data.videos)).removeClass("is-empty"),t.find(".js-dvp-search-videos-show-all").addClass("d-none"),t.find(".js-e-search-videos-count").text(dvp.videos.search.count),dvp.videos.modal()}}},modal:function(){e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-modal-video-content"),jQuery(".js-dvp-video-modal").on("click",function(){jQuery("#js-dvp-modal-video-content").html(e4.handlebars.tmpl.dvpModalVideoContent(JSON.parse(jQuery(this).next("script").html()))),dvp.utilities.copyToClipboard(),jQuery(".dvp-video-modal").modal("show")})}),jQuery(".dvp-video-modal").on("hidden.bs.modal",function(){jQuery("#js-dvp-modal-video-content").html(""),jQuery(".modal.fade:visible").length&&jQuery("body").addClass("modal-open")})},init:function(){dvp.videos.modal()}},dvp.faq={search:{categoryCount:0,count:0,get:function(e,t){return dvp.faq.search.count=0,dvp.faq.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.faq.url,data:{q:e.value.toLowerCase(),ri:t},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.faq.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){if(!jQuery.isEmptyObject(t.faqs)){for(var n=0;n<t.faqs.length;n++){var r=t.faqs[n].faq;dvp.faq.search.categoryCount+=t.faqs[n].faqCount;for(var i=0;i<r.length;i++)dvp.faq.search.count+=r[i].listCount}dvp.faq.search.show(e,t)}},show:function(e,t){if(dvp.faq.search.count>
100){var n=jQuery(e).closest(".js-e-search"),r=2,i={display:t.display,faqs:t.faqs.slice(0,r)};n.find(".js-dvp-search-faq").html(e4.handlebars.tmpl.dvpSearchFaq(i)).removeClass("is-empty"),n.find(".js-e-search-faq-count").text(dvp.faq.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-faq").attr("id")),dvp.faq.search.toggleShowAll(e,t,r),setTimeout(function(){dvp.faq.modal()},350)}else dvp.faq.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-faq").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-faq").attr("id"))},toggleShowAll:function(e,t,n){var r=jQuery(e).closest(".js-e-search").find(".js-dvp-search-faq-show-all");t.faqs.length>n?r.find("a").attr("href",e4.settings.search.result.products.showAllLink).on("click",{domElm:e,faqs:t},dvp.faq.search.showAll):(r.addClass("d-none"),r.find("a").off("click",dvp.faq.search.showAll))},showAll:function(e){if(dvp.faq.search.count>0&&void 0!==e.data){e.preventDefault();var t=jQuery(e.data.domElm).closest(".js-e-search");t.find(".js-dvp-search-faq").html(e4.handlebars.tmpl.dvpSearchFaq(e.data.faqs)).removeClass("is-empty"),t.find(".js-dvp-search-faq-show-all").addClass("d-none"),t.find(".js-e-search-faq-count").text(dvp.faq.search.count)}}},responsiveIframe:function(){jQuery(".dvp-rich-text-content iframe").each(function(){jQuery(this).parent().addClass("embed-responsive embed-responsive-16by9"),jQuery(this).addClass("embed-responsive-item")})},modal:function(){e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-modal-faq-content"),jQuery(".js-dvp-faq-modal").on("click",function(){jQuery("#js-dvp-modal-faq-content").html(e4.handlebars.tmpl.dvpModalFaqContent(JSON.parse(jQuery(this).next("script").html()))),dvp.faq.responsiveIframe(),dvp.utilities.copyToClipboard(),dvp.utilities.printElement(),jQuery(".dvp-faq-modal").modal("show")})}),jQuery(".dvp-faq-modal").on("hidden.bs.modal",function(){jQuery("#js-dvp-modal-faq-content").html(""),jQuery(".modal.fade:visible").length&&jQuery("body").addClass("modal-open")})},init:function(){jQuery(".dvp-rich-text-content iframe").length>0&&dvp.faq.responsiveIframe(),dvp.faq.modal()}},dvp.search={menu:{show:function(e){jQuery(".js-dvp-search-menu").find('a[data-scrollto="'+e+'"]').removeClass("d-none")},hide:function(e){jQuery(".js-dvp-search-menu").find('a[data-scrollto="'+e+'"]').addClass("d-none")},scrollTo:function(){jQuery(".js-dvp-search-menu").on("click","a",function(){var e=jQuery("#"+jQuery(this).data("scrollto")).offset(),t=jQuery(".js-e-search-modal .modal-dialog").offset(),n={top:e.top-t.top};jQuery(".js-e-search-modal").animate({scrollTop:n.top-20})})}},init:function(){dvp.search.menu.scrollTo()}},dvp.utilities={copyToClipboard:function(){jQuery(".js-copy-to-clipboard").on("click",function(){var e=jQuery("<input>");jQuery("body").append(e),e.val(jQuery(this).attr("href")).select(),document.execCommand("copy"),e.remove()})},printElement:function(){jQuery(".js-print").on("click",function(){window.print()})},init:function(){dvp.utilities.copyToClipboard()}},dvp.typeahead={init:function(){e4.settings.search.result.products.show===!0&&jQuery(".js-dvp-header-search-input").length>0&&e4.util.require.js(e4.settings.require.typeahead,function(){dvp.typeahead.bindEvents()})},bindEvents:function(){jQuery(".js-dvp-header-search-input").on("keydown",function(e){if(13===e.keyCode){var t=jQuery(this.form).find(".js-dvp-suggestions"),n=t.find(".tt-selectable").filter(".active");0===n.length&&"block"===t.css("display")&&jQuery(this.form).triggerHandler("submit")}}).typeahead({hint:!1,highlight:!0,minLength:2,classNames:{wrapper:"dvp-typeahead-wrapper js-dvp-typeahead-wrapper w-100",input:"js-dvp-header-search-input",menu:"js-dvp-suggestions dvp-suggestions dropdown-menu w-100",suggestion:"js-dvp-suggestions-item dropdown-item",open:"open",cursor:"active",highlight:"active"}},{name:"typeahead",limit:8,async:!0,source:function(e,t,n){dvp.typeahead.getSuggestions(e,function(e){n(e)})},display:function(e){return e.keyword}}).on("typeahead:autocomplete typeahead:select",function(e,t){null!==t&&(jQuery(this).typeahead("close"),jQuery(this.form).triggerHandler("submit"))})},getSuggestions:function(e,t){void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),e=jQuery.trim(e),""!==e&&(this.jqXHR=jQuery.ajax({type:"GET",url:e4.settings.search.typeahead.url,data:{q:e},dataType:"json"}),this.jqXHR.done(function(e){t(e.keywords)}))}},dvp.events={filter:{month:function(){jQuery(".js-dvp-event-filter").length>0&&jQuery(".js-dvp-event-filter").on("click",".nav-link",function(){jQuery(".js-dvp-event-filter").find(".nav-link").each(function(){jQuery(this).removeClass("active")}),jQuery(this).addClass("active");var e=jQuery(this).data("month-filter");"ALL"!==e?jQuery(".js-dvp-event-list").each(function(){jQuery(this).data("month-filter")!==e?jQuery(this).hide():jQuery(this).show()}):jQuery(".js-dvp-event-list").show()})}},search:{count:0,get:function(e){return dvp.events.search.count=0,dvp.events.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.events.url,data:{q:e.value.toLowerCase()},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.events.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){jQuery.isEmptyObject(t.events)||(dvp.events.search.count=t.events.length,dvp.events.search.show(e,t))},show:function(e,t){if(dvp.events.search.count>
100){var n=jQuery(e).closest(".js-e-search");n.find(".js-dvp-search-events").html(e4.handlebars.tmpl.dvpSearchEvents(t)).removeClass("is-empty"),n.find(".js-e-search-events-count").text(dvp.events.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-events").attr("id")),dvp.flexTables.init()}else dvp.events.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-events").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-events").attr("id"))}},init:function(){dvp.events.filter.month()}},dvp.news={filter:{month:function(){jQuery(".js-dvp-news-filter").length>0&&jQuery(".js-dvp-news-filter").on("click",".nav-link",function(){jQuery(".js-dvp-news-filter").find(".nav-link").each(function(){jQuery(this).removeClass("active")}),jQuery(this).addClass("active");var e=jQuery(this).data("month-filter");"ALL"!==e?jQuery(".js-dvp-news-list").each(function(){jQuery(this).data("month-filter")!==e?jQuery(this).hide():jQuery(this).show()}):jQuery(".js-dvp-news-list").show()})}},search:{count:0,get:function(e){return dvp.news.search.count=0,dvp.news.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.news.url,data:{q:e.value.toLowerCase()},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.news.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){jQuery.isEmptyObject(t.news)||(dvp.news.search.count=t.news.length,dvp.news.search.show(e,t))},show:function(e,t){if(dvp.news.search.count>0){var n=jQuery(e).closest(".js-e-search");n.find(".js-dvp-search-news").html(e4.handlebars.tmpl.dvpSearchNews(t)).removeClass("is-empty"),n.find(".js-e-search-news-count").text(dvp.news.search.count),dvp.search.menu.show(jQuery(n).find(".js-dvp-search-news").attr("id"))}else dvp.news.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-dvp-search-news").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-dvp-search-news").attr("id"))}},init:function(){dvp.news.filter.month()}},dvp.maps={GoogleMapsAPIkey:"",data:{},jMap:[],gmMap:{},gmGeocoder:function(){},init:function(){var e=jQuery(".js-dvp-maps");1===e.length&&(dvp.maps.GoogleMapsAPIkey=e.data("googlemapsapikey"),dvp.maps.jMap=e.find(".js-dvp-maps-googlemap"),dvp.maps.getData(),dvp.maps.apis.load())},apis:{load:function(){jQuery.when.apply(jQuery,[dvp.maps.apis.GoogleMaps.load(),dvp.maps.apis.MarkerClusterer.load(),dvp.maps.apis.jQueryUImap.load(),dvp.maps.apis.handlebars.load()]).then(function(){dvp.maps.map.init()})},GoogleMaps:{timeout:null,deferred:jQuery.Deferred(),load:function(){if(void 0!==window.google&&void 0!==google.maps)return dvp.maps.apis.GoogleMaps.callback();var e=document.createElement("script"),t=document.getElementsByTagName("script")[0];return e.src="//maps.googleapis.com/maps/api/js?key="+dvp.maps.GoogleMapsAPIkey+"&callback=dvp.maps.apis.GoogleMaps.callback",t.parentNode.insertBefore(e,t),dvp.maps.apis.GoogleMaps.timeout=setTimeout(dvp.maps.apis.GoogleMaps.deferred.reject,e4.settings.require.timeout),dvp.maps.apis.GoogleMaps.deferred.promise()},callback:function(){return clearTimeout(dvp.maps.apis.GoogleMaps.timeout),dvp.maps.apis.GoogleMaps.timeout=null,dvp.maps.gmGeocoder=new google.maps.Geocoder,dvp.maps.apis.GoogleMaps.deferred.resolve()}},jQueryUImap:{load:function(){return e4.util.require.js(e4.settings.require.jQueryUImap)}},MarkerClusterer:{load:function(){return e4.util.require.js(e4.settings.require.MarkerClusterer)}},handlebars:{load:function(){return e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerHelpers("loop"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-googlemap-infowindow")})}}},getData:function(){var e=jQuery(".js-dvp-maps").data("id");dvp.maps.data=dvp.mapsData[e].users,dvp.mapsData[e].users=null},map:{init:function(){dvp.maps.jMap.gmap({zoom:e4.settings.maps.zoom.initial,center:new google.maps.LatLng(e4.settings.maps.center.initialLat,e4.settings.maps.center.initialLng),mapTypeControl:!1,scrollwheel:!1}).on("init",function(){dvp.maps.clusterer.init(),dvp.maps.markers.init(),dvp.maps.map.bindEvents()})},bindEvents:function(){jQuery(window).on("resize",function(){dvp.maps.jMap.gmap("refresh")})},fitBoundsAndCenter:function(){dvp.maps.jMap.gmap("get","map").fitBounds(dvp.maps.markers.bounds),dvp.maps.jMap.gmap("get","map").setCenter(dvp.maps.markers.bounds.getCenter())}},clusterer:{init:function(){dvp.maps.jMap.gmap("set","MarkerClusterer",new MarkerClusterer(dvp.maps.jMap.gmap("get","map"),[],{maxZoom:e4.settings.maps.zoom.max-1,averageCenter:!0,imagePath:"//cdn.rawgit.com/googlemaps/js-marker-clusterer/gh-pages/images/m"}))},addMarkers:function(){dvp.maps.jMap.gmap("get","MarkerClusterer").addMarkers(dvp.maps.data.markers)}},markers:{bounds:function(){},init:function(){dvp.maps.markers.build(),dvp.maps.clusterer.addMarkers(),dvp.maps.markers.bindEvents()},build:function(){dvp.maps.data.markers=[],dvp.maps.markers.bounds=new google.maps.LatLngBounds,jQuery.each(dvp.maps.data,function(e,t){var n=parseFloat(t.lat),r=parseFloat(t.lng);if(isNaN(n)||isNaN(r)||Math.abs(n)>90||Math.abs(r)>
10180)console.error("Error - lat/lng data not valid for this address: "+t.name);else{var i=new google.maps.LatLng(n,r);dvp.maps.data.markers.push(new google.maps.Marker({id:t.id,position:i,data:t,distanceToAddress:0})),dvp.maps.markers.bounds.extend(i)}})},bindEvents:function(){jQuery.each(dvp.maps.data.markers,function(e,t){google.maps.event.addListener(t,"click",function(){dvp.maps.jMap.gmap("openInfoWindow",{content:dvp.maps.markers.getInfoWindowContent(t)},t),e4.gtm.pushDataLayer({eventCategory:"Map",eventAction:t.data.name,eventLabel:location.pathname,eventValue:0,eventInteraction:!1,event:"track-ga-event"})})})},getInfoWindowContent:function(e){return e4.handlebars.tmpl.googlemapInfowindow(e.data)},showOnMap:function(e){var t=dvp.maps.jMap.gmap("get","map");t.panTo(e.getPosition()),google.maps.event.trigger(e,"click")}}},dvp.salesContacts={init:function(){dvp.salesContacts.search.bindEvents()},search:{get:function(e,t){void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort();var n="";""!==e?n="?scz="+e:""!==t&&(n="?scn="+t),""!==n&&(this.jqXHR=jQuery.ajax({url:e4.settings.search.salesContacts.url+n,method:"GET",dataType:"json"}),this.jqXHR.done(function(e){dvp.salesContacts.search.build(e)}))},build:function(e){e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-dvp-sales-contacts"),jQuery(".js-dvp-sales-contacts-form-results").html(e4.handlebars.tmpl.dvpSalesContacts(e))})},bindEvents:function(){var e=jQuery(".js-dvp-sales-contacts-form");e.length>0&&(e.find('[name="sales-contacts-zip"]').on("focus",function(){e.find('[name="sales-contacts-name"]').val("")}),e.find('[name="sales-contacts-name"]').on("focus",function(){e.find('[name="sales-contacts-zip"]').val("")}),e.on("submit",function(e){e.preventDefault();var t=jQuery(this).find('[name="sales-contacts-zip"]').val(),n=jQuery(this).find('[name="sales-contacts-name"]').val();dvp.salesContacts.search.get(t,n)}))}}},dvp.tooltip={init:function(){jQuery('[data-toggle="tooltip"]').tooltip()}},dvp.forms={bindEvents:function(){jQuery(".js-e-form-dw").each(function(){if(jQuery(this).find('select[name="MailRecipient"]').length>0&&jQuery(this).find('input[name="MailRecipientLabel"]').length>0){var e=jQuery(this).find('input[name="MailRecipientLabel"]');jQuery(this).on("change",'select[name="MailRecipient"]',function(){e.val(jQuery("option:selected",this).text().trim())})}})},init:function(){jQuery(".js-e-form-dw").length>0&&dvp.forms.bindEvents()}},dvp.extranet={addRules:function(){jQuery.validator.addMethod("userregex",function(e,t,n){var r=new RegExp(n);return this.optional(t)||r.test(e)})},addValidation:function(){var e=jQuery('form[name="UserManagementEditForm"], .js-validate-password-recovery');e.validate({ignore:".ignore",rules:{AccessUserEmail:{required:!0,email:!0},UserManagement_Form_Email:{required:!0,email:!0},UserManagement_Form_UserName:{required:!0,userregex:"^[a-zA-Z0-9_-]{3,50}$"},UserManagement_Form_OldPassword:{required:function(){return 0!==jQuery('input[name="UserManagement_Form_NewPassword"]').val().length}},UserManagement_Form_NewPassword:{minlength:6},UserManagement_Form_NewPasswordConfirm:{equalTo:'input[name="UserManagement_Form_NewPassword"]'},hiddenRecaptcha:{required:function(){return""===grecaptcha.getResponse()}}},groups:{UserManagement_Form_Zip:"UserManagement_Form_Zip UserManagement_Form_City"},validClass:"is-valid",errorClass:"is-invalid",focusInvalid:!1,highlight:function(e,t){jQuery(e).addClass(t).closest(".form-fields").addClass(t)},unhighlight:function(e,t){jQuery(e).removeClass(t).closest(".form-fields").removeClass(t)},errorPlacement:function(e,t){var n=t.closest(".form-fields");e.addClass("form-text small invalid-feedback"),n.append(e)},invalidHandler:function(e,t){var n=jQuery(t.invalidElements()[0]);e4.util.isInViewport(n)===!0?t.focusInvalid():(n.focus(),e4.scrollToAnchor.animate(.875*n.closest(".form-fields").offset().top,e4.nav.global.hide))},submitHandler:function(t){""===t.UserManagement_Form_NewPassword.value&&""===t.UserManagement_Form_NewPasswordConfirm.value?e.find(":password").prop("disabled",!0):e.find(":password").filter(function(){return""===this.value}).prop("disabled",!0),t.submit()}}),1===jQuery('input[name="UserManagement_Form_OldPassword"]').length&&jQuery('input[name="UserManagement_Form_NewPassword"]').on("change keyup",function(){jQuery('input[name="UserManagement_Form_OldPassword"]').valid()})},loadTranslations:function(){var e=e4.settings.lang;"en"!==e?("nb"===e||"nn"===e?e="no":"se"===e&&(e="sv"),e4.util.require.js({url:"//ajax.aspnetcdn.com/ajax/jquery.validate/1.17.0/localization/messages_"+e+".js",fallback:"/files/system/espresso/design/js/vendor/jquery.validate.messages_"+e+".js",callback:function(){dvp.extranet.extendTranslations(e)}})):dvp.extranet.extendTranslations(e)},extendTranslations:function(e){void 0!==e4.settings.forms.validate.messages[e]&&jQuery.extend(jQuery.validator.messages,e4.settings.forms.validate.messages[e])},countrySelector:{warningMessage:function(){var e=jQuery(".js-dechra-user-country-selector");e.length>0&&e.on("change",function(){var e=jQuery(this).data("current-country-code"),t=this.value;jQuery(".js-dechra-country-warning-message").addClass("d-none"),e!==t&&jQuery(".js-dechra-country-warning-message").removeClass("d-none")}).triggerHandler("change")}},editing:{checkboxes:function(){jQuery("form").on("change",".js-dechra-checkbox-edit",function(){var e=jQuery(this),t=e.data("name"),n=e.is(":checked");jQuery('input[name="'+t+'"]').val(n?"True":"")})},bindEvents:function(){dvp.extranet.editing.checkboxes()}},tracking:function(){jQuery(".js-track-new-user-preparation").length>0&&null===localStorage.getItem("DvpNewUser")&&localStorage.setItem("DvpNewUser",!0),jQuery(".js-track-new-user-trigger").length>0&&null!==localStorage.getItem("DvpNewUser")&&"true"===localStorage.getItem("DvpNewUser")&&(localStorage.setItem("DvpNewUser",!1),e4.gtm.pushDataLayer({eventCategory:"dvp-registration",eventAction:"register",eventLabel:"new-user",eventValue:0,eventInteraction:!0,event:"track-ga-event"}))},login:function(){jQuery("body").on("click",".js-dvp-extranet-login",function(){jQuery(this).hasClass("js-dvp-extranet-login-premium-content")&&jQuery(".dvp-login-modal").find(".js-dvp-login-modal-premium-content").removeClass("d-none"),jQuery(".dvp-login-modal").modal("show")}),jQuery(".js-dvp-login-modal-error").length>0&&jQuery(".dvp-login-modal").modal("show"),jQuery(".dvp-login-modal").on("shown.bs.modal",function(){jQuery("input",this).first().focus()}),jQuery(".dvp-login-modal").on("hidden.bs.modal",function(){jQuery(".dvp-login-modal").find(".js-dvp-login-modal-premium-content").addClass("d-none"),jQuery(".modal.fade:visible").length&&jQuery("body").addClass("modal-open")})},init:function(){dvp.extranet.login(),dvp.extranet.tracking(),e4.util.require.js(e4.settings.require.jQueryValidate,function(){dvp.extranet.loadTranslations(),dvp.extranet.addRules(),dvp.extranet.addValidation()}),dvp.extranet.countrySelector.warningMessage(),dvp.extranet.editing.bindEvents(),jQuery(".js-hiddenRecaptcha").length>0&&e4.util.require.js({url:"//www.google.com/recaptcha/api.js",fallback:""})}},dvp.geoIpRedirect={modal:{show:function(){jQuery(".dvp-geo-ip-country-modal").length>0&&jQuery(".dvp-geo-ip-country-modal").modal()},dismissed:function(){jQuery(".dvp-geo-ip-country-modal").on("hide.bs.modal",function(){var e=jQuery(".js-dvp-geo-ip-dismiss-button").data("geo-ip-country");jQuery(".js-dvp-set-geo-ip-country").each(function(){var t=jQuery(this).attr("href")+"?geo="+e;jQuery(this).attr("href",t)})})}},init:function(){dvp.geoIpRedirect.modal.show(),dvp.geoIpRedirect.modal.dismissed()}},dvp.imageAreaMap={scale:function(e){var t=e,n=function(){t.each(function(){var e=jQuery(this);jQuery("<img />").on("load",function(){var t="width",n="height",r=e.attr(t),i=e.attr(n);if(!r||!i){var s=new Image;s.src=e.attr("src"),
11r||(r=s.width),i||(i=s.height)}var a=e.width()/100,o=e.height()/100,c=e.attr("usemap").replace("#",""),u="coords";jQuery('map[name="'+c+'"]').find("area").each(function(){var e=jQuery(this);e.data(u)||e.data(u,e.attr(u));for(var t=e.data(u).split(","),n=new Array(t.length),s=0;s<n.length;++s)s%2===0?n[s]=parseInt(t[s]/r*100*a):n[s]=parseInt(t[s]/i*100*o);e.attr(u,n.toString())})}).attr("src",e.attr("src"))})};return jQuery(window).resize(n).trigger("resize"),this},init:function(){jQuery("img[usemap]").length>0&&dvp.imageAreaMap.scale(jQuery("img[usemap]"))}},dvp.countryLookup={list:null,geoCountry:null,get:function(){jQuery.when(jQuery.ajax({url:"/system/data/countries",data:{country:jQuery(".js-com-geo-ip-country-suggestion").data("geo-ip-country")},method:"GET",dataType:"json",cache:!1,success:function(e){dvp.countryLookup.geoCountry=e}}),jQuery.ajax({url:"/system/data/countries",method:"GET",dataType:"json",cache:!1,success:function(e){dvp.countryLookup.list=e}})).then(function(){dvp.countryLookup.update()})},update:function(){jQuery(".js-com-geo-ip-country-suggestion").html(e4.handlebars.tmpl.comGeoIpCountrySuggestion(dvp.countryLookup.geoCountry)),jQuery(".js-com-geo-ip-country-list").html(e4.handlebars.tmpl.comGeoIpCountryList(dvp.countryLookup.list)),dvp.countryLookup.search(),dvp.countryLookup.show()},show:function(){void 0===jQuery.cookie("GeoIpCountryModal")&&(jQuery(".com-geo-ip-country-modal").modal(),jQuery.cookie("GeoIpCountryModal","Shown",{path:"/",expires:15}))},search:function(){jQuery(".com-geo-ip-country-modal").on("keyup",".js-com-geo-ip-country-search-input",function(){var e=jQuery(this).val().toLowerCase();jQuery(".js-com-geo-ip-country-search-list").find("a").each(function(){jQuery(this).text().toLowerCase().search(e)>-1||jQuery(this).data("geo-ip-country").toLowerCase()===e?jQuery(this).show():jQuery(this).hide()})})},init:function(){jQuery(".com-geo-ip-country-modal").length>0&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-com-geo-ip-country-suggestion #js-e-handlebars-tmpl-com-geo-ip-country-list"),dvp.countryLookup.get()})}},dvp.countryProducts={step1:null,step2:null,step3:null,url:"/system/data/countryproducts",countryCode:jQuery(".js-com-product-view").data("c
11ountry-code"),getStep1:function(){jQuery.when(jQuery.ajax({url:dvp.countryProducts.url,data:{country:dvp.countryProducts.countryCode},method:"GET",dataType:"json",cache:!1,success:function(e){dvp.countryProducts.step1=e}})).then(function(){dvp.countryProducts.update("step1")})},getStep2:function(e){jQuery.when(jQuery.ajax({url:dvp.countryProducts.url,data:{country:dvp.countryProducts.countryCode,speciesGroup:e},method:"GET",dataType:"json",cache:!1,success:function(e){dvp.countryProducts.step2=e}})).then(function(){dvp.countryProducts.update("step2")})},getStep3:function(e){jQuery.when(jQuery.ajax({url:dvp.countryProducts.url,data:e.serialize(),method:"GET",dataType:"json",cache:!1,success:function(e){dvp.countryProducts.step3=e}})).then(function(){dvp.countryProducts.update("step3")})},update:function(e){"step1"===e?jQuery(".js-com-product-view").html(e4.handlebars.tmpl.comGeoIpCountryProductsStep1(dvp.countryProducts.step1)):"step2"===e?jQuery(".js-com-product-view-slide").slideUp(400,function(){jQuery(".js-com-product-view").html(e4.handlebars.tmpl.comGeoIpCountryProductsStep2(dvp.countryProducts.step2)),jQuery(".js-com-product-view").find(".js-com-product-list").html(e4.handlebars.tmpl.comGeoIpCountryProductsStep3(dvp.countryProducts.step2))}):"step3"===e&&jQuery(".js-com-product-view").find(".js-com-product-list").html(e4.handlebars.tmpl.comGeoIpCountryProductsStep3(dvp.countryProducts.step3))},bindings:function(){jQuery(".js-com-product-view").on("click",".js-com-product-species-group",function(){dvp.countryProducts.getStep2(jQuery(this).data("species-group"))}),jQuery(".js-com-product-view").on("submit",".js-e-productlist-form",function(e){e.preventDefault(),dvp.countryProducts.getStep3(jQuery(this))}),jQuery(".js-com-product-view").on("click",".js-com-product-more-info-overlay-button-open",function(){var e=jQuery(this);e.parents(".js-e-products-item").find(".js-com-product-more-info-overlay-container").find(".js-com-product-more-info-overlay").fadeToggle("fast",function(){e.toggleClass("disabled")})}),jQuery(".js-com-product-view").on("click",".js-com-product-more-info-overlay-button-close",function(){var e=jQuery(this);e.parents(".js-com-product-more-info-overlay").fadeToggle("fast",function(){e.parents(".js-e-products-item").find(".js-com-product-more-info-overlay-button-open").toggleClass("disabled")})})},init:function(){jQuery(".js-com-product-view").length>0&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-com-geo-ip-country-products-step1 #js-e-handlebars-tmpl-com-geo-ip-country-products-step2 #js-e-handlebars-tmpl-com-geo-ip-country-products-step3"),dvp.countryProducts.getStep1(),dvp.countryProducts.bindings()})}},dvp.distributor={list:null,get:function(){jQuery.ajax({url:"/system/data/countries",method:"GET",dataType:"json",cache:!1,success:function(e){dvp.distributor.list=e,dvp.distributor.update()}})},update:function(){jQuery(".js-e-dealersearch-country").html(e4.handlebars.tmpl.comCountryList(dvp.distributor.list)),dvp.distributor.bindings()},bindings:function(){jQuery(".js-e-dealersearch-country").on("change",function(){var e=jQuery("option:selected",this).data("name"),t=jQuery("option:selected",this).data("representation"),n=jQuery("option:selected",this).data("website"),r={name:e,representation:t,website:n};"HasNetwork"!==t?jQuery(".js-com-distributor-messages").html(e4.handlebars.tmpl.comCountryMessages(r)):jQuery(".js-com-distributor-messages").html("")}).trigger("change"),jQuery(".js-com-country-map-reset").on("click",function(){jQuery(".js-e-dealersearch-country").trigger("change"),jQuery(this).removeClass("d-block").addClass("d-none"),null!==e4.dealersearch.markers.marker&&e4.dealersearch.jMap.gmap("closeInfoWindow",e4.dealersearch.markers.marker)})},init:function(){jQuery(".js-com-distributor").length>0&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-com-country-list #js-e-handlebars-tmpl-com-country-messages"),dvp.distributor.get()})}},dvp.shareFeed={feed:"/system/data/sharefeed",get:function(){jQuery.ajax({url:dvp.shareFeed.feed,method:"GET",dataType:"json",cache:!1,success:function(e){dvp.shareFeed.update(e)}})},update:function(e){jQuery(".js-com-share-feed-container").html(e4.handlebars.tmpl.comShareFeed(e))},init:function(){jQuery(".js-com-share-feed-container").length>0&&e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-com-share-feed"),dvp.shareFeed.get()})}},dvp.ourProductsUrl={update:function(){void 0!==jQuery.cookie("GeoIpCountryUrl")&&jQuery(".js-com-country-url").each(function(){jQuery(this).find("a").attr("href",jQuery.cookie("GeoIpCountryUrl"))})},init:function(){jQuery(".js-com-country-url").length>
110&&dvp.ourProductsUrl.update()}},dvp.reports={search:{count:0,get:function(e){return dvp.reports.search.count=0,dvp.reports.search.hide(e),void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:e4.settings.search.reports.url,data:{q:e.value.toLowerCase()},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(t){dvp.reports.search.update(e,t)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},update:function(e,t){jQuery.isEmptyObject(t.reports)||(dvp.reports.search.count=t.reports.length,dvp.reports.search.show(e,t))},show:function(e,t){if(dvp.reports.search.count>0){var n=jQuery(e).closest(".js-e-search");n.find(".js-com-search-reports").html(e4.handlebars.tmpl.comSearchReports(t)).removeClass("is-empty"),n.find(".js-e-search-reports-count").text(dvp.reports.search.count),dvp.search.menu.show(jQuery(n).find(".js-com-search-reports").attr("id"))}else dvp.reports.search.hide(e)},hide:function(e){jQuery(e).closest(".js-e-search").find(".js-com-search-reports").addClass("is-empty").html(""),dvp.search.menu.hide(jQuery(e).closest(".js-e-search").find(".js-com-search-reports").attr("id"))}}},dvp.timeline={data:{},betterData:{},filteredData:{},filterType:[],filterCountry:[],strStaticParentClass:".js-dvp-timeline",get:function(e,t){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState&&this.jqXHR.abort(),this.jqXHR=jQuery.ajax({url:"https://sheets.googleapis.com/v4/spreadsheets/"+e+"/values/"+t,data:{alt:"json",key:"AIzaSyCshpU-MiIFUkyyyUpMljQv8OgqSEJmYTE"},method:"GET",dataType:"json",cache:!1}),this.jqXHR.done(function(e){dvp.timeline.data=e,dvp.timeline.restructureData(dvp.timeline.data)}),this.jqXHR},abort:function(){return void 0!==this.jqXHR&&4!==this.jqXHR.readyState?this.jqXHR.abort():jQuery.Deferred().reject()},bindings:function(){jQuery(dvp.timeline.strStaticParentClass).on("change",".js-dvp-timeline-slider",function(){dvp.timeline.filter()}),jQuery(dvp.timeline.strStaticParentClass).on("click",".js-dvp-timeline-filter-type",function(){var e=!0,t=!1;jQuery(this).hasClass("js-dvp-timeline-reset-filter-type")&&!jQuery(this).hasClass("active")&&(t=!0),jQuery(".js-dvp-timeline-filter-type").each(function(){t?(jQuery(this).find('input[type="checkbox"]').prop("checked",!1),jQuery(this).removeClass("active")):jQuery(this).find('input[type="checkbox"]').is(":checked")?(jQuery(this).addClass("active"),jQuery(".js-dvp-timeline-reset-filter-type").removeClass("active"),e=!1):jQuery(this).removeClass("active")}),e&&jQuery(".js-dvp-timeline-reset-filter-type").addClass("active"),dvp.timeline.filter()}),jQuery(dvp.timeline.strStaticParentClass).on("click",".js-dvp-timeline-filter-country",function(){var e=!0,t=!1;jQuery(this).hasClass("js-dvp-timeline-reset-filter-country")&&!jQuery(this).hasClass("active")&&(t=!0),jQuery(".js-dvp-timeline-filter-country").each(function(){t?(jQuery(this).find('input[type="checkbox"]').prop("checked",!1),jQuery(this).removeClass("active")):jQuery(this).find('input[type="checkbox"]').is(":checked")?(jQuery(this).addClass("active"),jQuery(".js-dvp-timeline-reset-filter-country").removeClass("active"),e=!1):jQuery(this).removeClass("active")}),e&&jQuery(".js-dvp-timeline-reset-filter-country").addClass("active"),dvp.timeline.filter()}),jQuery(dvp.timeline.strStaticParentClass).on("click",".js-dvp-timeline-scrollto",function(e){e.preventDefault(),e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget(this.hash))}),jQuery(dvp.timeline.strStaticParentClass).on("click",".js-dvp-timeline-filter-group-toggle-button",function(){jQuery(this).toggleClass("open"),jQuery(dvp.timeline.strStaticParentClass).find(".js-dvp-timeline-filter-group").toggleClass("dvp-timeline-filter-group-visible"),jQuery(dvp.timeline.strStaticParentClass).find(".js-dvp-timeline-filter-group").hasClass("dvp-timeline-filter-group-visible")&&e4.scrollToAnchor.animate(e4.scrollToAnchor.getTarget("#dvp-timeline-reset-scroll"))})},restructureData:function(e){if(e.values.length>0){for(var t=[],n={Filters:{Types:[],Countries:[]},Title:"",Text:"",Image:"",Timeline:[]},r=0;r<e.values.length;r++){for(var i={Year:0,DisplayDate:"",Title:"",Text:"",Image:"",Type:[],Countries:[]},s=e.values[r],a=0;a<s.length;a++)if(""!==s[0])if(0===r)t.push(s[a]);else if(1===r)"Headline"===t[a]?n.Title=s[a]:"Text"===t[a]?n.Text=s[a]:"Media"===t[a]&&(n.Image=s[a]);else if("Start Date"===t[a])i.Year=s[a];else if("Display Date"===t[a])i.DisplayDate=s[a];else if("Headline"===t[a])i.Title=s[a];else if("Text"===t[a])i.Text=s[a];else if("Media"===t[a])i.Image=s[a];else if("Tag"===t[a]){if(i.Type=s[a].split(","),""!==s[a])for(var o=0;o<i.Type.length;o++)dvp.timeline.filterType.indexOf(i.Type[o])===-1&&dvp.timeline.filterType.push(s[a])}else if("Country"===t[a]&&(i.Countries=s[a].split(","),""!==s[a]))for(var c=0;c<i.Countries.length;c++)dvp.timeline.filterCountry.indexOf(i.Countries[c])===-1&&dvp.timeline.filterCountry.push(i.Countries[c]);""!==i.Title&&n.Timeline.push(i)}n.Filters.Types=dvp.timeline.filterType,n.Filters.Countries=dvp.timeline.filterCountry,dvp.timeline.betterData=n,dvp.timeline.updateAll(dvp.timeline.betterData)}else console.log("No data found.")},filter:function(){var e=jQuery(".js-dvp-timeline-slider").val(),t=[];jQuery(".js-dvp-timeline-filter-type").find('input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&""!==jQuery(this).val()&&t.pu
11sh(jQuery(this).val())});var n=[];jQuery(".js-dvp-timeline-filter-country").find('input[type="checkbox"]').each(function(){jQuery(this).is(":checked")&&""!==jQuery(this).val()&&n.push(jQuery(this).val())}),dvp.timeline.filteredData=dvp.timeline.betterData.Timeline.filter(function(r){return r.Year>=e&&r.Type.some(function(e){return!(t.length>0)||t.indexOf(e)>=0})&&r.Countries.some(function(e){return!(n.length>0)||n.indexOf(e)>=0})}),dvp.timeline.updatePartial({Timeline:dvp.timeline.filteredData})},updateAll:function(e){jQuery(dvp.timeline.strStaticParentClass).html(e4.handlebars.tmpl.timeline(e)),dvp.timeline.bindings()},updatePartial:function(e){jQuery(".js-dvp-timeline-items").html(e4.handlebars.partial.timelineItems(e))},init:function(){jQuery(dvp.timeline.strStaticParentClass).length>0&&(""!==jQuery(dvp.timeline.strStaticParentClass).data("sheet-id")&&""!==jQuery(dvp.timeline.strStaticParentClass).data("sheet-name")?e4.util.require.js(e4.settings.require.handlebars,function(){e4.handlebars.registerPartials("#js-e-handlebars-partial-timeline-items"),e4.handlebars.registerTemplates("#js-e-handlebars-tmpl-timeline"),e4.handlebars.registerHelpers("compare"),e4.handlebars.registerHelpers("math"),dvp.timeline.get(jQuery(dvp.timeline.strStaticParentClass).data("sheet-id"),jQuery(dvp.timeline.strStaticParentClass).data("sheet-name"))}):jQuery(dvp.timeline.strStaticParentClass).html(""))}}}();
12//# sourceMappingURL=/files/templates/designs/dechra-com/_assets/_dist/js/default.js.map

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