/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */(function(){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,d){e=setTimeout(d,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null);b.g(b.a)},function(){b.j(b.a)})};function Q(a,b,c,d,e,f,g){this.v=a;this.B=b;this.c=c;this.a=d;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.m=this.j=this.h=this.g=null;this.g=new M(this.c,this.s);this.h=new M(this.c,this.s);this.j=new M(this.c,this.s);this.m=new M(this.c,this.s);a=new G(this.a.c+",serif",J(this.a));a=O(a);this.g.a.style.cssText=a;a=new G(this.a.c+",sans-serif",J(this.a));a=O(a);this.h.a.style.cssText=a;a=new G("serif",J(this.a));a=O(a);this.j.a.style.cssText=a;a=new G("sans-serif",J(this.a));a= O(a);this.m.a.style.cssText=a;N(this.g);N(this.h);N(this.j);N(this.m)}var R={D:"serif",C:"sans-serif"},S=null;function T(){if(null===S){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);S=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return S}Q.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.m.a.offsetWidth;this.A=q();U(this)}; function la(a,b,c){for(var d in R)if(R.hasOwnProperty(d)&&b===a.f[R[d]]&&c===a.f[R[d]])return!0;return!1}function U(a){var b=a.g.a.offsetWidth,c=a.h.a.offsetWidth,d;(d=b===a.f.serif&&c===a.f["sans-serif"])||(d=T()&&la(a,b,c));d?q()-a.A>=a.w?T()&&la(a,b,c)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):ma(a):V(a,a.v)}function ma(a){setTimeout(p(function(){U(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.m.a);b(this.a)},a),0)};function W(a,b,c){this.c=a;this.a=b;this.f=0;this.m=this.j=!1;this.s=c}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,J(a).toString(),"active")],[b.a.c("wf",a.c,J(a).toString(),"loading"),b.a.c("wf",a.c,J(a).toString(),"inactive")]);K(b,"fontactive",a);this.m=!0;na(this)}; W.prototype.h=function(a){var b=this.a;if(b.g){var c=y(b.f,b.a.c("wf",a.c,J(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,J(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,J(a).toString(),"inactive"));w(b.f,d,e)}K(b,"fontinactive",a);na(this)};function na(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),K(a,"active")):L(a.a))};function oa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}oa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;pa(this,new ha(this.c,a),a)}; function qa(a,b,c,d,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,m=d||null||{};if(0===c.length&&f)L(b.a);else{b.f+=c.length;f&&(b.j=f);var h,l=[];for(h=0;h{e.addEventListener("focus",()=>this.handleFocus(e))}),this.trapFocus(e)}handleFocus(e){this.el.scrollTo(0,e.offsetTop)}trapFocus(e){if(e.classList.contains("mega-menu__main"))return;const t='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',s=e.querySelectorAll(t)[0],i=e.querySelectorAll(t),n=i[i.length-1];document.addEventListener("keydown",e=>{("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===s&&n&&(n.focus(),e.preventDefault()):document.activeElement===n&&s&&(s.focus(),e.preventDefault()))})}}function c(){void 0===window.pmc_side_skin_classes_removed&&(document.documentElement.classList.add("has-side-skins"),[...document.querySelectorAll('[class*="@desktop-xl"]')].forEach(e=>{const t=e.className.split(" ");e.className="",t.map(t=>{t.includes("@desktop-xl")||(e.className+=" "+t)})}),window.pmc_side_skin_classes_removed=!0),window.dispatchEvent(new Event("resize"))}var r={init:function(){let e=pmc.cookie.get("spy_fonts_loaded");void 0!==e&&e?this.load("directload"):window.addEventListener("load",()=>{this.load("load")})},load:function(e){this.getThemeUrl(),this.loadcount++;WebFont.load({google:{families:["Playfair Display"]},typekit:{id:"dda4haa"},active:function(){try{"load"==e&&pmc.cookie.set("spy_fonts_loaded",1,604800),console.log("fonts loaded "+e)}catch(e){}}})},getThemeUrl:function(){return"undefined"==typeof pmc_common_urls?"":pmc_common_urls.current_theme_uri}};class a{constructor(e){this.el=e,this.el.pmcHeader=this,this.container=document.documentElement,this.initSticky(),this.initSearch()}destroy(){this.destroySticky(),this.destroySearch(),delete this.el.pmcHeader}get stickyClass(){return this.el.dataset.headerStickyClass||"is-sticky"}get readyClass(){return this.el.dataset.headerReadyClass||"is-header-ready"}get searchClass(){return this.el.dataset.headerSearchClass||"is-search-expanded"}initSticky(){window.IntersectionObserver&&(this.observerOptions={root:null,rootMargin:"80px",threshold:[1]},this.toggleSticky=this.toggleSticky.bind(this),this.observer=new IntersectionObserver(this.toggleSticky,this.observerOptions),this.observer.observe(this.el),this.container.classList.add(this.readyClass))}destroySticky(){window.IntersectionObserver&&(this.observer.disconnect(),this.container.classList.remove(this.stickyClass,this.readyClass))}toggleSticky(e){window.IntersectionObserver&&e.forEach(e=>{const t=e.intersectionRatio;1===t?this.container.classList.remove(this.stickyClass):1>t&&this.container.classList.add(this.stickyClass)})}initSearch(){this.searchTrigger=this.el.querySelector("[data-header-search-trigger]"),null!==this.searchTrigger&&(this.expandSearch=this.expandSearch.bind(this),this.collapseSearch=this.collapseSearch.bind(this),this.searchTrigger.addEventListener("click",this.expandSearch))}destroySearch(){document.body.removeEventListener("click",this.collapseSearch),this.searchTrigger.removeEventListener("click",this.expandSearch),this.container.classList.remove(this.searchClass)}expandSearch(e){e.preventDefault(),e.stopPropagation(),this.container.classList.add(this.searchClass),this.searchTrigger.removeEventListener("click",this.expandSearch),setTimeout(()=>document.body.addEventListener("click",this.collapseSearch),1)}collapseSearch(e){e.target===this.searchTrigger||this.searchTrigger.contains(e.target)||(this.container.classList.remove(this.searchClass),this.searchTrigger.addEventListener("click",this.expandSearch),document.body.removeEventListener("click",this.collapseSearch))}}class l{constructor(e){this.el=e,this.targetTitles=[...document.querySelectorAll(".a-content h2.pmc-toc--heading")],this.initProgress()}initProgress(){const e=[];if(this.targetTitles.length&&this.targetTitles.forEach(t=>{const s=t.getBoundingClientRect();s.top=94&&e.push(t)}),e.length){document.querySelectorAll(".toc-list .c-nav-link").forEach(e=>{e.classList.remove("active")});const t=e[0].getAttribute("id"),s=document.querySelector('.toc-list-item .c-nav-link[href="#'+t+'"]');s&&s.classList.add("active")}}}var d=void 0!==window.pmc_common_urls?window.pmc_common_urls.current_theme_uri+"/assets/build/svg/defs/sprite.defs.svg?v=1":"/assets/build/svg/defs/sprite.defs.svg?v=1",u=function(){!function(e){[...document.querySelectorAll(".lrv-js-MobileHeightToggle")].forEach(t=>{768>e&&void 0===t.pmcMobileHeightToggle&&new i(t),768<=e&&void 0!==t.pmcMobileHeightToggle&&t.pmcMobileHeightToggle.destroy()})}(window.innerWidth),[...document.querySelectorAll(".js-Header")].forEach(e=>e.pmcHeader=new a(e))};window.addEventListener("DOMContentLoaded",(function(){u(),[...document.querySelectorAll(".lrv-js-EmailCapture")].forEach(e=>e.pmcEmailCapture=new n(e))})),window.addEventListener("resize",(function(){u()})),window.addEventListener("message",(function(e){!function(e){let t="",s="";"object"==typeof window.pmc_dfp_skin?s=window.pmc_dfp_skin:void 0!==window.pmc&&void 0!==window.pmc.skinAds&&(s=window.pmc.skinAds),"string"==typeof e.data&&"object"==typeof s&&"pmcadm:dfp:skinad:parameters"===e.data.substring(0,"pmcadm:dfp:skinad:parameters".length)&&(t=e.data.substring("pmcadm:dfp:skinad:parameters".length),t&&(c(),s.refresh_skin_rails()))}(e)})),window.addEventListener("load",(function(){!function(){const e=[...document.querySelectorAll(".js-MegaMenu")],t=[...document.querySelectorAll(".js-MegaMenu-Trigger")];let s;function i(){const e=document.documentElement.classList.contains("is-mega-open"),t=[...document.querySelector(".js-MegaMenu").querySelectorAll('input, [tabindex="0"]')];e?(document.documentElement.classList.remove("is-mega-open"),s.focus()):(document.documentElement.classList.add("is-mega-open"),t[0]!==document.activeElement&&setTimeout((function(){t[0].focus()}),100),s=document.activeElement)}e.forEach(e=>e.pmcMegaMenu=new o(e)),t.forEach(e=>{e.addEventListener("click",i)}),document.addEventListener("keydown",e=>{"Escape"===e.key&&document.documentElement.classList.remove("is-mega-open")})}()})),window.addEventListener("scroll",(function(){[...document.querySelectorAll(".toc > nav.toc-navigation")].forEach(e=>e.pmcTocProgress=new l(e))})),r.init(),function(e){const t=new XMLHttpRequest,s=document.createElement("div");t.open("GET",e,!0),t.send(),t.onload=function(){s.id="icon-sprite",s.innerHTML=t.responseText,document.body.insertBefore(s,document.body.childNodes[0])}}(d)}});; !function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){var n,s;!function(o,r){n=[i(8)],void 0===(s=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},f._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n1))return t;var i=n.modulo(t,e),s=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o=e&&(this.x+=this.slideableWidth)},f.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},f.next=function(t,e){this.select(this.selectedIndex+1,t,e)},f.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},f.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},f.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},f.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},f.getCellSlideIndex=function(t){for(var e=0;e *"),this.getCell(t))},f.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},f.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},f.uiChange=function(){this.emitEvent("uiChange")},f.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},f.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(p,"onresize",150),f.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},f.watchCSS=function(){this.options.watchCSS&&(-1!=h(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},f.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=p.keyboardHandlers[t.keyCode];i&&i.call(this)}},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},f.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},f.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((function(t){t.destroy()})),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},f.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),a&&this.$element&&a.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},n.extend(f,r),p.data=function(t){var e=(t=n.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},n.htmlInit(p,"flickity"),a&&a.bridget&&a.bridget("flickity",p);return p.setJQuery=function(t){a=t},p.Cell=s,p.Slide=o,p}(o,t,e,i,n,s,r)}.apply(e,n))||(t.exports=s)}(window)},function(t,e,i){var n,s;"undefined"!=typeof window&&window,void 0===(s="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s