Free javascript Hosting


common-3880b272a164.js

Uploaded on Oct 20 2021 19:09 by opaolilo

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jQuery"),require("Vue"));else if("function"==typeof define&&define.amd)define(["jQuery","Vue"],t);else{var n="object"==typeof exports?t(require("jQuery"),require("Vue")):t(e.jQuery,e.Vue);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(window,function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=35)}([function(t,n){t.exports=e},function(e,t,n){"use strict";t.a={above:function(e){return window.innerWidth+.02>e},below:function(e){return window.innerWidth<=e},mobile:414,mobileLandscape:568,tablet:768,tabletLandscape:1024,desktop:1200}},function(e,t,n){"use strict";function o(e,t,n,o,r,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";n(13);var o=n(0),r=n.n(o),i=r()("body");function a(){navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android/i)?i.addClass("touchscreen"):i.removeClass("touchscreen")}t.a={diagonal:function(e,t){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2))},touchscreen:function(){return i.hasClass("touchscreen")},intcomma:function e(t){var n=String(t),o=n.replace(/^(-?\d+)(\d{3})/,"$1,$2");return n==o?o:e(o)},init:function(){a(),r()(window).on("resize",a),window.addEventListener("load",function(){r()(".js-match-media-height").matchHeight()})}}},,function(e,t,n){"use strict";n.d(t,"b",function(){return f});var o=n(1),r=n(0),i=n.n(r);function a(e,t){l(e),c(e,t),function(e){i()(".library__nav-back",e).addClass("library__nav-back--show")}(e),u(e,t),i()(".library__body",e).addClass("library__body--open")}function s(e){i()(".library__body",e).removeClass("library__body--open"),function(e){i()(".library__nav-back",e).removeClass("library__nav-back--show")}(e),l(e),u(e)}function c(e,t){i()("[data-open_book]",e).removeClass("library__book-spine--active"),i()("[data-open_book=".concat(t,"]"),e).addClass("library__book-spine--active")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;c(t),i()(".library__book",e).removeClass("library__book--open"),i()("#library__book-"+t,e).addClass("library__book--open")}function l(e){i()(".library__chapter",e).removeClass("library__chapter--open"),i()(".library__chapter-body",e).css("max-height",0)}function f(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=!1;function r(){new Date-t<n?setTimeout(r,n):(o=!1,e())}i()(window).resize(function(){t=new Date,!1===o&&(o=!0,setTimeout(r,n))})}t.a={init:function(){i()(".library").each(function(e,t){i()(".library__nav-back",t).on("click",function(e){e.preventDefault(),s(t)}),i()(".library__book-spine",t).on("click",function(){a(t,i()(this).data("open_book"))}),i()(".library__chapter-header",t).not(".library__chapter-header--link").on("click",function(){var e=i()(this).parents(".library__chapter"),t=i()(".library__chapter-body",e);e.hasClass("library__chapter--open")?(e.removeClass("library__chapter--open"),t.css("max-height",0)):(e.addClass("library__chapter--open"),t.css("max-height",t.prop("scrollHeight")))})}),o.a.above(o.a.tabletLandscape)&&i()(window).on("load",function(){i()(".library__chapter--open").each(function(e,t){var n=i()(".library__chapter-body",t);n.css("max-height",n.prop("scrollHeight"))})}),i()(window).on("resize",function(){i()(".library__chapter--open .library__chapter-body").each(function(e,t){var n=i()(t);o.a.above(o.a.tabletLandscape)?n.css("max-height",n.prop("scrollHeight")):n.css("max-height",0)})})}}},function(e,t,n){var o,r,i;r=[n(0)],void 0===(i="function"==typeof(o=function(e){var t,n,o,r=[],i=document,a=window,s=i.documentElement;function c(){if(r.length){var o=0,c=e.map(r,function(e){var t=e.data.selector,n=e.$element;return t?n.find(t):n});for(t=t||function(){var t,n,o={height:a.innerHeight,width:a.innerWidth};return o.height||!(t=i.compatMode)&&e.support.boxModel||(n="CSS1Compat"===t?s:i.body,o={height:n.clientHeight,width:n.clientWidth}),o}(),n=n||{top:a.pageYOffset||s.scrollTop||i.body.scrollTop,left:a.pageXOffset||s.scrollLeft||i.body.scrollLeft};o<r.length;o++)if(e.contains(s,c[o][0])){var u=e(c[o]),l={height:u[0].offsetHeight,width:u[0].offsetWidth},f=u.offset(),d=u.data("inview");if(!n||!t)return;f.top+l.height>n.top&&f.top<n.top+t.height&&f.left+l.width>n.left&&f.left<n.left+t.width?d||u.data("inview",!0).trigger("inview",[!0]):d&&u.data("inview",!1).trigger("inview",[!1])}}}e.event.special.inview={add:function(t){r.push({data:t,$element:e(this),element:this}),!o&&r.length&&(o=setInterval(c,250))},remove:function(e){for(var t=0;t<r.length;t++){var n=r[t];if(n.element===this&&n.data.guid===e.guid){r.splice(t,1);break}}r.length||(clearInterval(o),o=null)}},e(a).bind("scroll resize scrollstop",function(){t=n=null}),!s.addEventListener&&s.attachEvent&&s.attachEvent("onfocusin",function(){n=null})})?o.apply(t,r):o)||(e.exports=i)},function(e,n){e.exports=t},function(e,t,n){var o,r;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
* JavaScript Cookie v2.2.0
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/!function(a){var s=!1;if(void 0===(r="function"==typeof(o=a)?o.call(t,n,t,e):o)||(e.exports=r),s=!0,"object"===i(t)&&(e.exports=a(),s=!0),!s){var c=window.Cookies,u=window.Cookies=a();u.noConflict=function(){return window.Cookies=c,u}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}return function t(n){function o(t,r,i){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},o.defaults,i)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u]));return document.cookie=t+"="+r+c}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d<l.length;d++){var p=l[d].split("="),h=p.slice(1).join("=");this.json||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var m=p[0].replace(f,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(f,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===m){a=h;break}t||(a[m]=h)}catch(e){}}return a}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(t,n){o(t,"",e(n,{expires:-1}))},o.withConverter=t,o}(function(){})})},,,,,function(e,t,n){var o,r,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){"use strict";r=[n(0)],void 0===(i="function"==typeof(o=function(e){var t=-1,n=-1,o=function(e){return parseFloat(e)||0},r=function(t){var n=e(t),r=null,i=[];return n.each(function(){var t=e(this),n=t.offset().top-o(t.css("margin-top")),a=i.length>0?i[i.length-1]:null;null===a?i.push(t):Math.floor(Math.abs(r-n))<=1?i[i.length-1]=a.add(t):i.push(t),r=n}),i},i=function(t){var n={byRow:!0,property:"height",target:null,remove:!1};return"object"===a(t)?e.extend(n,t):("boolean"==typeof t?n.byRow=t:"remove"===t&&(n.remove=!0),n)},s=e.fn.matchHeight=function(t){var n=i(t);if(n.remove){var o=this;return this.css(n.property,""),e.each(s._groups,function(e,t){t.elements=t.elements.not(o)}),this}return this.length<=1&&!n.target?this:(s._groups.push({elements:this,options:n}),s._apply(this,n),this)};s.version="0.7.2",s._groups=[],s._throttle=80,s._maintainScroll=!1,s._beforeUpdate=null,s._afterUpdate=null,s._rows=r,s._parse=o,s._parseOptions=i,s._apply=function(t,n){var a=i(n),c=e(t),u=[c],l=e(window).scrollTop(),f=e("html").outerHeight(!0),d=c.parents().filter(":hidden");return d.each(function(){var t=e(this);t.data("style-cache",t.attr("style"))}),d.css("display","block"),a.byRow&&!a.target&&(c.each(function(){var t=e(this),n=t.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block"),t.data("style-cache",t.attr("style")),t.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),u=r(c),c.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||"")})),e.each(u,function(t,n){var r=e(n),i=0;if(a.target)i=a.target.outerHeight(!1);else{if(a.byRow&&r.length<=1)return void r.css(a.property,"");r.each(function(){var t=e(this),n=t.attr("style"),o=t.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var r={display:o};r[a.property]="",t.css(r),t.outerHeight(!1)>i&&(i=t.outerHeight(!1)),n?t.attr("style",n):t.css("display","")})}r.each(function(){var t=e(this),n=0;a.target&&t.is(a.target)||("border-box"!==t.css("box-sizing")&&(n+=o(t.css("border-top-width"))+o(t.css("border-bottom-width")),n+=o(t.css("padding-top"))+o(t.css("padding-bottom"))),t.css(a.property,i-n+"px"))})}),d.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||null)}),s._maintainScroll&&e(window).scrollTop(l/f*e("html").outerHeight(!0)),this},s._applyDataApi=function(){var t={};e("[data-match-height], [data-mh]").each(function(){var n=e(this),o=n.attr("data-mh")||n.attr("data-match-height");t[o]=o in t?t[o].add(n):n}),e.each(t,function(){this.matchHeight(!0)})};var c=function(t){s._beforeUpdate&&s._beforeUpdate(t,s._groups),e.each(s._groups,function(){s._apply(this.elements,this.options)}),s._afterUpdate&&s._afterUpdate(t,s._groups)};s._update=function(o,r){if(r&&"resize"===r.type){var i=e(window).width();if(i===t)return;t=i}o?-1===n&&(n=setTimeout(function(){c(r),n=-1},s._throttle)):c(r)},e(s._applyDataApi);var u=e.fn.on?"on":"bind";e(window)[u]("load",function(e){s._update(!1,e)}),e(window)[u]("resize orientationchange",function(e){s._update(!0,e)})})?o.apply(t,r):o)||(e.exports=i)}()},,,,,function(e,t,n){"use strict";var o=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object"],r=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}";function i(e,t){return"string"==typeof e&&(t=e,e=document),Array.prototype.slice.call(e.querySelectorAll(t))}function a(e){return"string"==typeof e?e.split(",").map(c).filter(s):function(e){return"[object Array]"===Object.prototype.toString.call(e)}(e)?function(e){return[].concat.apply([],e)}(e.map(a).filter(s)):e||[]}function s(e){return e.length>0}function c(e){return e.replace(/^\s+|\s+$/g,"")}e.exports=function(e,t){e=e||"body",t=t||{},function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&(t=e,e="body"),t.ignore=t.ignore||"",t.players=t.players||"";var n=i(e);if(s(n)){if(!document.getElementById("fit-vids-style"))(document.head||document.getElementsByTagName("head")[0]).appendChild(function(){var e=document.createElement("div");return e.innerHTML='<p>x</p><style id="fit-vids-style">'+r+"</style>",e.childNodes[1]}());var c=a(t.players)||[],u=a(t.ignore)||[],l=o.filter(function(e){if(e.length<1)return function(){return!0};return function(t){return-1===e.indexOf(t)}}(u)).concat(c).join();s(l)&&n.forEach(function(e){i(e,l).forEach(function(e){!function(e){if(/fluid-width-video-wrapper/.test(e.parentNode.className))return;var t=parseInt(e.getAttribute("width"),10),n=parseInt(e.getAttribute("height"),10),o=isNaN(t)?e.clientWidth:t,r=(isNaN(n)?e.clientHeight:n)/o;e.removeAttribute("width"),e.removeAttribute("height");var i=document.createElement("div");e.parentNode.insertBefore(i,e),i.className="fluid-width-video-wrapper",i.style.paddingTop=100*r+"%",i.appendChild(e)}(e)})})}}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},,,,,,,,,,function(e,t,n){"use strict";(function(e,n){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! @vimeo/player v2.8.0 | (c) 2019 Vimeo | MIT License | https://github.com/vimeo/player.js */function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=void 0!==e&&"[object global]"==={}.toString.call(e);function a(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function s(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,o=t||n;if(!o)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(function(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}(o))return"https://vimeo.com/".concat(o);if(s(o))return o.replace("http:","https:");if(t)throw new TypeError("“".concat(t,"” is not a valid video id."));throw new TypeError("“".concat(o,"” is not a vimeo.com url."))}var u=void 0!==Array.prototype.indexOf,l="undefined"!=typeof window&&void 0!==window.postMessage;if(!(i||u&&l))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var f="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};
/*!
* weakmap-polyfill v2.0.0 - ECMAScript6 WeakMap polyfill
* https://github.com/polygonplanet/weakmap-polyfill
* Copyright (c) 2015-2016 polygon planet <polygon.planet.aqua@gmail.com>
* @license MIT
*/
!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=function(e,t,n){Object.defineProperty?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",function(e){return e+"_"+a()+"."+a()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function i(e,n){if(!r(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+o(e))}function a(){return Math.random().toString().substring(2)}return n(e.prototype,"delete",function(e){if(i(this,"delete"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),n(e.prototype,"get",function(e){if(i(this,"get"),r(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),n(e.prototype,"has",function(e){if(i(this,"has"),!r(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),n(e.prototype,"set",function(e,t){if(i(this,"set"),!r(e))throw new TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?(o[1]=t,this):(n(e,this._id,[e,t]),this)}),n(e,"_polyfill",!0),e}()}function r(e){return Object(e)===e}}("undefined"!=typeof self?self:"undefined"!=typeof window?window:f);var d=function(e,t){return e(t={exports:{}},t.exports),t.exports
/*!
* weakmap-polyfill v2.0.0 - ECMAScript6 WeakMap polyfill
* https://github.com/polygonplanet/weakmap-polyfill
* Copyright (c) 2015-2016 polygon planet <polygon.planet.aqua@gmail.com>
* @license MIT
*/}(function(e){
/*! Native Promise Only
v0.8.1 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
!function(t,n,o){n[t]=n[t]||o(),e.exports&&(e.exports=n[t])}("Promise",f,function(){var e,t,r,i=Object.prototype.toString,a=void 0!==n?function(e){return n(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,o){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==o})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function s(e,n){r.add(e,n),t||(t=a(r.drain))}function c(e){var t,n=o(e);return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function u(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var o,r;try{!1===t?n.reject(e.msg):(o=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=c(o))?r.call(o,n.resolve,n.reject):n.resolve(o)}catch(e){n.reject(e)}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&s(u,t))}function d(e,t,n,o){for(var r=0;r<t.length;r++)!function(r){e.resolve(t[r]).then(function(e){n(r,e)},o)}(r)}function p(e){this.def=e,this.triggered=!1}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new function(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}(this);this.then=function(e,n){var o={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return o.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");o.resolve=e,o.reject=t}),t.chain.push(o),0!==t.state&&s(u,t),o.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){(function e(t){var n,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(n=c(t))?s(function(){var r=new p(o);try{n.call(t,function(){e.apply(r,arguments)},function(){f.apply(r,arguments)})}catch(e){f.call(r,e)}}):(o.msg=t,o.state=1,o.chain.length>0&&s(u,o))}catch(e){f.call(new p(o),e)}}}).call(t,e)},function(e){f.call(t,e)})}catch(e){f.call(t,e)}}r=function(){var e,n,o;return{add:function(t,r){o=new function(e,t){this.fn=e,this.self=t,this.next=void 0}(t,r),n?n.next=o:e=o,n=o,o=void 0},drain:function(){var o=e;for(e=n=t=void 0;o;)o.fn.call(o.self),o=o.next}}}();var m=e({},"constructor",h,!1);return h.prototype=m,e(m,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==o(e)&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,o){if("function"!=typeof n||"function"!=typeof o)throw TypeError("Not a function");var r=e.length,i=Array(r),a=0;d(t,e,function(e,t){i[e]=t,++a===r&&n(i)},o)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t(function(n,o){if("function"!=typeof n||"function"!=typeof o)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},o)})}),h})}),p=new WeakMap;function h(e,t,n){var o=p.get(e.element)||{};t in o||(o[t]=[]),o[t].push(n),p.set(e.element,o)}function m(e,t){return(p.get(e.element)||{})[t]||[]}function v(e,t,n){var o=p.get(e.element)||{};if(!o[t])return!0;if(!n)return o[t]=[],p.set(e.element,o),!0;var r=o[t].indexOf(n);return-1!==r&&o[t].splice(r,1),p.set(e.element,o),o[t]&&0===o[t].length}var g=["autopause","autoplay","background","byline","color","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","title","transparent","url","width"];function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g.reduce(function(t,n){var o=e.getAttribute("data-vimeo-".concat(n));return(o||""===o)&&(t[n]=""===o?1:o),t},t)}function b(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var o=document.createElement("div");return o.innerHTML=n,t.appendChild(o.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(o,r){if(!s(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var i="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e),"&domain=").concat(window.location.hostname);for(var a in t)t.hasOwnProperty(a)&&(i+="&".concat(a,"=").concat(encodeURIComponent(t[a])));var c="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;c.open("GET",i,!0),c.onload=function(){if(404!==c.status)if(403!==c.status)try{var t=JSON.parse(c.responseText);if(403===t.domain_status_code)return b(t,n),void r(new Error("“".concat(e,"” is not embeddable.")));o(t)}catch(e){r(e)}else r(new Error("“".concat(e,"” is not embeddable.")));else r(new Error("“".concat(e,"” was not found.")))},c.onerror=function(){var e=c.status?" (".concat(c.status,")"):"";r(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},c.send()})}function _(e){return"string"==typeof e&&(e=JSON.parse(e)),e}function k(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var o={method:t};void 0!==n&&(o.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(o=JSON.stringify(o)),e.element.contentWindow.postMessage(o,e.origin)}}function T(e,t){var n,o=[];if((t=_(t)).event){if("error"===t.event)m(e,t.data.method).forEach(function(n){var o=new Error(t.data.message);o.name=t.data.name,n.reject(o),v(e,t.data.method,n)});o=m(e,"event:".concat(t.event)),n=t.data}else if(t.method){var r=function(e,t){var n=m(e,t);if(n.length<1)return!1;var o=n.shift();return v(e,t,o),o}(e,t.method);r&&(o.push(r),n=t.value)}o.forEach(function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}})}var C=new WeakMap,E=new WeakMap,x=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");var r=t.ownerDocument.defaultView;if("IFRAME"!==t.nodeName){var i=t.querySelector("iframe");i&&(t=i)}if("IFRAME"===t.nodeName&&!s(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(C.has(t))return C.get(t);this.element=t,this.origin="*";var a=new d(function(e,i){var a=function(t){if(s(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var o=_(t.data);if(o&&"error"===o.event&&o.data&&"ready"===o.data.method){var r=new Error(o.data.message);return r.name=o.data.name,void i(r)}var a=o&&"ready"===o.event,c=o&&"ping"===o.method;if(a||c)return n.element.setAttribute("data-ready","true"),void e();T(n,o)}};if(r.addEventListener?r.addEventListener("message",a,!1):r.attachEvent&&r.attachEvent("onmessage",a),"IFRAME"!==n.element.nodeName){var u=y(t,o);w(c(u),u,t).then(function(e){var o=b(e,t);return n.element=o,n._originalElement=t,function(e,t){var n=p.get(e);p.set(t,n),p.delete(e)}(t,o),C.set(n.element,n),e}).catch(i)}});return E.set(this,a),C.set(this.element,this),"IFRAME"===this.element.nodeName&&k(this,"ping"),this}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new d(function(o,r){return t.ready().then(function(){h(t,e,{resolve:o,reject:r}),k(t,e,n)}).catch(r)})}},{key:"get",value:function(e){var t=this;return new d(function(n,o){return e=a(e,"get"),t.ready().then(function(){h(t,e,{resolve:n,reject:o}),k(t,e)}).catch(o)})}},{key:"set",value:function(e,t){var n=this;return new d(function(o,r){if(e=a(e,"set"),void 0===t||null===t)throw new TypeError("There must be a value to set.");return n.ready().then(function(){h(n,e,{resolve:o,reject:r}),k(n,e,t)}).catch(r)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===m(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),h(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");v(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=E.get(this)||new d(function(e,t){t(new Error("Unknown player. Probably unloaded."))});return d.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new d(function(t){E.delete(e),C.delete(e.element),e._originalElement&&(C.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&e.element.parentNode.removeChild(e.element),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}}]),e}();i||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")).forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var n=y(e);w(c(n),n,e).then(function(t){return b(t,e)}).catch(t)}catch(e){t(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var t=function(t){if(s(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),o=0;o<n.length;o++)if(n[o].contentWindow===t.source){n[o].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}};window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("onmessage",t)}}()),t.a=x}).call(this,n(19),n(54).setImmediate)},function(e,t){!function(t){var n={src:"https://www.youtube.com/iframe_api",loading:!1,loaded:!1,listeners:[],load:function(e){var n=this;if(this.listeners.push(e),this.loaded)setTimeout(function(){n.done()});else if(!this.loading){this.loading=!0,t.onYouTubeIframeAPIReady=function(){n.loaded=!0,n.done()};var o=document.createElement("script");o.type="text/javascript",o.src=this.src,document.body.appendChild(o)}},done:function(){for(delete t.onYouTubeIframeAPIReady;this.listeners.length;)this.listeners.pop()(t.YT)}};void 0!==e&&e.exports?e.exports=n:t.YouTubeIframeLoader=n}(window)},,,,,function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i=n(1);function a(e,t,n,o,r){var a;return i.a.below(i.a.tablet)||e<=r?a="relative":e>=t&&e<n&&"slide"!==o?a="stick":e>=n&&(a="slide"),a}var s=function(){var e=r()(".js-navigation-secondary");e.length&&r()(document).ready(function(){!function(e){var t,n=r()(window).scrollTop(),o=e.scrollTop(),i=e.offset().top+e.outerHeight(!0),s=i+300,c=a(n,i,s,t,o);e.hasClass("js-no-secondary")||(e.attr("data-scroll",c),r()(document).scroll(function(){n=r()(window).scrollTop(),c!==a(n,i,s,t,o)&&(c=a(n,i,s,t=c,o),e.attr("data-scroll",c),e.trigger("megaNavStateUpdated",[c]))}),r()(window).resize(function(){o=e.scrollTop(),i=e.offset().top+e.outerHeight(!0),s=i+300,o=e.scrollTop()}))}(e)})};var c={loadActive:function(){var e=r()(".js-active-group"),t=r()("#active-category");e.hover(function(){t.removeClass("current-toggle")},function(){t.addClass("current-toggle")})},mobileNavCheck:function(){return!i.a.above(i.a.tabletLandscape)},transition:function(){var e=document.createElement("totem"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]},setBodyPadding:function(){var e=r()("body"),t=r()("#risk-disclaimer"),n=r()(".cookie-bar--bottom"),o=r()(".js-navigation-secondary");e.hasClass("has-risk-disclaimer--bottom")?e.css("padding-bottom",t.outerHeight(!0)):e.hasClass("has-risk-disclaimer--top")&&(e.css("padding-top",t.outerHeight(!0)),o.css("top",t.outerHeight(!0))),n.length&&e.css("padding-bottom",n.outerHeight(!0))}},u=n(3);function l(e,t){if(!c.mobileNavCheck()||e.hasClass("full-range")){var n=!0;e.find(t.target).length<1&&(n=!1),n?r()("body").addClass(t.target.replace(".","")):r()("body").removeClass(t.target.replace(".","")),t.currentOpen=e.index(),t.currentOpenElem=e;var o=function(e,t,n){var o=0;return e.find(t).length?e.find(t).each(function(){r()(this).height()>o&&(o=r()(this).outerHeight())}):o=0,n?o+n:o}(e,t.measure,t.padding),i=e.find(t.target);!function(e,t){e>.8*r()(window).height()?t.addClass("overflow"):t.removeClass("overflow")}(o,i),e.addClass("tr-in"),t.secondaryTarget&&r()(t.secondaryTarget).css("height",o),i.css("height",o)}}function f(e,t){if(!c.mobileNavCheck()||e.hasClass("full-range")){r()("body").removeClass(t.target.replace(".",""));var n=e.find(t.target);e.removeClass("tr-in"),t.secondaryTarget&&r()(t.secondaryTarget).css("height","0px"),n.removeClass("overflow"),n.css("height","0px")}}var d={group:function(e){r()(e.group).each(function(){r()(this).mouseenter(function(){e.active=!0}),r()(this).mouseleave(function(){e.active=!1,e.currentHover=null,e.currentOpen=null}),r()(this).find(e.dropDown).each(function(){var t=r()(this),n=r()(this).index(),o=t.find(e.trigger),i=e.delay;t.find(e.target).length,e.padding&&e.padding,r()(this).hover(function(){e.currentHover=n,t.openTimeout=setTimeout(function(){if(e.currentHover!==e.currentOpen&&e.currentHover===n){var o=t.find(e.target);l(t,e),e.transitioning=!0,o.one(c.transition(),function(){e.transitioning=!1})}},i)},function(){t.closeTimeout=setTimeout(function(){(e.currentOpen==n&&e.currentHover!==n||null==e.currentOpen)&&(f(t,e),e.active||r()("body").removeClass(e.target.replace(".","")))},i)}),u.a.touchscreen()?(o.on("touchstart",function(o){o.preventDefault(),e.currentOpen===n?(f(t,e),e.currentOpen=null):e.currentOpen!==n&&e.currentOpenElem?(f(e.currentOpenElem,e),l(t,e)):l(t,e)}),r()("#nav-occlude").on("touchstart",function(n){n.preventDefault(),f(t,e)})):o.bind("click",function(o){o.preventDefault(),e.currentOpen===n?(f(t,e),e.currentOpen=null):e.currentOpen!==n&&e.currentOpenElem?(f(e.currentOpenElem,e),l(t,e)):l(t,e)})})})}};function p(e,t){var n=t.find(".js-marker");t.find(e).each(function(){r()(this).mouseenter(function(){var e=r()(this).innerWidth()-15;!r()(this).find(".dropdown-arrow").length>0&&(e=r()(this).innerWidth());var o=r()(this).offset().left-t.offset().left+e/2;!r()(this).find(".dropdown-arrow").length>0&&(e=r()(this).innerWidth(),o=r()(this).offset().left-t.offset().left+e/2),n.css("margin-left",o),n.css("width",e)}),r()(this).mouseleave(function(){n.css("width","0px")})})}function h(){var e={group:".js-secondary-nav",dropDown:".js-menu-dropdown",trigger:".js-menu-dropdown-toggle",measure:".js-menu-group-height",target:".js-menu-group",secondaryTarget:"#tray",submenu:".js-menu-dropdown-list",submenuListItem:".js-nav-list-item",submenuGroup:".js-submenu",delay:200,active:!1,SubmenuActive:!1,click:!0,padding:!1,transitioning:!1,currentHover:null,currentOpen:null,currentOpenElem:null,triggerClicked:!1};function t(e,t,n,o){o.find(".js-submenu").each(function(){r()(this).removeClass("toggle")}),n.addClass("toggle"),r()("#tray").css("height",t),o.css("height",t)}function n(e,t,n){var o=t.outerHeight()+45,r=!1;return n.length>0&&(r=n.outerHeight()),r&&r>o&&(o=r),o}function o(e,t){var n=e.outerHeight()+45;return t&&(n=t.outerHeight()),n}d.group(e),r()(e.dropDown).each(function(){var i=r()(this).children(e.target);r()(this).find(e.submenu).each(function(){var a,s,c=r()(this),l=function(e){var t=!1;return e.find("#active-category").first().length>0&&(t=e.find("#active-category").first()),t}(c);r()(this).children(e.submnuListItem).each(function(){var f=r()(this).find(e.submenuGroup).first(),d=o(c,l);if(u.a.touchscreen()||r()(this).hover(function(){var o=n(r()(this),c,f);clearTimeout(s),a=setTimeout(function(){t(r()(this),o,f,i)},e.delay)},function(){clearTimeout(a),d=o(c,l),s=setTimeout(function(){!function(e,t,n,o,i){o.find(".js-submenu").each(function(){r()(this).removeClass("toggle")}),o.css("height",t),i&&r()("#tray").css("height",t)}(r()(this),d,0,i,!0),l&&l.addClass("toggle")},e.delay)}),u.a.touchscreen()){r()(this);r()(this).find(".js-nav-child").on("click",function(e){var o=n(0,c,f);e.preventDefault(),t(r()(this),o,f,i)})}})})}),u.a.touchscreen()&&r()(".js-menu-dropdown").each(function(){var e=r()(this),t=r()(this).find(".js-menu-dropdown-toggle"),n=r()(this).find("#active-category").first();t.on("touchstart",function(t){e.find(".js-submenu").each(function(){r()(this).removeClass("toggle")}),n.length>0&&n.addClass("toggle")})})}var m={bind:function(){d.group({group:".js-dropdown-group",dropDown:".js-dropdown",trigger:".js-dropdown-toggle",measure:".js-ref-height",target:".js-dropdown-target",delay:200,click:!0,padding:!1,transitioning:!1,currentHover:null,currentOpen:null,triggerClicked:!1}),c.mobileNavCheck()||(c.loadActive,h(),p(".js-menu-dropdown",r()(".js-secondary-nav")),p(".js-dropdown",r()(".js-primary-marker")),function(){var e=r()(".js-local-nav"),t=r()(".js-search"),n=r()(".js-search-container");r()(".js-search-open").click(function(){var o=r()(".js-local-nav-width").width();t.css("width",o),n.addClass("active"),e.addClass("hidden")}),r()(".js-search-close").click(function(){t.css("width","0px"),n.removeClass("active"),e.removeClass("hidden")})}())},unbind:function(){r()(".js-nav-list-item").unbind("mouseenter mouseleave"),r()(".js-nav-list").unbind("mouseenter mouseleave"),r()(".js-menu-dropdown").unbind("mouseenter mouseleave"),r()(".js-secondary-nav").unbind("mouseenter mouseleave"),r()(".js-menu-dropdown-toggle").unbind("click touchstart touchend"),r()(".js-menu-dropdown").removeClass("tr-in"),r()("#tray").css({height:""})}};function v(){var e,t=r()("body");r()(".js-offCanvasToggle,#nav-occlude").on("click",function(){t.hasClass("offCanvas-open")?(t.removeClass("offCanvas-open"),t.removeClass("occlude"),r()(".js-secondary-nav").css({transform:"none"}),r()(".js-nav-list").removeClass("show-list"),r()("#scroll-wrap").css("height","auto"),e=setTimeout(function(){r()(".js-secondary-nav-parent").removeClass("open")},300)):(clearTimeout(e),r()(".js-secondary-nav-parent").addClass("open"),t.addClass("offCanvas-open"),function(){var e=r()(".js-secondary-nav").height();r()("#cookie-bar").length>0&&(e+=r()("#cookie-bar").height()),r()("#alert").length>0&&(e+=r()("#alert").height()),r()("#region-bar").length>0&&(e+=r()("#region-bar").height()),r()(".js-navigation-secondary .navigation-secondary__top").length>0&&(e+=r()(".js-navigation-secondary .navigation-secondary__top").height()),r()("#scroll-wrap").css("height",e)}(),r()("html,body").scrollTop(0))})}var g={bind:function(){!function(){var e=r()(".js-secondary-nav");r()(".js-nav-list").each(function(){var t=r()(this);r()(this).children().each(function(){var n=r()(this),o=n.find(".js-nav-child"),i=n.find(".js-nav-list").first(),a=parseInt(t.attr("data-lvlget"));n.find(".js-nav-child")&&o.bind("click",function(t){t.preventDefault();var n=100*(a+1);e.css({transform:"translate(-"+n+"%)"}),i.addClass("show-list")})}),r()(".js-nav-parent").bind("click",function(t){t.preventDefault();var n=r()(this).parents(".show-list").first();e.css({transform:"none"}),e.one(c.transition(),function(){n.removeClass("show-list")})}),r()(".js-nav-parent-lvl").bind("click",function(t){t.preventDefault();var n=r()(this).parent();e.css({transform:"translate(-100%)"}),e.one(c.transition(),function(){n.removeClass("show-list")})})})}(),v()},unbind:function(){r()(".js-nav-parent").unbind("click"),r()(".js-nav-parent-lvl").unbind("click"),r()(".js-nav-child").unbind("click"),r()(".js-offCanvasToggle,#nav-occlude").unbind("click"),r()("body").removeClass("offCanvas-open"),r()(".js-secondary-nav").css({transform:"none"})}};function y(){c.mobileNavCheck()?(m.unbind(),g.bind()):(g.unbind(),m.bind())}var b=function(){r()(document).ready(function(){y();var e=c.mobileNavCheck(),t=r()(window).width();c.setBodyPadding(),r()(window).resize(function(){c.setBodyPadding(),clearTimeout(void 0),t!==r()(window).width()&&e!==c.mobileNavCheck()&&(e=c.mobileNavCheck(),t=r()(window).width(),setTimeout(function(){y()},200))})})},w=n(8),_=n.n(w);function k(e,t){var n=r()(e),o="cookie_id-"+n.attr("data-alert-id"),i=n.find(".js-close"),a=_.a.get(o);i.click(function(e){e.preventDefault(),t>0?_.a.set(o,!0,{expires:t}):_.a.set(o,!0),n.removeClass("active"),c.setBodyPadding()}),a||n.addClass("active")}var T=function(){k(".js-announce",0),k(".js-cookie",365)},C=(r()("body"),r()(".local-nav__menu_name"));var E=function(){C.on("click",function(e){if(i.a.below(i.a.mobileLandscape)){var t=r()(this).parents(".local-nav__menu"),n=r()(this).siblings(".local-nav__menu_links");t.hasClass("local-nav__menu--open")?(n.css("max-height",0),t.removeClass("local-nav__menu--open")):(n.css("max-height",n.prop("scrollHeight")),t.addClass("local-nav__menu--open"))}})},x=n(55);
/**!
* tippy.js v5.2.1
* (c) 2017-2020 atomiks
* MIT License
*/
function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var j="5.2.1";function S(e,t){e.innerHTML=t}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function D(e,t){return{}.hasOwnProperty.call(e,t)}function I(e){return P(e)?[e]:function(e){return N(e,"NodeList")}(e)?K(e):Array.isArray(e)?e:K(document.querySelectorAll(e))}function L(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function M(e,t){return e&&e.modifiers&&e.modifiers[t]}function N(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function P(e){return N(e,"Element")}function R(e,t){return"function"==typeof e?e.apply(void 0,t):e}function H(e,t,n,o){e.filter(function(e){return e.name===t})[0][n]=o}function U(){return document.createElement("div")}function B(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function W(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function F(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function V(e,t,n){e&&e!==t&&e.apply(void 0,n)}function K(e){return[].slice.call(e)}function z(e,t){return e.indexOf(t)>-1}function q(e){return e.split(/\s+/).filter(Boolean)}function $(e){return[].concat(e)}function Y(e,t){-1===e.indexOf(t)&&e.push(t)}function X(e){return"number"==typeof e?e:parseFloat(e)}function J(e,t,n){void 0===t&&(t=5);var o={top:0,right:0,bottom:0,left:0};return Object.keys(o).reduce(function(o,r){return o[r]="number"==typeof t?t:t[r],e===r&&(o[r]="number"==typeof t?t+n:t[e]+n),o},o)}var Q=O({allowHTML:!0,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[300,250],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},role:"tooltip",showOnCreate:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,zIndex:9999},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1}),G=Object.keys(Q),Z=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"],ee=function(e){Object.keys(e).forEach(function(t){Q[t]=e[t]})};function te(e){var t=(e.plugins||[]).reduce(function(t,n){var o=n.name,r=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:r),t},{});return O({},e,{},t)}function ne(e,t){var n=O({},t,{content:R(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(te(O({},Q,{plugins:t}))):G).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.interactive&&(n.aria=null),n}var oe={passive:!0},re="tippy-iOS",ie="tippy-popper",ae="tippy-tooltip",se="tippy-content",ce="tippy-arrow",ue="tippy-svg-arrow",le="."+ie,fe="."+ae,de="."+se,pe="."+ce,he="."+ue,me={isTouch:!1},ve=0;function ge(){me.isTouch||(me.isTouch=!0,window.performance&&document.addEventListener("mousemove",ye))}function ye(){var e=performance.now();e-ve<20&&(me.isTouch=!1,document.removeEventListener("mousemove",ye)),ve=e}function be(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var we="undefined"!=typeof window&&"undefined"!=typeof document,_e=we?navigator.userAgent:"",ke=/MSIE |Trident\//.test(_e),Te=we&&/iPhone|iPad|iPod/.test(navigator.platform);function Ce(e){var t=e&&Te&&me.isTouch;document.body.classList[t?"add":"remove"](re)}function Ee(e){return e.split("-")[0]}function xe(e){e.setAttribute("data-inertia","")}function Oe(e){e.setAttribute("data-interactive","")}function je(e,t){if(P(t.content))S(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function Se(e){return{tooltip:e.querySelector(fe),content:e.querySelector(de),arrow:e.querySelector(pe)||e.querySelector(he)}}function Ae(e){var t=U();return!0===e?t.className=ce:(t.className=ue,P(e)?t.appendChild(e):S(t,e)),t}function De(e,t,n){var o=Se(e),r=o.tooltip,i=o.content,a=o.arrow;e.style.zIndex=""+n.zIndex,r.setAttribute("data-animation",n.animation),r.style.maxWidth=function(e){return"number"==typeof e?e+"px":e}(n.maxWidth),n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),t.content!==n.content&&je(i,n),!t.arrow&&n.arrow?(r.appendChild(Ae(n.arrow)),r.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(r.removeChild(a),r.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(r.removeChild(a),r.appendChild(Ae(n.arrow))),!t.interactive&&n.interactive?Oe(r):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(r),!t.inertia&&n.inertia?xe(r):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(r),t.theme!==n.theme&&(Le(r,"remove",t.theme),Le(r,"add",n.theme))}function Ie(e,t,n){["transitionend","webkitTransitionEnd"].forEach(function(o){e[t+"EventListener"](o,n)})}function Le(e,t,n){q(n).forEach(function(n){e.classList[t](n+"-theme")})}var Me=1,Ne=[],Pe=[];function Re(e,t){var n,o,r,i=ne(e,O({},Q,{},te(t)));if(!i.multiple&&e._tippy)return null;var a,s,c,u,l=!1,f=!1,d=!1,p=0,h=[],m=F(be,i.interactiveDebounce),v=function(e){var t=$(e)[0];return t&&t.ownerDocument||document}(i.triggerTarget||e),g=Me++,y=function(e,t){var n=U();n.className=ie,n.style.position="absolute",n.style.top="0",n.style.left="0";var o=U();o.className=ae,o.id="tippy-"+e,o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1"),Le(o,"add",t.theme);var r=U();return r.className=se,r.setAttribute("data-state","hidden"),t.interactive&&Oe(o),t.arrow&&(o.setAttribute("data-arrow",""),o.appendChild(Ae(t.arrow))),t.inertia&&xe(o),je(r,t),o.appendChild(r),n.appendChild(o),De(n,t,t),n}(g,i),b=Se(y),w=function(e){return e.filter(function(t,n){return e.indexOf(t)===n})}(i.plugins),_=b.tooltip,k=b.content,T=[_,k],C={id:g,reference:e,popper:y,popperChildren:b,popperInstance:null,props:i,state:{currentPlacement:null,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){0;if(C.state.isDestroyed)return;0;G("onBeforeUpdate",[C,t]),ge();var n=C.props,o=ne(e,O({},C.props,{},t,{ignoreAttributes:!0}));o.ignoreAttributes=function(e,t){return void 0!==e?e:t}(t.ignoreAttributes,n.ignoreAttributes),C.props=o,ve(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),m=F(be,o.interactiveDebounce));De(y,n,o),C.popperChildren=Se(y),n.triggerTarget&&!o.triggerTarget?$(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");if(re(),C.popperInstance)if(Z.some(function(e){return D(t,e)&&t[e]!==n[e]})){var r=C.popperInstance.reference;C.popperInstance.destroy(),Re(),C.popperInstance.reference=r,C.state.isVisible&&C.popperInstance.enableEventListeners()}else C.popperInstance.update();G("onAfterUpdate",[C,t])},setContent:function(e){C.setProps({content:e})},show:function(e){void 0===e&&(e=L(C.props.duration,0,Q.duration));0;var t=C.state.isVisible,n=C.state.isDestroyed,o=!C.state.isEnabled,r=me.isTouch&&!C.props.touch;if(t||n||o||r)return;if(I().hasAttribute("disabled"))return;C.popperInstance||Re();if(G("onShow",[C],!1),!1===C.props.onShow(C))return;fe(),y.style.visibility="visible",C.state.isVisible=!0,C.state.isMounted||B(T.concat(y),0);s=function(){C.state.isVisible&&(B([y],C.props.updateDuration),B(T,e),W(T,"visible"),ee(),re(),Y(Pe,C),Ce(!0),C.state.isMounted=!0,G("onMount",[C]),function(e,t){pe(e,t)}(e,function(){C.state.isShown=!0,G("onShown",[C])}))},function(){p=0;var e,t=C.props.appendTo,n=I();e=C.props.interactive&&t===Q.appendTo||"parent"===t?n.parentNode:R(t,[n]);e.contains(y)||e.appendChild(y);0;H(C.popperInstance.modifiers,"flip","enabled",C.props.flip),C.popperInstance.enableEventListeners(),C.popperInstance.update()}()},hide:function(e){void 0===e&&(e=L(C.props.duration,1,Q.duration));0;var t=!C.state.isVisible&&!l,n=C.state.isDestroyed,o=!C.state.isEnabled&&!l;if(t||n||o)return;if(G("onHide",[C],!1),!1===C.props.onHide(C)&&!l)return;de(),y.style.visibility="hidden",C.state.isVisible=!1,C.state.isShown=!1,B(T,e),W(T,"hidden"),ee(),re(),function(e,t){pe(e,function(){!C.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()})}(e,function(){C.popperInstance.disableEventListeners(),C.popperInstance.options.placement=C.props.placement,y.parentNode.removeChild(y),0===(Pe=Pe.filter(function(e){return e!==C})).length&&Ce(!1),C.state.isMounted=!1,G("onHidden",[C])})},enable:function(){C.state.isEnabled=!0},disable:function(){C.hide(),C.state.isEnabled=!1},destroy:function(){0;if(C.state.isDestroyed)return;l=!0,C.clearDelayTimeouts(),C.hide(0),ge(),delete e._tippy,C.popperInstance&&C.popperInstance.destroy();l=!1,C.state.isDestroyed=!0,G("onDestroy",[C])}};e._tippy=C,y._tippy=C;var E=w.map(function(e){return e.fn(C)}),j=e.hasAttribute("aria-expanded");return ve(),re(),i.lazy||Re(),G("onCreate",[C]),i.showOnCreate&&Ue(),y.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),y.addEventListener("mouseleave",function(e){C.props.interactive&&z(C.props.trigger,"mouseenter")&&(m(e),v.addEventListener("mousemove",m))}),C;function S(){var e=C.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===S()[0]}function I(){return u||e}function P(e){return C.state.isMounted&&!C.state.isVisible||me.isTouch||a&&"focus"===a.type?0:L(C.props.delay,e?0:1,Q.delay)}function G(e,t,n){var o;(void 0===n&&(n=!0),E.forEach(function(n){D(n,e)&&n[e].apply(n,t)}),n)&&(o=C.props)[e].apply(o,t)}function ee(){var t=C.props.aria;if(t){var n="aria-"+t,o=_.id;$(C.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(C.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function re(){j||$(C.props.triggerTarget||e).forEach(function(e){C.props.interactive?e.setAttribute("aria-expanded",C.state.isVisible&&e===I()?"true":"false"):e.removeAttribute("aria-expanded")})}function ce(){v.body.removeEventListener("mouseleave",Be),v.removeEventListener("mousemove",m),Ne=Ne.filter(function(e){return e!==m})}function ue(e){if(!C.props.interactive||!y.contains(e.target)){if(I().contains(e.target)){if(me.isTouch)return;if(C.state.isVisible&&z(C.props.trigger,"click"))return}!0===C.props.hideOnClick&&(f=!1,C.clearDelayTimeouts(),C.hide(),d=!0,setTimeout(function(){d=!1}),C.state.isMounted||de())}}function fe(){v.addEventListener("mousedown",ue,!0)}function de(){v.removeEventListener("mousedown",ue,!0)}function pe(e,t){function n(e){e.target===_&&(Ie(_,"remove",n),t())}if(0===e)return t();Ie(_,"remove",c),Ie(_,"add",n),c=n}function he(t,n,o){void 0===o&&(o=!1),$(C.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),h.push({node:e,eventType:t,handler:n,options:o})})}function ve(){A()&&(he("touchstart",ye,oe),he("touchend",we,oe)),q(C.props.trigger).forEach(function(e){if("manual"!==e)switch(he(e,ye),e){case"mouseenter":he("mouseleave",we);break;case"focus":he(ke?"focusout":"blur",_e);break;case"focusin":he("focusout",_e)}})}function ge(){h.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)}),h=[]}function ye(e){var t=!1;if(C.state.isEnabled&&!Te(e)&&!d){if(a=e,u=e.currentTarget,re(),!C.state.isVisible&&function(e){return N(e,"MouseEvent")}(e)&&Ne.forEach(function(t){return t(e)}),"click"!==e.type||z(C.props.trigger,"mouseenter")&&!f||!1===C.props.hideOnClick||!C.state.isVisible){var o=S(),r=o[0],i=o[1];me.isTouch&&"hold"===r&&i?n=setTimeout(function(){Ue(e)},i):Ue(e)}else t=!0;"click"===e.type&&(f=!t),t&&Be(e)}}function be(t){var n=function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}return null}(t.target,function(t){return t===e||t===y});"mousemove"===t.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.tooltipRect,i=e.interactiveBorder,a=Math.min(t.top,r.top),s=Math.max(t.right,r.right),c=Math.max(t.bottom,r.bottom),u=Math.min(t.left,r.left);return a-o>i||o-c>i||u-n>i||n-s>i})}(K(y.querySelectorAll(le)).concat(y).map(function(e){var t=e._tippy,n=t.popperChildren.tooltip,o=t.props.interactiveBorder;return{popperRect:e.getBoundingClientRect(),tooltipRect:n.getBoundingClientRect(),interactiveBorder:o}}),t)&&(ce(),Be(t))}function we(e){if(!(Te(e)||z(C.props.trigger,"click")&&f))return C.props.interactive?(v.body.addEventListener("mouseleave",Be),v.addEventListener("mousemove",m),Y(Ne,m),void m(e)):void Be(e)}function _e(e){(z(C.props.trigger,"focusin")||e.target===I())&&(C.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||Be(e))}function Te(e){var t="ontouchstart"in window,n=z(e.type,"touch"),o=A();return t&&me.isTouch&&o&&!n||me.isTouch&&!o&&n}function Re(){var t,n=C.props.popperOptions,o=C.popperChildren.arrow,r=M(n,"flip"),i=M(n,"preventOverflow");function a(e){var n=C.state.currentPlacement;C.state.currentPlacement=e.placement,C.props.flip&&!C.props.flipOnUpdate&&(e.flipped&&(C.popperInstance.options.placement=e.placement),H(C.popperInstance.modifiers,"flip","enabled",!1)),_.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?_.setAttribute("data-out-of-boundaries",""):_.removeAttribute("data-out-of-boundaries");var o=Ee(e.placement),r=z(["top","bottom"],o),i=z(["bottom","right"],o);_.style.top="0",_.style.left="0",_.style[r?"top":"left"]=(i?1:-1)*t+"px",n&&n!==e.placement&&C.popperInstance.update()}var s=O({eventsEnabled:!1,placement:C.props.placement},n,{modifiers:O({},n&&n.modifiers,{tippyDistance:{enabled:!0,order:0,fn:function(e){t=function(e,t){var n="string"==typeof t&&z(t,"rem"),o=e.documentElement;return o&&n?parseFloat(getComputedStyle(o).fontSize||String(16))*X(t):X(t)}(v,C.props.distance);var n=Ee(e.placement),o=J(n,i&&i.padding,t),a=J(n,r&&r.padding,t),s=C.popperInstance.modifiers;return H(s,"preventOverflow","padding",o),H(s,"flip","padding",a),e}},preventOverflow:O({boundariesElement:C.props.boundary},i),flip:O({enabled:C.props.flip,behavior:C.props.flipBehavior},r),arrow:O({element:o,enabled:!!o},M(n,"arrow")),offset:O({offset:C.props.offset},M(n,"offset"))}),onCreate:function(e){a(e),V(n&&n.onCreate,s.onCreate,[e]),He()},onUpdate:function(e){a(e),V(n&&n.onUpdate,s.onUpdate,[e]),He()}});C.popperInstance=new x.a(e,y,s)}function He(){0===p?(p++,C.popperInstance.update()):s&&1===p&&(p++,function(e){e.offsetHeight}(y),s())}function Ue(e){C.clearDelayTimeouts(),C.popperInstance||Re(),e&&G("onTrigger",[C,e]),fe();var t=P(!0);t?n=setTimeout(function(){C.show()},t):C.show()}function Be(e){if(C.clearDelayTimeouts(),G("onUntrigger",[C,e]),C.state.isVisible){if(!(z(C.props.trigger,"mouseenter")&&z(C.props.trigger,"click")&&z(["mouseleave","mousemove"],e.type)&&f)){var t=P(!1);t?o=setTimeout(function(){C.state.isVisible&&C.hide()},t):r=requestAnimationFrame(function(){C.hide()})}}else de()}}function He(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]),n=Q.plugins.concat(t.plugins||n),document.addEventListener("touchstart",ge,O({},oe,{capture:!0})),window.addEventListener("blur",be);var o=O({},t,{plugins:n}),r=I(e).reduce(function(e,t){var n=t&&Re(t,o);return n&&e.push(n),e},[]);return P(e)?r[0]:r}He.version=j,He.defaultProps=Q,He.setDefaultProps=ee,He.currentInput=me;var Ue=r()("#scroll-to-top"),Be=[r()("#risk-disclaimer.risk-disclaimer--bottom"),r()("#cookie-bar.cookie-bar--bottom")];function We(){var e=0;r.a.each(Be,function(){r()(this).length&&(e+=r()(this).outerHeight())}),Ue.css("margin-bottom",e)}var Fe=function(){!function(){var e=r()("html, body");void 0!==Ue.data("tippy-content")&&He("#scroll-to-top",{animation:"shift-away",sticky:!0,touch:!1}),Ue.on("click",function(t){t.preventDefault(),Ue.hasClass("visible")&&e.stop().animate({scrollTop:r()(this.hash).offset().top},350,"swing")}),r()(document).scroll(function(){var e=r()(window).scrollTop(),t=r()(document).height(),n=r()(window).height();Math.round(e/(t-n)*100)>(u.a.touchscreen()?5:10)?Ue.removeClass("hidden").addClass("visible"):Ue.removeClass("visible").addClass("hidden")})}(),r.a.each(Be,function(){r()(this).find(".js-close").click(function(){We()})}),We(),r()(window).on("resize",We)},Ve=n(5),Ke=(n(30),n(29)),ze=n(18),qe=n.n(ze);function $e(){return i.a.above(i.a.tabletLandscape)&&!u.a.touchscreen()}var Ye=n(30);function Xe(e,t,n){var o=e.closest(".video__container"),r=function(e){return void 0!==(e=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/z)/))[2]?e[2].split(/[^0-9a-z_\-]/i)[0]:e}(e.attr("id-url")),i=n?1:0,a=e[0],s=!1;function c(){s?o.trigger("player:ready"):(qe()(e),s=!0,setTimeout(function(){o.trigger("player:ready")},1e3))}t?Ye.load(function(e){new e.Player(a,{videoId:r,width:1600,playerVars:{playlist:r,autoplay:1,disablekb:1,controls:0,showinfo:0,mute:1,modestbranding:1,loop:1,fs:0,autohide:0,rel:0,enablejsapi:1},events:{onReady:c}})}):Ye.load(function(e){new e.Player(a,{videoId:r,host:"https://www.youtube.com",playerVars:{playlist:r,autoplay:0,disablekb:1,controls:i,showinfo:0,mute:0,modestbranding:1,loop:0,fs:0,autohide:0,rel:0,enablejsapi:1},events:{onReady:c}})})}function Je(e,t){var n=e.attr("id-url"),o=e[0];(t?new Ke.a(o,{id:n,width:1600,autopause:!1,background:!0}):new Ke.a(o,{id:n,width:640})).on("loaded",function(){qe()(e)})}var Qe=function(){r()(document).ready(function(){$e()&&r()(".background--video .js-youtube-id").each(function(){Xe(r()(this),"true")}),r()(".content-cards__card .js-youtube-id, .content_library .js-youtube-id").each(function(){Xe(r()(this))}),r()(".video-embed-wrapper--youtube .js-youtube-id").each(function(){Xe(r()(this),!1,!0)}),$e()&&r()(".background--video .js-vimeo-id").each(function(){Je(r()(this),"true")}),r()(".content-cards__card .js-vimeo-id, .content_library .js-vimeo-id").each(function(){Je(r()(this))}),r()(".video-embed-wrapper--vimeo .js-vimeo-id").each(function(){Je(r()(this))})})};var Ge=function(){!function(){var e=new URLSearchParams(window.location.search),t=e.get("CXP"),n=e.get("CXTOKEN"),o="https:"===window.location.protocol;t&&n&&(_.a.set("CXP",t,{expires:30,secure:o,domain:".oanda.com"}),_.a.set("CXTOKEN",n,{expires:30,secure:o,domain:".oanda.com"}))}()},Ze=function(){r()(function(){qe()(".embed-wrapper")})};n(6);function et(e){function t(){var e,t=document.createElement("totem"),n={animation:"animationend",oanimation:"oanimationend",webkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}var n=new function(e){this.title=e,this.heroText=e.find(".js-hero-text"),this.titles=e.data("titles"),this.wordCount=this.titles.length-1,this.current=0,this.interval=1e3,this.transitionDatum=3,this.transitionTime=this.interval/(1e3*this.transitionDatum),this.wordWrap=!1}(e);function o(){return new Promise(function(e){var t=n.current+1,o=n.titles[t];n.heroText.html("<span>"+o+"</span>"),n.current=n.current+1,e()})}function i(){return new Promise(function(e){n.wordWrap?n.heroText.css("animation","fadeIn "+n.transitionTime+"s ease-in 0s 1 normal forwards"):n.heroText.css("animation","rollIn "+n.transitionTime+"s ease-in 0s 1 normal forwards"),n.heroText.one(t(),function(){setTimeout(function(){e()},n.interval/n.transitionDatum)})})}!function(){var t=0;for(e.append("<span class='heading-temp'></span>");t<=n.wordCount;t++){var o=n.titles[t],r=e.find(".heading-temp");r.html(o),1.8*parseInt(r.css("font-size"))<parseInt(r.height())&&(n.wordWrap=!0,n.title.addClass("fix-height"))}e.find(".heading-temp").remove()}();var a=function(){return new Promise(function(e){n.current<n.wordCount&&setTimeout(function(){s(),e()},.1)})},s=function(){new Promise(function(e){n.wordWrap?n.heroText.css("animation","fadeOut "+n.transitionTime+"s ease-in 0s 1 normal forwards"):n.heroText.css("animation","rollOut "+n.transitionTime+"s ease-in 0s 1 normal forwards"),n.heroText.one(t(),function(){setTimeout(function(){e()},n.interval/n.transitionDatum)})}).then(o).then(i).then(a)};e.on("inview",function(e,t){t&&(setTimeout(function(){s()},n.interval),r()(this).off("inview"))})}var tt=function(){r()(document).ready(function(){"disabled"!==new URLSearchParams(window.location.search).get("animation")&&r()(".js-hero-title").each(function(){et(r()(this))})})},nt=n(7),ot=n.n(nt),rt=0,it=1,at={name:"region-alert-banner",props:{pageId:Number,regionSelectorText:String,regionSelectorUrl:String,btnText:String},data:function(){return{isRegionAlertBannerShown:!1,isDropdownOpen:!1,userCountryName:"",userCountryCode:"",userRedirectUrl:"",selectedOption:rt}},created:function(){var e=_.a.get(this.cookieId);if(void 0===e||!0===e){window.addEventListener("click",this.clickOutsideDropdown);var t=this;r.a.ajax({url:"/region-alert-banner/"+this.pageId+"/"}).then(function(e){e.show&&(t.userCountryName=e.user_country_name,t.userCountryCode=e.user_country_code,t.userRedirectUrl=e.user_redirect_url,t.isRegionAlertBannerShown=!0)})}},computed:{selectedOptionText:function(){return this.isDropdownOpen?this.userCountryName:this.selectedOption===it?this.regionSelectorText:this.userCountryName},userCountryFlagClass:function(){return"flag-icon-"+this.userCountryCode},btnUrl:function(){return this.selectedOption===it?this.regionSelectorUrl:this.userRedirectUrl},isRegionSelectorOptionSelected:function(){return this.selectedOption===it},cookieId:function(){return"check-page-region-"+this.pageId}},methods:{clickOutsideDropdown:function(e){this.isRegionAlertBannerShown&&!1===this.$refs.dropdown.contains(e.target)&&this.closeDropdown()},hideRegionAlertBanner:function(){this.isRegionAlertBannerShown=!1,_.a.set(this.cookieId,!1)},closeDropdown:function(){this.isDropdownOpen=!1},openDropdownOrSelectUserSubfolderOption:function(){this.isDropdownOpen?(this.selectedOption=rt,this.closeDropdown()):this.isDropdownOpen=!0},moveUp:function(){this.$nextTick(function(){this.$refs.currentOption.focus()})},openDropdownOrMoveDown:function(){this.isDropdownOpen?this.$nextTick(function(){this.$refs.regionSelectorOption.focus()}):this.isDropdownOpen=!0},setActionRegionSelectorPage:function(){this.selectedOption=it,this.closeDropdown()}}},st=n(2),ct=Object(st.a)(at,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isRegionAlertBannerShown?n("div",{staticClass:"region-bar",attrs:{id:"region-bar"}},[n("div",{staticClass:"region-bar__container"},[n("div",{staticClass:"region-bar__msg"},[n("div",[e._t("msg")],2),e._v(" "),n("i",{staticClass:"region-bar__close-mobile material-icons",on:{click:function(t){return e.hideRegionAlertBanner()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.hideRegionAlertBanner()}}},[e._v("close")])]),e._v(" "),n("div",{ref:"dropdown",class:["region-bar__dropdown",{"region-bar__dropdown--open":e.isDropdownOpen}]},[n("div",{ref:"currentOption",staticClass:"region-bar__option region-bar__option--current",attrs:{tabindex:"0"},on:{click:function(t){return e.openDropdownOrSelectUserSubfolderOption()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.closeDropdown()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.openDropdownOrMoveDown())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.openDropdownOrSelectUserSubfolderOption()}]}},[e.isDropdownOpen?[e.isRegionSelectorOptionSelected?n("span",{class:["region-bar__option-icon-left","flag-icon",e.userCountryFlagClass]}):n("span",{staticClass:"region-bar__option-icon-left region-bar__option-icon-left--green material-icons"},[e._v("done")])]:[e.isRegionSelectorOptionSelected?n("span",{staticClass:"region-bar__option-icon-left material-icons"},[e._v("public")]):n("span",{class:["region-bar__option-icon-left","flag-icon",e.userCountryFlagClass]})],e._v(" "),n("span",[e._v(e._s(e.selectedOptionText))]),e._v(" "),n("span",{staticClass:"region-bar__option-icon-right material-icons"},[e._v("expand_more")])],2),e._v(" "),e.isDropdownOpen?n("div",{ref:"regionSelectorOption",staticClass:"region-bar__option region-bar__option--region-selector",attrs:{tabindex:"0"},on:{click:function(t){return e.setActionRegionSelectorPage()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.closeDropdown(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:(t.preventDefault(),e.moveUp())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:void t.preventDefault()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.setActionRegionSelectorPage()},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.closeDropdown()}]}},[e.isRegionSelectorOptionSelected?n("span",{staticClass:"region-bar__option-icon-left region-bar__option-icon-left--green material-icons"},[e._v("done")]):n("span",{staticClass:"region-bar__option-icon-left material-icons"},[e._v("public")]),e._v(" "),n("span",[e._v(e._s(e.regionSelectorText))])]):e._e()]),e._v(" "),n("a",{staticClass:"region-bar__btn btn btn--primary btn--blue btn--rectangle",attrs:{href:e.btnUrl}},[e._v("\n "+e._s(e.btnText)+"\n ")]),e._v(" "),n("i",{staticClass:"region-bar__close material-icons",attrs:{tabindex:"0"},on:{click:function(t){return e.hideRegionAlertBanner()},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.hideRegionAlertBanner()}}},[e._v("close")])])]):e._e()},[],!1,null,null,null).exports;u.a.init(),new ot.a({el:"region-alert-banner",components:{"region-alert-banner":ct}}),s(),b(),T(),Ve.a.init(),E(),Fe(),Ge(),Qe(),Ze(),tt()},,,,,,,,,,,,,,,,,function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var o,r=1,i={},a=!1,s=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick(function(){l(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&l(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),o=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},o=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;o=function(t){var n=s.createElement("script");n.onreadystatechange=function(){l(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():o=function(e){setTimeout(l,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return i[r]=a,o(r),r++},c.clearImmediate=u}function u(e){delete i[e]}function l(e){if(a)setTimeout(l,0,e);else{var t=i[e];if(t){a=!0;try{!function(e){var t=e.callback,o=e.args;switch(o.length){case 0:t();break;case 1:t(o[0]);break;case 2:t(o[0],o[1]);break;case 3:t(o[0],o[1],o[2]);break;default:t.apply(n,o)}}(t)}finally{u(e),a=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(19),n(52))},function(e,t,n){(function(e){var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(53),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(19))},function(e,t,n){"use strict";(function(e){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},o))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:c(s(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||o.contains(r))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e)}(a)?a:p(a);var s=h(e);return s.host?m(s.host,t):m(e,h(t).host)}function v(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function g(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function y(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,o=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,o),width:y("Width",t,n,o)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function C(e){return T({},e,{right:e.left+e.width,bottom:e.top+e.height})}function E(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=v(e,"top"),o=v(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?b(e.ownerDocument):{},s=i.width||e.clientWidth||r.width,c=i.height||e.clientHeight||r.height,u=e.offsetWidth-s,l=e.offsetHeight-c;if(u||l){var f=a(e);u-=g(f,"x"),l-=g(f,"y"),r.width-=u,r.height-=l}return C(r)}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=d(10),r="HTML"===t.nodeName,i=E(e),s=E(t),u=c(e),l=a(t),f=parseFloat(l.borderTopWidth),p=parseFloat(l.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=C({top:i.top-s.top-f,left:i.left-s.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!o&&r){var m=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-g,h.right-=p-g,h.marginTop=m,h.marginLeft=g}return(o&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=v(t,"top"),r=v(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(h,t)),h}function O(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function j(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},l=r?O(e):m(e,u(t));if("viewport"===o)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=x(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left");return C({top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:r,height:i})}(l,r);else{var f=void 0;"scrollParent"===o?"BODY"===(f=c(s(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===o?e.ownerDocument.documentElement:o;var d=x(f,l,r);if("HTML"!==f.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===a(t,"position"))return!0;var o=s(t);return!!o&&e(o)}(l))i=d;else{var p=b(e.ownerDocument),h=p.height,g=p.width;i.top+=d.top-d.marginTop,i.bottom=h+d.top,i.left+=d.left-d.marginLeft,i.right=g+d.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function S(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=j(n,o,i,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map(function(e){return T({key:e},s[e],{area:function(e){return e.width*e.height}(s[e])})}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight}),l=u.length>0?u[0].key:c[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function A(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return x(n,o?O(t):m(t,u(n)),o)}function D(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function L(e,t,n){n=n.split("-")[0];var o=D(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return r[a]=t[a]+t[c]/2-o[c]/2,r[s]=n===s?t[s]-o[u]:t[I(s)],r}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var o=M(e,function(e){return e[t]===n});return e.indexOf(o)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))}),t}function P(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,n,o){n.updateBound=o,H(e).addEventListener("resize",n.updateBound,{passive:!0});var r=c(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,o,{passive:!0}),i||e(c(a.parentNode),n,o,r),r.push(a)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach(function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(t[n])&&(o="px"),e.style[n]=t[n]+o})}var V=n&&/Firefox/i.test(navigator.userAgent);function K(e,t,n){var o=M(e,function(e){return e.name===t}),r=!!o&&e.some(function(e){return e.name===n&&e.enabled&&e.order<o.order});if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],q=z.slice(3);function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=q.indexOf(e),o=q.slice(n+1).concat(q.slice(0,n));return t?o.reverse():o}var Y={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function X(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(M(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(u=u.map(function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=o}return C(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,o){W(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))})}),r}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={start:k({},c,i[c]),end:k({},c,i[c]+i[u]-a[u])};e.offsets.popper=T({},a,l[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,a=r.reference,s=o.split("-")[0],c=void 0;return c=W(+n)?[+n,0]:X(n,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var o=R("transform"),r=e.instance.popper.style,i=r.top,a=r.left,s=r[o];r.top="",r.left="",r[o]="";var c=j(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(l[e],c[e])),k({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=l[n];return l[e]>c[e]&&!t.escapeWithReference&&(o=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),k({},n,o)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=T({},l,f[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]<i(o[c])&&(e.offsets.popper[c]=i(o[c])-n[u]),n[c]>i(o[s])&&(e.offsets.popper[c]=i(o[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!K(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,c=i.reference,u=-1!==["left","right"].indexOf(r),l=u?"height":"width",f=u?"Top":"Left",d=f.toLowerCase(),p=u?"left":"top",h=u?"bottom":"right",m=D(o)[l];c[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(c[h]-m)),c[d]+m>s[h]&&(e.offsets.popper[d]+=c[d]+m-s[h]),e.offsets.popper=C(e.offsets.popper);var v=c[d]+c[l]/2-m/2,g=a(e.instance.popper),y=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),w=v-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(s[l]-m,w),0),e.arrowElement=o,e.offsets.arrow=(k(n={},d,Math.round(w)),k(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(P(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=j(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=I(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Y.FLIP:a=[o,r];break;case Y.CLOCKWISE:a=$(o);break;case Y.COUNTERCLOCKWISE:a=$(o,!0);break;default:a=t.behavior}return a.forEach(function(s,c){if(o!==s||a.length===c+1)return e;o=e.placement.split("-")[0],r=I(o);var u=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===o&&f(u.right)>f(l.left)||"right"===o&&f(u.left)<f(l.right)||"top"===o&&f(u.bottom)>f(l.top)||"bottom"===o&&f(u.top)<f(l.bottom),p=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),v=f(u.bottom)>f(n.bottom),g="left"===o&&p||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,y=-1!==["top","bottom"].indexOf(o),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&v||!y&&"end"===i&&m),_=b||w;(d||g||_)&&(e.flipped=!0,(d||g)&&(o=a[c+1]),_&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=T({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(s?r[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=C(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=M(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=p(e.instance.popper),c=E(s),u={position:r.position},l=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},c=i(r.width),u=i(o.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?l||f||c%2==u%2?i:a:s,p=t?i:s;return{left:d(c%2==1&&u%2==1&&!f&&t?o.left-1:o.left),top:p(o.top),bottom:p(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!V),f="bottom"===n?"top":"bottom",d="right"===o?"left":"right",h=R("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-c.height+l.bottom:l.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+l.right:-c.width+l.right:l.left,a&&h)u[h]="translate3d("+m+"px, "+v+"px, 0)",u[f]=0,u[d]=0,u.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===d?-1:1;u[f]=v*g,u[d]=m*y,u.willChange=f+", "+d}var b={"x-placement":e.placement};return e.attributes=T({},b,e.attributes),e.styles=T({},u,e.styles),e.arrowStyles=T({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=A(r,t,e,n.positionFixed),a=S(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Q=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=r(this.update.bind(this)),this.options=T({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(T({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){o.options.modifiers[t]=T({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return T({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&i(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=S(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return B.call(this)}}]),e}();Q.Utils=("undefined"!=typeof window?window:e).PopperUtils,Q.placements=z,Q.Defaults=J,t.a=Q}).call(this,n(19))}])});

Back to list