function supportsVideo(){return!!document.createElement("video").canPlayType}function isInViewport(c){var a=c.getBoundingClientRect(),b=window.innerHeight||document.documentElement.clientHeight;return a.top>=0&&a.top<=b||a.bottom>=0&&a.bottom<=b||a.top<=0&&a.bottom>=b}if(function(b,a){"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?module.exports=a():b.Tether=a()}(this,function(){"use strict";var u,b,k,C,n,O,p,B,d,m,E,i,R,a,v,j,I,L,M,o,J,w,q,x,y,N,K;function H(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function t(c){var d=c.getBoundingClientRect(),a={},e,f,b;for(e in d)a[e]=d[e];try{c.ownerDocument!==document&&(f=c.ownerDocument.defaultView.frameElement,f&&(b=t(f),a.top+=b.top,a.bottom+=b.top,a.left+=b.left,a.right+=b.left))}catch(a){}return a}function F(b){var g=getComputedStyle(b)||{},f=g.position,c=[],a,d,e,h,i;if("fixed"===f)return[b];for(a=b;(a=a.parentNode)&&a&&1===a.nodeType;){d=void 0;try{d=getComputedStyle(a)}catch(a){}if(void 0===d||null===d)return c.push(a),c;e=d,h=e.overflow,i=e.overflowX,/(auto|scroll|overlay)/.test(h+e.overflowY+i)&&("absolute"!==f||["relative","absolute","fixed"].indexOf(d.position)>=0)&&c.push(a)}return c.push(b.ownerDocument.body),b.ownerDocument!==document&&c.push(b.ownerDocument.defaultView),c}function D(){k&&document.body.removeChild(k),k=null}function c(c){var b=void 0,d,a,e;return c===document?(b=document,c=document.documentElement):b=c.ownerDocument,d=b.documentElement,a=t(c),e=O(),a.top-=e.top,a.left-=e.left,void 0===a.width&&(a.width=document.body.scrollWidth-a.left-a.right),void 0===a.height&&(a.height=document.body.scrollHeight-a.top-a.bottom),a.top=a.top-d.clientTop,a.left=a.left-d.clientLeft,a.right=b.body.clientWidth-a.width-a.left,a.bottom=b.body.clientHeight-a.height-a.top,a}function l(a){return a.offsetParent||document.documentElement}function s(){var b,a,d,c,e;return p||(b=document.createElement("div"),b.style.width="100%",b.style.height="200px",a=document.createElement("div"),f(a.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),a.appendChild(b),document.body.appendChild(a),d=b.offsetWidth,a.style.overflow="scroll",c=b.offsetWidth,d===c&&(c=a.clientWidth),document.body.removeChild(a),e=d-c,p={width:e,height:e})}function f(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=[];return Array.prototype.push.apply(b,arguments),b.slice(1).forEach(function(b){if(b)for(var c in b)({}.hasOwnProperty.call(b,c)&&(a[c]=b[c]))}),a}function h(a,b){if(void 0!==a.classList)b.split(" ").forEach(function(b){b.trim()&&a.classList.remove(b)});else{var c=new RegExp("(^| )"+b.split(" ").join("|")+"( |$)","gi"),d=z(a).replace(c," ");Q(a,d)}}function g(a,b){if(void 0!==a.classList)b.split(" ").forEach(function(b){b.trim()&&a.classList.add(b)});else{h(a,b);var c=z(a)+" "+b;Q(a,c)}}function A(a,b){if(void 0!==a.classList)return a.classList.contains(b);var c=z(a);return new RegExp("(^| )"+b+"( |$)","gi").test(c)}function z(a){return a.className instanceof a.ownerDocument.defaultView.SVGAnimatedString?a.className.baseVal:a.className}function Q(a,b){a.setAttribute("class",b)}function e(a,b,c){c.forEach(function(c){-1===b.indexOf(c)&&A(a,c)&&h(a,c)}),b.forEach(function(b){A(a,b)||g(a,b)})}function H(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function S(b,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}function T(a,b){var c=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return a+c>=b&&b>=a-c}function G(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}function P(){for(var b={top:0,left:0},c=arguments.length,d=Array(c),a=0;a<c;a++)d[a]=arguments[a];return d.forEach(function(d){var a=d.top,c=d.left;"string"==typeof a&&(a=parseFloat(a,10)),"string"==typeof c&&(c=parseFloat(c,10)),b.top+=a,b.left+=c}),b}function r(a,b){return"string"==typeof a.left&&-1!==a.left.indexOf("%")&&(a.left=parseFloat(a.left,10)/100*b.width),"string"==typeof a.top&&-1!==a.top.indexOf("%")&&(a.top=parseFloat(a.top,10)/100*b.height),a}function U(b,a){return"scrollParent"===a?a=b.scrollParents[0]:"window"===a&&(a=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),a===document&&(a=a.documentElement),void 0!==a.nodeType&&function(){var f=a,e=c(a),b=e,g=getComputedStyle(a),d;a=[b.left,b.top,e.width+b.left,e.height+b.top],f.ownerDocument!==document&&(d=f.ownerDocument.defaultView,a[0]+=d.pageXOffset,a[1]+=d.pageYOffset,a[2]+=d.pageXOffset,a[3]+=d.pageYOffset),K.forEach(function(b,c){b=b[0].toUpperCase()+b.substr(1),"Top"===b||"Left"===b?a[c]+=parseFloat(g["border"+b+"Width"]):a[c]-=parseFloat(g["border"+b+"Width"])})}(),a}if(u=function(){function a(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),b=void 0,void 0===b&&(b={modules:[]}),k=null,C=function(){var a=0;return function(){return++a}}(),n={},O=function(){var a=k,b;return a&&document.body.contains(a)||(a=document.createElement("div"),a.setAttribute("data-tether-id",C()),f(a.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(a),k=a),b=a.getAttribute("data-tether-id"),void 0===n[b]&&(n[b]=t(a),d(function(){delete n[b]})),n[b]},p=null,B=[],d=function(a){B.push(a)},m=function(){for(var a=void 0;a=B.pop();)a()},E=function(){function a(){H(this,a)}return u(a,[{key:"on",value:function(a,b,c){var d=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[a]&&(this.bindings[a]=[]),this.bindings[a].push({handler:b,ctx:c,once:d})}},{key:"once",value:function(a,b,c){this.on(a,b,c,!0)}},{key:"off",value:function(a,c){if(void 0!==this.bindings&&void 0!==this.bindings[a])if(void 0===c)delete this.bindings[a];else for(var b=0;b<this.bindings[a].length;)this.bindings[a][b].handler===c?this.bindings[a].splice(b,1):++b}},{key:"trigger",value:function(c){var a,d,g,b,f,h,i,j,e;if(void 0!==this.bindings&&this.bindings[c]){for(a=0,d=arguments.length,g=Array(d>1?d-1:0),b=1;b<d;b++)g[b-1]=arguments[b];for(;a<this.bindings[c].length;)f=this.bindings[c][a],h=f.handler,i=f.ctx,j=f.once,e=i,void 0===e&&(e=this),h.apply(e,g),j?this.bindings[c].splice(a,1):++a}}}]),a}(),b.Utils={getActualBoundingClientRect:t,getScrollParents:F,getBounds:c,getOffsetParent:l,extend:f,addClass:g,removeClass:h,hasClass:A,updateClasses:e,defer:d,flush:m,uniqueId:C,Evented:E,getScrollBarSize:s,removeUtilElements:D},i=function(){function a(h,g){var b=[],c=!0,e=!1,f=void 0,d,a;try{for(d,a=h[Symbol.iterator]();!(c=(d=a.next()).done)&&(b.push(d.value),!g||b.length!==g);c=!0);}catch(a){e=!0,f=a}finally{try{!c&&a.return&&a.return()}finally{if(e)throw f}}return b}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function a(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),R=function(e,i,f){for(var c=!0,b,g,h,a,j,d;c;){if(b=e,g=i,h=f,c=!1,null===b&&(b=Function.prototype),a=Object.getOwnPropertyDescriptor(b,g),void 0!==a){if("value"in a)return a.value;if(j=a.get,void 0===j)return;return j.call(h)}if(d=Object.getPrototypeOf(b),null===d)return;e=d,i=g,f=h,c=!0,a=d=void 0}},void 0===b)throw new Error("You must include the utils.js file before tether.js");return a=b.Utils,F=a.getScrollParents,c=a.getBounds,l=a.getOffsetParent,f=a.extend,g=a.addClass,h=a.removeClass,e=a.updateClasses,d=a.defer,m=a.flush,s=a.getScrollBarSize,D=a.removeUtilElements,v=function(){var d,b,a,c;if("undefined"==typeof document)return"";for(d=document.createElement("div"),b=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],a=0;a<b.length;++a)if(c=b[a],void 0!==d.style[c])return c}(),j=[],I=function(){j.forEach(function(a){a.position(!1)}),m()},!function(){var b=null,a=null,c=null,d=function d(){if(void 0!==a&&a>16)return a=Math.min(a-16,250),void(c=setTimeout(d,250));void 0!==b&&G()-b<10||(null!=c&&(clearTimeout(c),c=null),b=G(),I(),a=G()-b)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(a){window.addEventListener(a,d)})}(),L={center:"center",left:"right",right:"left"},M={middle:"middle",top:"bottom",bottom:"top"},o={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},J=function(c,d){var a=c.left,b=c.top;return"auto"===a&&(a=L[d.left]),"auto"===b&&(b=M[d.top]),{left:a,top:b}},w=function(a){var b=a.left,c=a.top;return void 0!==o[a.left]&&(b=o[a.left]),void 0!==o[a.top]&&(c=o[a.top]),{left:b,top:c}},q=function(b){var c=b.split(" "),a=i(c,2);return{top:a[0],left:a[1]}},x=q,y=function(i){function a(c){var d=this;H(this,a),R(Object.getPrototypeOf(a.prototype),"constructor",this).call(this),this.position=this.position.bind(this),j.push(this),this.history=[],this.setOptions(c,!1),b.modules.forEach(function(a){void 0!==a.initialize&&a.initialize.call(d)}),this.position()}return S(a,i),u(a,[{key:"getClass",value:function(){var a=arguments.length<=0||void 0===arguments[0]?"":arguments[0],b=this.options.classes;return void 0!==b&&b[a]?this.options.classes[a]:this.options.classPrefix?this.options.classPrefix+"-"+a:a}},{key:"setOptions",value:function(c){var a=this,d=arguments.length<=1||void 0===arguments[1]||arguments[1],e={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},b,h,i,j;if(this.options=f(e,c),b=this.options,h=b.element,i=b.target,j=b.targetModifier,this.element=h,this.target=i,this.targetModifier=j,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(b){if(void 0===a[b])throw new Error("Tether Error: Both element and target must be defined");void 0!==a[b].jquery?a[b]=a[b][0]:"string"==typeof a[b]&&(a[b]=document.querySelector(a[b]))}),g(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&g(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=x(this.options.targetAttachment),this.attachment=x(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=F(this.target),!1!==this.options.enabled&&this.enable(d)}},{key:"getTargetBounds",value:function(){var b,a,d,f,i,g,e,h,j;if(void 0===this.targetModifier)return c(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:(b=c(this.target),a={height:b.height,width:b.width,top:b.top,left:b.left},a.height=Math.min(a.height,b.height-(pageYOffset-b.top)),a.height=Math.min(a.height,b.height-(b.top+b.height-(pageYOffset+innerHeight))),a.height=Math.min(innerHeight,a.height),a.height-=2,a.width=Math.min(a.width,b.width-(pageXOffset-b.left)),a.width=Math.min(a.width,b.width-(b.left+b.width-(pageXOffset+innerWidth))),a.width=Math.min(innerWidth,a.width),a.width-=2,a.top<pageYOffset&&(a.top=pageYOffset),a.left<pageXOffset&&(a.left=pageXOffset),a);if("scroll-handle"===this.targetModifier)return b=void 0,d=this.target,d===document.body?(d=document.documentElement,b={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):b=c(d),f=getComputedStyle(d),i=d.scrollWidth>d.clientWidth||[f.overflow,f.overflowX].indexOf("scroll")>=0||this.target!==document.body,g=0,i&&(g=15),e=b.height-parseFloat(f.borderTopWidth)-parseFloat(f.borderBottomWidth)-g,a={width:15,height:.975*e*(e/d.scrollHeight),left:b.left+b.width-parseFloat(f.borderLeftWidth)-15},h=0,e<408&&this.target===document.body&&(h=-11e-5*Math.pow(e,2)-.00727*e+22.58),this.target!==document.body&&(a.height=Math.max(a.height,24)),j=this.target.scrollTop/(d.scrollHeight-e),a.top=j*(e-a.height-h)+b.top+parseFloat(f.borderTopWidth),this.target===document.body&&(a.height=Math.max(a.height,24)),a}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(a,b){return void 0===this._cache&&(this._cache={}),void 0===this._cache[a]&&(this._cache[a]=b.call(this)),this._cache[a]}},{key:"enable",value:function(){var a=this,b=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(b){b!==a.target.ownerDocument&&b.addEventListener("scroll",a.position)}),b&&this.position()}},{key:"disable",value:function(){var a=this;h(this.target,this.getClass("enabled")),h(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(b){b.removeEventListener("scroll",a.position)})}},{key:"destroy",value:function(){var a=this;this.disable(),j.forEach(function(b,c){b===a&&j.splice(c,1)}),0===j.length&&D()}},{key:"updateAttachClasses",value:function(b,c){var a=this,h,f,g;b=b||this.attachment,c=c||this.targetAttachment,h=["left","top","bottom","right","middle","center"],void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]),f=this._addAttachClasses,b.top&&f.push(this.getClass("element-attached")+"-"+b.top),b.left&&f.push(this.getClass("element-attached")+"-"+b.left),c.top&&f.push(this.getClass("target-attached")+"-"+c.top),c.left&&f.push(this.getClass("target-attached")+"-"+c.left),g=[],h.forEach(function(b){g.push(a.getClass("element-attached")+"-"+b),g.push(a.getClass("target-attached")+"-"+b)}),d(function(){void 0!==a._addAttachClasses&&(e(a.element,a._addAttachClasses,g),!1!==a.options.addTargetClasses&&e(a.target,a._addAttachClasses,g),delete a._addAttachClasses)})}},{key:"position",value:function(){var k=this,C=arguments.length<=0||void 0===arguments[0]||arguments[0],t,q,e,f,v,p,x,n,j,A,y,h,g,u,B,i,a,d,z,o;if(this.enabled){this.clearCache(),t=J(this.targetAttachment,this.attachment),this.updateAttachClasses(this.attachment,t),q=this.cache("element-bounds",function(){return c(k.element)}),e=q.width,f=q.height,0===e&&0===f&&void 0!==this.lastSize?(v=this.lastSize,e=v.width,f=v.height):this.lastSize={width:e,height:f},p=this.cache("target-bounds",function(){return k.getTargetBounds()}),x=p,n=r(w(this.attachment),{width:e,height:f}),j=r(w(t),x),A=r(this.offset,{width:e,height:f}),y=r(this.targetOffset,x),n=P(n,A),j=P(j,y);for(h=p.left+j.left-n.left,g=p.top+j.top-n.top,u=0;u<b.modules.length;++u){if(B=b.modules[u],i=B.position.call(this,{left:h,top:g,targetAttachment:t,targetPos:p,elementPos:q,offset:n,targetOffset:j,manualOffset:A,manualTargetOffset:y,scrollbarSize:o,attachment:this.attachment}),!1===i)return!1;void 0!==i&&"object"==typeof i&&(g=i.top,h=i.left)}return a={page:{top:g,left:h},viewport:{top:g-pageYOffset,bottom:pageYOffset-g-f+innerHeight,left:h-pageXOffset,right:pageXOffset-h-e+innerWidth}},d=this.target.ownerDocument,z=d.defaultView,o=void 0,z.innerHeight>d.documentElement.clientHeight&&(o=this.cache("scrollbar-size",s),a.viewport.bottom-=o.height),z.innerWidth>d.documentElement.clientWidth&&(o=this.cache("scrollbar-size",s),a.viewport.right-=o.width),-1!==["","static"].indexOf(d.body.style.position)&&-1!==["","static"].indexOf(d.body.parentElement.style.position)||(a.page.bottom=d.body.scrollHeight-g-f,a.page.right=d.body.scrollWidth-h-e),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var f=k.cache("target-offsetparent",function(){return l(k.target)}),b=k.cache("target-offsetparent-bounds",function(){return c(f)}),h=getComputedStyle(f),g=b,e={},i,j;["Top","Left","Bottom","Right"].forEach(function(a){e[a.toLowerCase()]=parseFloat(h["border"+a+"Width"])}),b.right=d.body.scrollWidth-b.left-g.width+e.right,b.bottom=d.body.scrollHeight-b.top-g.height+e.bottom,a.page.top>=b.top+e.top&&a.page.bottom>=b.bottom&&a.page.left>=b.left+e.left&&a.page.right>=b.right&&(i=f.scrollTop,j=f.scrollLeft,a.offset={top:a.page.top-b.top+i-e.top,left:a.page.left-b.left+j-e.left})}(),this.move(a),this.history.unshift(a),this.history.length>3&&this.history.pop(),C&&m(),!0}}},{key:"move",value:function(h){var c=this,b,i,g,n,k,m,a,j,o,p,e,q,r,s;if(void 0!==this.element.parentNode){b={};for(i in h){b[i]={};for(g in h[i]){for(n=!1,k=0;k<this.history.length;++k)if(m=this.history[k],void 0!==m[i]&&!T(m[i][g],h[i][g])){n=!0;break}n||(b[i][g]=!0)}}if(a={top:"",left:"",right:"",bottom:""},j=function(f,b){if(!1!==(void 0!==c.options.optimizations?c.options.optimizations.gpu:null)){var d=void 0,e=void 0;f.top?(a.top=0,d=b.top):(a.bottom=0,d=-b.bottom),f.left?(a.left=0,e=b.left):(a.right=0,e=-b.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(e=Math.round(e*devicePixelRatio)/devicePixelRatio,d=Math.round(d*devicePixelRatio)/devicePixelRatio),a[v]="translateX("+e+"px) translateY("+d+"px)","msTransform"!==v&&(a[v]+=" translateZ(0)")}else f.top?a.top=b.top+"px":a.bottom=b.bottom+"px",f.left?a.left=b.left+"px":a.right=b.right+"px"},o=!1,(b.page.top||b.page.bottom)&&(b.page.left||b.page.right)?(a.position="absolute",j(b.page,h.page)):(b.viewport.top||b.viewport.bottom)&&(b.viewport.left||b.viewport.right)?(a.position="fixed",j(b.viewport,h.viewport)):void 0!==b.offset&&b.offset.top&&b.offset.left?function(){a.position="absolute";var e=c.cache("target-offsetparent",function(){return l(c.target)});l(c.element)!==e&&d(function(){c.element.parentNode.removeChild(c.element),e.appendChild(c.element)}),j(b.offset,h.offset),o=!0}():(a.position="absolute",j({top:!0,left:!0},h.page)),!o)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(p=!0,e=this.element.parentNode;e&&1===e.nodeType&&"BODY"!==e.tagName&&!function(b){var a=b.ownerDocument;return(a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement)===b}(e);){if("static"!==getComputedStyle(e).position){p=!1;break}e=e.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}q={},r=!1;for(g in a)s=a[g],this.element.style[g]!==s&&(r=!0,q[g]=s);r&&d(function(){f(c.element.style,q),c.trigger("repositioned")})}}}]),a}(E),y.modules=[],b.position=I,N=f(y,b),i=function(){function a(h,g){var b=[],c=!0,e=!1,f=void 0,d,a;try{for(d,a=h[Symbol.iterator]();!(c=(d=a.next()).done)&&(b.push(d.value),!g||b.length!==g);c=!0);}catch(a){e=!0,f=a}finally{try{!c&&a.return&&a.return()}finally{if(e)throw f}}return b}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=b.Utils,c=a.getBounds,f=a.extend,e=a.updateClasses,d=a.defer,K=["left","top","right","bottom"],b.modules.push({position:function(q){var l=this,g=q.top,b=q.left,r=q.targetAttachment,t,j,k,u,s,m,n,p,o,h,a;return!this.options.constraints||(t=this.cache("element-bounds",function(){return c(l.element)}),j=t.height,k=t.width,0===k&&0===j&&void 0!==this.lastSize&&(u=this.lastSize,k=u.width,j=u.height),s=this.cache("target-bounds",function(){return l.getTargetBounds()}),m=s.height,n=s.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")],this.options.constraints.forEach(function(a){var b=a.outOfBoundsClass,c=a.pinnedClass;b&&p.push(b),c&&p.push(c)}),p.forEach(function(a){["left","top","right","bottom"].forEach(function(b){p.push(a+"-"+b)})}),o=[],h=f({},r),a=f({},this.attachment),this.options.constraints.forEach(function(t){var w=t.to,s=t.attachment,d=t.pin,f,p,v,u,c,e,q;void 0===s&&(s=""),f=void 0,p=void 0,s.indexOf(" ")>=0?(v=s.split(" "),u=i(v,2),p=u[0],f=u[1]):f=p=s,c=U(l,w),"target"!==p&&"both"!==p||(g<c[1]&&"top"===h.top&&(g+=m,h.top="bottom"),g+j>c[3]&&"bottom"===h.top&&(g-=m,h.top="top")),"together"===p&&("top"===h.top&&("bottom"===a.top&&g<c[1]?(g+=m,h.top="bottom",g+=j,a.top="top"):"top"===a.top&&g+j>c[3]&&g-(j-m)>=c[1]&&(g-=j-m,h.top="bottom",a.top="bottom")),"bottom"===h.top&&("top"===a.top&&g+j>c[3]?(g-=m,h.top="top",g-=j,a.top="bottom"):"bottom"===a.top&&g<c[1]&&g+(2*j-m)<=c[3]&&(g+=j-m,h.top="top",a.top="top")),"middle"===h.top&&(g+j>c[3]&&"top"===a.top?(g-=j,a.top="bottom"):g<c[1]&&"bottom"===a.top&&(g+=j,a.top="top"))),"target"!==f&&"both"!==f||(b<c[0]&&"left"===h.left&&(b+=n,h.left="right"),b+k>c[2]&&"right"===h.left&&(b-=n,h.left="left")),"together"===f&&(b<c[0]&&"left"===h.left?"right"===a.left?(b+=n,h.left="right",b+=k,a.left="left"):"left"===a.left&&(b+=n,h.left="right",b-=k,a.left="right"):b+k>c[2]&&"right"===h.left?"left"===a.left?(b-=n,h.left="left",b-=k,a.left="right"):"right"===a.left&&(b-=n,h.left="left",b+=k,a.left="left"):"center"===h.left&&(b+k>c[2]&&"left"===a.left?(b-=k,a.left="right"):b<c[0]&&"right"===a.left&&(b+=k,a.left="left"))),"element"!==p&&"both"!==p||(g<c[1]&&"bottom"===a.top&&(g+=j,a.top="top"),g+j>c[3]&&"top"===a.top&&(g-=j,a.top="bottom")),"element"!==f&&"both"!==f||(b<c[0]&&("right"===a.left?(b+=k,a.left="left"):"center"===a.left&&(b+=k/2,a.left="left")),b+k>c[2]&&("left"===a.left?(b-=k,a.left="right"):"center"===a.left&&(b-=k/2,a.left="right"))),"string"==typeof d?d=d.split(",").map(function(a){return a.trim()}):!0===d&&(d=["top","left","right","bottom"]),d=d||[],e=[],q=[],g<c[1]&&(d.indexOf("top")>=0?(g=c[1],e.push("top")):q.push("top")),g+j>c[3]&&(d.indexOf("bottom")>=0?(g=c[3]-j,e.push("bottom")):q.push("bottom")),b<c[0]&&(d.indexOf("left")>=0?(b=c[0],e.push("left")):q.push("left")),b+k>c[2]&&(d.indexOf("right")>=0?(b=c[2]-k,e.push("right")):q.push("right")),e.length&&function(){var a=void 0;a=void 0!==l.options.pinnedClass?l.options.pinnedClass:l.getClass("pinned"),o.push(a),e.forEach(function(b){o.push(a+"-"+b)})}(),q.length&&function(){var a=void 0;a=void 0!==l.options.outOfBoundsClass?l.options.outOfBoundsClass:l.getClass("out-of-bounds"),o.push(a),q.forEach(function(b){o.push(a+"-"+b)})}(),(e.indexOf("left")>=0||e.indexOf("right")>=0)&&(a.left=h.left=!1),(e.indexOf("top")>=0||e.indexOf("bottom")>=0)&&(a.top=h.top=!1),h.top===r.top&&h.left===r.left&&a.top===l.attachment.top&&a.left===l.attachment.left||(l.updateAttachClasses(a,h),l.trigger("update",{attachment:a,targetAttachment:h}))}),d(function(){!1!==l.options.addTargetClasses&&e(l.target,o,p),e(l.element,o,p)}),{top:g,left:b})}}),a=b.Utils,c=a.getBounds,e=a.updateClasses,d=a.defer,b.modules.push({position:function(k){var b=this,i=k.top,j=k.left,n=this.cache("element-bounds",function(){return c(b.element)}),p=n.height,o=n.width,a=this.getTargetBounds(),l=i+p,m=j+o,f=[],h,g,q;return i<=a.bottom&&l>=a.top&&["left","right"].forEach(function(b){var c=a[b];c!==j&&c!==m||f.push(b)}),j<=a.right&&m>=a.left&&["top","bottom"].forEach(function(b){var c=a[b];c!==i&&c!==l||f.push(b)}),h=[],g=[],q=["left","top","right","bottom"],h.push(this.getClass("abutted")),q.forEach(function(a){h.push(b.getClass("abutted")+"-"+a)}),f.length&&g.push(this.getClass("abutted")),f.forEach(function(a){g.push(b.getClass("abutted")+"-"+a)}),d(function(){!1!==b.options.addTargetClasses&&e(b.target,g,h),e(b.element,g,h)}),!0}}),i=function(){function a(h,g){var b=[],c=!0,e=!1,f=void 0,d,a;try{for(d,a=h[Symbol.iterator]();!(c=(d=a.next()).done)&&(b.push(d.value),!g||b.length!==g);c=!0);}catch(a){e=!0,f=a}finally{try{!c&&a.return&&a.return()}finally{if(e)throw f}}return b}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b.modules.push({position:function(f){var d=f.top,e=f.left,a,b,c,h,g;if(this.options.shift)return a=this.options.shift,"function"==typeof this.options.shift&&(a=this.options.shift.call(this,{top:d,left:e})),b=void 0,c=void 0,"string"==typeof a?(a=a.split(" "),a[1]=a[1]||a[0],h=a,g=i(h,2),b=g[0],c=g[1],b=parseFloat(b,10),c=parseFloat(c,10)):(b=a.top,c=a.left),d+=b,e+=c,{top:d,left:e}}}),N}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(b){var a=b.fn.jquery.split(" ")[0].split(".");if(a[0]<2&&a[1]<9||1==a[0]&&9==a[1]&&a[2]<1||a[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(jQuery),function(){function g(b,a){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?b:a}function f(b,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},c=function(){function a(d,c){for(var b=0,a;b<c.length;b++)a=c[b],a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a=function(a){function h(a){return{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function i(a){return(a[0]||a).nodeType}function e(){return{bindType:c.end,delegateType:c.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}}}function f(){var b,a;if(window.QUnit)return!1;b=document.createElement("bootstrap");for(a in d)if(void 0!==b.style[a])return{end:d[a]};return!1}function g(d){var e=this,c=!1;return a(this).one(b.TRANSITION_END,function(){c=!0}),setTimeout(function(){c||b.triggerTransitionEnd(e)},d),this}var c=!1,d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},b={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a))return a},getSelectorFromElement:function(b){var a=b.getAttribute("data-target");return a||(a=b.getAttribute("href")||"",a=/^#[a-z]/i.test(a)?a:null),a},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(b){a(b).trigger(c.end)},supportsTransitionEnd:function(){return Boolean(c)},typeCheckConfig:function(g,f,d){var a,e,b,c;for(a in d)if(d.hasOwnProperty(a))if(e=d[a],b=f[a],c=b&&i(b)?"element":h(b),!new RegExp(e).test(c))throw new Error(g.toUpperCase()+': Option "'+a+'" provided type "'+c+'" but expected type "'+e+'".')}};return function(){c=f(),a.fn.emulateTransitionEnd=g,b.supportsTransitionEnd()&&(a.event.special[b.TRANSITION_END]=e())}(),b}(jQuery),e=(function(d){var e="alert",i=d.fn[e],j={DISMISS:'[data-dismiss="alert"]'},g={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h={ALERT:"alert",FADE:"fade",SHOW:"show"},f=function(){function e(a){b(this,e),this._element=a}return e.prototype.close=function(a){a=a||this._element;var b=this._getRootElement(a);this._triggerCloseEvent(b).isDefaultPrevented()||this._removeElement(b)},e.prototype.dispose=function(){d.removeData(this._element,"bs.alert"),this._element=null},e.prototype._getRootElement=function(c){var e=a.getSelectorFromElement(c),b=!1;return e&&(b=d(e)[0]),b||(b=d(c).closest("."+h.ALERT)[0]),b},e.prototype._triggerCloseEvent=function(b){var a=d.Event(g.CLOSE);return d(b).trigger(a),a},e.prototype._removeElement=function(b){var c=this;if(d(b).removeClass(h.SHOW),!a.supportsTransitionEnd()||!d(b).hasClass(h.FADE))return void this._destroyElement(b);d(b).one(a.TRANSITION_END,function(a){return c._destroyElement(b,a)}).emulateTransitionEnd(150)},e.prototype._destroyElement=function(a){d(a).detach().trigger(g.CLOSED).remove()},e._jQueryInterface=function(a){return this.each(function(){var c=d(this),b=c.data("bs.alert");b||(b=new e(this),c.data("bs.alert",b)),"close"===a&&b[a](this)})},e._handleDismiss=function(a){return function(b){b&&b.preventDefault(),a.close(this)}},c(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();d(document).on(g.CLICK_DATA_API,j.DISMISS,f._handleDismiss(new f)),d.fn[e]=f._jQueryInterface,d.fn[e].Constructor=f,d.fn[e].noConflict=function(){return d.fn[e]=i,f._jQueryInterface}}(jQuery),function(a){var f="button",i=a.fn[f],d={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},e={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},h={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},g=function(){function f(a){b(this,f),this._element=a}return f.prototype.toggle=function(){var c=!0,f=a(this._element).closest(e.DATA_TOGGLE)[0],b,g;f&&(b=a(this._element).find(e.INPUT)[0],b&&("radio"===b.type&&(b.checked&&a(this._element).hasClass(d.ACTIVE)?c=!1:(g=a(f).find(e.ACTIVE)[0],g&&a(g).removeClass(d.ACTIVE))),c&&(b.checked=!a(this._element).hasClass(d.ACTIVE),a(b).trigger("change")),b.focus())),this._element.setAttribute("aria-pressed",!a(this._element).hasClass(d.ACTIVE)),c&&a(this._element).toggleClass(d.ACTIVE)},f.prototype.dispose=function(){a.removeData(this._element,"bs.button"),this._element=null},f._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.button");c||(c=new f(this),a(this).data("bs.button",c)),"toggle"===b&&c[b]()})},c(f,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),f}();a(document).on(h.CLICK_DATA_API,e.DATA_TOGGLE_CARROT,function(c){c.preventDefault();var b=c.target;a(b).hasClass(d.BUTTON)||(b=a(b).closest(e.BUTTON)),g._jQueryInterface.call(a(b),"toggle")}).on(h.FOCUS_BLUR_DATA_API,e.DATA_TOGGLE_CARROT,function(b){var c=a(b.target).closest(e.BUTTON)[0];a(c).toggleClass(d.FOCUS,/^focus(in)?$/.test(b.type))}),a.fn[f]=g._jQueryInterface,a.fn[f].Constructor=g,a.fn[f].noConflict=function(){return a.fn[f]=i,g._jQueryInterface}}(jQuery),function(e){var j="carousel",m="bs.carousel",k="."+m,p=e.fn[j],n={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},o={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},g={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},h={SLIDE:"slide"+k,SLID:"slid"+k,KEYDOWN:"keydown"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},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"},i={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"]'},l=function(){function l(a,c){b(this,l),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(c),this._element=e(a)[0],this._indicatorsElement=e(this._element).find(i.INDICATORS)[0],this._addEventListeners()}return l.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(g.NEXT)},l.prototype.nextWhenVisible=function(){document.hidden||this.next()},l.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(g.PREVIOUS)},l.prototype.pause=function(b){b||(this._isPaused=!0),e(this._element).find(i.NEXT_PREV)[0]&&a.supportsTransitionEnd()&&(a.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.prototype.cycle=function(a){a||(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))},l.prototype.to=function(a){var c=this,b,d;if(this._activeElement=e(this._element).find(i.ACTIVE_ITEM)[0],b=this._getItemIndex(this._activeElement),!(a>this._items.length-1||a<0)){if(this._isSliding)return void e(this._element).one(h.SLID,function(){return c.to(a)});if(b===a)return this.pause(),void this.cycle();d=a>b?g.NEXT:g.PREVIOUS,this._slide(d,this._items[a])}},l.prototype.dispose=function(){e(this._element).off(k),e.removeData(this._element,m),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l.prototype._getConfig=function(b){return b=e.extend({},n,b),a.typeCheckConfig(j,b,o),b},l.prototype._addEventListeners=function(){var a=this;this._config.keyboard&&e(this._element).on(h.KEYDOWN,function(b){return a._keydown(b)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||e(this._element).on(h.MOUSEENTER,function(b){return a.pause(b)}).on(h.MOUSELEAVE,function(b){return a.cycle(b)})},l.prototype._keydown=function(a){if(!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:a.preventDefault(),this.prev();break;case 39:a.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(a){return this._items=e.makeArray(e(a).parent().find(i.ITEM)),this._items.indexOf(a)},l.prototype._getItemByDirection=function(a,c){var e=a===g.NEXT,f=a===g.PREVIOUS,b=this._getItemIndex(c),h=this._items.length-1,i,d;return(f&&0===b||e&&b===h)&&!this._config.wrap?c:(i=a===g.PREVIOUS?-1:1,d=(b+i)%this._items.length,-1===d?this._items[this._items.length-1]:this._items[d])},l.prototype._triggerSlideEvent=function(b,c){var a=e.Event(h.SLIDE,{relatedTarget:b,direction:c});return e(this._element).trigger(a),a},l.prototype._setActiveIndicatorElement=function(b){if(this._indicatorsElement){e(this._indicatorsElement).find(i.ACTIVE).removeClass(f.ACTIVE);var a=this._indicatorsElement.children[this._getItemIndex(b)];a&&e(a).addClass(f.ACTIVE)}},l.prototype._slide=function(m,p){var n=this,c=e(this._element).find(i.ACTIVE_ITEM)[0],b=p||c&&this._getItemByDirection(m,c),l=Boolean(this._interval),d=void 0,j=void 0,k=void 0,o;if(m===g.NEXT?(d=f.LEFT,j=f.NEXT,k=g.LEFT):(d=f.RIGHT,j=f.PREV,k=g.RIGHT),b&&e(b).hasClass(f.ACTIVE))return void(this._isSliding=!1);!this._triggerSlideEvent(b,k).isDefaultPrevented()&&c&&b&&(this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(b),o=e.Event(h.SLID,{relatedTarget:b,direction:k}),a.supportsTransitionEnd()&&e(this._element).hasClass(f.SLIDE)?(e(b).addClass(j),a.reflow(b),e(c).addClass(d),e(b).addClass(d),e(c).one(a.TRANSITION_END,function(){e(b).removeClass(d+" "+j).addClass(f.ACTIVE),e(c).removeClass(f.ACTIVE+" "+j+" "+d),n._isSliding=!1,setTimeout(function(){return e(n._element).trigger(o)},0)}).emulateTransitionEnd(600)):(e(c).removeClass(f.ACTIVE),e(b).addClass(f.ACTIVE),this._isSliding=!1,e(this._element).trigger(o)),l&&this.cycle())},l._jQueryInterface=function(a){return this.each(function(){var b=e(this).data(m),c=e.extend({},n,e(this).data()),f;if("object"===(void 0===a?"undefined":d(a))&&e.extend(c,a),f="string"==typeof a?a:c.slide,b||(b=new l(this,c),e(this).data(m,b)),"number"==typeof a)b.to(a);else if("string"==typeof f){if(void 0===b[f])throw new Error('No method named "'+f+'"');b[f]()}else c.interval&&(b.pause(),b.cycle())})},l._dataApiClickHandler=function(h){var d=a.getSelectorFromElement(this),b,g,c;d&&(b=e(d)[0],b&&e(b).hasClass(f.CAROUSEL)&&(g=e.extend({},e(b).data(),e(this).data()),c=this.getAttribute("data-slide-to"),c&&(g.interval=!1),l._jQueryInterface.call(e(b),g),c&&e(b).data(m).to(c),h.preventDefault()))},c(l,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return n}}]),l}();e(document).on(h.CLICK_DATA_API,i.DATA_SLIDE,l._dataApiClickHandler),e(window).on(h.LOAD_DATA_API,function(){e(i.DATA_RIDE).each(function(){var a=e(this);l._jQueryInterface.call(a,a.data())})}),e.fn[j]=l._jQueryInterface,e.fn[j].Constructor=l,e.fn[j].noConflict=function(){return e.fn[j]=p,l._jQueryInterface}}(jQuery),function(e){var h="collapse",g="bs.collapse",o=e.fn[h],l={toggle:!0,parent:""},n={toggle:"boolean",parent:"string"},j={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},k={WIDTH:"width",HEIGHT:"height"},m={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},i=function(){function i(a,c){b(this,i),this._isTransitioning=!1,this._element=a,this._config=this._getConfig(c),this._triggerArray=e.makeArray(e('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i.prototype.toggle=function(){e(this._element).hasClass(f.SHOW)?this.hide():this.show()},i.prototype.show=function(){var d=this,b,h,k,c,l,n,o;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!e(this._element).hasClass(f.SHOW))if(b=void 0,h=void 0,this._parent&&(b=e.makeArray(e(this._parent).find(m.ACTIVES)),b.length||(b=null)),!(b&&(h=e(b).data(g))&&h._isTransitioning))if(k=e.Event(j.SHOW),e(this._element).trigger(k),!k.isDefaultPrevented()){if(b&&(i._jQueryInterface.call(e(b),"hide"),h||e(b).data(g,null)),c=this._getDimension(),e(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[c]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&e(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0),l=function(){e(d._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW),d._element.style[c]="",d.setTransitioning(!1),e(d._element).trigger(j.SHOWN)},!a.supportsTransitionEnd())return void l();n=c[0].toUpperCase()+c.slice(1),o="scroll"+n,e(this._element).one(a.TRANSITION_END,l).emulateTransitionEnd(600),this._element.style[c]=this._element[o]+"px"}},i.prototype.hide=function(){var c=this,d,b,h,g;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(e(this._element).hasClass(f.SHOW))if(d=e.Event(j.HIDE),e(this._element).trigger(d),!d.isDefaultPrevented()){if(b=this._getDimension(),h=b===k.WIDTH?"offsetWidth":"offsetHeight",this._element.style[b]=this._element[h]+"px",a.reflow(this._element),e(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&e(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0),g=function(){c.setTransitioning(!1),e(c._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(j.HIDDEN)},this._element.style[b]="",!a.supportsTransitionEnd())return void g();e(this._element).one(a.TRANSITION_END,g).emulateTransitionEnd(600)}},i.prototype.setTransitioning=function(a){this._isTransitioning=a},i.prototype.dispose=function(){e.removeData(this._element,g),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i.prototype._getConfig=function(b){return b=e.extend({},l,b),b.toggle=Boolean(b.toggle),a.typeCheckConfig(h,b,n),b},i.prototype._getDimension=function(){return e(this._element).hasClass(k.WIDTH)?k.WIDTH:k.HEIGHT},i.prototype._getParent=function(){var b=this,a=e(this._config.parent)[0],c='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return e(a).find(c).each(function(c,a){b._addAriaAndCollapsedClass(i._getTargetFromElement(a),[a])}),a},i.prototype._addAriaAndCollapsedClass=function(a,c){if(a){var b=e(a).hasClass(f.SHOW);a.setAttribute("aria-expanded",b),c.length&&e(c).toggleClass(f.COLLAPSED,!b).attr("aria-expanded",b)}},i._getTargetFromElement=function(c){var b=a.getSelectorFromElement(c);return b?e(b)[0]:null},i._jQueryInterface=function(a){return this.each(function(){var c=e(this),b=c.data(g),f=e.extend({},l,c.data(),"object"===(void 0===a?"undefined":d(a))&&a);if(!b&&f.toggle&&/show|hide/.test(a)&&(f.toggle=!1),b||(b=new i(this,f),c.data(g,b)),"string"==typeof a){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a]()}})},c(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),i}();e(document).on(j.CLICK_DATA_API,m.DATA_TOGGLE,function(b){b.preventDefault();var a=i._getTargetFromElement(this),c=e(a).data(g),d=c?"toggle":e(this).data();i._jQueryInterface.call(e(a),d)}),e.fn[h]=i._jQueryInterface,e.fn[h].Constructor=i,e.fn[h].noConflict=function(){return e.fn[h]=o,i._jQueryInterface}}(jQuery),function(d){var j="dropdown",i=".bs.dropdown",k=d.fn[j],e={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,CLICK:"click"+i,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},h={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},f={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},g=function(){function g(a){b(this,g),this._element=a,this._addEventListeners()}return g.prototype.toggle=function(){var a,j,b,c,i;return!(this.disabled||d(this).hasClass(h.DISABLED))&&(!(a=g._getParentFromElement(this),j=d(a).hasClass(h.SHOW),g._clearMenus(),j)&&("ontouchstart"in document.documentElement&&!d(a).closest(f.NAVBAR_NAV).length&&(b=document.createElement("div"),b.className=h.BACKDROP,d(b).insertBefore(this),d(b).on("click",g._clearMenus)),c={relatedTarget:this},i=d.Event(e.SHOW,c),d(a).trigger(i),!i.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),d(a).toggleClass(h.SHOW),d(a).trigger(d.Event(e.SHOWN,c)),!1)))},g.prototype.dispose=function(){d.removeData(this._element,"bs.dropdown"),d(this._element).off(i),this._element=null},g.prototype._addEventListeners=function(){d(this._element).on(e.CLICK,this.toggle)},g._jQueryInterface=function(a){return this.each(function(){var b=d(this).data("bs.dropdown");if(b||(b=new g(this),d(this).data("bs.dropdown",b)),"string"==typeof a){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a].call(this)}})},g._clearMenus=function(a){var j,c,b,i,k,l;if(!a||3!==a.which){j=d(f.BACKDROP)[0],j&&j.parentNode.removeChild(j);for(c=d.makeArray(d(f.DATA_TOGGLE)),b=0;b<c.length;b++)i=g._getParentFromElement(c[b]),k={relatedTarget:c[b]},d(i).hasClass(h.SHOW)&&!(a&&("click"===a.type&&/input|textarea/i.test(a.target.tagName)||"focusin"===a.type)&&d.contains(i,a.target))&&(l=d.Event(e.HIDE,k),d(i).trigger(l),l.isDefaultPrevented()||(c[b].setAttribute("aria-expanded","false"),d(i).removeClass(h.SHOW).trigger(d.Event(e.HIDDEN,k))))}},g._getParentFromElement=function(b){var c=void 0,e=a.getSelectorFromElement(b);return e&&(c=d(e)[0]),c||b.parentNode},g._dataApiKeydownHandler=function(a){var e,i,j,c,b;if(/(38|40|27|32)/.test(a.which)&&!/input|textarea/i.test(a.target.tagName)&&(a.preventDefault(),a.stopPropagation(),!this.disabled&&!d(this).hasClass(h.DISABLED))){if(e=g._getParentFromElement(this),i=d(e).hasClass(h.SHOW),!i&&27!==a.which||i&&27===a.which)return 27===a.which&&(j=d(e).find(f.DATA_TOGGLE)[0],d(j).trigger("focus")),void d(this).trigger("click");c=d(e).find(f.VISIBLE_ITEMS).get(),c.length&&(b=c.indexOf(a.target),38===a.which&&b>0&&b--,40===a.which&&b<c.length-1&&b++,b<0&&(b=0),c[b].focus())}},c(g,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),g}();d(document).on(e.KEYDOWN_DATA_API,f.DATA_TOGGLE,g._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,f.ROLE_MENU,g._dataApiKeydownHandler).on(e.KEYDOWN_DATA_API,f.ROLE_LISTBOX,g._dataApiKeydownHandler).on(e.CLICK_DATA_API+" "+e.FOCUSIN_DATA_API,g._clearMenus).on(e.CLICK_DATA_API,f.DATA_TOGGLE,g.prototype.toggle).on(e.CLICK_DATA_API,f.FORM_CHILD,function(a){a.stopPropagation()}),d.fn[j]=g._jQueryInterface,d.fn[j].Constructor=g,d.fn[j].noConflict=function(){return d.fn[j]=k,g._jQueryInterface}}(jQuery),function(e){var h="modal",m=".bs.modal",n=e.fn[h],k={backdrop:!0,keyboard:!0,focus:!0,show:!0},l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},g={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},i={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},j=function(){function j(a,c){b(this,j),this._config=this._getConfig(c),this._element=a,this._dialog=e(a).find(i.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return j.prototype.toggle=function(a){return this._isShown?this.hide():this.show(a)},j.prototype.show=function(c){var b=this,d;if(this._isTransitioning)throw new Error("Modal is transitioning");a.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE)&&(this._isTransitioning=!0),d=e.Event(f.SHOW,{relatedTarget:c}),e(this._element).trigger(d),this._isShown||d.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),e(document.body).addClass(g.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(f.CLICK_DISMISS,i.DATA_DISMISS,function(a){return b.hide(a)}),e(this._dialog).on(f.MOUSEDOWN_DISMISS,function(){e(b._element).one(f.MOUSEUP_DISMISS,function(a){e(a.target).is(b._element)&&(b._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return b._showElement(c)}))},j.prototype.hide=function(b){var h=this,c,d;if(b&&b.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");c=a.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE),c&&(this._isTransitioning=!0),d=e.Event(f.HIDE),e(this._element).trigger(d),this._isShown&&!d.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),e(document).off(f.FOCUSIN),e(this._element).removeClass(g.SHOW),e(this._element).off(f.CLICK_DISMISS),e(this._dialog).off(f.MOUSEDOWN_DISMISS),c?e(this._element).one(a.TRANSITION_END,function(a){return h._hideModal(a)}).emulateTransitionEnd(300):this._hideModal())},j.prototype.dispose=function(){e.removeData(this._element,"bs.modal"),e(window,document,this._element,this._backdrop).off(m),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},j.prototype._getConfig=function(b){return b=e.extend({},k,b),a.typeCheckConfig(h,b,l),b},j.prototype._showElement=function(h){var b=this,c=a.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE),i,d;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,c&&a.reflow(this._element),e(this._element).addClass(g.SHOW),this._config.focus&&this._enforceFocus(),i=e.Event(f.SHOWN,{relatedTarget:h}),d=function(){b._config.focus&&b._element.focus(),b._isTransitioning=!1,e(b._element).trigger(i)},c?e(this._dialog).one(a.TRANSITION_END,d).emulateTransitionEnd(300):d()},j.prototype._enforceFocus=function(){var a=this;e(document).off(f.FOCUSIN).on(f.FOCUSIN,function(b){document===b.target||a._element===b.target||e(a._element).has(b.target).length||a._element.focus()})},j.prototype._setEscapeEvent=function(){var a=this;this._isShown&&this._config.keyboard?e(this._element).on(f.KEYDOWN_DISMISS,function(b){27===b.which&&a.hide()}):this._isShown||e(this._element).off(f.KEYDOWN_DISMISS)},j.prototype._setResizeEvent=function(){var a=this;this._isShown?e(window).on(f.RESIZE,function(b){return a._handleUpdate(b)}):e(window).off(f.RESIZE)},j.prototype._hideModal=function(){var a=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(g.OPEN),a._resetAdjustments(),a._resetScrollbar(),e(a._element).trigger(f.HIDDEN)})},j.prototype._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},j.prototype._showBackdrop=function(b){var c=this,d=e(this._element).hasClass(g.FADE)?g.FADE:"",h,i;if(this._isShown&&this._config.backdrop){if(h=a.supportsTransitionEnd()&&d,this._backdrop=document.createElement("div"),this._backdrop.className=g.BACKDROP,d&&e(this._backdrop).addClass(d),e(this._backdrop).appendTo(document.body),e(this._element).on(f.CLICK_DISMISS,function(a){if(c._ignoreBackdropClick)return void(c._ignoreBackdropClick=!1);a.target===a.currentTarget&&("static"===c._config.backdrop?c._element.focus():c.hide())}),h&&a.reflow(this._backdrop),e(this._backdrop).addClass(g.SHOW),!b)return;if(!h)return void b();e(this._backdrop).one(a.TRANSITION_END,b).emulateTransitionEnd(150)}else!this._isShown&&this._backdrop?(e(this._backdrop).removeClass(g.SHOW),i=function(){c._removeBackdrop(),b&&b()},a.supportsTransitionEnd()&&e(this._element).hasClass(g.FADE)?e(this._backdrop).one(a.TRANSITION_END,i).emulateTransitionEnd(150):i()):b&&b()},j.prototype._handleUpdate=function(){this._adjustDialog()},j.prototype._adjustDialog=function(){var a=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},j.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},j.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},j.prototype._setScrollbar=function(){var a=parseInt(e(i.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=a+this._scrollbarWidth+"px")},j.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},j.prototype._getScrollbarWidth=function(){var a=document.createElement("div"),b;return a.className=g.SCROLLBAR_MEASURER,document.body.appendChild(a),b=a.offsetWidth-a.clientWidth,document.body.removeChild(a),b},j._jQueryInterface=function(a,b){return this.each(function(){var c=e(this).data("bs.modal"),f=e.extend({},j.Default,e(this).data(),"object"===(void 0===a?"undefined":d(a))&&a);if(c||(c=new j(this,f),e(this).data("bs.modal",c)),"string"==typeof a){if(void 0===c[a])throw new Error('No method named "'+a+'"');c[a](b)}else f.show&&c.show(b)})},c(j,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return k}}]),j}();e(document).on(f.CLICK_DATA_API,i.DATA_TOGGLE,function(g){var c=this,b=void 0,d=a.getSelectorFromElement(this),h,i;d&&(b=e(d)[0]),h=e(b).data("bs.modal")?"toggle":e.extend({},e(b).data(),e(this).data()),"A"!==this.tagName&&"AREA"!==this.tagName||g.preventDefault(),i=e(b).one(f.SHOW,function(a){a.isDefaultPrevented()||i.one(f.HIDDEN,function(){e(c).is(":visible")&&c.focus()})}),j._jQueryInterface.call(e(b),h,this)}),e.fn[h]=j._jQueryInterface,e.fn[h].Constructor=j,e.fn[h].noConflict=function(){return e.fn[h]=n,j._jQueryInterface}}(jQuery),function(e){var g="scrollspy",n=e.fn[g],l={offset:10,method:"auto",target:""},m={offset:"number",method:"string",target:"(string|element)"},k={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},h={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},j={OFFSET:"offset",POSITION:"position"},i=function(){function i(a,c){var d=this;b(this,i),this._element=a,this._scrollElement="BODY"===a.tagName?window:a,this._config=this._getConfig(c),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(k.SCROLL,function(a){return d._process(a)}),this.refresh(),this._process()}return i.prototype.refresh=function(){var b=this,d=this._scrollElement!==this._scrollElement.window?j.POSITION:j.OFFSET,c="auto"===this._config.method?d:this._config.method,f=c===j.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(g){var b=void 0,d=a.getSelectorFromElement(g);return d&&(b=e(d)[0]),b&&(b.offsetWidth||b.offsetHeight)?[e(b)[c]().top+f,d]:null}).filter(function(a){return a}).sort(function(a,b){return a[0]-b[0]}).forEach(function(a){b._offsets.push(a[0]),b._targets.push(a[1])})},i.prototype.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},i.prototype._getConfig=function(b){if(b=e.extend({},l,b),"string"!=typeof b.target){var c=e(b.target).attr("id");c||(c=a.getUID(g),e(b.target).attr("id",c)),b.target="#"+c}return a.typeCheckConfig(g,b,m),b},i.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},i.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},i.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.offsetHeight},i.prototype._process=function(){var b=this._getScrollTop()+this._config.offset,c=this._getScrollHeight(),e=this._config.offset+c-this._getOffsetHeight(),d,a;if(this._scrollHeight!==c&&this.refresh(),b>=e)return d=this._targets[this._targets.length-1],void(this._activeTarget!==d&&this._activate(d));if(this._activeTarget&&b<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(a=this._offsets.length;a--;)this._activeTarget!==this._targets[a]&&b>=this._offsets[a]&&(void 0===this._offsets[a+1]||b<this._offsets[a+1])&&this._activate(this._targets[a])},i.prototype._activate=function(b){var c,a;this._activeTarget=b,this._clear(),c=this._selector.split(","),c=c.map(function(a){return a+'[data-target="'+b+'"],'+a+'[href="'+b+'"]'}),a=e(c.join(",")),a.hasClass(h.DROPDOWN_ITEM)?(a.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(h.ACTIVE),a.addClass(h.ACTIVE)):a.parents(f.LI).find("> "+f.NAV_LINKS).addClass(h.ACTIVE),e(this._scrollElement).trigger(k.ACTIVATE,{relatedTarget:b})},i.prototype._clear=function(){e(this._selector).filter(f.ACTIVE).removeClass(h.ACTIVE)},i._jQueryInterface=function(a){return this.each(function(){var b=e(this).data("bs.scrollspy"),c="object"===(void 0===a?"undefined":d(a))&&a;if(b||(b=new i(this,c),e(this).data("bs.scrollspy",b)),"string"==typeof a){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a]()}})},c(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return l}}]),i}();e(window).on(k.LOAD_DATA_API,function(){for(var a=e.makeArray(e(f.DATA_SPY)),b=a.length,c;b--;)c=e(a[b]),i._jQueryInterface.call(c,c.data())}),e.fn[g]=i._jQueryInterface,e.fn[g].Constructor=i,e.fn[g].noConflict=function(){return e.fn[g]=n,i._jQueryInterface}}(jQuery),function(d){var i=d.fn.tab,g={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},e={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function h(a){b(this,h),this._element=a}return h.prototype.show=function(){var i=this,c,b,h,j,k,l,m;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&d(this._element).hasClass(e.ACTIVE)||d(this._element).hasClass(e.DISABLED)||(c=void 0,b=void 0,h=d(this._element).closest(f.LIST)[0],j=a.getSelectorFromElement(this._element),h&&(b=d.makeArray(d(h).find(f.ACTIVE)),b=b[b.length-1]),k=d.Event(g.HIDE,{relatedTarget:this._element}),l=d.Event(g.SHOW,{relatedTarget:b}),(b&&d(b).trigger(k),d(this._element).trigger(l),!l.isDefaultPrevented()&&!k.isDefaultPrevented())&&(j&&(c=d(j)[0]),this._activate(this._element,h),m=function(){var a=d.Event(g.HIDDEN,{relatedTarget:i._element}),c=d.Event(g.SHOWN,{relatedTarget:b});d(b).trigger(a),d(i._element).trigger(c)},c?this._activate(c,c.parentNode,m):m()))},h.prototype.dispose=function(){d.removeClass(this._element,"bs.tab"),this._element=null},h.prototype._activate=function(k,g,h){var j=this,b=d(g).find(f.ACTIVE_CHILD)[0],i=h&&a.supportsTransitionEnd()&&(b&&d(b).hasClass(e.FADE)||Boolean(d(g).find(f.FADE_CHILD)[0])),c=function(){return j._transitionComplete(k,b,i,h)};b&&i?d(b).one(a.TRANSITION_END,c).emulateTransitionEnd(150):c(),b&&d(b).removeClass(e.SHOW)},h.prototype._transitionComplete=function(b,c,j,i){var g,h;c&&(d(c).removeClass(e.ACTIVE),g=d(c.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0],g&&d(g).removeClass(e.ACTIVE),c.setAttribute("aria-expanded",!1)),(d(b).addClass(e.ACTIVE),b.setAttribute("aria-expanded",!0),j?(a.reflow(b),d(b).addClass(e.SHOW)):d(b).removeClass(e.FADE),b.parentNode&&d(b.parentNode).hasClass(e.DROPDOWN_MENU))&&(h=d(b).closest(f.DROPDOWN)[0],h&&d(h).find(f.DROPDOWN_TOGGLE).addClass(e.ACTIVE),b.setAttribute("aria-expanded",!0)),i&&i()},h._jQueryInterface=function(a){return this.each(function(){var c=d(this),b=c.data("bs.tab");if(b||(b=new h(this),c.data("bs.tab",b)),"string"==typeof a){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a]()}})},c(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),h}();d(document).on(g.CLICK_DATA_API,f.DATA_TOGGLE,function(a){a.preventDefault(),h._jQueryInterface.call(d(this),"show")}),d.fn.tab=h._jQueryInterface,d.fn.tab.Constructor=h,d.fn.tab.noConflict=function(){return d.fn.tab=i,h._jQueryInterface}}(jQuery),function(e){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var j="tooltip",f=".bs.tooltip",n=e.fn[j],r={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},l={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},q={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},i={SHOW:"show",OUT:"out"},m={HIDE:"hide"+f,HIDDEN:"hidden"+f,SHOW:"show"+f,SHOWN:"shown"+f,INSERTED:"inserted"+f,CLICK:"click"+f,FOCUSIN:"focusin"+f,FOCUSOUT:"focusout"+f,MOUSEENTER:"mouseenter"+f,MOUSELEAVE:"mouseleave"+f},h={FADE:"fade",SHOW:"show"},o={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},p={element:!1,enabled:!1},g={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},k=function(){function k(a,c){b(this,k),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=a,this.config=this._getConfig(c),this.tip=null,this._setListeners()}return k.prototype.enable=function(){this._isEnabled=!0},k.prototype.disable=function(){this._isEnabled=!1},k.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},k.prototype.toggle=function(b){if(b){var c=this.constructor.DATA_KEY,a=e(b.currentTarget).data(c);a||(a=new this.constructor(b.currentTarget,this._getDelegateConfig()),e(b.currentTarget).data(c,a)),a._activeTrigger.click=!a._activeTrigger.click,a._isWithActiveTrigger()?a._enter(null,a):a._leave(null,a)}else{if(e(this.getTipElement()).hasClass(h.SHOW))return void this._leave(null,this);this._enter(null,this)}},k.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},k.prototype.show=function(){var b=this,d,n,c,g,j,l,m,f;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");if(d=e.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");if(e(this.element).trigger(d),n=e.contains(this.element.ownerDocument.documentElement,this.element),d.isDefaultPrevented()||!n)return;if(c=this.getTipElement(),g=a.getUID(this.constructor.NAME),c.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&e(c).addClass(h.FADE),j="function"==typeof this.config.placement?this.config.placement.call(this,c,this.element):this.config.placement,l=this._getAttachment(j),m=!1===this.config.container?document.body:e(this.config.container),e(c).data(this.constructor.DATA_KEY,this).appendTo(m),e(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:l,element:c,target:this.element,classes:p,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),a.reflow(c),this._tether.position(),e(c).addClass(h.SHOW),f=function(){var a=b._hoverState;b._hoverState=null,b._isTransitioning=!1,e(b.element).trigger(b.constructor.Event.SHOWN),a===i.OUT&&b._leave(null,b)},a.supportsTransitionEnd()&&e(this.tip).hasClass(h.FADE))return this._isTransitioning=!0,void e(this.tip).one(a.TRANSITION_END,f).emulateTransitionEnd(k._TRANSITION_DURATION);f()}},k.prototype.hide=function(d){var b=this,c=this.getTipElement(),f=e.Event(this.constructor.Event.HIDE),j;if(this._isTransitioning)throw new Error("Tooltip is transitioning");j=function(){b._hoverState!==i.SHOW&&c.parentNode&&c.parentNode.removeChild(c),b.element.removeAttribute("aria-describedby"),e(b.element).trigger(b.constructor.Event.HIDDEN),b._isTransitioning=!1,b.cleanupTether(),d&&d()},e(this.element).trigger(f),f.isDefaultPrevented()||(e(c).removeClass(h.SHOW),this._activeTrigger[g.CLICK]=!1,this._activeTrigger[g.FOCUS]=!1,this._activeTrigger[g.HOVER]=!1,a.supportsTransitionEnd()&&e(this.tip).hasClass(h.FADE)?(this._isTransitioning=!0,e(c).one(a.TRANSITION_END,j).emulateTransitionEnd(150)):j(),this._hoverState="")},k.prototype.isWithContent=function(){return Boolean(this.getTitle())},k.prototype.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0]},k.prototype.setContent=function(){var a=e(this.getTipElement());this.setElementContent(a.find(o.TOOLTIP_INNER),this.getTitle()),a.removeClass(h.FADE+" "+h.SHOW),this.cleanupTether()},k.prototype.setElementContent=function(b,a){var c=this.config.html;"object"===(void 0===a?"undefined":d(a))&&(a.nodeType||a.jquery)?c?e(a).parent().is(b)||b.empty().append(a):b.text(e(a).text()):b[c?"html":"text"](a)},k.prototype.getTitle=function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a},k.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},k.prototype._getAttachment=function(a){return q[a.toUpperCase()]},k.prototype._setListeners=function(){var a=this;this.config.trigger.split(" ").forEach(function(b){if("click"===b)e(a.element).on(a.constructor.Event.CLICK,a.config.selector,function(b){return a.toggle(b)});else if(b!==g.MANUAL){var c=b===g.HOVER?a.constructor.Event.MOUSEENTER:a.constructor.Event.FOCUSIN,d=b===g.HOVER?a.constructor.Event.MOUSELEAVE:a.constructor.Event.FOCUSOUT;e(a.element).on(c,a.config.selector,function(b){return a._enter(b)}).on(d,a.config.selector,function(b){return a._leave(b)})}e(a.element).closest(".modal").on("hide.bs.modal",function(){return a.hide()})}),this.config.selector?this.config=e.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},k.prototype._fixTitle=function(){var a=d(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},k.prototype._enter=function(b,a){var c=this.constructor.DATA_KEY;return a=a||e(b.currentTarget).data(c),a||(a=new this.constructor(b.currentTarget,this._getDelegateConfig()),e(b.currentTarget).data(c,a)),b&&(a._activeTrigger["focusin"===b.type?g.FOCUS:g.HOVER]=!0),e(a.getTipElement()).hasClass(h.SHOW)||a._hoverState===i.SHOW?void(a._hoverState=i.SHOW):(clearTimeout(a._timeout),a._hoverState=i.SHOW,a.config.delay&&a.config.delay.show?void(a._timeout=setTimeout(function(){a._hoverState===i.SHOW&&a.show()},a.config.delay.show)):void a.show())},k.prototype._leave=function(b,a){var c=this.constructor.DATA_KEY;if(a=a||e(b.currentTarget).data(c),a||(a=new this.constructor(b.currentTarget,this._getDelegateConfig()),e(b.currentTarget).data(c,a)),b&&(a._activeTrigger["focusout"===b.type?g.FOCUS:g.HOVER]=!1),!a._isWithActiveTrigger()){if(clearTimeout(a._timeout),a._hoverState=i.OUT,!a.config.delay||!a.config.delay.hide)return void a.hide();a._timeout=setTimeout(function(){a._hoverState===i.OUT&&a.hide()},a.config.delay.hide)}},k.prototype._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},k.prototype._getConfig=function(b){return b=e.extend({},this.constructor.Default,e(this.element).data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),a.typeCheckConfig(j,b,this.constructor.DefaultType),b},k.prototype._getDelegateConfig=function(){var b={},a;if(this.config)for(a in this.config)this.constructor.Default[a]!==this.config[a]&&(b[a]=this.config[a]);return b},k._jQueryInterface=function(a){return this.each(function(){var b=e(this).data("bs.tooltip"),c="object"===(void 0===a?"undefined":d(a))&&a;if((b||!/dispose|hide/.test(a))&&(b||(b=new k(this,c),e(this).data("bs.tooltip",b)),"string"==typeof a)){if(void 0===b[a])throw new Error('No method named "'+a+'"');b[a]()}})},c(k,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return r}},{key:"NAME",get:function(){return j}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return f}},{key:"DefaultType",get:function(){return l}}]),k}();return e.fn[j]=k._jQueryInterface,e.fn[j].Constructor=k,e.fn[j].noConflict=function(){return e.fn[j]=n,k._jQueryInterface},k}(jQuery));!function(a){var i="popover",h=".bs.popover",p=a.fn[i],m=a.extend({},e.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n=a.extend({},e.DefaultType,{content:"(string|element|function)"}),k={FADE:"fade",SHOW:"show"},l={TITLE:".popover-title",CONTENT:".popover-content"},o={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,INSERTED:"inserted"+h,CLICK:"click"+h,FOCUSIN:"focusin"+h,FOCUSOUT:"focusout"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h},j=function(j){function e(){return b(this,e),g(this,j.apply(this,arguments))}return f(e,j),e.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},e.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},e.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(l.TITLE),this.getTitle()),this.setElementContent(b.find(l.CONTENT),this._getContent()),b.removeClass(k.FADE+" "+k.SHOW),this.cleanupTether()},e.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},e._jQueryInterface=function(b){return this.each(function(){var c=a(this).data("bs.popover"),f="object"===(void 0===b?"undefined":d(b))?b:null;if((c||!/destroy|hide/.test(b))&&(c||(c=new e(this,f),a(this).data("bs.popover",c)),"string"==typeof b)){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},c(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return m}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return o}},{key:"EVENT_KEY",get:function(){return h}},{key:"DefaultType",get:function(){return n}}]),e}(e);a.fn[i]=j._jQueryInterface,a.fn[i].Constructor=j,a.fn[i].noConflict=function(){return a.fn[i]=p,j._jQueryInterface}}(jQuery)}(),window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),window.mobileAndTabletcheck=function(){var a=!1;return function(b){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a},function(a){var c=function(a,d){if(!a||!a.length)return a;var c=a.length>d,b=c?a.substr(0,d-1):a;return b=c?b.substr(0,b.lastIndexOf(" ")):b,c?b+"...":b},d=function(){return ua=navigator.userAgent,ua.indexOf("MSIE ")>-1||ua.indexOf("Trident/")>-1},e={common:{init:function(){},finalize:function(){}},home:{init:function(){},finalize:function(){}},about_us:{init:function(){}}},b={fire:function(c,a,f){var b,d=e;a=void 0===a?"init":a,b=""!==c,b=b&&d[c],(b=b&&"function"==typeof d[c][a])&&d[c][a](f)},loadEvents:function(){var f,g,i,j,k,e,h,l,m;b.fire("common"),a.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(c,a){b.fire(a),b.fire(a,"finalize")}),d()&&a("body").addClass("is-ie"),b.fire("common","finalize"),-1===window.location.href.indexOf("localhost")&&-1===window.location.href.indexOf("dev")||(console.info("[Autoscroll] Disable on dev"),"scrollRestoration"in history&&(history.scrollRestoration="manual")),a(".burger-icon").click(function(){a(this).toggleClass("open"),a("#submenu").toggleClass("open")}),!supportsVideo()&&(f=a("#home-cover-video-container .fallback"),f.attr("src",f.attr("data-src")),f=a("#page-cover-video-container .fallback"),f.attr("src",f.attr("data-src"))),mobileAndTabletcheck()?a("#home-cover-video-container,#page-cover-video-container").remove():a("#home-cover-video-mobile,#page-cover-video-mobile").remove(),a(".big-header .search-trigger").on("click",function(b){b.preventDefault(),a("#search-overlay").addClass("open"),a('#search-overlay > form > input[type="search"]').focus()}),a("#search-overlay, #search-overlay button.close").on("click keyup",function(b){b.target!==this&&"close"!==b.target.className&&27!==b.keyCode||a(this).removeClass("open")}),a("select.select2").select2&&a("select.select2").each(function(){a(this).select2()}),a(".menu-container").length&&(console.log("set menu container"),a(".menu-container .action-menu").hover(function(){requestAnimFrame(function(){a(".menu-container").addClass("activated")})},function(){requestAnimFrame(function(){a(".menu-container").removeClass("activated")})})),a(document).on("click","[data-goto-anchor]",function(g){var d=a(this).attr("data-goto-anchor"),b=a('[data-anchor="'+d+'"]'),e,c,f;b.length&&(e=a("header.header").height(),c=b.offset(),c&&(f=parseInt(b.attr("data-offset")||0),a("html, body").animate({scrollTop:c.top-e-f+50},"slow")))}),a(document).on("click","[data-goto-section]",function(g){var d=a(this).attr("data-goto-section"),b=a('[data-section="'+d+'"]'),e=a("header.header").height(),c=b.offset(),f;c&&(f=parseInt(b.attr("data-offset")||0),a("html, body").animate({scrollTop:c.top-e-f+50},"slow"))}),a(document).on("click","[social-share-linkedin]",function(a){a.preventDefault();var b="https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(window.location.href)+"&title="+encodeURIComponent(document.title)+"&source=bva-group.com",c=screen.width/2-320,d=screen.height/2-220-100;return window.open(b,"share_linkedin","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=440, top="+d+", left="+c),!1}),a(document).on("click",".wp-bkg_featured .tweet-this",function(g){var b=a(this).parents(".wp-bkg_featured"),c,d,e,f;return b=a(b.html()),b.find(".tweet-this").remove(),c=b.text(),d="http://twitter.com/intent/tweet?text="+encodeURIComponent(c)+"&related=&url="+encodeURIComponent(window.location.href),e=screen.width/2-320,f=screen.height/2-220-100,window.open(d,"share_twitter","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=440, top="+f+", left="+e),!1}),a(document).on("click","[social-share-twitter]",function(h){var b,d,e,f,g;return h.preventDefault(),b=a(this).attr("social-share-twitter"),d="“"+c(document.title.trim(),114)+"”",e="http://twitter.com/intent/tweet?text="+encodeURIComponent(d)+"&related="+b+"&url="+encodeURIComponent(window.location.href),b&&d.length<114-b.length&&(e+="&via="+b),f=screen.width/2-320,g=screen.height/2-220-100,window.open(e,"share_twitter","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=440, top="+g+", left="+f),!1}),a(document).on("click","[social-share-email]",function(c){var b={};return b.subject=encodeURIComponent(" "+document.title),b.body=document.title+"%0D%0A"+window.location.href,a(this).attr("href","mailto:?subject="+b.subject+"&body="+b.body),!0}),a("#private-resource").on("submit",function(b){b.preventDefault();var c=a(this).attr("data-resource");return jQuery.ajax({url:"/wp-json/bva/v1/ressources/access",type:"POST",contentType:"application/json",data:JSON.stringify({email:a(this).find('[name="email"]').val(),resource:c}),success:function(b){console.log(b),a("#private-resource .message").hide(),"success"===b.code?a("#private-resource").find(".message.success").show():"waiting"===b.code?a("#private-resource").find(".message.greylist").show():a("#private-resource").find(".message.blacklist").show()},error:function(){console.warn(arguments)}}),!1}),g=a("body.page-template-template-list-primary,body.page-template-template-list-primary-subpage"),g.length&&(i=function(b){if(g.find(".list-filters .filter").removeClass("active"),-1===b)return void a(".bva-card-container").removeClass("removed").addClass("show");a(".bva-card-container").each(function(){var c=parseInt(a(this).attr("data-filter"),10);console.log(c,b),c!==b?a(this).removeClass("show").addClass("removed"):a(this).removeClass("removed").addClass("show")})},a('[name="quick"]').on("change",function(){var b=parseInt(a(this).val(),10);i(b)}),g.find(".list-filters .filter").on("click",function(){var b=parseInt(a(this).attr("data-filter"),10);i(b),a(this).addClass("active")}),j=window.location.hash.substr(1),j&&g.find('.list-filters .filter[data-anchor="'+j+'"]').click()),(a("body.page-template-template-list-secondary").length&&a('[name="quick"]').on("change",function(){window.location.href=a(this).val()}),a(".entry-content").selectionSharer(),a("input.daterange").length)&&(k=function(a,b){console.log("*** select date ",a,b)},a("input.daterange").each(function(){var c=a(this).attr("data-boundaries").split(" - "),b={};b[bvaLocale.datepicker.ranges.today]=[moment(),moment()],b[bvaLocale.datepicker.ranges.yesterday]=[moment().subtract(1,"days"),moment().subtract(1,"days")],b[bvaLocale.datepicker.ranges.last30]=[moment().subtract(29,"days"),moment()],b[bvaLocale.datepicker.ranges.month]=[moment().startOf("month"),moment().endOf("month")],b[bvaLocale.datepicker.ranges.lastmonth]=[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],b[bvaLocale.datepicker.ranges.begining]=[moment(c[0],"DD/MM/YY")],a("input.daterange").daterangepicker({maxDate:moment(),opens:"left",autoUpdateInput:!0,alwaysShowCalendars:!0,locale:{format:"DD/MM/YY",separator:" - ",applyLabel:bvaLocale.datepicker.validate,cancelLabel:bvaLocale.datepicker.cancel,fromLabel:bvaLocale.datepicker.from,toLabel:bvaLocale.datepicker.to,customRangeLabel:bvaLocale.datepicker.customRange,weekLabel:"S",daysOfWeek:bvaLocale.datepicker.daysOfWeek,monthNames:bvaLocale.datepicker.monthNames,firstDay:2},ranges:b},k)}),a("input.daterange").on("apply.daterangepicker",function(c,b){a(this).val(b.startDate.format("DD/MM/YY")+" - "+b.endDate.format("DD/MM/YY"))}),a("input.daterange").on("cancel.daterangepicker",function(b,c){a(this).val("")})),a(".twitter-feed").length&&(e=a(".twitter-feed .twitter-feed-container"),e.vTicker({}),e.on("vticker.beforeTick",function(){e.find("li").removeClass("out next current"),e.find("li:first-child").addClass("out"),e.find("li:nth-child(2)").addClass("current"),e.find("li:nth-child(3)").addClass("next")}),e.find("li:first-child").addClass("next"),a(".twitter-feed").css("visibility","visible"),e.find("li:first-child").removeClass("next").addClass("current")),(a("#home-studies-slider").length&&(console.info("[Slider] init home-studies-slider"),a("#home-studies-slider").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}}]})),a("[data-map]").length)&&(console.info("[Google Map] init google map"),h=a("[data-map]"),l=h.attr("data-map-lat"),m=h.attr("data-map-lng"),google.maps.event.addDomListener(window,"load",function(){var c={scrollwheel:!1,zoom:3,center:new google.maps.LatLng(28.032261208366783,6.646271449999972),styles:[{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#d3d3d3"}]},{featureType:"transit",stylers:[{color:"#808080"},{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#b3b3b3"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#ffffff"},{weight:1.8}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{color:"#d7d7d7"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#ebebeb"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#a7a7a7"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#efefef"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#696969"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{visibility:"on"},{color:"#737373"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#d6d6d6"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{},{featureType:"poi",elementType:"geometry.fill",stylers:[{color:"#dadada"}]}]},d=h.get(0),a=new google.maps.Map(d,c),b;window.TEST=a,b={url:h.attr("data-map-marker"),scaledSize:new google.maps.Size(25,25),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(12,12)},new google.maps.Marker({position:new google.maps.LatLng(l,m),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(31.267401,121.522179),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(22.383205,114.141907),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(43.604652,1.444209),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(50.110922,8.682127),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(45.464204,9.189982),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(41.902783,12.496366),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(1.352083,103.819836),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(46.204391,6.143158),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(51.507351,-.127758),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(42.032403,-87.741625),map:a,icon:b}),new google.maps.Marker({position:new google.maps.LatLng(40.893247,-74.011654),map:a,icon:b})})),a(".load-more-container").jscroll&&a(".load-more-container").jscroll({debug:!0,autoTriggerUntil:20,loadingHtml:'<img src="'+window.bkgUtils.themeUrl+'/dist/images/global/loading.gif" alt="Loading" />',padding:20,nextSelector:".navigation .next",contentSelector:".bva-card-container",pagingSelector:".navigation",callback:function(b){a(this).find(".navigation").remove(),a(this).before(a(this).children()),a(this).remove()}}),a("#home-logos-slider").length&&(console.info("[Slider] init home-logos-slider"),a("#home-logos-slider").slick({lazyLoad:"progressive",dots:!0,slidesToShow:5,slidesToScroll:5,rows:2,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]})),a("#partners-logos-slider").length&&(console.info("[Slider] init partners-logos-slider"),a("#partners-logos-slider").slick({lazyLoad:"progressive",dots:!0,slidesToShow:5,slidesToScroll:5,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:600,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:3}}]})),a(".content-type.logos-block .logo-slider").length&&(console.info("[Slider] init flexible content logos slider"),a(".content-type.logos-block .logo-slider").each(function(b,c){a(this).slick({lazyLoad:"progressive",dots:!0,slidesToShow:5,slidesToScroll:5,rows:1,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:600,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:3}}]})})),a(".content-type.slideshow-block .slideshow-slider").length&&(console.info("[Slider] init flexible content slideshow slider"),a(".content-type.slideshow-block .slideshow-slider").each(function(b,c){a(this).slick({lazyLoad:"progressive",dots:!0,adaptiveHeight:!0,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:1024,settings:{}}]})})),a(".content-type.verbatim-block .verbatim-slider").length&&(console.info("[Slider] init flexible content verbatim slider"),a(".content-type.verbatim-block .verbatim-slider").each(function(b,c){a(this).slick({lazyLoad:"progressive",dots:!0,adaptiveHeight:!0,prevArrow:'<button class="bkg-icon bkg-icon-previous slick-prev"></button>',nextArrow:'<button class="bkg-icon bkg-icon-next slick-next"></button>',responsive:[{breakpoint:1024,settings:{}}]})})),a("body.page-template-contact").length&&a(".first-step-contact").on("submit",function(c){c.preventDefault(),c.stopImmediatePropagation(),a(".identity-form").addClass("active"),a(".contact-form").removeClass("active");var b=a(this).attr("data-section");return a("#form_section").val(b),a("#form_subject").val(a(this).find("#"+b+"Subject").val()),a("#form_message").val(a(this).find("#"+b+"Message").val()),!1}),function(){var c,s=function(a,b){this.node=a,this.anchor=b,this.initialized=!1,this.initialize=function(){},this.compute=function(a){var b=this.anchor.offset().top,c=this.anchor.outerHeight();a+150+this.node.outerHeight()>b+c?(this.node.removeClass("scrolling"),this.node.css("top",c-this.node.outerHeight())):b-a-150<0?(this.node.css("top","150px"),this.node.addClass("scrolling")):(this.node.removeClass("scrolling"),this.node.css("top","0"))}},r=function(d){this.node=d;var c={},b={};this.setWatch=function(a,b){c[a]||(c[a]=[]),-1===c[a].indexOf(b)&&c[a].push(b)},this.getWatch=function(a){return a?c[a]||[]:c},this.setToggle=function(a,c){b[a]||(b[a]=[]),-1===b[a].indexOf(c)&&b[a].push(c)},this.getToggle=function(a){return a?b[a]||[]:b},this.reset=function(){b={}},this.compute=function(){a(this.node).removeClass(this.getWatch("class").join(" ")).addClass(this.getToggle("class").join(" "))}},f=new function(){this.nodes=[],this.index=[],this.hasNode=function(a){return this.index.indexOf(a)},this.push=function(a){var b=this.hasNode(a),c;return-1!==b?this.nodes[b]:(c=new r(a),this.index.push(a),this.nodes[this.index.length-1]=c,c)},this.reset=function(){for(var a=0;a<this.nodes.length;a++)this.nodes[a].reset()},this.compute=function(){for(var a=0;a<this.nodes.length;a++)this.nodes[a].compute()}},q=function(b,c,d){this.dom=a(b),this.className=c,this.triggered=!1,this.node=f.push(a(d||"body").get(0)),this.dom.addClass("toggle-class-init"),this.node.setWatch("class",this.className),this.isOneWay=this.dom.is("[data-oneway]"),this.check=function(b){if(!this.isOneWay||!this.triggered){var a=this.dom.offset().top,c=window.innerHeight,d=this.dom.outerHeight(),e=Math.round(100-100*(a-b)/c),g=Math.round(100-100*(a-b+d)/c),f=a-c,h=a+d,i=b-f;if(Math.round(100*i/(h-f)),this.isOneWay&&e>10)return this.dom.addClass(this.className),void(this.triggered=!0);e<50||g>50||this.node.setToggle("class",this.className)}}},v=function(a){this.element=a,this.check=function(a){isInViewport(this.element)?this.show():this.hide()},this.show=function(){!0!==this.element.pauseOffscreenShowing&&(console.log("play video"),"VIDEO"===this.element.tagName&&this.element.play(),this.element.style.visibility="visible",this.element.pauseOffscreenShowing=!0)},this.hide=function(){!1!==this.element.pauseOffscreenShowing&&(console.log("pause video"),"VIDEO"===this.element.tagName&&this.element.pause(),this.element.style.visibility="hidden",this.element.pauseOffscreenShowing=!1)}},p=function(b){this.dom=a(b),this.property=this.dom.attr("scroll-animate"),this.delta=parseFloat(this.dom.attr("scroll-delta")||0,10),this.unit="",this.initial=parseFloat(this.dom.attr("scroll-initial")||0,10),this.isMaster=!!this.dom.is("[scroll-master]"),this.children=this.dom.find("[scroll-children]"),this.stopAt=parseFloat(this.dom.attr("scroll-stop")||70,10),-1!==this.property.indexOf("translate")&&(this.unit="px"),this.oldValue=-1/0,this.check=function(c){var b=this.dom.offset().top,d=window.innerHeight,g=this.dom.outerHeight(),h=Math.round(100-100*(b-c)/d),l=Math.round(100-100*(b-c+g)/d),f=b-d,i=b+g,j=c-f,a=Math.round(100*j/(i-f)),k,e;h<0||l>100||(this.stopAt&&(a=Math.round(Math.min(a/this.stopAt*100,100))),k=a/100,this.oldValue!==a&&(this.oldValue=a,e=10,this.unit||(e=1e4),this.transform(Math.round(k*this.delta*e)/e+this.initial)))},this.transform=function(b){var c=this.property+"("+b+this.unit+") translateZ(0)",a=this.dom;this.isMaster&&(a=this.children),a.css({transform:c})}},o=a("[scroll-animate]"),n=a("[data-toggleclass]"),m=a("[data-video-watch]"),j=[],i=a("header.header"),k=i.height(),d=!1,h=[],g=[],b=0,e=(a("body"),!1),t,u,l;!function(){a(".floating-share.sticky").length&&(c=new s(a(".floating-share"),a(".floating-share-anchor")),c.initialize()),o.each(function(b,a){h.push(new p(a))}),m.each(function(b,a){g.push(new v(a))}),n.each(function(b,c){var e=a(c).attr("data-toggleclass").split(","),d=(a(c).attr("data-togglenode")||"").split(",");for(b=0;b<d.length;b++)j.push(new q(c,e[b],d[b]))})}(),t=function(){f.reset(),c&&c.compute(b),b>k&&!d?(d=!0,i.addClass("sticky")):b<k&&d&&(d=!1,i.removeClass("sticky"));for(var a=0;a<h.length;a++)h[a].check(b);for(a=0;a<g.length;a++)g[a].check(b);for(a=0;a<j.length;a++)j[a].check(b);f.compute(),e=!1},u=function(){e||(requestAnimFrame(t),e=!0)},l=function(){b=window.scrollY||window.pageYOffset,u()},window.addEventListener("scroll",l,!1),window.setTimeout(l,500)}(),requestAnimFrame(function(){a("body").addClass("loaded")})}};a(document).ready(b.loadEvents)}(jQuery),function(a){var b=function(c){var b=this;c=c||{},"string"==typeof c&&(c={elements:c}),this.sel=null,this.textSelection="",this.htmlSelection="",this.appId=a('meta[property="fb:app_id"]').attr("content")||a('meta[property="fb:app_id"]').attr("value"),this.url2share=a('meta[property="og:url"]').attr("content")||a('meta[property="og:url"]').attr("value")||window.location.href,this.getSelectionText=function(a){var f="",c="",d,e,g;if(a=a||window.getSelection(),a.rangeCount){for(d=document.createElement("div"),e=0,g=a.rangeCount;e<g;++e)d.appendChild(a.getRangeAt(e).cloneContents());c=d.textContent,f=d.innerHTML}return b.textSelection=c,b.htmlSelection=f||c,c},this.selectionDirection=function(c){var a=c||window.getSelection(),b=document.createRange(),d;return a.anchorNode?(b.setStart(a.anchorNode,a.anchorOffset),b.setEnd(a.focusNode,a.focusOffset),d=b.collapsed?"backward":"forward",b.detach(),d):0},this.showPopunder=function(){var c,d,f,a,e,g;if(b.popunder=b.popunder||document.getElementById("selectionSharerPopunder"),c=window.getSelection(),d=b.getSelectionText(c),c.isCollapsed||d.length<10||!d.match(/ /))return b.hidePopunder();if(b.popunder.classList.contains("fixed"))return b.popunder.style.bottom=0,b.popunder.style.bottom;if(f=c.getRangeAt(0),a=f.endContainer.parentNode,b.popunder.classList.contains("show")){if(Math.ceil(b.popunder.getBoundingClientRect().top)==Math.ceil(a.getBoundingClientRect().bottom))return;return b.hidePopunder(b.showPopunder)}a.nextElementSibling?b.pushSiblings(a):(b.placeholder||(b.placeholder=document.createElement("div"),b.placeholder.className="selectionSharerPlaceholder"),e=window.getComputedStyle(a).marginBottom,b.placeholder.style.height=e,b.placeholder.style.marginBottom=-2*parseInt(e,10)+"px",a.parentNode.insertBefore(b.placeholder)),g=window.pageYOffset+a.getBoundingClientRect().bottom,b.popunder.style.top=Math.ceil(g)+"px",setTimeout(function(){b.placeholder&&b.placeholder.classList.add("show"),b.popunder.classList.add("show")},0)},this.pushSiblings=function(a){for(;a=a.nextElementSibling;)a.classList.add("selectionSharer"),a.classList.add("moveDown")},this.hidePopunder=function(a){if(a=a||function(){},"fixed"==b.popunder)return b.popunder.style.bottom="-50px",a();b.popunder.classList.remove("show"),b.placeholder&&b.placeholder.classList.remove("show");for(var c=document.getElementsByClassName("moveDown");el=c[0];)el.classList.remove("moveDown");setTimeout(function(){b.placeholder&&document.body.insertBefore(b.placeholder),a()},600)},this.show=function(a){setTimeout(function(){var d=window.getSelection(),f=b.getSelectionText(d),h,i,g,c,e;if(!d.isCollapsed&&f&&f.length>10&&f.match(/ /)){if(h=d.getRangeAt(0),i=h.getBoundingClientRect().top-5,g=i+b.getPosition().y-b.$popover.height(),c=0,a)c=a.pageX;else{e=d.anchorNode.parentNode,c+=e.offsetWidth/2;do c+=e.offsetLeft;while(e=e.offsetParent)}switch(b.selectionDirection(d)){case"forward":c-=b.$popover.width();break;case"backward":c+=b.$popover.width();break;default:return}b.$popover.removeClass("anim").css("top",g+10).css("left",c).show(),setTimeout(function(){b.$popover.addClass("anim").css("top",g)},0)}},10)},this.hide=function(a){b.$popover.hide()},this.smart_truncate=function(a,d){if(!a||!a.length)return a;var c=a.length>d,b=c?a.substr(0,d-1):a;return b=c?b.substr(0,b.lastIndexOf(" ")):b,c?b+"...":b},this.getRelatedTwitterAccounts=function(){var c=[],f=a('meta[name="twitter:creator"]').attr("content")||a('meta[name="twitter:creator"]').attr("value"),d,b,g,e;f&&c.push(f);for(d=document.getElementsByTagName("a"),b=0,g=d.length;b<g;b++)d[b].attributes.href&&"string"==typeof d[b].attributes.href.value&&(e=d[b].attributes.href.value.match(/^https?:\/\/twitter\.com\/([a-z0-9_]{1,20})/i),e&&e.length>1&&-1==["widgets","intent"].indexOf(e[1])&&c.push(e[1]));return c.length>0?c.join(","):""},this.shareTwitter=function(f){var a,c,d,e;return f.preventDefault(),a="“"+b.smart_truncate(b.textSelection.trim(),114)+"”",c="http://twitter.com/intent/tweet?text="+encodeURIComponent(a)+"&related="+b.relatedTwitterAccounts+"&url="+encodeURIComponent(window.location.href),b.viaTwitterAccount&&a.length<114-b.viaTwitterAccount.length&&(c+="&via="+b.viaTwitterAccount),d=screen.width/2-320,e=screen.height/2-220-100,window.open(c,"share_twitter","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=440, top="+e+", left="+d),b.hide(),!1},this.shareLinkedin=function(f){var a,c,d,e;f.preventDefault(),a=b.htmlSelection.replace(/<p[^>]*>/gi,"\n").replace(/<\/p>|  /gi,"").trim(),a="“"+b.smart_truncate(a.trim(),250)+"”",console.log(a),c="https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(b.url2share)+"&title="+encodeURIComponent(document.title)+"&summary="+encodeURIComponent(a)+"&source=bva-group.com",d=screen.width/2-320,e=screen.height/2-220-100,window.open(c,"share_linkedin","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=640, height=440, top="+e+", left="+d)},this.shareEmail=function(e){var d=b.textSelection.replace(/<p[^>]*>/gi,"\n").replace(/<\/p>|  /gi,"").trim(),c={};return c.subject=encodeURIComponent("Quote from "+document.title),c.body=encodeURIComponent("“"+d+"”")+"%0D%0A%0D%0AFrom: "+document.title+"%0D%0A"+window.location.href,a(this).attr("href","mailto:?subject="+c.subject+"&body="+c.body),b.hide(),!0},this.render=function(){b.$popover=a('<div class="selectionSharer" id="selectionSharerPopover" style="position:absolute;">  <div id="selectionSharerPopover-inner">    <ul>      <li><a class="action tweet" href="" title="Share this selection on Twitter" target="_blank">Tweet</a></li>      <li><a class="action linkedin" href="" title="Share this selection on Linkedin" target="_blank">Linkedin</a></li>      <li><a class="action email" href="" title="Share this selection by email" target="_blank"><svg width="20" height="20"><path stroke="%23FFF" stroke-width="6" d="m16,25h82v60H16zl37,37q4,3 8,0l37-37M16,85l30-30m22,0 30,30"/></svg></a></li>    </ul>  </div>  <div class="selectionSharerPopover-clip"><span class="selectionSharerPopover-arrow"></span></div></div>'),b.$popover.find("a.tweet").click(b.shareTwitter),b.$popover.find("a.linkedin").click(b.shareLinkedin),b.$popover.find("a.email").click(b.shareEmail),a("body").append(b.$popover),b.$popunder=a('<div id="selectionSharerPopunder" class="selectionSharer">  <div id="selectionSharerPopunder-inner">    <label>Share this selection</label>    <ul>      <li><a class="action tweet" href="" title="Share this selection on Twitter" target="_blank">Tweet</a></li>      <li><a class="action linkedin" href="" title="Share this selection on Linkedin" target="_blank">Linkedin</a></li>      <li><a class="action email" href="" title="Share this selection by email" target="_blank"><svg width="20" height="20"><path stroke="%23FFF" stroke-width="6" d="m16,25h82v60H16zl37,37q4,3 8,0l37-37M16,85l30-30m22,0 30,30"/></svg></a></li>    </ul>  </div></div>'),b.$popunder.find("a.tweet").click(b.shareTwitter),b.$popunder.find("a.linkedin").click(b.shareLinkedin),b.$popunder.find("a.email").click(b.shareEmail),a("body").append(b.$popunder)},this.setElements=function(c){"string"==typeof c&&(c=a(c)),b.$elements=c instanceof a?c:a(c),b.$elements.mouseup(b.show).mousedown(b.hide).addClass("selectionShareable"),b.$elements.bind("touchstart",function(a){b.isMobile=!0}),document.onselectionchange=b.selectionChanged},this.selectionChanged=function(a){b.isMobile&&(b.lastSelectionChanged&&clearTimeout(b.lastSelectionChanged),b.lastSelectionChanged=setTimeout(function(){b.showPopunder(a)},300))},this.getPosition=function(){var a=void 0!==window.pageXOffset,b="CSS1Compat"===(document.compatMode||"");return{x:a?window.pageXOffset:b?document.documentElement.scrollLeft:document.body.scrollLeft,y:a?window.pageYOffset:b?document.documentElement.scrollTop:document.body.scrollTop}},this.render(),c.elements&&this.setElements(c.elements)};a.fn.selectionSharer=function(){return(new b).setElements(this),this},"function"==typeof define?define(function(){return b.load=function(c,d,a,e){(new b).setElements("p"),a()},b}):window.SelectionSharer=b}(jQuery),function(b){var d,a,c;d={speed:700,pause:4e3,showItems:1,mousePause:!0,height:0,animate:!0,margin:0,padding:0,startPaused:!1,autoAppend:!0},a={moveUp:function(b,c){return a.showNextItem(b,c,"up")},moveDown:function(b,c){return a.showNextItem(b,c,"down")},nextItemState:function(a,d){var b,c;return c=a.element.children("ul"),b=a.itemHeight,a.options.height>0&&(b=c.children("li:first").height()),b+=a.options.margin+2*a.options.padding,{height:b,options:a.options,el:a.element,obj:c,selector:"up"===d?"li:first":"li:last",dir:d}},showNextItem:function(c,e,f){var d,b;return b=a.nextItemState(c,f),b.el.trigger("vticker.beforeTick"),d=b.obj.children(b.selector).clone(!0),"down"===b.dir&&b.obj.css("top","-"+b.height+"px").prepend(d),e&&e.animate?c.animating||a.animateNextItem(b,c):a.nonAnimatedNextItem(b),"up"===b.dir&&c.options.autoAppend&&d.appendTo(b.obj),b.el.trigger("vticker.afterTick")},animateNextItem:function(a,c){var d;return c.animating=!0,d="up"===a.dir?{top:"-="+a.height+"px"}:{top:0},a.obj.animate(d,c.options.speed,function(){return b(a.obj).children(a.selector).remove(),b(a.obj).css("top","0px"),c.animating=!1})},nonAnimatedNextItem:function(a){return a.obj.children(a.selector).remove(),a.obj.css("top","0px")},nextUsePause:function(){var e,d;if(d=b(this).data("state"),e=d.options,!d.isPaused&&!a.hasSingleItem(d))return c.next.call(this,{animate:e.animate})},startInterval:function(){var d,c;return c=b(this).data("state"),d=c.options,c.intervalId=setInterval(function(b){return function(){return a.nextUsePause.call(b)}}(this),d.pause)},stopInterval:function(){var a;if(a=b(this).data("state"))return a.intervalId&&clearInterval(a.intervalId),a.intervalId=void 0},restartInterval:function(){return a.stopInterval.call(this),a.startInterval.call(this)},getState:function(c,d){var a;if(!(a=b(d).data("state")))throw new Error("vTicker: No state available from "+c);return a},isAnimatingOrSingleItem:function(a){return a.animating||this.hasSingleItem(a)},hasMultipleItems:function(a){return a.itemCount>1},hasSingleItem:function(b){return!a.hasMultipleItems(b)},bindMousePausing:function(b){return function(d,b){return d.bind("mouseenter",function(){if(!b.isPaused)return b.pausedByCode=!0,a.stopInterval.call(this),c.pause.call(this,!0)}).bind("mouseleave",function(){if(!b.isPaused||b.pausedByCode)return b.pausedByCode=!1,c.pause.call(this,!1),a.startInterval.call(this)})}}(),setItemLayout:function(c,d,a){var e;return c.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:a.margin,padding:a.padding}),isNaN(a.height)||0===a.height?(c.children("ul").children("li").each(function(){if(b(this).height()>d.itemHeight)return d.itemHeight=b(this).height()}),c.children("ul").children("li").each(function(){return b(this).height(d.itemHeight)}),e=a.margin+2*a.padding,c.height((d.itemHeight+e)*a.showItems+a.margin)):c.height(a.height)},defaultStateAttribs:function(a,b){return{itemCount:a.children("ul").children("li").length,itemHeight:0,itemMargin:0,element:a,animating:!1,options:b,isPaused:b.startPaused,pausedByCode:!1}}},c={init:function(e){var h,g,f;if((f=b(this).data("state"))&&c.stop.call(this),f=null,h=jQuery.extend({},d),e=b.extend(h,e),g=b(this),f=a.defaultStateAttribs(g,e),b(this).data("state",f),a.setItemLayout(g,f,e),e.startPaused||a.startInterval.call(this),e.mousePause)return a.bindMousePausing(g,f)},pause:function(e){var d,c;return c=a.getState("pause",this),!!a.hasMultipleItems(c)&&(c.isPaused=e,d=c.element,e?(b(this).addClass("paused"),d.trigger("vticker.pause")):(b(this).removeClass("paused"),d.trigger("vticker.resume")))},next:function(c){var b;return b=a.getState("next",this),!a.isAnimatingOrSingleItem(b)&&(a.restartInterval.call(this),a.moveUp(b,c))},prev:function(c){var b;return b=a.getState("prev",this),!a.isAnimatingOrSingleItem(b)&&(a.restartInterval.call(this),a.moveDown(b,c))},stop:function(){return a.getState("stop",this),a.stopInterval.call(this)},remove:function(){var b,c;return c=a.getState("remove",this),a.stopInterval.call(this),b=c.element,b.unbind(),b.remove()}},b.fn.vTicker=function(a){return c[a]?c[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?b.error("Method "+a+" does not exist on jQuery.vTicker"):c.init.apply(this,arguments)}}(jQuery)